query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
46b43f4cd2f5136edcd01860055afbfd
Gets the hierarchyIdentifier The Hierarchy Identifier.
[ { "docid": "db842a6718e9cdc01a598c01dd8437a6", "score": "0.81138635", "text": "public function getHierarchyIdentifier()\n {\n if (array_key_exists(\"hierarchyIdentifier\", $this->_propDict)) {\n return $this->_propDict[\"hierarchyIdentifier\"];\n } else {\n return null;\n }\n }", "title": "" } ]
[ { "docid": "6ef0cb107800609cb8ac8700cb1562d9", "score": "0.659338", "text": "public function getHierarchyName()\n {\n if (array_key_exists(\"hierarchyName\", $this->_propDict)) {\n return $this->_propDict[\"hierarchyName\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "9deacf534148bc42bd4d1a6a5de690c8", "score": "0.6239576", "text": "public function get_identifier() {\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "8598457b8ad38ae1e30875556f1e089e", "score": "0.6185766", "text": "public function getIdentifier()\n {\n return $this->identifier === null ? $this->getCanonical() : $this->identifier;\n }", "title": "" }, { "docid": "a8eb8a29d876f90bb020fe7762451169", "score": "0.60761523", "text": "function lookupHierId()\n\t{\n\t\treturn $this->node->get_attribute(\"HierId\");\n\t}", "title": "" }, { "docid": "3a3d4a947c18b5c3466f6f207bdb6553", "score": "0.6007386", "text": "public function setHierarchyIdentifier($val)\n {\n $this->_propDict[\"hierarchyIdentifier\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "0147e9e6e6d0dde431171512d05508aa", "score": "0.5989325", "text": "public function hierarchyLevel();", "title": "" }, { "docid": "5f914df7faad8808b0725d8c7b25f6f8", "score": "0.59498096", "text": "public function getIdentifier()\n {\n return isset($this->Identifier) ? $this->Identifier : null;\n }", "title": "" }, { "docid": "1b63586b78d1df1e4e883a915a6fc149", "score": "0.5932188", "text": "public function getId() {\n\n if (isset($this->identifier)) {\n\n return $this->identifier;\n }\n\n return NULL;\n }", "title": "" }, { "docid": "3fb87078a9b6e5abf00732a03a60144e", "score": "0.59102005", "text": "public function get_identifier();", "title": "" }, { "docid": "297a58d8c6c16b7e76bfe5dc15199a78", "score": "0.58987814", "text": "public function getIdentifier() {\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "a4b6da2f1a0db43014de7a762d592999", "score": "0.5879389", "text": "public function getIdentifier() {\n return $this->_identifier;\n }", "title": "" }, { "docid": "bcc579450d8aa1f999c6b48dfe8ce60a", "score": "0.58699083", "text": "public function getIdentifier()\n\t{\n\t\treturn $this->_identifier;\n\t}", "title": "" }, { "docid": "720e8013da982d36c5d6320c22805805", "score": "0.5861875", "text": "public function getId()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.58577865", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.58577865", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.58577865", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.58577865", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "0e7787cc505fe81b1555aa0ff8a20d06", "score": "0.58577865", "text": "public function getIdentifier()\n {\n return $this->_identifier;\n }", "title": "" }, { "docid": "7240235490d4e065d72fc74cd6364250", "score": "0.5852081", "text": "public function getIdentifier() : string\n\t{\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "9dac5004b98df89bc261a8301b742d70", "score": "0.58438194", "text": "public function getIdentifier()\n {\n\n // check if we've a parent directory\n if ($parent = $this->getParent()) {\n return $parent->getIdentifier() . '/' . $this->getName();\n }\n\n // if not, we MUST have a scheme, because we're root\n if ($scheme = $this->getScheme()) {\n return $scheme . ':' . $this->getName();\n }\n\n // the root node needs a scheme\n throw new NamingException(sprintf('Missing scheme for naming directory', $this->getName()));\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.58359694", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.58359694", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.58359694", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.58359694", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "c64ce7296499c9382e6670265658089a", "score": "0.58359694", "text": "public function getIdentifier() {\n return $this->identifier;\n }", "title": "" }, { "docid": "f44b7f59aef08cdb65c4e6c972390082", "score": "0.58348244", "text": "public function getIdentifier()\n {\n return $this->getId();\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8a9613bfcbfeaa0fc6d8034b68bbeff3", "score": "0.5829432", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "367a274f08316f631f1ccc13c2e9f67f", "score": "0.58252436", "text": "public final function identifier() {\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "6259c429eacd7b2dbfe2c4357300508f", "score": "0.5809877", "text": "public function getIdentifier() : string\r\n {\r\n return $this->identifier;\r\n }", "title": "" }, { "docid": "67b30a804070db18324a1dabae838307", "score": "0.57981056", "text": "public function getLid()\n {\n return $this->get(self::LID);\n }", "title": "" }, { "docid": "b9f93edcb24bb7008979a5583a49fa05", "score": "0.5792802", "text": "public function getParentIdName()\n {\n return $this->_parentIdName;\n }", "title": "" }, { "docid": "d126152119635dfbcb4e11130c1ae96a", "score": "0.5785406", "text": "public function getIdentifier() {\r\n \treturn $this->_identifier;\t\r\n }", "title": "" }, { "docid": "d1e0434c21a596797d9041f768464968", "score": "0.57779896", "text": "public function getIdentifier(): string\n\t{\n\t\treturn $this->identifier;\n\t}", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.5770027", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.5770027", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "7749c7697d79a7eca145e33affef8064", "score": "0.5770027", "text": "public function getIdentifier(): string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "9b3b4072f105ec8a2991c47bb56e04db", "score": "0.57609624", "text": "public function getIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "2c80919c23b79e2b4903d1c4b811f7e5", "score": "0.57601494", "text": "public function getIdentifierAuthority()\n {\n return $this->identifierAuthority;\n }", "title": "" }, { "docid": "d7079bf3912b8ca023810d63b67d7cce", "score": "0.5748971", "text": "public function getHierarchyData(){\n \t\treturn $this->hierarchy;\n \t}", "title": "" }, { "docid": "b04fdfaf5661ee1859f13f6dc47a07f0", "score": "0.5739155", "text": "protected function getIdentifier() {\n return StringHelper::namespaceToIdentifier($this->componentNamespace);\n }", "title": "" }, { "docid": "26f22e99f78c4b9281bac9116032e79d", "score": "0.57054985", "text": "public function identifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "8f78084c0551afccc0f0832a4a486371", "score": "0.56888473", "text": "public function getIdentifier()\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "4e4ddb636679ea68f8ea941dba7360d7", "score": "0.56883824", "text": "public function getParentId() : ?string\n {\n return $this->parentId;\n }", "title": "" }, { "docid": "df6fa3a1b24a5866a9984fafbf185268", "score": "0.56535584", "text": "public function getIdentifier(): string\n {\n return $this->instance()->getIdentifier();\n }", "title": "" }, { "docid": "2a27f86f399cc8366f8c59015e4f0ffd", "score": "0.56512135", "text": "public function getIdLevel()\n {\n return $this->id_level;\n }", "title": "" }, { "docid": "825b84b0b6eecd21854ab5303be65bc4", "score": "0.5642062", "text": "protected function getParentId()\n {\n return $this->getSubject()->getParentId();\n }", "title": "" }, { "docid": "8088e09548b94e03e0e94ad3b0f65699", "score": "0.5612537", "text": "public function getParentId(): string;", "title": "" }, { "docid": "b8bff4278867e9bf2ed26f3168d92f06", "score": "0.56018645", "text": "public function getIdentifier(): string\n {\n return (string)$this->id;\n }", "title": "" }, { "docid": "3d433f6ae0c7050cfe7f2d01c2716559", "score": "0.5595273", "text": "public static function getGUIDProperty()\n {\n return 'EmployeeID';\n }", "title": "" }, { "docid": "907031519b03b368ad8b59be6ca5cf85", "score": "0.55777425", "text": "public static function getId() {\n if(self::isEmployee()) {\n return 1;\n }\n else {\n return 4;\n }\n }", "title": "" }, { "docid": "f4b699446cddf30cf6a488294c30f053", "score": "0.5542641", "text": "public function getParentId() {\n return $this->getAttribute($this->getparentColumnName());\n }", "title": "" }, { "docid": "c2cace426f0f980fe2682d9a1ad564c8", "score": "0.55388886", "text": "public function getParentId() : int;", "title": "" }, { "docid": "0ffc6bb9aa6b77131f7f6b67b346c4a8", "score": "0.552454", "text": "public function getId()\n {\n if (!isset($this->cache['id'])) {\n if ($this->parent === NULL) {\n $this->cache['id'] = 'index';\n } else {\n $parentId = $this->parent->getId();\n\n if ($parentId == 'index') {\n $this->cache['id'] = $this->getName();\n } else {\n $this->cache['id'] = $parentId . '_' . $this->getName();\n }\n }\n }\n\n return $this->cache['id'];\n }", "title": "" }, { "docid": "946b375863ad1eb9efefe063aa5fbfcd", "score": "0.5507255", "text": "public static function getGUIDProperty()\n {\n return 'JournalLineID';\n }", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.5503838", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.5503838", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.5503838", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.5503838", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.5503838", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.5503838", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.5503838", "text": "public function getIdentifier();", "title": "" }, { "docid": "c679a82a8822fd5b2849911397ddb4e2", "score": "0.54849017", "text": "public function getIdentifier()\n {\n $this->getResourceModel()->getIdentifier();\n }", "title": "" }, { "docid": "dc6d8cd721fae92a5fd5dde42625db55", "score": "0.5484081", "text": "function get_parent_id()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_PARENT_ID);\r\n }", "title": "" }, { "docid": "59eca9f303788c00cac860af39888e9e", "score": "0.54344183", "text": "public function getIdentifier()\n {\n return new Identifier(self::IDENTIFIER);\n }", "title": "" }, { "docid": "19994804fd539891ab2af985b72adb4f", "score": "0.54323155", "text": "public function getId(): ?string\n {\n if (null === ($parent = $this->getParent())) {\n return $this->getName();\n }\n\n if ($parent instanceof Collection) {\n return sprintf('%s_%s', $parent->getId(), $parent->indexOf($this));\n }\n\n if (null === $this->getName()) {\n return $parent->getId();\n }\n\n return sprintf('%s_%s', $parent->getId(), $this->getName());\n }", "title": "" }, { "docid": "0e061883101ae942f1da6ec5668ccc23", "score": "0.54207563", "text": "public function getLeafId() {\r\n\t\treturn $this->leafd;\r\n\t}", "title": "" }, { "docid": "197785071a3735bba8496b212e1ee08c", "score": "0.54009897", "text": "public function getParentId()\n {\n return $this->parentId;\n }", "title": "" }, { "docid": "0290a8006abc85a5f0fb21161b9d1c74", "score": "0.5385781", "text": "public function getParentId()\n\t{\n\t\t/* @var $this \\creocoder\\nestedsets\\NestedSetsBehavior */\n\t\tif ($this->parentId === null && $this->depth > 0) {\n\t\t\t$this->parentId = $this->parents(1)->select('id')->scalar();\n\t\t}\n\n\t\treturn $this->parentId;\n\t}", "title": "" }, { "docid": "4c6888997d4c4c9a18cb4d20d8a83b42", "score": "0.53763753", "text": "public function getParentId()\r\n {\r\n $parentIds = $this->getParentIds();\r\n return intval(array_pop($parentIds));\r\n }", "title": "" }, { "docid": "d69c7e7ed8297702101539ba3f4bb880", "score": "0.53659475", "text": "public function getIdentifier() {\n\t\treturn $this->Persistence_Object_Identifier;\n\t}", "title": "" }, { "docid": "c5872a97ff07d8741be9029624fd9ca9", "score": "0.53649783", "text": "public function getParentId() {\n\t\treturn $this->parentId;\n\t}", "title": "" }, { "docid": "2c4a35c7c4aea01bd8732e233e66ed33", "score": "0.5364197", "text": "public function getIdentifier(): ?string\n {\n return $this->identifier;\n }", "title": "" }, { "docid": "6d79239c77d804a30c0f508294c45aad", "score": "0.53629", "text": "public function get_id() : string {\n\t\treturn $this->id;\n\t}", "title": "" }, { "docid": "15fee4171ad2daf9741f41cddc09ec9b", "score": "0.5361738", "text": "public function getParentUID()\n {\n return $this->ParentUID;\n }", "title": "" }, { "docid": "217176dbb1810e59e3493e1732edd620", "score": "0.53607166", "text": "public function getTrailId() : Uuid {\n\t\treturn($this->trailId);\n\t}", "title": "" }, { "docid": "96aa689d561764765e381c9aec171138", "score": "0.5353041", "text": "public function GetId()\n\t{\n\t\t$sId = PXH_EMPTY_STRING;\n\t\t\n\t\tif (array_key_exists(\"id\", $this->_hsAttrs2))\n\t\t\t$sId = $this->_hsAttrs2[\"id\"];\n\t\t\t\n\t\treturn $sId;\n\t}", "title": "" }, { "docid": "25af6ae8c9930ff5bd80b4f5eeea65b6", "score": "0.53521454", "text": "public function getParentId()\n {\n $parentId = $this->getData(self::KEY_PARENT_ID);\n if (isset($parentId)) {\n return $parentId;\n }\n $parentIds = $this->getParentIds();\n return intval(array_pop($parentIds));\n }", "title": "" }, { "docid": "4f48c66f01cbca83128be3205887689b", "score": "0.5350826", "text": "public function getIdentifier(): Identifier;", "title": "" }, { "docid": "5947cdbca5331a08d8391e6db4448cae", "score": "0.53500086", "text": "public function GetId()\n\t{\n\t\t$sId = PXH_EMPTY_STRING;\n\t\t\n\t\tif (array_key_exists(\"id\", $this->_hsAttrs3))\n\t\t\t$sId = $this->_hsAttrs3[\"id\"];\n\t\t\t\n\t\treturn $sId;\n\t}", "title": "" }, { "docid": "1b32efbc286205b46894885a2aec2a7d", "score": "0.5348331", "text": "public function getParentId();", "title": "" }, { "docid": "f66b85b69cbc3eba7308e53d44e21697", "score": "0.534401", "text": "public function GetID () \r\n\t{\r\n\t\treturn ($ID);\r\n\t}", "title": "" }, { "docid": "988713432ca6ecca755e597a2cbcc288", "score": "0.5333457", "text": "public function getID() : string\n {\n return $this->iD;\n }", "title": "" }, { "docid": "db3a4dae3c8f2b121aabf3dd343a9590", "score": "0.53304297", "text": "public function getIdentifier()\n {\n return 1;\n }", "title": "" }, { "docid": "db06a218ff251197f0cbf407c8046631", "score": "0.53272235", "text": "public function hierarchy();", "title": "" }, { "docid": "dc79a8cb4ac8a60238443f1dd79c7cc5", "score": "0.5315833", "text": "public function getId()\n {\n return $this->uid;\n }", "title": "" }, { "docid": "4482f1559dcd156f575e5e62c5cd2697", "score": "0.5308034", "text": "public function getHumanIdentifier()\n {\n return method_exists($this, 'getName') ? $this->getName() : (string) $this->getId();\n }", "title": "" }, { "docid": "112634638e2db49df3d92a4bedc96fd6", "score": "0.53053087", "text": "public function getParentId() {\n return $this->_parent_id;\n }", "title": "" }, { "docid": "d822ba8d4ce66ee4a5c2d9f751024284", "score": "0.5300769", "text": "public function getHierarchyItem($id){\n \t\tif(!isset($id) || !isset($this->hierarchy[$id])){\n \t\t\treturn null;\n \t\t}\n \t\t\n \t\treturn $this->hierarchy[$id];\n\n \t}", "title": "" }, { "docid": "bd999bb1c08f773ccca3b86dc9f21255", "score": "0.52959234", "text": "public function getParentId()\n {\n return $this->parent_id;\n }", "title": "" }, { "docid": "bd999bb1c08f773ccca3b86dc9f21255", "score": "0.52959234", "text": "public function getParentId()\n {\n return $this->parent_id;\n }", "title": "" }, { "docid": "3db46d02675393e58f505d0b2ff3b101", "score": "0.5282234", "text": "public function getLeagueId()\n {\n $value = $this->get(self::LEAGUE_ID);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "39b1759606b313d271cfc4c0264f0c83", "score": "0.5281484", "text": "public function getId()\n {\n if(is_null($this->_id)) {\n $this->_id = spl_object_hash($this);\n }\n return $this->_id;\n }", "title": "" } ]
e684613910766eb49c2284abff50d44b
register Contact Widget widget
[ { "docid": "c43ee1ee03d4b6fea07d1b914d94840c", "score": "0.71314466", "text": "function Ftage_Newsletter_Widget() {\r\r\n register_widget( 'Ftage_Newsletter_Widget' );\r\r\n}", "title": "" } ]
[ { "docid": "0d6c862ffc6b7bbc09cd64cae3b3f26e", "score": "0.7359043", "text": "function widget( $args, $instance ) {\necho $args['before_widget'];\n?>\n\n <!-- start contact widget -->\n <?php echo $args['before_title']; ?><?php echo $instance['widget_title']; ?><?php echo $args['after_title']; ?>\n\n\n\n\t <div class=\"contactmap\">\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<?php echo $instance['cbsum']; ?>\n\t\t\t\t\t</p>\n\t <address>\n\t\t\t\t\t\t<span class=\"address\"><i class=\"material-icons\">&#xE0C8;</i><?php echo $instance['caddress']; ?></span>\n\t\t\t\t\t\t<span class=\"phone\"><i class=\"material-icons\">&#xE0CD;</i><?php echo $instance['cphone']; ?></span>\n <span class=\"email\"><i class=\"material-icons\">&#xE158;</i><?php echo $instance['cemail']; ?></span>\n\t\t\t\t\t</address>\n\t\t\t\t\t<p>\n\t\t\t\t\t\t<?php echo $instance['casum']; ?>\n\t\t\t\t\t</p>\n\n\t </div>\n\n <!-- end contact widget -->\n\n\n <?php\n echo $args['after_widget'];\n }", "title": "" }, { "docid": "a0260500d64250015d86b32017084f1e", "score": "0.7161542", "text": "function register_DAVOO_Widget(){\n register_widget('DAVOO_Widget');\n}", "title": "" }, { "docid": "a69b2cbfdd4e11e049569d486e00a53e", "score": "0.71285164", "text": "function wpb_load_widget() {\n register_widget( 'ff_social' );\n}", "title": "" }, { "docid": "16ab04ac4334ecfe473094fdfce1d127", "score": "0.70652497", "text": "public function registerWidget()\n {\n\n }", "title": "" }, { "docid": "e619a48fef94bfa21cdfe753003c6c89", "score": "0.7045026", "text": "function tokokoo_register_widget() {\r\n register_widget('Tokokoo_Follower_Widget');\r\n}", "title": "" }, { "docid": "9e44ee0cc3765f0222a7b549d1e31ba9", "score": "0.692829", "text": "function register_demo_widget(){\r\n register_widget('DemoWidget');\r\n}", "title": "" }, { "docid": "b513b6aa9e09cd84a677f63fa321dead", "score": "0.6902408", "text": "function register_foo_widget()\n{\n register_widget('Foo_Widget');\n}", "title": "" }, { "docid": "db0ebb6867b97a66c694a9b2c4868e20", "score": "0.6885394", "text": "public static function registerWidget(){\n\n\t\tregister_widget(static::class);\n\n\t}", "title": "" }, { "docid": "1061db40f32bde14b502947d913b34ba", "score": "0.6876359", "text": "function register_social() {\n register_widget( 'social_widget' );\n}", "title": "" }, { "docid": "f60f09443bcd74961d7a436d7718c0a2", "score": "0.6867103", "text": "function register_comments_widget() {\n register_widget( 'comment_widget' );\n }", "title": "" }, { "docid": "d1367ecd3d0aff75df115a1d793ade7b", "score": "0.68661433", "text": "function cisco_load_twitter_widget()\n{\n register_widget('cisco_twitter_widget');\n}", "title": "" }, { "docid": "3ef9549b076a1da55688df05d5dc73da", "score": "0.6859863", "text": "function register_foo_widget() {\n register_widget( 'Foo_Widget' );\n}", "title": "" }, { "docid": "5a6a5505b65e4586306f08117dc5b18f", "score": "0.6857713", "text": "public function __construct() {\n parent::__construct(\n // Base ID of your widget\n 'seventeen_contact_address', \n\n // Widget name will appear in UI\n __('Contact Details Widget', 'seventeen'), \n\n // Widget description\n array(\n 'classname' => 'seventeen_contact_details',\n 'description' => __( 'A widget to diplay the gallery address and contact details.', 'jag_shoes' )\n )\n );\n }", "title": "" }, { "docid": "1b4ce00177e85c684e97743a8636d5e9", "score": "0.6834865", "text": "public static function register_widget() \n\t{\n\t\tadd_action('widgets_init', create_function('', 'register_widget(\"' . __CLASS__ . '\");'));\n\t}", "title": "" }, { "docid": "6fb80a562f3015f8937feabe83776397", "score": "0.6826249", "text": "public function register_mail_chimp_list_widget() {\r\n register_widget( new Admin\\Mailchimp_List_Widget() ); \r\n }", "title": "" }, { "docid": "4214ddbdb1aef7c0bdc36b1a490b4707", "score": "0.6770842", "text": "function fon_register_widgets() {\n register_widget('last_Widget');\n register_widget('social_Widget');\n}", "title": "" }, { "docid": "7d5719915c959bd8b196172a5da74be4", "score": "0.6675699", "text": "function cisco_load_subscribe_widget()\n{\n register_widget('cisco_subscribe_widget');\n}", "title": "" }, { "docid": "34d05597807044b8d0a55c5dd3ccdd4b", "score": "0.6673359", "text": "function cisco_load_bunchball_widget()\n{\n register_widget('cisco_bunchball_widget');\n}", "title": "" }, { "docid": "8c367c952452e17de23fdd127b8cb2de", "score": "0.66665274", "text": "function wpb_load_widget() {\n register_widget( 'FDInstaGetPicWidget' );\n register_widget( 'FDSocialNetworkWidget' );\n register_widget( 'FDDivInOut' );\n}", "title": "" }, { "docid": "c43fa20fb71ed13aa978f0159ffe3d48", "score": "0.6649609", "text": "function groups_register_widgetss() {\r\n\tadd_action('widgets_init', create_function('', 'return register_widget(\"BP_Groups_Grafic_Widget\");') );\r\n}", "title": "" }, { "docid": "5dcd85cc65265d6303daf90326f62917", "score": "0.66489697", "text": "function cisco_load_bye_bunchball_widget()\n{\n register_widget('cisco_bye_bunchball_widget');\n}", "title": "" }, { "docid": "1f52198f7339de77dc7f777716e0640b", "score": "0.6618693", "text": "function widget($args, $inst)\n {\n $total = $this->getTotalGroups( $inst );\n $title = $this->getVal( $inst, 'contact_title' );\n $url = $this->getVal( $inst, 'contact_map_url' );\n ?>\n <section class=\"ftco-section contact-section\">\n <div class=\"container-wrap\">\n <div class=\"row justify-content-center mb-5\">\n <div class=\"col-md-12\">\n <div class=\"mapouter\">\n <div class=\"gmap_canvas\">\n <iframe width=100% height=\"100%\" id=\"gmap_canvas\" src=\"<?php if (!empty($url)) : echo $url;endif; ?>\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\"></iframe><a href=\"https://www.embedgooglemap.org\"></a></div>\n <style>.mapouter{position:relative;text-align:right;height:400px;width:100%;}.gmap_canvas {overflow:hidden;background:none!important;height:400px;width:100%;}</style>\n </div>\n </div>\n </div>\n <div class=\"row block-9 justify-content-center\">\n <div class=\"col-md-8 mb-md-5\">\n <h3 class=\"text-center\"><?php if (!empty($title)) : echo $title;endif; ?></h3>\n <form action=\"\" id=\"contact-form\" method=\"post\" class=\"bg-light p-5 contact-form\">\n <input type=\"hidden\" name=\"form-id\"\n value=\"<?php echo wp_create_nonce( 'luongwp-contact' ) ?>\">\n <input type=\"hidden\" name=\"action\" value=\"send_message\">\n <div class=\"form-group\">\n <input type=\"text\" class=\"form-control\" name=\"contact_name\" placeholder=\"Tên\">\n </div>\n <div class=\"form-group\">\n <input type=\"text\" class=\"form-control\" name=\"contact_email\" placeholder=\"Email\">\n </div>\n <div class=\"form-group\">\n <input type=\"text\" class=\"form-control\" name=\"contact_phone\" placeholder=\"Số điện thoại\">\n </div>\n <div class=\"form-group\">\n <textarea name=\"contact_content\" id=\"\" cols=\"30\" rows=\"7\" class=\"form-control\" placeholder=\"Nội dụng...\"></textarea>\n </div>\n <div class=\"form-group\">\n <input type=\"submit\" value=\"Gửi\" class=\"btn btn-primary py-3 px-5\">\n <span id=\"contact-form-result\" style=\"display: none\"\n class=\"pt-2 pt-md-0\"></span>\n </div>\n </form>\n </div>\n </div>\n </div>\n </section>\n<?php\n }", "title": "" }, { "docid": "66627c17d78574580bc0df6ab52357c8", "score": "0.6589732", "text": "function register_Zappy_Ads_300x100_Widget() {\n register_widget('Zappy_Ads_300x100_Widget');\n}", "title": "" }, { "docid": "2576d880a7c2cd98ac17e4d481931dcb", "score": "0.6582403", "text": "function flickr_widget() {\r\n\tregister_widget( 'Flickr_widget' );\r\n}", "title": "" }, { "docid": "c7625e9b2eefb7b2325d1319ab53bfdf", "score": "0.6555668", "text": "function cisco_load_connect_widget()\n{\n register_widget('cisco_connect_widget');\n}", "title": "" }, { "docid": "38925766e671e2f2fa9df6d79e62a05e", "score": "0.65264124", "text": "function sensive_newsletter_load_widget()\n{\n register_widget('sensive_newsletter');\n}", "title": "" }, { "docid": "2dc2794cf745141f3900af5b3896fcd2", "score": "0.64940166", "text": "public function run() {\n\t\t$this->loader->add_action( 'widgets_init', 'pirate_forms_contact_widget', 'register_widget' );\n\n\t\t$this->loader->run();\n\t}", "title": "" }, { "docid": "9665f5e976bf2784c98bb92972957d45", "score": "0.6452788", "text": "function wpb_load_widget3() {\n register_widget( 'ff_related' );\n}", "title": "" }, { "docid": "3c0e67fb832d1ed02cd0d48ca6fe3d5e", "score": "0.6432173", "text": "function simple_tags_register_widget() {\n return register_widget(\"TagWidget\");\n}", "title": "" }, { "docid": "dc5182af2bafe391f3a46b8868ed6f88", "score": "0.6424789", "text": "function spmw_load_widget() {\n\n\tregister_widget( 'Simple_Phone_Menu_Widget' );\n\n}", "title": "" }, { "docid": "bce38151a1ec9fa770665177bea79d94", "score": "0.64050764", "text": "function widget( $args, $instance ) {\n\n extract( $args );\n \n $title = apply_filters( 'widget_title', $instance['title'] );\n $email = $instance['email'];\n \n \n \n \n if(isset($_POST['formSubmitted'])) {\n \n if(trim($_POST['cName']) === '' ) {\n $nameError = __('Please enter your name.', 'default');\n $hasError = true;\n } else {\n $name = trim($_POST['cName']);\n }\n\n if( trim($_POST['cEmail']) === '' ) {\n $emailError = __('Please enter your email address.', 'default');\n $hasError = true;\n } else if (!preg_match(\"/^[[:alnum:]][a-z0-9_.-]*@[a-z0-9.-]+\\.[a-z]{2,4}$/i\", trim($_POST['cEmail']))) {\n $emailError = __('You entered an invalid email address.', 'default');\n $hasError = true;\n } else {\n $cEmail = trim($_POST['cEmail']);\n }\n \n \n $url = trim($_POST['cURL']);\n \n \n if(trim($_POST['cComment']) === '' ) {\n $commentError = __('Please enter a message.', 'default');\n $hasError = true;\n } else {\n if(function_exists('stripslashes')) {\n $comment = stripslashes(trim($_POST['cComment']));\n } else {\n $comment = trim($_POST['cComment']);\n }\n }\n \n if(!isset($hasError)) {\n $emailTo = $email;\n if (!isset($emailTo) || empty($emailTo) ){\n $emailTo = get_option('admin_email');\n }\n $subject = 'From '.$name.' ['.$cEmail.'] ';\n $body = \"Phone: $name \\n\\nEmail: $cEmail \\n\\nMessage: $comment\";\n $headers = 'From: '.$name.' <'.$emailTo.'>' . \"\\r\\n\" . 'Reply-To: ' . $email;\n \n wp_mail($emailTo, $subject, $body, $headers);\n $emailSent = true;\n }\n } \n \n \n\n echo $before_widget;\n\n if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }\n\n echo '<div class=\"widget-inner c_form \">';\n \n \n \n if(isset($hasError) ) { ?>\n \n <p style=\"color:#B2950E\" >\n <span id=\"info\">sorry, some problems occured with your form submission:\n <?php \n if(isset($nameError )) echo '<br/>- '.$nameError; \n if(isset($emailError)) echo '<br/>- '.$emailError; \n if(isset($commentError)) echo '<br/>- '.$commentError; \n ?>\n \n </span>\n </p>\n \n <?php } ?>\n \n <form action=\"<?php the_permalink(); ?>\" id=\"contactForm\" method=\"post\" > \n <input type=\"text\" name=\"cName\" id=\"cName\" placeholder=\"<?php _e('Phone*' , 'default'); ?>\" required >\n <input type=\"email\" name=\"cEmail\" id=\"cEmail\" placeholder=\"<?php _e('Email*' , 'default'); ?>\" required >\n <textarea name=\"cComment\" id=\"cComment\" placeholder=\"<?php _e('Message*' , 'default'); ?>\" required></textarea>\n <input type=\"submit\" class=\"night left flat\" value=\"<?php esc_attr_e('Send', 'default'); ?>\" >\n \n <?php if(isset($emailSent) && $emailSent == true) { ?>\n <p style=\"color:#598527;\"><i class=\"icon-ok\"></i><span id=\"info\"><?php _e(\"Thanks for your Message. Your message sent successfully.\", \"default\"); ?></span></p>\n <?php } ?>\n \n <input type=\"hidden\" name=\"formSubmitted\" id=\"formSubmitted\" value=\"true\" />\n </form> \n \n \n <?php\n echo '</div>', $after_widget;\n }", "title": "" }, { "docid": "14934bdc40eea470a8b8f973a393fae4", "score": "0.63982534", "text": "function register_aqi_widget()\r\n{\r\n\tregister_widget('PARTJ_AQI_Widget');\r\n}", "title": "" }, { "docid": "b7e81ee38c6c3686f568bf7222115640", "score": "0.6391708", "text": "function cms_register_widget_login(){\n\tregister_widget('CMS_Login_Widget');\n\n}", "title": "" }, { "docid": "ffdc6a6f48d93ec44fe28baa0ba710f1", "score": "0.6389586", "text": "public function register_widget() {\n\t\twp_add_dashboard_widget(\n\t\t\t$this->id, // Widget slug.\n\t\t\t$this->title, // Title\n\t\t\t[ $this, 'build_the_widget' ] // Callback function\n\t\t);\n\t}", "title": "" }, { "docid": "7bb397f4363c6caba0c7c8032e4b7452", "score": "0.63711506", "text": "public function register_AWD_facebook_widgets()\n\t{\n\t\tglobal $wp_widget_factory;\n\t\trequire(dirname(__FILE__) . '/inc/admin/forms/like_box.php');\n\t\t$wp_widget_factory->widgets['AWD_facebook_widget_likebox'] = new AWD_facebook_widget(array('id_base' => 'like_box', 'name' => $this->plugin_name . ' ' . __('Like Box', $this->ptd), 'description' => __('Add a Facebook Like Box', $this->ptd), 'model' => $fields['like_box'], 'self_callback' => array($this, 'shortcode_like_box'), 'text_domain' => $this->ptd, 'preview' => true));\n\n\t\trequire(dirname(__FILE__) . '/inc/admin/forms/like_button.php');\n\t\t$wp_widget_factory->widgets['AWD_facebook_widget_like_button'] = new AWD_facebook_widget(array('id_base' => 'like_button', 'name' => $this->plugin_name . ' ' . __('Like Button', $this->ptd), 'description' => __('Add a Facebook Like Button', $this->ptd), 'model' => $fields['like_button'], 'self_callback' => array($this, 'shortcode_like_button'), 'text_domain' => $this->ptd, 'preview' => true));\n\n\t\trequire(dirname(__FILE__) . '/inc/admin/forms/login_button.php');\n\t\t$wp_widget_factory->widgets['AWD_facebook_widget_login_button'] = new AWD_facebook_widget(array('id_base' => 'login_button', 'name' => $this->plugin_name . ' ' . __('Login Button', $this->ptd), 'description' => __('Add a Facebook Login Button', $this->ptd), 'model' => $fields['login_button'], 'self_callback' => array($this, 'shortcode_login_button'), 'text_domain' => $this->ptd));\n\n\t\trequire(dirname(__FILE__) . '/inc/admin/forms/activity_box.php');\n\t\t$wp_widget_factory->widgets['AWD_facebook_widget_activity_box'] = new AWD_facebook_widget(array('id_base' => 'activity_box', 'name' => $this->plugin_name . ' ' . __('Activity Box', $this->ptd), 'description' => __('Add a Facebook Activity Box', $this->ptd), 'model' => $fields['activity_box'], 'self_callback' => array($this, 'shortcode_activity_box'), 'text_domain' => $this->ptd, 'preview' => true));\n\n\t\trequire(dirname(__FILE__) . '/inc/admin/forms/comments_box.php');\n\t\t$wp_widget_factory->widgets['AWD_facebook_widget_comments_box'] = new AWD_facebook_widget(array('id_base' => 'comments_box', 'name' => $this->plugin_name . ' ' . __('Comments Box', $this->ptd), 'description' => __('Add a Facebook Comments Box', $this->ptd), 'model' => $fields['comments_box'], 'self_callback' => array($this, 'shortcode_comments_box'), 'text_domain' => $this->ptd));\n\n\t\trequire(dirname(__FILE__) . '/inc/admin/forms/shared_activity_box.php');\n\t\t$wp_widget_factory->widgets['AWD_facebook_shared_activity_box'] = new AWD_facebook_widget(array('id_base' => 'shared_activity_box', 'name' => $this->plugin_name . ' ' . __('Shared Activity Box', $this->ptd), 'description' => __('Add a Facebook Shared Activity Box', $this->ptd), 'model' => $fields['shared_activity_box'], 'self_callback' => array($this, 'shortcode_shared_activity_box'), 'text_domain' => $this->ptd));\n\n\t\tdo_action('AWD_facebook_register_widgets');\n\t}", "title": "" }, { "docid": "122be84551ba1cd10403a254b6e8ef89", "score": "0.63643885", "text": "public function registerWidgets() {\n register_widget('Selfie_Zone_Widget');\n }", "title": "" }, { "docid": "5372dde3f0491860298cf4cbd8bf42fc", "score": "0.63411003", "text": "function register_users_get_widget() {\n register_widget( 'users_get_widget' );\n}", "title": "" }, { "docid": "0c5dca4efd56286ea09371c57c6d7ba9", "score": "0.63378835", "text": "function otCTAs_init_widget() {\n\tregister_widget( 'OT_CTAs' );\n}", "title": "" }, { "docid": "a090469c555d681fc4ce77348fd9a153", "score": "0.63337827", "text": "function __construct() {\n\t\n\t\t/* Widget settings. */\n\t\t$widget_ops = array( 'classname' => 'zp_contact_widget', 'description' => __('A widget that addresss your contact information.', 'novo') );\n\n\t\t/* Create the widget. */\n\t\t$this->WP_Widget( 'zp_contact_widget', __('ZP Contact Widget', 'novo'), $widget_ops );\n\t}", "title": "" }, { "docid": "f28b5fde9155851992e1e1a905c4e23d", "score": "0.632717", "text": "function wpb_load_widget_social_media() {\n register_widget( 'social_media' );\n}", "title": "" }, { "docid": "02325320bf126d671a9020f13346d90d", "score": "0.63140035", "text": "function pnp_load_widget() {\n register_widget('PNP_WhereWeAreWidget');\n}", "title": "" }, { "docid": "1b7dd4a5d8498be07654de19b0b6c08d", "score": "0.6300957", "text": "function wpb_load_widget() {\r\n register_widget( 'wpb_widget' );\r\n}", "title": "" }, { "docid": "24d2eb8ddc54f194c641182040b28f50", "score": "0.6294243", "text": "function load_My_Widget() {\n register_widget( 'My_Widget' );\n}", "title": "" }, { "docid": "43bbc6eb1c8f20bd623be3a262803c53", "score": "0.62559986", "text": "function WigetPosterS_load_widgets() {\n\tregister_widget( 'WigetPosterS_Widget' );\n}", "title": "" }, { "docid": "756e5d1d2aa089911f73d51a14afa5f4", "score": "0.6250833", "text": "function kay_load_widget() {\n register_widget( 'kay_widget' );\n}", "title": "" }, { "docid": "1e464f64813affb345ff9e1beaf24b1e", "score": "0.6234478", "text": "function wpb_load_widget() {\r\n\tregister_widget( 'wpb_widget' );\r\n}", "title": "" }, { "docid": "40a7fa5079df0cfd1831a8ad15b2ab79", "score": "0.62021613", "text": "function wpb_load_widget() {\n\tregister_widget( 'wpb_widget' );\n}", "title": "" }, { "docid": "cefb4a78bdd6df7085e7bafef480b55a", "score": "0.61990196", "text": "function cisco_load_related_links_widget()\n{\n register_widget('cisco_related_links_widget');\n}", "title": "" }, { "docid": "c921ea4685355bf0fccb26404da4e2cd", "score": "0.61963785", "text": "public function inject_widget() {\n wp_register_style('ilinaya-form-styles', plugin_dir_url( __FILE__ ) . 'assets/style.css' );\n wp_enqueue_style('ilinaya-form-styles');\n\n $this->options = $this->get_options();\n $showButton = $this->options['showButton'];\n if ($showButton === 'on') {\n $autoStart = true;\n } else { $autoStart = false; }\n if (isset($this->options['widget_id']) && !empty($this->options['widget_id']) && $this->options['enabled'] === 'on') {\n echo '\n <script type=\"text/javascript\">\n var _emv = _emv || [];\n _emv[\\'campaign\\'] = \"'.$this->options['widget_id'].'\";\n _emv[\\'position\\'] = \"'.$this->options['position'].'\";\n _emv[\\'autostart\\'] = \"'.$autoStart.'\";\n (function() {\n var em = document.createElement(\\'script\\'); em.type = \\'text/javascript\\'; em.async = true;\n em.src = \\'https://widget.ilinaya.com/s/w.js\\';\n var s = document.getElementsByTagName(\\'script\\')[0]; s.parentNode.insertBefore(em, s);\n })();\n </script>\n ';\n }\n\n }", "title": "" }, { "docid": "907ea75d9b2d7e93b8080260474f7f03", "score": "0.6182354", "text": "function ThemeWidgetFacebook() {\n\t\t$this->setup('Theme Widget - Facebook', 'Displays a Facebook Like box', array(\n\t\t\tCarbon_Field::factory('text', 'facebook_page_url')\n\t\t\t\t->set_default_value( 'https://www.facebook.com/FacebookDevelopers' ),\n\t\t), 'widget-social');\n\t}", "title": "" }, { "docid": "6416a5f3dbdb3da4029e7c11e6f1c078", "score": "0.61791784", "text": "function xt_register_widget($widget_class) {\n global $xt_widget_factory;\n $xt_widget_factory->register($widget_class);\n}", "title": "" }, { "docid": "d082e2f5abe6fcff84cdaac0045700dc", "score": "0.6173031", "text": "function msa_load_widget() {\n register_widget( 'msa_widgets' );\n}", "title": "" }, { "docid": "b6169011cdcfdbacc57149c8984ee6a9", "score": "0.6168632", "text": "function wds_hero_widget_widget() {\n\t\t\tregister_widget( 'WDS_Hero_Widget_Widget' );\n\t\t}", "title": "" }, { "docid": "0cf4742a6f5527c1f77468641fd80f94", "score": "0.61636144", "text": "function register_lshowcase_widget() {\n register_widget( 'Lshowcase_Widget' );\n}", "title": "" }, { "docid": "247b63122f2da2bc5be8cd5a14f779b2", "score": "0.6162955", "text": "function wpb_load_widget2() {\n register_widget( 'ff_share' );\n}", "title": "" }, { "docid": "5e83f58a87699acbae1c6bbd1560ea9a", "score": "0.61311585", "text": "function awesome_widget(){\n\n\n\tregister_sidebar(array(\n\t\t\t'name' => 'Home Header',\n\t\t\t'description' => 'You can add Home Header widget from here.',\n\t\t\t'id' => 'home_header'\n\t\t\t\n\t\t));\n\n\tregister_sidebar(array(\n\t\t\t'name' => 'Footer Copyright',\n\t\t\t'description' => 'You can add Footer Copyright widget from here.',\n\t\t\t'id' => 'footer_copyright'\n\t\t\t\n\t\t));\n\n\t\tregister_sidebar(array(\n\t\t\t'name' => 'Contact Phone',\n\t\t\t'description' => 'You can add Contact Phone widget from here.',\n\t\t\t'id' => 'contact_phone'\n\t\t\t\n\t\t));\n\n\t\t\tregister_sidebar(array(\n\t\t\t'name' => 'Contact Email',\n\t\t\t'description' => 'You can add Contact Email widget from here.',\n\t\t\t'id' => 'contact_email'\n\t\t\t\n\t\t));\n\n\t\t\t\tregister_sidebar(array(\n\t\t\t'name' => 'Contact Address',\n\t\t\t'description' => 'You can add Contact Address widget from here.',\n\t\t\t'id' => 'contact_address'\n\t\t\t\n\t\t));\n\n\n\n}", "title": "" }, { "docid": "409ac0dfe88cd55cad32129ef7839380", "score": "0.61239445", "text": "protected function fillExistingClientWidgets()\n {\n $this->setWidget('email', new sfWidgetFormInputText(['label' => 'Client Email']));\n }", "title": "" }, { "docid": "0debe1941d0e0b9e171db9f50811e569", "score": "0.6115258", "text": "function wolf_twitter_init() {\n\n\tregister_widget( 'Wolf_Twitter_Widget' );\n\n}", "title": "" }, { "docid": "fe4323a34990e0ef0bacb745d9d92fc6", "score": "0.6106749", "text": "function ssi_load_widget() {\n register_widget('ssi_widget');\n}", "title": "" }, { "docid": "7d6fd2e09156a340f50c4d6c55153668", "score": "0.6105401", "text": "function cpt_clients_widget() {\r\n\tregister_widget( 'Clients_Table' );\r\n}", "title": "" }, { "docid": "a69c0d3b6c7a12641ab8ad70e416ac85", "score": "0.60705715", "text": "public function registerWidgets()\n {\n register_widget('ClassyOrg_CampaignActivityWidget');\n register_widget('ClassyOrg_CampaignProgressWidget');\n register_widget('ClassyOrg_CampaignOverviewWidget');\n register_widget('ClassyOrg_CampaignFundraiserLeadersWidget');\n register_widget('ClassyOrg_CampaignFundraisingTeamLeadersWidget');\n }", "title": "" }, { "docid": "2523183aa704bfaa747a18d8dfbd7701", "score": "0.6063822", "text": "function crb_load_widgets() {\n\tregister_widget('ThemeWidgetBio');\n\tregister_widget('ThemeWidgetTwitter');\n\tregister_widget('ThemeWidgetFacebook');\n}", "title": "" }, { "docid": "be0f5509b0e40f80c32b75a95e437758", "score": "0.6052503", "text": "public static function init() {\n //Register widget settings...\n self::update_dashboard_widget_options(\n self::wid, //The widget id\n array( //Associative array of options & default values\n 'example_number' => 42,\n ),\n true //Add only (will not update existing options)\n );\n\n //Register the widget...\n add_meta_box(\n self::wid, //A unique slug/ID\n __( 'اطلاعات هاست', 'nouveau' ),//Visible name for the widget\n array('My_Dashboard_Widget','widget'), //Callback for the main widget content\n //array('My_Dashboard_Widget','config') //Optional callback for widget configuration content\n get_current_screen(),\n 'normal',\n 'high'\n );\n }", "title": "" }, { "docid": "d23b563a1870e366750bd9a29fcde700", "score": "0.6050845", "text": "function related_docs_widget_init() {\r\n\tregister_widget( 'related_docs_widget' );\r\n}", "title": "" }, { "docid": "5bf6fb4129711ad66ae2831d98dbeb50", "score": "0.6050819", "text": "function rb_load_widgets() {\r\n\tregister_widget('rb_social_widget');\r\n\tregister_widget('rb_phone_widget');\r\n\tregister_widget('rb_separator_widget');\r\n\tregister_widget('rb_twitter_widget');\r\n}", "title": "" }, { "docid": "536dbcd643c5d92c530af915c12fbc60", "score": "0.60449076", "text": "function bb_insert_custom($id)\r\n{\r\n global $post;\r\n\r\n // escreve na tela (sim, css aqui no meio é feio ;)\r\n $out = '<input type=\"hidden\" name=\"bb-custom-field-verify-key\" id=\"bb-custom-field-verify-key\" value=\"' . wp_create_nonce('bb-custom-field') . '\" />';\r\n $out .= '<div id=\"bb-custom-editform\" style=\"display:none\">';\r\n $out .= '<h4>Widget</h4><span><label for=\"bb-custom-tags\">Tags</label> <input type=\"text\" name=\"bb-custom-tags\" id=\"bb-custom-tags\" value=\"' . get_post_meta($post->ID, 'bb-custom-tags', TRUE) . '\" /></span>';\r\n $out .= '</div>';\r\n\r\n echo $out;\r\n}", "title": "" }, { "docid": "deb21980d531b3f8cc36c5baaad2810f", "score": "0.6019812", "text": "function helion_load_widget() {\r\n\tregister_widget( 'Helion_Widget' );\r\n}", "title": "" }, { "docid": "157a5249987f8a36041a12134f864edf", "score": "0.6011845", "text": "function simple_staff_register_widget() {\n\tregister_sidebar( array(\n\t\t'id' => 'after-staff',\n\t\t'name' => __( 'After Staff', 'simple-staff' ),\n\t\t'description' => __( 'This is a widget area which will show after the staff archive page or single staff entry content.', 'simple-staff' ),\n\t\t'before_widget' => '<div id=\"%1$s\" class=\"widget %2$s\">',\n\t\t'after_widget' => '</div>',\n\t\t'before_title' => '<h4 class=\"widget-title\">',\n\t\t'after_title' => '</h4>'\n\t) );\n}", "title": "" }, { "docid": "14d710edbb2377b85ef085834de62059", "score": "0.6008739", "text": "function vip_powered_wpcom_widget_init() {\n\tregister_widget('WPCOM_Widget_VIP_Powered');\n}", "title": "" }, { "docid": "bee56bdd4ca530547249ac903ec801b9", "score": "0.5996331", "text": "function wcmb_widgets_init() {\n\t// register_widget('BookInfoWidget');\n}", "title": "" }, { "docid": "086ff300f5deaf759b8a7cf3a14ef62f", "score": "0.59942657", "text": "function ism_load_widget() {\n\tregister_widget( 'ism_department_widget' );\n}", "title": "" }, { "docid": "2b6ef2d9238b3c529357e0355a5c540b", "score": "0.5981863", "text": "function widget( $args, $instance ) {\n\textract( $args );\n\n\t/* Our variables from the widget settings. */\n\t$title = apply_filters('widget_title', $instance['title'] );\n\tif( function_exists('icl_t') ) $text_code = icl_t( 'rehub_theme' , 'widget_content_'.$this->id , $instance['text_code'] ); else $text_code = $instance['text_code'] ;\n\t$feedburner = $instance['feedburner'];\n\n\t\n\t/* Before widget (defined by themes). */\n\techo $before_widget;\n\n\t/* Display the widget title if one was input (before and after defined by themes). */\n\tif ( $title )\n\t\techo '<div class=\"title\">' . $title . '</div>';\n\t?>\t\n\t\t<form action=\"//feedburner.google.com/fb/a/mailverify\" method=\"post\" target=\"popupwindow\" onsubmit=\"window.open('http://feedburner.google.com/fb/a/mailverify?uri=<?php echo $feedburner ; ?>', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true\">\n \t<input class=\"feedburner-email\" type=\"text\" name=\"email\" onblur=\"if (value == '') {value = '<?php _e( 'Enter e-mail address' , 'rehub_framework') ; ?>'}\" onfocus=\"if (value == '<?php _e( 'Enter e-mail address' , 'rehub_framework') ; ?>') {value = ''}\" value=\"<?php _e( 'Enter e-mail address' , 'rehub_framework') ; ?>\"/>\n <input class=\"feedburner-subscribe\" type=\"submit\" name=\"submit\" value=\"<?php _e( 'GO' , 'rehub_framework') ; ?>\"/>\n <input type=\"hidden\" value=\"<?php echo $feedburner ; ?>\" name=\"uri\">\n <input type=\"hidden\" name=\"loc\" value=\"<?php echo get_locale() ?>\">\n </form>\n <p><i class=\"fa fa-rss\"></i> <?php echo $text_code ;?></p>\t\n\t<?php\n\n\t/* After widget (defined by themes). */\n\techo $after_widget;\n}", "title": "" }, { "docid": "a35e545d70744b3d4ccc78adc6d7e4f9", "score": "0.59792167", "text": "function b4bProductCategories_widget() { \n register_widget( new b4bProductCategories_widget() );\n }", "title": "" }, { "docid": "f2dd3624e8c93d70dbf0d4e0ff367087", "score": "0.59719545", "text": "public function __construct() {\n\t\t$widget_ops = array(\n\t\t\t'classname' \t\t\t\t\t=> 'address-widget',\n\t\t\t'description' \t\t\t\t\t=> __( 'Address widget', THEME_TEXT_DOMAIN ),\n\t\t\t'customize_selective_refresh' \t=> true,\n\t\t);\n\t\tparent::__construct( 'address_widget', __( 'Address', THEME_TEXT_DOMAIN ), $widget_ops );\n\t}", "title": "" }, { "docid": "b6604e93c501ed2166c33e8ff4ac15f3", "score": "0.5969499", "text": "function _register() {\n global $xt_page_layouts;\n $settings = array();\n if (!empty($xt_page_layouts)) {\n foreach ($xt_page_layouts as $layout) {\n $spans = $layout['layout'];\n if (!empty($spans) && is_array($spans)) {\n foreach ($spans as $span => $_widgets) {\n if (!empty($_widgets))\n $settings = array_merge($settings, array_keys($_widgets));\n }\n }\n }\n }\n\n $empty = true;\n $number = 1;\n if (is_array($settings)) {\n foreach ($settings as $setting) {\n $ids = explode('-', $setting);\n if ($ids[0] == $this->id_base) {\n $this->_set($ids[1]);\n $this->_register_one($ids[1]);\n $empty = false;\n $number++;\n }\n }\n }\n if ($empty) {\n // If there are none, we register the widget's existence with a\n // generic template\n $this->_set(1);\n $this->_register_one();\n }\n }", "title": "" }, { "docid": "47c841d332cea947e808d18d3f91d0a7", "score": "0.5969286", "text": "function cwi_custom_widget_uploader_reg () {\n register_widget( 'cwi_custom_widget_uploader' );\n}", "title": "" }, { "docid": "0da5d299124c402c6ae14e7eccd8eccd", "score": "0.5966439", "text": "function wp_widgets_init(){\n include_once WW_PLUGIN_DIR.'/common/wp-widget-ww-corral.php';\n include_once WW_PLUGIN_DIR.'/common/wp-widget-ww-widget.php';\n register_widget( 'WidgetWrangler_Corral_Widget' );\n register_widget( 'WidgetWrangler_Widget_Widget' );\n }", "title": "" }, { "docid": "f07af412281140a87e243da3234a8efe", "score": "0.59516084", "text": "function widget($args, $instance) {\n global $cs_plugin_options, $cs_theme_option, $facebook_page_url, $facebook_acess_token, $consumer_key, $consumer_secret;\n extract($args, EXTR_SKIP);\n $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title']);\n $facebook_page_url = $instance['facebook_page_url'];\n $facebook_acess_token = $instance['facebook_acess_token'];\n $facebook_text = $instance['facebook_text'];\n $twitter_username = $instance['twitter_username'];\n $twitter_text = $instance['twitter_text'];\n $googleplus_text = $instance['googleplus_text'];\n $googleplus_id = $instance['googleplus_id'];\n $youtube_text = $instance['youtube_text'];\n $youtube_id = $instance['youtube_id'];\n $vimeo_text = $instance['vimeo_text'];\n $vimeo_id = $instance['vimeo_id'];\n $dribble_text = $instance['dribble_text'];\n $dribble_id = $instance['dribble_id'];\n cs_enqueue_count_nos();\n /* for twitter */\n $consumer_key = $consumer_secret = $access_token = $access_token_secret = '';\n if ( isset($cs_plugin_options['cs_consumer_key']) and $cs_plugin_options['cs_consumer_key'] <> '' )\n $consumer_key = $cs_plugin_options['cs_consumer_key'];\n if ( isset($cs_plugin_options['cs_consumer_secret']) and $cs_plugin_options['cs_consumer_secret'] <> '' )\n $consumer_secret = $cs_plugin_options['cs_consumer_secret'];\n\n\n echo cs_allow_special_char($before_widget);\n if ( ! empty($title) && $title <> ' ' ) {\n echo cs_allow_special_char($before_title);\n echo cs_allow_special_char($title);\n echo cs_allow_special_char($after_title);\n }\n ?>\n <ul class=\"socialmedia-list\"> \n <?php\n if ( function_exists('curl_init') && ! empty($facebook_page_url) ) {\n $facbook_count = cs_facebook_like_count($facebook_page_url);\n ?> \n <li><a href=\"<?php echo cs_server_protocol(); ?>facebook.com/<?php echo esc_url($facebook_page_url); ?>\" data-original-title=\"facebook\"><i class=\"icon-facebook-square\"></i><span>\n <?php echo esc_html($facebook_text); ?></span><em>(<?php echo cs_facebook_like_count(); ?>)</em></a></li> \n\n <?php\n }\n if ( ! empty($twitter_username) && ! empty($consumer_key) && ! empty($consumer_secret) ) {\n ?>\n <li><a href=\"<?php echo cs_server_protocol(); ?>twitter.com/<?php echo esc_html($twitter_username); ?>\" data-original-title=\"twitter\"><i class=\"icon-twitter2\"></i><span>\n <?php echo esc_html($twitter_text); ?></span><em>(<?php echo getTwitterFollowers($twitter_username); ?>)</em></a></li>\n <?php\n }\n if ( function_exists('file_get_contents') && ! empty($googleplus_id) ) {\n $gplus_count = cs_google_plus_count($googleplus_id);\n ?> \n <li><a href=\"<?php echo cs_server_protocol(); ?>plus.google.com/<?php echo esc_html($googleplus_id); ?>/posts\" data-original-title=\"google\"><i class=\"icon-google-plus\"></i><span>\n <?php echo esc_html($googleplus_text); ?></span><em>(<?php echo esc_html($gplus_count); ?>)</em></a></li> <?php } ?>\n <?php\n if ( isset($dribble_id) && ! empty($dribble_id) ) {\n $dribble = cs_dribble_count($dribble_id);\n ?> \n <li><a href=\"<?php echo esc_url($dribble_id); ?>\" data-original-title=\"linkedin\"><i class=\"icon-dribbble2\"></i><span><?php echo esc_html($dribble_text); ?>\n </span><em>(<?php echo esc_html($dribble); ?>)</em></a></li>\n <?php } ?>\n </ul>\n <?php\n echo cs_allow_special_char($after_widget);\n }", "title": "" }, { "docid": "8b6de65624f3905f3a0954d8d92f92c8", "score": "0.5950992", "text": "public function register_widget($widget){\n if($this->type_exists($widget['Type'])){\n array_push($this->widgets, $widget);\n }\n else{\n die(\"Cannot register invalid widget type.\");\n }\n }", "title": "" }, { "docid": "b6e06a040fbe1b944b2819fbdc014227", "score": "0.59460765", "text": "public function register_widgets() {\n\t\t// It's now safe to include Widgets files.\n\t\t$this->include_widgets_files();\n\n\t\t// Register the plugin widget classes.\n\t\t\\Elementor\\Plugin::instance()->widgets_manager->register_widget_type( new Widgets\\TextField() );\n\t}", "title": "" }, { "docid": "3e37e16731f6c479d0839b27e3bbf44a", "score": "0.5942939", "text": "public function register_mts_google_translate_widget() {\n register_widget('MTS_Google_Translate_Widget');\n }", "title": "" }, { "docid": "c0faf1a73fd5bcfb41aff901c9c9192c", "score": "0.59293246", "text": "function admin_widget_init()\n\t{\n\t\tif (!function_exists('register_sidebar_widget') || !function_exists('register_widget_control'))\n\t\treturn;\n\n\t\t// Tell Dynamic Sidebar about our new widget and its control\n\t\tregister_sidebar_widget(array (\n\t 'Subscribe 2 widget',\n\t 'widgets'\n\t ), array('subscribe2_widget','frontend_widget_init'));\n\n\t // this registers the widget control form\n\t register_widget_control(array (\n\t 'Subscribe 2 widget',\n\t 'widgets'\n\t ), array('subscribe2_widget','admin_widget_controls'), 335, 700);\n\t}", "title": "" }, { "docid": "5e3824065c7cde74a743a33e32e5fd48", "score": "0.5929221", "text": "function panamazonica_register_widgets() {\n\t\n\tregister_widget( 'Widget_Acontece_Rede' );\n\tregister_widget( 'Widget_Documentos' );\n\tregister_widget( 'Widget_Agenda' );\n\tregister_widget( 'Widget_Usuarios_Grupo' );\n\tregister_widget( 'Widget_Recent_Posts' );\n\t\n\tunregister_widget( 'WP_Widget_Search' );\n\tunregister_widget( 'WP_Widget_Recent_Posts' );\n}", "title": "" }, { "docid": "5b56f4f6d4a1dc69d34a4e55e2faa813", "score": "0.5928792", "text": "private function add_contact_shortcode() {\n\t\t$this->add_control(\n\t\t\tnew Hestia_Customizer_Control(\n\t\t\t\t'hestia_contact_form_shortcode',\n\t\t\t\tarray(\n\t\t\t\t\t'sanitize_callback' => 'sanitize_text_field',\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'label' => esc_html__( 'Shortcode', 'hestia' ),\n\t\t\t\t\t'section' => 'hestia_contact',\n\t\t\t\t\t'priority' => 26,\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "72dd3531f5f527a00be3223a3469f11f", "score": "0.5923407", "text": "function addresses_cck_widget_info() {\n return array(\n 'addresses_elements' => array(\n 'label' => t('Address Field'),\n 'field types' => array('addresses_cck'),\n 'multiple values' => CONTENT_HANDLE_CORE,\n 'callbacks' => array('default value' => CONTENT_CALLBACK_DEFAULT),\n ),\n );\n}", "title": "" }, { "docid": "8c80a2cd62e488fb2204bf6c959cc50c", "score": "0.5919455", "text": "function register_tags_widgets_widget() {\n register_widget( 'tags_widgets' );\n}", "title": "" }, { "docid": "501920db401374246c16c768056f40a2", "score": "0.59104323", "text": "function charitydata_load_widgets() {\n\tregister_widget( 'charitydata_widget' );\n}", "title": "" }, { "docid": "11a53e018275aa936a1c2385a0a9a8eb", "score": "0.5900179", "text": "public function generate_widget( $content ) {\n\t\t$nonce = wp_create_nonce( 'wp_rest' );\n\t\t$content .= '<div id=\"budbee-widget-container\">';\n\t\t$content .= '<h1>' . $this->budbee_settings->get_widget_title() . '</h1>';\n\t\t$content .= '<span style=\"float:left;\">' . __( 'At our store you can get deliveries to your door, to a pickup-point or to a pickup-box. Enter your postalcode below to get personalized options', 'budbee-widget-plugin' ) . '</span>';\n\t\t$content .= '<input type=\"text\" onkeypress=\"budbee_check_key(event)\" id=\"budbee-postal-value\" name=\"budbee-postal\" placeholder=\"' . __( 'Enter your postalcode', 'budbee-widget-plugin' ) . '\">';\n\t\t$content .= '<input type=\"hidden\" value=\"' . $nonce . '\" id=\"budbee-postal-nonce\">';\n\t\t$content .= '<button class=\"button alt\" onclick=\"budbee_check_alternatives()\">' . __( 'See alternatives', 'budbee-widget-plugin' ) . '</button>';\n\t\t$content .= '<ul>';\n\t\t$content .= '<li id=\"budbee-home-response\" style=\"display:none\" class=\"dashicons-before dashicons-yes\">' . __( 'Homedelivery', 'budbee-widget-plugin' ) . '<img src=\"' . plugins_url( 'img/home-full-logo-medium.png', __FILE__ ) . '\"/></li>';\n\t\t$content .= '<li id=\"budbee-box-response\" style=\"display:none\" class=\"dashicons-before dashicons-yes\">' . __( 'PickupBox', 'budbee-widget-plugin' ) . '<img src=\"' . plugins_url( 'img/box-full-logo-medium.png', __FILE__ ) . '\"/></li>';\n\t\t$content .= '<li id=\"budbee-fallback-text\" style=\"display:none\" class=\"dashicons-before dashicons-yes\">' . $this->budbee_settings->get_fallback_text() . '</li>';\n\t\t$content .= '</ul>';\n\t\t$content .= '</div>';\n\t\techo $content;\n\t}", "title": "" }, { "docid": "2b5b1000d30d34ad47c17e0a99b5dbdc", "score": "0.5898947", "text": "function widgets() {\n\tregister_widget( 'News_And_Updates_Widget' );\n\tregister_widget( 'Featured_Page_Widget' );\n}", "title": "" }, { "docid": "c7f0d733d59aae73b17867402023124a", "score": "0.5890735", "text": "function elverfolk_widget_init() {\r\n register_sidebar(array(\r\n 'name' => 'Social Link Footer Area',\r\n 'id' => 'socialarea',\r\n 'before_widget' => '<div class=\"social-media\">',\r\n 'after_widget' => '</div>',\r\n ));\r\n register_sidebar(array(\r\n 'name' => 'Contact Footer Area',\r\n 'id' => 'contactarea',\r\n 'before_widget' => '<div class=\"contact-area\">',\r\n 'after_widget' => '</div>',\r\n ));\r\n register_sidebar(array(\r\n 'name' => 'Frontpage Area',\r\n 'id' => 'frontpagearea',\r\n 'before_widget' => '<div class=\"frontpage-area\">',\r\n 'after_widget' => '</div>',\r\n ));\r\n}", "title": "" }, { "docid": "9470f28476d1ad741bc04cf1f09c1a13", "score": "0.5879199", "text": "function register_upcoming_tours() {\n register_widget( 'Upcoming_Tours' );\n}", "title": "" }, { "docid": "58dc1c9339c254635b4bc8105a8eb574", "score": "0.58695537", "text": "function msblog_load_widget() {\n\tregister_widget( 'sharethis_widget' );\n\tregister_widget( 'relatedPosts_widget' );\n\tregister_widget( 'latestPosts_widget' );\n\tregister_widget( 'popularPosts_widget' );\n\tregister_widget( 'eloqua_widget' );\n\tregister_widget( 'tagcloud_widget' );\n\tregister_widget( 'twitter_widget' );\n}", "title": "" }, { "docid": "4a65b970cfb0f5c107f9f3a25098b3da", "score": "0.5863366", "text": "public function register_settings_section($widget)\n {\n }", "title": "" }, { "docid": "4c86a631e4f2e560af309bf47b09d97c", "score": "0.5862175", "text": "function leros_load_widget() {\n register_widget( 'leros_spotify_widget' );\n}", "title": "" }, { "docid": "f4d4c00dc64b9df9715260dcf52a9274", "score": "0.5861825", "text": "public function __construct()\n {\n // Set the default attributes in the theme by means of an action hook.\n $this->attributes = apply_filters( 'carawebs/contact-form-data', NULL );\n // No default title - this should be controlled by the widget.\n $this->attributes['title'] = NULL;\n $widget_ops = array(\n 'classname' => 'carawebs-contact-form',\n 'description' => 'Carawebs Custom Contact Form',\n );\n parent::__construct( 'carawebs-contact-form', 'Carawebs Custom Contact Form', $widget_ops );\n\n }", "title": "" }, { "docid": "8d814181eb45778d6110932491ccbb5c", "score": "0.58562356", "text": "function form( $instance ) {\n \t$widget_title = esc_attr( $instance['widget_title'] );\n $cbsum = esc_attr( $instance['cbsum'] );\n $cphone = esc_attr( $instance['cphone'] );\n $casum = esc_attr( $instance['casum'] );\n $cemail = esc_attr( $instance['cemail'] );\n $caddress = esc_attr( $instance['caddress'] );\n ?>\n <p>\n <label for=\"<?php echo $this->get_field_id( 'widget_title' ); ?>\"><?php _e('Widget Title:', 'kailoframework') ?></label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id( 'widget_title' ); ?>\" name=\"<?php echo $this->get_field_name( 'widget_title' ); ?>\" type=\"text\" value=\"<?php echo $widget_title; ?>\" />\n </p>\n\n <p>\n <label for=\"<?php echo $this->get_field_id( 'cbsum' ); ?>\"><?php _e('Summary Before Address:', 'kailoframework') ?></label>\n <textarea style=\"height:100px;\" class=\"widefat\" id=\"<?php echo $this->get_field_id( 'cbsum' ); ?>\" name=\"<?php echo $this->get_field_name( 'cbsum' ); ?>\"><?php echo $cbsum; ?></textarea>\n </p>\n\n <p>\n <label for=\"<?php echo $this->get_field_id( 'caddress' ); ?>\"><?php _e('Contact Address:', 'kailoframework') ?></label>\n <textarea style=\"height:100px;\" class=\"widefat\" id=\"<?php echo $this->get_field_id( 'caddress' ); ?>\" name=\"<?php echo $this->get_field_name( 'caddress' ); ?>\"><?php echo $caddress; ?></textarea>\n </p>\n\n <p>\n <label for=\"<?php echo $this->get_field_id( 'cphone' ); ?>\"><?php _e('Contact Phone:', 'kailoframework') ?></label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id( 'cphone' ); ?>\" name=\"<?php echo $this->get_field_name( 'cphone' ); ?>\" type=\"text\" value=\"<?php echo $cphone; ?>\" />\n </p>\n\n <p>\n <label for=\"<?php echo $this->get_field_id( 'cemail' ); ?>\"><?php _e('Contact Email:', 'kailoframework') ?></label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id( 'cemail' ); ?>\" name=\"<?php echo $this->get_field_name( 'cemail' ); ?>\" type=\"text\" value=\"<?php echo $cemail; ?>\" />\n </p>\n\n <p>\n <label for=\"<?php echo $this->get_field_id( 'casum' ); ?>\"><?php _e('Summary After Address', 'kailoframework') ?></label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id( 'casum' ); ?>\" name=\"<?php echo $this->get_field_name( 'casum' ); ?>\" type=\"text\" value=\"<?php echo $casum; ?>\" />\n </p>\n\n<?php\n }", "title": "" }, { "docid": "ee8728c171438ef7d7bcc7862d487b24", "score": "0.5852429", "text": "function __construct(){\r\r\n\t\t\t$widget_ops = array( 'description' => esc_html__('Ftage contact for address email and phone no.','ftagementor'),'customize_selective_refresh' => true, );\r\r\n\t\t\tparent:: __construct('Ftage_Newsletter_Widget',\r\r\n\t\t\t\tesc_html__('Ftage: Newsletter','ftagementor'), $widget_ops );\r\r\n\t\t}", "title": "" }, { "docid": "edcd6e52014a3022cf039d81fc6dd01e", "score": "0.58498204", "text": "function pls_register_widgets() {\n\n\t/** Load the Placester Agent widget. */\n\trequire_once( trailingslashit( PLS_FUNCTIONS_DIR ) . 'widgets/agent.php' );\n\n\t/** Load the Placester Office widget. */\n\trequire_once( trailingslashit( PLS_FUNCTIONS_DIR ) . 'widgets/office.php' );\n\n\t/** Load the Placester Contact widget. */\n\trequire_once( trailingslashit( PLS_FUNCTIONS_DIR ) . 'widgets/contact.php' );\n\n\t/** Load the Placester Recent Posts widget. */\n\trequire_once( trailingslashit( PLS_FUNCTIONS_DIR ) . 'widgets/recent-posts.php' );\n\n\t/** Load the Placester Quick Search widget. */\n\trequire_once( trailingslashit( PLS_FUNCTIONS_DIR ) . 'widgets/quick-search.php' );\n\n\t/** Load the Placester Listings widget. */\n\trequire_once( trailingslashit( PLS_FUNCTIONS_DIR ) . 'widgets/listings.php' );\n\n\t/* Register each of the widgets. */\n\tregister_widget( 'PLS_Widget_Agent' );\n\tregister_widget( 'PLS_Widget_Office' );\n\tregister_widget( 'PLS_Widget_Recent_Posts' );\n\tregister_widget( 'PLS_Quick_Search_Widget' );\n\tregister_widget( 'PLS_Widget_Listings' );\n\tregister_widget( 'Placester_Contact_Widget' );\n}", "title": "" }, { "docid": "ff93341ac4b1f0dcfe198e7cd1462829", "score": "0.58278596", "text": "function social_links_wrapper(){\r\n if ( !function_exists('register_sidebar_widget') || !function_exists('register_widget_control') )\r\n \treturn; // ...and if not, exit gracefully from the script.\r\n\t\t\r\n\t\t// Displays the icons in the sidebar\r\n\t\tfunction widget_social_links($args) {\r\n\r\n\t\t\tglobal $PLUGIN_VERSION;\r\n\t\t\t\r\n\t\t\textract($args);\r\n\r\n\t\t\t$options = get_option('widget_social_links');\r\n\t\t\t$title = empty($options['title']) ? 'Social Links' : $options['title'];\r\n\t\t\t$width = empty($options['width']) ? 20 : $options['width'];\r\n\r\n\t\t\t\techo $before_widget;\r\n\t\t\t\techo $before_title . $title . $after_title ;\r\n\r\n\t\t\techo '<!-- Social Links Version: '. $PLUGIN_VERSION .' -->';\r\n\t\t\techo \"<div id='socialLinksContainer' style='width:$width\".\"px;'>\";\r\n\t\t\techo generateSocialLinksInnerHTML();\r\n\t\t\techo '</div>';\r\n\t\t\techo $after_widget;\r\n\r\n\t\t}\r\n\r\n\t//Config Panel\r\n\tfunction widget_social_links_control() {\r\n\r\n\t\t$options = get_option('widget_social_links');\r\n\r\n \r\n if ( $_POST['social-links-submit'] ) {\r\n\r\n\r\n\t\t\t\t// Clean up control form submission options\r\n\t\t\t\t$newoptions['title'] = strip_tags(stripslashes($_POST['social-links-title']));\r\n\t\t\t\t$newoptions['width'] = strip_tags(stripslashes($_POST['social-links-width']));\r\n \t $newoptions['openInNewWindow'] = $_POST['social-links-openInNewWindow'];\r\n\r\n\r\n\r\n\r\n\t\t\t\tif ( $options != $newoptions ) {\r\n\t\t\t\t\t$options = $newoptions;\r\n\t\t\t\t\tupdate_option('widget_social_links', $options);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$title = empty($options['title']) ? 'Social Links' : $options['title'];\r\n\t\t\t$width = empty($options['width']) ? 100 : $options['width'];\r\n\t\t\t$openInNewWindow = empty($options['openInNewWindow']) ? false : true;\r\n\r\n\r\n\t\t\t?>\r\n\r\n\t\t\t\t<table>\r\n\t\t\t\t\t<tr><td>\r\n\t\t\t\t\t\t<label for=\"social-links-title\">Widget title: <input type=\"text\" id=\"social-links-title\" name=\"social-links-title\" value=\"<?php echo $title; ?>\" /></label>\r\n\t\t\t\t\t</td></tr>\r\n\t\t\t\t\t<tr><td>\r\n\t\t\t\t\t\t<label for=\"social-links-width\">Width: <input type=\"text\" id=\"social-links-width\" name=\"social-links-width\" style=\"width:25px;\" value=\"<?php echo $width; ?>\" /> pixels</label>\r\n\t\t\t\t\t</td></tr>\r\n\r\n <tr><td>\r\n <label for=\"social-links-openInNewWindow\">\r\n <input type=\"checkbox\" id=\"social-links-openInNewWindow\" name=\"social-links-openInNewWindow\" <?php if($openInNewWindow){echo \"checked='true'\";} ?>/>\r\n Open links in new window\r\n </label>\r\n </td></tr>\r\n\r\n </table>\r\n\r\n\r\n\t\t\t\t<input type=\"hidden\" name=\"social-links-submit\" id=\"social-links-submit\" value=\"1\" />\r\n\r\n\t\t\t<?php\r\n\t\t}//End of widget_social_links_control\r\n\r\n\r\n\t\tfunction wp_ajax_social_links_add_network(){\r\n\t\t\t// read submitted information\r\n \t\t$icon = $_POST['icon'];\r\n\t\t\t$url = $_POST['url'];\r\n\t\t\t$displayname = $_POST['displayname'];\r\n\t\t\t$messageId = $_POST['responseDiv'];\r\n\r\n\t\t\t$result = insertNetwork($icon,$url,$displayname);\r\n\t\t\tif($result == 1)\r\n\t\t \t\t$result = 'Link added.';\r\n\t\t \telse\r\n\t\t \t\t$result = \"There was a problem adding the link. Refresh the page and try again.\";\r\n\r\n\t\t \t$innerHTML = generateSocialLinksPreviewInnerHTML('');\r\n\t\t\tdie('\r\n\t\t\t\t$(\"message\").innerHTML = \"'.$result.'\";\r\n\t\t\t\t$(\"message\").className=\"updated fade\";\r\n\t\t\t\t$(\"message\").style.visibility = \"visible\";\r\n\t\t\t\tdocument.getElementById(\"displayDiv\").innerHTML = \"'.$innerHTML.'\";\r\n\t\t\t\tcreateSortables();\r\n\r\n\r\n\t\t\t');\r\n\r\n\t\t\t//Add this line to the above javascript to show the complete table.\r\n\t\t\t//document.getElementById(\"editDiv\").innerHTML = \"' . generateSocialLinksEditInnerHTML(). '\";\r\n\t\t}\r\n\r\n\t\t//TODO: Implement the add ajax process to send data and let the javascript add child elements\r\n\t\t//This is to avoid using innerHTML replacement and will then allow for more advanced client side effects\r\n\t/*\tfunction wp_ajax_social_links_add_network_send_data(){\r\n\t\t\t// read submitted information\r\n\t\t\tglobal $definitions;\r\n\r\n\t\t\t$selectedIndex = $_POST['networkIndex'];\r\n\t\t\t$data = $_POST['value'];\r\n\r\n\t\t\t$result = insertNetwork($selectedIndex,$data);\r\n\t\t\t$data = generateSocialLinksData();\r\n\t\t\t//$result = 'fake insert';\r\n\t\t\tdie(\"$result\r\n\t\t\t\t$('message').innerHTML = 'Database result is $result.';\r\n\t\t\t\t$('message').class='updated fade';\r\n\t\t\t\t$('message').style.visibility = 'visible';\r\n\t\t\t\tupdateSocialLinks($data);\r\n\t\t\t\");\r\n\r\n\t\t}\r\n\t\t*/\r\n\t\tfunction wp_ajax_social_links_delete_network(){\r\n\t\t\tglobal $wpdb;\r\n\t\t \tglobal $definitions;\r\n\r\n\t\t\t$linkId = $_POST['linkId'];\r\n\t\t \tsocial_links_log('deleting linkID='. $linkId,2);\r\n\t\t \t$table_name = $wpdb->prefix . \"social_links\";\r\n\t\t \t$sql = 'delete from ' . $table_name . ' where id='.$linkId;\r\n\t\t \t$result = $wpdb->query($wpdb->prepare($sql));\r\n\r\n\t\t \tif($result == 1)\r\n\t\t \t\t$result = 'Removed link.';\r\n\t\t \telse\r\n\t\t \t\t$result = 'There was a problem deleting the link. Refresh the page and try again.'.$sql;\r\n\t\t \tsocial_links_log(\"delete network result: $result\",0);\r\n\t\t \tdie('\r\n\t\t\t\t$(\"message\").innerHTML = \"'.$result.'\";\r\n\t\t\t\t$(\"message\").className=\"updated fade\";\r\n\t\t\t\t$(\"message\").style.visibility = \"visible\";\r\n\t\t\t');\r\n\t\t}\r\n\r\n\t\t function insertNetwork($icon,$url,$displayname){\r\n\t\t social_links_log(\"Inserting new network. $displayname:($icon) -> $url\",2);\r\n\t\t \tglobal $wpdb;\r\n\r\n\t\t \t$table_name = $wpdb->prefix . \"social_links\";\r\n\t\t\t$sql = \"Insert into $table_name (icon,url,display_name,sort_order) VALUES ('\".$icon.\"','\".$url.\"','\".$displayname.\"',1000)\";\r\n\t\t\tsocial_links_log(\"SQL : $sql\",0);\r\n\r\n $result = $wpdb->query($wpdb->prepare($sql));\r\n social_links_log(\"insert network result: $result\",0);\r\n\t\t \treturn $result;\r\n\t\t }\r\n\r\n\r\n\r\n\t\t function getSocialLinks(){\r\n\t\t \tglobal $wpdb;\r\n\t\t \t$table_name = $wpdb->prefix . \"social_links\";\r\n\t\t \t$sql = 'Select * from ' . $table_name . ' order by sort_order';\r\n\t\t \t$results = $wpdb->get_results($sql,ARRAY_A);\r\n\t\t \treturn $results;\r\n\r\n\t\t }\r\n\r\n\t\t function generateSocialLinksInnerHTML(){\r\n\t\t \tglobal $definitions;\r\n\t\t \tglobal $plugindir;\r\n\r\n\t\t \t$options = get_option('widget_social_links');\r\n $target = empty($options['openInNewWindow']) ? \"_self\" : \"_new\";\r\n\t\t \t$rows = getSocialLinks();\r\n\t\t \tif(count($rows)==0)\r\n\t\t \t\treturn;\r\n\t\t \t\r\n\t\t \tforeach ($rows as $row) {\r\n\r\n\t\t\t\t$siteId = $row['id'];\r\n\t\t\t\t$icon = $row['icon'];\r\n\t\t\t\t$url = $row['url'];\r\n\t\t\t\t$displayname = $row['display_name'];\r\n\t\t\t\t\r\n\t\t\t\t$innerHTML = $innerHTML . \"<a id='link_$siteId' target='$target' href='$url'><img src='$plugindir/images/icons/$icon' title='\".$displayname.\"' alt='\".$displayname.\"'/></a>\";\r\n\t\t\t\tif($row != $rows[count($rows)-1]){\r\n\t\t\t\t\t$innerHTML = $innerHTML.\"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn $innerHTML;\r\n\t\t }\r\n\r\n\t\t function generateSocialLinksPreviewInnerHTML($delimiter){\r\n\t\t \tglobal $definitions;\r\n\t\t \tglobal $plugindir;\r\n\r\n\t\t \t$rows = getSocialLinks();\r\n\t\t \tif(count($rows)==0)\r\n\t\t \t\treturn;\r\n\t\t \t\r\n\t\t \tforeach ($rows as $row) {\r\n\t\t \t\t$siteId = $row['id'];\r\n\t\t\t\t$icon = $row['icon'];\r\n\t\t\t\t$url = $row['url'];\r\n\t\t\t\t$displayname = $row['display_name'];\r\n\r\n\t\t \t\t$innerHTML = $innerHTML . \"<span id='link_$siteId' title='$displayname ($url)'><img style='margin:2px;cursor:move;' src='$plugindir/images/icons/$icon'/></span>\";\r\n\t\t\t\tif($row != $rows[count($rows)-1]){\r\n\t\t\t\t\t$innerHTML = $innerHTML.$delimiter;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn $innerHTML;\r\n\t\t }\r\n\r\n\t\t /*\r\n\t\t function generateSocialLinksData(){\r\n\t\t\tglobal $definitions;\r\n\r\n\t\t \t$rows = getSocialLinks();\r\n\t\t \tif(count($rows)==0)\r\n\t\t \t\treturn;\r\n\t\t \t////WPD_print(\"Found\".count($rows).\" networks.\");\r\n\t\t \t$data = '';\r\n\t\t \tforeach ($rows as $row) {\r\n\t\t \t\t$linkInfoArray = $definitions[$row[2]];\r\n\t\t \t\t$data += \"link_$row[0],$linkInfoArray[0],$linkInfoArray[1],$linkInfoArray[4]\\n\";\r\n\t\t \t}\r\n\t\t \treturn $data;\r\n\r\n\t\t }\r\n\t\t*/\r\n\r\n function getIconHTML(){\r\n global $pluginrelativedir;\r\n $dir_path = dirname(realpath(__FILE__));\r\n $dir = $dir_path.'/images/icons';\r\n\r\n $html = '<div>';\r\n if(is_dir($dir)){\r\n\r\n if($handle = opendir($dir)){\r\n while(($file = readdir($handle)) !== false){\r\n $ext = strrchr($file,'.');\r\n if($ext == '.png' || $ext == '.gif' || $ext == '.jpg' || $ext == '.ico'){\r\n $html = $html . \"<img src='$pluginrelativedir/images/icons/$file' alt='$file' style='margin:2px;cursor:pointer;' onclick='imageSelected(this)'/>\";\r\n }\r\n }\r\n closedir($handle);\r\n }\r\n }\r\n return $html . '</div>';\r\n }\r\n\r\n\t\tfunction social_links_admin_menu(){\r\n\t\t\tglobal $pluginrelativedir;\r\n\t\t //add_options_page('Social Links Settings', 'Social Links', 8,$pluginrelativedir.'/edit-sociallinks.php');\r\n\t\t add_management_page('Social Links Settings', 'Social Links', 8,__FILE__,'widget_social_links_settings');\r\n }\r\n\r\n\t\tfunction addHeaderCode(){\r\n\t\t\t\r\n\t\t\tglobal $plugindir;\r\n\t\t\techo '<link type=\"text/css\" rel=\"stylesheet\" href=\"' . $plugindir . '/stylesheet.css\" />' . \"\\n\";\r\n\r\n\t\t}\r\n\r\n \t\t\tglobal $plugindir;\r\n\t\t\twp_enqueue_script('social-links', $plugindir . '/javascript.js',array('sack'));\r\n\r\n\r\n \t\t\tif(strpos($_SERVER[\"REQUEST_URI\"],'wp-admin')){\r\n \t\t\t\twp_enqueue_script('scriptaculous');\r\n \t\t\t}\r\n\t\t\tadd_action('wp_head','addHeaderCode');\r\n\r\n\r\n\r\n\t\t\t//Add action to load sub menu\r\n\t\t\tadd_action('admin_menu', 'social_links_admin_menu');\r\n\r\n\r\n\r\n\r\n\t\t\t//Add ajax callback action called from client side javascript\r\n\t\t\tadd_action('wp_ajax_social_links_add_network', 'wp_ajax_social_links_add_network' );\r\n\t\t\tadd_action('wp_ajax_social_links_delete_network', 'wp_ajax_social_links_delete_network' );\r\n\r\n\t\t\tregister_sidebar_widget('Social Links', 'widget_social_links');\r\n\t\t\tregister_widget_control('Social Links', 'widget_social_links_control');\r\n\r\n\t}", "title": "" }, { "docid": "17df6c1863d73a390d058d644b0138b4", "score": "0.580987", "text": "function xt_register_page_widget($id, $name, $output_callback, $options = array()) {\n global $xt_registered_widgets, $xt_registered_widget_controls, $xt_registered_widget_updates, $_xt_deprecated_widgets_callbacks;\n $id = strtolower($id);\n\n if (empty($output_callback)) {\n unset($xt_registered_widgets[$id]);\n return;\n }\n\n $id_base = _xt_get_widget_id_base($id);\n\n $defaults = array(\n 'classname' => $output_callback\n );\n $options = wp_parse_args($options, $defaults);\n $widget = array(\n 'name' => $name,\n 'id' => $id,\n 'callback' => $output_callback,\n 'params' => array_slice(func_get_args(), 4)\n );\n $widget = array_merge($widget, $options);\n if (is_callable($output_callback) && (!isset($xt_registered_widgets[$id]) || did_action('xt_widgets_init'))) {\n $xt_registered_widgets[$id] = $widget;\n }\n}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "c535a22c954c7a38005ef56c82487160", "score": "0.0", "text": "public function destroy(Col $col)\n {\n //\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "6f5cb91b0423a11c78f100fc165554df", "score": "0.6959094", "text": "public function delete(ResourceInterface $resource);", "title": "" }, { "docid": "4899cb69f473bc3ba1f4a04f43330487", "score": "0.67682105", "text": "public function delete($resource, $id);", "title": "" }, { "docid": "55490a425cec5f2c2efea8b737497612", "score": "0.6737496", "text": "public function deleteGameResource($resource){\n if($this->gameResourceExists($resource)){\n unlink($this->getResourceDataPath() . $resource . \".dat\");\n }\n }", "title": "" }, { "docid": "ef862fedfa2a9a53bdc0c931abd5b9ef", "score": "0.6707853", "text": "public function destroy()\n {\n $this->resource->delete();\n }", "title": "" }, { "docid": "033a3fd474fdaf2c9dbcf9853f451cd2", "score": "0.664397", "text": "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 }", "title": "" }, { "docid": "4f49f964d082c69a3fe92671d08d3bc7", "score": "0.66371554", "text": "public function delete($cacheResource, $ignoreLifetime = false);", "title": "" }, { "docid": "47236fb1482f779e9251fd6998158877", "score": "0.65373594", "text": "public function deleteResource(PersistentResource $resource, $unpublishResource = true)\n {\n $this->initialize();\n\n $collectionName = $resource->getCollectionName();\n\n $result = $this->resourceRepository->countBySha1AndCollectionName($resource->getSha1(), $collectionName);\n if ($result > 1) {\n $this->logger->debug(sprintf('Not removing storage data of resource %s (%s) because it is still in use by %s other PersistentResource object(s).', $resource->getFilename(), $resource->getSha1(), $result - 1));\n } else {\n if (!isset($this->collections[$collectionName])) {\n $this->logger->warning(sprintf('Could not remove storage data of resource %s (%s) because it refers to the unknown collection \"%s\".', $resource->getFilename(), $resource->getSha1(), $collectionName), LogEnvironment::fromMethodName(__METHOD__));\n\n return false;\n }\n $storage = $this->collections[$collectionName]->getStorage();\n if (!$storage instanceof WritableStorageInterface) {\n $this->logger->warning(sprintf('Could not remove storage data of resource %s (%s) because it its collection \"%s\" is read-only.', $resource->getFilename(), $resource->getSha1(), $collectionName), LogEnvironment::fromMethodName(__METHOD__));\n\n return false;\n }\n try {\n $storage->deleteResource($resource);\n } catch (\\Exception $exception) {\n $this->logger->warning(sprintf('Could not remove storage data of resource %s (%s): %s.', $resource->getFilename(), $resource->getSha1(), $exception->getMessage()), LogEnvironment::fromMethodName(__METHOD__));\n\n return false;\n }\n if ($unpublishResource) {\n /** @var TargetInterface $target */\n $target = $this->collections[$collectionName]->getTarget();\n $target->unpublishResource($resource);\n $this->logger->debug(sprintf('Removed storage data and unpublished resource %s (%s) because it not used by any other PersistentResource object.', $resource->getFilename(), $resource->getSha1()));\n } else {\n $this->logger->debug(sprintf('Removed storage data of resource %s (%s) because it not used by any other PersistentResource object.', $resource->getFilename(), $resource->getSha1()));\n }\n }\n\n $resource->setDeleted();\n $this->resourceRepository->remove($resource);\n\n return true;\n }", "title": "" }, { "docid": "73af02f86d4e877d5ec7756885285cd4", "score": "0.6409313", "text": "function delete($resourceName);", "title": "" }, { "docid": "fd5668b2d59626254ea2b308c3b7b195", "score": "0.63944584", "text": "public function removeResource(Row_AclResource $resource)\r\n\t{\r\n\t\t$row = $this->_getAclRow($resource);\r\n\t\t$row->allow = 0;\r\n\t\t$row->save();\r\n\t}", "title": "" }, { "docid": "66cab78c708362190959631c44dd73a1", "score": "0.6300312", "text": "public function remove( $resource ) {\n \n $res = $this->get( $resource );\n \n if ($res == false) {\n return $this;\n }\n \n $resourceId = $res->getResourceId();\n \n $resourcesRemoved = array( $resourceId );\n if ( null !== ( $resourceParent = $this->_resources[$resourceId]['parent'] ) ) {\n unset( $this->_resources[$resourceParent->getResourceId()]['children'][$resourceId] );\n }\n foreach ( $this->_resources[$resourceId]['children'] as $childId => $child ) {\n $this->remove( $childId );\n $resourcesRemoved[] = $childId;\n }\n // удаляет и правила для рессурса\n foreach ( $resourcesRemoved as $resourceIdRemoved ) {\n foreach ( $this->_rules['byResourceId'] as $resourceIdCurrent => $rules ) {\n if ( $resourceIdRemoved === $resourceIdCurrent ) {\n unset( $this->_rules['byResourceId'][$resourceIdCurrent] );\n }\n }\n }\n\n unset( $this->_resources[$resourceId] );\n\n\n return $this;\n }", "title": "" }, { "docid": "2a10b35926876411b2e80108cfe22fca", "score": "0.6298291", "text": "public function remove() {\n // determine the name of the file\n $filename = $this->engine->cache_file_path($this->key(), $this->options);\n @unlink($filename);\n }", "title": "" }, { "docid": "89ce35850dffc0e6605778465129a8fa", "score": "0.62484", "text": "public function destroy(Resource $resource)\n {\n if (count($resource->photos)) { // delete photos from filesystem and storage.\n foreach ($resource->photos as $key => $photo) {\n $resource->deletePhoto($photo);\n }\n }\n $resource->delete();\n return redirect('/home')->with(['status' => 'Deivce successfully deleted']);\n }", "title": "" }, { "docid": "2367dd4337c36bfe160c73cbfe965a9c", "score": "0.6222181", "text": "public function testRemoveResource() {\n\n\t\t$file = $this->tempDir . DIRECTORY_SEPARATOR . 'test.txt';\n\t\tfile_put_contents($file, 'test');\n\n\t\t$this->assertTrue(file_exists($file));\n\n\t\t$container = new FilesystemResourceContainer($this->tempDir, FileResource::TYPE);\n\t\t$container->remove('test.txt');\n\n\t\t$this->assertFalse(file_exists($file));\n\t}", "title": "" }, { "docid": "07b2c5af4c184e58bf2887516d95f2ee", "score": "0.6152366", "text": "public function clearResource(){\n\t\t\tif ($this->resource !== null){\n\t\t\t\timagedestroy($this->resource);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7e83a85a6ecaba18a97b363f757bfe88", "score": "0.61334383", "text": "public function remove() {\n\t\tunlink($this->getSrcImagePath());\n\t}", "title": "" }, { "docid": "0fd71148a5c7f18c479bf79390410ee6", "score": "0.6105545", "text": "public function delete(): void\n {\n if ($this->has($this->file))\n unlink($this->file);\n }", "title": "" }, { "docid": "eaf52922cf2f9f3851b5dee384bd6ceb", "score": "0.60544735", "text": "public static function remove($storageId) {\n\t\t$storageCache = new Storage($storageId);\n\t\t$numericId = $storageCache->getNumericId();\n\n\t\tif (strlen($storageId) > 64) {\n\t\t\t$storageId = md5($storageId);\n\t\t}\n\t\t$sql = 'DELETE FROM `*PREFIX*storages` WHERE `id` = ?';\n\t\t\\OC_DB::executeAudited($sql, array($storageId));\n\n\t\t$sql = 'DELETE FROM `*PREFIX*filecache` WHERE `storage` = ?';\n\t\t\\OC_DB::executeAudited($sql, array($numericId));\n\t}", "title": "" }, { "docid": "5d67ccf5357bc568ae73bc2554b4fcb3", "score": "0.60279834", "text": "function destroying_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DestroyingResource::class, $resource, $user);\n }", "title": "" }, { "docid": "98d22295493f0020f84c312075af1ad7", "score": "0.60123336", "text": "function deleting_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DeletingResource::class, $resource, $user);\n }", "title": "" }, { "docid": "a7e206f667720084df5493157a69cfb1", "score": "0.59848213", "text": "static private function _delResCache($resource)\n {\n $hash = self::getHashByResource($resource);\n foreach (self::$res as &$items) {\n if (!empty($items[$hash])) {\n unset($items[$hash]);\n }\n } \n }", "title": "" }, { "docid": "896e95e8d1abd4f6c5eecd1940391bef", "score": "0.5978198", "text": "public function unlinkStorage(): self\n {\n unlink($this->path);\n\n return $this;\n }", "title": "" }, { "docid": "46e2a3c32c6b5a596ae0cf2bf703c970", "score": "0.5958219", "text": "public function destroy($id)\n {\n $get=Document::where('id',$id)->first();\n if($get->photo!=null&&file_exists(\"/storage/$get->photo\")){\n unlink('storage/'.$get->photo);\n }\n $get->delete();\n return redirect()->route('listDocument');\n }", "title": "" }, { "docid": "3561c0d84ad15925523eb674be4bee6d", "score": "0.59337646", "text": "public function remove($path);", "title": "" }, { "docid": "970f51bb911499288a1748bfe0157efa", "score": "0.5912158", "text": "public function delete($id) {\n $this->connectStorage($id);\n $this->storage->delete();\n }", "title": "" }, { "docid": "f1553c7757cc3676299373a5d3a835f9", "score": "0.5907517", "text": "public function destroy($id)\n {\n $uniforme = Uniforme::find();\n Storage::delete('file.jpg');\n }", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "47945b59946db62fc806604498e46323", "score": "0.58641815", "text": "public function remove(FileInterface $file): FileInterface;", "title": "" }, { "docid": "d3158d405d4b489191764d14126b6336", "score": "0.5857253", "text": "public function destroy($id)\n {\n $trigger = Resource::where('id', $id)->first();\n $file = $trigger->file;\n if (!empty($file)) {\n $upFile = new UploadFile();\n $upFile->deleteCurrentFile($file, 'resource');\n }\n $trigger->delete();\n return back();\n }", "title": "" }, { "docid": "ce513fb382cd88ef0817a244ce395271", "score": "0.5824645", "text": "public function destroy($id)\n {\n $image= Image::find($id); \n $name = $image->name;\n $file = '/images/'.$name;\n $thumbnail = '/uploads/thumbnail/'.$name;\n Storage::delete([$file, $thumbnail]); // delete from folder $image->delete(); // delete from table return redirect()->back(); \n }", "title": "" }, { "docid": "b6078f9d34f26c367a9797120d6006ab", "score": "0.5818996", "text": "public function resourceHasBeenDeleted();", "title": "" }, { "docid": "c8394dead7326b95b49dd4f6c575a34a", "score": "0.58155316", "text": "public function destroy($resource, $id)\n {\n $model = $this->model->find($id);\n $model->delete();\n Cache::flush();\n $fields = $this->getModelAttributes();\n return redirect()->route('admin.resource', [\n 'resource' => $this->modelName,\n ]);\n }", "title": "" }, { "docid": "633ae266a2f875f0726e79f6358f15aa", "score": "0.58142436", "text": "public function remove(string $key) {\n $this->storage->remove($key);\n }", "title": "" }, { "docid": "915ec80e489f9eed2bde0417b2f10a19", "score": "0.580295", "text": "public function testResourceRemoveOne()\n {\n $resourceArea = new Zend_Acl_Resource('area');\n $this->_acl->addResource($resourceArea)\n ->remove($resourceArea);\n $this->assertFalse($this->_acl->has($resourceArea));\n }", "title": "" }, { "docid": "f35aaf17008b130a60b3962b50777f92", "score": "0.5800284", "text": "public function unlink();", "title": "" }, { "docid": "b4ee6dc4b9942eba341457d6bf4d5638", "score": "0.5796796", "text": "public function removeFromStore()\n {\n if ($this->getHash() && $this->getType()) {\n $this->getFileStore()->delete($this->getHash(), $this->getType());\n } else {\n throw new SwompException(\"Cannot remove from Store - Hash and Type is required\");\n }\n }", "title": "" }, { "docid": "b48e565472dafa6e553cf8aee6f42a6a", "score": "0.578793", "text": "public function destroy($id)\n {\n $product = Pruduct::where('id', $id)->first();\n unlink('storage/' . $product->image);\n\n $product->delete();\n Session::flash('messege', 'Data berhasil di hapus.');\n return redirect()->back();\n }", "title": "" }, { "docid": "532f8d58b20e101c1f5035990ba18e7e", "score": "0.57871205", "text": "public function cleanStorage();", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "0009889a5268b3415309c6899e972909", "score": "0.57663226", "text": "public function delete()\r\n {\r\n $path = $this->path;\r\n parent::delete();\r\n\r\n // Delete file if exists\r\n if($this->id && file_exists($path))\r\n {\r\n unlink($path);\r\n }\r\n\r\n }", "title": "" }, { "docid": "62c6b6bfe5aeaa08992c1c1ff2c5e9ec", "score": "0.5732295", "text": "public function destroy($id)\n {\n $obj = Obj::where('id',$id)->first();\n $this->authorize('update', $obj);\n\n // remove file\n if(Storage::disk('public')->exists($obj->image))\n Storage::disk('public')->delete($obj->image);\n \n $obj->delete();\n\n flash('('.$this->app.'/'.$this->module.') item Successfully deleted!')->success();\n return redirect()->route($this->module.'.index');\n }", "title": "" }, { "docid": "b6294af388de3ae8b010bbdd0e147a65", "score": "0.57102996", "text": "function destroyed_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DestroyedResource::class, $resource, $user);\n }", "title": "" }, { "docid": "a1d82443b72d201e5ede999d05bf59f5", "score": "0.57096094", "text": "public function unsetStorageId()\r\n\t{\r\n\t\tunset($this->_storage_id);\r\n\t}", "title": "" }, { "docid": "9591ec5177ac179477cbd3c3ccaa275a", "score": "0.5706215", "text": "public function destroy($id)\n {\n $file = FileTask::findOrFail($id);\n Storage::delete($file->path); //delete from disk\n $file->delete(); //delete from db\n flash('File was removed!');\n return back();\n }", "title": "" }, { "docid": "cf195d4a522e74edc7019e572a06923c", "score": "0.5694188", "text": "public function destroy($id)\n {\n $storage = Storage::findOrFail($id);\n $storage->delete();\n return response()->json(['status' => 'success']);\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "fe53bca8d325675dd4f80c6d519ce470", "score": "0.5679682", "text": "public function destroy($id)\n {\n \n $delete = Product::find($id);\n $image_path ='public/image/'. $delete->photo;\n unlink( $image_path);\n $delete->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "8bbd28cf62ed375a2f7518342e1d75ae", "score": "0.56680655", "text": "public function removeFile();", "title": "" }, { "docid": "a81365633fd5b106741f1068f03a568a", "score": "0.5654999", "text": "public function remove(object $entity): void;", "title": "" }, { "docid": "c1ecca5c35e22313e1c38b1ddca48883", "score": "0.56521606", "text": "public function destroy(FILE $file)\n {\n \n\n $url = str_replace('storage', 'public', $file->url);\n Storage::delete($url);\n\n\n $file->delete();\n\n return redirect()->route('admin.files.index')->with('eliminar', 'ok');\n }", "title": "" }, { "docid": "ac44db6cd2e11be0502437646b98bec0", "score": "0.56515306", "text": "public function untagResource($payload, $headers=[]) {\n $method = 'DELETE';\n $path = sprintf('/%s/tag', $this->apiVersion);\n $headers = $this->buildCommonHeaders($method, $path, $headers);\n $content = json_encode($payload);\n $headers['content-length'] = strlen($content);\n return $this->doRequest($method, $path, $headers, $data = $content);\n }", "title": "" }, { "docid": "3c36d7803d6dcac2a74d7850bf05b529", "score": "0.56461364", "text": "function deleteResource($model)\n {\n }", "title": "" }, { "docid": "198fe5623de140ddb980a64f1228ee9c", "score": "0.5643258", "text": "public function shutdownObject()\n {\n /** @var PersistentResource $resource */\n foreach ($this->resourceRepository->getAddedResources() as $resource) {\n if ($this->persistenceManager->isNewObject($resource)) {\n $this->deleteResource($resource, false);\n }\n }\n }", "title": "" }, { "docid": "6a133bf2a539adcebeeef545cb23bdf7", "score": "0.56398225", "text": "public function removeEntity($entity);", "title": "" }, { "docid": "ddb7a7e1bd529da0193a6825c4588bde", "score": "0.5632143", "text": "function deleted_resource(Model $resource, Authenticatable $user = null)\n { \n return crud_event(\\Core\\Crud\\Events\\DeletedResource::class, $resource, $user);\n }", "title": "" }, { "docid": "cfb60ffcc989888bf5132bd8f18d28f3", "score": "0.563189", "text": "public function destroy(string $storageKey): bool;", "title": "" }, { "docid": "227d7db0fe495cc1b0734cf71cbc6374", "score": "0.5627202", "text": "public function destroy($id)\n {\n try {\n $resource = Resource::findOrFail($id);\n auth()->user()->resources()->detach($id);\n } catch (\\Throwable $e) {\n throw abort(404);\n }\n\n return redirect()->back()\n ->with([\n 'status' => 'success-destroy-saved',\n 'message' => $resource->getMedia()[0]->file_name . ' was unsaved successfully!',\n 'resource_id' => $id\n ]);\n }", "title": "" }, { "docid": "b2deedc135e4e9a6d691a34bc62901e4", "score": "0.5602831", "text": "public function delete(): void\n {\n if ($this->exists()) {\n File::delete($this->path());\n }\n }", "title": "" }, { "docid": "29d3e4879d0ed5074f12cb963276b7cc", "score": "0.56021434", "text": "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "title": "" }, { "docid": "2551dae05d41b0f050dbd034df4e2093", "score": "0.5595374", "text": "public function remove()\n {\n $res = unlink($this->_path);\n return $res;\n }", "title": "" }, { "docid": "2dfd4b7a5b42f50b0f3186c2425fc4a3", "score": "0.55950236", "text": "public abstract function deleteAsset(Asset $asset);", "title": "" }, { "docid": "4a8532446eb5a624448dac28b0ab0abe", "score": "0.55868185", "text": "public function remove_to_cart($resource_id){\n\n $cart = Session::get('cart');\n\n $index = array_search($resource_id, $cart);\n if($index >= 0) {\n array_splice($cart, $index, 1);\n\n }\n\n Session::put('cart',$cart);\n\n return redirect('/cart');\n }", "title": "" }, { "docid": "4a8532446eb5a624448dac28b0ab0abe", "score": "0.55868185", "text": "public function remove_to_cart($resource_id){\n\n $cart = Session::get('cart');\n\n $index = array_search($resource_id, $cart);\n if($index >= 0) {\n array_splice($cart, $index, 1);\n\n }\n\n Session::put('cart',$cart);\n\n return redirect('/cart');\n }", "title": "" }, { "docid": "eb676b82c99dc848aabda71793e9f00a", "score": "0.55856013", "text": "public function destroy()\n {\n $filepath = $this->getFilepath();\n @unlink($filepath);\n }", "title": "" }, { "docid": "0f5a2d5d4ccb6690f2c9b7c1ad81379c", "score": "0.55815697", "text": "public function delete() {\n\t\treturn unlink($this->path);\n\t}", "title": "" }, { "docid": "abcaf8d103f03089c84f7aa510afb02a", "score": "0.5578945", "text": "public function delete()\n {\n if (null !== $this->repository) {\n $this->repository->close();\n }\n\n $this->file->delete($this->filePath);\n $this->filePath = '';\n }", "title": "" }, { "docid": "6955ff701e4315c5cfa7e2767eafdbcf", "score": "0.55788815", "text": "public function clear($in_storage_too = true);", "title": "" }, { "docid": "f576b22c84d78e83b91d5036361a095c", "score": "0.55780953", "text": "public function delete($filename = null);", "title": "" }, { "docid": "0d6640f36c0ca88fbe56977a74dad5f1", "score": "0.55737436", "text": "public function remove(MediaInterface $media);", "title": "" }, { "docid": "930240c93dd67bc31042064adb044402", "score": "0.55683106", "text": "public function destroy($id) {\n $data = Product::findOrFail($id);\n @unlink(storage_path('app/public/product/' . $data->product_image));\n $data->delete();\n return redirect('product')->with('success', 'Product is successfully deleted');\n }", "title": "" }, { "docid": "f7e801c4eebb9a1d03e7feec4ecd5f21", "score": "0.5567041", "text": "public function destroy($id)\n {\n $realestate = Realestate::findOrfail($id);\n if( count($realestate->files) > 0 )\n {\n if(Storage::disk('public')->exists($realestate->files[0]->path))\n Storage::disk('public')->delete($realestate->files[0]->path);\n\n $realestate->files()->delete();\n }\n\n $realestate->delete();\n\n\n return redirect()->route('realestate_index');\n\n }", "title": "" }, { "docid": "f392b1ed7db16f604f843adb672ef950", "score": "0.55653834", "text": "public function destroy($id)\n {\n $slide = Slide::find($id);\n if(Storage::delete('public/slides/'.$slide->slides)){\n $slide->delete();\n return redirect('Viewall/All_slide')->with('error','Slide deleted');\n }\n}", "title": "" }, { "docid": "0a10bad03f5df8b55f39176b0c613baa", "score": "0.55647546", "text": "public function remove(string $path)\n {\n $this->set($path, null);\n }", "title": "" }, { "docid": "adc4e9de22fd8f0d6314e35dcee0b8e0", "score": "0.5563022", "text": "public function remove(string $object): void;", "title": "" }, { "docid": "37d5927bb51b78bdcea795a632988120", "score": "0.55617017", "text": "public function removeTransactionResource($hash)\n\t{\n\t\t$path = $this->getTransactionResourcePath($hash);\n\t\treturn $this->deleteTransactionResource($path);\n\t}", "title": "" }, { "docid": "61d679086bf634ff55d0bc8a41a70710", "score": "0.5561249", "text": "public function destroy($id)\n {\n $user =DB::table('users')->where('id',$id)->first();\n $photo = $user->photo;\n \n unlink($photo);\n DB::table('users')->where('id',$id)->delete();\n \n }", "title": "" }, { "docid": "40424bbe7e79c788acc8e40fa96c2e17", "score": "0.5556214", "text": "public function destroy($id)\n {\n \n $product = Product::findOrFail($id);\n\n if($product->delete()) {\n\n return new ProductResource($product);\n }\n }", "title": "" }, { "docid": "b877c987e8cb3298dc4c9f11662792f9", "score": "0.55559146", "text": "public function destroy($id)\n {\n $path = File::findOrFail($id)->path; \n //esto me va a borrar del storage el archivo que le diga. De todas formas el find or fail me tiene que traer la dirreccion\n Storage::delete( $path ); \n\t\tFile::findOrFail($id)->delete(); \n\t\treturn redirect('/home');\n }", "title": "" }, { "docid": "09d16b97894d6829ff484d20cf378f8f", "score": "0.555526", "text": "public function destroy(Request $request, $id){\n $file = File::whereCodeName($id)->firstOrFail();\n //unlink elimina el archivo de la aplicacion\n unlink(public_path('storage/'. Auth::id() .'/' . $file->code_name));\n\n //eliminar de base de datos\n $file->delete();\n\n //avisar que se ha borrado archivo al usuario\n Alert::info('¡Ateción!', 'Se ha eliminado el archivo');\n return back();\n }", "title": "" }, { "docid": "19530e0d90a5511cefec030646832ac7", "score": "0.55509293", "text": "function deleteResource($id)\n\t{\n\t if(empty($id)) \n throw new App_Db_Exception_Table('Resource ID is not specified');\n\t\t\n\t\t$this->db_delete($this->_table, array('id'=>$id));\n\t}", "title": "" }, { "docid": "3fa04699fe14eb03c48cfde3470db201", "score": "0.55502915", "text": "public function destroy($id)\n {\n $file = Upload::findOrFail($id);\n if(File::exists(public_path($file->filename))){\n unlink(public_path($file->filename));\n File::delete(public_path($file->filename));\n }\n $file->delete();\n return redirect()->back()->with('success','Deleted Successfully');\n //\n }", "title": "" }, { "docid": "94b6f2ef01c97218c0ea77ca980a8947", "score": "0.55452746", "text": "public function wipeStorage(): void\n {\n $this->storageAdapter->wipeStorage();\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "51ecf73cbf0ed20291ef32754f32287e", "score": "0.55377126", "text": "public function destroy($id)\n {\n $site_image = DB::table('site_images')->where('id',$id)->first();\n $image=$site_image->image_name;\n unlink($image);\n DB::table('site_images')->where('id',$id)->delete();\n\n redirect()->back()->with('success', 'site image removed successfully');\n }", "title": "" }, { "docid": "30d0b23b0b35054a9dcfaf9fdc529aa5", "score": "0.5532588", "text": "public function destroy($id)\n {\n\n $p = Product::where('id' , $id)->first();\n if(File::exists($p->image)){\n File::delete($p->image);\n }\n $p->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" } ]
d711d656a6413c12099bc26c1d7a87d3
View method to display new discussion form
[ { "docid": "35e533b65e9f5554abd9b294a365c74b", "score": "0.0", "text": "public function editdiscussion($discussion) {\n /**\n * Opengraph\n */\n CHeadHelper::setType('website', JText::_('COM_COMMUNITY_GROUPS_EDIT_DISCUSSION'));\n\n $mainframe = JFactory::getApplication();\n $jinput = $mainframe->input;\n\n $groupId = $jinput->get('groupid', '', 'INT');\n $topicId = $jinput->get('topicid', '', 'INT');\n\n $this->_addGroupInPathway($groupId);\n $this->addPathway(JText::_('COM_COMMUNITY_GROUPS_EDIT_DISCUSSION'));\n\n $this->showSubmenu();\n\n $config = CFactory::getConfig();\n $editorType = ($config->get('allowhtml') ) ? $config->get('htmleditor', 'none') : 'none';\n $editor = new CEditor($editorType);\n\n $group = JTable::getInstance('Group', 'CTable');\n $group->load($groupId);\n\n // @rule: Test if the group is unpublished, don't display it at all.\n if (!$group->published) {\n $this->_redirectUnpublishGroup();\n return;\n }\n\n // Santinise output\n $discussion->title = strip_tags($discussion->title);\n $discussion->title = CStringHelper::escape($discussion->title);\n\n $app = CAppPlugins::getInstance();\n $appFields = $app->triggerEvent('onFormDisplay', array('jsform-groups-discussionform'));\n $beforeFormDisplay = CFormElement::renderElements($appFields, 'before');\n $afterFormDisplay = CFormElement::renderElements($appFields, 'after');\n\n $params = $discussion->getParams();\n $gparams = $group->getParams();\n $tmpl = new CTemplate();\n echo $tmpl->set('beforeFormDisplay', $beforeFormDisplay)\n ->set('afterFormDisplay', $afterFormDisplay)\n ->set('config', $config)\n ->set('editor', $editor)\n ->set('group', $group)\n ->set('discussion', $discussion)\n ->set('params', $params)\n ->set('gparams', $gparams)\n ->fetch('groups.editdiscussion');\n }", "title": "" } ]
[ { "docid": "30fbef1ee031296dc22802f43d2d6581", "score": "0.8106007", "text": "public function create()\n {\n return view('forum.create-discussion');\n }", "title": "" }, { "docid": "c019e683cebc8ec4f2ea4de8c0b7929e", "score": "0.80852485", "text": "public function create()\n {\n return view('discussions.create')\n ->with('page_title', 'Create a discussion');\n }", "title": "" }, { "docid": "7d926345ebdd5784f37bd36f2eeb1262", "score": "0.7525611", "text": "public function create()\n {\n $tags = Tag::query()->get();\n\n return view('discussion.create', compact('tags'));\n }", "title": "" }, { "docid": "52f62e484ef7bf5bc01f53649caba120", "score": "0.7459411", "text": "public function create()\n\t{\n\t\treturn View::make('admin.discuss.create');\n\t}", "title": "" }, { "docid": "48416e13cdc49411bd267a7e0b8f9f81", "score": "0.73958516", "text": "public function create()\n {\n // Swap out the sidebar defined in our app master layout (also see start/global.php)\n View::share('_sidebarLeft', 'groups._sidebar-left');\n\n return View::make('discussions.create')\n ->with('group', Group::current());\n }", "title": "" }, { "docid": "f55e723ee4b9925929be02dcbfcb7eb9", "score": "0.72486585", "text": "public function create()\n {\n $channelslist=Channel::pluck('title','id')->all();\n return view('discussion.create',compact('channelslist'));\n }", "title": "" }, { "docid": "794a5e1b956b9e4d909e98b249e7b416", "score": "0.72304446", "text": "public function create()\n {\n return view('front-end.forum.form');\n }", "title": "" }, { "docid": "ac1cb3a5f289a042b897b8dfc8ae5bfb", "score": "0.7203614", "text": "public function create()\n {\n //return to create Annoucnement Form\n return view('announcements.create');\n }", "title": "" }, { "docid": "4ba06d91d66163b398af8ef23a5e258b", "score": "0.7181368", "text": "public function create()\n {\n return view('forum.form');\n }", "title": "" }, { "docid": "bae52b163eb0837887465837cfdad33c", "score": "0.7154358", "text": "public function get_create_discussion($id)\n\t{\n\t\t// Fetch the project record\n\t\t$project = Project::find(1);\n\n\t\t// Set the page content\n\t\t$this->layout->title = 'Create Discussion Topic';\n\t\t$this->layout->content = View::make('project.create-discussion')\n\t\t\t\t\t\t\t\t\t->with('project', $project)\n\t\t\t\t\t\t\t\t\t->nest('form', 'project.partials.forms.create-project-discussion');\n\t}", "title": "" }, { "docid": "1a0e9dc009d8bf6b8e59df9d4bab1db6", "score": "0.7089451", "text": "public function newPost() {\n return view(\"newpost\");\n }", "title": "" }, { "docid": "6414e4317c1ac1b0b5a829da35ba4291", "score": "0.7046037", "text": "public function create() {\n return view('admin.forms.announcement-form', [\n 'breadcrumb_active' => 'Create New Announcement',\n 'breadcrumb_past' => 'Announcements',\n 'breadcrumb_past_url' => route('announcements.index'), \n ]);\n }", "title": "" }, { "docid": "7621c148159974459abc55c291aa427d", "score": "0.7035304", "text": "public function create()\n\t{\n\t\treturn view('announcements.create');\t\t\n\t}", "title": "" }, { "docid": "732d7c62dae03d9ce8376eea9601cc4b", "score": "0.70001453", "text": "public function create()\n {\n return view('backend.faq.add');\n }", "title": "" }, { "docid": "ab4fb4542d066b124c5a0158cd25c6c3", "score": "0.69892573", "text": "public function createAnnouncement()\n {\n return view('admin.news.createAnnouncement');\n }", "title": "" }, { "docid": "df7e33115e3a35edbec2c954b576d883", "score": "0.6973504", "text": "public function create()\n {\n return view('woodcraft.forum');\n }", "title": "" }, { "docid": "6c3676deab64c0f540e3008a7a3300f7", "score": "0.6972544", "text": "public function create()\n {\n return view('forum.create');\n }", "title": "" }, { "docid": "6c3676deab64c0f540e3008a7a3300f7", "score": "0.6972544", "text": "public function create()\n {\n return view('forum.create');\n }", "title": "" }, { "docid": "74f9ae3963051e139e5eea54743797ca", "score": "0.6966398", "text": "public function create()\n {\n return view('announcement/create');\n }", "title": "" }, { "docid": "6384248ed5c4c7b874a64b50b3df5cdb", "score": "0.6953573", "text": "function discussion()\n\t{\n\t\t\n\t\t$uri_data = $this->uri->uri_to_assoc(3);\n\t\n\t\t//validate uri data\n\t\ttry {\n\t\t\tif(!array_key_exists('problem_id',$uri_data) || !ctype_digit($uri_data['problem_id'])) {\n\t\t\t\tthrow new Exception(\"Problem id was not specified in URL.\");\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t$data['general_message'] = $e->getMessage();\n\t\t\t$data['content'] = $this->load->view(\"general\",$data,TRUE);\n\t\t\t$page =$this->load->view(\"layout\",$data,TRUE);\n\t\t\tdie($page);\n\t\t}\n\t\n\t\t\n\t\t$this->load->model(\"Topics\",'',TRUE);\n\t\t\n\t\t//get the topic title \n\t\t$topic_data = $this->Topics->get_topic_data($uri_data['problem_id'],Topics::TOPIC_TITLE);\n\t\tif(!$topic_data['title'] ) {\n\t\t\t$data['general_message'] = \"Invalid problem id\";\n\n\t\t\t$data['content'] = $this->load->view(\"general\",$data,TRUE);\n\t\t\t$page =$this->load->view(\"layout\",$data,TRUE);\n\t\t\tdie($page);\n\t\n\t\t}\n\t\t\n\t\t\n\t\t//get the last 10 responses\n\t\t$discussion_posts = $this->Topics->get_discussion_posts($uri_data['problem_id'],TRUE);\n\n\t\t$data['js_files'] = array(SY_SITEPATH . \"system/application/views/tiny_mce/tiny_mce_src.js\",SY_SITEPATH . \"system/application/views/topic/discussion.js\");\n\t\t$data['problem_title'] = $topic_data['title'];\n\t\t$data['posts'] = $discussion_posts;\n\t\t$data['topic_id'] = $uri_data['problem_id'];\n\t\t$data['problem_id'] = $uri_data['problem_id'];\n\t\t$data['content'] = $this->load->view(\"topic/discussion\",$data,TRUE);\t\n\t\t$this->load->view(\"layout\",$data);\n\t\t\t\n\t}", "title": "" }, { "docid": "d359766edd0d39c1b54b2eec35e4805d", "score": "0.69367427", "text": "public function create($id)\n {\n $forums = forum::latest()->get();\n $forum = forum::find($id);\n\n return \\view('client.new-discussion', compact('forums', 'forum'));\n }", "title": "" }, { "docid": "60425a232c86711bee39d647fa60b241", "score": "0.6908602", "text": "public function create()\n {\n return view('backend.faq.create');\n }", "title": "" }, { "docid": "2e85b93791a8f1bca4469889f0f9e40f", "score": "0.68941396", "text": "public function create()\n {\n return view('panel.post.form');\n }", "title": "" }, { "docid": "18c2138453f4bf48ae8185735e9742f1", "score": "0.6893298", "text": "public function create()\n {\n //\n\t\treturn view('threadforum.comment.index');\n }", "title": "" }, { "docid": "7febbd58a07d6c560af1b06e43394c87", "score": "0.68525445", "text": "public function create()\n {\n return view('admin::faq.create');\n }", "title": "" }, { "docid": "62d714cec7804b504e69d691832c2a51", "score": "0.6851203", "text": "public function create()\n {\n return view('admin.faq.faq_form');\n }", "title": "" }, { "docid": "b0326a9f8bfff7fd33285e1f9da17fa6", "score": "0.6850524", "text": "public function create()\n {\n //\n\t\treturn view('threadforum.create');\n }", "title": "" }, { "docid": "bfede4f5b759334c8671340985856bff", "score": "0.68390787", "text": "public function create()\n {\n return view('admin/faq/create');\n }", "title": "" }, { "docid": "f8d6d5e6996c7af94c9770bd589ca79b", "score": "0.6822563", "text": "public function create()\n {\n return view('admin.faq.create');\n }", "title": "" }, { "docid": "f8d6d5e6996c7af94c9770bd589ca79b", "score": "0.6822563", "text": "public function create()\n {\n return view('admin.faq.create');\n }", "title": "" }, { "docid": "f8d6d5e6996c7af94c9770bd589ca79b", "score": "0.6822563", "text": "public function create()\n {\n return view('admin.faq.create');\n }", "title": "" }, { "docid": "517d5d3086df255b89ea3b763671136d", "score": "0.68031317", "text": "public function new_form() {\n return view('todo.new');\n }", "title": "" }, { "docid": "8b5cd048e2f82284cfc0fc774faafc8b", "score": "0.6799074", "text": "public function create()\n {\n return view('messages.submit-comment');\n }", "title": "" }, { "docid": "9ed9facd0dc7ae4114f9930961530ce4", "score": "0.6797617", "text": "public function create()\n {\n return view('ama_announcements.create');\n }", "title": "" }, { "docid": "df7ea0f79024ed22de04456fef09f5e8", "score": "0.67813945", "text": "public function showTopicForm()\n {\n return view('topic.form');\n }", "title": "" }, { "docid": "a3b88ed24a1ef1ded96916f462a50ffe", "score": "0.67608273", "text": "public function formArticle(){\n $article = Post::orderby('id', 'desc')->get();\n\n return view('content.addarticle', compact('article'));\n\n }", "title": "" }, { "docid": "bfba2002fadd6d09a7051b641f7b358f", "score": "0.6741605", "text": "public function create()\n {\n $blog = array();\n return view('admin.faq.create',compact('blog'));\n }", "title": "" }, { "docid": "74b455a8232e38e0b9413d17821cc7c3", "score": "0.672212", "text": "public function create()\n {\n return view('blog::form');\n }", "title": "" }, { "docid": "4a88ad250a27a15a42b08063c6d44e6d", "score": "0.6720874", "text": "public function create()\n {\n return view('partiesinteressees.niveaurelation.ajout');\n }", "title": "" }, { "docid": "6a0679d7a8c9c3a5702229963c971102", "score": "0.6715984", "text": "public function create()\n {\n return view('news_comments.create');\n }", "title": "" }, { "docid": "a9cd521fc2774ce73f62fff3cf0310aa", "score": "0.6714699", "text": "function create_newarticle() {\n\n $topics = $this->model->topic->get_all_topic();\n\n $this->view->render('post/newarticle', $topics);\n }", "title": "" }, { "docid": "04f69c3d8999f1b3a38de9a589276f71", "score": "0.6711116", "text": "public function create()\n {\n return view('submission.create');\n }", "title": "" }, { "docid": "35d46924be8b9f6a3aa28b214f28bf96", "score": "0.67015827", "text": "public function create()\n {\n return view('comment.form');\n }", "title": "" }, { "docid": "04c74c979d95ec97c9eb3bea2c0f39a2", "score": "0.669586", "text": "public function create()\n {\n return View::make('project/comment/create');\n }", "title": "" }, { "docid": "adc769905fad227843e98f61b6f010ed", "score": "0.66937137", "text": "public function create()\n {\n return view('admin.front-faq.create');\n }", "title": "" }, { "docid": "d336db7a71093023bcd58e4e02e43e2b", "score": "0.6692522", "text": "public function create()\n {\n // untk bisa dikatakan untuk membuat form jika untuk form, dll\n return view('chat');// route ke chat yaitu untuk form na\n }", "title": "" }, { "docid": "f9e75f30252fd297236e5a0a0b098e80", "score": "0.66893375", "text": "public function discussion(Request $request)\n {\n $user = Auth::user();\n\n $emergency = Emergency::find($request->id);\n\n $emergency->discussions()->create([\n 'description' => $request->description,\n 'user_id' => $user->id\n ]);\n \n $discussion = $emergency->discussions->last();\n\n if($request->file) {\n $file = $request->file('file');\n $discussion->file = $file->store('emergencies/discussions/files', 'public');\n }\n\n if($request->image){\n $image = $request->file('image');\n $discussion->image = $image->store('emergencies/discussions/images', 'public');\n }\n\n $discussion->save();\n \n $discussion->load('user');\n\n return $discussion;\n }", "title": "" }, { "docid": "bb200b0bd9c4ea0b35cb04ac360fe85b", "score": "0.6684342", "text": "public function get_create()\n\t{\n\t\t$this->layout->title = 'New Question';\n\t\t$this->layout->content = View::make('questions.create');\n\t}", "title": "" }, { "docid": "58c6bd1180c3204010ec9c37a05b90dc", "score": "0.66721165", "text": "public function create()\n {\n return view('CMT.create-cmt');\n }", "title": "" }, { "docid": "5807c514e9630ca93b9bb84ad53a94b4", "score": "0.6662917", "text": "public function create()\n {\n return view('backend/news_add');\n }", "title": "" }, { "docid": "7086ac9e3da756b94d40a2e9cf11c099", "score": "0.6650575", "text": "public function create()\n {\n $localities = DB::table('localities')->get();\n $categories = DB::table('categories')->get();\n\n return view('announcement.create', [\n 'localities' => $localities,\n 'categories' => $categories,\n ]);\n }", "title": "" }, { "docid": "058144711c8c0246ab3a249db4a77599", "score": "0.66505086", "text": "public function index()\n {\n return View::make('discussions.index');\n }", "title": "" }, { "docid": "64a4345d92be9263409ea94a26cb417a", "score": "0.6643169", "text": "public function create()\n {\n return view('blog.form');\n }", "title": "" }, { "docid": "aa261e16efc007897d3e4be794d6f73e", "score": "0.6641465", "text": "public function create()\n {\n //\n //获取最新信息\n $lastNews = News::lastNews();\n return View::make('news.issue',['lastNews'=>$lastNews,'navsub'=>'1']);\n }", "title": "" }, { "docid": "4dd4da9e342c300a0c62df036d8ac204", "score": "0.6637221", "text": "public function create()\n\t{\n\t\treturn $this->view('comments.create_edit');\n\t}", "title": "" }, { "docid": "a1f586209bef84f761373e9702e031fd", "score": "0.66319036", "text": "public function adddiscussion(&$discussion) {\n /**\n * Opengraph\n */\n CHeadHelper::setType('website', JText::_('COM_COMMUNITY_GROUPS_DISCUSSION_CREATE'));\n\n $mainframe = JFactory::getApplication();\n $jinput = $mainframe->input;\n $groupId = $jinput->get('groupid', '', 'INT');\n\n $this->_addGroupInPathway($groupId);\n $this->addPathway(JText::_('COM_COMMUNITY_GROUPS_DISCUSSION_CREATE'));\n //$this->showSubmenu();\n\n $config = CFactory::getConfig();\n $editorType = ($config->get('allowhtml') ) ? $config->get('htmleditor', 'none') : 'none';\n $editor = new CEditor($editorType);\n\n $group = JTable::getInstance('Group', 'CTable');\n $group->load($groupId);\n\n // @rule: Test if the group is unpublished, don't display it at all.\n if (!$group->published) {\n $this->_redirectUnpublishGroup();\n return;\n }\n $params = $group->getParams();\n $app = CAppPlugins::getInstance();\n $appFields = $app->triggerEvent('onFormDisplay', array('jsform-groups-discussionform'));\n $beforeFormDisplay = CFormElement::renderElements($appFields, 'before');\n $afterFormDisplay = CFormElement::renderElements($appFields, 'after');\n\n $tmpl = new CTemplate();\n echo $tmpl->set('beforeFormDisplay', $beforeFormDisplay)\n ->set('afterFormDisplay', $afterFormDisplay)\n ->set('config', $config)\n ->set('editor', $editor)\n ->set('group', $group)\n ->set('discussion', $discussion)\n ->set('params', $params)\n ->fetch('groups.adddiscussion');\n }", "title": "" }, { "docid": "b15771f0a278169ea86b7395f8c76737", "score": "0.66317266", "text": "public function create()\n {\n return view('feedback');\n }", "title": "" }, { "docid": "a004c771af708fb8eb9d591649c1a334", "score": "0.66279423", "text": "public function create()\n {\n return view('newsfeed.create');\n }", "title": "" }, { "docid": "03b164697db407684c9f76f5f0469ba8", "score": "0.6623183", "text": "public function create()\n {\n //\n return view('thread.create');\n }", "title": "" }, { "docid": "0bfd2732af9e7c334472e3d359a90660", "score": "0.6613229", "text": "public function newAction()\r\n {\r\n return view('new::new');\r\n }", "title": "" }, { "docid": "3061082263934bf20be33a7c0e134a53", "score": "0.6600637", "text": "public function post_create_discussion($id)\n\t{\n // Create new instance of User\n $discussion = new Discussion;\n \n // Check if form inputs pass validaton.\n if( $discussion->validate( Input::all(), 'create') )\n {\n \t// Data to be inserted\n \t$data = array();\n\n \t// Loop through the data\n \tforeach(Input::all() as $key => $value)\n \t{\n \t\t// Sanitize all data.\n \t\t$data[$key] = $value;// e( strip_tags($value) );\n \t}\n\n \t// Capture the user's id number\n \t$user_id = My_Auth::user()->id;\n\n \t// Create new discussion record in the database\n\t\t\t$newDiscussion = Project::find($id)->discussions()->insert(array(\n\t\t\t\t'title' \t=> $data['title'],\n\t\t\t\t'user_id' \t=> $user_id\n\t\t\t));\n\n\t\t\t// Create initial post for the new discussion\n\t\t\t$newPost = $newDiscussion->posts()->insert(array(\n\t\t\t\t'post' \t\t=> $data['post'],\n\t\t\t\t'user_id' \t=> $user_id\n\t\t\t));\n\n // New discussion event.\n Event::fire('discussion.new', array($newDiscussion));\n \n // If login is valid then redirect to the dashboard.\n return Redirect::to_route('project.discussion', $newDiscussion->id);\n }\n \n // Validation failed\n else\n { \n // Return the user to the form, along with errors and original input.\n return Redirect::back()->with_errors($discussion->validation_errors())->with_input();\n }\n\t}", "title": "" }, { "docid": "50e328493eb013348ca1ac98c2293255", "score": "0.6600184", "text": "public function create()\n {\n return view('courses.foundations.questions.create');\n }", "title": "" }, { "docid": "73da6440aacb1d3ec33181a42e65e25a", "score": "0.6594261", "text": "public function create()\n {\n return view('adm.news.create');\n }", "title": "" }, { "docid": "5e7bbf722d62a6e5d6f52186024c001a", "score": "0.6587204", "text": "public function post_create_view() {\n $current_values = has_flash('form_data') ? get_flash('form_data') : [];\n $this->data['blocks_forms'] = $this->cms_block_forms();\n $this->data['form'] = $this->cms_post_form('create', null, $current_values);\n\n return view('admin/create_post', $this->data);\n }", "title": "" }, { "docid": "8c76970b265e4170e58f45f5e2616882", "score": "0.6579268", "text": "public function create()\n {\n // set page and title ------------------\n $page = 'faq.add';\n $title = 'Add Faq';\n $data = compact('page', 'title');\n\n // return data to view\n return view('backend.layout.master', $data);\n }", "title": "" }, { "docid": "7372a74192555d5269306932217bfa60", "score": "0.6577263", "text": "public function create()\n {\n return view('musics.form');\n }", "title": "" }, { "docid": "122a40b67183ed658e0dfd83a32ab307", "score": "0.6572203", "text": "public function newAction()\n {\n $this->view->form = new BoardForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "320972b629a7b9da18d64f6efadcb4ad", "score": "0.65717673", "text": "public function create()\n {\n $categories = Category::all();\n return view('admin::topic_content_add',compact('categories'));\n }", "title": "" }, { "docid": "eec62eca967f5b6577ccbf90c9daaecd", "score": "0.65688705", "text": "public function create()\n {\n return view('project/Question/create');\n }", "title": "" }, { "docid": "59a0ea874618c4a89398a7981b9843ef", "score": "0.6563736", "text": "public function create()\n {\n return view('admin.news.add');\n\n }", "title": "" }, { "docid": "3e2935e5025d28e339820180ed415c94", "score": "0.6562879", "text": "public function create()\r\n {\r\n return view('thread.create');\r\n }", "title": "" }, { "docid": "f6efeb4b06f821e62d98373a0d2f834c", "score": "0.65619344", "text": "public function create()\n {\n return view('admin.docteurs-ajout');\n }", "title": "" }, { "docid": "38948408fc002088348a26a9f7c941da", "score": "0.65616363", "text": "public function create() {\n return view('admin.competition_posts.create');\n }", "title": "" }, { "docid": "20c79cb99be36eae91361cf2a0892eb9", "score": "0.65610254", "text": "public function create()\n {\n return view('back-end.news.create');\n }", "title": "" }, { "docid": "7f704a30395c04731e63e8f41b672fcb", "score": "0.6561002", "text": "public function create()\n {\n return view('admin.feedback.create');\n }", "title": "" }, { "docid": "77c59ebfb30f8b9c9ef5a2da5c10a3ae", "score": "0.65597326", "text": "public function create()\n {\n return view('feedback.feedback');\n }", "title": "" }, { "docid": "ab674a7e0d8af422ffbaec74dbc0b014", "score": "0.65572363", "text": "public function create()\n {\n return view(\"questions.create\");\n }", "title": "" }, { "docid": "b59bc20ca82cb15bc8519d5db7874311", "score": "0.6556957", "text": "public function create()\n {\n $data['category_list'] = Category::get();\n return view('article.article-form', $data);\n }", "title": "" }, { "docid": "f1aaeb5ddec0fd72e640fa6dcf08c32d", "score": "0.65532285", "text": "public function create()\n\t{\n\n\t\t\t$data=array(\n\t\t\t\t'districts'=>retrieveField(District::all(),'name'),\n\t\t\t);\n\t\treturn View::make('layouts.meeting.add')->with('data', $data);\n\t}", "title": "" }, { "docid": "880b8dacf0101413d3af4647c111d410", "score": "0.65462506", "text": "public function create()\n {\n //\n\n return view('news.add');\n }", "title": "" }, { "docid": "8beafb41608c66e62a1980682cf7666b", "score": "0.654553", "text": "public function create()\n {\n return view('admin.news.add');\n }", "title": "" }, { "docid": "b97d93d925ba876d92ff234ca6744949", "score": "0.65421915", "text": "public function create()\n {\n parent::show();\n return View::make('posts.create');\n }", "title": "" }, { "docid": "ba579065a45c2f814e77dd1318d2737e", "score": "0.65421027", "text": "public function create()\n {\n \treturn view('dashboard.comments.create',['title' => trans('dashboard.add_new_comment')]);\n\n }", "title": "" }, { "docid": "4721cde6fffd4bcafa71e90c2121cb73", "score": "0.6537965", "text": "public function newPost($msg='') {\n $data['title'] = \"House Information\";\n $data['msg'] = $msg;\n\n $this->load->view('templates/header', $data);\n $this->load->view('new_post', $data);\n $this->load->view('templates/footer');\n }", "title": "" }, { "docid": "f608122e33d25f55691c654ca00c5667", "score": "0.65237314", "text": "public function create()\n {\n //\n view('backend.form.post');\n }", "title": "" }, { "docid": "ec39028a30a72d752ca730f8160719b3", "score": "0.65234715", "text": "public function create()\n {\n return view('thread.create');\n }", "title": "" }, { "docid": "d8e9e2178bdb648b7c5512501c4e8178", "score": "0.652343", "text": "public function create()\n {\n $commentaires = Commentaire::all();\n return view(\"backoffice.article.create\", compact(\"albums\"));\n }", "title": "" }, { "docid": "9aaead22158998def9092ca5cc788959", "score": "0.65175235", "text": "function newAction()\n\t{\n\t\t$form = $this->_setupForm();\n\t\t\n\t\t// Posted something?\n\t\tif($this->getRequest()->isPost()) {\n\t\t\t// Get data\n\t\t\t$formData = $this->getRequest()->getPost();\n\t\t\t\n\t\t\t// Check if valid\n\t\t\tif (!$form->isValid($formData)) {\n\t\t\t\t// Save error messages\n\t\t\t\t$errors = $form->getMessages();\n\t\t\t} else {\n\t\t\t\t// Add into database\n\t\t\t\t$result = $this->_newStudy($form->getValues());\n\t\t\t\t// Check if good\n\t\t\t\tif ($result === TRUE)\n\t\t\t\t\t$this->_forward(\"success\", \"study\");\n\t\t\t\telse\n\t\t\t\t\t$errors = $result;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Save to view\n\t\t$this->view->form = $form;\n\t\t$this->view->errors = $errors;\n\t}", "title": "" }, { "docid": "64d42990a1c8bb06ba65c52f8d3c1297", "score": "0.6516192", "text": "public function create() \n {\n return view('newAnswers');\n }", "title": "" }, { "docid": "f119221dadfad407ac5e8a6434f8ce5b", "score": "0.6515343", "text": "public function createPost()\n {\n return View::make('blog.new_post');\n }", "title": "" }, { "docid": "6a856e10217023c680868b874212c633", "score": "0.6514717", "text": "public function create()\n {\n return View('feedbackform');\n }", "title": "" }, { "docid": "bd63b456bfece2997b1119df48f5bc5e", "score": "0.6513325", "text": "public function create()\n {\n \treturn view('notes.create');\n }", "title": "" }, { "docid": "f3dcba2cb08fdbab838e6aa0aacd6c5b", "score": "0.651325", "text": "public function create()\n\t{\n\t\treturn View::make('post.create');\n\t}", "title": "" }, { "docid": "8f645cff372156778fb9a47308d2414c", "score": "0.6507505", "text": "public function create()\n {\n //\n return view(\"news.create\");\n }", "title": "" }, { "docid": "907c2499da6f223f34555b936558e385", "score": "0.6504319", "text": "public function create()\n {\n return view('our_blog.add');\n }", "title": "" }, { "docid": "115e245d9d44839312b1e03268eb0b31", "score": "0.65032554", "text": "public function create()\n {\n $categories = Category::all();\n\n return view('forum.create', compact('categories'));\n }", "title": "" }, { "docid": "7fbab6b265d35ab3f718d67431462a81", "score": "0.6500488", "text": "public function create()\n {\n $this->authorize('admin.conversation-interview.create');\n\n return view('admin.conversation-interview.create');\n }", "title": "" }, { "docid": "0841dd911a79c34ad02a4c42aa5addc3", "score": "0.6495832", "text": "public function showNewForm() {\n return view('jobs/new');\n }", "title": "" }, { "docid": "ef9b517d3eaa28096b4142b9b5b95e3a", "score": "0.6491597", "text": "public function create()\n {\n return view('admin.news.create');\n }", "title": "" }, { "docid": "ef9b517d3eaa28096b4142b9b5b95e3a", "score": "0.6491597", "text": "public function create()\n {\n return view('admin.news.create');\n }", "title": "" }, { "docid": "ef9b517d3eaa28096b4142b9b5b95e3a", "score": "0.6491597", "text": "public function create()\n {\n return view('admin.news.create');\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "847f003a4addf6820c7b7d4e542cfa95", "score": "0.7909494", "text": "public function create()\n {\n $resource = $this->prepResource('create');\n $this->showBreadcrumb($resource, [null => 'Create New']);\n\n return $this->view(compact('resource'));\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "452dfa44b6fc27ed6e2aa675caef8e17", "score": "0.7706946", "text": "public function create() {\n return view('acl::resource.create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n {\n return $this->showForm('create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "303de6e59e0dfcaa3323bed304cea7e1", "score": "0.7500156", "text": "public function create()\n {\n if(Gate::denies($this->resource.'-create'))\n return $this->backOrJson(request(), 'not_authorized', 'crud.not-authorized');\n\n $label = $this->label;\n $title = $this->title;\n $icon = $this->icon;\n \n $this->addToView($this->options());\n\n return request()->wantsJson() \n ? null\n : view('admin.'.$this->resource.'.form', array_merge($this->variablesToView, compact('label', 'title', 'icon')));\n }", "title": "" }, { "docid": "bb55b8b1372a305242b37dbd1e241a37", "score": "0.7487926", "text": "public function create() {\n return view('members.resources.createResource');\n }", "title": "" }, { "docid": "290e9e5c1e1c6771e2a48a7c39b658ae", "score": "0.73964167", "text": "public function create()\n\t{\n\t\treturn View::make('resourcetypes.create');\n\t}", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7391348", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "7c2dc6aee3a7b173b42ae8f6ff0e9ac2", "score": "0.73191345", "text": "public function create() //represents forms user fills out.\n {\n return view('create');\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "a079c2ff615466a913385f0f3bbf4c9d", "score": "0.7209733", "text": "public function create()\n {\n return view('project_resources/create');\n }", "title": "" }, { "docid": "56a59cf2c86c7085f5fdde712ee5ea06", "score": "0.7203657", "text": "public function create()\n {\n return view('sick.form', ['action' => 'create']);\n }", "title": "" }, { "docid": "d52a8d55018a5452356ebfeb392dad33", "score": "0.7202316", "text": "public function newAction()\n {\n $entity = new \\Cumts\\MainBundle\\Entity\\Show();\n $form = $this->createForm(new ShowType(), $entity);\n\n return $this->render('CumtsAdminBundle:Show:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "50c363b98b85b902c0b33495df17fc28", "score": "0.71889836", "text": "public function create()\n {\n return view('Admin.Forms.create');\n }", "title": "" }, { "docid": "99c209c7d567bb6a386886e720582d3f", "score": "0.71736616", "text": "public function newAction()\n {\n $entity = $this->getNewEntity();\n $alias = $this->getAlias();\n $fields = $this->getFields('new');\n\n $form = $this->createCreateForm($entity, $alias, $fields);\n\n return $this->render(\n 'SgDatatablesBundle:Crud:new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView()\n )\n );\n }", "title": "" }, { "docid": "d7792233bdf3a051b8ecc8a3bf85491e", "score": "0.717068", "text": "public function create()\n {\n return view('admin.form.create');\n }", "title": "" }, { "docid": "182ce5c02e801fee3966edc96be1055e", "score": "0.7139064", "text": "public function create()\n {\n return view('form-create');\n }", "title": "" }, { "docid": "e1317794bf2d1789fb3df24f34664b93", "score": "0.7128814", "text": "public function create()\n {\n return view('admin.' . $this->obj_name . '.form');\n }", "title": "" }, { "docid": "9a87c89323c16332dd5980c005f9fd73", "score": "0.71161574", "text": "public function create()\n {\n return view('admin.retiros.partials.createForm');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "4618d70cb6b1be4af26372f030bb7274", "score": "0.710939", "text": "public function create()\n {\n return view('livro.form');\n }", "title": "" }, { "docid": "21b741286121defb618cafb010ad9311", "score": "0.7101174", "text": "public function create()\n {\n return view('admin.crud.edit-new');\n }", "title": "" }, { "docid": "d42793f140a997f3a5618ebf3a790d1b", "score": "0.7097341", "text": "public function create()\n {\n return view('Admin.generals.form');\n }", "title": "" }, { "docid": "e1be67b632033f807b2cefd97a7e5682", "score": "0.7095487", "text": "public function create()\n {\n $meta = \"Create\";\n return view('driver.form', compact('meta'));\n }", "title": "" }, { "docid": "e6d14f751da329891ae59d3d0614b844", "score": "0.7088803", "text": "public function create()\n {\n return view('backend::module.form');\n }", "title": "" }, { "docid": "ba36d03e3181e8d29ef780e9f1b47d8e", "score": "0.70807815", "text": "public function create()\n {\n return view('applicationforms.create');\n }", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.708025", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "d91864a90a03af3679687f163da22716", "score": "0.7078707", "text": "public function create()\n {\n return view(\"pages-ui::backend.form\", [\n \"extends\" => config(\"pages-ui.backend.template_to_extend\", \"layouts.app\"),\n \"edit\" => false,\n ]);\n }", "title": "" }, { "docid": "19a8b4682806788e584645f302bff901", "score": "0.7070855", "text": "public function newAction()\n {\n $manager = $this->container->get('zimzim_construction_site_actionitemmanager');\n $entity = $manager->createEntity();\n $form = $this->createCreateForm($entity, $manager);\n\n return $this->render(\n self::DIR.':new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n )\n );\n }", "title": "" }, { "docid": "868d619f6ddd72d0196bd0112e6d14a0", "score": "0.7068269", "text": "public function create()\n {\n $items = $this->model->get();\n return view('admin.' . str_plural($this->essence) . '.form', [\n 'essence' => $this->essence,\n 'items' => $items,\n ]);\n }", "title": "" }, { "docid": "a717d49d12459178d0ea648de34b92f3", "score": "0.7053267", "text": "public function create()\n {\n return view('submit_forms.create');\n }", "title": "" }, { "docid": "88bddae014db0489caa5efa7d888b963", "score": "0.70453197", "text": "public function newAction()\n {\n $entity = new Cliente();\n $form = $this->createForm(new ClienteType(), $entity);\n\n return $this->render('ContadoresBundle:Cliente:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'cliente_new'\n ));\n }", "title": "" }, { "docid": "2885b0aa30fbd2b9a13afbabd00ca579", "score": "0.70360965", "text": "public function create()\n {\n return view('AdminPanel.Supplier.form');\n }", "title": "" }, { "docid": "0c1144eddfb806ac17f30214bdfede15", "score": "0.70316905", "text": "public function create()\n {\n return view('cat.form_create');\n }", "title": "" }, { "docid": "e1571e560aab196c00674cc03cd106df", "score": "0.7028034", "text": "public function newAction()\n {\n $entity = new Formation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('FormationAdminBundle:Formation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "d12ec07b606c2d87e70c0e3602b230c7", "score": "0.7027543", "text": "public function create()\n {\n return view('admin.resources.person.create');\n }", "title": "" }, { "docid": "e2a9ae8284cc267325c107ada7cdb536", "score": "0.70238173", "text": "public function create()\n {\n return View::make('form.add');\n }", "title": "" }, { "docid": "40b5fe05bbe7fe1fc32074241497237e", "score": "0.70228195", "text": "public function create()\n {\n \treturn view ('backend.professor.create');\n }", "title": "" }, { "docid": "f8ec369da210a363de27940e92b3f84d", "score": "0.70125043", "text": "public function create()\n {\n return view('libro.formlibro');\n }", "title": "" }, { "docid": "df9822b231f9e125e4b3aa9bc0b50b54", "score": "0.7000799", "text": "public function newAction()\n {\n return $this->renderCreationForm(new User(), new UserType(), 'User', 'FsbMediaFilesIndexBundle');\n }", "title": "" }, { "docid": "d3818ee7b8a6f5feddcf93f25df0fe6b", "score": "0.6986593", "text": "public function create()\n {\n return view('students._form');\n }", "title": "" }, { "docid": "bad09d21897077a09fc9ba04b37aa535", "score": "0.69801325", "text": "public function create()\n\t{\n\t\treturn view('dienthoai.create');\n\t}", "title": "" }, { "docid": "bfc2f651a3ad53ba32a1f0624b2baf70", "score": "0.6976104", "text": "public function create()\n {\n return view('fabricante.form');\n }", "title": "" }, { "docid": "38d1a27327ac4a367aba240dedebaa0e", "score": "0.69747853", "text": "public function showCreateNewClientForm()\n {\n return view('admin.createNewClientForm');\n }", "title": "" }, { "docid": "65c79b36d9444a6beccf14aac7b2b045", "score": "0.6973617", "text": "public function create()\n {\n return view('product.form', \n [\n 'product' => new Product\n ]);\n }", "title": "" }, { "docid": "daf28f960dad10d136b88bf0cb698afe", "score": "0.69729453", "text": "public function create()\n\t{\n\t\treturn view('siswa.add');\n\t}", "title": "" }, { "docid": "77b32a1a2812f894a1084db4a0c3b2d8", "score": "0.6965231", "text": "public function create()\n {\n $title = trans('option.new');\n\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "title": "" }, { "docid": "4e37d311d6990013b0ed72549d9fd35f", "score": "0.69635546", "text": "public function create()\n {\n return view('product.form');\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "9cb057d0f77e53e0cce5708d50a6481b", "score": "0.6962359", "text": "public function create()\n {\n return view('new');\n }", "title": "" }, { "docid": "80055340b1924d51914b16fcf2fee697", "score": "0.6960298", "text": "public function newAction()\n {\n $entity = new Client();\n $form = $this->createCreateForm($entity);\n return $this->render('ProjectFilmsBundle:Default:singup.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n}", "title": "" }, { "docid": "d607449c2320c1a6b73af5c48d80dea8", "score": "0.695971", "text": "public function create()\n {\n\t\treturn view('Master.SMD.product_form');\n }", "title": "" }, { "docid": "41eb11154e57dff75498fcf25564c134", "score": "0.6952435", "text": "public function create()\n {\n return view('admin.book.add');\n }", "title": "" }, { "docid": "c99a469be2dc77ac788affd5c609736e", "score": "0.69498503", "text": "public function create()\n\t{\n\t\treturn view('tanah.create');\n\t}", "title": "" }, { "docid": "9c1725367be54b1702af65b52b997aa8", "score": "0.69449973", "text": "public function create()\n {\n //\n return view('village.form');\n }", "title": "" }, { "docid": "72f0db297092df3a05f0662bbcf847e2", "score": "0.6942181", "text": "public function create()\n {\n return \"Provide a form for creating a new bookmark\";\n }", "title": "" }, { "docid": "fd3e19a66d87f8e5b9e62eeab1859fd6", "score": "0.694158", "text": "public function create()\n {\n return view ('admin.choice.create');\n }", "title": "" }, { "docid": "5a43ba5452e70f5a9984d0dd656c9e9d", "score": "0.6939963", "text": "public function create()\n {\n return view('admin.student.add');\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.6937871", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "8f8abe7734d2df10a7d0bf9300d89ffd", "score": "0.6936004", "text": "public function create()\n\t{\n\t\tif ( ! \\Util::getAccess('Objetos', 'Insert')) return $this->accessFail();\n\t\t\n\t\t$objeto = new Objeto;\n\t\t$title = $this->title;\t\t\n $form_data = array('route' => 'objetos.store', 'method' => 'POST');\n $action = 'Ingresar'; \n\t\t$action_label = \\Lang::get('utils.Ingresar');\n\n return View::make('objetos/form', compact('objeto', 'title', 'form_data', 'action', 'action_label'));\n\t}", "title": "" }, { "docid": "8adebbe6d78e1269103db957362b2b48", "score": "0.6934276", "text": "public function create()\n {\n return view('admin.concepto.create');\n }", "title": "" }, { "docid": "cefebec03f775a193c7c4e8a62aa577f", "score": "0.6933069", "text": "public function create()\n {\n $this->data('model', new Question);\n\n $this->data('page_title', trans('labels.question_create'));\n\n $this->breadcrumbs(trans('labels.question_create'));\n\n return $this->render('views.question.create');\n }", "title": "" }, { "docid": "a0cec03d417a249e7b508d296e8928e7", "score": "0.6927707", "text": "public function new()\n {\n return view('backend.create');\n }", "title": "" }, { "docid": "b39914295738987f9eaa881efd81b08a", "score": "0.6924082", "text": "public function create()\n\t{\n\t\treturn view('hijos.create');\n\t}", "title": "" }, { "docid": "1b6fea0f3d627491bca24cc0ec1943b3", "score": "0.6922099", "text": "public function create()\n {\n $data['url'] = route('admin.'.$this->route . '.store');\n $data['title'] = 'Add ' . $this->viewName;\n $data['module'] = $this->viewName;\n $data['resourcePath'] = $this->view;\n $data['vendors'] = User::where([['status',1],['role',1]])->get();\n $data['brands'] = Brand::where('status',1)->get();\n\n return view('admin.general.add_form')->with($data);\n }", "title": "" }, { "docid": "0db3c2ce6e391f38a76280c98d234b3e", "score": "0.6913334", "text": "public function create()\n {\n return view(\"admin.main.general.create\");\n }", "title": "" }, { "docid": "d88972ac1a628783a7fbb403d9a8dcfc", "score": "0.6907519", "text": "public function create()\n {\n return view ('darbuotojai.create');\n }", "title": "" }, { "docid": "72d216b75443b4090ac0a1387c18009c", "score": "0.6906656", "text": "public function create()\n {\n //\n return view('crud.add');\n }", "title": "" }, { "docid": "675ca45cdb19e54120f6c28ad08c6960", "score": "0.69062245", "text": "public function createAction(): object\n {\n $this->checkIfLoggedIn();\n\n $page = $this->di->get(\"page\");\n $form = new CreateQuestion($this->di);\n $form->check();\n\n $page->add(\"question/crud/create\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $page->render([\n \"title\" => \"Ny fråga\",\n ]);\n }", "title": "" }, { "docid": "8a2147b2e963c3ef756e24bfe402ca2e", "score": "0.69051594", "text": "public function create()\n {\n return view(\"admin.driver.form\");\n }", "title": "" }, { "docid": "a30ccd806cf5bb09abba11f75d4178c0", "score": "0.69034714", "text": "public function newAction()\n {\n $form = $this->createForm(new RegistrationType(), new Registration());\n\n return $this->render('McmsEmployeeBundle:Admin:new.html.twig',array(\n 'form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "170085833f62c2562297ca840c892ec8", "score": "0.68962324", "text": "public function newAction()\n {\n $entity = new Carroceria();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ColombiaAutosadministradorBundle:Carroceria:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a43ba09f835dbd27d4a3433e6207db17", "score": "0.6891616", "text": "public function create()\n {\n return view('admin.car.create');\n }", "title": "" }, { "docid": "52b58d6fc4a50661368b682a572eca31", "score": "0.6890648", "text": "public function create()\n {\n return view('main.create');\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "f06c8b94a60d9059ad36c228a0917999", "score": "0.68900883", "text": "public function create()\n {\n //\n\n\n //default active sidebar\n $this->setActiveParent();\n\n //[] = current query object\n //null = current request\n $form_fields = DynamicForm::form_fields('create', [], null, Person::form_fields() );\n\n return view('persons.create', compact('form_fields'));\n\n\n }", "title": "" }, { "docid": "78ad8491acd5385f24f5ae5f822678c9", "score": "0.6889061", "text": "public function create()\n\t{\n\t\treturn view('maquinas.create');\n\t}", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "82fa764bee41d4c3cd502aeb977ac7aa", "score": "0.6887289", "text": "public function create()\r\n {\r\n //\r\n $title = ['title' => 'New Customer'];\r\n return view('forms.customer', $title);\r\n }", "title": "" }, { "docid": "cad48560e9ff66dc125cc429d28e9bff", "score": "0.6885613", "text": "public function create()\n\t{\n\t\treturn view('admin.add');\n\t}", "title": "" }, { "docid": "be02b3d6619c1ed55fce9db593195fb0", "score": "0.6883378", "text": "public function create()\n {\n return view ('rubro.create');\n }", "title": "" }, { "docid": "61f6eddf2e8e1651e313b0358ddb9d29", "score": "0.6880583", "text": "public function create()\n {\n $title = trans('religion.new');\n return view('layouts.create', compact('title'));\n }", "title": "" }, { "docid": "ba7e10af83b6a9def1f1ab3ca7b230a1", "score": "0.6880075", "text": "public function create()\n {\n //\n return view('fasilitass.create');\n }", "title": "" }, { "docid": "bb899035deb9e2ae019bb95d733db21b", "score": "0.6877273", "text": "public function create()\n {\n $model = new SupplierModel();\n return view('dashboard.form', compact('model'));\n }", "title": "" }, { "docid": "e9fdb84b89fc16f5dc603f982295014a", "score": "0.6874308", "text": "public function create()\n\t{\n\t\treturn view('drama.create');\n\t}", "title": "" }, { "docid": "0cf738a5e59aa5d58e20e3538192db7d", "score": "0.6874174", "text": "public function create()\n {\n return view('port.main.create');\n }", "title": "" }, { "docid": "a052e9655360674093e5af6adf7d43e9", "score": "0.68733674", "text": "public function create()\n {\n $catalogs = CatalogServices::getAllCatalog();\n return view('components.products.add-form', compact('catalogs'));\n }", "title": "" }, { "docid": "021e8263ec26fa7e27d11fcfdc84da77", "score": "0.6870801", "text": "public function create()\n {\n return view('back.actions.create');\n }", "title": "" }, { "docid": "c503b35740e1792c403a88d8c50d856f", "score": "0.6869266", "text": "public function create()\n {\n return view(\"almacen.carrito.create\"); \n }", "title": "" }, { "docid": "5259e968b5dbb1b3e52be75d40a02866", "score": "0.68644255", "text": "public function create() {\n\n\t\treturn view('add');\n\t}", "title": "" }, { "docid": "8d3c38482140a40f4dbe44678bb1d515", "score": "0.6863528", "text": "public function create()\n {\n return view('master.form.sellout-form');\n }", "title": "" }, { "docid": "586b3f9f7932936d0639c9d4960679b7", "score": "0.68621755", "text": "public function create()\n\t{\n\t\treturn View::make('quantridanhmuchoithi.create');\n\t}", "title": "" }, { "docid": "7b28f26445b6881c693a90b24ca99ad8", "score": "0.6859603", "text": "public function create()\n {\n return view('manage.create');\n }", "title": "" } ]
1a3d8dec1722f546934b35b8121ea13e
Builds an event tree for a passed event
[ { "docid": "8bf6f62a4072cde38970f5756b600101", "score": "0.5944273", "text": "final private function _buildEvent($node) {\n\t\ttry {\n\t\t\t$nodes = explode('/', $node);\n\t\t\t$pointer =& $this->events;\n\n\t\t\tforeach($nodes as $node) {\n\t\t\t\tif(!isset($pointer->$node)) {\n\t\t\t\t\t$pointer->addChild($node);\n\t\t\t\t}\n\n\t\t\t\t$pointer =& $pointer->$node;\n\t\t\t}\n\n\t\t\tunset($node, $nodes);\n\n\t\t\treturn array($pointer);\n\t\t} catch(\\Exception $exception) {\n\t\t\tthrow new \\RuntimeException(\\Glue\\Helper\\General::replace(array('method' => __METHOD__), GLUE_EXCEPTION_METHOD_FAILED), NULL, $exception);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "fbeca9e1ef1d9e4351babc9308a3a235", "score": "0.58857703", "text": "public function buildTree();", "title": "" }, { "docid": "fc3d855ea0192cf7565ef3204965428c", "score": "0.54338753", "text": "public function createEvent() {\n $event = new Event($this->getContext());\n $this->addChild($event);\n $qry = new CreateEntityQuery($event);\n $this->getContext()->addQueryAndResultObject($qry,$event);\n return $event;\n }", "title": "" }, { "docid": "5c1fdf8308f0a70aae4d79f4126c822d", "score": "0.54166347", "text": "function build($events=array()) {\n\t\t\tparent::build();\n\t\t\tforeach ($this->calendar->children as $i=> $child) {\n\t\t\t\t$this->calendar->children[$i] = &new DiaryEvent($this->calendar->children[$i]);\n\t\t\t}\n\t\t\tif (count($events) > 0) {\n\t\t\t\t$this->setSelection($events);\n\t\t\t}\n\t\t\treturn true;\n\t\t}", "title": "" }, { "docid": "40b7c10b7ca1aa54e5230ad5d71affbb", "score": "0.5310621", "text": "public function makeAdextEvent()\n {\n return $this->makeAdextNode(static::BASE_OBJECT_PREFIX . 'AdextEvent');\n }", "title": "" }, { "docid": "996632756a6d98e35822c1ed4ef574f3", "score": "0.5268936", "text": "public function format($event)\n {\n global $post;\n\n //clone the passed $events //\n $wp_event = $event;\n\n //empty the $event to return, we will be creating a new event to this container //\n $event = [];\n\n /**\n * Create the timestamp to use, timestamp will be saved as post_date to match WPDB writer\n */\n if (isset($wp_event['timestamp']) && $wp_event['timestamp'] instanceof DateTime) \n $event[ 'post_date' ] = $wp_event['timestamp']->format($this->getDateTimeFormat());\n \n /**\n * Create the post_title to use, the tile can be checked from extra[ 'title']\n * or if WP_Event processor is used, check extra['postTitle']\n */\n if( !empty( $wp_event[ 'extra' ][ 'postTitle' ] ) )\n $event[ 'post_title' ] = $wp_event[ 'extra' ][ 'postTitle' ];\n \n\n //copy the message index to post_content //\n $event[ 'post_content' ] = $wp_event[ 'message' ];\n\n //copy the priorityName to log_type, this will serve as post term //\n $event[ 'log_type' ] = $wp_event[ 'priorityName' ];\n\n if( !empty( $wp_event[ 'extra' ][ 'postID' ] ) )\n $event[ 'post_parent' ] = $post->ID;\n\n \n if( isset( $wp_event[ 'extra' ][ 'meta' ] ) )\n $event[ 'extra' ][ 'meta' ] = $wp_event[ 'meta' ];\n \n $event[ 'post_title' ] = !empty( $event[ 'post_title' ] ) ?: wp_trim_words( $event[ 'post_content' ], 33, '...' );\n\n\n return $event;\n }", "title": "" }, { "docid": "7d3e7e00b20c7d277bccd32b7fce7577", "score": "0.5199062", "text": "abstract protected function createEventProvider();", "title": "" }, { "docid": "38f799110ce925cd399ab01769d68cdb", "score": "0.51298994", "text": "protected function buildDomainObject( $row ) {\n\t\t$event = new Event();\n\n\t\t$event->setId( $row['evt_id'] );\n\t\t$event->setName( $row['evt_name'] );\n\t\t$event->setDescription( $row['evt_description'] );\n\t\t$event->setTopic( $row['evt_topic'] );\n\t\t$event->setIsAnnual( ( $row['evt_is_annual'] ) ? true : false );\n\t\t$event->setBeginDate( $row['evt_begin_date'] );\n\t\t$event->setEndDate( $row['evt_end_date'] );\n\t\t\n\t\tif ( $row['loc_id'] ) {\n\t\t\t$locRep = new LocationRepository();\n\t\t\t$event->setLocation( $locRep->findById( $row['loc_id'] ) );\n\t\t}\n\n\t\treturn $event;\n\t}", "title": "" }, { "docid": "64f97781e6f49980d75a86466d86eb65", "score": "0.5113125", "text": "public function parse(Event $event);", "title": "" }, { "docid": "81d780613a928cdd740acf834c59ed39", "score": "0.5024985", "text": "function add_xml_event_node($inpt_array) {\n extract($inpt_array);\n $urlRoot = \"http://waanoo.com/\";\n $search_output .= \"\n <event>\n <name>\".strip_tags($event_title).\"</name>\n <description>\".strip_tags($event_description).\"</description>\n <eventID>$event_id</eventID> \n <userID>$user_id</userID> \n <startDate>$start_date</startDate>\n <endDate>$end_date</endDate>\n <venueAddress>\".strip_tags($venue_address).\"</venueAddress>\n <latitude>$lat</latitude>\n <logitude>$lon</logitude>\n <distance>$distance</distance>\n <isContactable>$isContactInfo</isContactable>\n <contactInfo>\".strip_tags($contactInfo).\"</contactInfo>\n <contactType>$contactType</contactType>\n <imageURL>$urlRoot$image_url</imageURL>\n </event>\";\n \n return $search_output;\n }", "title": "" }, { "docid": "c33276d43570e502354b41f8acabe7d4", "score": "0.4949794", "text": "public function events(): EventsRequestBuilder {\n return new EventsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "ca9ccd4445f7681a55b9519a70f1d0f5", "score": "0.49115708", "text": "function create_event_list($events) {\n $list = \"<ul>\"; // Start list\n foreach ($events as $row) {\n $eid = $row[\"eid\"];\n $eName = $row[\"name\"];\n $list = $list.\"<li>\".create_event($eid, $eName).\"</li>\";\n }\n\n $list = $list.\"</ul>\";\n return $list;\n}", "title": "" }, { "docid": "53ec8db870151359859d4aa789f4ac0e", "score": "0.4884834", "text": "function wtr_create_events() {\r\n\r\n\tglobal $WTR_Opt, $wtr_custom_posts_type, $wtr_custom_posts_taxonomy;\r\n\t$wtr_SlugsEvents_Slug\t\t= $WTR_Opt->getopt('wtr_SlugsEvents_Slug');\r\n\t$wtr_custom_posts_type[]\t= 'events';\r\n\t$wtr_custom_posts_taxonomy[]= 'events-category';\r\n\r\n\t$labels= array(\r\n\t\t'name' \t\t\t\t\t=> __( 'Events', 'wtr_ct_framework' ),\r\n\t\t'all_items'\t\t\t\t=> __( 'All Events', 'wtr_ct_framework' ),\r\n\t\t'singular_name' \t\t=> __( 'Events', 'wtr_ct_framework' ),\r\n\t\t'add_new' \t\t\t\t=> __( 'Add New', 'wtr_ct_framework' ),\r\n\t\t'add_new_item' \t\t\t=> __( 'Add New Event', 'wtr_ct_framework' ),\r\n\t\t'edit_item' \t\t\t=> __( 'Edit Event', 'wtr_ct_framework' ),\r\n\t\t'new_item' \t\t\t\t=> __( 'New Event', 'wtr_ct_framework' ),\r\n\t\t'view_item' \t\t\t=> __( 'View Event', 'wtr_ct_framework' ),\r\n\t\t'search_items' \t\t\t=> __( 'Search Events', 'wtr_ct_framework' ),\r\n\t\t'not_found' \t\t\t=> __( 'No Events found', 'wtr_ct_framework' ),\r\n\t\t'not_found_in_trash'\t=> __( 'No Events found in Trash', 'wtr_ct_framework' )\r\n\t);\r\n\r\n\t$args = array(\r\n\t\t'labels' \t\t\t\t=> $labels,\r\n\t\t'public' \t\t\t\t=> true,\r\n\t\t'publicly_queryable' \t=> true,\r\n\t\t'show_ui' \t\t\t\t=> true,\r\n\t\t'query_var' \t\t\t=> true,\r\n\t\t'capability_type' \t\t=> 'post',\r\n\t\t'hierarchical' \t\t\t=> false,\r\n\t\t'menu_position' \t\t=> null,\r\n\t\t\"show_in_nav_menus\" \t=> false,\r\n\t\t'exclude_from_search' \t=> false,\r\n\t\t'rewrite' \t\t\t\t=> array( 'slug' => $wtr_SlugsEvents_Slug, 'with_front' => true ),\r\n\t\t'supports' \t\t\t\t=> array( 'title', 'editor', 'thumbnail', 'page-attributes', 'excerpt' )\r\n\t);\r\n\tregister_post_type( 'events', $args );\r\n\tregister_taxonomy(\r\n\t\t\"events-category\", array(\"events\"), array(\r\n\t\t\t'public' \t\t\t=> false,\r\n\t\t\t'show_ui' \t\t\t=> true,\r\n\t\t\t'show_tagcloud'\t\t=> false,\r\n\t\t\t\"hierarchical\" \t\t=> true,\r\n\t\t\t\"show_in_nav_menus\" => false,\r\n\t\t\t\"rewrite\" \t\t\t=> true,\r\n\t\t\t'labels' \t\t\t=> array(\r\n\t\t\t\t'name' \t\t\t\t=> __( 'Events Categories', 'wtr_ct_framework' ),\r\n\t\t\t\t'singular_name' \t=> __( 'Event Category', 'wtr_ct_framework' ),\r\n\t\t\t\t'edit_item' \t\t=> __( 'Edit Event Category', 'wtr_ct_framework' ),\r\n\t\t\t\t'search_items'\t\t=> __( 'Search Event Category' , 'wtr_ct_framework' ),\r\n\t\t\t\t'all_items'\t\t\t=> __( 'All Events Categories' , 'wtr_ct_framework' ),\r\n\t\t\t\t'parent_item'\t\t=> __( 'Parent Event Category' , 'wtr_ct_framework' ),\r\n\t\t\t\t'parent_item_colon'\t=> __( 'Parent Event Category:' , 'wtr_ct_framework' ),\r\n\t\t\t\t'edit_item'\t\t\t=> __( 'Edit Event Category' , 'wtr_ct_framework' ),\r\n\t\t\t\t'update_item'\t\t=> __( 'Update Event Category' , 'wtr_ct_framework' ),\r\n\t\t\t\t'add_new_item'\t\t=> __( 'Add New Event Category' , 'wtr_ct_framework' ),\r\n\t\t\t\t'new_item_name'\t\t=> __( 'New Event Category Name' , 'wtr_ct_framework' ),\r\n\t\t\t\t'menu_name'\t\t\t=> __( 'Events Categories' , 'wtr_ct_framework' )\r\n\t\t\t\t),\r\n\t\t\t)\r\n\t\t);\r\n}", "title": "" }, { "docid": "119344f6e21ddec4c99ffa34f6f35ecf", "score": "0.4872888", "text": "public function buildCalendar()\n\t\t{\n\t\t\t$events = $this->_createEventObj();\n\t\t\t/*\n\t\t\t* Determine the calendar month and create an array of\n\t\t\t* weekday abbreviations to label the calendar columns\n\t\t\t*/\n\t\t\t$cal_month = date('F Y', strtotime($this->_useDate));\n\t\t\tdefine('WEEKDAYS', array('Sun', 'Mon', 'Tue',\n\t\t\t'Wed', 'Thu', 'Fri', 'Sat'));\n\t\t\t/*\n\t\t\t* Add a header to the calendar markup\n\t\t\t*/\n\t\t\t$html = \"<h2>$cal_month</h2>\";\n\t\t\tfor ( $d=0, $labels=NULL; $d<7; ++$d )\n\t\t\t{\n\t\t\t\t$labels .= \"<li>\" . WEEKDAYS[$d] . \"</li>\";\n\t\t\t}\n\t\t\t$html .= \"<ul class='weekdays'>\". $labels . \"</ul>\";\n\n\t\t\t/*\n\t\t\t* Create the calendar markup\n\t\t\t*/\n\t\t\t$html .= \"<ul>\"; // Start a new unordered list\n\t\t\tfor ( $i=1, $c=1, $t=date('j'), $m=date('m'), $y=date('Y');\n\t\t\t$c<=$this->_daysInMonth; ++$i )\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\t* Apply a \"fill\" class to the boxes occurring before\n\t\t\t\t* the first of the month\n\t\t\t\t*/\n\t\t\t\t$class = $i<=$this->_startDay ? \"fill\" : NULL;\n\n\t\t\t\t/*\n\t\t\t\t* Add a \"today\" class if the current date matches\n\t\t\t\t* the current date\n\t\t\t\t*/\n\t\t\t\tif ( $c==$t && $m==$this->_m && $y==$this->_y )\n\t\t\t\t{\n\t\t\t\t\t$class = \"today\";\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\t* Build the opening and closing list item tags\n\t\t\t\t*/\n\t\t\t\t$ls = sprintf(\"\\n\\t\\t<li class=\\\"%s\\\">\", $class);\n\t\t\t\t$le = \"\\n\\t\\t</li>\";\n\t\t\t /*\n\t\t\t\t* Add the day of the month to identify the calendar box\n\t\t\t\t*/\n\t\t\t\tif ( $this->_startDay<$i && $this->_daysInMonth>=$c)\n\t\t\t\t{\n\t\t\t\t\t/*\n\t\t\t\t\t* Format events data\n\t\t\t\t\t*/\n\t\t\t\t\t$event_info = NULL; // clear the variable\n\t\t\t\t\tif ( isset($events[$c]) )\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ( $events[$c] as $event )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$link = '<a href=\"view.php?event_id='\n\t\t\t\t\t\t\t. $event->id . '\">' . $event->title. '</a>';\n\t\t\t\t\t\t\t$event_info .= \"\\n\\t\\t\\t$link\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$date = sprintf(\"\\n\\t\\t\\t<strong>%02d</strong>\",$c++);\n\t\t\t\t}\n\t\t\t\telse { $date=\"&nbsp;\"; }\n\t\t\t\t\t/*\n\t\t\t\t\t* If the current day is a Saturday, wrap to the next row\n\t\t\t\t\t*/\n\t\t\t\t\t$wrap = $i!=0 && $i%7==0 ? \"\\n\\t</ul>\\n\\t<ul>\" : NULL;\n\t\t\t\t\t/*\n\t\t\t\t\t* Assemble the pieces into a finished item\n\t\t\t\t\t*/\n\t\t\t\t\t$html .= $ls . $date . $event_info . $le . $wrap;\n\n\t\t\t }\n\n\t\t\t/*\n\t\t\t* Add filler to finish out the last week\n\t\t\t*/\n\t\t\twhile ( $i%7!=1 )\n\t\t\t{\n\t\t\t\t$html .= \"\\n\\t\\t<li class=\\\"fill\\\">&nbsp;</li>\";\n\t\t\t\t++$i;\n\t\t\t}\n\t\t\t/*\n\t\t\t* Close the final unordered list\n\t\t\t*/\n\t\t\t$html .= \"\\n\\t</ul>\\n\\n\";\n\t\t\t/*\n\t\t\t* Return the markup for output\n\t\t\t*/\n\t\t\treturn $html;\n\t\t}", "title": "" }, { "docid": "2f46198508d69e1c99f1ce99b4c7f93a", "score": "0.47964698", "text": "public function run($event) {\n $table = $event['table'];\n $eventid = $event['id'];\n $execdate = $event['execdate'];\n $event_type_id = $event['event_type_id'];\n \n // initiate new event object\n $events = new Events();\n \n // create new object with factory\n $queue = QueueFactory::create(\"Building\");\n // get building queue entry\n $building_queue = $queue->get($event_type_id);\n \n // if there's an building_queue entry\n if (is_array($building_queue)) {\n \n // init objects\n $base = new Base($building_queue['base_id']);\n $slot = new Slot($base, $building_queue['slot_id']);\n \n // try to upgrade the building\n $upgraded = $slot->upgradeBuilding();\n \n // if upgrade was successful\n if ($upgraded) {\n // delete event entry\n $events->delete($eventid);\n // delete building queue entry\n $queue->delete($event_type_id);\n }\n \n if ($event['execdate'] != time()) {\n $log = Registry::getModule('Log');\n $log->log(\"Time's not right: \" . $event['execdate'] . \" -> \" . time() . \" => \" . serialize($event) . \"\\n\");\n }\n }\n }", "title": "" }, { "docid": "b77b472bd611194bb420740bedde68e6", "score": "0.47899246", "text": "public function build(): CashDrawerShiftEvent\n {\n return CoreHelper::clone($this->instance);\n }", "title": "" }, { "docid": "d318915fdcac95d25b76c53bd47156b5", "score": "0.47858587", "text": "public function buildEventBody(\\Magento\\Framework\\Event $event)\n {\n $product = $this->_productResource->getProduct($event->getProduct()->getId(), false);\n\n // we do not need to send an event if product is disabled or invisible\n $allowedVisibility = [Visibility::VISIBILITY_IN_CATALOG, Visibility::VISIBILITY_BOTH];\n if ($product->getStatus() != Status::STATUS_ENABLED\n || !in_array($product->getVisibility(), $allowedVisibility)\n ) {\n // however if the changes involved status or visibility, then we need to send a delete event\n// if ($event->getProduct()->dataHasChangedFor('status')\n// || $event->getProduct()->dataHasChangedFor('visibility')\n// ) {\n $this->_eventManager->dispatch(\n 'koklu_masterdata_not_salable_product_save', ['product' => $product]\n );\n// }\n return null;\n }\n\n return new Event(self::EVENT_SUBJECT, $this->_productBuilder->create($product));\n }", "title": "" }, { "docid": "037fa5346adedd5cf3e200deac7f23a0", "score": "0.478418", "text": "abstract public function addEvent(Kronolith_Event $event);", "title": "" }, { "docid": "b5165a47a1422ad70e21b74af1a0cb5c", "score": "0.47703737", "text": "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "title": "" }, { "docid": "b5165a47a1422ad70e21b74af1a0cb5c", "score": "0.47703737", "text": "public function __construct(Event $event)\n {\n $this->event = $event;\n }", "title": "" }, { "docid": "e375ea982a436648ca8586b3329e9487", "score": "0.47529176", "text": "private function parseEvents()\n\t{\n\t\t// Fetch and compile events (we don't care if none are available)\n\t\t$objEvents = $this->Database->prepare(\"SELECT * FROM tl_timeline_event WHERE published=1 AND pid=? ORDER BY start DESC\")->execute($this->Timeline->id);\n\t\t\n\t\t$arrEvents = array();\n\t\twhile( $objEvents->next() )\n\t\t{\n\t\t\t$strEvent = sprintf('\n{\n title: \"%s\",\n durationEvent: %s,\n start: \"%s\"%s%s%s%s%s%s%s%s%s%s%s%s\n}',\n\t\t\t\tstr_replace(array('\"', \"\\n\", \"\\r\"), array('\\\"', ' ', ' '), $objEvents->title),\n\t\t\t\t($objEvents->durationEvent && $objEvents->end > 0 ? 'true' : 'false'),\n\t\t\t\t$objEvents->start,\n\t\t\t\t(($objEvents->durationEvent && strlen($objEvents->latestStart)) ? \",\\n\".' latestStart: \"' . $objEvents->latestStart . '\"' : ''),\n\t\t\t\t(strlen($objEvents->end) ? \",\\n\".' end: \"' . $objEvents->end . '\"' : ''),\n\t\t\t\t(($objEvents->durationEvent && strlen($objEvents->earliestEnd)) ? \",\\n\".' earliestEnd: \"' . $objEvents->earliestEnd . '\"' : ''),\n\t\t\t\t(strlen($objEvents->caption) ? \",\\n\".' caption: \"'.str_replace(array('\"', \"\\n\", \"\\r\"), array('\\\"', ' ', ' '), $objEvents->caption).'\"' : ''),\n\t\t\t\t(strlen($objEvents->description) ? \",\\n\".' description: \"'.str_replace(array('\"', \"\\n\", \"\\r\"), array('\\\"', ' ', ' '), $objEvents->description).'\"' : ''),\n\t\t\t\t(strlen($objEvents->icon) ? \",\\n\".' icon: \"'.$objEvents->icon.'\"' : ''),\n\t\t\t\t(strlen($objEvents->image) ? \",\\n\".' image: \"'.$objEvents->image.'\"' : ''),\n\t\t\t\t(strlen($objEvents->link) ? \",\\n\".' link: \"'.$objEvents->link.'\"' : ''),\n\t\t\t\t(strlen($objEvents->color) ? \",\\n\".' color: \"'.$objEvents->color.'\"' : ''),\n\t\t\t\t(strlen($objEvents->textColor) ? \",\\n\".' textColor: \"'.$objEvents->textColor.'\"' : ''),\n\t\t\t\t(strlen($objEvents->tapeImage) ? \",\\n\".' tapeImage: \"'.$objEvents->tapeImage.'\"' . \",\\n\".' tapeRepeat: \"'.str_replace(\"'\", \"\\'\", $objEvents->tapeRepeat).'\"' : ''),\n\t\t\t\t(strlen($objEvents->cssClass) ? \",\\n\".' classname: \"'.$objEvents->cssClass.'\"' : '')\n\t\t\t);\n\n\t\t\t$arrEvents[] = $strEvent;\n\t\t}\n\t\t\n\t\treturn $arrEvents;\n\t}", "title": "" }, { "docid": "34bdbf0c2edb555a14be413fb38b370e", "score": "0.4745285", "text": "function create_event($config, $data, $db)\n{\n // of required key values that we can use to strictly validate the data source.\n $event_keys = array(\n 'bounce' => array('reason', 'type', 'status', 'smtp-id', 'sg_message_id'),\n 'click' => array('url', 'ip', 'useragent'),\n 'deferred' => array('response', 'attempt', 'smtp-id', 'sg_event_id'),\n 'delivered' => array('response', 'smtp-id', 'sg_event_id'),\n 'dropped' => array('reason', 'smtp-id'),\n 'open' => array('ip', 'useragent'),\n 'processed' => array('smtp-id', 'sg_event_id', 'sg_message_id'),\n 'spamreport' => array('sg_message_id'),\n 'unsubscribe' => array()\n );\n\n $basic_keys = array('email', 'event', 'category', 'timestamp');\n $unique_keys = array('mailing_id', 'job_id', 'is_test', 'queue_id', 'instance', 'install_class', 'servername');\n\n // We require a valid event_type to be specified\n if (!($event_type = get_default('event', $data, false))) {\n error_out(400, \"Event parameter must be specified and non-empty\");\n }\n elseif (!isset($event_keys[$event_type])) {\n error_out(400,\"Event type '$event_type' is invalid.\");\n }\n\n // Filter out all unexpected keys and validate the keyset\n // Also sanitize the SQL arguments for safety against injection\n $expected_keys = array_merge($basic_keys, $event_keys[$event_type], $unique_keys);\n $expected_keys = array_flip($expected_keys);\n $cleaned_data = array();\n foreach ($data as $key => $value) {\n if (array_key_exists($key, $expected_keys)) {\n $cleaned_data[$key] = mysql_real_escape_string(urldecode($value), $db);\n }\n }\n\n // Build the generic event insert statement. Make sure to supply a default\n // value for each one of these fields because we may have previously issued\n // a warning about missing parameters from the POST request.\n $email = get_default('email', $cleaned_data, '');\n $instance = get_default('instance', $cleaned_data, '');\n $category = get_default('category', $cleaned_data, '');\n $servername = get_default('servername', $cleaned_data, '');\n $install_class = get_default('install_class', $cleaned_data, '');\n $job_id = get_default('job_id', $cleaned_data, 0);\n $is_test = get_default('is_test', $cleaned_data, 0);\n $queue_id = get_default('queue_id', $cleaned_data, 0);\n $mailing_id = get_default('mailing_id', $cleaned_data, 0);\n $timestamp = date('Y-m-d H:i:s', get_default('timestamp', $cleaned_data, 0));\n\n //Issue warnings if the incoming data isn't complete\n if ($diff = array_diff_key($expected_keys, $cleaned_data)) {\n $keys = implode(', ', array_keys($diff));\n log_(\"WARN\", \"[$install_class/$instance#$mailing_id] Expected keys missing for event type '$event_type': $keys\");\n }\n\n //Issue warnings if more data was sent than was expected.\n if ($diff = array_diff_key($data, $expected_keys)) {\n $keys = implode(', ',array_keys($diff));\n log_(\"WARN\", \"[$install_class/$instance#$mailing_id] Unexpected keys found for event type '$event_type': $keys\");\n }\n\n $fields = \"event_type, email, category, dt_created, dt_received, mailing_id, job_id, queue_id, instance, install_class, servername, is_test\";\n $values = \"'$event_type','$email','$category','$timestamp', NOW(), $mailing_id, $job_id, $queue_id, '$instance', '$install_class', '$servername', $is_test\";\n $insert_event = \"INSERT INTO incoming ($fields) VALUES ($values)\";\n\n // Build the event specific insert statement. Make sure to supply a default\n // value for each one of these fields because we may have previously issued\n // a warning about missing parameters from the POST request.\n $response = get_default('response', $cleaned_data, '');\n $smtp_id = get_default('smtp-id', $cleaned_data, '');\n $attempt = get_default('attempt', $cleaned_data, 0);\n $reason = get_default('reason', $cleaned_data, '');\n $status = get_default('status', $cleaned_data, '');\n $type = get_default('type', $cleaned_data, '');\n $url = get_default('url', $cleaned_data, '');\n\n $insert_type = \"INSERT INTO $event_type \";\n switch ($event_type) {\n case 'bounce': $insert_type .= \"(event_id, reason, type, status, smtp_id) VALUES (@event_id, '$reason','$type', '$status','$smtp_id')\"; break;\n case 'click': $insert_type .= \"(event_id, url) VALUES (@event_id, '$url')\"; break;\n case 'deferred': $insert_type .= \"(event_id, reason, attempt_num, smtp_id) VALUES (@event_id, '$response', $attempt, '$smtp_id')\";break;\n case 'delivered': $insert_type .= \"(event_id, response, smtp_id) VALUES (@event_id, '$response', '$smtp_id')\"; break;\n case 'dropped': $insert_type .= \"(event_id, reason , smtp_id) VALUES (@event_id, '$reason', '$smtp_id')\"; break;\n case 'processed': $insert_type .= \"(event_id, smtp_id) VALUES (@event_id,'$smtp_id')\"; break;\n case 'open': //fall through to next case\n case 'spamreport': //fall through to next case\n case 'unsubscribe': $insert_type .= \"(event_id) VALUES (@event_id)\"; break;\n };\n\n // Run a sequence of SQL queries, locked in a transaction for consistency\n $queries = array(\n \"SET autocommit=0\",\n \"BEGIN\",\n $insert_event,\n \"SET @event_id := LAST_INSERT_ID()\",\n $insert_type,\n \"COMMIT\"\n );\n\n // I can't believe php doesn't let you execute multiple queries at once...\n foreach ($queries as $sql) {\n exec_query($sql);\n }\n}", "title": "" }, { "docid": "a2668749cc612a93dd6a7d30b844bfb3", "score": "0.4703737", "text": "function build_tree(&$tree, $key, $subPart){\n\n\t\tpreg_match_all('!\\<t\\:([a-z0-9]+)\\s*\\>(.*)\\</t:\\1\\>!i', $subPart,$results,PREG_SET_ORDER);\n\t\t$tree[$key]['_text'] = preg_replace('!\\<t\\:([a-z0-9]+)\\s*\\>(.*)\\</t:\\1\\>!i', '##\\1##', $subPart);\n\t\t$tree[$key]['_keys'] = array();\n\n\t\tforeach($results as $match){\n\t\t\tbuild_tree($tree[$key],$match[1],$match[2]);\n\t\t\tarray_push($tree[$key]['_keys'],$match[1]);\n\t\t}\n\n\t}", "title": "" }, { "docid": "d3df810c6a589c53cca22e202b302507", "score": "0.4698632", "text": "public static function defineDirectoryStructure(Event $event)\n {\n $options = static::getOptions($event);\n\n if (!getenv('SENSIOLABS_ENABLE_NEW_DIRECTORY_STRUCTURE') || !$event->getIO()->askConfirmation('Would you like to use Symfony 3 directory structure? [y/N] ', false)) {\n return;\n }\n\n $rootDir = getcwd();\n $appDir = $options['symfony-app-dir'];\n $webDir = $options['symfony-web-dir'];\n $binDir = static::$options['symfony-bin-dir'] = 'bin';\n $varDir = static::$options['symfony-var-dir'] = 'var';\n\n static::updateDirectoryStructure($event, $rootDir, $appDir, $binDir, $varDir, $webDir);\n }", "title": "" }, { "docid": "8f0d1e38a9f1db7d89b518535c143836", "score": "0.4692679", "text": "public function getElggEvents()\r\n\t{\r\n\t\tglobal $CONFIG;\r\n\t\t\r\n\t\t$tree = array();\r\n\t\tforeach ($CONFIG->events as $event => $types) {\r\n\t\t\tforeach ($types as $type => $handlers) {\r\n\t\t\t\t$tree[$event . ',' . $type] = array_values($handlers);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tksort($tree);\r\n\t\t\r\n\t\treturn $tree;\r\n\t}", "title": "" }, { "docid": "9615e482d7960571ebe8ad6c680e7878", "score": "0.46829873", "text": "public static function buildBootstrap(Event $event)\n {\n $options = static::getOptions($event);\n foreach ($options['dm-apps'] as $config) {\n $bootstrapDir = $autoloadDir = $config['app-dir'];\n\n if (static::useNewDirectoryStructure($options)) {\n $bootstrapDir = $options['symfony-var-dir'];\n if (!static::hasDirectory($event, 'symfony-var-dir', $bootstrapDir, 'build bootstrap file')) {\n break;\n }\n }\n if (!static::hasDirectory($event, 'symfony-app-dir', $autoloadDir, 'build bootstrap file')) {\n break;\n }\n\n static::executeBuildBootstrap($event, $bootstrapDir, $autoloadDir, $options['process-timeout']);\n }\n }", "title": "" }, { "docid": "8ca6d7a0bb90c8aacd95ad4d9315f45d", "score": "0.4680097", "text": "public function buildCriteria()\n\t{\n\t\t$criteria = new Criteria(EventPeer::DATABASE_NAME);\n\n\t\tif ($this->isColumnModified(EventPeer::ID)) $criteria->add(EventPeer::ID, $this->id);\n\t\tif ($this->isColumnModified(EventPeer::DIRECT_ID)) $criteria->add(EventPeer::DIRECT_ID, $this->direct_id);\n\t\tif ($this->isColumnModified(EventPeer::SERIAL_ID)) $criteria->add(EventPeer::SERIAL_ID, $this->serial_id);\n\t\tif ($this->isColumnModified(EventPeer::DATE)) $criteria->add(EventPeer::DATE, $this->date);\n\t\tif ($this->isColumnModified(EventPeer::DISPLAY)) $criteria->add(EventPeer::DISPLAY, $this->display);\n\t\tif ($this->isColumnModified(EventPeer::CREATE_SERIAL)) $criteria->add(EventPeer::CREATE_SERIAL, $this->create_serial);\n\t\tif ($this->isColumnModified(EventPeer::ENABLE_QUERY)) $criteria->add(EventPeer::ENABLE_QUERY, $this->enable_query);\n\t\tif ($this->isColumnModified(EventPeer::EMAIL_QUERY)) $criteria->add(EventPeer::EMAIL_QUERY, $this->email_query);\n\t\tif ($this->isColumnModified(EventPeer::AUTHOR)) $criteria->add(EventPeer::AUTHOR, $this->author);\n\t\tif ($this->isColumnModified(EventPeer::PRODUCER)) $criteria->add(EventPeer::PRODUCER, $this->producer);\n\t\tif ($this->isColumnModified(EventPeer::EXTERNAL)) $criteria->add(EventPeer::EXTERNAL, $this->external);\n\t\tif ($this->isColumnModified(EventPeer::URL)) $criteria->add(EventPeer::URL, $this->url);\n\t\tif ($this->isColumnModified(EventPeer::SECURED)) $criteria->add(EventPeer::SECURED, $this->secured);\n\t\tif ($this->isColumnModified(EventPeer::PASSWORD)) $criteria->add(EventPeer::PASSWORD, $this->password);\n\n\t\treturn $criteria;\n\t}", "title": "" }, { "docid": "6bf1a99a94424ae84b9dd5cf7144437c", "score": "0.46640396", "text": "function qem_build_event ($name,$event,$display,$custom,$atts,$register,$payment) {\n global $post;\n $style = $output = $caption = $target = '';\n if ($atts['settings']){\n if ($event['bold'][$name] == 'checked') $style .= 'font-weight: bold; ';\n if ($event['italic'][$name] == 'checked') $style .= 'font-style: italic; ';\n if ($event['colour'][$name]) $style .= 'color: '. $event['colour'][$name] . '; ';\n if ($event['size'][$name]) $style .= 'font-size: ' . $event['size'][$name] . '%; ';\n if ($style) $style = 'style=\"' . $style . '\" ';\n }\n switch ( $name ) {\n case 'field1':\n if (!empty($event['description_label'])) \n $caption = $event['description_label'].' ';\n if (!empty ( $custom['event_desc'][0] ))\n $output .= '<p class=\"desc\" ' . $style . '>' . $caption . $custom['event_desc'][0] . '</p>';\n break;\n case 'field2':\n if (!empty($custom['event_start'][0] )) {\n $output .= '<p class=\"start\" ' . $style . '>' . $event['start_label'] . ' ' . $custom['event_start'][0];\n if (!empty($custom['event_finish'][0])) \n $output .= ' '.$event['finish_label'].' '. $custom['event_finish'][0];\n if ($display['usetimezone'] && $custom['event_timezone'][0]) \n $output .= ' '.$display['timezonebefore'].' '.$custom['event_timezone'][0].' '.$display['timezoneafter'];\n $output .= '</p>';}\n break;\n case 'field3':\n if (!empty($event['location_label']))\n $caption = $event['location_label'].' ';\n if (!empty ( $custom['event_location'][0] ))\n $output .= '<p class=\"location\" ' . $style . '>' . $caption . $custom['event_location'][0] . '</p>';\n break;\n case 'field4':\n if (!empty($event['address_label']))\n $caption = $event['address_label'].' ';\n if (!empty ($custom['event_address'][0] ))\n $output .= '<p class=\"address\" ' . $style . '>' . $caption . $custom['event_address'][0] . '</p>';\n break;\n case 'field5':\n if (!empty($event['url_label'])) \n $caption = $event['url_label'].' ';\n if ($display['external_link_target']) \n $target = 'target=\"_blank\"';\n if (!preg_match(\"~^(?:f|ht)tps?://~i\", $custom['event_link'][0])) \n $url = 'http://' . $custom['event_link'][0]; \n else \n $url = $custom['event_link'][0];\n if (empty($custom['event_anchor'][0])) \n $custom['event_anchor'][0] = $custom['event_link'][0];\n if (!empty ( $custom['event_link'][0] )) \n $output .= '<p class=\"website\" '.$style.'>'.$caption.'<a itemprop=\"url\" '.$style .' '.$target.' href=\"'.$url.'\">' .$custom['event_anchor'][0].'</a></p>';\n break;\n case 'field6':\n if (!empty($event['cost_label'])) \n $caption = $event['cost_label'].' ';\n if (!empty ( $custom['event_cost'][0] )) {\n $output .= '<p ' . $style . '>' . $caption . $custom['event_cost'][0];\n if (!empty($event['deposit_before_label'])) \n $bcaption = $event['deposit_before_label'].' ';\n if (!empty($event['deposit_after_label'])) \n $acaption = ' '.$event['deposit_after_label'];\n if (!empty($custom['event_deposit'][0] )) \n $output .= ' ('.$bcaption . $custom['event_deposit'][0].$acaption.')';\n }\n if ($output) $output .= '</p>';\n break;\n case 'field7':\n if (!empty($event['organiser_label'])) \n $caption = $event['organiser_label'].' ';\n if (!empty ( $custom['event_organiser'][0] )) {\n $output .= '<p class=\"organisation\" ' . $style . '>' . $caption . $custom['event_organiser'][0];\n if (!empty($custom['event_telephone'][0]) && $event['show_telephone']) \n $output .= ' / ' . $custom['event_telephone'][0];\n $output .= '</p>';\n }\n break;\n case 'field8':\n $output .= get_the_content();\n break;\n \n case 'field9':\n $str = qem_get_the_numbers($post->ID,$payment);\n $number = get_post_meta($post->ID, 'event_number', true);\n if ($number && $str > $number) $str = $number;\n if ($str) {\n if ($str == 1) $str = $event['oneattendingbefore'];\n else $str = $event['numberattendingbefore'].' '.$str.' '.$event['numberattendingafter'];\n $output .= '<p id=\"whoscoming\" class=\"totalcoming\" ' . $style . '>'.$str.'</p>';\n } \n break;\n case 'field10':\n $number = get_post_meta($post->ID, 'event_number', true);\n $num = $str= $grav = $content = '';\n $whoscoming = get_option('qem_messages_'.$post->ID);\n if ($whoscoming) {\n if ($register['listnames']) {\n foreach($whoscoming as $item) {\n $num = $num + $item['yourplaces'];\n $ipn = qem_check_ipnblock($payment,$item);\n if ((!$number || $num <= $number) && \n !$item['notattend'] &&\n !$ipn &&\n (($register['moderate'] && $item['approved']) || !$register['moderate'])) {\n \n $url = preg_replace('/(?:https?:\\/\\/)?(?:www\\.)?(.*)\\/?$/i', '$1', $item['yourblank1']);\n if ($url) $url = ' <a href=\"'.$item['yourblank1'].'\">'.$url.'</a>';\n \n $msg = $register['listblurb'];\n $msg = str_replace('[name]', $item['yourname'],$msg);\n $msg = str_replace('[places]', $item['yourplaces'],$msg);\n $msg = str_replace('[telephone]', $item['yourtelephone'], $msg);\n $msg = str_replace('[website]', $url, $msg);\n if ($item['yourname']) $str = $str.'<li>'.$msg.'</li>';\n }\n }\n if ($str && $event['whoscoming']) $content .= '<p id=\"whoscoming\" ' . $style . '>'.$event['whoscomingmessage'].'</p><ul>'.$str.'</ul>';\n } else {\n foreach($whoscoming as $item) {\n $num = $num + $item['yourplaces'];\n $ipn = qem_check_ipnblock($payment,$item);\n if ((!$number || $num <= $number) && \n !$item['notattend'] &&\n !$ipn &&\n (($register['moderate'] && $item['approved']) || !$register['moderate'])) {\n $str = $str.$item['yourname'].', ';\n $grav = $grav.'<img title=\"'.$item['yourname'].'\" src=\"http://www.gravatar.com/avatar/' . md5($item['youremail']) . '?s=40&&d=identicon\" /> ';\n }\n }\n $str = substr($str, 0, -2);\n if ($str && $event['whoscoming']) $content .= '<p id=\"whoscoming\" ' . $style . '>'.$event['whoscomingmessage'].' '.$str.'</p>';\n if ($event['whosavatar']) $content .= '<p>'.$grav.'</p>';\n }\n $output .= $content;\n }\n break;\n case 'field11':\n $usecounter = get_post_meta($post->ID, 'event_number', true);\n $num = qem_numberscoming($post->ID);\n $placesavailable = 'checked';\n if ($event['iflessthan'] && $num > $event['iflessthan']) $placesavailable = '';\n if ($register['waitinglist'] && $num == 0 && $usecounter) {\n $output .= '<p id=\"whoscoming\">'.$event['placesbefore'].' 0 '.$event['placesafter'].' <span id=\"waitinglistmessage\">'.$register['waitinglistmessage'].'</span><p>';\n } elseif ($placesavailable) {\n $output .= '<p class=\"placesavailable\" ' . $style . '>'.qem_places($register,$payment,$post->ID,$usecounter,$atts,$event).'</p>';\n }\n break;\n case 'field12':\n if (!$atts['popup'] && !$register['ontheright'] && is_singular ('event') && !$atts['widget'] && $atts['usereg'])\n $output .= qem_loop();\n break;\n case 'field13':\n if (!empty($event['category_label']))\n $caption = $event['category_label'].'&nbsp;';\n $categories = get_the_category();\n foreach($categories as $category) $cat_name = $cat_name.' '.$category->cat_name;\n $output .= '<p ' . $style . '>'.$caption.$cat_name.'</p>';\n break;\n }\n return $output;\n}", "title": "" }, { "docid": "6bde4c84367d52b873158834ed08d95f", "score": "0.46495965", "text": "function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)\n\t{\n\t\tglobal $tree;\n\t\t\n\t\tswitch ($a_event)\n\t\t{\n\t\t\tcase \"link\":\n\t\t\t\t\n\t\t\t\t//var_dump(\"<pre>\",$a_params,\"</pre>\");\n\t\t\t\t//echo \"Module name \".$this->getRefId().\" triggered by link event. Objects linked into target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"cut\":\n\t\t\t\t\n\t\t\t\t//echo \"Module name \".$this->getRefId().\" triggered by cut event. Objects are removed from target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"copy\":\n\t\t\t\n\t\t\t\t//var_dump(\"<pre>\",$a_params,\"</pre>\");\n\t\t\t\t//echo \"Module name \".$this->getRefId().\" triggered by copy event. Objects are copied into target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\n\t\t\tcase \"paste\":\n\t\t\t\t\n\t\t\t\t//echo \"Module name \".$this->getRefId().\" triggered by paste (cut) event. Objects are pasted into target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase \"new\":\n\t\t\t\t\n\t\t\t\t//echo \"Module name \".$this->getRefId().\" triggered by paste (new) event. Objects are applied to target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t// At the beginning of the recursive process it avoids second call of the notify function with the same parameter\n\t\tif ($a_node_id==$_GET[\"ref_id\"])\n\t\t{\t\n\t\t\t$parent_obj =& $this->ilias->obj_factory->getInstanceByRefId($a_node_id);\n\t\t\t$parent_type = $parent_obj->getType();\n\t\t\tif($parent_type == $this->getType())\n\t\t\t{\n\t\t\t\t$a_node_id = (int) $tree->getParentId($a_node_id);\n\t\t\t}\n\t\t}\n\t\t\n\t\tparent::notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params);\n\t}", "title": "" }, { "docid": "b5a83c1ee227385ef7a8785de05493a6", "score": "0.46467245", "text": "public function __construct($event)\n {\n $this->event = $event;\n }", "title": "" }, { "docid": "894fb9742a6225cce8194454f6d76a6a", "score": "0.46408743", "text": "function BuildFromText( $vevent ) {\n// $vevent = preg_replace('/[\\r\\n]+ /', ' ', $vevent );\n// $lines = preg_split('/[\\r\\n]+/', $vevent );\n // According to RFC2445 we should always end with CRLF, but the CalDAV spec says\n // that normalising XML parses often muck with it and may remove the CR.\n $vevent = preg_replace('/\\r?\\n /', '', $vevent );\n $lines = preg_split('/\\r?\\n/', $vevent );\n $properties = array();\n\n $vtimezone = \"\";\n $state = 0;\n foreach( $lines AS $k => $v ) {\n dbg_error_log( \"vEvent\", \"LINE %03d: >>>%s<<<\", $k, $v );\n\n switch( $state ) {\n case 0:\n if ( $v == 'BEGIN:VEVENT' ) {\n $state = $v;\n $this->type = 'VEVENT';\n }\n else if ( $v == 'BEGIN:VTODO' ) {\n $state = $v;\n $this->type = 'VTODO';\n }\n else if ( $v == 'BEGIN:VTIMEZONE' ) $state = $v;\n break;\n\n case 'BEGIN:VEVENT':\n if ( $v == 'END:VEVENT' ) $state = 0;\n break;\n\n case 'BEGIN:VTODO':\n if ( $v == 'END:VTODO' ) $state = 0;\n break;\n\n case 'BEGIN:VTIMEZONE':\n if ( $v == 'END:VTIMEZONE' ) {\n $state = 0;\n $vtimezone .= $v;\n }\n break;\n }\n\n if ( ($state == 'BEGIN:VEVENT' || $state == 'BEGIN:VTODO') && $state != $v ) {\n list( $property, $value ) = explode(':', $v, 2 );\n if ( strpos( $property, ';' ) > 0 ) {\n $parameterlist = explode(';', $v );\n $property = array_shift($parameterlist);\n foreach( $parameterlist AS $pk => $pv ) {\n if ( preg_match('/^TZID=(.*)$/', $pv, $matches) ) {\n $properties['TZID'] = $tz_id;\n }\n elseif ( $pv == \"VALUE=DATE\" ) {\n $value .= 'T000000';\n }\n }\n }\n $properties[strtoupper($property)] = $value;\n }\n if ( $state == 'BEGIN:VTIMEZONE' ) {\n $vtimezone .= $v . \"\\n\";\n @list( $parameter, $value ) = explode(':', $v );\n if ( !isset($this->tz_locn) && $parameter == 'X-LIC-LOCATION' ) {\n $this->tz_locn = $value;\n }\n }\n }\n\n if ( $vtimezone != \"\" ) {\n $properties['VTIMEZONE'] = $vtimezone;\n }\n\n $this->properties = &$properties;\n }", "title": "" }, { "docid": "017e41b773d36f4f46fe558225a8472b", "score": "0.46367997", "text": "public function build()\n {\n\n if ($this->html)\n return $this->html;\n\n if (count($this->data) == 0) {\n $this->html .= '<ul id=\"'.$this->id.'\" class=\"wgt_tree\" >'.NL;\n $this->html .= '</ul>'.NL;\n\n return $this->html;\n }\n\n $html = '';\n\n $html .= '<ul id=\"'.$this->id.'\" class=\"wgt_tree\" >'.NL;\n\n foreach ($this->data as $id => $row) {\n\n $entry = $this->buildTreeNode($row);\n\n $html .= <<<HTML\n<li id=\"{$this->id}_{$id}\" >\n\n {$entry}\n <ul id=\"{$this->id}_{$id}_tree\" ></ul>\n\n</li>\n\nHTML;\n\n\n }\n\n $html .= '</ul>'.NL;\n\n\n $this->html = $html;\n\n return $this->html;\n\n }", "title": "" }, { "docid": "d6a9100cddc63de1b38820904a41fc09", "score": "0.46358237", "text": "public function buildDispatcher(MvcEvent $e)\n {\n if ($this->checkIfHttp($e->getRequest())) {\n // build route stack\n $this->dispatcher = new Dispatcher($e->getApplication()->getServiceManager());\n foreach ($this->config as $name => $entry) {\n if (isset($entry['handler'])) {\n $this->dispatcher->map($name, $entry['handler']);\n }\n }\n }\n }", "title": "" }, { "docid": "42cbfec3b4e18dcca9b1109c982b1b9c", "score": "0.46290556", "text": "function defineEvents() {\n addEvent(array(\n \"name\" => \"Test Event\",\n \"contact\" => \"P0\",\n \"start\" => date('U') - (date('U') % 1800) + (3600 * -4),\n \"end\" => date('U') - (date('U') % 1800) + (3600 * -2)\n ));\n addBooking(array(\n \"id\" => \"E0\",\n \"event\" => \"V0\",\n \"start\" => date('U') - (date('U') % 1800) + (3600 * -4),\n \"end\" => date('U') - (date('U') % 1800) + (3600 * -2)\n ));\n addBooking(array(\n \"id\" => \"R0\",\n \"event\" => \"V0\",\n \"start\" => date('U') - (date('U') % 1800) + (3600 * -4),\n \"end\" => date('U') - (date('U') % 1800) + (3600 * -2)\n ));\n\n addEvent(array(\n \"name\" => \"EKG Training Class\",\n \"contact\" => \"P0\",\n \"start\" => \"1413532800\",\n \"end\" => \"1413565200\"\n ));\n addBooking(array(\n \"id\" => \"R0\",\n \"event\" => \"V0\",\n \"start\" => \"1413532800\",\n \"end\" => \"1413565200\"\n ));\n addBooking(array(\n \"id\" => \"R3\",\n \"event\" => \"V0\",\n \"start\" => \"1413532800\",\n \"end\" => \"1413565200\"\n ));\n addBooking(array(\n \"id\" => \"E0\",\n \"event\" => \"V0\",\n \"start\" => \"1413543600\",\n \"end\" => \"1413565200\"\n ));\n }", "title": "" }, { "docid": "4b85977aaed456f8a021cb2c0cf850b9", "score": "0.46276677", "text": "public function buildRelations()\n {\n $this->addRelation('Dentistevent', '\\\\ORM\\\\ORM\\\\Dentistevent', RelationMap::ONE_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id',\n 1 => ':id',\n ),\n), 'CASCADE', null, null, false);\n $this->addRelation('Workevent', '\\\\ORM\\\\ORM\\\\Workevent', RelationMap::ONE_TO_ONE, array (\n 0 =>\n array (\n 0 => ':id',\n 1 => ':id',\n ),\n), 'CASCADE', null, null, false);\n }", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.46273676", "text": "abstract public function build();", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.46273676", "text": "abstract public function build();", "title": "" }, { "docid": "811d25421041f479064de4514f2a5d07", "score": "0.46273676", "text": "abstract public function build();", "title": "" }, { "docid": "9382f9af810fd0d2301304d30e0f9534", "score": "0.46042708", "text": "public function buildEventsList()\n {\n $this->eventsList = null;\n }", "title": "" }, { "docid": "1227926599095e767405ba88099cadf2", "score": "0.45953164", "text": "protected function buildStatement($event, $changelog)\n {\n switch ($event) {\n case Trigger::EVENT_INSERT:\n $trigger = 'INSERT IGNORE INTO %s (%s) VALUES (NEW.%s);';\n break;\n case Trigger::EVENT_UPDATE:\n $tableName = $this->resource->getTableName($this->getTableName());\n $trigger = 'INSERT IGNORE INTO %s (%s) VALUES (NEW.%s);';\n if ($this->connection->isTableExists($tableName) &&\n $describe = $this->connection->describeTable($tableName)\n ) {\n $columnNames = array_column($describe, 'COLUMN_NAME');\n $columnNames = array_diff($columnNames, $this->ignoredUpdateColumns);\n if ($columnNames) {\n $columns = [];\n foreach ($columnNames as $columnName) {\n // Do not create trigger for indexing when only the qty is changed on the stock item\n if ($columnName === 'qty' && $tableName === 'cataloginventory_stock_item') {\n continue;\n }\n $columns[] = sprintf(\n 'NOT(NEW.%1$s <=> OLD.%1$s)',\n $this->connection->quoteIdentifier($columnName)\n );\n }\n $trigger = sprintf(\n 'IF (%s) THEN %s END IF;',\n implode(' OR ', $columns),\n $trigger\n );\n }\n }\n break;\n case Trigger::EVENT_DELETE:\n $trigger = 'INSERT IGNORE INTO %s (%s) VALUES (OLD.%s);';\n break;\n default:\n return '';\n }\n\n return sprintf(\n $trigger,\n $this->connection->quoteIdentifier($this->resource->getTableName($changelog->getName())),\n $this->connection->quoteIdentifier($changelog->getColumnName()),\n $this->connection->quoteIdentifier($this->getColumnName())\n );\n }", "title": "" }, { "docid": "bd1480ce6e98c99c4bff79dc2fe7d822", "score": "0.45915744", "text": "private function _createEvents($events) {\r\n \r\n if($this->file->exists(ABSOLUTE_PROJECT_PATH .DS. 'events.php'))\r\n $this->file->delete (ABSOLUTE_PROJECT_PATH .DS. 'events.php');\r\n \r\n return $this->file->put(ABSOLUTE_PROJECT_PATH .DS. 'events.php', $events);\r\n }", "title": "" }, { "docid": "80854365b7509352978b952a701000ec", "score": "0.4590779", "text": "protected function buildTree()\n {\n if (!$this->treeBuilder) {\n $this->treeBuilder = new TreeBuilder();\n }\n return $this->treeBuilder->build($this->getTreeConfig(), $this->components()->toArray());\n }", "title": "" }, { "docid": "6d44912b27cd781b28651b0f995a746d", "score": "0.45767146", "text": "function link ($e)\n {\n $tokens =& $this->_tokens;\n $te =& $this->_event;\n\n # Make event object from event handler name or check its class.\n if (is_string ($e))\n $e = new event ($e);\n else\n type ($e, 'event');\n\n # Die if the event handler doesn't exist.\n $handler = $e->name;\n if (!isset ($this->_handlers[$handler]))\n return \"No such event handler '$handler'.\";\n\n # Add session key.\n $e->session_key = $this->session->key ();\n\n # Add current subsession if the event doesn't have one.\n if (!isset ($e->subsession) || !$e->subsession) {\n if ($te->subsession)\n\t $e->subsession = $te->subsession;\n else\n die_traced ('Internal error - no subsession in current event.');\n }\n\n # Store event object in token.\n $token = $tokens->create ($e, $this->_types[$handler]);\n\n # Create directory part of the URL.\n return $_SERVER['SCRIPT_NAME'] . \"/$token/\";\n }", "title": "" }, { "docid": "ad3323147127f9fd06204b4ea55037ad", "score": "0.45760888", "text": "public function __construct($event)\n {\n $this->event=$event;\n\n }", "title": "" }, { "docid": "8f97190fa7089b9439fca5fcb74b08df", "score": "0.4570321", "text": "public static function buildBootstrap(Event $event)\n {\n $options = static::getOptions($event);\n $bootstrapDir = $autoloadDir = $options['symfony-app-dir'];\n\n if (static::useNewDirectoryStructure($options)) {\n $bootstrapDir = $options['symfony-var-dir'];\n if (!static::hasDirectory($event, 'symfony-var-dir', $bootstrapDir, 'build bootstrap file')) {\n return;\n }\n }\n if (!static::hasDirectory($event, 'symfony-app-dir', $autoloadDir, 'build bootstrap file')) {\n return;\n }\n\n static::executeBuildBootstrap($event, $bootstrapDir, $autoloadDir, $options['process-timeout']);\n }", "title": "" }, { "docid": "69eff54bd1a9550f0847ce310f0c4340", "score": "0.45578173", "text": "public function buildStarted(BuildEvent $event)\n\t{\n\t\tforeach ($this->loggers as $loggers) {\n\t\t\t$loggers->buildStarted($event);\n\t\t}\n\t}", "title": "" }, { "docid": "5eca13ce1cef5fbdf231b7c3db1ca1be", "score": "0.455638", "text": "public abstract function build();", "title": "" }, { "docid": "07b2c5a9678dc3872bd01e5ad72114dc", "score": "0.454931", "text": "public function addEvent(TestEvent $event);", "title": "" }, { "docid": "daac1f73be94f0ff7d78fc04666fff49", "score": "0.45485657", "text": "function create_events_table()\n\t{\n $table_name = $this->wpdb->prefix . 'wpeo_events';\n\t \n\t \t$sql = \"CREATE TABLE $table_name (\n\t\t\tID bigint(20) unsigned NOT NULL auto_increment,\n\t\t\tevent_title text NOT NULL,\n\t\t\tpost_id bigint(20) unsigned NOT NULL,\n\t\t\tevent_description longtext NOT NULL,\n\t\t\tevent_date date NULL DEFAULT NULL,\n\t\t\tevent_start_time time NULL DEFAULT NULL,\n\t\t\tevent_end_time time NULL DEFAULT NULL,\n\t\t\tevent_cover_image bigint(20) unsigned NOT NULL,\n\t\t\tevent_author bigint(20) unsigned NOT NULL default '0',\n\t\t\tevent_status tinyint(1) NOT NULL default '1',\n\t\t\tdeleted_at datetime NOT NULL default '0000-00-00 00:00:00',\n\t\t\tPRIMARY KEY (ID),\n\t\t\tKEY event_author (event_author),\n\t\t\tKEY post_id (post_id)\n\t\t) $this->charset_collate;\";\n dbDelta($sql);\n\t}", "title": "" }, { "docid": "d2241043a8bc51dc30f07a9a8172030a", "score": "0.45466998", "text": "function startElementEvents($parser, $tagName, $attrs) {\n //Refresh properties\n $this->level++;\n $this->tree[$this->level] = $tagName;\n\n //if ($tagName == \"EVENT\" && $this->tree[3] == \"EVENTS\") { //Debug\n // echo \"<P>EVENT: \".strftime (\"%X\",time()),\"-\"; //Debug\n //} //Debug\n\n //Output something to avoid browser timeouts...\n //backup_flush();\n\n //Check if we are into EVENTS zone\n //if ($this->tree[3] == \"EVENTS\") //Debug\n // echo $this->level.str_repeat(\"&nbsp;\",$this->level*2).\"&lt;\".$tagName.\"&gt;<br />\\n\"; //Debug\n\n //If we are under a EVENT tag under a EVENTS zone, accumule it\n if (isset($this->tree[4]) and isset($this->tree[3])) {\n if (($this->tree[4] == \"EVENT\") and ($this->tree[3] == \"EVENTS\")) {\n if (!isset($this->temp)) {\n $this->temp = \"\";\n }\n $this->temp .= \"<\".$tagName.\">\";\n }\n }\n }", "title": "" }, { "docid": "545afa0145ab45830a26191cf708f5e5", "score": "0.45276955", "text": "private function getEvents() {\n $events=\" \";\n if(is_array($this->events) && count($this->events) > 0) {\n foreach ($this->events as $event=>$func) {\n $events.=$event.'=\"'.$func.'\" ' ;\n }\n }\n return $events;\n }", "title": "" }, { "docid": "f6b80ce885d9a22a8e7a7dca89e6cc4e", "score": "0.45240855", "text": "public static function getTypes(Zikula_Event $event)\n {\n $types = $event->getSubject();\n $types->add(array(\n 'name' => 'Directory Tree',\n 'class' => 'DocTastic_NavType_TreeType'));\n $types->add(array(\n 'name' => 'Directory Select Box',\n 'class' => 'DocTastic_NavType_SelectType'));\n }", "title": "" }, { "docid": "2c61989019f2ff8029c312693bdb02e8", "score": "0.45153823", "text": "public function __construct(Event $event)\n {\n $this->event = $event->fresh();\n }", "title": "" }, { "docid": "8c6becabb700388fe8c5d8682e753441", "score": "0.45108616", "text": "function pushEvent($event)\n {\n $this->num = array_push($this->stack,$event) - 1;\n }", "title": "" }, { "docid": "57ad90dd9923d4e2ecec34ad796d8bbe", "score": "0.45100152", "text": "private function _createEventObj()\n\t\t{\n\t\t\t/*\n\t\t\t* Load the events array\n\t\t\t*/\n\t\t\t$arr = $this->_loadEventData();\n\t\t\t/*\n\t\t\t* Create a new array, then organize the events\n\t\t\t* by the day of the month on which they occur\n\t\t\t*/\n\t\t\t$events = array();\n\t\t\tforeach ( $arr as $event )\n\t\t\t{\n\t\t\t\t$day = date('j', strtotime($event['event_start']));\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$events[$day][] = new Event($event);\n\t\t\t\t}\n\t\t\t\tcatch ( Exception $e )\n\t\t\t\t{\n\t\t\t\t\tdie ( $e->getMessage() );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $events;\n\t\t}", "title": "" }, { "docid": "5dcadd200b8fb9320cfe42ddee5a09f5", "score": "0.45084688", "text": "protected function addEvent($array){\n\t\t$array['event'] = $this->event;\n\t\t$array['pid'] = $this->event->getPid();\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "442653be80d70ccb4ebd7915c68e3b74", "score": "0.45006323", "text": "public function createEvent()\n\t{\n\t\t$event = new \\stdClass;\n\t\t$event->return = null;\n\t\t$event->replace = false;\n\t\treturn $event;\n\t}", "title": "" }, { "docid": "b4f2925fdb64a4a3dc3a9fcb805dd59f", "score": "0.4497867", "text": "function add_events( array $events ) {\n\n $teams_events = [\n 'created',\n 'updated',\n 'deleted',\n 'restored',\n ];\n\n foreach ( $teams_events as $teams_event ) {\n $events[] = $teams_event;\n }\n\n return array_unique( $events );\n}", "title": "" }, { "docid": "0baed5c3992bebb5d50e5bac0a67db56", "score": "0.44966337", "text": "public function event($event) {\n $this->fire($event);\n if( ! isset( $this->node->transitions[ $event ]) ) return;\n $this->fire(\"leave-node\");\n // take a transition\n $this->node = $this->node->transitions[ $event ];\n // enter the next node\n $this->fire(\"enter-node\");\n $this->node->execute( $this );\n }", "title": "" }, { "docid": "04ee1430957095cb0b1cf45fce9638d6", "score": "0.44898358", "text": "function endElementEvents($parser, $tagName) {\n //Check if we are into EVENTS zone\n if ($this->tree[3] == \"EVENTS\") {\n //if (trim($this->content)) //Debug\n // echo \"C\".str_repeat(\"&nbsp;\",($this->level+2)*2).$this->getContents().\"<br />\\n\"; //Debug\n //echo $this->level.str_repeat(\"&nbsp;\",$this->level*2).\"&lt;/\".$tagName.\"&gt;<br />\\n\"; //Debug\n //Acumulate data to info (content + close tag)\n //Reconvert: strip htmlchars again and trim to generate xml data\n if (!isset($this->temp)) {\n $this->temp = \"\";\n }\n $this->temp .= htmlspecialchars(trim($this->content)).\"</\".$tagName.\">\";\n //If we've finished a event, xmlize it an save to db\n if (($this->level == 4) and ($tagName == \"EVENT\")) {\n //Prepend XML standard header to info gathered\n $xml_data = \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\".$this->temp;\n //Call to xmlize for this portion of xml data (one EVENT)\n //echo \"-XMLIZE: \".strftime (\"%X\",time()),\"-\"; //Debug\n $data = xmlize($xml_data,0);\n //echo strftime (\"%X\",time()).\"<p>\"; //Debug\n //traverse_xmlize($data); //Debug\n //print_object ($GLOBALS['traverse_array']); //Debug\n //$GLOBALS['traverse_array']=\"\"; //Debug\n //Now, save data to db. We'll use it later\n //Get id and from data\n $event_id = $data[\"EVENT\"][\"#\"][\"ID\"][\"0\"][\"#\"];\n //Save to db\n $status = backup_putid($this->preferences->backup_unique_code,\"event\",$event_id,\n null,$data);\n //Create returning info\n $ret_info->id = $event_id;\n $this->info[] = $ret_info;\n //Reset temp\n unset($this->temp);\n }\n }\n\n //Stop parsing if todo = EVENTS and tagName = EVENT (en of the tag, of course)\n //Speed up a lot (avoid parse all)\n if ($tagName == \"EVENTS\" and $this->level == 3) {\n $this->finished = true;\n }\n\n //Clear things\n $this->tree[$this->level] = \"\";\n $this->level--;\n $this->content = \"\";\n\n }", "title": "" }, { "docid": "f60bf25c26e33b9f167c1117a7618388", "score": "0.44820902", "text": "public function mapEventListener () {\n $path = app_path() . \"/Events\";\n\t\t$results = scandir($path);\n\t\t$arr = [];\n\t\tforeach ($results as $result) {\n\t\t\tif ($result === '.' or $result === '..') continue;\n\t\t\t$filename = $path . '/' . $result;\n\t\t\tif (!is_dir($filename)) {\n\t\t\t\t$result = substr($result,0,-9); // \"Event.php\"\n\t\t\t\t$className = 'App\\Events\\\\'.$result.'Event';\n\t\t\t\t$arr['App\\Events\\\\'.$result.'Event'] = ['App\\Listeners\\\\'.$result.'Listener'];\n\t\t\t}\n\t\t}\n\t\treturn $arr;\n }", "title": "" }, { "docid": "6215d485c191288042a15facf9ee55e2", "score": "0.44764724", "text": "private function generateEvent($event){\n\n $db=DB::getInstance();\n\n //genre wird für den event abgerufen\n $genre = $db->get('genre',array('id','=',$event->fk_genre_id))->first()->name;\n\n //die id's für alle pricegroupen die ein event hat werden abgerufen\n $priceKeys=$db->get('event_has_price',array('fk_event_id','=',$event->id))->results();\n\n echo '<ul class=\"list-unstyled\">'.\"\\n\";\n echo '<li><h6>'.$event->date.'</h6></li>'.\"\\n\";\n echo '<li><h4>'.$event->name.'</h4></li>'.\"\\n\";\n echo '<li><h4>'.$event->starring.'</h4></li>'.\"\\n\";\n echo '<li><h5>'.$event->description.'</h5></li>'.\"\\n\";\n echo '<li><h4>'.$genre.'</h4></li>'.\"\\n\";\n echo '<li><h6> Dauer: '.$event->duration.' Minuten</h6></li>'.\"\\n\";\n\n //wenn der link nicht lehr ist und die link description auch nicht wird ein link eingehängt\n if($event->link!=\"\" && $event->linkDescription!=\"\"){\n echo '<li><h5>Link: <a href=\"'.$event->link.'\">-->'.$event->linkDescription.'<--</a> </h5></li>'.\"\\n\";\n }\n echo '</ul>'.\"\\n\";\n\n echo '<table>'.\"\\n\";\n echo '<tbody>'.\"\\n\";\n echo '<tr>'.\"\\n\";\n echo '<td colspan=\"2\">--Preis--</td>'.\"\\n\";\n echo '</tr>'.\"\\n\";\n\n //für jede id von pricegroup wird nun ein tabelleneintrag gemacht im fertigen event\n foreach($priceKeys as $price){\n $priceGroup=$db->get('pricegroup',array('id','=',$price->fk_pricegroup_id))->first();\n echo '<tr>'.\"\\n\";\n echo '<td>'.$priceGroup->name.': </td>'.\"\\n\";\n echo '<td>'.$priceGroup->price.'</td>'.\"\\n\";\n echo '</tr>'.\"\\n\";\n }\n echo '</tbody>'.\"\\n\";\n echo '</table>'.\"\\n\";\n\n\n\n\n }", "title": "" }, { "docid": "e8391497f7eaa22031faf78c58d4057f", "score": "0.44609037", "text": "function get_event_html( $event){\n\n $title = $event['title'];\n $start = $event['date']['start-date'];\n $end = $event['date']['end-date'];\n\n $twig = makeTwigEnviron('/code/events/twig');\n $twig->addFilter(new Twig_SimpleFilter('convert_path_to_link','convert_path_to_link'));\n $twig->addFilter(new Twig_SimpleFilter('format_fancy_event_date','format_fancy_event_date'));\n $twig->addFilter(new Twig_SimpleFilter('get_month_shorthand_name','get_month_shorthand_name'));\n $twig->addFilter(new Twig_SimpleFilter('get_timezone_shorthand','get_timezone_shorthand'));\n $html = $twig->render('get_event_html.html', array(\n 'title' => $title,\n 'event' => $event,\n 'start' => $start,\n 'end' => $end));\n\n return $html;\n}", "title": "" }, { "docid": "286828344bfcd1f76a1f489720a134a7", "score": "0.44590873", "text": "public function buildAndForwardEvent(Event $e)\n {\n if (!$e instanceof PageViewEvent) {\n return;\n }\n /** @var \\Zicht\\Bundle\\PageBundle\\Event\\PageViewEvent $e */\n if ($request = $this->requestStack->getMainRequest()) {\n $host = $request->getHost();\n foreach ($this->hosts as $otherHost) {\n if ($otherHost != $host) {\n $this->eventDispatcher->dispatch(\n new MenuEvent(sprintf('%s:\\\\\\\\%s%s', $request->getScheme(), $otherHost, $request->getRequestUri()), $otherHost),\n AdminEvents::MENU_EVENT\n );\n }\n }\n }\n }", "title": "" }, { "docid": "366975871fe40a7d66f3863056faac0a", "score": "0.44550663", "text": "public function gallery_event(Model_Event $event) {\n\t\treturn new View_Gallery_Event($event);\n\t}", "title": "" }, { "docid": "c3a27c7eb258a8808fcccfbe3d30a818", "score": "0.4449111", "text": "protected function globalizeEvents($events) {\r\n\t\tif ($this->path) {\r\n\t\t\t$path = $this->path;\r\n\t\t\tforeach ($events as & $event) {\r\n\t\t\t\tif (isset($event['path'])) $event['path'] = $path;\r\n\t\t\t}\r\n\t\t\treturn $events;\r\n\t\t} else {\r\n\t\t\treturn $events;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "487447769d926b6b90c2cb0001533907", "score": "0.44392404", "text": "function event_base_new()\n{\n}", "title": "" }, { "docid": "823071be1e1f610f8cd9555d176106e3", "score": "0.44357514", "text": "function restore_create_events($restore,$xml_file) {\n\n global $CFG, $db;\n\n $status = true;\n //Check it exists\n if (!file_exists($xml_file)) {\n $status = false;\n }\n //Get info from xml\n if ($status) {\n //events will contain the old_id of every event\n //in backup_ids->info will be the real info (serialized)\n $events = restore_read_xml_events($restore,$xml_file);\n }\n\n //Get admin->id for later use\n $admin = get_admin();\n $adminid = $admin->id;\n\n //Now, if we have anything in events, we have to restore that\n //events\n if ($events) {\n if ($events !== true) {\n //Iterate over each event\n foreach ($events as $event) {\n //Get record from backup_ids\n $data = backup_getid($restore->backup_unique_code,\"event\",$event->id);\n //Init variables\n $create_event = false;\n\n if ($data) {\n //Now get completed xmlized object\n $info = $data->info;\n //traverse_xmlize($info); //Debug\n //print_object ($GLOBALS['traverse_array']); //Debug\n //$GLOBALS['traverse_array']=\"\"; //Debug\n\n //if necessary, write to restorelog and adjust date/time fields\n if ($restore->course_startdateoffset) {\n restore_log_date_changes('Events', $restore, $info['EVENT']['#'], array('TIMESTART'));\n }\n\n //Now build the EVENT record structure\n $eve->name = backup_todb($info['EVENT']['#']['NAME']['0']['#']);\n $eve->description = backup_todb($info['EVENT']['#']['DESCRIPTION']['0']['#']);\n $eve->format = backup_todb($info['EVENT']['#']['FORMAT']['0']['#']);\n $eve->courseid = $restore->course_id;\n $eve->groupid = backup_todb($info['EVENT']['#']['GROUPID']['0']['#']);\n $eve->userid = backup_todb($info['EVENT']['#']['USERID']['0']['#']);\n $eve->repeatid = backup_todb($info['EVENT']['#']['REPEATID']['0']['#']);\n $eve->modulename = \"\";\n $eve->instance = 0;\n $eve->eventtype = backup_todb($info['EVENT']['#']['EVENTTYPE']['0']['#']); \n $eve->timestart = backup_todb($info['EVENT']['#']['TIMESTART']['0']['#']);\n $eve->timeduration = backup_todb($info['EVENT']['#']['TIMEDURATION']['0']['#']);\n $eve->visible = backup_todb($info['EVENT']['#']['VISIBLE']['0']['#']);\n $eve->timemodified = backup_todb($info['EVENT']['#']['TIMEMODIFIED']['0']['#']);\n\n //Now search if that event exists (by name, description, timestart fields) in\n //restore->course_id course\n $eve_db = get_record_select(\"event\",\n \"courseid={$eve->courseid} AND name='{$eve->name}' AND description='{$eve->description}' AND timestart=$eve->timestart\");\n //If it doesn't exist, create\n if (!$eve_db) {\n $create_event = true;\n }\n //If we must create the event\n if ($create_event) {\n\n //We must recode the userid\n $user = backup_getid($restore->backup_unique_code,\"user\",$eve->userid);\n if ($user) {\n $eve->userid = $user->new_id;\n } else {\n //Assign it to admin\n $eve->userid = $adminid;\n }\n \n //We have to recode the groupid field\n $group = backup_getid($restore->backup_unique_code,\"groups\",$eve->groupid);\n if ($group) {\n $eve->groupid = $group->new_id;\n } else {\n //Assign it to group 0\n $eve->groupid = 0;\n }\n\n //The structure is equal to the db, so insert the event\n $newid = insert_record (\"event\",$eve);\n\n //We must recode the repeatid if the event has it\n //The repeatid now refers to the id of the original event. (see Bug#5956)\n if ($newid && !empty($eve->repeatid)) {\n $repeat_rec = backup_getid($restore->backup_unique_code,\"event_repeatid\",$eve->repeatid);\n if ($repeat_rec) { //Exists, so use it...\n $eve->repeatid = $repeat_rec->new_id;\n } else { //Doesn't exists, calculate the next and save it\n $oldrepeatid = $eve->repeatid;\n $eve->repeatid = $newid;\n backup_putid($restore->backup_unique_code,\"event_repeatid\", $oldrepeatid, $eve->repeatid);\n }\n $eve->id = $newid;\n // update the record to contain the correct repeatid\n update_record('event',$eve);\n }\n } else {\n //get current event id\n $newid = $eve_db->id;\n }\n if ($newid) {\n //We have the newid, update backup_ids\n backup_putid($restore->backup_unique_code,\"event\",\n $event->id, $newid);\n }\n }\n }\n }\n } else {\n $status = false;\n } \n return $status;\n }", "title": "" }, { "docid": "27d913b759f955a8b99029148659120a", "score": "0.44327694", "text": "protected function build($source, $parent)\n {\n foreach ($source as $key => $source) {\n $realKey = $this->node($key, $parent);\n\n if ($recurse = (is_array($source) || is_object($source))) {\n $parent->appendChild($child = $this->dom->createElement($realKey));\n } else {\n $parent->appendChild($child = $this->dom->createElement($realKey))->appendChild($this->dom->createTextNode($source));\n }\n\n if ($this->includeKeys && ($realKey != \"$key\")) {\n $child->appendChild($idNode = $this->dom->createAttribute('key'));\n $idNode->appendChild($this->dom->createTextNode($key));\n }\n\n if ($recurse) {\n $this->build($source, $child);\n }\n }\n }", "title": "" }, { "docid": "fc9b98667068c2a574dd4b4cea826770", "score": "0.44248044", "text": "public static function buildObjectTreeFromSQL($index_field, $sentence, $params = null, $trace = false);", "title": "" }, { "docid": "bafcc4513e18bc150565b8bae2ce549e", "score": "0.4423416", "text": "function notify($a_event,$a_ref_id,$a_parent_non_rbac_id,$a_node_id,$a_params = 0)\n\t{\n\t\tglobal $tree;\n\n\t\tswitch ($a_event)\n\t\t{\n\t\t\tcase \"link\":\n\n\t\t\t\t//var_dump(\"<pre>\",$a_params,\"</pre>\");\n\t\t\t\t//echo \"RootFolder \".$this->getRefId().\" triggered by link event. Objects linked into target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\n\t\t\tcase \"cut\":\n\n\t\t\t\t//echo \"RootFolder \".$this->getRefId().\" triggered by cut event. Objects are removed from target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\n\t\t\tcase \"copy\":\n\n\t\t\t\t//var_dump(\"<pre>\",$a_params,\"</pre>\");\n\t\t\t\t//echo \"RootFolder \".$this->getRefId().\" triggered by copy event. Objects are copied into target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\n\t\t\tcase \"paste\":\n\n\t\t\t\t//echo \"RootFolder \".$this->getRefId().\" triggered by paste (cut) event. Objects are pasted into target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\n\t\t\tcase \"new\":\n\n\t\t\t\t//echo \"RootFolder \".$this->getRefId().\" triggered by paste (new) event. Objects are applied to target object ref_id: \".$a_ref_id;\n\t\t\t\t//exit;\n\t\t\t\tbreak;\n\t\t}\n\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "419c404d203d83c36daf7756ed2589dc", "score": "0.44137397", "text": "protected function createEvent($type)\n {\n return new Event($this->executor, $this->socket, $this->context, $type);\n }", "title": "" }, { "docid": "412b7d2283454d860418e5312219c8a7", "score": "0.4412679", "text": "public function addEvent($event){ // agregar a la base de datos.\r\n\t\t// se llama al agregar de dao para que lo ingrese en la base de datos.\r\n\t}", "title": "" }, { "docid": "aa5b6fca4978bb7c7efcdcb283728deb", "score": "0.44117653", "text": "public function provideConfigsForImplementedEventsTest()\n {\n return [\n 'No event config inherits default events' => [\n [],\n [\n 'Model.beforeDelete' => [\n 'callable' => 'beforeDelete',\n ],\n 'Model.beforeFind' => [\n 'callable' => 'beforeFind',\n ],\n ],\n ],\n 'Event config with empty array inherits default events' => [\n [\n 'events' => [],\n ],\n [\n 'Model.beforeDelete' => [\n 'callable' => 'beforeDelete',\n ],\n 'Model.beforeFind' => [\n 'callable' => 'beforeFind',\n ],\n ],\n ],\n 'Event config with false disables default events' => [\n [\n 'events' => false,\n ],\n [],\n ],\n 'Event config with event key as value' => [\n [\n 'events' => [\n 'Model.beforeDelete',\n ],\n ],\n [\n 'Model.beforeDelete' => [\n 'callable' => 'beforeDelete',\n ],\n ],\n ],\n 'Event config with method name as value' => [\n [\n 'events' => [\n 'Model.beforeFind' => 'beforeFind',\n ],\n ],\n [\n 'Model.beforeFind' => [\n 'callable' => 'beforeFind',\n ],\n ],\n ],\n 'Event config with callables' => [\n [\n 'events' => [\n 'Model.beforeDelete' => [\n 'callable' => function () {\n },\n ],\n 'Model.beforeFind' => [\n 'callable' => [$this, 'beforeDelete'],\n 'passParams' => true,\n ],\n ],\n ],\n [\n 'Model.beforeDelete' => [\n 'callable' => function () {\n },\n ],\n 'Model.beforeFind' => [\n 'callable' => [$this, 'beforeDelete'],\n 'passParams' => true,\n ],\n ],\n ],\n 'Event config with multiple options' => [\n [\n 'events' => [\n 'Model.beforeDelete' => [\n 'callable' => 'beforeDelete',\n 'passParams' => true,\n ],\n ],\n ],\n [\n 'Model.beforeDelete' => [\n 'callable' => 'beforeDelete',\n 'passParams' => true,\n ],\n ],\n ],\n 'Event config with default and event priorities' => [\n [\n 'priority' => 1,\n 'events' => [\n 'Model.beforeDelete',\n 'Model.beforeFind' => ['priority' => 5],\n ],\n ],\n [\n 'Model.beforeDelete' => [\n 'callable' => 'beforeDelete',\n 'priority' => 1,\n ],\n 'Model.beforeFind' => [\n 'callable' => 'beforeFind',\n 'priority' => 5,\n ],\n ],\n ],\n ];\n }", "title": "" }, { "docid": "4df5571318d51694b24edbf2ac82a181", "score": "0.44086713", "text": "function tree() {\r\n\t}", "title": "" }, { "docid": "127af09ad771e65b689a9292c94b4803", "score": "0.4408444", "text": "public function insert2($event_type)\n {\n $query=\"INSERT INTO event_type ( \".\n\t \"id,\".\n \"name,\".\n \"parent,\".\n \"child_order,\".\n \"description,\".\n \"gid \". \n \")\".\n \"VALUES (\".\n \"null,\".\n \"'\".$this->sqlSafe($event_type->name).\"',\".\n \" \".$event_type->parent.\" ,\".\n \" \".$event_type->child_order.\" ,\".\n \"'\".$this->sqlSafe($event_type->description).\"',\".\n \"'\".$this->sqlSafe($event_type->gid).\"' \". \n \")\"; \n\n $id = $this->executeInsert($query);\n\t $event_type->id = $id;\n\t return($event_type);\t\n }", "title": "" }, { "docid": "f477191b200a39a858f81d132cf94d9e", "score": "0.43981007", "text": "public function generate()\n {\n $tempDOM = new \\DOMDocument();\n\n $menuItemsElement = $tempDOM->createElement('MenuItem');\n\n foreach ($this->getSendRequests() as $onClicked) {\n $eventsElement = $tempDOM->createElement('Events');\n $eventsElement->appendChild($tempDOM->importNode($onClicked->generate(), true));\n $menuItemsElement->appendChild($eventsElement);\n }\n\n unset($tempDOM);\n return $menuItemsElement;\n }", "title": "" }, { "docid": "2dbd54eaa773f1eda2669cc9c8961411", "score": "0.43940848", "text": "public function __construct(Event $event, $dir)\n {\n $this->dir = rtrim($dir, '/\\\\') . DIRECTORY_SEPARATOR;\n $this->io = $event->getIO();\n }", "title": "" }, { "docid": "a07a629a1371a815c90225c8ebc1c8ed", "score": "0.43793553", "text": "function buildNodes($data)\r\n {\r\n $tree = '';\r\n foreach ($data as $row) {\r\n $childNodes = '';\r\n $children = $this->getChildren($row[0]);\r\n if (count($children) > 0) {\r\n $childNodes = $this->buildNodes($children);\r\n }\r\n\r\n if ($this->callback) {\r\n $tree .= call_user_func($this->callback, $row, $childNodes);\r\n } else {\r\n $tree .= '<li><span></span><div>' . $row[2] . '</div>';\r\n if ($childNodes) {\r\n $tree .= '<ul>' . $childNodes . '</ul>';\r\n }\r\n $tree .= '</li>';\r\n }\r\n }\r\n return $tree;\r\n }", "title": "" }, { "docid": "6daa0910362bef0848d2cc93341cd41a", "score": "0.43780354", "text": "public function addOnEventSection()\n {\n return $this->nodeBuilder\n ->arrayNode('on_event')\n ->addDefaultsIfNotSet()\n ->beforeNormalization()\n ->ifTrue(function ($values) {\n if (isset($values['enabled']) === false || $values['enabled'] === false) {\n return true;\n }\n\n return false;\n })\n ->then(function ($values) {\n unset($values['name']);\n unset($values['container']);\n\n return $values;\n })\n ->end()\n ->validate()\n ->ifTrue(function ($values) {\n if (isset($values['enabled']) === false || $values['enabled'] !== true) {\n return false;\n }\n\n if (isset($values['name']) === false || strlen((string) $values['name']) === 0) {\n return true;\n }\n\n if (isset($values['container']) === false || strlen((string) $values['container']) === 0) {\n return true;\n }\n\n return false;\n })\n ->thenInvalid(\n 'With norsys_google_tag_manager.on_event enabled,\n you must configure norsys_google_tag_manager.on_event.name\n and norsys_google_tag_manager.on_event.container parameters'\n )\n ->end()\n ->children()\n ->booleanNode('enabled')\n ->info('Enable call google tag manager on javascript event instead of page finish loaded')\n ->defaultFalse()\n ->end()\n ->scalarNode('name')\n ->info('Event name to call google tag manager')\n ->defaultNull()\n ->end()\n ->scalarNode('container')\n ->info(\n 'HTML element on which the event is sent,\n use jQuery syntax (samples: \"body\", \"#my-id\", \".my-class\", etc...)'\n )\n ->defaultNull()\n ->end()\n ->end();\n }", "title": "" }, { "docid": "6ad9820f6b910757201a9243b7b4742d", "score": "0.4377819", "text": "public static function createEvent( $eventName, $data, $eventId = null ){\n $event = self::newEvent($eventName, $eventId);\n\n $event = self::addCustomData($event, $data);\n\n return $event;\n }", "title": "" }, { "docid": "583ef20c7a9d8fa9d10d01f0a9ff33f7", "score": "0.43769512", "text": "public static function createFromDiscriminatorValue(ParseNode $parseNode): Event {\n return new Event();\n }", "title": "" }, { "docid": "1a018474acd3782c1088584fdb7f21cb", "score": "0.43728036", "text": "public function getConfigTreeBuilder()\n {\n $treeBuilder = new TreeBuilder('conf');\n $treeBuilder->getRootNode()\n ->children()\n ->arrayNode(self::CONF_KEY_RELEASE_DISPATCHER)\n ->children()\n ->arrayNode(self::CONF_KEY_DISPATCHER)\n ->addDefaultsIfNotSet()\n ->children()\n ->scalarNode(self::CONF_KEY_FORMAT)\n ->cannotBeEmpty()\n ->defaultValue('target~\"/_\"~release.getGroup()~\"/\"~release.getYear()~\"/\"~release.getName()')\n ->end()\n ->scalarNode(self::CONF_KEY_SOURCE)\n ->isRequired()\n ->cannotBeEmpty()\n\n //->defaultValue(realpath(getcwd().DIRECTORY_SEPARATOR.'../../'))\n ->end()\n ->scalarNode(self::CONF_KEY_TARGET)\n ->isRequired()\n ->cannotBeEmpty()\n //->defaultValue(realpath(getcwd().DIRECTORY_SEPARATOR.'../../'))\n ->end()\n ->end()\n ->end()\n ->end()\n ->end();\n\n return $treeBuilder;\n }", "title": "" }, { "docid": "2a3facfa6fca39ff107c9c103125df04", "score": "0.4368329", "text": "function & events($event=null, $values=array()) {\n static $_events;\n if (!is_array($_events)) {\n $_events = array();\n }\n if (!is_array($_events[$event])) {\n $_events[$event] = array();\n }\n if (!empty($event) && count($values)) {\n foreach ($values as $key=>$value) {\n # $_events[$event][count($_events[$event])][$key] = $value;\n # $_events[$event][count($_events[$event])][$key] = $value;\n array_push($_events[$event], $value);\n }\n }\n return $_events;\n }", "title": "" }, { "docid": "d097807d3504d50a6e24a818cd72fa6e", "score": "0.4358438", "text": "public function pushEvent ($event_args) {\n\t\t// $event = array(\n\t\t // \"property\" => array(\n\t\t // \"street\" => \"1234 High Oak St\",\n\t\t // \"city\" => \"Rochester\",\n\t\t // \"state\" => \"WA\",\n\t\t // \"code\" => \"98579\",\n\t\t // \"mlsNumber\" => \"1234567\",\n\t\t // \"price\" => 449000,\n\t\t // \"forRent\" => false,\n\t\t // \"url\" => \"http://www.myawesomewebsite.com/property/1234567-1234-high-oak-st-rochester-wa-98579/\",\n\t\t // \"type\" => \"Single-Family Home\",\n\t\t // \"bedrooms\" => 3,\n\t\t // \"bathrooms\" => 2,\n\t\t // \"area\" => 2888,\n\t\t // \"lot\" => 0.98\n\t\t // ),\n\t \t// \"propertySearch\" => array(\n\t\t // \"type\" => \"Apartment\",\n\t\t // \"neighborhood\" => \"East Boston\",\n\t\t // \"city\" => \"Boston\",\n\t\t // \"state\" => \"MA\",\n\t\t // \"code\" => \"02128\",\n\t\t // \"minPrice\" => 50000,\n\t\t // \"maxPrice\" => 850000,\n\t\t // \"minBedrooms\" => 2,\n\t\t // \"maxBedrooms\" => 3,\n\t\t // \"minBathrooms\" => 1,\n\t\t // \"maxBathrooms\" => 2,\n\t\t // \"minArea\" => 1000,\n\t\t // \"maxArea\" => 2000,\n\t\t // \"forRent\" => false\n\t\t // ),\n\t\t // \"campaign\" => array(\n\t\t // \"source\" => \"google\",\n\t\t // \"medium\" => \"organic\",\n\t\t // \"term\" => \"east boston homes\",\n\t\t // \"content\" => \"\",\n\t\t // \"campaign\" => \"\"\n\t\t // )\n\t\t// );\n\n\t\t$event = array();\n\n\t\t// Necessary attributes...\n\t\t$event[\"source\"] = site_url();\n\t\t$event[\"type\"] = empty($event_args[\"type\"]) ? \"Site Lead\" : $event_args[\"type\"];\n\t\t$event[\"person\"] = array();\n\n\t\t// Person attributes...\n\t\tif (!empty($event_args[\"name\"])) {\n\t\t\t// Split first and last name by space...\n\t\t\t$name_arr = explode(\" \", $event_args[\"name\"]);\n\t\t\t\n\t\t\t$event[\"person\"][\"firstName\"] = @$name_arr[0];\n\t\t\t$event[\"person\"][\"lastName\"] = @$name_arr[1];\n\t\t}\n\t\telse {\n\t\t\t// If no name is present, enter generic one using a random integer...\n\t\t\t$event[\"person\"][\"firstName\"] = \"Site User\";\n\t\t\t$event[\"person\"][\"lastName\"] = (string)rand();\n\t\t}\n\n\t\tif (!empty($event_args[\"email\"])) {\n\t\t\t$event[\"person\"][\"emails\"] = array(array(\"value\" => $event_args[\"email\"], \"type\" => \"home\"));\n\t\t}\n\n\t\tif (!empty($event_args[\"phone\"])) {\n\t\t\t$event[\"person\"][\"phones\"] = array(array(\"value\" => $event_args[\"phone\"], \"type\" => \"home\"));\n\t\t}\n\n\t\t// Include message if one exists...\n\t\tif (!empty($event_args[\"question\"])) {\n\t\t\t$event[\"message\"] = $event_args[\"question\"];\n\t\t}\n\n\t\t// Property attributes...\n\t\t// TODO!\n\n\t\t// Property search attributes...\n\t\t// TODO!\n\n\t\t// Campaign attributes...\n\t\t// TODO!\n\n\t\t// Set field the caller is expecting to set request payload...\n\t\t$args = array(\"body\" => $event);\n\n\t\t// Make API Call...\n\t\t$response = $this->callAPI(\"events\", \"POST\", $args);\n\t\t\n\t\t// error_log(\"Event push response: \");\n\t\t// error_log(var_export($response, true));\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "60c438000d7f071fa4f9c90b0a69b55e", "score": "0.43552968", "text": "public function publishEvent($event)\n {\n\n if($event->getStatus()->getLibel() !== Status::opened()){\n $status = $this->em->getRepository(Status::class)->findByLibel(Status::opened());\n $event->setStatus($status);\n }\n\n return $event;\n }", "title": "" }, { "docid": "7e50fff4abe56d688d3eea4bb3f2e4c0", "score": "0.43478325", "text": "function createEvent($req, &$t) {\n\t\t//make page title \n\t\t$this->_makePageTitle($t);\n\n\t\t//make toolbar\n\t\t$this->_makeToolbar($t);\n\n\t\t$this->_makeDataModel($req);\n\n\t\t//make the form\n\t\t$f = $this->_makeCreateForm($t, $this->dataModel);\n\t\t$this->_makeFormFields($f, $this->dataModel);\n\t}", "title": "" }, { "docid": "4bd644eb1abaecfbaf2ec4e6da44386c", "score": "0.4338944", "text": "public function buildForAggregate(string $aggregate) : EventSourcingRepository\n {\n return new EventSourcingRepository(\n $this->store,\n $this->bus,\n $aggregate,\n $this->factory\n );\n }", "title": "" }, { "docid": "a4a27847142f0a199596923fbf4aaffd", "score": "0.43256822", "text": "public function build_tree($p_tree)\n {\n global $g_comp_database, $g_dirs;\n\n $l_cmdb_dao = isys_cmdb_dao::instance($g_comp_database);\n $l_file_dao = isys_cmdb_dao_file::instance($g_comp_database);\n\n $l_file_categories = isys_factory_cmdb_dialog_dao::get_instance($g_comp_database, 'isys_file_category')\n ->get_data();\n\n // Create root node.\n $l_root_node = $p_tree->add_node(0, -1, '<span class=\"ml5\">' . _L('LC_UNIVERSAL__FILE_BROWSER') . '</span>', '', '', $g_dirs['images'] . 'icons/silk/database.png');\n\n if (is_array($l_file_categories) && count($l_file_categories) > 0)\n {\n // Here we create the \"category\" folders.\n foreach ($l_file_categories as $l_id => $l_row)\n {\n $p_tree->add_node($l_id, $l_root_node, '<span>' . $l_row['isys_file_category__title'] . '</span>', '', '', $g_dirs['images'] . 'dtree/folder.gif');\n } // foreach\n } // if\n\n $l_files = $l_file_dao->get_active_file_versions();\n $l_empty_value = isys_tenantsettings::get('gui.empty_value', '-');\n while ($l_row = $l_files->get_row())\n {\n // At first we calculate the filesize.\n $l_filesize = 0;\n $l_file_path = $g_dirs['fileman']['target_dir'] . DS . $l_row['isys_file_physical__filename'];\n\n if (file_exists($l_file_path))\n {\n $l_filesize = filesize($g_dirs['fileman']['target_dir'] . DS . $l_row['isys_file_physical__filename']);\n } // if\n\n if ($l_filesize <= 0)\n {\n $l_filesize = $l_empty_value;\n }\n else\n {\n $l_filesize = isys_convert::memory($l_filesize, 'C__MEMORY_UNIT__MB', C__CONVERT_DIRECTION__BACKWARD);\n } // if\n\n // Secondly, we get the user who uploaded the file.\n $l_person = $l_cmdb_dao->get_obj_name_by_id_as_string($l_row['isys_file_physical__user_id_uploaded']);\n\n // Assign intern variables.\n $this->m_file_infos[$l_row['isys_file_version__id']] = [\n 'id' => $l_row['isys_file_version__id'],\n 'obj_id' => $l_row['isys_file_version__isys_obj__id'],\n 'filename' => isys_glob_htmlentities($l_row['isys_file_physical__filename_original']),\n 'fileobj_name' => isys_glob_htmlentities($l_cmdb_dao->get_obj_name_by_id_as_string($l_row['isys_file_version__isys_obj__id'])),\n 'filesize' => $l_filesize . ' MB',\n 'uploaded_by' => $l_person,\n 'created_at' => $l_row['isys_date_up'],\n 'fileversion' => isys_glob_htmlentities($l_row['isys_file_version__title']),\n 'filerevision' => $l_row['isys_file_version__revision'],\n 'category' => $l_row['isys_file_category__title']\n ];\n\n $l_filename = $l_row['isys_file_physical__filename_original'];\n $l_strObjectName = $l_row['isys_obj__title'];\n\n $l_parent_node_id = $l_row['isys_file_category__id'];\n\n if ($l_parent_node_id === null)\n {\n $l_parent_node_id = $l_root_node;\n } // if\n\n // Change file name\n if (strlen($l_strObjectName) > 0)\n {\n $l_filename = $l_strObjectName . ' - \"' . $l_filename . '\"';\n }\n else\n {\n $l_filename = '\"' . $l_filename . '\"';\n } // if\n\n $l_selected_file = 0;\n\n if ($l_row['isys_file_version__isys_obj__id'] == $this->m_params['p_strSelectedID'])\n {\n $l_selected_file = 1;\n } // if\n\n // Add the next file to tree.\n $p_tree->add_node(\n 10000 + $l_row['isys_file_version__id'],\n $l_parent_node_id,\n '<span class=\"file-object mouse-pointer ' . ($l_selected_file ? 'bold' : '') . '\" data-file-version-id=\"' . $l_row['isys_file_version__id'] . '\">' . $l_filename . '</span>',\n '',\n '',\n '',\n $l_selected_file\n );\n } // while\n\n return $p_tree;\n }", "title": "" }, { "docid": "35681d9be6c8304eb722d4b925582ac9", "score": "0.43216383", "text": "public function __construct(array $event = [])\n {\n $this->push = isset($event['push']) ? $event['push'] : [];\n }", "title": "" }, { "docid": "75ecf1e7e59a56e433ada37b1aec9759", "score": "0.432074", "text": "protected function createPayloadFromEvent($event)\n {\n $job = $event->job;\n $exception = object_get($event, 'exception');\n $connectionName = $job->getConnectionName();\n\n $payload = [\n 'attempts' => $job->attempts(),\n 'connection' => [\n 'name' => $connectionName,\n 'config' => $this->getConnectionByName($connectionName)\n ],\n 'environment' => App::environment(),\n 'event' => get_class($event),\n 'job' => [\n 'id' => $job->getJobId(),\n 'name' => $job->resolveName(),\n 'raw' => $this->cleanJobData(json_decode($job->getRawBody())->data->command),\n ],\n 'laravel_version' => app()->version(),\n 'queue' => $job->getQueue(),\n 'request' => $this->getRequest(),\n 'server' => $this->getServer(),\n 'timestamp' => Carbon::now('UTC')->toDateTimeString(),\n 'key' => $this->getKey(),\n 'user' => Auth::user(),\n ];\n\n if($exception) {\n $payload['exception'] = [\n 'name' => get_class($exception),\n 'file' => $exception->getFile(),\n 'line' => $exception->getLine(),\n 'message' => $exception->getMessage(),\n ];\n }\n\n return $payload;\n }", "title": "" }, { "docid": "9b0648a6d4f978e54ea4b04715c3d310", "score": "0.431775", "text": "protected function buildClass($name)\n {\n $event = $this->option('event') ? $this->option('event') : 'Event';\n\n if (! Str::startsWith($event, [\n $this->laravel->getNamespace(),\n 'Illuminate',\n '\\\\',\n ])) {\n $event = Namespaces::combine(\n $this->getModule()->getNamespace('events'),\n $event\n );\n }\n\n $stub = $this->files->get($this->getStub());\n\n $stub = $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);\n\n $stub = str_replace(\n 'DummyEvent', class_basename($event), $stub\n );\n\n return str_replace(\n 'DummyFullEvent', trim($event, '\\\\'), $stub\n );\n }", "title": "" }, { "docid": "8e4148588d59ab2814127e9dda393c38", "score": "0.43146968", "text": "public function build(Project $project, User $user = null, Request $request = null, string $comment = null) {\n $event = new Event();\n $event->setProject($project);\n $event->setUser($user);\n $event->setComment($comment);\n if ($request) {\n if (!$this->container->hasParameter('directoki.collect_ip') || $this->container->getParameter('directoki.collect_ip')) {\n $event->setIP($request->getClientIp());\n }\n if (!$this->container->hasParameter('directoki.collect_user_agent') || $this->container->getParameter('directoki.collect_user_agent')) {\n $event->setUserAgent($request->headers->get('User-Agent'));\n }\n }\n return $event;\n }", "title": "" }, { "docid": "bf771ed706a2937f9831b9dd06b30447", "score": "0.43133837", "text": "public function testbuild()\n {\n $trainingMock = $this->getMockBuilder(Training::class)->disableOriginalConstructor()->getMock();\n $trainingMock\n ->expects($this->any())\n ->method('getContent')\n ->willReturn('Footing 45 mins')\n ;\n\n $weekMock = $this->getMockBuilder(Week::class)->disableOriginalConstructor()->getMock();\n $weekMock\n ->expects($this->any())\n ->method('getTrainings')\n ->willReturn([\n $trainingMock,\n $trainingMock,\n ])\n ;\n\n $calendarEventBuilder = new CalendarEventBuilder();\n $events = $calendarEventBuilder->build($weekMock);\n\n foreach ($events as $event) {\n $this->assertInstanceOf(CalendarEvent::class, $event);\n }\n }", "title": "" }, { "docid": "e559dcafb6711ebaace0f9d20db0ef7a", "score": "0.43121895", "text": "public function setupEventDataProvider()\n\t{\n\t\t$seed = uniqid();\n\n\t\treturn array(\n\t\t\t'isolated, name, jenkins' => array(\n\t\t\t\tISessionStrategyFactory::TYPE_ISOLATED, 'TEST_NAME', 'BUILD_NUMBER', 'JENKINS ' . $seed,\n\t\t\t),\n\t\t\t'shared, no name, jenkins' => array(\n\t\t\t\tISessionStrategyFactory::TYPE_SHARED, self::AUTOMATIC_TEST_NAME, 'BUILD_NUMBER', 'JENKINS ' . $seed,\n\t\t\t),\n\t\t\t'isolated, name, travis' => array(\n\t\t\t\tISessionStrategyFactory::TYPE_ISOLATED, 'TEST_NAME', 'TRAVIS_BUILD_NUMBER', 'TRAVIS ' . $seed,\n\t\t\t),\n\t\t\t'shared, no name, travis' => array(\n\t\t\t\tISessionStrategyFactory::TYPE_SHARED,\n\t\t\t\tself::AUTOMATIC_TEST_NAME,\n\t\t\t\t'TRAVIS_BUILD_NUMBER',\n\t\t\t\t'TRAVIS ' . $seed,\n\t\t\t),\n\t\t\t'isolated, name, no build' => array(ISessionStrategyFactory::TYPE_ISOLATED, 'TEST_NAME'),\n\t\t\t'shared, no name, no build' => array(ISessionStrategyFactory::TYPE_SHARED, self::AUTOMATIC_TEST_NAME),\n\t\t);\n\t}", "title": "" }, { "docid": "39591f0d968d59a6458a6b9c8c997663", "score": "0.43086183", "text": "protected function tree($array)\n\t{\n\t\t//define the root array\n\t\t$root = array(\n\t\t\t'children' => array()\n\t\t);\n\n\t\t$current = & $root;\n\n\t\t//loop through the array of string segments\n\t\tforeach ($array as $i => $node) \n\t\t{\n\t\t\t//check if node has template tag in it\n\t\t\t$result = $this->tag($node);\n\n\t\t\t//process if a valid tag was found\n\t\t\tif ($result) \n\t\t\t{\n\t\t\t\t//get the tag itself\n\t\t\t\t$tag = isset($result['tags']) ? $result['tags'] : '';\n\n\t\t\t\t//get the arguments for this tag\n\t\t\t\t$arguments = isset($result['arguments']) ? $result['arguments'] : '';\n\n\t\t\t\t//if there was a valid tag, process\n\t\t\t\tif ($tag) \n\t\t\t\t{\n\t\t\t\t\t//check the type of tag\n\t\t\t\t\tif ( ! $result['closer']) \n\t\t\t\t\t{\n\t\t\t\t\t\t//get the last tag in this hierachy\n\t\t\t\t\t\t$last = ArrayUtility::last($current['children']);\n\n\t\t\t\t\t\t//check if this tag is isolated type\n\t\t\t\t\t\tif ($result['isolated'] && is_string($last)) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//remove this last item from the array\n\t\t\t\t\t\t\tarray_pop($current['children']);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//populate metadata for this tag\n\t\t\t\t\t\t$current['children'][] = array(\n\n\t\t\t\t\t\t\t\t'index' => $i,\n\t\t\t\t\t\t\t\t'parent' => &$current,\n\t\t\t\t\t\t\t\t'children' => array(),\n\t\t\t\t\t\t\t\t'raw' => $result['source'],\n\t\t\t\t\t\t\t\t'tag' => $tag,\n\t\t\t\t\t\t\t\t'arguments' => $arguments,\n\t\t\t\t\t\t\t\t'delimiter' => $result['delimiter'],\n\t\t\t\t\t\t\t\t'number' => sizeof($current['children'])\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t//update the $current variable\n\t\t\t\t\t\t$current = & $current['children'][sizeof($current['children']) - 1];\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//if the tag is not a closure\n\t\t\t\t\telse if(isset($current['tag']) && $result['tag'] == $current['tag'])\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the start index\n\t\t\t\t\t\t$start = $current['index'] + 1;\n\n\t\t\t\t\t\t//get the lenght\n\t\t\t\t\t\t$length = $i - $start;\n\n\t\t\t\t\t\t//get the current source\n\t\t\t\t\t\t$current['source'] = implode(array_slice($array, $start, $length));\n\n\t\t\t\t\t\t//get the current parent\n\t\t\t\t\t\t$current = & $current['parent'];\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\t//if tag is empty\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//add to current children\n\t\t\t\t\t$current['children'][] = array(\n\n\t\t\t\t\t\t\t'index' => $i,\n\t\t\t\t\t\t\t'parent' => &$current,\n\t\t\t\t\t\t\t'children' => array(),\n\t\t\t\t\t\t\t'raw' => $result['source'],\n\t\t\t\t\t\t\t'tag' => $tag,\n\t\t\t\t\t\t\t'arguments' => $arguments,\n\t\t\t\t\t\t\t'delimiter' => $result['delimiter'],\n\t\t\t\t\t\t\t'number' => sizeof($current['children'])\n\n\t\t\t\t\t);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t//not a valid template tag\n\t\t\telse\n\t\t\t{\n\t\t\t\t//add to the children array\n\t\t\t\t$current['children'][] = $node;\n\n\t\t\t}\n\n\t\t}\n\n\t\t//return the resultant root/current array\n\t\treturn $root;\n\n\t}", "title": "" }, { "docid": "6fd3cc297212828eee4c94df02b2330d", "score": "0.430529", "text": "public function post(Event $event) {\n\t\t$event_class = with(new ReflectionClass($event))->name;\n\t\t\n\t\t$listeners = array();\n\t\t\n\t\t$obj = $obj_o = new ReflectionClass($event);\n\t\t\n\t\t// check, if listeners for $event's parent classes should be called too?\n\t\t$b = $this->call_generic_listener();\n\t\t\n\t\t// fetch all listeners for the $event class AND its parent classes (if this bus is set to, @see call_inheritence_tree())\n\t\tdo {\n\t\t\tif ( isset($this->listeners[$obj->name])) {\n\t\t\t\t$listeners = array_merge_recursive($listeners, $this->listeners[$obj->name]);\n\t\t\t} \n\t\t} while ( $b && ($obj = $obj->getParentClass()) != null);\n\t\t\n\t\t// profiling event calls\n\t\tif (Kohana::$profiling === TRUE) {\n\t\t\t// add listener to statistics (for administrativ purpose)\n\t\t\tif ( self::$event_cache === null ) {\n\t\t\t\tself::$event_cache = Cache::instance()->get(self::CACHE_EVENTS, array());\n\t\t\t}\n\t\t\t$count = 0;\n\t\t\tif ( isset(self::$event_cache[$event_class]) ) {\n\t\t\t\t$postedBy = self::$event_cache[$event_class][1];\n\t\t\t}\n\t\t\t// get called Class\n\t\t\tif (version_compare(phpversion(), '5.4', '<')) {\n\t\t\t\t$stack = debug_backtrace(false);\n\t\t\t} else {\n\t\t\t\t$stack = debug_backtrace(false, 2);\n\t\t\t}\n\t\t\t\n\t\t\t$postedBy[( isset($stack[1]['class']) ? $stack[1]['class']:\"direct\")] = ( isset($stack[1]['file']) ) ? $stack[1]['file']:\"n/a\";\n\t\t\t\n\t\t\tself::$event_cache[$event_class] = array(count($listeners), $postedBy, $obj_o->getFileName());\n\t\t\tCache::instance()->set(self::CACHE_EVENTS, self::$event_cache, self::CACHE_LIFETIME);\n\t\t\t\n\t\t\t$benchmark_events = Profiler::start('SKE/Events', get_class($event));\n\t\t}\n\t\t\n\t\t// call all listeners\n\t\tforeach ( $listeners as $prio_listeners ) {\n\t\t\tforeach ( $prio_listeners as $l ) {\n\t\t\t\t$listener_object = $l[0];\n\t\t\t\t$listener_method = $l[1];\n\t\t\t\t\n\t\t\t\t// call listener\n\t\t\t\t$listener_object->$listener_method($event);\n\t\t\t\t\n\t\t\t\tif ( $event->isCancelled() ) {\n\t\t\t\t\tbreak 2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (isset($benchmark_events)) {\n\t\t\tProfiler::stop($benchmark_events);\n\t\t}\n\t\t\n\t\treturn $event;\n\t}", "title": "" }, { "docid": "b90d33a0cd58c2d1fbf166956c5aa4de", "score": "0.4304342", "text": "static public function tree();", "title": "" }, { "docid": "3033ec2512668a62fb6a197a2e4059ae", "score": "0.42967418", "text": "public static function convert($_event)\n {\n\n }", "title": "" }, { "docid": "c282916d735617cf8107de148a71c85e", "score": "0.4296488", "text": "public function DecodeEvent($event_object, $log) : stdClass\n {\n $res = new stdClass();\n\t\t$res->indexed = array();\n\t\t$res->indexed []= $event_object->name;\n\n\t\t$res->data = array();\n\n\t\t//split inputs between indexed and raw data\n\t\t$indexed_index = 1;\n\t\t$data_inputs = array();\n \n\t\tforeach ($event_object->inputs as $input)\n\t\t{\n\t\t\tif ($input->indexed)\n\t\t\t{\n\t\t\t\t$input_type = is_string($input) ? $input : $input->type;\n\t\t\t\t$varType = self::GetParameterType($input_type);\n\t\t\t\t$res->indexed[$input->name] = $this->DecodeInput_Generic($varType, $log->topics[$indexed_index], 2);\n\n\t\t\t\t$indexed_index++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$data_inputs []= $input;\n\t\t\t}\n\t\t}\n\n\t\t//parse raw data\n\t\t$encoded = substr($log->data, 2); \n\t\t$res->data = $this->DecodeGroup($data_inputs, $encoded, 0);\n \n\t\t//Return\n\t\treturn $res;\n }", "title": "" }, { "docid": "bf68b1f9f8b5afcb9f132f0c7a165268", "score": "0.4294918", "text": "function addEvent($title, $dir, $ecodes='ECB') { \n HTML::title($title);\n \n echo h2('', $title);\n \n $fields = self::eventFields($dir, $ecodes, 'add');\n \n if (FORM::complete($fields)) {\n $event = param('event');\n $basetime = strtotime($event['date']);\n $date = date('m/d/Y', $basetime);\n $year = date('Y', $basetime);\n \n $eventsfile = $dir.'/'.$year.'/calendar.txt';\n $events = @unserialize(@file_get_contents($eventsfile));\n if (!is_array($events)) $events = array();\n \n if (!array_key_exists($date, $events)) $events[$date] = array();\n $events[$date][] = param('event');\n \n file_put_contents($eventsfile, serialize($events));\n \n echo p('', 'Event Added');\n }\n}", "title": "" } ]
087a87c5cbd0197df82a3c1b1eb4f8b3
if the content that is to be cached comes from the database (as ist most often the case) then this function should return an array of assoc arrays that point to the tables and records that are associated with the content. one table entry has two fields: table the name of the table id the record in question. if this is empty, then any record change in that table will result in a cache clear.
[ { "docid": "6158c551543d681039d45984ef6e0275", "score": "0.6372838", "text": "public function _GetCacheTableInfos()\n {\n $aTrigger = parent::_GetCacheTableInfos();\n if (!is_array($aTrigger)) {\n $aTrigger = array();\n }\n\n $aTrigger[] = array('table' => 'pkg_shop_rating_service_widget_config', 'id' => $this->oModuleConfig->id);\n\n return $aTrigger;\n }", "title": "" } ]
[ { "docid": "21cf959a9d49ed8e898070a4b1ffc11f", "score": "0.6636277", "text": "public function list_cache()\n {\n $statement = $this->_db->prepare('SELECT * FROM cache WHERE 1=1;');\n $result = $statement->execute();\n// $results = $result->fetchArray(SQLITE3_ASSOC);\n\n $ttl_expiry = time() - $this->_cacheTTL;\n $return_list = array();\n\n while ($results = $result->fetchArray(SQLITE3_ASSOC)) {\n $expired = false;\n $ttl = $results['created'];\n\n if ($ttl < $ttl_expiry) {\n $expired = true;\n }\n\n $return_list[] = array(\n 'item_name' => $results['request_hash'],\n 'contents' => $results['request_response'],\n 'location' => $results['request_hash'],\n 'ttl' => $ttl,\n 'expired' => $expired\n );\n\n }\n\n return $return_list;\n }", "title": "" }, { "docid": "057ea5e41cf2c5fe85d2edb83e2c6a5e", "score": "0.65204155", "text": "public static function getTableList()\n {\n\t\t\t\n\t\t\t// Is the table list not yet cached?\n if (\n\t\t\t\t!is_array(self::$tableList) || \n\t\t\t\tcount(self::$tableList) < 1 || \n\t\t\t\tself::$cacheActive == false\n\t\t\t)\n {\t// Not cached\n\t\t\t\t\n\t\t\t\t// Okay, use show tables and copy the table names across\n self::$tableList = array();\n\t\t\t\t$result = self::query(\"SHOW TABLES\"); \n foreach ($result as $row)\n {\n foreach ($row as $val)\n {\n self::$tableList[] = $val;\n }\n }\n\t\t\t\t\n }\t// not cached\n\t\t\t\n\t\t\t// Return the (cached?) result\n return self::$tableList;\n\t\t\t\n }", "title": "" }, { "docid": "cd268951a8ee83a4a44032b91259dea4", "score": "0.6451722", "text": "public function _GetCacheTableInfos()\n {\n $aCacheParams = parent::_GetCacheTableInfos();\n if (!is_array($aCacheParams)) {\n $aCacheParams = array();\n }\n if (!is_null($this->iActiveItemId)) {\n $aCacheParams[] = array('table' => 'shop_manufacturer', 'id' => $this->iActiveItemId);\n } else {\n $aCacheParams[] = array('table' => 'shop_manufacturer', 'id' => '');\n }\n $aCacheParams[] = array('table' => 'shop_manufacturer_module_conf', 'cms_tpl_module_instance_id' => $this->instanceID);\n\n return $aCacheParams;\n }", "title": "" }, { "docid": "1e948029a524473ba096e23d939c238e", "score": "0.6338635", "text": "public function getAllCached(){\n //Otherwise, it will executethe function(){} to get all data in links table and automatically cache it for given seconds\n return Cache::remember($this->cache_key, $this->cache_expire_in_seconds, function(){\n return $this->all();\n });\n }", "title": "" }, { "docid": "905fbb6905a24db188c878fdf8edb2df", "score": "0.6262184", "text": "protected static function getDbTablesWithData()\n {\n $result = array();\n foreach (Piwik::getTablesInstalled() as $tableName) {\n $result[$tableName] = Db::fetchAll(\"SELECT * FROM $tableName\");\n }\n return $result;\n }", "title": "" }, { "docid": "cf88be717ce195e8642efbdb181b4830", "score": "0.62308115", "text": "public static function GetCacheTable()\n {\n return '_cms_cache';\n }", "title": "" }, { "docid": "f93c56e6d3bf476da664a9d1b75e0c68", "score": "0.6072067", "text": "function FetchTables()\r\n {\r\n \t$oQ = new Query( $this );\r\n \t\t\r\n \t$aTables = array();\r\n\r\n $sSQL = \"SELECT pt.tablename, pp.typrelid FROM pg_tables AS pt INNER JOIN \" . \r\n \"pg_type AS pp ON pp.typname = pt.tablename WHERE \" . \r\n \"pt.tablename NOT LIKE 'pg_%' AND \" . \r\n \"pt.tablename NOT LIKE 'sql_%'\" ;\r\n\r\n $oQ->Ex( $sSQL );\r\n while( $aTable = $oQ->NextRecord() ) \r\n {\r\n $aTables[ $aTable[ \"typrelid\" ] ] = $aTable[ \"tablename\" ];\r\n }\r\n\r\n return( $aTables );\r\n\r\n\t\t}", "title": "" }, { "docid": "615da9c4367d93c7db5f9fcf884e7892", "score": "0.59856194", "text": "function cache_device_alert_table($device_id)\n{\n\n $alert_table = array();\n\n $sql = \"SELECT *,`alert_table`.`alert_table_id` AS `alert_table_id` FROM `alert_table`\";\n $sql .= \" LEFT JOIN `alert_table-state` ON `alert_table`.`alert_table_id` = `alert_table-state`.`alert_table_id`\";\n $sql .= \" WHERE `device_id` = ?\";\n\n foreach (dbFetchRows($sql, array($device_id)) as $entry)\n {\n $alert_table[$entry['entity_type']][$entry['entity_id']][$entry['alert_test_id']] = $entry;\n }\n\n return $alert_table;\n\n}", "title": "" }, { "docid": "b5903289f1712fcd7ec704e41d99159b", "score": "0.59790444", "text": "public static function GetCacheInfoTable()\n {\n return '_cms_cache_info';\n }", "title": "" }, { "docid": "f07c83e6ded66f19dcd0bfff06a9d74c", "score": "0.5966116", "text": "protected static function getCache(){\n\t\t$cname = get_called_class();\n\t\tif(!isset(self::$_CACHE->{$cname})){\n\t\t\t$obj = self::$_CACHE->{$cname} = new stdClass;\n\t\t\t$obj->OBJ = array();\n\t\t\t$obj->SQL = array();\n\t\t}\n\t\treturn self::$_CACHE->{$cname};\n\t}", "title": "" }, { "docid": "4c74ddcd649fd06b7c6d60fa6740b612", "score": "0.59075236", "text": "protected static function cache()\n {\n static::$cachedRows = static::query()\n ->pluck('setting_value', 'setting_name')\n ->toArray();\n }", "title": "" }, { "docid": "7ee9bf1c957986d969226dcbfb7e934e", "score": "0.5898075", "text": "public function getTables() {\n $this->db->select('lc.spLocaleContainerID, lc.Name AS TableName, lcn.Text AS TableTitle, lcd.Text AS TableDescription');\n $this->db->from('splocalecontainer lc');\n $this->db->join('splocaleitemstr lcn', 'lc.SpLocaleContainerID=lcn.SpLocaleContainerNameID', 'left');\n $this->db->join('splocaleitemstr lcd', 'lc.SpLocaleContainerID=lcd.SpLocaleContainerDescID', 'left');\n $this->db->join('spschema_table t', 'lc.Name=t.TableName');\n $this->db->where('lc.DisciplineID', 3);\n $this->db->where('lc.SchemaType', 0);\n $query = $this->db->get();\n return $query->result_array();\n }", "title": "" }, { "docid": "75857653c2a97e999566185e2e3550da", "score": "0.58869034", "text": "public function cache_read()\n\t\t{\n\t\t\treturn $this->cache->read('.#table#' . $this->getName());\n\t\t}", "title": "" }, { "docid": "dabf37bee79b84595ba1a88cc471df1b", "score": "0.5883047", "text": "public function findCacheAll ($relation = 0) \n\t{\n\t\t$controllerName = Yii::$app->controller->id;\n\t\t$data = $this->data;\n\t\t// if(!in_array($controllerName, $this->listRedisCache)) {\n\t\t\tif($relation == 0)\n\t\t\t\treturn $data->all();\n\t\t\telse\n\t\t\t\treturn $data;\n\t\t// }\n\t\t\n\t\t$memcache = Yii::$app->rediscache;\n\t\t//config get cache\n\t\t$key = $data->createCommand()->getRawSql();\t\t\t\n\t\t$keyarray = explode(\"FROM\", $key);\n\t\t$count = count($keyarray);\t\t\n\t\tif( $count > 2){\n\t\t\tunset($keyarray[0]);\n\t\t\t$key = implode(\"FROM\", $keyarray);\n\t\t\t$this->keylist = explode(\"WHERE\", $key);\n\t\t\t$this->keylist = $this->keylist[0];\n\t\t} else {\n\t\t\t$key = $keyarray[1];\n\t\t\t$this->keylist = $key;\n\t\t}\n\t\t\n\t\t$keymd5 = md5($key);\t\t\n\t\t//get and set list key cache \n\t\t$listkey = $memcache->get($this->keylist);\n\t\t$listkey = !empty($listkey) ? unserialize($listkey) : array();\n\t\t\n\t\tif(!in_array($key, $listkey)) {\n\t\t\t$listkey[] = $key;\n\t\t\t$memcache->set($this->keylist, serialize($listkey)); \n\t\t} \n\t\t\n\t\t// return cache;\n\t\t$getCache = $memcache->get($keymd5);\n\t\tif(empty($getCache)) {\n\t\t\t$value = $data->all();\n\t\t\tif(!empty($value)) {\n\t\t\t\t$memcache->set($keymd5, $value);\n\t\t\t\treturn $value;\n\t\t\t} else {\n\t\t\t\t$memcache->set($keymd5, $data);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn $getCache;\n\t\t}\n\t}", "title": "" }, { "docid": "859e0db07ebb94ea4a06b4a35aaaa6c0", "score": "0.58551216", "text": "function contents()\n {\n $result = $this->connection->queryAll($this->sql['getAll']);\n\n if ($this->isError($result)) {\n return array();\n } else {\n $content = array();\n $index = 0;\n\n // content is expected to be returned as a parametrized array\n // so we have to convert it this way\n foreach ($result as $row) {\n $keyValue = $row['keyValue'];\n if ($row['serialized'] == 1){\n $keyValue = unserialize($keyValue);\n }\n $content[$index] = array(0 => $row['keyName'], 1 => $keyValue);\n $index++;\n }\n return $content;\n } \n }", "title": "" }, { "docid": "f2d0e9ba4969d567df470eb82e132c3f", "score": "0.58323365", "text": "public function getAllContent(){\n $result = array();\n \n $contentRes = $this->db->select('content',array('contentID', 'title', 'description', 'file'));\n while ($content = $this->db->fetch_assoc($contentRes)){\n $contentID = $content['contentID'];\n $content['contentID']='content_'.$contentID;\n $content['url']='http://147.175.15.42/'.str_replace('/var/www/','',$content['file']);\n unset($content['file']); \n \n $metadataRes = $this->db->select('contentMetadata','*',array(\"WHERE\"=>\"contentID=$contentID\"));\n while ($metadata = $this->db->fetch_assoc($metadataRes)) {\n $content[$metadata['name']]=$metadata['value'];\n }\n \n array_push($result,$content);\n }\n \n return $result;\n }", "title": "" }, { "docid": "4c603835c68aa44544906186389852e7", "score": "0.5829093", "text": "public function getCache() : array\n {\n return $this->cache;\n }", "title": "" }, { "docid": "f04bc3635ac15fd80d4d0d3f4388b3cc", "score": "0.5828267", "text": "public static function getCacheTable(){\r\n\t\treturn sfConfig::get(\"app_sfTeraWurflPlugin_database_table_cache\",\"TeraWurflCache\");\r\n\t}", "title": "" }, { "docid": "56e352d6d12d8fb7c7f3913750e21573", "score": "0.58279836", "text": "public function getTables() : array;", "title": "" }, { "docid": "57eab4f49e3de5075cf3e1731de7a953", "score": "0.58181643", "text": "abstract public function getTablesAsArray();", "title": "" }, { "docid": "efa6edda6281e587b985e39805f42fef", "score": "0.5814308", "text": "public function getDirtyTables(): array\n {\n try {\n return $this->fetchQuery(\"SELECT table_name FROM \" . $this->collectorName());\n } catch (\\Throwable $e) {\n $this->init();\n return $this->getDirtyTables();\n }\n }", "title": "" }, { "docid": "1833457f7e8fff87cee70c32dc6cf052", "score": "0.58007663", "text": "function all(){\n\t\t $query = \"SELECT * FROM \".$this->table;\n\n\t\t $this->table = array();\n\n\t\t // Thuc thi cau lenh truy van co so du lieu\n\t\t $result = $this->connection->query($query);\n\n\t\t while($row = $result->fetch_assoc()) { \n\t\t \t$this->table[] = $row;\n\t\t }\n\n\t\t return $this->table;\n\t\t}", "title": "" }, { "docid": "8b37cf0e002ec8ea79ff68bc400f467f", "score": "0.5790819", "text": "protected function getWorkTimeTableFromCache()\n {\n $cachedAppData = file_exists($this->cachedCmDataFile) ? json_decode(file_get_contents($this->cachedCmDataFile), true) : null;\n $cachedDataSeconds = file_exists($this->cachedCmDataFile) ? time() - filemtime($this->cachedCmDataFile) : null;\n if (is_array($cachedAppData) && !empty($cachedAppData) && $cachedDataSeconds < self::CACHED_CM_DATA_TTL) {\n return $cachedAppData;\n }\n return false;\n }", "title": "" }, { "docid": "d734f0f1e5369b9d68b418051faa9bbb", "score": "0.5779486", "text": "public function get_tables();", "title": "" }, { "docid": "7dc8f39e4ff1cbf5495c591f9464beb2", "score": "0.5766743", "text": "function getArray($cache = null) {\n require('db.getarray.php');\n return (isset($array_rows) ? $array_rows : null);\n }", "title": "" }, { "docid": "3fd14119d2b54cad58661fb53216e8a2", "score": "0.57501626", "text": "abstract protected function loadCache(): array;", "title": "" }, { "docid": "62ab2b52333925c6d4821bb8227af0d9", "score": "0.5745387", "text": "abstract protected function getTables();", "title": "" }, { "docid": "62ab2b52333925c6d4821bb8227af0d9", "score": "0.5745387", "text": "abstract protected function getTables();", "title": "" }, { "docid": "38ae0569640c67b9e0a54a4a730ed0af", "score": "0.57408917", "text": "public function getCacheInUse() {\n $cache = array();\n $environment = self::$_environmentInUse;\n\n if ($environment!==null) {\n $cacheEnv = $environment[\"cache\"];\n foreach ($cacheEnv as $aux) {\n $cache [$aux]= (object) $this->_config->cache->getCache($aux);\n }\n }\n return $cache;\n\n }", "title": "" }, { "docid": "7275c0a02a0f107be3f5381c2f140f7d", "score": "0.573962", "text": "public function getTables(): array;", "title": "" }, { "docid": "ac2709b6ebc4b097a6b74bc49bdacaad", "score": "0.5733318", "text": "public function getTables();", "title": "" }, { "docid": "ac2709b6ebc4b097a6b74bc49bdacaad", "score": "0.5733318", "text": "public function getTables();", "title": "" }, { "docid": "ac2709b6ebc4b097a6b74bc49bdacaad", "score": "0.5733318", "text": "public function getTables();", "title": "" }, { "docid": "d82ce5bc95da219927abe17be2928dce", "score": "0.5726258", "text": "private function get_tables(){\n\t\t$tables_array = array();\n\t\t// First get the tables\n\t\t\t$this->db->query('SHOW TABLES');\n\t\t\t$tables = $this->db->get_all();\n\t\t\tforeach($tables as $table){\n\t\t\t\t// get the first element\n\t\t\t\t\t$name = reset($table);\n\t\t\t\t// add to assoc array with columns (if not in the ignore list)\n\t\t\t\t\tif(!in_array($name, $this->zajlib->zajconf['mysql_ignore_tables'])){\n\t\t\t\t\t\t// Is Wordpress enabled? If so, also ignore any tables beginning with wp_\n\t\t\t\t\t\tif(!$this->zajlib->plugin->is_enabled('wordpress') || substr($name, 0, 3) != 'wp_'){\n\t\t\t\t\t\t\t$tables_array[$name] = $this->get_columns($name);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\treturn $tables_array;\n\n\t}", "title": "" }, { "docid": "af7884b0a2e0526b5488eb5f17b376ce", "score": "0.571089", "text": "public function getAll()\n {\n $ret = [];\n $keys = $this->_redis->keys($this->redisStoreCachePrefix . \"*\");\n foreach ($keys as $key) {\n $keyHashArray = explode($this->redisStoreCachePrefix, $key);\n $ret[$keyHashArray[1]] = $this->_redis->hGetAll($key);\n }\n return $ret;\n }", "title": "" }, { "docid": "1b784abc94ccdb3444d3a189b86a0ea7", "score": "0.5704768", "text": "function cache_conditions()\n{\n\n $cache = array();\n\n foreach (dbFetchRows(\"SELECT * FROM `alert_tests`\") as $entry)\n {\n $conditions = unserialize($entry['conditions']);\n $cache['cond'][$entry['alert_test_id']]['entity_type'] = $entry['entity_type'];\n $cache['cond'][$entry['alert_test_id']]['conditions'] = $conditions;\n }\n\n foreach (dbFetchRows(\"SELECT * FROM `alert_assoc`\") as $entry)\n {\n $attributes = unserialize($entry['attributes']);\n $dev_attrib = unserialize($entry['device_attributes']);\n $cache['assoc'][$entry['alert_assoc_id']]['entity_type'] = $entry['entity_type'];\n $cache['assoc'][$entry['alert_assoc_id']]['attributes'] = $attributes;\n $cache['assoc'][$entry['alert_assoc_id']]['device_attributes'] = $dev_attrib;\n $cache['assoc'][$entry['alert_assoc_id']]['alert_test_id'] = $entry['alert_test_id'];\n }\n\n return $cache;\n}", "title": "" }, { "docid": "8a91e24653b93cb88b25530b24e67327", "score": "0.5666092", "text": "function readData($cache = null) {\n require('db.readdata.php');\n return $this->getArray($cache);\n }", "title": "" }, { "docid": "b66f3a64a58736b87f54c28f5f636fb5", "score": "0.56557673", "text": "public function getTables()\n\t{\n\t\t$tables = [];\n\t\t\n\t\t$sql = \"SHOW TABLE STATUS;\";\n\t\t$request = $this->db->query($sql);\n\t\t\n\t\tif ($request->rowCount() != 0) {\n\t\t\twhile ($result = $request->fetchObject()) {\n\t\t\t\t$tables[$result->Comment] = $result->Name;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "ba5ee7f13425f780b831f0b178233a66", "score": "0.56381494", "text": "private function getFromDB()\r\r\n\t{\r\r\n\t\t$tables = preg_grep('/^tl_/i', $this->Database->listTables());\r\r\n\r\r\n\t\tif (!count($tables))\r\r\n\t\t{\r\r\n\t\t\treturn array();\r\r\n\t\t}\r\r\n\r\r\n\t\t$return = array();\r\r\n\r\r\n\t\tforeach ($tables as $table)\r\r\n\t\t{\r\r\n\t\t\t$fields = $this->Database->listFields($table);\r\r\n\r\r\n\t\t\tforeach ($fields as $field)\r\r\n\t\t\t{\r\r\n\t\t\t\t$name = $field['name'];\r\r\n\t\t\t\t$field['name'] = '`'.$field['name'].'`';\r\r\n\r\r\n\t\t\t\t// Field type\r\r\n\t\t\t\tif (strlen($field['length']))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\t$field['type'] .= '(' . $field['length'] . (strlen($field['precision']) ? ',' . $field['precision'] : '') . ')';\r\r\n\r\r\n\t\t\t\t\tunset($field['length']);\r\r\n\t\t\t\t\tunset($field['precision']);\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\t// Default values\r\r\n\t\t\t\tif (in_array(strtolower($field['type']), array('text', 'tinytext', 'mediumtext', 'longtext', 'blob', 'tinyblob', 'mediumblob', 'longblob')) || stristr($field['extra'], 'auto_increment'))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\tunset($field['default']);\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\telseif (is_null($field['default']) || strtolower($field['default']) == 'null')\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\t$field['default'] = \"default NULL\";\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\telse\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\t$field['default'] = \"default '\" . $field['default'] . \"'\";\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\t// Indices\r\r\n\t\t\t\tif (strlen($field['index']))\r\r\n\t\t\t\t{\r\r\n\t\t\t\t\tswitch ($field['index'])\r\r\n\t\t\t\t\t{\r\r\n\t\t\t\t\t\tcase 'PRIMARY':\r\r\n\t\t\t\t\t\t\t$return[$table]['TABLE_CREATE_DEFINITIONS'][$name] = 'PRIMARY KEY (`'.$name.'`)';\r\r\n\t\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\t\tcase 'UNIQUE':\r\r\n\t\t\t\t\t\t\t$return[$table]['TABLE_CREATE_DEFINITIONS'][$name] = 'UNIQUE KEY `'.$name.'` (`'.$name.'`)';\r\r\n\t\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\t\tcase 'FULLTEXT':\r\r\n\t\t\t\t\t\t\t$return[$table]['TABLE_CREATE_DEFINITIONS'][$name] = 'FULLTEXT KEY `'.$name.'` (`'.$name.'`)';\r\r\n\t\t\t\t\t\t\tbreak;\r\r\n\r\r\n\t\t\t\t\t\tdefault:\r\r\n\t\t\t\t\t\t\t$return[$table]['TABLE_CREATE_DEFINITIONS'][$name] = 'KEY `'.$name.'` (`'.$name.'`)';\r\r\n\t\t\t\t\t\t\tbreak;\r\r\n\t\t\t\t\t}\r\r\n\r\r\n\t\t\t\t\tunset($field['index']);\r\r\n\t\t\t\t}\r\r\n\r\r\n\t\t\t\t$return[$table]['TABLE_FIELDS'][$name] = trim(implode(' ', $field));\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\r\r\n\t\treturn $return;\r\r\n\t}", "title": "" }, { "docid": "4daea7b9fb5bee6067270bca993d9a46", "score": "0.5635663", "text": "function get_all_innodb_tables()\n{\n $_tables = $GLOBALS['SITE_DB']->query_select('db_meta', array('*'));\n $all_tables = array();\n foreach ($_tables as $t) {\n if (!isset($all_tables[$t['m_table']])) {\n $all_tables[$t['m_table']] = array();\n }\n\n $all_tables[$t['m_table']][$t['m_name']] = $t['m_type'];\n }\n unset($_tables);\n\n ksort($all_tables);\n\n $all_tables['anything'] = array('id' => '*ID_TEXT');\n\n return $all_tables;\n}", "title": "" }, { "docid": "e5c2855b0178bee750f7b3f252e93a67", "score": "0.563313", "text": "function getTableList()\r\n {\r\n $tables = array();\r\n\r\n $result = mysql_list_tables(DB_NAME);\r\n\r\n if (! $result)\r\n return $tables;\r\n\r\n while($row = mysql_fetch_row($result))\r\n {\r\n $tableName = $row[0];\r\n $tables[$tableName] = $tableName;\r\n }\r\n\r\n return $tables;\r\n }", "title": "" }, { "docid": "d42a35f92777df9d858950fffdb07feb", "score": "0.5621596", "text": "private function getData()\n\t{\n\t\t$cache = $this->cache->get(\"store_items\");\n\n\t\tif($cache !== false)\n\t\t{\n\t\t\treturn $cache;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data = array();\n\n\t\t\tforeach($this->realms->getRealms() as $realm)\n\t\t\t{\n\t\t\t\t// Load all items that belongs to this realm\n\t\t\t\t$items = $this->store_model->getItems($realm->getId());\n\n\t\t\t\t// Assign the realm name\n\t\t\t\t$data[$realm->getId()]['name'] = $realm->getName();\n\n\t\t\t\t// Assign and format the items by their groups\n\t\t\t\t$data[$realm->getId()]['items'] = $this->formatItems($items);\n\t\t\t}\n\n\t\t\t$this->cache->save(\"store_items\", $data, 60*60);\n\n\t\t\treturn $data;\n\t\t}\n\t}", "title": "" }, { "docid": "42189e1caef6601c0046d71a7640c035", "score": "0.56196123", "text": "function get_tables () {\n\t\t$tmp_rs = $this->list_tables ();\n\t\t$tmp = $this->num_rows ($tmp_rs);\n\t\tfor ($i = 0; $i < $tmp; $i++)\n\t\t\t$aTablas[] = $this->tablename ($tmp_rs, $i);\n\t\t$this->libera ($tmp_rs);\n\t\treturn $aTablas;\n\t}", "title": "" }, { "docid": "a21945bc1286908c6eab5e45679beed3", "score": "0.56191814", "text": "function get_table( $result )\r\n{\r\n $index = 0;\r\n\t$a = array();\r\n\t\r\n while ( $row = mysql_fetch_array($result, MYSQL_ASSOC) ) {\r\n\t\t$a[$index] = $row;\r\n\t\t$index++;\r\n\t}\r\n\treturn $a;\r\n}", "title": "" }, { "docid": "02b9b0ce0995f6127129bdb857a0781f", "score": "0.5606892", "text": "function getEditableContent()\n\t {\n\t\t $stmt = $this->dbh->prepare('SELECT * FROM itemsTable WHERE pending_id IS NULL');\n\t\t $stmt->execute();\n\t\t $contentList = array();\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $contentList[$row['id']] = $row;\n\t\t }\n\n\t\t return ($contentList);\n\t }", "title": "" }, { "docid": "ad53bbd393a9dae1efd1d068313fd79e", "score": "0.56003875", "text": "public function show_tables():array\n{ \n\n // Check if tables already retrieved\nif (count($this->tables) > 0) { \n return $this->tables;\n }\n\n // Get tables\n $result = $this->query(\"SHOW TABLES\");\n while ($row = $this->fetch_array($result)) { \n $this->tables[] = $row[0];\n }\n\n // Return\n return $this->tables;\n\n}", "title": "" }, { "docid": "5c56f10c9d7f75ef14348400b6551a91", "score": "0.55746907", "text": "protected function getDatabaseTables(){\n\t\t$p = parent::$PDO->prepare(\"SHOW TABLES\");\n\t\t$p->execute();\n\t\t$rows = $p->fetchAll(\\PDO::FETCH_ASSOC);\n\t\t$tables = [];\n\t\tforeach($rows as $r){\n\t\t\t$tables[] = array_values($r)[0];\n\t\t}\n\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "befd406ce38015ab6a151b1163e56339", "score": "0.5568456", "text": "public function get_tables($usecache=true) {\n $tables = array();\n $prefix = str_replace('_', \"\\\\_\", strtoupper($this->prefix));\n $sql = \"SELECT TABLE_NAME\n FROM CAT\n WHERE TABLE_TYPE='TABLE'\n AND TABLE_NAME NOT LIKE 'BIN\\$%'\n AND TABLE_NAME LIKE '$prefix%' ESCAPE '\\\\'\";\n $this->query_start($sql, null, SQL_QUERY_AUX);\n $stmt = $this->parse_query($sql);\n $result = oci_execute($stmt);\n $this->query_end($result, $stmt);\n $records = null;\n oci_fetch_all($stmt, $records, 0, -1, OCI_ASSOC);\n oci_free_statement($stmt);\n $records = array_map('strtolower', $records['TABLE_NAME']);\n foreach ($records as $tablename) {\n if (strpos($tablename, $this->prefix) !== 0) {\n continue;\n }\n $tablename = substr($tablename, strlen($this->prefix));\n $tables[$tablename] = $tablename;\n }\n\n return $tables;\n }", "title": "" }, { "docid": "eaa8e0ca4f79e9b31a434ae8b97a1d59", "score": "0.553445", "text": "public function _debug_get_tables() {\n\t\treturn $this->tables->get();\n\t}", "title": "" }, { "docid": "40ab30e5f15c96df8f9ebca39e996cda", "score": "0.5534277", "text": "function getAllCache($prefix = '')\n{\n $prefix = strtolower($prefix);\n $out = array();\n if (defined('USE_REDIS')) {\n global $redisConnection;\n if (!isset($redisConnection)) {\n $redisConnection = new Redis();\n $redisConnection->pconnect(USE_REDIS);\n }\n $list = $redisConnection->getKeys($prefix . \"*\");\n foreach ($list as $key1)\n $out[$key1] = $redisConnection->get($key1);\n } else $out = SQLExec(\"select * from cached_values where KEYWORD like '$prefix%'\");\n return $out;\n}", "title": "" }, { "docid": "4cd5c8adb5ce7d253d2f2498b661c461", "score": "0.5527972", "text": "protected function getTableArray() {\n\t\t\treturn $this->tableArray;\n\t\t}", "title": "" }, { "docid": "9dfd3bfe38f9c3a8146c0aec02f9e4a9", "score": "0.5521523", "text": "public function getTables() {\n\t\tforeach ($this->database->query('SHOW TABLE STATUS;')->fetchAll(\\PDO::FETCH_NUM) as $t) $this->tables[] = new \\Bruha\\Utils\\Object\\Table($t[0], $t[17] ?: NULL, []);\n\t\tforeach ($this->tables as $t) $t->columns = $this->getColumns($t->name);\n\t\tforeach ($this->tables as $t) {\n\t\t\t$hasPK = FALSE;\n\t\t\tforeach ($t->columns as $c) foreach ($c->keys as $k) {\n\t\t\t\tif ($k instanceof \\Bruha\\Utils\\Object\\Key\\PrimaryKey) $hasPK = TRUE;\n\t\t\t\tif ($k instanceof \\Bruha\\Utils\\Object\\Key\\ForeignKey) $k->value = $this->getColumnForeignKeyValue($k);\n\t\t\t}\n\t\t\t$t->state = $hasPK ? \\Utils\\Constants::TABLE_STATE_OK : \\Utils\\Constants::TABLE_STATE_ERROR_NO_PRIMARY_OR_UNIQUE_KEY;\n\t\t}\n\t\treturn $this->tables;\n\t}", "title": "" }, { "docid": "8a6fe7a96640139352c1ed8c9ab8e368", "score": "0.55084777", "text": "public function getAll() {\n\t\treturn $this->getCache()->getAll();\n\t}", "title": "" }, { "docid": "4a8439c9607b0377ccaf73a295851069", "score": "0.5502944", "text": "public static function retrieveTables(): array\n {\n // initialize singleton\n if (! isset(self::$schemaManagerTables)) {\n self::$schemaManagerTables = self::getSchemaManager()->listTables();\n }\n\n return self::$schemaManagerTables;\n }", "title": "" }, { "docid": "74516407afae0471d7ced1b9401b29d4", "score": "0.54922175", "text": "function getTables() {\n $tables = array();\n\n $result = $this->mysqli->query(\"SHOW TABLES\");\n\n for ($i=0;$i<$result->num_rows;$i++) {\n $row = $result->fetch_array(MYSQLI_BOTH);\n $tables[] = $row[0];\n }\n\n return $tables;\n }", "title": "" }, { "docid": "3159ef3a6874e2704cbab96774c4cd49", "score": "0.5491071", "text": "public function getTableList() {\n\n $stmt = $this->pdo->query(\"SELECT name\n FROM sqlite_master\n WHERE type = 'table'\n ORDER BY name\");\n $tables = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $tables[] = $row['name'];\n }\n\n return $tables;\n }", "title": "" }, { "docid": "6d41313ec6e6daef49a971bc76128d73", "score": "0.5477203", "text": "public static function getAllCached(): array\n {\n return static::$_cachedTrees;\n }", "title": "" }, { "docid": "ebd3f1f5a09150ebb52ef8e1e17c5f4f", "score": "0.54717475", "text": "public function tables() {\n\t\t$tables = array();\n\n\t\tif ($query = $this->execute('SHOW TABLES', $this->_startLoadTime())) {\n\t\t\twhile ($table = $this->fetchAll($query)) {\n\t\t\t\t$tables[] = $table['Tables_in_' . $this->_db['database']];\n\t\t\t}\n\t\t}\n\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "176d9cd8af7a0a188fbc0586c6d0bafc", "score": "0.54707485", "text": "public function getCache()\n {\n if (is_null($this->cacheList)) {\n $response = $this->guzzleClient->get('https://cdn.ampproject.org/caches.json');\n $body = $response->getBody();\n\n $data = json_decode($body);\n if ($data) {\n $this->cacheList = $data->caches;\n }\n }\n\n return $this->cacheList;\n }", "title": "" }, { "docid": "08a9b520458f28f173d599186ce98206", "score": "0.5469712", "text": "public function fetchAll() :array \n {\n $rawData = file_get_contents(self::JSON_DIR . $this->file);\n\n $rawData = json_decode($rawData, true);\n\n $rows = $rawData[$this->table];\n\n return $rows;\n }", "title": "" }, { "docid": "46abe7b74753c7dbdad7b3c86c0841c6", "score": "0.54691327", "text": "function getAllRows() {\n\t\t$rows = array();\n\t\t$orderBy = ($this->table == 'devices') ? ' ORDER BY `name`': '';\n\t\t$query = sprintf('SELECT * FROM `%s`%s', $this->table, $orderBy);\n\t\t$this->history[] = $query;\n\t\t$result = $this->db->query($query);\n\t\tif (!$result) return $this->errorHandler();\n\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t$rows[] = $row;\n\t\t}\n\t\t$result->free();\n\t\treturn $rows;\n\t}", "title": "" }, { "docid": "877c6f1bb5cf8ecf9b764ef1edf11536", "score": "0.5462955", "text": "protected function load_tables(){\r\n\r\n $tables = array();\r\n $this->sql(\"show tables\");\r\n $result = $this->run();\r\n\r\n /// push tables into table array\r\n if(!is_bool($result)){\r\n while($row = mysqli_fetch_assoc($result)) {\r\n foreach($row as $base=>$table){\r\n array_push($this->tables,$table);\r\n }\r\n }\r\n }\r\n\r\n}", "title": "" }, { "docid": "50170eba7665f0dcaad97d039fee422e", "score": "0.54533887", "text": "function find_all_xml_tables()\n{\n\t$skip=array('group_category_access','gsp','seo_meta','sessions','ip_country','f_moderator_logs','download_logging','url_title_cache','cached_comcode_pages','stats','import_id_remap','import_parts_done','import_session','cache','cache_on','blocks','modules','addons','addon_dependencies','db_meta','db_meta_indices','adminlogs','autosave','translate','translate_history');\n\t$all_tables=$GLOBALS['SITE_DB']->query_select('db_meta',array('DISTINCT m_table'));\n\t$tables=array();\n\tforeach ($all_tables as $table)\n\t{\n\t\tif (!in_array($table['m_table'],$skip)) $tables[]=$table['m_table'];\n\t}\n\treturn $tables;\n}", "title": "" }, { "docid": "2da17e0a33d0e5c850bbb03a42dadd9c", "score": "0.5440914", "text": "function ErasableTableList(){\r\n $rowResponse = array();\r\n try { \r\n $command \t= $this->db->createCommand(\"SELECT i.tabla,i.alias\"\r\n . \" FROM \".TABLE_PREFIX.\"import_data i\"\r\n . \" WHERE eliminable =1 ;\");\r\n $recordSet \t= $command->query(); \r\n while(($rowRecordset = $recordSet->read())!==false)\t\t\t\t\r\n\t\t{\r\n $rowResponse[$rowRecordset['alias']] = $rowRecordset['alias'];\r\n\t\t}\r\n \r\n return $rowResponse;\r\n } catch (Exception $e) {\r\n Yii::app()->getModule('massdataupload')->components['massdataevents']->registerLog('-1','fx:ErasableTableList',$e->getMessage());\r\n }\r\n }", "title": "" }, { "docid": "ccfbbaa454ba33abc6f6519403ad79c1", "score": "0.5437576", "text": "public function getAllTables() \n {\n \t$descriptors = array();\n return $descriptors;\n }", "title": "" }, { "docid": "4a2a46b68204848cd53f70cfb0eecd36", "score": "0.543707", "text": "public function allTables()\n {\n $tables_arr = [];\n $database = $this->factory->database();\n $loop_all_table = $this->selectLoop(\"TABLE_NAME\", \"INFORMATION_SCHEMA.TABLES\", \"TABLE_SCHEMA = '$database' AND TABLE_TYPE = 'BASE TABLE' ORDER BY TABLE_NAME ASC\");\n if (count($loop_all_table) > 0) {\n foreach ($loop_all_table as $tbl) {\n $tables_arr[] = $tbl[0];\n }\n }\n\n return $tables_arr;\n }", "title": "" }, { "docid": "1354e20eed8a7cfffdc2ca6a43aafc09", "score": "0.5433752", "text": "public static function getTables() {\n\t\t$rows = self::query(\"SHOW TABLES;\")->fetchAll(PDO::FETCH_COLUMN, 0);\n\t\t$tables = array();\n\t\tforeach($rows as $table) {\n\t\t\t$tables[$table] = $table;\n\t\t}\n\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "efed6cf0b34a6424eef5ce6ed406ed54", "score": "0.54260993", "text": "public function fetch_data($table){\n\t\t$sql = \"SELECT * FROM \".$table;\n\t\t$array = array();\n\t\t$query = mysqli_query($this->con,$sql);\n\t\twhile($row = mysqli_fetch_assoc($query)){\n\t\t\t$array[] = $row;\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "0e1d039036c64211f31890e209f67032", "score": "0.54244727", "text": "public function getTableList()\n {\n\n $stmt = $this->pdo->query(\"SELECT name\n FROM sqlite_master\n WHERE type = 'table'\n ORDER BY name\");\n $tables = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $tables[] = $row['name'];\n }\n\n return $tables;\n }", "title": "" }, { "docid": "a1cbf3646cf4e9e7968d7379855dc113", "score": "0.54231876", "text": "function get_crud_tables()\n{\n $return = [\n 'modules' => [],\n 'tables' => []\n ];\n foreach (['domains', 'pdns'] as $module) {\n if (isset($GLOBALS[$module.'_dbh'])) {\n $dbh = $GLOBALS[$module.'_dbh'];\n $dbName = $dbh->database;\n $return['modules'][$module] = $dbh;\n $return['tables'][$module] = [];\n $dbh->query(\"show full tables where Table_Type='BASE TABLE'\", __LINE__, __FILE__);\n while ($dbh->next_record(MYSQL_ASSOC)) {\n $table = $dbh->Record['Tables_in_'.$dbName];\n $type = $dbh->Record['Table_type'];\n $return['tables'][$module][] = $table;\n }\n }\n }\n return $return;\n}", "title": "" }, { "docid": "eb4eb8cbc28de0f6951a4dc973991b79", "score": "0.5421575", "text": "public function getCacheAdapter();", "title": "" }, { "docid": "366e27ba4fccb970667c2dae4dafc52c", "score": "0.5418495", "text": "public function getArray() {\r\n $data = $this->getData();\r\n $d = array();\r\n foreach ( $data as $item ) {\r\n $d[] = $item->db->get();\r\n }\r\n return $d;\r\n }", "title": "" }, { "docid": "ab3b8133901e4a0afdef567d842422c0", "score": "0.54106015", "text": "function getTables()\n {\n static $tables;\n\n if (is_array($tables))\n {\n return $tables;\n }\n\n $tables = array ();\n\n $table_rates = 'discounts_global_discount_rates_table';\n $tables[$table_rates] = array();\n $tables[$table_rates]['columns'] = array\n (\n 'id' => $table_rates.'.discounts_rate_id'\n ,'rv_from' => $table_rates.'.discounts_rate_value_from'\n ,'rv_to' => $table_rates.'.discounts_rate_value_to'\n ,'cost_type_id' => $table_rates.'.discounts_rate_cost_type_id'\n ,'cost' => $table_rates.'.discounts_rate_cost'\n ,'b_active' => $table_rates.'.discounts_rate_b_active'\n );\n $tables[$table_rates]['types'] = array\n (\n 'id' => DBQUERY_FIELD_TYPE_INT .' NOT NULL auto_increment'\n ,'rv_from' => DBQUERY_FIELD_TYPE_FLOAT\n ,'rv_to' => DBQUERY_FIELD_TYPE_FLOAT\n ,'cost_type_id' => DBQUERY_FIELD_TYPE_INT .' NOT NULL DEFAULT 1' //1 - CURRENCY, 2 - PERCENT\n ,'cost' => DBQUERY_FIELD_TYPE_FLOAT\n ,'b_active' => DBQUERY_FIELD_TYPE_INT .' NOT NULL DEFAULT 1' //1 - YES, 2 - NO\n );\n $tables[$table_rates]['primary'] = array\n (\n 'id'\n );\n $tables[$table_rates]['indexes'] = array\n (\n 'IDX_rv_from' => 'rv_from'\n ,'IDX_rv_to' => 'rv_to'\n );\n\n $settings = 'discounts_settings';\n $tables[$settings] = array();\n $tables[$settings]['columns'] = array\n (\n 'id' => $settings.'.discounts_setting_id'\n ,'key' => $settings.'.discounts_setting_key'\n ,'value' => $settings.'.discounts_setting_value'\n );\n $tables[$settings]['types'] = array\n (\n 'id' => DBQUERY_FIELD_TYPE_INT .' NOT NULL auto_increment'\n ,'key' => DBQUERY_FIELD_TYPE_CHAR50\n ,'value' => DBQUERY_FIELD_TYPE_CHAR255\n );\n $tables[$settings]['primary'] = array\n (\n 'id'\n );\n\n global $application;\n return $application->addTablePrefix($tables);\n }", "title": "" }, { "docid": "40f385c99c41fad563ee85daba2cb4bc", "score": "0.540762", "text": "public static function getTables() {\n }", "title": "" }, { "docid": "01e836fbba63137a5933aafe4dbf12bc", "score": "0.5406614", "text": "protected function _getCaches()\n\t{\n\t\t$this->_objects = array();\n\n\t\t$i = 1;\n\t\tforeach ($this->_config as $key => $aCache)\n\t\t{\n\t\t\t$oCache_Entity = $this->_objects[$i] = $this->_newObject();\n\n\t\t\t$oCache_Entity->setTableColums(array(\n\t\t\t\t'id' => array(),\n\t\t\t\t'name' => array(),\n\t\t\t\t'key' => array(),\n\t\t\t));\n\n\t\t\t$oCache_Entity->id = $i;\n\t\t\t$oCache_Entity->name = $aCache['name'];\n\t\t\t$oCache_Entity->key = $key;\n\n\t\t\t$i++;\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "48737aa6905c82db562c9d0b98906520", "score": "0.54057443", "text": "public function cacheTable($table)\n\t{\n\t\tif ( !isset($this->_cache[$table]) ) {\n\t\t\t$this->_cache[$table] = array();\n\t\t}\n\t}", "title": "" }, { "docid": "64bb68185a90a187e11588a48b5b6ed8", "score": "0.54014", "text": "public function getSettingsFromDatabase(): array {\n $query = 'SELECT `data`\n FROM {' . $this->connection->escapeTable('config') . '} \n WHERE `name` = :name\n LIMIT 1';\n $params = [':name' => 'phpfastcache.settings'];\n $result = $this->connection->query($query, $params);\n\n return (array) unserialize($result->fetchField(), ['allowed_classes' => FALSE]);\n }", "title": "" }, { "docid": "d19d333efc9f87533c881b81b6624037", "score": "0.53993", "text": "function getTables()\n {\n static $tables;\n\n if (is_array($tables))\n {\n return $tables;\n }\n\n $tables = array ();\n\n $settings = 'pm_all_inactive_settings';\n $tables[$settings] = array();\n $tables[$settings]['columns'] = array\n (\n 'id' => $settings.'.pm_all_inactive_setting_id'\n ,'key' => $settings.'.pm_all_inactive_setting_key'\n ,'value' => $settings.'.pm_all_inactive_setting_value'\n );\n $tables[$settings]['types'] = array\n (\n 'id' => DBQUERY_FIELD_TYPE_INT .' NOT NULL auto_increment'\n ,'key' => DBQUERY_FIELD_TYPE_CHAR50\n ,'value' => DBQUERY_FIELD_TYPE_CHAR255\n );\n $tables[$settings]['primary'] = array\n (\n 'id'\n );\n\n global $application;\n return $application->addTablePrefix($tables);\n }", "title": "" }, { "docid": "ab7dacf2117c5621518f3f60570efaad", "score": "0.538797", "text": "public function getRecordsList(){\n\t$queryresult = Array ();\n\t$this->data['RecoredsList'] = Array ();\n\n\n\t$queryresult = $this->dbQuery(' SELECT link.link,page.id,page.mime FROM link,page WHERE link.page_id=page.id');\n\t\n\tforeach ($queryresult as $record){\n\t\n\tarray_push($this->data['RecoredsList'],array('name'=>ucfirst($record['link']),'extension'=>$record['mime'],'source'=>'db','id'=>$record['id']));\n\t}\n\t\t\n\treturn $this->data['RecoredsList'];\n\t\n\t}", "title": "" }, { "docid": "8a0d66c39bc1c58b33eff41e4c713716", "score": "0.5386701", "text": "public function getTables()\n\t{\n\t}", "title": "" }, { "docid": "873f1f784f9a5b337d9e851bc49b2bde", "score": "0.53856844", "text": "public function getInfoTables();", "title": "" }, { "docid": "7d627dd6ebfe1d883e6b2922a7af1193", "score": "0.5381253", "text": "public static function get_tables() {\n\t\tglobal $wpdb;\n\n\t\t$tables = array(\n\t\t\t\"{$wpdb->prefix}evf_entries\",\n\t\t\t\"{$wpdb->prefix}evf_entrymeta\",\n\t\t\t\"{$wpdb->prefix}evf_sessions\",\n\t\t);\n\n\t\treturn $tables;\n\t}", "title": "" }, { "docid": "ac710ff59528e90fd951ea5f46aee727", "score": "0.5380225", "text": "public function getTables()\n {\n $select = $this->_tables->select();\n $category = $this->_tables->prepareStatementForSqlObject($select);\n $return = $category->execute();\n\n //to loop more the one time through the var\n $resultSet = new ResultSet();\n $resultSet->initialize($return);\n $return = $resultSet->toArray();\n\n return $return;\n }", "title": "" }, { "docid": "ded1b45f082ab500d6ad3e433aba0aba", "score": "0.53794855", "text": "public function getAllTables() {\n $statement = 'select * from sig_tabelas';\n //echo $statement; exit;\n $q = $this->db->query($statement);\n // $q = $this->db->get('SHOW TABLES');\n if ($q->num_rows() > 0) {\n foreach (($q->result()) as $row) {\n $data[] = $row;\n }\n return $data;\n }\n return FALSE;\n }", "title": "" }, { "docid": "2d704ab6d84aedb30b27cf8363044945", "score": "0.5375149", "text": "public function getAllCites () {\n $stmt = $this->prepare(\"SELECT content,source FROM comments WHERE type=2\");\n $stmt->execute(array());\n $result = array();\n $result['cl'] = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $stmt = $this->prepare(\"SELECT content,source FROM comments WHERE type=4\");\n $stmt->execute(array());\n $result = array();\n $result['t'] = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $result;\n }", "title": "" }, { "docid": "90ee7bddac0b0a484aa073ecab441719", "score": "0.5363656", "text": "function getTablesInfo($module, $pidDataModel){\n $q = $module->query(\"SELECT * FROM `redcap_events_arms` WHERE project_id = ?\",[$pidDataModel]);\n $dataTable = array();\n while ($row = $q->fetch_assoc()){\n $qTable = $module->query(\"SELECT * FROM `redcap_events_metadata` WHERE arm_id = ?\",[$row['arm_id']]);\n while ($rowTable = $qTable->fetch_assoc()){\n $dataTable = \\Vanderbilt\\HarmonistHubExternalModule\\generateTableArray($module, $pidDataModel, $dataTable);\n }\n }\n return $dataTable;\n}", "title": "" }, { "docid": "c8e97a465252a427552c75aebf0b141a", "score": "0.5360149", "text": "function listaCache(){\r\n\r\n\t\t// Se houverem arquivos de cache\r\n\t\tif ($listaCache = opendir($this->dir)) {\r\n\r\n\t\t\t//Define a variável para armazenar os caches ativos\r\n\t\t\t$caches_ativos = array();\r\n\r\n\t\t // Passa por todos os arquivos encontrados \r\n\t\t while (false !== ($arq = readdir($listaCache))) {\r\n\t\t \t\r\n\t \t// Recupera os 4 últimos caracteres do nome do arquivo\r\n\t\t $ultCar = substr($arq, -4); \r\n\t\t \r\n\t\t // Se o arquivo a ser incluído for do tipo PHP\r\n\t\t if ( $ultCar == \".php\" ) {\r\n\r\n\t\t \t//Define os dados de retorno\r\n\t\t \t$retorno[\"nome\"] = $arq;\r\n\r\n\t\t \t//Armazena os dados de retorno\r\n\t\t \tarray_push($caches_ativos,$retorno);\r\n\t \t\t\r\n\t \t\t}\r\n\r\n\t\t }\r\n\t\t \r\n\t\t // Fecha a listagem do diretório \r\n\t\t closedir($listaCache);\r\n\r\n\t\t return $caches_ativos;\r\n\t\t\r\n\t\t}else{\r\n\r\n\t\t\treturn false;\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "c7b8f5c5afdb49aad1fd197241ebdd27", "score": "0.53556836", "text": "function get_table_list(){\n global $conn;\n\n $list = [];\n $query_select_tables_name = \"SELECT table_name FROM information_schema.tables WHERE table_type = 'base table'\n and table_schema = '\" . constant('DB_NAME') . \"' and table_name != 'user'\";\n $query_rs = mysqli_query($conn, $query_select_tables_name);\n\n while ($row = mysqli_fetch_assoc($query_rs)) {\n $list[] = $row['table_name'];\n }\n\n return $list;\n}", "title": "" }, { "docid": "d3626e35a17a955be4b03a0cd22cf7bf", "score": "0.535531", "text": "public function fetch($table){\n $query = \"SELECT * FROM \".$table;\n $array = array();\n $result = mysqli_query($this->con, $query);\n while($row = mysqli_fetch_assoc($result)){\n $array[] = $row;\n }\n return $array;\n }", "title": "" }, { "docid": "dbed296eb29f94c6567d1460792576c5", "score": "0.53505737", "text": "public function getUsedTables();", "title": "" }, { "docid": "0b09247d24ab258a469288b7d6d74a11", "score": "0.53441256", "text": "function get_table_array($table_name,$id=null)\n{\n\n $CI =& get_instance();\n if(!empty($id))\n {\n $CI->db->where('id',$id);\n }\n $result = $CI->db->get($table_name)->row_array();\n return $result;\n}", "title": "" }, { "docid": "46d8b86c9572bcf23fe0ca062696b326", "score": "0.53440785", "text": "public function getTables() {\n\n\t \t\t return $this->tables;\n\t }", "title": "" }, { "docid": "4032fc3f597a4f878a6542dfb95ee4ce", "score": "0.53397423", "text": "public function reset_caches() {\n\t\t$emptied = [];\n\t\tforeach ( array_keys( $this->caches ) as $key ) {\n\t\t\t$emptied[] = $key;\n\t\t\t$this->{\"{$key}_cache\"} = [];\n\t\t}\n\n\t\treturn $emptied;\n\t}", "title": "" }, { "docid": "9cd626ce2a11aa7c04f25385eb1d43a3", "score": "0.5335705", "text": "function get_table($name) {\n\t// Open the database connection\n\t$db = db_open ();\n\t\n\t// Query the database\n\t$stmt = $db->prepare ( \"SELECT * FROM `$name` ORDER BY value\" );\n\t$stmt->execute ();\n\t\n\t// Store the list in the array\n\t$array = $stmt->fetchAll ();\n\t\n\t// Close the database connection\n\tdb_close ( $db );\n\t\n\treturn $array;\n}", "title": "" }, { "docid": "fe490577509a05a9449833ec5161863a", "score": "0.5335147", "text": "public function getdata($table){\n\n $result = $this->db->conn->query(\"SELECT * FROM {$table}\");\n\n $resultArray = array();\n\n while( $item = mysqli_fetch_array($result,MYSQLI_ASSOC)){\n\n $resultArray[] = $item;\n }\n\n return $resultArray;\n\n }", "title": "" }, { "docid": "a44e09a0491d561861f63857eae9eed7", "score": "0.5335092", "text": "public function getAllTable(){\n\t\t$sql = \"SELECT table_name FROM all_tables\";\n\t\t$query = $this->db_oracle->query($sql);\n\t\treturn $query->result_array();\n\t}", "title": "" }, { "docid": "f6cf93a4b961dbebd43d56ec1187aa20", "score": "0.53315043", "text": "function db_tables($metac, $db) {\n $dbs = db_query($metac, \"SELECT table_name FROM tables WHERE table_schema = '$db' ORDER BY 1\");\n \n return array_map(function($a) { return $a[0]; }, $dbs[1]);\n}", "title": "" }, { "docid": "951afdceba912bd6e3f4f1739e28c590", "score": "0.5331142", "text": "public function getOptimizeTables() {\n\t\t$db = JFactory::getDBO();\n\t\t$csvilog = JRequest::getVar('csvilog');\n\t\t$tables = array();\n\t\t$tables[] = '#__csvi_available_fields';\n\t\t$tables[] = '#__csvi_template_fields';\n\t\t$tables[] = '#__csvi_template_types';\n\t\t$tables[] = '#__csvi_templates';\n\t\t$tables[] = '#__csvi_logs';\n\t\t$tables[] = '#__csvi_log_details';\n\t\t$tables[] = '#__vm_product';\n\t\t$tables[] = '#__vm_product_price';\n\t\t$tables[] = '#__vm_product_mf_xref';\n\t\t$tables[] = '#__vm_product_attribute';\n\t\t$tables[] = '#__vm_category';\n\t\t$tables[] = '#__vm_category_xref';\n\t\t$tables[] = '#__vm_product_attribute_sku';\n\t\t$tables[] = '#__vm_product_category_xref';\n\t\t$tables[] = '#__vm_product_discount';\n\t\t$tables[] = '#__vm_product_type';\n\t\t$tables[] = '#__vm_product_type_parameter';\n\t\t$tables[] = '#__vm_product_product_type_xref';\n\t\t$tables[] = '#__vm_product_relations';\n\t\t$tables[] = '#__vm_manufacturer';\n\t\t\n\t\tforeach ($tables as $id => $tablename) {\n\t\t\tJRequest::setVar('currentline', JRequest::getInt('currentline', 0)+1);\n\t\t\t$q = \"OPTIMIZE TABLE \".$tablename;\n\t\t\t$db->setQuery($q);\n\t\t\tif ($db->query()) $csvilog->AddStats('information', JText::_('Table has been optimized').' '.substr($tablename, 3));\n\t\t\telse $csvilog->AddStats('incorrect', JText::_('Table has not been optimized').' '.substr($tablename,3));\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ebb54f65dcb5fcf12371c5149159cf81", "score": "0.532699", "text": "public function readAll() : array\n {\n $result = $this->db->query('SELECT * FROM ' . $this->tablename);\n\n return $this->readQuery($result);\n }", "title": "" }, { "docid": "0b97b917ef0bfc898f5fe40f38444d36", "score": "0.5321801", "text": "public function showTables() {\r\n \t$table = array();\r\n \t\r\n \tif ($this->db_type == 'sqlite') \r\n \t $sql = \"select tbl_name from sqlite_master;\"; \r\n \telse \r\n $sql = \"show tables;\"; \r\n \r\n try {\r\n $record = $this->conn->query($sql)->fetchAll(PDO::FETCH_NUM); //->fetchAll(PDO::FETCH_ASSOC);\r\n $this->lastquery_status = \"ok\"; \r\n }\r\n catch (PDOException $e) {\r\n \t$this->errorInfo = $this->conn->errorInfo(); \t\r\n \t$this->lastquery_status = $e->getMessage();\t\r\n }\r\n \r\n $this->lastquery_results = count($record);\r\n \r\n foreach ($record as $value)\r\n $table[] = $value[0];\r\n \r\n if ($this->lastquery_results==1)\r\n return $table[0]; // dereference from 0, so their code looks prettier\r\n else\r\n return $table; \t\r\n \r\n }", "title": "" } ]
25771b07751b50032ea4efa803f2ccfa
Empty form so we can have the default override title.
[ { "docid": "f7a9862fe3a2a3c9c3eae573707aa519", "score": "0.0", "text": "function dgu_search_dgu_search_form_content_type_edit_form($form, &$form_state) {\n $config = $form_state['conf'];\n $form['content_type'] = array(\n //'#prefix' => '<div class=\"container-inline\">',\n '#type' => 'select',\n '#title' => t('Content Type to search for'),\n '#options' => array(\n 'all' => t('All'),\n 'app' => t('Apps'),\n 'blog' => t('Blogs'),\n 'forum' => t('Forum topics'),\n 'resource' => t('Library resources'),\n 'dataset_request' => t('Dataset requests'),\n ),\n '#default_value' => $config['content_type'],\n );\n\n $form['show_counter'] = array(\n '#type' => 'checkbox',\n '#title' => t('Add search result counter'),\n '#default_value' => $config['show_counter'],\n );\n\n return $form;\n}", "title": "" } ]
[ { "docid": "733baae0474d3786e9c003b41ee8e13f", "score": "0.71231127", "text": "public function form_settings_page_title() {\r\n\t\treturn '';\r\n\t}", "title": "" }, { "docid": "52af1012b8620bc861af5581561fc1c7", "score": "0.6793233", "text": "public function default()\n {\n $this->title = '';\n $this->body = '';\n $this->view = 'create';\n }", "title": "" }, { "docid": "2c56ee523e370a1f3677eab444161320", "score": "0.66508937", "text": "public function form() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "aec5bddc342d5f7cef9d73e68b78a621", "score": "0.663017", "text": "private function resetInputFields(){\n $this->title = '';\n $this->original_url = '';\n $this->platform_id = '';\n }", "title": "" }, { "docid": "46498c6bbbc7e6e9fa43dabdcca86b30", "score": "0.65873885", "text": "public function reset_form(){\n\t\t\t$this->form = \"\";\n\t\t}", "title": "" }, { "docid": "ad9a399a48905029ffb1204325d37e2f", "score": "0.64912385", "text": "public function getDefaultTitle();", "title": "" }, { "docid": "0b320ce62da6d95959eacc6b41e06ed3", "score": "0.64338684", "text": "public function getDefaultTitle()\n {\n return false;\n }", "title": "" }, { "docid": "ea562a6e5de14acb2b9a5882043cb363", "score": "0.63605785", "text": "protected function form()\n\t{\n\t\tparent::form();\n\n\t\tif ( \\IPS\\Request::i()->id )\n\t\t{\n\t\t\t\\IPS\\Output::i()->title = \\IPS\\Member::loggedIn()->language()->addToStack('edit_category') . ': ' . \\IPS\\Output::i()->title;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\\IPS\\Output::i()->title = \\IPS\\Member::loggedIn()->language()->addToStack('add_category');\n\t\t}\n\t}", "title": "" }, { "docid": "29d1eb6a37de9bf5891c3b5b4ef4fa2d", "score": "0.6328491", "text": "public function newForm()\n {\n $this->pageTitle = \"Création d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n parent::newForm();\n }", "title": "" }, { "docid": "81c666d903df6f40f50bd0780b20a743", "score": "0.6296778", "text": "abstract public function getDefaultTitle();", "title": "" }, { "docid": "d602f4a1f4ef558df77dd19580de556a", "score": "0.62691313", "text": "public function emptyForm() {\n\t\techo '<div class=\"alert fail\"><span class=\"btnclose\">&times;</span><strong>Tous les champs sont obligatoires !</strong></div>';\n\t}", "title": "" }, { "docid": "98d504503aff91676c231e82d0b5b255", "score": "0.6238478", "text": "public function resetForm()\n {\n return;\n }", "title": "" }, { "docid": "ff69df99987df60c35e349ad5eef1255", "score": "0.62230164", "text": "function setup_gravity_form_options() {\r\n\t\tif ( !$this->is_plugin_active() ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$forms = RGFormsModel::get_forms(null, 'title');\r\n\r\n\t\tif ( !is_array($forms) || empty($forms) ) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t$options = array(\r\n\t\t\t'0' => __('No form', 'crb'),\r\n\t\t);\r\n\r\n\t\tforeach ($forms as $form) {\r\n\t\t\t$options[$form->id] = $form->title;\r\n\t\t}\r\n\r\n\t\t$this->set_options($options);\r\n\t}", "title": "" }, { "docid": "19b9fb4345f3efd2ae1b651a6ae4658b", "score": "0.62140405", "text": "function mod_contact7_form_title( $template ) {\n\t$template->set_title( 'Contact Pages Form' );\n return $template;\n}", "title": "" }, { "docid": "a3981d97df775a1cd57fc93ae3304192", "score": "0.6186165", "text": "public function form ($instance)\n {\n $this->the_option ($instance, 'title', __ ('Title', DOMAIN), __ ('New title', DOMAIN));\n }", "title": "" }, { "docid": "e34ff70257bf6fb5751b0ad5a5b58bfc", "score": "0.6176845", "text": "public function form($instance)\n {\n ?>\n <br />\n <p class=\"description\"><?php echo \"This widget contains no options.\"; ?></p>\n <?php\n }", "title": "" }, { "docid": "ae592f9fc8552def98a62bdb39e51070", "score": "0.6162829", "text": "public function get_form_defaults();", "title": "" }, { "docid": "623c8a62fe8517630481e976c1755132", "score": "0.61282265", "text": "function form_content(){\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "78ccee29fa6f2576e72a1e2243d6cdb7", "score": "0.6125258", "text": "function edit_form_after_title(){\r\n \r\n echo '<div class=\"notice notice-warning inline\"><p>' . __('You are currently editing a Dynamic Template.', 'acfe') . '</p></div>';\r\n \r\n }", "title": "" }, { "docid": "69ad4f217cedd878cc17f611c873bab9", "score": "0.61229014", "text": "function options_form(&$form, &$form_state) {\n $form['label'] = array(\n '#type' => 'textfield',\n '#title' => t('Label'),\n '#default_value' => isset($this->options['label']) ? $this->options['label'] : '',\n '#description' => t('The label for this field that will be displayed to end users if the style requires it.'),\n );\n }", "title": "" }, { "docid": "7a2ff61375b285e7b3842da876afbef2", "score": "0.6107546", "text": "public function renderDefault()\r\n {\r\n $formGraphsSettings = $this['formGraphsSettings'];\r\n // prefill form with stored data\r\n $fields = Storage::getInstance()->getStoredFields();\r\n foreach ($fields as $field => $props) {\r\n if (in_array('graph', $props['classes']))\r\n $formGraphsSettings[$field]->setValue(true);\r\n }\r\n\r\n }", "title": "" }, { "docid": "98a4a1dfd2f7ad21e4739065b06542c1", "score": "0.6099881", "text": "function mod_contact7_form_title( $template ) {\n\t$template->set_title( 'Pedamuse Contact' );\n\treturn $template;\n}", "title": "" }, { "docid": "5ba42bae535565e0288b6f31b0b33087", "score": "0.607657", "text": "function _setFormDef()\n {\n return parent::_setFormDef();\n }", "title": "" }, { "docid": "5ae4521167d3af7e75747b4dd7787b19", "score": "0.60751355", "text": "function acf_form_head() { }", "title": "" }, { "docid": "4e89df4df379e4b927be40bb4591f68c", "score": "0.59995824", "text": "protected function createForm()\n {\n // to be customised in sub classes\n return null;\n }", "title": "" }, { "docid": "ce39cc19b59ae0d2a5e86501335b7bb7", "score": "0.5993731", "text": "public function headingCreateAction() {\n parent::headingCreateAction();\n\n //GENERATE FORM\n $form = $this->view->form;\n\n if ($form) {\n $form->removeElement('show');\n $form->addElement('hidden', 'show', array('value' => 0, 'order' => '1000'));\n\n $form->removeElement('display');\n $form->addElement('hidden', 'display', array('value' => 1, 'order' => '1001'));\n }\n }", "title": "" }, { "docid": "ac59a2502d279f7f3bf0d81e395d5e64", "score": "0.59788793", "text": "public function clearForm()\n {\n $this->name = '';\n $this->price = '';\n $this->detail = '';\n $this->status = 1;\n }", "title": "" }, { "docid": "9faaf0f2ccdc997130e19281004c5bf6", "score": "0.5953869", "text": "public function form($instance){\r\n\textract($instance);\r\n\t//widget configuration\r\n\t?>\r\n\t<p>\r\n\t\t<label for=\"<?php echo $this->get_field_id('title'); ?>\"> Title : </label>\r\n\t\t<input id=\"<?php echo $this->get_field_id('title'); ?>\"\r\n\t\t\t\tname=\"<?php echo $this->get_field_name('title'); ?>\"\r\n\t\t\t\tvalue =\"<?php echo !empty($title) ? $title : ''; ?>\"\r\n\t\t/>\r\n<?php\r\n \r\n}", "title": "" }, { "docid": "b228e8262cf3693406262de32998e302", "score": "0.5937524", "text": "public function CreateForm() {\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "5073ce75a2aed24ae208035ff1954945", "score": "0.59295464", "text": "function labourhire_form_search_block_form_alter(&$form, &$form_state, $form_id) {\n\t$form['search_block_form']['#attributes']['placeholder'] = t('Search'); \n\t$form['actions']['submit']['#value'] = t(''); // Change the text on the submit button\n\t\n}", "title": "" }, { "docid": "f4f951409357ac4d05fa786fd43d0159", "score": "0.5908938", "text": "public function field_menu_title() { ?>\n\n\t\t<p>\n\t\t\t<input type=\"text\" class=\"regular-text\" name=\"knowledgebase_settings[knowledgebase_item_archive_title]\" id=\"knowledgebase_settings-knowledgebase_item_archive_title\" value=\"<?php echo esc_attr( $this->settings['knowledgebase_item_archive_title'] ); ?>\" />\n\t\t</p>\n\t<?php }", "title": "" }, { "docid": "d1bb96c1a930c629a54822e197360d14", "score": "0.58930665", "text": "function tsm_do_acf_form_head() {\r\n\tif ( !bp_is_group() || !is_user_logged_in() || !current_user_can('edit_posts') || bp_is_current_action( 'create' ) ) {\r\n\t\treturn;\r\n\t}\r\n\tacf_form_head();\r\n}", "title": "" }, { "docid": "13040c3f8deee08af8b995ba72876d30", "score": "0.5891076", "text": "function lafco_micro_form_alter(&$form, &$form_state, $form_id) {\n if ('opensanmateo_search_header_search_form' == $form_id) {\n $form['search']['#attributes']['placeholder'] = 'Search';\n }\n}", "title": "" }, { "docid": "d4a5f33691a9fbb85ce188aab5919bdc", "score": "0.5858845", "text": "protected function Form_Create() {\n\n $this->simpleMessage = new QLabel($this);\n $this->simpleMessage->Text = '<h1>Welcome to QCubed setup project page.</h1> This page you can use as startup of a new project <br/>';\n $this->simpleMessage->HtmlEntities= false;\n }", "title": "" }, { "docid": "4fa7f9f61009922767ccbd4f79e459b6", "score": "0.58438295", "text": "function widget_logic_empty_control() {}", "title": "" }, { "docid": "dd1d1ba65d2c5548d44883ce7ab37d16", "score": "0.5840859", "text": "protected final function _titlePrefixEditOptions()\r\n {\r\n }", "title": "" }, { "docid": "8288714184cb233ed2b39aec79dd0dc8", "score": "0.58401304", "text": "public function title_callback()\n {\n printf(\n '<input type=\"text\" id=\"title\" name=\"my_option_name[title]\" value=\"%s\" />',\n isset( $this->options['title'] ) ? esc_attr( $this->options['title']) : ''\n );\n submit_button();\n }", "title": "" }, { "docid": "1a9762ebd9557c96f6fa61c16cf03f33", "score": "0.58290505", "text": "private function resetInputFields()\n {\n $this->name = '';\n $this->parent_id = '';\n $this->slug = '';\n $this->category_id = '';\n }", "title": "" }, { "docid": "f96adc4a3d3c70b7162a65e698979632", "score": "0.5820678", "text": "protected final function _titlePrefixEdit()\r\n {\r\n }", "title": "" }, { "docid": "eb984f44d203b843a3e25eb928de0f88", "score": "0.5809616", "text": "private function resetInputFields(){\n $this->name = '';\n }", "title": "" }, { "docid": "4081e6b32d267e34c2118fd1fc1e557f", "score": "0.58070725", "text": "public function alternate_title_meta_box() {\n\n rbm_fh_do_field_text( array(\n 'name' => 'alternate_title',\n 'group' => 'downloads_alternate_title',\n 'label' => __( 'Alternate Title', 'rbp-downloads-fields' ),\n 'description' => __( 'This will override the shown Download Title at the top of the page', 'rbp-downloads-fields' ),\n ) );\n\n rbm_fh_init_field_group( 'downloads_alternate_title' );\n\n }", "title": "" }, { "docid": "b2ecc9dfc15ae74e835496a2853d7a9e", "score": "0.5804231", "text": "function page_manager_handler_clone(&$form, &$form_state) {\n // This provides its own button because it does something totally different.\n $form['title'] = array(\n '#type' => 'textfield',\n '#title' => t('Variant name'),\n '#description' => t('Enter the name of the new variant.'),\n );\n}", "title": "" }, { "docid": "e144d511b280759e4513bd737d9bb704", "score": "0.5802163", "text": "public function setDefaultTitle($title) {\n\t\t$this->_defaultTitle = $title;\n\t}", "title": "" }, { "docid": "c5509c1a1096d9b6d6bca5e3ab8276c8", "score": "0.5794164", "text": "public function form($instance) {\n echo '<p><strong>No options for this Widget!</strong><br>' .\n 'You can control the fields of this Widget from <a href=\"./admin.php?page=sunset_theme\">This Page</a></p>';\n }", "title": "" }, { "docid": "5ac2a0866be20eaf3f9d90de96fbfcf5", "score": "0.5790962", "text": "function filter_form( $form, $args ) {\n $form['display']['description'] = 'New form description';\n \n return $form;\n }", "title": "" }, { "docid": "cc7b0a44723727f87fd9ac6031f70387", "score": "0.5787029", "text": "function form( $instance ) {\r\r\n $defaults = array( 'title' => __('Practice Areas', 'lawyeria') );\r\r\n $instance = wp_parse_args( (array) $instance, $defaults ); ?>\r\r\n\r\r\n <p>\r\r\n <label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e('Titlee:', 'lawyeria'); ?></label>\r\r\n <input id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" value=\"<?php if( !empty($instance['title']) ): echo $instance['title']; endif; ?>\" style=\"width:100%;\" />\r\r\n </p>\r\r\n\r\r\n <?php\r\r\n }", "title": "" }, { "docid": "6908bfecee340d9462f5387e096c7258", "score": "0.5784443", "text": "public function setDefaultViewOptions()\n\t{\n\t\tparent::setDefaultViewOptions();\n\t\tif (!isset($this->model->term_code)){\n\t\t\t$this->model->term_code = Term::currentTermCode();\n\t\t}\n\t\t//echo 'tc: ' . $this->model->term_code;\n\t\t$model = $this->model;\n\t\t$this->viewOptions['menuView']='../layouts/_userMenu';\n\t\t$this->viewOptions['title']=\"($model->username) $model->first_name $model->last_name\";\n\t\tif (!$model->username || $model->username ==''){\n\t\t\t$this->viewOptions['title'] = \"Users\";\n\t\t\tif ($model->term_code){\n\t\t\t\t//$term=Term::model()->findByPk($model->term_code);\n\t\t\t\t//$this->viewOptions['title'] = $term->description;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7c5e1cb452f185068a3a745ee7a37aa1", "score": "0.5782096", "text": "function content_user_links_content_type_edit_form($form, &$form_state) {\n // Provide a blank form so we have a place to have context setting.\n return $form;\n}", "title": "" }, { "docid": "241569d6c3baafe5726aabb596f06358", "score": "0.5778715", "text": "function form($instance) {\n $title = esc_attr($instance['title']);\n\n require('widgets/menu/menu-fields.php');\n }", "title": "" }, { "docid": "aa6ab4c7ad15700ec8bc7a3d7b4fc86e", "score": "0.57776", "text": "function definition_inner(&$mform) {\n // By default, do nothing.\n }", "title": "" }, { "docid": "c8c3794c79125d7745f4317539d77562", "score": "0.57729214", "text": "public function initialize() {\n $this->tag->setTitle('Desenvolvendo novas Tecnologias para você');\n parent::initialize();\n }", "title": "" }, { "docid": "0d2ba64ebe39f71dadb4376154bdbbca", "score": "0.5765907", "text": "function form( $instance ) {\n\t\textract( $instance );\n\t\t?>\n\t\t<p>\n\t\t\t<label for=\"<?php echo esc_attr( $this->get_field_id( 'placeholder' ) ); ?>\"> <?php esc_html_e( 'Title:',\n\t\t\t\t\t'rentit' ); ?></label>\n\t\t\t<input class=\"widefat\" id=\"<?php echo esc_attr( $this->get_field_id( 'placeholder' ) ); ?>\"\n\t\t\t name=\"<?php echo esc_attr( $this->get_field_name( 'placeholder' ) ); ?>\" type=\"text\"\n\t\t\t value=\"<?php if ( isset( $title ) ) {\n\t\t\t\t echo esc_attr( $title );\n\t\t\t } ?>\">\n\t\t</p>\n\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "920aa0a72d19f36208927b76df4511df", "score": "0.5753778", "text": "function options_form(&$form, &$form_state) {\n parent::options_form($form, $form_state);\n }", "title": "" }, { "docid": "200651f8b07578a7d7d3bb2159618b9c", "score": "0.5751359", "text": "function form( $instance ){\n\t\t$defaults = array(\n\t\t\t'title' => 'Default Title!!!',\n\t\t\t//add more fields here\n\t\t);\n\t\t//apply the defaults\n\t\t$instance = wp_parse_args( (array) $instance, $defaults );\n\n\t\t//HTML for the form\n\t\t?>\n\t\t<p>\n\t\t\t<label>Title:</label>\n\t\t\t<input type=\"text\" class=\"widefat\" \n\t\t\tname=\"<?php echo $this->get_field_name('title'); ?>\" \n\t\t\tid=\"<?php echo $this->get_field_id('title'); ?>\" \n\t\t\tvalue=\"<?php echo $instance['title']; ?>\">\n\t\t</p>\n\t\t<?php\n\t}", "title": "" }, { "docid": "76a9b2cdb9286d501ef276fbed065a84", "score": "0.57492006", "text": "function phptemplate_search_theme_form($form) {\n $output = '';\n\n //$form['search_theme_form']['#title'] = t('Website Search');\n unset($form['search_theme_form']['#title']);\n $form['search_theme_form']['#value'] = t('Keyword Search');\n\n $form['submit']['#value'] = t(' ');\n\n $output .= drupal_render($form);\n\n return $output;\n}", "title": "" }, { "docid": "840c924b8fa212e37168ca0c0f3ac437", "score": "0.5741997", "text": "function form( $instance ) {\n\t\tif ( $instance ) {\n\t\t\t$title = esc_attr( $instance[ 'title' ] );\n\t\t}\n\t\telse {\n\t\t\t$title = __( 'New title', 'text_domain' );\n\t\t}\n\t\t?>\n\t\t<p>\n\t\t\t<label for=\"<?php echo $this->get_field_id('title'); ?>\"><?php _e('Title:'); ?></label> \n\t\t\t<input class=\"widefat\" id=\"<?php echo $this->get_field_id('title'); ?>\" name=\"<?php echo $this->get_field_name('title'); ?>\" type=\"text\" value=\"<?php echo $title; ?>\" />\n\t\t\t<input type=\"radio\" name=\"<?php echo $this->get_field_name( 'bookstore' ); ?>\" value=\"Bokus\" <?php if ( 'Bokus' == $instance['bookstore'] ) echo 'checked=\"checked\"'; ?> />Bokus<br/>\n\t\t\t<input type=\"radio\" name=\"<?php echo $this->get_field_name( 'bookstore' ); ?>\" value=\"Amazon\" <?php if ( 'Amazon' == $instance['bookstore'] ) echo 'checked=\"checked\"'; ?> />Amazon<br/>\n\t\t</p>\n\t\t<?php \n\t}", "title": "" }, { "docid": "0b83802a12b321c134af8bb6e2a18591", "score": "0.57326037", "text": "function edit_form_after_title() {\n\n\t\t\t// globals\n\t\t\tglobal $post, $wp_meta_boxes;\n\n\t\t\t// render post data\n\t\t\tacf_form_data(\n\t\t\t\tarray(\n\t\t\t\t\t'screen' => 'post',\n\t\t\t\t\t'post_id' => $post->ID,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// render 'acf_after_title' metaboxes\n\t\t\tdo_meta_boxes( get_current_screen(), 'acf_after_title', $post );\n\n\t\t\t// render dynamic field group style\n\t\t\techo '<style type=\"text/css\" id=\"acf-style\">' . $this->style . '</style>';\n\t\t}", "title": "" }, { "docid": "8c9a6a71e28c2f9d08f63064622395dd", "score": "0.5728517", "text": "public function addHoneyPotFieldBlank()\n {\n echo '<div class=\"fake-hide\"><input class=\"hidden\" name=\"'.$this->field_name.'_bl\" type=\"text\" value=\"\" size=\"30\" autocomplete=\"off\" tabIndex=\"-1\"></div>';\n }", "title": "" }, { "docid": "4a0bf4b9c471cd40e046c4403842e11a", "score": "0.5718964", "text": "function Limpiar()\n {\n reset($this->controls->items);\n while(list($key, $val) = each($this->controls->items))\n {\n if($val->inheritsFrom(\"Edit\"))\n {\n $val->Text = \"\";\n }\n }\n $this->mmnuevo->Text = '';\n //$this->mmhistorial->Text = '';\n $this->lblhistorial->Caption = '';\n }", "title": "" }, { "docid": "9bd448daef3795c2cb9e49120f8a16ba", "score": "0.5715487", "text": "function addForm()\n {\n $this->getState()->template = 'displayprofile-form-add';\n }", "title": "" }, { "docid": "1270bd491aeaafd710fab5b138018d2d", "score": "0.5707749", "text": "private function injectDefault(XMLElement &$form) {\n\t\t\t$fieldset = new XMLElement('fieldset', null, array('class' => 'settings'));\n\t\t\t$fieldset->appendChild(\n\t\t\t\tnew XMLElement('legend', __('Default Values'))\n\t\t\t);\n\n\t\t\t$div = new XMLElement('div', null);\n\t\t\t$div->appendChild(\n\t\t\t\tnew XMLElement('p', __('Default values can be set after this event has been created.'), array('class' => 'label'))\n\t\t\t);\n\n\t\t\t$fieldset->appendChild($div);\n\t\t\t$form->insertChildAt(1, $fieldset);\n\t\t}", "title": "" }, { "docid": "cb8659598f79bfb919d6de1482c54e09", "score": "0.5705125", "text": "public function testApplicationFormTitle()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit(new ApplicationFormPage)\n ->element('body>h1');\n });\n }", "title": "" }, { "docid": "b279983168fbb9f142d1a7e9590da36d", "score": "0.5694904", "text": "abstract public function _form();", "title": "" }, { "docid": "b44c2d15b778b0b4f4e77bbae2dba1fe", "score": "0.56942564", "text": "public function initForm($context)\r\n {\r\n $this->form_textfield(\"Text\",\"headline\",300);\r\n }", "title": "" }, { "docid": "03ad37f049cf771ad67dbb516212c07f", "score": "0.5693957", "text": "public function form( $instance ) {\n if ( isset( $instance[ 'title' ] ) ) {\n $title = $instance[ 'title' ];\n }\n else {\n $title = __( 'New title', 'text_domain' );\n }\n ?>\n <p>\n <label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e( 'Title:' ); ?></label> \n <input class=\"widefat\" id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $title ); ?>\" />\n </p>\n <?php \n }", "title": "" }, { "docid": "990723570d2c94012e19fb6822ae25e6", "score": "0.5692394", "text": "function isEmptyForm()\n {\n return $this->_empty_form;\n }", "title": "" }, { "docid": "38bac4bd6d3c440d7109f90528c4c8f8", "score": "0.569046", "text": "function form($instance) {\n // make sure the plugin is already installed, if not add link to the settings page\n $komoona_username = get_option($this->__type . '_username');\n $komoona_layout = get_option($this->__type . '_komoona_tag');\n if(strlen($komoona_username) == 0 && strlen($komoona_layout) == 0) :\n $settings_link = sprintf('<a href=\"options-general.php?page=%s_options\">settings page</a>', $this->__type); \n ?>\n <p><span style=\"font-weight:bold;line-height: 140%;display:block;\"><?php _e('Your plugin is not configured yet.', 'komoona'); ?></span><br/><?php _e('Please go to the plugin', 'komoona'); ?> <?php echo $settings_link; ?><?php _e(' to start using the plugin', 'komoona'); ?></p>\n <?php else:\n $title = esc_attr($instance['title']); ?>\n <p>\n <label for=\"<?php echo $this->get_field_id('title'); ?>\"><?php _e('Title:'); ?></label>\n <input class=\"widefat\" id=\"<?php echo $this->get_field_id('title'); ?>\" name=\"<?php echo $this->get_field_name('title'); ?>\" type=\"text\" value=\"<?php echo $title; ?>\" />\n </p>\n <?php endif;\n }", "title": "" }, { "docid": "24596d5d525591df9b2ce965c1a72c8c", "score": "0.5688674", "text": "protected function setFormDefaults()\n {\n $defaults = array();\n \n if ($this->workspace instanceof Workspace)\n {\n $defaults[Workspace::PROPERTY_NAME] = $this->workspace->getName();\n $defaults[Workspace::PROPERTY_DESCRIPTION] = $this->workspace->getDescription();\n }\n \n $this->setDefaults($defaults);\n }", "title": "" }, { "docid": "c7351315b49186bd4634f043f8c05562", "score": "0.5684636", "text": "public function getDefaultActionName()\n {\n return 'eki.block.controller.form_block:form';\n }", "title": "" }, { "docid": "e07452d8f35d9dc55e934984beb9e8df", "score": "0.56774855", "text": "private static function makeHead()\n {\n print self::$formHeader = \"<form id=\". self::$_this->formSettings['id'] .\" action=\". self::$_this->formSettings['action'] .\" \". self::$css .\" \". self::$autocomplete .\">\";\n }", "title": "" }, { "docid": "cc080f64bc6fa4a39d6eef1e648a85a0", "score": "0.5671381", "text": "public function getDefaultTitle()\n {\n return $this->title;\n }", "title": "" }, { "docid": "0e6fbeda2992a72615ebf2693c2d5d67", "score": "0.56698734", "text": "public function newForm(){\n $this->pageTitle = \"Ajout d'une Question\";\n $this->tid= $_GET['tid'];\n $this->pid= $_GET['pid'];\n parent::newForm();\n }", "title": "" }, { "docid": "a87ea51f94bed57b99133f3e4847e4e9", "score": "0.56672883", "text": "protected function _construct()\n {\n parent::_construct();\n $this->setTemplate('gri/cms/page/version/form.phtml');\n }", "title": "" }, { "docid": "1da6261621b623f595fc2f8518547f67", "score": "0.5662374", "text": "public function add_meta_title_fields() {\n global $wp_query, $post;\n\n $value = get_post_meta(get_the_ID(), '_global_notice', true);\n if ($value) {\n echo '<meta name=\"robots\" content=\"noindex\"/>', \"\\n\";\n }\n }", "title": "" }, { "docid": "4f5baf7c51fcb8cb4ded4fcbf3ba4503", "score": "0.5661453", "text": "public function render_title()\n\t{\n\t\t$output = '';\n\t\t\n\t\t// Get the screen icon (this is necessary becuase WordPress only echos it)\n\t\tob_start();\n\t\tob_implicit_flush(false);\n\t\tscreen_icon();\n\t\t$output .= ob_get_clean();\n\n\t\t// Add a title to the form page\n\t\t$output .= '<h2>' . $this->_model->title . '</h2>';\n\t\t\n\t\t$this->return_or_echo( $output );\n\t}", "title": "" }, { "docid": "8444e5f435b8594db16f52b0d0344ef0", "score": "0.5656977", "text": "public static function titleNotProvided(): self\n {\n return new static('Button title was not provided, A 20 character limited title should be provided.');\n }", "title": "" }, { "docid": "071b6ef4d2fd31b2da865ed7b44a2ef0", "score": "0.5656489", "text": "protected function prepareHeadForm(ModelForm $form)\r\n {\r\n $this->output = \"<form name='input' action='{$form->getAction()}' method='{$form->getMethod()}'>\";\r\n }", "title": "" }, { "docid": "c297badf05734418ad78a8073d92abc1", "score": "0.5654935", "text": "public function getDefaultFrontendLabel();", "title": "" }, { "docid": "0386a4e6a138f934c483f8b7037a8353", "score": "0.5653365", "text": "public function renderPlaceholderFormAction() {\n return [\n '#type' => 'markup',\n '#markup' => $this->buildFormAction(),\n '#cache' => ['contexts' => ['url.path', 'url.query_args']],\n ];\n }", "title": "" }, { "docid": "31146da373886acd3a2461f811f944e9", "score": "0.5634901", "text": "function form( $instance ) {\n\n\t// combine provided fields with defaults\n\t$instance = wp_parse_args( (array) $instance, array( 'title' => __('Sub Pages','highthemes') ) );\n\t$title = strip_tags($instance['title']);\n\t\n\t\n\t// print the form fields\n?>\n\t<p><label for=\"<?php echo $this->get_field_id('title'); ?>\">\n\t<?php _e('Title:','highthemes'); ?></label>\n\t<input class=\"widefat\" id=\"<?php echo $this->get_field_id('title'); ?>\" name=\"<?php echo $this->get_field_name('title'); ?>\" type=\"text\" value=\"<?php echo\n\t\tesc_attr($title); ?>\" /></p>\n \n\n\t<?php\n\t}", "title": "" }, { "docid": "505f538056c89ee23402dff46f633773", "score": "0.56337476", "text": "function __construct($name, $title, $className = \"\", $allowHTML = false, $form = null) {\n\t\t$this->labelName = $name;\n\t\tparent::__construct($title, $className, $allowHTML, $form);\n\t}", "title": "" }, { "docid": "ad93955e7a75262d2540cfabc57fa400", "score": "0.5633531", "text": "public function buildForm()\n {\n $this\n ->addNarrative('title')\n ->addAddMoreButton('add_title', 'title');\n }", "title": "" }, { "docid": "7819207fafb545aa2446c06d46b448d1", "score": "0.5630675", "text": "protected function setTitle()\n\t{\n\t\t// The title is currently optional.\n\t\tif (isset($this->listOptions['title']))\n\t\t{\n\t\t\t$this->context['title'] = $this->listOptions['title'];\n\n\t\t\t// And the icon is optional for the title\n\t\t\tif (isset($this->listOptions['icon']))\n\t\t\t{\n\t\t\t\t$this->context['icon'] = $this->listOptions['icon'];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2df614024382b8dbea19e8e4419eb2ec", "score": "0.5627447", "text": "function aller_linkedin_pane_content_type_edit_form($form, &$form_state) {\n $conf = $form_state['conf'];\n $form['linkedin_username'] = array(\n '#type' => 'textfield',\n '#title' => t('LinkedIn username'),\n '#size' => 50,\n '#description' => t('A valid LinkedIn username.'),\n '#default_value' => !empty($conf['linkedin_username']) ? $conf['linkedin_username'] : 'buytaert',\n );\n // no submit\n return $form;\n}", "title": "" }, { "docid": "b41c03194da33a97d25567998f8de12d", "score": "0.5623828", "text": "public function createFormView()\n {\n return null;\n }", "title": "" }, { "docid": "6f84164b33b6f9cee74197c01f028445", "score": "0.5623363", "text": "function skeleton_form_search_block_form_alter(&$form, &$form_state, $form_id) {\r\n\t\r\n\t$form['search_block_form']['#title'] = t(''); // Change the text on the label element\r\n\t$form['search_block_form']['#attributes']['placeholder'] = t('Search'); \r\n\t$form['actions']['submit']['#value'] = t('Go'); // Change the text on the submit button\r\n\t#$form['actions']['submit'] = array('#type' => 'image_button', '#src' => base_path() . path_to_theme() . '/images/searchicon.png');\r\n}", "title": "" }, { "docid": "1272f05f8266b06346d6eb51ec51516b", "score": "0.56202984", "text": "public function form( $instance ) {\nif ( isset( $instance[ 'title' ] ) ) {\n$title = $instance[ 'title' ];\n}\nelse {\n$title = __( 'New title', 'wpb_widget_domain' );\n}\n// Widget admin form\n?>\n<p>\n<label for=\"<?php echo $this->get_field_id( 'title' ); ?>\"><?php _e( 'Title:' ); ?></label> \n<input class=\"widefat\" id=\"<?php echo $this->get_field_id( 'title' ); ?>\" name=\"<?php echo $this->get_field_name( 'title' ); ?>\" type=\"text\" value=\"<?php echo esc_attr( $title ); ?>\" />\n</p>\n<?php \n}", "title": "" }, { "docid": "faf96399870b327a51ed83de4ffe0009", "score": "0.56188637", "text": "public function get_title() {\n\n\t\treturn __( 'WPForms', 'wpforms-lite' );\n\t}", "title": "" }, { "docid": "6ad88910ffb1f940e34d260479dbc5eb", "score": "0.5615741", "text": "protected function getFormObjectName() {\n\t\treturn '';\n\t}", "title": "" }, { "docid": "0796426f0a23b59e43f0b1c091ff2ecc", "score": "0.56025606", "text": "abstract public function createForm();", "title": "" }, { "docid": "f65c519e895abfa450a321a97f0ee80e", "score": "0.55943304", "text": "function placeholder_form()\n{\n require_css('forms');\n\n $text = '<p>(A form would go here.)</p>';\n if (function_exists('ocp_mark_as_escaped')) {\n ocp_mark_as_escaped($text);\n }\n return make_string_tempcode($text);\n}", "title": "" }, { "docid": "0d5683c3ca80dac6f7c25252b45849d2", "score": "0.5589351", "text": "public function form($data) {\n\t\t$defaults = array(\n\t\t\t'title' => null,\n\t\t\t'twitter_limit' => null\n\t\t);\n\t\t$data = array_merge($defaults, $data);\n\t\tparent::form($data);\n\t}", "title": "" }, { "docid": "9f952ff1d2b05204228acdd857506495", "score": "0.5589163", "text": "function datacatalog_datasearch_form_clear($form, &$form_state) {\n unset ($form_state['values']);\n // Ensures the reset button removes the new_name button.\n unset ($form_state['storage']);\n // Setting $form_state['rebuild'] = TRUE causes the default submit\n // function to be skipped and the form to be rebuilt.\n\n $form_state['rebuild'] = TRUE;\n}", "title": "" }, { "docid": "d20b54b9631ef90bb6905943058c8b95", "score": "0.5588935", "text": "private function loadForm(): void\n {\n $defaultDomains = [str_replace(['http://', 'www.', 'https://'], '', SITE_URL)];\n\n // create form\n $this->form = new BackendForm('settingsIndex');\n\n // general settings\n $this->form->addText(\n 'site_title',\n $this->get('fork.settings')->get('Core', 'site_title_' . BL::getWorkingLanguage(), SITE_DEFAULT_TITLE)\n );\n\n // Google tracking settings\n $googleTrackingAnalyticsTrackingId = $this->get('fork.settings')->get(\n 'Core',\n 'google_tracking_google_analytics_tracking_id',\n $this->get('fork.settings')->get('Analytics', 'web_property_id', '')\n );\n $this->form->addCheckbox(\n 'google_tracking_google_analytics_tracking_id_enabled',\n ($googleTrackingAnalyticsTrackingId !== '')\n );\n $googleTrackingAnalyticsTrackingIdField = $this->form->addText(\n 'google_tracking_google_analytics_tracking_id',\n $googleTrackingAnalyticsTrackingId\n );\n if ($googleTrackingAnalyticsTrackingId === '') {\n $googleTrackingAnalyticsTrackingIdField->setAttribute('disabled', 'disabled');\n }\n\n $googleTrackingTagManagerContainerId = $this->get('fork.settings')->get(\n 'Core',\n 'google_tracking_google_tag_manager_container_id',\n ''\n );\n $this->form->addCheckbox(\n 'google_tracking_google_tag_manager_container_id_enabled',\n ($googleTrackingTagManagerContainerId !== '')\n );\n $googleTrackingTagManagerContainerIdField = $this->form->addText(\n 'google_tracking_google_tag_manager_container_id',\n $googleTrackingTagManagerContainerId\n );\n if ($googleTrackingTagManagerContainerId === '') {\n $googleTrackingTagManagerContainerIdField->setAttribute('disabled', 'disabled');\n }\n\n // @deprecated fallback to site_html_header as this was used in the past.\n $siteHtmlHeadValue = $this->get('fork.settings')->get(\n 'Core',\n 'site_html_head',\n $this->get('fork.settings')->get('Core', 'site_html_header', null)\n );\n $this->form->addTextarea(\n 'site_html_head',\n $siteHtmlHeadValue,\n 'form-control code',\n 'form-control danger code',\n true\n );\n $siteHtmlStartOfBodyValue = $this->get('fork.settings')->get(\n 'Core',\n 'site_html_start_of_body',\n $this->get('fork.settings')->get('Core', 'site_start_of_body_scripts', null)\n );\n $this->form->addTextarea(\n 'site_html_start_of_body',\n $siteHtmlStartOfBodyValue,\n 'form-control code',\n 'form-control danger code',\n true\n );\n $siteHtmlEndOfBodyValue = $this->get('fork.settings')->get(\n 'Core',\n 'site_html_end_of_body',\n $this->get('fork.settings')->get('Core', 'site_html_footer', null)\n );\n $this->form->addTextarea(\n 'site_html_end_of_body',\n $siteHtmlEndOfBodyValue,\n 'form-control code',\n 'form-control danger code',\n true\n );\n $this->form->addTextarea(\n 'site_domains',\n implode(\"\\n\", (array) $this->get('fork.settings')->get('Core', 'site_domains', $defaultDomains)),\n 'form-control code',\n 'form-control danger code'\n );\n\n // facebook settings\n // @deprecated remove this in Fork 6, facebook_admin_ids / facebook_app_id / facebook_app_secret should be removed\n $this->form->addText('facebook_admin_ids', $this->get('fork.settings')->get('Core', 'facebook_admin_ids', null));\n $this->form->addText('facebook_application_id', $this->get('fork.settings')->get('Core', 'facebook_app_id', null));\n $this->form->addText(\n 'facebook_application_secret',\n $this->get('fork.settings')->get('Core', 'facebook_app_secret', null)\n );\n\n // twitter settings\n $this->form->addText(\n 'twitter_site_name',\n ltrim($this->get('fork.settings')->get('Core', 'twitter_site_name', null), '@')\n );\n\n // ckfinder\n $this->form->addText(\n 'ckfinder_license_name',\n $this->get('fork.settings')->get('Core', 'ckfinder_license_name', null)\n );\n $this->form->addText(\n 'ckfinder_license_key',\n $this->get('fork.settings')->get('Core', 'ckfinder_license_key', null)\n );\n $this->form->addText(\n 'ckfinder_image_max_width',\n $this->get('fork.settings')->get('Core', 'ckfinder_image_max_width', 1600)\n );\n $this->form->addText(\n 'ckfinder_image_max_height',\n $this->get('fork.settings')->get('Core', 'ckfinder_image_max_height', 1200)\n );\n\n // date & time formats\n $this->form->addDropdown(\n 'time_format',\n BackendModel::getTimeFormats(),\n $this->get('fork.settings')->get('Core', 'time_format')\n );\n $this->form->addDropdown(\n 'date_format_short',\n BackendModel::getDateFormatsShort(),\n $this->get('fork.settings')->get('Core', 'date_format_short')\n );\n $this->form->addDropdown(\n 'date_format_long',\n BackendModel::getDateFormatsLong(),\n $this->get('fork.settings')->get('Core', 'date_format_long')\n );\n\n // number formats\n $this->form->addDropdown(\n 'number_format',\n BackendModel::getNumberFormats(),\n $this->get('fork.settings')->get('Core', 'number_format')\n );\n\n // google recaptcha\n $googleRecaptchaVersions = [\n [\n 'value' => 'v2invisible',\n 'label' => SpoonFilter::ucfirst(BL::lbl('GoogleRecaptchaV2Invisible')),\n ],\n [\n 'value' => 'v3',\n 'label' => SpoonFilter::ucfirst(BL::lbl('GoogleRecaptchaV3')),\n ],\n ];\n $this->form->addRadiobutton(\n 'google_recaptcha_version',\n $googleRecaptchaVersions,\n $this->get('fork.settings')->get('Core', 'google_recaptcha_version', 'v2invisible')\n );\n\n $activeLanguages = [];\n $redirectLanguages = [];\n\n // create a list of the languages\n foreach ($this->get('fork.settings')->get('Core', 'languages', ['en']) as $abbreviation) {\n // is this the default language\n $defaultLanguage = $abbreviation === SITE_DEFAULT_LANGUAGE;\n\n // attributes\n $activeAttributes = [];\n $activeAttributes['id'] = 'active_language_' . $abbreviation;\n $redirectAttributes = [];\n $redirectAttributes['id'] = 'redirect_language_' . $abbreviation;\n\n // fetch label\n $label = BL::lbl(mb_strtoupper($abbreviation), 'Core');\n\n // default may not be unselected\n if ($defaultLanguage) {\n // add to attributes\n $activeAttributes['disabled'] = 'disabled';\n $redirectAttributes['disabled'] = 'disabled';\n\n // overrule in $_POST\n if (!isset($_POST['active_languages']) || !is_array($_POST['active_languages'])) {\n $_POST['active_languages'] = [SITE_DEFAULT_LANGUAGE];\n } elseif (!in_array(\n $abbreviation,\n $_POST['active_languages']\n )\n ) {\n $_POST['active_languages'][] = $abbreviation;\n }\n if (!isset($_POST['redirect_languages']) || !is_array($_POST['redirect_languages'])) {\n $_POST['redirect_languages'] = [SITE_DEFAULT_LANGUAGE];\n } elseif (!in_array(\n $abbreviation,\n $_POST['redirect_languages']\n )\n ) {\n $_POST['redirect_languages'][] = $abbreviation;\n }\n }\n\n // add to the list\n $activeLanguages[] = [\n 'label' => $label,\n 'value' => $abbreviation,\n 'attributes' => $activeAttributes,\n 'variables' => ['default' => $defaultLanguage],\n ];\n $redirectLanguages[] = [\n 'label' => $label,\n 'value' => $abbreviation,\n 'attributes' => $redirectAttributes,\n 'variables' => ['default' => $defaultLanguage],\n ];\n }\n\n $hasMultipleLanguages = BackendModel::getContainer()->getParameter('site.multilanguage');\n\n // create multilanguage checkbox\n $this->form->addMultiCheckbox(\n 'active_languages',\n $activeLanguages,\n $this->get('fork.settings')->get('Core', 'active_languages', [$hasMultipleLanguages])\n );\n $this->form->addMultiCheckbox(\n 'redirect_languages',\n $redirectLanguages,\n $this->get('fork.settings')->get('Core', 'redirect_languages', [$hasMultipleLanguages])\n );\n\n // api keys are not required for every module\n if ($this->needsAkismet) {\n $this->form->addText(\n 'akismet_key',\n $this->get('fork.settings')->get('Core', 'akismet_key', null)\n );\n }\n if ($this->needsGoogleMaps) {\n $this->form->addText(\n 'google_maps_key',\n $this->get('fork.settings')->get('Core', 'google_maps_key', null)\n );\n }\n if ($this->needsGoogleRecaptcha) {\n $this->form->addText(\n 'google_recaptcha_site_key',\n $this->get('fork.settings')->get('Core', 'google_recaptcha_site_key', null)\n );\n $this->form->addText(\n 'google_recaptcha_secret_key',\n $this->get('fork.settings')->get('Core', 'google_recaptcha_secret_key', null)\n );\n }\n\n // cookies\n // @deprecated remove this in Fork 6, the privacy consent dialog should be used\n $this->form->addCheckbox('show_cookie_bar', $this->get('fork.settings')->get('Core', 'show_cookie_bar', false));\n\n // privacy\n $this->form->addCheckbox(\n 'show_consent_dialog',\n $this->get('fork.settings')->get('Core', 'show_consent_dialog', false)\n );\n $this->form->addText(\n 'privacy_consent_levels',\n implode(\n ',',\n $this->get('fork.settings')->get(\n 'Core',\n 'privacy_consent_levels',\n []\n )\n )\n );\n }", "title": "" }, { "docid": "2e28f868909835c8ca47be57432f2654", "score": "0.5587925", "text": "public function __construct($title = null) {\n $this->setTitle($title);\n }", "title": "" }, { "docid": "829ef86a3006d5b2791525e1a26b8c17", "score": "0.558128", "text": "public function index_onCreateForm()\n {\n $this->controller->asExtension('FormController')->create();\n $this->vars['title'] = trans($this->getTransString('create_title'));\n\n if(method_exists($this->controller, 'overrideOnCreateFormPartial')){\n return $this->controller->overrideOnCreateFormPartial();\n }\n\n return $this->makePartial('create_form');\n }", "title": "" }, { "docid": "7dd84842dcacd2f15387b1b41e543184", "score": "0.5573074", "text": "public function form( $instance ) {\n \t\t// outputs the options form on admin\n \t\t$title = ! empty($instance['title']) ? $instance['title'] : esc_html__( 'New title', 'text_domain' );\n \t\t?>\n \t\t<p>\n \t\t\t<label for=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\">\n \t\t\t\t<?php esc_attr_e( 'Title:', 'text_domain' ); ?>\n \t\t\t</label>\n \t\t\t<input class=\"widefat\" id=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\"\n \t\t\t\tname=\"<?php echo esc_attr( $this->get_field_name('title') ); ?>\"\n \t\t\t\ttype=\"text\"\n \t\t\t\tvalue=\"<?php echo esc_attr( $title ); ?>\">\n \t\t</p>\n \t\t<?php\n \t}", "title": "" }, { "docid": "22dbad516cce4cc82601ebca861ba697", "score": "0.55716765", "text": "public function form( $instance ) {\n \t\t// outputs the options form on admin\n \t\t$title = ! empty($instance['title']) ? $instance['title'] : esc_html__( 'New title', 'text_domain' );\n \t\t?>\n \t\t<p>\n \t\t\t<label for=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\">\n \t\t\t\t<?php esc_attr_e( 'Title:', 'text_domain' ); ?>\n \t\t\t</label>\n \t\t\t<input class=\"widefat\" id=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\"\n \t\t\t\tname=\"<?php echo esc_attr( $this->get_field_name('title') ); ?>\"\n \t\t\t\ttype=\"text\"\n \t\t\t\tvalue=\"<?php echo esc_attr( $title ); ?>\">\n \t\t</p>\n \t\t<?php\n \t}", "title": "" }, { "docid": "22dbad516cce4cc82601ebca861ba697", "score": "0.55716765", "text": "public function form( $instance ) {\n \t\t// outputs the options form on admin\n \t\t$title = ! empty($instance['title']) ? $instance['title'] : esc_html__( 'New title', 'text_domain' );\n \t\t?>\n \t\t<p>\n \t\t\t<label for=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\">\n \t\t\t\t<?php esc_attr_e( 'Title:', 'text_domain' ); ?>\n \t\t\t</label>\n \t\t\t<input class=\"widefat\" id=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\"\n \t\t\t\tname=\"<?php echo esc_attr( $this->get_field_name('title') ); ?>\"\n \t\t\t\ttype=\"text\"\n \t\t\t\tvalue=\"<?php echo esc_attr( $title ); ?>\">\n \t\t</p>\n \t\t<?php\n \t}", "title": "" }, { "docid": "22dbad516cce4cc82601ebca861ba697", "score": "0.55716765", "text": "public function form( $instance ) {\n \t\t// outputs the options form on admin\n \t\t$title = ! empty($instance['title']) ? $instance['title'] : esc_html__( 'New title', 'text_domain' );\n \t\t?>\n \t\t<p>\n \t\t\t<label for=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\">\n \t\t\t\t<?php esc_attr_e( 'Title:', 'text_domain' ); ?>\n \t\t\t</label>\n \t\t\t<input class=\"widefat\" id=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\"\n \t\t\t\tname=\"<?php echo esc_attr( $this->get_field_name('title') ); ?>\"\n \t\t\t\ttype=\"text\"\n \t\t\t\tvalue=\"<?php echo esc_attr( $title ); ?>\">\n \t\t</p>\n \t\t<?php\n \t}", "title": "" }, { "docid": "22dbad516cce4cc82601ebca861ba697", "score": "0.55716765", "text": "public function form( $instance ) {\n \t\t// outputs the options form on admin\n \t\t$title = ! empty($instance['title']) ? $instance['title'] : esc_html__( 'New title', 'text_domain' );\n \t\t?>\n \t\t<p>\n \t\t\t<label for=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\">\n \t\t\t\t<?php esc_attr_e( 'Title:', 'text_domain' ); ?>\n \t\t\t</label>\n \t\t\t<input class=\"widefat\" id=\"<?php echo esc_attr( $this->get_field_id('title') ); ?>\"\n \t\t\t\tname=\"<?php echo esc_attr( $this->get_field_name('title') ); ?>\"\n \t\t\t\ttype=\"text\"\n \t\t\t\tvalue=\"<?php echo esc_attr( $title ); ?>\">\n \t\t</p>\n \t\t<?php\n \t}", "title": "" } ]
aa7b2e75a08d09d59c19fc868cb3b6f6
Meant to be called in a Controller's init() method to set up what will authenticated.
[ { "docid": "e8e82632356d64513cceb4764deb80e8", "score": "0.0", "text": "protected function authenticate($actions_to_authenticate=null) {\n $this->auth->authenticate($actions_to_authenticate);\n return $this;\n }", "title": "" } ]
[ { "docid": "4de472fcf2a59df0294981c7ad23272e", "score": "0.78476816", "text": "function auth() {\n\t\t\tparent::controller();\n\t\t\t\n\t\t\t# Pre-Auth Check\n\t\t\t$this->auth_data = $this->auth->is_authenticated();\n\t\t\t$this->token_data = $this->auth_data['token_data'];\n\n\t\t\t\n\t\t\tif($this->auth_data['is_authenticated'] == 0)\n\t\t\t\t$this->is_authenticated = 0;\n\t\t\telse\n\t\t\t\t$this->is_authenticated = 1;\n\t\t}", "title": "" }, { "docid": "6dee4b0dcd8b946c20a204ddb3ce0fd5", "score": "0.75227576", "text": "public function init()\r\n {\r\n $this->_flash = $this->_helper->getHelper('FlashMessenger');\r\n if (!Zend_Auth::getInstance()->hasIdentity() \r\n && !in_array($this->_request->getActionName(), array('nologin','success'))) {\r\n $this->_helper->redirector('login','user');\r\n }\r\n $this->owner = Zend_Auth::getInstance()->getIdentity()->id;\r\n }", "title": "" }, { "docid": "3974fb17d287d5bcdb266281a9018a01", "score": "0.7510162", "text": "private function __construct() { \n $this->authenticated = false;\n }", "title": "" }, { "docid": "d62aeb6874353b8f92323ae3dc1b8c53", "score": "0.7404689", "text": "protected function _authenticated()\n {\n }", "title": "" }, { "docid": "c4d8683d21e99d94d70d52e1c36f69c8", "score": "0.7344139", "text": "protected function _init_auth()\n\t{\n\t\t// Initialize session\n\t\t$this->session = Session::instance();\n\t\t\n\t\t// Initialize auth if present\n\t\t$this->auth = Auth::instance();\n\t\t\n\t\t$user = $this->auth->get_user();\n\t\t\n\t\tif ($this->_use_token)\n\t\t{\n\t\t\t// Set the old and new csrf token\n\t\t\t$this->_old_token = $this->session->get('csrf_token');\n\t\t\t$this->_new_token = uniqid();\n\t\t\t\n\t\t\t// Set the new token to session\n\t\t\t$this->session->set('csrf_token', $this->_new_token);\n\t\t}\n\t\t\n\t\t// Set username and csrf token to global view template\n\t\tif ($this->auto_render)\n\t\t{\n\t\t\tView::set_global('csrf_token', $this->_new_token);\n\t\t\t\n\t\t\tif ($user)\n\t\t\t{\n\t\t\t\tView::set_global('current_user', $user->username);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Track visited pages\n\t\t$this->_prev_page = $this->session->get('prev_page');\n\t\t$this->_current_page = $this->request->uri();\n\t\t\n\t\t// Set previous page from the current page\n\t\tif ($this->_track_page)\n\t\t{\n\t\t\t$this->session->set('prev_page', $this->_current_page);\n\t\t}\n\t\t\n\t\t// Redirect to login for unauthenticated users\n\t\tif ($this->_no_auth === FALSE && ! $user)\n\t\t{\n\t\t\tif ($this->_ajax_only)\n\t\t\t{\n\t\t\t\t$this->send_forbidden_headers();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->request->redirect('/login');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "32e154972d2017e22e9d7fae666d38cf", "score": "0.7342428", "text": "function init(){\n parent::init();\n\n // Verify to make sure this controller is used properly\n if (!($this->owner instanceof \\Auth_Basic)) {\n throw $this->exception('Opauth controller must be added into Auth');\n }\n\n $this->owner->opauth=$this;\n\n // creates a page \"auth/<strategy>\" which will automatically log user in\n if($this->route_auth_page){\n $this->api->routePages('auth','romaninsh/opauth');\n }\n\n // Make sure that our \"authenticatino pages\" are not blocked by auth->check()\n $this->owner->addHook('isPageAllowed',function($a,$page){\n if(substr($page,0,4)=='auth')$a->breakHook(true);\n });\n\n $this->owner->allowPage('auth');\n\n // We will store tokens in this model, once authenticated\n $this->setModel($this->model_name);\n\n // Make sure that OPauth model is related to the user model\n if(!$this->model->hasElement('user_id')){\n $this->model->hasOne( get_class($this->owner->model), 'user_id' );\n }\n\n // We want to put icon on the login form for all allowed strategies\n if($this->update_login_form){\n $this->owner->addHook(array('updateForm'),$this);\n }\n }", "title": "" }, { "docid": "3ed8d5250d57f87be7c0758da5d8ad1e", "score": "0.73352265", "text": "public function initialize()\n {\n $auth = $this->session->get('auth');\n foreach ($auth as $key => $value) {\n $this->$key = $value;\n }\n if ($this->user_id) {\n $this->setRoles();\n }\n }", "title": "" }, { "docid": "b4f9de1229032ef279766ecc024845c0", "score": "0.73175347", "text": "public function __construct() {\n\n // always ensure user is authenticated before anything in this controller\n $this->middleware('auth');\n }", "title": "" }, { "docid": "717ba1fd5d168e13c22275d858c8e12f", "score": "0.731599", "text": "public function __construct()\n {\n \t//uncomment this middle ware to allow only specific logged in userr access this resource.\n //$this->middleware(Authenticate::class);\n }", "title": "" }, { "docid": "0c831dd5e61da23e6264d4878de6fe9a", "score": "0.7315467", "text": "public function __construct()\n {\n parent::__construct();\n\n // VERY IMPORTANT: All controllers/areas that should only be usable by logged-in users\n // need this line! Otherwise not-logged in users could do actions. If all of your pages should only\n // be usable by logged-in users: Put this line into libs/Controller->__construct\n Auth::checkAuthentication();\n }", "title": "" }, { "docid": "45d94419f5d21e904e545f87b42fb465", "score": "0.72792095", "text": "public function init()\n {\n parent::init();\n\n // STAGE 3: Choose, create, and optionally update models using business logic.\n $this->authSpace = new Zend_Session_Namespace('auth');\n if ($origRequest = $this->getInvokeArg('origRequest')) {\n $this->view->origPathInfo = $origRequest->getPathInfo();\n }\n }", "title": "" }, { "docid": "38952cee5193fddb0cfd9bb6a08788bf", "score": "0.72753704", "text": "public function init()\n {\n $this->auth = Zend_Auth::getInstance();\n if(!$this->auth->hasIdentity()){\n $this->_redirect('admin/');\n }\n }", "title": "" }, { "docid": "53ed95234823f4ec56ffc5b34c00a2e8", "score": "0.7260606", "text": "public function initialize()\n {\n parent::initialize();\n\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n\n $this->loadComponent('Auth', [\n 'authenticate' => [\n 'Form' => [\n 'fields' => [\n 'username' => 'email',\n 'password' => 'password'\n ]\n ]\n ],\n 'authorize' => ['Controller'],\n 'loginAction' => [\n 'controller' => 'Users',\n 'action' => 'login'\n ],\n 'loginRedirect' => [\n 'controller' => 'users',\n 'action' => 'index'\n ],\n 'logoutRedirect' => [\n 'controller' => 'users',\n 'action' => 'login'\n ],\n // If unauthorized, return them to page they were just on\n 'unauthorizedRedirect' => $this->referer()\n ]);\n $this->Auth->allow(['logout']);\n /*\n * Enable the following components for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n //$this->loadComponent('Security');\n //$this->loadComponent('Csrf');\n }", "title": "" }, { "docid": "077e7e4ab179473ab1c0dbe9fe4dbed6", "score": "0.7208091", "text": "public function __construct()\n {\n $this->isLoggedIn = Auth::check();\n $this->user = Auth::user();\n }", "title": "" }, { "docid": "9e580baf8591097521132e6c974c967c", "score": "0.71997917", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t\n\t\t// before anything is run make sure there is a logged in user\n\t\t$this->beforeFilter('auth');\n\t}", "title": "" }, { "docid": "2759126dad7a831ca5d4dcf11805b1ca", "score": "0.7195206", "text": "public function init() {\n $this->_auth = $auth = TBS\\Auth::getInstance();\n\n }", "title": "" }, { "docid": "f6e25df2755e6ef1d734043cee503fb9", "score": "0.7193269", "text": "public static function initialize()\n {\n // Load the auth config.\n $loaded = Config::file(path('config') . 'auth.php', 'auth');\n\n // If no config was loaded, show an error.\n if (!$loaded)\n {\n exit('Unable to load auth config.');\n }\n\n // Check if we have a user logged in.\n if (\n Session::has('auth.user') &&\n Session::has('auth.authorized')\n )\n {\n static::$authorized = Session::get('auth.authorized');\n static::$user = Session::get('auth.user');\n }\n }", "title": "" }, { "docid": "f83de17e8f9837b947bba7a562fc47b6", "score": "0.7183491", "text": "public function initialize() {\n\t\t$this->loadComponent ( 'Flash' );\n\t\t$this->loadComponent ( 'Auth', [ \n\t\t\t\t'authorize' => [ \n\t\t\t\t\t\t'Controller' \n\t\t\t\t], // Added this line\n\t\t\t\t'loginRedirect' => [ \n\t\t\t\t\t\t'controller' => 'Gears',\n\t\t\t\t\t\t'action' => 'gear' \n\t\t\t\t],\n\t\t\t\t'logoutRedirect' => [ \n\t\t\t\t\t\t'controller' => 'Gears',\n\t\t\t\t\t\t'action' => 'gear',\n\t\t\t\t\t\t'home' \n\t\t\t\t] \n\t\t] );\n\t}", "title": "" }, { "docid": "4121e34c9c45478cf852a734f801ab57", "score": "0.71777016", "text": "public function init() {\r\n //mumin svn test\r\n $sessionNamespace = new Zend_Session_Namespace();\r\n if ($sessionNamespace->loginAuth == true) {\r\n $authDetail = $sessionNamespace->authDetail;\r\n $this->view->authDetail = $authDetail;\r\n }\r\n }", "title": "" }, { "docid": "b00aadad57574ffba0d963fdf76a1823", "score": "0.71702564", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler', [\n 'enableBeforeRedirect' => false,\n ]);\n $this->loadComponent('Flash');\n $this->loadComponent('Paginator');\n\n $this->loadComponent('Cookie', [\n 'encryption' => 'aes',\n 'key' => Configure::read('cookie_key')\n ]);\n $this->Cookie->setConfig([\n 'httpOnly' => true\n ]);\n $this->loadComponent('Recaptcha.Recaptcha');\n\n $this->loadComponent('Auth', [\n 'loginAction' => [\n 'prefix' => false,\n 'controller' => 'Users',\n 'action' => 'login'\n ],\n 'logoutRedirect' => '/',\n 'authenticate' => [\n 'Form' => [\n 'fields' => ['username' => 'email']\n ],\n 'CakeDC/Auth.RememberMe' => [\n 'fields' => ['username' => 'email'],\n 'Cookie' => ['name' => 'CookieAuth']\n ]\n ],\n 'authorize' => ['Controller'],\n 'flash' => [\n 'params' => [\n 'class' => 'danger'\n ]\n ]\n ]);\n $this->Auth->deny();\n $errorMessage = $this->Auth->user() ?\n 'Sorry, you are not authorized to access that page.'\n : 'Please log in before accessing that page.';\n $this->Auth->setConfig('authError', $errorMessage);\n\n if (Configure::read('forceSSL')) {\n $this->loadComponent('Security', ['blackHoleCallback' => 'forceSSL']);\n $this->Security->requireSecure();\n $this->Security->setConfig('validatePost', false);\n }\n }", "title": "" }, { "docid": "fd0afa3e38dba749635581ab2b2d4c2f", "score": "0.7158621", "text": "protected function Init()\n\t{\n\t\tparent::Init();\n\n\t\t// TODO: add controller-wide bootstrap code\n\t\t\n\t\t// TODO: if authentiation is required for this entire controller, for example:\n\t\t// $this->RequirePermission(ExampleUser::$PERMISSION_USER,'SecureExample.LoginForm');\n\t}", "title": "" }, { "docid": "fd0afa3e38dba749635581ab2b2d4c2f", "score": "0.7158621", "text": "protected function Init()\n\t{\n\t\tparent::Init();\n\n\t\t// TODO: add controller-wide bootstrap code\n\t\t\n\t\t// TODO: if authentiation is required for this entire controller, for example:\n\t\t// $this->RequirePermission(ExampleUser::$PERMISSION_USER,'SecureExample.LoginForm');\n\t}", "title": "" }, { "docid": "043ab2aa3c144dbc71fc2e724c311843", "score": "0.715359", "text": "public function init()\n {\n $signal = $this->getEventManager();\n $signal->handler($this, 'onAuth', [$this, 'onAuth']);\n\n if ($this->getIsGuest() && $this->allowAutoLogin) {\n $this->restoreFromCookie();\n } elseif ($this->autoRenewCookie && $this->allowAutoLogin) {\n $this->renewCookie();\n }\n\n if ($this->getIsGuest()) {\n $guest = new User();\n $guest->setAttributes([\n 'username' => 'Guest',\n 'is_superuser' => false,\n 'is_staff' => false\n ]);\n $guest->setIsGuest(true);\n $this->setModel($guest);\n }\n\n $this->updateAuthStatus();\n }", "title": "" }, { "docid": "0cdd8d6b3893b19228c00bce4d47157b", "score": "0.71495503", "text": "private function __construct() {\n session_start();\n $this->authenticated = isset($_SESSION['logged_in']) ? $_SESSION['logged_in'] : FALSE;\n }", "title": "" }, { "docid": "03df82553a6d6eca8646806f5f0192e9", "score": "0.7146789", "text": "public function __construct() {\n\t\t$this->middleware('authenticated');\n\t}", "title": "" }, { "docid": "e5b10b8e3e7abc8b5a109dfc0fa5f4db", "score": "0.71423936", "text": "public function __construct()\n {\n // Require the user to be logged in\n // for every action this controller does\n $this->middleware('auth');\n }", "title": "" }, { "docid": "883ca98911c673f63b79f382c61fa6dd", "score": "0.7128205", "text": "public function __construct()\n {\n /**\n * @todo VRAAG 3 - Schakel authenticatie override terug uit.\n *\n * Verwijder onderstaande regel\n * en ga naar <http://localhost:8080/back-office/admins/logout>.\n */\n # antwoord »\n $_SESSION[AuthController::AUTHENTICATED] = 1;\n # « antwoord\n }", "title": "" }, { "docid": "d03ccd95f0ad098a99a25665a0c07932", "score": "0.7113497", "text": "public function initialize()\n {\n parent::initialize();\n // die;\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Auth', [\n 'loginRedirect' => [\n 'controller' => 'Consultations',\n 'action' => 'index'\n ],\n 'logoutRedirect' => [\n 'controller' => 'Users',\n 'action' => 'login'\n ]\n ]);\n $this->loadComponent('Cookie', ['expires' => '2 days']);\n\n // $this->Auth->allow(['add', 'logout', 'forgotPassword', 'resetPassword']);\n $this->Auth->allow(['return_cities_state','getLatitudeLongitudeByAddress']);\n\n }", "title": "" }, { "docid": "6d2712a6bf0b6f5fc80678e6bf68bbbc", "score": "0.7099024", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n\t\t\n\t\t$this->loadComponent('Auth', [\n\t\t\t'authorize' => ['Controller'],\n 'loginRedirect' => [\n 'controller' => 'Homes',\n 'action' => 'index'\n ],\n 'logoutRedirect' => [\n 'controller' => 'Users',\n 'action' => 'login'\n \n ]\n ]);\n\t\t \n }", "title": "" }, { "docid": "435653d15df6872b3d23a9f8f4107639", "score": "0.7094369", "text": "public function __construct ()\n {\n // $this->middleware('auth');\n\n //if trying to access this controller without being authenticated, it will ask him for authentication\n // $this->middleware ('auth');\n }", "title": "" }, { "docid": "4b33ed3d8a3a4e35d8e0d3161e96b6f7", "score": "0.7093125", "text": "function __construct()\n {\n if (!$this->session->has('auth')) {\n $auth = [\n 'loggedIn' => false,\n 'tokenKey' => Text::random(Text::RANDOM_ALNUM, 20),\n 'token' => Text::random(Text::RANDOM_ALNUM, 20),\n ];\n $this->session->set('auth', (object)$auth);\n }\n $this->initialize();\n }", "title": "" }, { "docid": "c3e321350c310a44a34b8dd8c2fe94ea", "score": "0.70926213", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Auth', ['authenticate' => ['App/Security.HelpdeskToken'=>['headerDeviceId'=>'X-Api-DeviceId',\n 'headerToken'=>'X-Api-Token']],\n 'checkAuthIn' => 'Controller.initialize',\n 'loginAction' => false,\n 'unauthorizedRedirect' => false]);\n }", "title": "" }, { "docid": "b5b09e115e15d90fa3f2188bc281345b", "score": "0.70903563", "text": "function init()\n {\n $this->acl->allow('webmaster', $this->name, \"*\");\n $this->acl->allow('guest', $this->name, \"ipn\");\n\n if (!Config::get(\"registrationOfWebmastersEnabled\")) {\n $this->acl->allow('guest', $this->name, \"selectPaymentOptions\");\n $this->acl->allow('guest', $this->name, \"makePayment\");\n $this->acl->allow('guest', $this->name, \"processPayment\");\n }\n\n if (!$this->acl->isAllowed($this->session->get(\"role\"), $this->name, $this->action)) {\n $this->redirect(AppRouter::getRewrittedUrl(\"/webmaster/logIn\"));\n }\n }", "title": "" }, { "docid": "fce01f8495c3395959c18c6af3df7163", "score": "0.70701635", "text": "public function init()\n {\n \t$auth = Zend_Auth::getInstance();\n\t\tif($auth->hasIdentity())\n \t\t$this->_user_id = Zend_Auth::getInstance()->getIdentity()->user_id;\n }", "title": "" }, { "docid": "cd3139a2c97d00ab88bfa685e7a63d38", "score": "0.7053167", "text": "public function initialize(): void\n {\n parent::initialize();\n\n $this->loadComponent('Authentication.Authentication');\n\n $this->Authentication->allowUnauthenticated(['expired']);\n $this->Authentication->addUnauthenticatedActions(['expired']);\n\n $this->loadComponent('Flash.Flash');\n\n $this->loadComponent('Authorization.Authorization', ['className' => 'CapAuthorization']);\n $this->Authorization->skipAuthorization();\n\n $this->loadComponent('RequestHandler', [\n 'enableBeforeRedirect' => false,\n ]);\n }", "title": "" }, { "docid": "38e73d1f5eb49b883d4308bb26201351", "score": "0.70487666", "text": "public function init()\n {\n $this->user = Podium::getInstance()->user;\n parent::init();\n }", "title": "" }, { "docid": "44ebedb2e6a67390a90454071c344e3d", "score": "0.7048556", "text": "public function preDispatch()\n {\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $this->_identity = Zend_Auth::getInstance()->getIdentity();\n }\n }", "title": "" }, { "docid": "b18db105607a0fc9d62df498d2efa7b8", "score": "0.7036085", "text": "public function init()\n {\n $this->acl->allow('webmaster', $this->name, \"*\");\n $this->acl->allow('guest', $this->name, \"save\");\n $this->acl->allow('guest', $this->name, \"delete\");\n $this->acl->allow('guest', $this->name, \"edit\");\n $this->acl->allow('guest', $this->name, \"saveEdit\");\n\n if (!$this->acl->isAllowed($this->session->get(\"role\"), $this->name, $this->action)) {\n $this->redirect($this->moduleLink(\"logIn\"));\n }\n }", "title": "" }, { "docid": "42cc90824be67e0c6324f35bb0d9b98d", "score": "0.70354164", "text": "public static function auth()\n {\n parent::auth();\n\n static::updateAuthResources();\n }", "title": "" }, { "docid": "d26ce6d957353918cc3af4c0db10520c", "score": "0.7026632", "text": "public function __construct()\n {\n parent::__construct();\n\n // special authentication check for the entire controller: Note the check-ADMIN-authentication!\n // All methods inside this controller are only accessible for admins (= users that have role type 7)\n Auth::checkAdminAuthentication();\n }", "title": "" }, { "docid": "8e35b6531df7f6f5e96fb6fcdd5cf313", "score": "0.7018969", "text": "public function init()\r\n {\r\n $auth = Zend_Auth::getInstance();\r\n \r\n //If user is not connected, redirect to logout\r\n if (!$auth->hasIdentity()) {\r\n $this->_helper->redirector('logout', 'auth', null, array('reason' => '1')); // back to login page\r\n }\r\n }", "title": "" }, { "docid": "1f423febc8867135fa5ec5e6c92f9665", "score": "0.7015074", "text": "function initialize(&$controller){\n\n\t\t$this->controller = $controller; \n\t\t\n\t\t// Initilize the User Model: ClassRegistry::init('User')\n\t\t$this->controller->{$this->user_model_name} =& ClassRegistry::init($this->user_model_name);\n\n\t\t$this->here = substr($this->controller->here,strlen($this->controller->base)); \n\t\t \n\t\t// Fuck this little guy\n\t\t//$this->controller->_login(); \n\t\t \n\t\t// Now check session/cookie info. \n\t\t$this->getUserInfoFromSessionOrCookie(); \n\t\t\n\t\t//now see if the calling controller wants auth\n\t\t// - different than normal DarkAuth 1.3 usage\n\t\t// \t - per-action control (I like this way better)\n\t\t$vars = get_class_vars($this->controller->name.'Controller');\n\t\t\t\t\t\n\t\tif(empty($vars['_dAccess'])) {\n\t\t\t$vars = get_class_vars('AppController');\n\t\t\t$vars['_dAccess'] = array();\n\t\t}\n\t\t\n\t\t$action = $this->controller->action; \n\t\t\t\n\t\tif(isset($this->controller->params['prefix'])){\n\t\t\tif(isset($vars['_dAccess'][$action])){\n\t\t\t\t$vars['_dAccess'][$action][] = $this->controller->params['prefix'];\n\t\t\t} else {\n\t\t\t\t$vars['_dAccess'][$action] = array($this->controller->params['prefix']);\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t// We want Auth for any action here\n\t\t$access = $vars['_dAccess'];\n\t\t$deny = false; \n\t\tif(is_array($access)){\n\t\t\tif(array_key_exists($action,$access)){\n\t\t\t\tif(!empty($access[$action])){\n\t\t\t\t\tif(!$this->isAllowed($access[$action])){\n\t\t\t\t\t\t$deny = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} elseif(array_key_exists('*',$access)) {\n\t\t\t\tif(!empty($access['*'])){\n\t\t\t\t\tif(!$this->isAllowed($access['*'])){ \n\t\t\t\t\t\t$deny = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Old version of doing auth (controller level, not action level)\n\t\t//now see if the calling controller wants auth \n\t\t/*\n\t\tif( array_key_exists('_DarkAuth', $this->controller) ){ \n\t\t // We want Auth for any action here \n\t\t if(!empty($this->controller->_DarkAuth['onDeny'])){\n\t\t\t\t $deny = $this->controller->_DarkAuth['onDeny']; \n\t\t\t\t}else{ \n\t\t\t\t $deny = null; \n\t\t\t\t} \n\t\t\t\tif(!empty($this->controller->_DarkAuth['required'])){ \n\t\t\t\t $this->requiresAuth($this->controller->_DarkAuth['required'],$deny); \n\t\t\t\t}else{ \n\t\t\t$this->requiresAuth(null,$deny); \n\t\t } \n\t\t} \n\t\t*/\n\n\t\t$this->deny = $deny;\n\n\t\t// Not logged in and denied?\n\t\tif(!$this->li && $this->deny){ \n\t\t\t// base64_encode the url we are trying to go to\n\t\t\t$redirect_url = base64_encode($_SERVER['REQUEST_URI']);\n\t\t\t$this->Session->write('redirect_url',$redirect_url);\n\t\t\t$this->controller->redirect('/users/login?redirect='.$redirect_url);\n\t\t}\n\n\t}", "title": "" }, { "docid": "f68cc10f0ba2d7f3af86bbdedc97ecce", "score": "0.69924617", "text": "public function init()\n {\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $mapper = new Application_Model_Mappers_RawUser();\n $this->_thisUser = $mapper->fetchSingleById(Zend_Auth::getInstance()->getStorage()->read()->ID);\n $this->view->thisUser = $this->_thisUser;\n }\n // check auth and get user settings\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $mapper = new Application_Model_Mappers_RawUserSettings();\n $this->_thisUserSettings = $mapper->fetchSingleByUserId(Zend_Auth::getInstance()->getStorage()->read()->ID);\n $this->view->thisUserSettingers = $this->_thisUserSettings;\n }\n }", "title": "" }, { "docid": "267aa44c244324109dbd64cdd81d34c9", "score": "0.6992088", "text": "public function init()\n {\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $mapper = new Application_Model_Mappers_RawUser();\n $this->_thisUser = $mapper->fetchSingleById(Zend_Auth::getInstance()->getStorage()->read()->ID);\n $this->view->thisUser = $this->_thisUser;\n }\n\n // check auth and get user settings\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $mapper = new Application_Model_Mappers_RawUserSettings();\n $this->_thisUserSettings = $mapper->fetchSingleByUserId(Zend_Auth::getInstance()->getStorage()->read()->ID);\n $this->view->thisUserSettingers = $this->_thisUserSettings;\n }\n }", "title": "" }, { "docid": "8386f5513529f3d42ef353400e3cd582", "score": "0.6990283", "text": "public function init()\n {\n \t\n \t$this->auth=Zend_Auth::getInstance();\n \tif($this->auth->hasIdentity()){\n \t\t$this->authIdentity=$this->auth->getIdentity();\n \t}\n \t$this->registry=Zend_Registry::getInstance();\n }", "title": "" }, { "docid": "8386f5513529f3d42ef353400e3cd582", "score": "0.6990283", "text": "public function init()\n {\n \t\n \t$this->auth=Zend_Auth::getInstance();\n \tif($this->auth->hasIdentity()){\n \t\t$this->authIdentity=$this->auth->getIdentity();\n \t}\n \t$this->registry=Zend_Registry::getInstance();\n }", "title": "" }, { "docid": "8386f5513529f3d42ef353400e3cd582", "score": "0.6990283", "text": "public function init()\n {\n \t\n \t$this->auth=Zend_Auth::getInstance();\n \tif($this->auth->hasIdentity()){\n \t\t$this->authIdentity=$this->auth->getIdentity();\n \t}\n \t$this->registry=Zend_Registry::getInstance();\n }", "title": "" }, { "docid": "a12d0e8813fcaf8a6611b36fec52d59c", "score": "0.69889534", "text": "public function init(){ \n \n if(Zend_Auth::getInstance()->hasIdentity() !== null){\n $user = Zend_Auth::getInstance()->getIdentity();\n } else {\n $user = \"\";\n }\n $this->view->user = $user;\n $this->user = $user;\n }", "title": "" }, { "docid": "62e232e2716eaf46d3a384ee3a56aac5", "score": "0.69866306", "text": "public function __construct() {\n\t\t$this->beforeFilter('auth');\n\t}", "title": "" }, { "docid": "0f8de637d2965d248a10eefdb9ec26ad", "score": "0.69823253", "text": "public function AuthController() {\n\t}", "title": "" }, { "docid": "2b106ca2f334110465219d1b997d466d", "score": "0.698194", "text": "public function init()\n {\n Shopware()->Plugins()->Backend()->Auth()->setNoAuth();\n parent::init();\n }", "title": "" }, { "docid": "a9a197e6bf12468aa0099915c8343d7f", "score": "0.6970914", "text": "public function __construct() {\n\t\tparent::__construct();\n\n\t\t#only logged in users are allowed here\n\t\t$this->beforeFilter('auth');\n\t}", "title": "" }, { "docid": "8aa591f9517baf06914098440f7f793f", "score": "0.69665444", "text": "public function init()\n {\n $auth=Zend_Auth::getInstance();\n $storage = $auth->getStorage();\n $sessionRead = $storage->read();\n if (!empty($sessionRead))\n {\n $is_admin = $sessionRead->is_admin;\n if (!$is_admin)\n {\n $this->redirect(\"/user/index\");\n\n }\n }else{\n $this->redirect(\"/user/index\");\n }\n\n }", "title": "" }, { "docid": "9dfd75abc9ca15660a32c36c8c81deb6", "score": "0.6959646", "text": "final public function authenticated()\n {\n $this->updateSessVars();\n $this->_authenticated();\n }", "title": "" }, { "docid": "f2ed203133256212ffa9742e7ef1c19e", "score": "0.6948531", "text": "public function __construct(){\n $this->authentication();\n }", "title": "" }, { "docid": "5d2f583fe6c7d6c5faa4b90985034437", "score": "0.69396937", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n\n //Users\n $this->loadComponent('Auth', [\n 'loginRedirect' => [\n 'controller' => 'Admin',\n 'action' => 'index'\n ],\n 'logoutRedirect' => [\n 'controller' => 'Users',\n 'action' => 'login'\n ]\n ]);\n $current_user = $this->Auth->user();\n $this->set(compact('current_user'));\n\n //Layout\n $this->viewBuilder()->layout(CAKEBLOG_THEME);\n }", "title": "" }, { "docid": "72a2004828e5d8335180ef45d9705ed7", "score": "0.6933837", "text": "public function initialize()\n {\n parent::initialize();\n define(\"ROOT_DIREC\", '/yann');\n // define(\"ROOT_DIREC\", '');\n\n $this->loadComponent('RequestHandler', [\n 'enableBeforeRedirect' => false,\n ]);\n\n $this->loadComponent('Flash');\n\n $this->loadComponent('Auth', [\n 'loginRedirect' => [\n 'controller' => 'Folders',\n 'action' => 'show'\n ],\n 'logoutRedirect' => [\n 'controller' => 'Users',\n 'action' => 'login']\n ]);\n\n // $this->loadComponent('Csrf');\n\n // $this->loadComponent('Auth', [\n // 'loginAction' => [\n // 'controller' => 'Users',\n // 'action' => 'login',\n // 'plugin' => 'Users'\n // ],\n // 'authError' => 'Did you really think you are allowed to see that?',\n // 'authenticate' => [\n // 'Form' => [\n // 'fields' => ['username' => 'username']\n // ]\n // ],\n // 'storage' => 'Session'\n // ]);\n\n // $this->Auth->allow(['login', 'forgotpassword']);\n\n /*\n * Enable the following component for recommended CakePHP security settings.\n * see https://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n //$this->loadComponent('Security');\n }", "title": "" }, { "docid": "99a2a3e21e04c7243a7a8673ff53057a", "score": "0.69290847", "text": "function startup(&$controller){\n if($this->session_secure_key == 'sRmtVStkedAdlxBy'){\n die('<p>Please change the Auth::session_secure_key value from it default.</p>');\n }\n \n $this->controller = $controller;\n if (get_class($this->controller) == \"MerchantsController\"){\n\t\t$this->user_model_name=\"Merchant\";\n\t}\n $this->here = substr($this->controller->here,strlen($this->controller->base));\n \n $this->controller->_login();\n \n //now check session/cookie info.\n $this->getUserInfoFromSessionOrCookie();\n\n //now see if the calling controller wants auth\n \tif( array_key_exists('_Auth', $this->controller) ){\n // We want Auth for any action here\n \t\tif(!empty($this->controller->_Auth['onDeny'])){\n $deny = $this->controller->_Auth['onDeny'];\n }else{\n $deny = null;\n }\n if(!empty($this->controller->_Auth['required'])){\n $this->requiresAuth($this->controller->_Auth['required'],$deny);\n }else{\n \t $this->requiresAuth(null,$deny);\n \t\t}\n \t}\n //finally give the view access to the data\n \t$this->_giveViewData();\n \t\n\t/*\tif ($this->controller->name == 'Twitter'){\n\t\techo 'twitter';\n\t\tvar_dump($this->controller->TwitterUserData);\n\t\tif (!empty($this->controller->TwitterUserData){\n\t\t\t$this->controller->set('_Auth', $this->controller->TwitterUserData)\n\t\t}\n\t\telse {\n\t\t\techo 'hoe';\n\t\t\t}\n\t\t}\n*/\n\n\n\t\n }", "title": "" }, { "docid": "e9e0f31e796b96f0698e2e5f8d519536", "score": "0.69179934", "text": "public function _initialize() {\n $isLogin = $this->isLogin();\n if (!$isLogin) {\n $this->redirect('login/index');\n }\n }", "title": "" }, { "docid": "e3d486243104c17724201c108d5084b6", "score": "0.69153124", "text": "public function init()\n {\n $authorization =Zend_Auth::getInstance();\n if(!$authorization->hasIdentity() && $this->_request->getActionName()!='login'){\n $this->redirect(\"Users/login\");\n }\n }", "title": "" }, { "docid": "39346205843c4a17f59dca652ec67f6b", "score": "0.69150245", "text": "public function __construct() {\n\n\t\t$this->beforeFilter('auth');\n\n\t}", "title": "" }, { "docid": "275b231a978646c986c162e3e1528147", "score": "0.6907268", "text": "public function init()\n {\n $authorization =Zend_Auth::getInstance();\n if(!$authorization->hasIdentity()){\n # code...\n \n $this->redirect(\"users/login\");\n }\n }", "title": "" }, { "docid": "e1c0b68718144f5d83b963d7863819e0", "score": "0.68981534", "text": "public function beforeAuthentication()\n {\n }", "title": "" }, { "docid": "9ba265da9b9c70aa28c937cb28cca446", "score": "0.6887957", "text": "public function beforeFilter() {\r\n\t\tparent::beforeFilter ();\r\n\t\t// they can acces the index and view actions of any controller\r\n\t\t// as long as they dont override\r\n\t\t$this->Auth->allow ( 'add', 'login' );\r\n\t\t$this->set ( 'loggedIn', $this->Auth->loggedIn () );\r\n\t\t$this->Auth->authenticate = array('Form');\r\n\t}", "title": "" }, { "docid": "0532cbfbff0e262b6d69b25bc823ed93", "score": "0.6883088", "text": "public function __construct()\n\t{\n\t\t$this->beforeFilter('auth');\n\t}", "title": "" }, { "docid": "5ce8ad142971797199fe1af359b96d66", "score": "0.68790376", "text": "public function __construct()\r\n\t{\t\t\r\n\t\t// $this->middleware('guest');\r\n\r\n\t\t// auth from apicontroller\r\n\t\tparent::__construct();\r\n\r\n }", "title": "" }, { "docid": "1b6278ea97e524858862d9c975f72aa0", "score": "0.6871707", "text": "public function __construct() {\n $this->auth = Auth();\n }", "title": "" }, { "docid": "4c75ec9837e0ae63969c1b90959cd305", "score": "0.68531775", "text": "protected function initialize()\n {\n // ==== Getting the session data ==== //\n $this->getSession();\n\n // ==== Hidding the cookie ==== //\n if($this->options['cookie_hide'] === true)\n {\n $this->hideCookie();\n }\n\n // ==== Triggering the auto-authentication ==== //\n $this->doAuth();\n }", "title": "" }, { "docid": "be549a41a93ffaecd904acf93d240513", "score": "0.6831725", "text": "function __construct()\n\t\t\t\t{\n\t\t\t\t\t$this->middleware('auth');\n\t\t\t\t}", "title": "" }, { "docid": "d64156de92b442f87ff135fb7098af23", "score": "0.6831217", "text": "protected function initDefaultAuth()\r\n {\r\n if (!isset($this->auth['view'])) {\r\n $this->auth['view'] = function ($url, $model, $key) {\r\n return true;\r\n };\r\n }\r\n if (!isset($this->auth['update'])) {\r\n $this->auth['update'] = function ($url, $model, $key) {\r\n return true;\r\n };\r\n }\r\n if (!isset($this->auth['delete'])) {\r\n $this->auth['delete'] = function ($url, $model, $key) {\r\n return true;\r\n };\r\n }\r\n }", "title": "" }, { "docid": "098706d340c475580f20949214793c75", "score": "0.68254685", "text": "public final function preDispatch() {\n\t\t$auth = Zend_Auth::getInstance();\n\t\t$store = $auth->getStorage()->read();\n\t\t\n\t\tif (isset($store['username']) && is_numeric($store['username']) && ($store['username'] > 0)) {\n\t\t\t$this->userId = $store['username'];\n\t\t\t$this->_init();\n\t\t} else {\n\t\t\t$getAuthMethodName = \"getAuth{$this->authBehavior[Zend_Controller_Front::getInstance()->getRequest()->getActionName()]}\";\n\t\t\t$result = $auth->authenticate($this->$getAuthMethodName());\n\t\t\tif ($result->isValid()) {\n\t\t\t $identity = $result->getIdentity();\n\t\t\t\t$this->userId = $identity['username'];\n\t\t\t\t$this->_init();\n\t\t\t} else {\n\t\t\t\t$this->userId = NULL;\n\t\t\t\t$this->getRequest()->setDispatched(TRUE);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ab1cac7265f253ec2ee744ea53f201fb", "score": "0.6820533", "text": "public function __construct()\n\t{\n\t\t// Protect whole controller with authentication\n\t\t// \texpect \"view all posts\" and \"show single post\" parts\n\t\t$this->middleware('auth')->except(['index', 'show']);\n\t}", "title": "" }, { "docid": "3b73dc99c878f9b84dd23ce747bbf196", "score": "0.68084455", "text": "public function __construct()\n\t{\n \tparent::__construct();\n \t\n \t// run auth filter before all methods on this controller except create and show\n \t$this->beforeFilter('auth', array('except' => array('show', 'index')));\n\n\t}", "title": "" }, { "docid": "6e8d2dcbbd8946c3bc80ea99b4739170", "score": "0.68064404", "text": "abstract public function authenticated();", "title": "" }, { "docid": "cde82cfd66b1e37cb6544700be7f4306", "score": "0.6804959", "text": "public function __construct()\n {\n\n if (!isLoggedIn()) {\n Helper::redirect('login');\n }\n }", "title": "" }, { "docid": "848afff1ba6a00225854b4520c37dd77", "score": "0.6797645", "text": "function __construct()\n {\n parent::__construct();\n\t\t\tAuth::handleLogin();\n }", "title": "" }, { "docid": "f6cded39be2ea33f7567a57250f4df29", "score": "0.67880636", "text": "public function init()\n {\n\t\t// if no, redirect to login page\n\t\t// if yes, proceed as normal \t\n\t if (!Zend_Auth::getInstance()->hasIdentity()) {\n\t \t//$url = $this->getRequest()->getHttpHost() . $this->view->url();\n\t \t$url = $this->view->url();\t \t\n\t\t\t$this->_redirect('/user/login?Redirect='.$url);\n\t\t} \t\n\t\t\n /* Initialize action controller here */\n \t$this->_helper->layout->setLayout('admin');\n\t\t\n }", "title": "" }, { "docid": "cd880bfdd1011d6fa57151045a07fb64", "score": "0.6785024", "text": "public function __construct()\n {\n parent::__construct();\n\n // run auth filter before all methods on this controller except index and show\n $this->beforeFilter('auth', ['except' => ['create', 'store']]);\n }", "title": "" }, { "docid": "6e3a4b59dbada948cd15cac25291186c", "score": "0.6782257", "text": "public function initialize()\n {\n parent::initialize();\n\n $this->loadComponent('RequestHandler');\n $this->loadComponent('Flash');\n $this->loadComponent('Auth', [\n 'authorize' => ['Controller'],\n 'loginRedirect' => [\n 'controller' => 'Dashboard',\n 'action' => 'index'\n ],\n 'logoutRedirect' => [\n 'controller' => 'Users',\n 'action' => 'login'\n ],\n 'unauthorizedRedirect' => [\n 'controller' => 'Dashboard',\n 'action' => 'index',\n 'prefix' => false\n ]\n ]);\n\n /*\n * Enable the following components for recommended CakePHP security settings.\n * see http://book.cakephp.org/3.0/en/controllers/components/security.html\n */\n //$this->loadComponent('Security');\n //$this->loadComponent('Csrf');\n }", "title": "" }, { "docid": "2d24c6bf9f5b8c4a14dd78b1fe347887", "score": "0.6779276", "text": "public function __construct()\n\t{\n\t parent::__construct();\n\t\n\t // run auth filter before all methods on this controller except index and show\n\t // $this->beforeFilter('auth', array('except' => array('index', 'show', 'create', 'store', 'flag')));\n\t}", "title": "" }, { "docid": "917f2ac1d923c7da2c79a13fba8ce6db", "score": "0.67788506", "text": "public function __construct()\n\t{\n\t parent::__construct();\n\n\t // run auth filter before all methods on this controller except index and show\n\t $this->beforeFilter('auth', array('except' => array('index', 'show')));\n\t}", "title": "" }, { "docid": "d1b727e035586e8ba06ede1db25e8501", "score": "0.67722833", "text": "public function init() {\n $this->accessControl = array(\n array(\n 'actions' => array('add', 'savenew'),\n 'permissions' => array('add_hotel')\n ),\n array(\n 'actions' => array('edithotel'),\n 'permissions' => array('edit_hotel')\n ),\n array(\n 'actions' => array('addprice', 'savenewpricing'),\n 'permissions' => array('add_price')\n ),\n array(\n 'actions' => array('assignuser', 'assignnewuser', 'removeuser'),\n 'permissions' => array('edit_price')\n ),\n array(\n 'actions' => array('priceoverview', 'editprice'),\n 'permissions' => array('add_user')\n ),\n );\n }", "title": "" }, { "docid": "a429ba69c60d830b805e737c5483d7e5", "score": "0.6771669", "text": "public function __construct()\n {\n $this->beforeFilter('auth');\n }", "title": "" }, { "docid": "7bf38f7e0a50ffcf68790141cbdb5251", "score": "0.67662174", "text": "function __construct()\n {\n parent::__construct();\n $this->is_logged_in();\n }", "title": "" }, { "docid": "7bf38f7e0a50ffcf68790141cbdb5251", "score": "0.67662174", "text": "function __construct()\n {\n parent::__construct();\n $this->is_logged_in();\n }", "title": "" }, { "docid": "e49c61aaad5885f2a13ed79b9dfa3162", "score": "0.675411", "text": "public function __construct()\n {\n //Check if LoggedIn\n $this->middleware('auth'); \n //$this->middleware('admin');\n \n $this->_user = Auth::user();\n\n }", "title": "" }, { "docid": "e51eda83ebac3f68309b632de83957bc", "score": "0.67539", "text": "public function init() {\n\n $this->_admin = Zend_Auth::getInstance()->getIdentity()->admin;\n $this->_idusu = Zend_Auth::getInstance()->getIdentity()->idusu;\n $this->_db = Zend_Db_Table::getDefaultAdapter();\n if (!$this->_admin) {\n $this->_redirect('login/logout');\n }\n Zend_Loader::loadFile('UserDB.php');\n $this->_session = new Zend_Session_Namespace(\"cadcli\");\n unset($this->_session->token);\n unset($this->_session->fieldName);\n unset($this->_session->usuid);\n }", "title": "" }, { "docid": "8a25ec39496d4ea88a15b5b9cdecfecc", "score": "0.6752806", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->is_logged_in();\n\t}", "title": "" }, { "docid": "69ac72dd71b8b2cc0caf145ae2688c5f", "score": "0.67526716", "text": "public function __construct()\n {\n parent::__construct();\n $this->beforeFilter('auth');\n }", "title": "" }, { "docid": "6f2f65180a7772c3e2e26bce70234dcc", "score": "0.67479736", "text": "public function __construct()\n {\n $this->middleware('auth');\n\n // Set language session\n if (\\Session::has('locale')) {\n app()->setLocale(\\Session::get('locale'));\n } else {\n app()->setLocale(\\Session::get('jp'));\n }\n }", "title": "" }, { "docid": "c5371c2a107745e083b39e98ef72e29c", "score": "0.6747755", "text": "public function __construct()\n\t{\n\n\t\t$this->middleware('auth');\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "c5da0f7ab2e6821ed8d434a61fdd63b4", "score": "0.6741852", "text": "public function beforeFilter()\n {\n AppController::beforeFilter();\n //Basic Setup\n $this->Auth->authenticate = array('Form');\n $this->Auth->authenticate = array(\n 'Form' => array('userModel' => 'Admin')\n );\n $this->Auth->allow('login'); //Without Logged IN which page can be access.. assign here\n }", "title": "" }, { "docid": "733d056714f2a919b39fbf5d9d21bdf6", "score": "0.6729042", "text": "public function __construct()\n\t{ //needs authentication to view page\n\t\t$this->middleware('auth');\n\t}", "title": "" }, { "docid": "e75b634b3df551706fc4c65b8875143c", "score": "0.6726511", "text": "public function __construct()\n\t{\n\t\t$this->middleware('auth');\n\t\tparent::__construct();\n\t}", "title": "" }, { "docid": "46b69139ec270d76d2d497277e6603aa", "score": "0.6721056", "text": "public function __construct() {\n $this->authenticationService = $this->getAuthenticationService();\n parent::__construct();\n }", "title": "" }, { "docid": "6b7cadb6e338a0ac829f55cd99a81764", "score": "0.67201954", "text": "public function __construct() {\n $this->middleware('guest', array(\n 'except' => 'getLogout'\n ));\n $this->middleware('localize_auth', array(\n 'only' => 'getLogout'\n ));\n $this->middleware('localize_guest', array(\n 'except' => 'getLogout'\n ));\n $this->loginPath = action('Auth\\AuthController@getAuth');\n $this->redirectAfterLogout = action('Auth\\AuthController@getAuth');\n $this->redirectPath = action('IndexController@getDashboard');\n }", "title": "" }, { "docid": "555a36217d3e2075c5e025e859376d00", "score": "0.6710552", "text": "public function __construct()\n {\n $this->auth = Auth::user();\n }", "title": "" }, { "docid": "d488ad4e80da9c046e2e976a865979b4", "score": "0.6707279", "text": "public function __construct(){\n\t $this->beforeFilter(function(){\n\n\t if(is_null(Session::get('user'))){\n\t return Redirect::to(URL::action('LoginController@index'));\n\t }\n\n\t });\n\t }", "title": "" }, { "docid": "a919a3ebcf6ab84bc651c1cb80b8d773", "score": "0.6704768", "text": "public function __construct() {\n \n // logged in user cannot access \n $this->authorize();\n }", "title": "" }, { "docid": "e57781d8ac6f735af40efdf1a38c139b", "score": "0.66932976", "text": "public function initialize()\n {\n \n \n //parent::initialize();\n /*\n *Se quita por lo del login y logout\n parent::initialize();\n -----habilitará el cambio automático de clase de vista en los tipos de contenido----\n $this->loadComponent('RequestHandler', [\n 'enableBeforeRedirect' => false,\n ]);\n */\n\n\n $this->loadComponent('Flash');\n /**\n * Se agrega para el logout y login\n */\n $this->loadComponent('Auth',[\n\n /**\n * Lineas para generar las diferencias entre usuarios\n */\n 'authorize' => ['Controller'], // linea agregada\n /**\n * Simplemente asignamos las URLs que serán cargadas despues del login y del logout,\n * en nuestro caso /articles/ y / respectivamente.\n */\n 'loginRedirect'=>[ //Para redirigir despues del login\n 'controller'=>'Articles',\n 'action'=>'index'\n ],\n 'logoutRedirect'=>[ //Para redirigir despues del logout\n 'controller'=>'Pages',\n 'action'=>'display',\n 'home'\n ]\n ]);\n }", "title": "" }, { "docid": "e64d8c852f73d6259d217bc680f0fc8a", "score": "0.6687628", "text": "public function __construct() {\n\n\t\t$this->middleware( 'auth' );\n\n\t}", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "ea36d8306d01565bb64f4edd2b22b418", "score": "0.0", "text": "public function show($id)\n {\n \n $product = Product::find($id)->productNumber;\n $iamge = Image::where('productNumber',$product)->get();\n return ImageResource::collection($iamge);\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.7593495", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "d57b314bf807713f346bc35fb937529e", "score": "0.6845801", "text": "public function render() {\n $this->_template->display($this->resource_name);\n }", "title": "" }, { "docid": "05f03e4964305c5851a8417af8f32544", "score": "0.6684253", "text": "public function show($resource, $id)\n {\n return $this->repository->get($id);\n }", "title": "" }, { "docid": "9579e337a5325a82370abb431f646b6f", "score": "0.6490299", "text": "public function show($id)\n\t{\n\t\t//\n\t\t$resource = \\App\\Resource::find($id);\n\t\treturn view('deleteResource', array( 'resource' => $resource) );\n\t}", "title": "" }, { "docid": "989918b39caf8ede67ab11ef4dc4a651", "score": "0.63472325", "text": "public function editresourceAction() {\n\t\t$resourceid = $this->_request->getParam('resourceid');\n\t\t$srlink = new StudentResourceLink();\n\t\t$select = $srlink->select()->where($srlink->getAdapter()->quoteInto('auto_id = ?', $resourceid));\n\t\t$rows = $srlink->fetchAll($select);\n\t\t$therow = null;\n\t\tforeach ($rows as $row) {\n\t\t\t$therow=$row;\n\t\t}\n\t\t//print_r($therow);\n\t\t$this->view->resourcelink = $therow;\n\t\t\n\t\t$mediabankUtility = new MediabankUtility();\n\t\tob_start();\n\t\t$mediabankUtility->curlDownloadResource($therow['mid'],false);\n\t\t$content = ob_get_contents();\n\t\tob_end_clean();\n\t\t$this->view->content = $content;\t\t\n\t\t$this->view->redirect_to = $_SERVER[\"HTTP_REFERER\"];\n\t\tStudentResourceService::prepStudentResourceView($this, $this->_request, $therow->loid);\n\t\tif($therow['category']=='Summary') //summary has been stripped out since a summary exists; add it back in if this one is a summary\n\t\t\t$this->view->studentResourceCategories[6]='Summary';\n\t}", "title": "" }, { "docid": "2e3da5773c9c5d59c21b1af4e1ac8cd8", "score": "0.623589", "text": "public function show($id)\n {\n if(Module::hasAccess(\"Resources\", \"view\")) {\n \n $resource = Resource::find($id);\n if(isset($resource->id)) {\n $module = Module::get('Resources');\n $module->row = $resource;\n $group_lists = array();\n $user_lists = array();\n\n if(!$resource->is_public){\n $group_lists = DB::table('resource_groups')\n ->select('groups.id', 'groups.name')\n ->join('groups','groups.id','=','resource_groups.group_id')\n ->where('resource_groups.resource_id', $id)->whereNull('groups.deleted_at')->whereNull('resource_groups.deleted_at')->get();\n\n $user_lists = DB::table('resource_users')\n ->select('users.id', 'users.name')\n ->join('users','users.id','=','resource_users.user_id')\n ->where('resource_users.resource_id', $id)->whereNull('users.deleted_at')->whereNull('resource_users.deleted_at')->get();\n }\n \n return view('la.resources.show', [\n 'module' => $module,\n 'view_col' => $module->view_col,\n 'no_header' => true,\n 'no_padding' => \"no-padding\",\n 'user_lists' => $user_lists,\n 'group_lists' => $group_lists\n ])->with('resource', $resource);\n } else {\n return view('errors.404', [\n 'record_id' => $id,\n 'record_name' => ucfirst(\"resource\"),\n ]);\n }\n } else {\n return redirect(config('laraadmin.adminRoute') . \"/\");\n }\n }", "title": "" }, { "docid": "d6d98993d2a40a3cba09832ef9953f69", "score": "0.6216249", "text": "public function lookup($resource);", "title": "" }, { "docid": "6244aaaaf59fb15467858bc417084ebc", "score": "0.62105983", "text": "protected function makeDisplayFromResource()\n\t{\n\t\tif($this->activeResource instanceof SimpleXMLElement)\n\t\t{\n\t\t\treturn $this->activeResource->asXml();\n\t\t}else{\n\t\t\treturn $this->activeResource;\n\t\t}\n\t}", "title": "" }, { "docid": "3ee4a64030fd6d594c526bf49945971f", "score": "0.6198528", "text": "public function show($id)\n {\n $res = Resource::find($id);\n return view('resource.show')->withResource($res);\n }", "title": "" }, { "docid": "48b723515995fb4178256251ea323c04", "score": "0.61824137", "text": "public function show($id) {\n $resource = static::$resource::findOrFail($id);\n return view($this->getView('show'), [static::$varName[0] ?? $this->getResourceName() => $resource]);\n }", "title": "" }, { "docid": "b6106194998deb4acb00d89d1984bf4b", "score": "0.6155446", "text": "public function displayAction()\n {\n $params = $this->router->getParams();\n if (isset($params[0]) && $firewall = Firewalls::findFirst(intval($params[0]) ? $params[0] : ['name=:name:', 'bind' => ['name' => $params[0]]])) {\n $this->tag->setTitle(__('Firewalls') . ' / ' . __('Display'));\n $this->view->setVars([\n 'firewall' => $firewall,\n 'content' => Las::display($firewall->name)\n ]);\n\n // Highlight <pre> tag\n $this->assets->addCss('css/highlightjs/arta.css');\n $this->assets->addJs('js/plugins/highlight.pack.js');\n $this->scripts = ['$(document).ready(function() { $(\"pre\").each(function(i, e) {hljs.highlightBlock(e)}); });'];\n }\n }", "title": "" }, { "docid": "c232a532d32e3f8e5c41e20db4331be5", "score": "0.60641253", "text": "function display($aTemplate = null) {\r\n\t\t$this->fetch ( $aTemplate, true );\r\n\t}", "title": "" }, { "docid": "88951f8df99fd6c0e333e72b145dfb04", "score": "0.6063686", "text": "public function displayAction()\n {\n // set filters and validators for GET input\n $filters = array(\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\n ); \n $validators = array(\n 'id' => array('NotEmpty', 'Int')\n );\n $input = new Zend_Filter_Input($filters, $validators);\n $input->setData($this->getRequest()->getParams());\n\n // test if input is valid\n // retrieve requested record\n // attach to view\n if ($input->isValid()) {\n $q = Doctrine_Query::create()\n ->from('Square_Model_Item i')\n ->leftJoin('i.Square_Model_Country c')\n ->leftJoin('i.Square_Model_Grade g')\n ->leftJoin('i.Square_Model_Type t')\n ->where('i.RecordID = ?', $input->id);\n $result = $q->fetchArray();\n if (count($result) == 1) {\n $this->view->item = $result[0]; \n } else {\n throw new Zend_Controller_Action_Exception('Page not found', 404); \n }\n } else {\n throw new Zend_Controller_Action_Exception('Invalid input'); \n }\n }", "title": "" }, { "docid": "1a2ff798e7b52737e1e6ae5b0d854f6a", "score": "0.60512596", "text": "public function show($id)\n\t{\n\t\t// display *some* of the resource...\n\t\treturn Post::find($id);\n\t}", "title": "" }, { "docid": "da456d60e11065d629261fc79e691a95", "score": "0.6006895", "text": "public function displayAction()\n {\n $id = $this->params['_param_1'];\n $this->flash['message'] = \"Arriba loco, este es el mensaje del flash!\";\n return $this->render( $id );\n }", "title": "" }, { "docid": "3fb44335bf5e5dca76ae4c41be3fee5d", "score": "0.5995527", "text": "public function action_show()\n\t{\n\t\t$id = Coder::instance()->short_url($this->request->param('id'), TRUE);\n\n\t\tif (is_numeric($id) === FALSE)\n\t\t{\n\t\t\tHTTP::redirect(Route::get('default')->uri());\n\t\t}\n\t\t\n\t\t$user = ORM::factory('User', $id);\n\t\t$manager = Manager::factory('User', $user);\n\t\t\n\t\t$manager->show();\n\n\t\t$this->view_container = $manager->get_views_result('container');\n\t\t$this->view_content = $manager->get_views_result('content');\n\t}", "title": "" }, { "docid": "9a28e42aa633511a42cb70db3b7fcc26", "score": "0.5986619", "text": "public function show($id)\n\t{\n\t\ttry {\n\t\t if ( \\Auth::check() && \\Auth::user()->hasPaid() )\n {\n $resource = \\Resource::find($id);\n $path_to_image = app('path.protected_images') .'/'.$resource->image;\n //Read image path, convert to base64 encoding\n $imgData = base64_encode(file_get_contents($path_to_image));\n //Format the image SRC: data:{mime};base64,{data};\n $src = 'data: '.mime_content_type($path_to_image).';base64,'.$imgData;\n\n return \\View::make('resources.view')->with([\n 'resource' => $resource,\n 'img' => $src\n ]);\n\n } else {\n\n \\App::abort(404);\n }\n\n } catch (\\Exception $e) {\n\n \\Log::warning( $e->getMessage() );\n }\n\t}", "title": "" }, { "docid": "41ab5aeaf4ec45d330f185763e2d3cee", "score": "0.5962972", "text": "public function show()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "ecdc5dd9611d1734404c92d923029a39", "score": "0.5881492", "text": "public function show($id)\n {\n echo self::routeNamed();\n }", "title": "" }, { "docid": "461e196dfe64422deb4a744c50eb5d8d", "score": "0.587919", "text": "public function show($id) {\n //view/edit page referred to as one entity in spec\n }", "title": "" }, { "docid": "f004693e692e26b7ab9f8de37189afc1", "score": "0.58711755", "text": "private function displayResources()\n\t\t{\n\t\t\t$html = '';\n\t\t\t$html .= '<div class=\"resources\" >'.\"\\n\";\n\t\t\t$html .= '\t<h4>Resources ~ '.$this->challenge['challengeResourceHeading'].'</h4>'.\"\\n\";\n\t\t\tforeach($this->resources as $resource)\n\t\t\t{\n\t\t\t\t$html .= '\t<p class=\"resource-link\"><a href=\"http://'.$resource['resourceLink'].'\">'.$resource['resourceTitle'].'</a></p>'.\"\\n\";\n\t\t\t}\n\t\t\n\t\t\treturn $html;\n\t\t}", "title": "" }, { "docid": "f02f37fffab992508c7d7d6f7ae94f94", "score": "0.58684236", "text": "public function showAction() {\n\n // validate contact id is int\n $id = $this->route_params[\"id\"];\n // if id is invalid redirect to 404 page\n if (filter_var($id, FILTER_VALIDATE_INT) === false) {\n $this->show404();\n return;\n }\n\n $contact_obj = new Contact();\n $contact = $contact_obj->findById($id);\n // if no contact returned then display error message\n if ($contact == false) {\n //set error message\n $_SESSION[\"error_message\"] = \"Contact not found or deleted\";\n // redirect to show all contacts if contacts not found\n header(\"Location: /contacts\");\n return;\n }\n // render the view if all everything is Ok\n View::renderTemplate(\"contacts/show.twig.php\", [\"contact\" => $contact]);\n }", "title": "" }, { "docid": "4294ddbd744676190ac0b1e7d92632e0", "score": "0.58634454", "text": "public function show() {\r\n echo $this->init()->getView();\r\n }", "title": "" }, { "docid": "d138cb59b6d8df8768f135975e4445ad", "score": "0.58409727", "text": "public function show()\n\t{\n\t\t//\n\n\t}", "title": "" }, { "docid": "ad2fe33fedb796826d1b96c32859495c", "score": "0.5838473", "text": "public function resourceDesktop()\n {\n $resourceTypes = $this->em->getRepository('ClarolineCoreBundle:Resource\\ResourceType')->findAll();\n\n return $this->templating->render(\n 'ClarolineCoreBundle:Tool\\desktop\\resource_manager:resources.html.twig',\n array('resourceTypes' => $resourceTypes, 'maxPostSize' => ini_get('post_max_size'))\n );\n }", "title": "" }, { "docid": "6e1ccfc29048f24d0efc88d6b8257171", "score": "0.5811056", "text": "public function show($name)\n\t{\n\t\t//\n\n\t}", "title": "" }, { "docid": "5b7cde41d4a1270d31720878d4a50b19", "score": "0.57936835", "text": "public function show($id)\n\t{\n\t\treturn $this->success($this->resource->getById($id));\n\t}", "title": "" }, { "docid": "7dd625db5c11766539ede97b10e391c8", "score": "0.57885426", "text": "public function viewAction($resourceId)\n {\n try {\n // Call to the resource service to get the resource\n $resourceResource = $this->get(\n 'asker.exercise.exercise_resource'\n )->getContentFullResource($resourceId, $this->getUserId());\n\n return new ApiGotResponse($resourceResource, array(\"details\", 'Default'));\n\n } catch (NonExistingObjectException $neoe) {\n throw new ApiNotFoundException(ResourceResource::RESOURCE_NAME);\n }\n }", "title": "" }, { "docid": "e871bf67c885c4b595a1f5cc980d032e", "score": "0.5787194", "text": "public function show()\n {\n \n \n }", "title": "" }, { "docid": "e918056f269cc66c35d0c9d5ae72cf98", "score": "0.5785671", "text": "protected function addResourceShow($name, $base, $controller, $options)\n\t{\n\t\t$uri = $this->getResourceUri($name).'/{'.$base.'}.{format?}';\n\n\t\treturn $this->get($uri, $this->getResourceAction($name, $controller, 'show', $options));\n\t}", "title": "" }, { "docid": "8e4604d345a4a1aa92109fa7c7b9b1e1", "score": "0.57850385", "text": "public function showAction(I18NResource $i18NResource)\n {\n $use_translations = $this->get('Services')->get('use_translations');\n\n if(!$use_translations){\n throw $this->createNotFoundException('Not a valid request');\n }\n\n $this->get('Services')->setMenuItem('I18NResource');\n $changes = $this->get('Services')->getLogsByEntity($i18NResource);\n\n return $this->render('i18nresource/show.html.twig', array(\n 'i18NResource' => $i18NResource,\n 'changes' => $changes,\n ));\n }", "title": "" }, { "docid": "ea3e059853b58df5488fa70a7fd54c3b", "score": "0.5782477", "text": "protected function addResourceShow($name, $base, $controller)\n {\n $uri = $this->getResourceUri($name) . '/{' . $base . '}';\n return $this->get($uri, $this->getResourceAction($name, $controller, 'show'));\n }", "title": "" }, { "docid": "39114f16312ac4920577af8887aaf740", "score": "0.57743496", "text": "public function display()\r\n {\r\n echo $this->fetch();\r\n }", "title": "" }, { "docid": "fcc9864a64202f3261f4537601857f07", "score": "0.5769528", "text": "public function show($nombre, $resourceType, $resourceName)\n {\n //gets the resource\n switch ($resourceType) {\n case (\"manga\"):\n $resource = Manga::where(\"name\", $resourceName)->first();\n break;\n case (\"novel\");\n $resource = Novel::where(\"name\", $resourceName)->first();\n break;\n default:\n abort(404);\n break;\n }\n //gets the comments for the resource\n $commentsFound = $resource->comments()->get();\n $commented = !is_null(Auth::user()->comments()->where(\"commentable_id\", $resource->id)->first());\n //creates a register of the interaction\n $resource->users()->attach(Auth::user());\n return view(\"user.show\", compact(\"resource\", \"commentsFound\", \"commented\", \"resourceType\"));\n }", "title": "" }, { "docid": "496570de6c493cd9fe30f7c52ceb87d1", "score": "0.57693255", "text": "public function show($id)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//\n\t\t\t\t\t}", "title": "" }, { "docid": "4be578329f20a5696732db0fd60d5d80", "score": "0.5768978", "text": "public function executeShow()\n {\n $this->headline = HeadlinePeer::getHeadlineFromStripTitle($this->getRequestParameter('headlinestriptitle'));\n $this->forward404Unless($this->headline);\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "a3e57330d7cd59896b945f16d0e12a89", "score": "0.5756713", "text": "public function display()\n {\n echo $this->render();\n }", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "e3b51ebfe04703c114ab39fc729ba43b", "score": "0.5749091", "text": "public function show(Entry $entry)\n {\n //\n }", "title": "" }, { "docid": "fd30d754eb9c55abae27d57dff32abdc", "score": "0.57409096", "text": "public function resourcethumbnailAction()\r\n {\r\n $request = $this->getRequest();\r\n $response = $this->getResponse();\r\n\r\n $id = (int) $request->getQuery('id');\r\n $w = (int) $request->getQuery('w');\r\n $h = (int) $request->getQuery('h');\r\n $hash = $request->getQuery('hash');\r\n\r\n $realHash = DatabaseObject_ResourceImage::GetImageHash($id, $w, $h);\r\n\r\n // disable autorendering since we're outputting an image\r\n $this->_helper->viewRenderer->setNoRender();\r\n\r\n $image = new DatabaseObject_ResourceImage($this->db);\r\n if ($hash != $realHash || !$image->load($id)) {\r\n // image not found\r\n $response->setHttpResponseCode(404);\r\n return;\r\n }\r\n\r\n try {\r\n $fullpath = $image->createResourceThumbnail($w, $h);\r\n }\r\n catch (Exception $ex) {\r\n $fullpath = $image->getFullPath();\r\n }\r\n\r\n $info = getImageSize($fullpath);\r\n\r\n $response->setHeader('content-type', $info['mime']);\r\n $response->setHeader('content-length', filesize($fullpath));\r\n echo file_get_contents($fullpath);\r\n }", "title": "" }, { "docid": "e68751480fa47a0b2d2bc46570e3a883", "score": "0.5735067", "text": "public function display($id = null) {\n \n }", "title": "" }, { "docid": "ca0564d197f7b97c9c7bb3bf9ec0d891", "score": "0.57342285", "text": "public function display($id = null) {\n\t\t$page = $this->SimplePage->findById($id);\n\t\tif(!$page){\n\t\t\t$this->Session->setFlash(__('Page not found'),'error');\n\t\t\t$this->redirect($this->referer());\n\t\t}\n\t\t\n\t\t//If the page was requested using requestAction, return the page object. Can be handy for integration of content in custom pages.\n\t\tif (! empty($this->request->params['requested']) ) {\n\t\t\treturn $page;\n\t\t}\n\t\t\n\t\t$this->set('page',$page);\n\t}", "title": "" }, { "docid": "a7cd1d7ce30dda2ea0273ce031cff516", "score": "0.5725927", "text": "public function displayReferenceAction()\n {\n \t$reference_id = Extended\\reference_request::displayReference( Auth_UserAdapter::getIdentity ()->getId (), $this->getRequest()->getparam('reference_req_id'), \\Extended\\feedback_requests::VISIBILITY_CRITERIA_DISPLAYED);\n \tif($reference_id)\n \t{\n \t\n \t\t$this->view->reference_visible=$reference_id;\n \t\techo Zend_Json::encode( 1 );\n \t}\n \tdie;\n }", "title": "" }, { "docid": "20397e06b8673db8692c5f84120c3011", "score": "0.5724891", "text": "public function show()\n\t{\n\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "8f565ce0db5c2b58c1bd4bea7cb05683", "score": "0.5720744", "text": "public function showAction(Ressource $ressource, SessionConcours $session = null)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'session' => $session,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "47171b843665ac85f7c5da2618a7ae0e", "score": "0.5718969", "text": "public function show($id) {}", "title": "" }, { "docid": "a494be3f6d40a2f537ff292b7a0ccaae", "score": "0.5711622", "text": "public function item($id=0)\n {\n\t\tif($this->session->userlogged_in !== '*#loggedin@Yes')\n\t\t{\n\t\t\tredirect(base_url().'dashboard/login/');\n }\n \n $resource = $this->member_resource_model->find($id);\n if(empty($resource))\n {\n $this->session->action_success_message = 'Invalid item selection.';\n redirect(base_url().'member_resources/');\n }\n \n\t\t$data = array(\n 'page_title' => 'Resource detail',\n 'resource' => $resource\n );\n\n\t\t$this->load->view('templates/header', $data);\n\t\t$this->load->view('member_resources/item_view');\n\t\t$this->load->view('templates/footer');\n }", "title": "" }, { "docid": "cfff8a1202fcfae7e44ab0c4fb351586", "score": "0.570918", "text": "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n $id = $_GET['id'];\n $entity = $em->getRepository('BackendBundle:Concepto')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Concepto entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BackendBundle:Concepto:show.html.twig', array(\n 'entity' => $entity,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "560ae0fd472bad5f1d21beeed5dfbbdd", "score": "0.57012135", "text": "public function show(){}", "title": "" }, { "docid": "b19fae7378b33f825e4ee1e7d8aef94a", "score": "0.5699814", "text": "public function display($templateName=null)\n {\n echo $this->get($templateName);\n }", "title": "" }, { "docid": "d936662ad1c81979476df2e0767c5e19", "score": "0.5699578", "text": "public function show($id)\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "0465b5fe008a3153a8a032fca67abfed", "score": "0.56937706", "text": "public function show() { }", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.56856436", "text": "abstract public function show($id);", "title": "" }, { "docid": "5df2376bef8dd69621a6ce7e2afd0bf4", "score": "0.56856436", "text": "abstract public function show($id);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
75d2a33dba1af9ea6ba172ac134c9f6c
Permet de valider ou non l'article
[ { "docid": "ee0046ceb4878a6a003034cfe36378a1", "score": "0.0", "text": "public function store(Request $request, Article $article) {\n\n $this->validate($request, [\n 'status' => 'required|integer|min:0|max:1'\n ]);\n\n //si l'article est refusé le validateur doit fournir une justification\n if ($request['status'] == 0) {\n $this->validate($request, [\n 'justification' => 'required'\n ]);\n }\n\n Validation::create([\n 'article_id' => $article->id,\n 'validator_id' => Auth::id(),\n 'status' => $request['status'],\n 'justification' => $request['justification']\n ]);\n\n //$validation->save();\n\n session()->flash('notification', \"L'article a bien été refusé\");\n\n return redirect('validation/toValidate');\n }", "title": "" } ]
[ { "docid": "c613fc22afa6b2696ae082bafd7b3c97", "score": "0.6792535", "text": "private function simple_article()\n {\n $article = new Apps\\Article(array(\n array(\n 'article.article_parent' => array( '=', 0 ),\n 'page.page_id' => array( '=', Page::$actuelle['page_id'], PDOFournie::NOT_QUOTE ),\n 'article.article_date_reviser' => array( '<=', 'NOW()', PDOFournie::NOT_QUOTE ),\n 'article.article_date_max' => array( array( '>=', 'NOW()', PDOFournie::NOT_QUOTE ), array( 'IS NULL', null ) ),\n 'article.article_slug' => array( '=', $_GET['article'] )\n )\n ));\n $article->limit(1);\n $single_article = $article->publier();\n \n $this->article_id = $single_article[0]['article_id'];\n \n $this->assign( 'single_article', $single_article[0] );\n // on charge la liste des templates\n $this->assign( 'formulaire', Apps\\FormulaireQuestion::fetchByArticleId($this->article_id) );\n }", "title": "" }, { "docid": "64c3b2bec708bfc44538e14d894bb53d", "score": "0.6502293", "text": "function infosArti(){\r\n\t\t$row=SelectMultiple(\"if_articles\",\"numarticle\",$this->numarticle);\r\n\t\t$this->libelle=$row[\"libelle\"];\t\r\n\t\tif ($row[\"numarticle\"]) return true;\r\n\t}", "title": "" }, { "docid": "de6e6aee2739e142ea7fdb360eb259de", "score": "0.62997234", "text": "public function modifierArticle()\n {\n $id_article = $this->validatorHelper->getValue('id_article', 0, 'integer');\n $media = $this->uploadHelper->upload('media');\n $titre = $this->validatorHelper->getValue('titre');\n $contenu = $this->validatorHelper->getValue('contenu');\n\n return $this->articleModel->setArticle($media, $titre, $contenu, $id_article);\n }", "title": "" }, { "docid": "daf69a6afe974202bbbd92eea558f5a2", "score": "0.61843497", "text": "function ajoutAuPanierPageProduct($article, $id) {\n $isArticlesAdded = verifierPanier($id);\n if ($isArticlesAdded == false) {\n $article['qte'] = 1;\n array_push( $_SESSION['panier'], $article);\n } \n}", "title": "" }, { "docid": "ffabe63e77732a69c0758ef70f8e01df", "score": "0.6084226", "text": "public function editEtatPublication($id){\n $article = $this->articlesmodel->getById($id,false);\n if(count($article)!=0) {\n $article = $article[0];\n $this->articlelibrarie->updateArticle($article->idarticle, null, null, null, null, null, null, null, null, null, null, !$article->etatpublication);\n redirect('page/administration/articles');\n }\n else{\n $erreur['heading'] = \"Tsy misy ny pejy notadiavinao\";\n $erreur['message'] = \"\";\n $this->load->view('errors/html/error_404',$erreur);\n }\n }", "title": "" }, { "docid": "fd22ea249117e16e42803b831faf2219", "score": "0.6068542", "text": "public function article()\r\n {\r\n// $this->assign(\"articles\", $articles);\r\n $this->display();\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "a9cedb556423e9249936918d08bf4226", "score": "0.6061339", "text": "public function __construct($id_article){\n $this->id_article = $id_article;\n\n }", "title": "" }, { "docid": "e897ea41934010b5e2dccad481f9a889", "score": "0.5966016", "text": "public function show(article $article)\n {\n //\n }", "title": "" }, { "docid": "5d5485ee9980f9d2b3613d63a8f7a469", "score": "0.59318787", "text": "function getIdArticle()\n {\n return $this->_id_article;\n }", "title": "" }, { "docid": "6d1e5ddd43637c6b9fae39c9bb2b1835", "score": "0.59078807", "text": "public function edit(Article $article) {\n\t\t//\n\t}", "title": "" }, { "docid": "66b9a460041fe447b5221f72db28bfa0", "score": "0.58972776", "text": "public function edit(Article $article)\n {\n //\n }", "title": "" }, { "docid": "66b9a460041fe447b5221f72db28bfa0", "score": "0.58972776", "text": "public function edit(Article $article)\n {\n //\n }", "title": "" }, { "docid": "66b9a460041fe447b5221f72db28bfa0", "score": "0.58972776", "text": "public function edit(Article $article)\n {\n //\n }", "title": "" }, { "docid": "66b9a460041fe447b5221f72db28bfa0", "score": "0.58972776", "text": "public function edit(Article $article)\n {\n //\n }", "title": "" }, { "docid": "544674acfb7fce82cbc00ddc24b0de36", "score": "0.5865052", "text": "function showOneArticle ($article) {\n echo \"<div class=\\\"img-article\\\"><img src=\\\"ressources/images/\" .$article[\"picture\"].\" \\\" class=\\\"imageArticle\\\"></div><br>\n <div class=\\\"libelle\\\">\" .$article[\"libelle\"]. \"</div><br>\n <div class=\\\"shortDescription\\\">\" .$article[\"shortDescription\"]. \"</div><br>\n <div class=\\\"prixProduit\\\">\" .sprintf('%.2f', $article[\"prixProduit\"]). \"€</div><br>\n </form>\n <form action=\\\"descriptionArticle.php\\\" method=\\\"post\\\">\n <input type=\\\"submit\\\" name=\\\"description\\\" value=\\\"Description\\\" class=\\\"btnDescription\\\">\n <input type=\\\"hidden\\\" name=\\\"IdDescriptionArticle\\\" value=\\\"\" .$article[\"id\"].\"\\\">\n </form>\n <form action=\\\"#ancre\\\" method=\\\"post\\\">\n <input type=\\\"submit\\\" id=\\\"ancre\\\" name=\\\"submit\\\" value=\\\"Ajouter au panier\\\" class=\\\"btnAdd\\\">\n <input type=\\\"hidden\\\" name=\\\"IdChooseArticle\\\" value=\\\"\" .$article[\"id\"].\"\\\">\";\n }", "title": "" }, { "docid": "09370d91c9586b982e801b3a08638d81", "score": "0.58186674", "text": "public function updateArticle()\n {\n $reqUpdateArticle = $this->db->prepare('UPDATE sp_article SET sp_article_title = :sp_article_title, sp_article_description = :sp_article_description, sp_article_image = :sp_article_image, sp_article_resume = :sp_article_resume, id_sp_series_pages = :id_sp_series_pages WHERE id = :id');\n $reqUpdateArticle->bindValue(':id', $this->id, PDO::PARAM_INT);\n $reqUpdateArticle->bindValue(':sp_article_title', $this->sp_article_title, PDO::PARAM_STR);\n $reqUpdateArticle->bindValue(':sp_article_description', $this->sp_article_description, PDO::PARAM_STR);\n $reqUpdateArticle->bindValue(':sp_article_image', $this->sp_article_image, PDO::PARAM_STR);\n $reqUpdateArticle->bindValue(':sp_article_resume', $this->sp_article_resume, PDO::PARAM_STR);\n $reqUpdateArticle->bindValue(':id_sp_series_pages', $this->id_sp_series_pages, PDO::PARAM_INT);\n if ($reqUpdateArticle->execute()) {\n return TRUE;\n }\n }", "title": "" }, { "docid": "e23e81f307065f812ac0cb14b0f3f257", "score": "0.5787512", "text": "function creerArti() {\t\r\n\t mysql_query(\"INSERT INTO if_articles (libelle) VALUES ('$this->libelle')\");\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b23b347eed31230716864e1b216515d3", "score": "0.5762258", "text": "public function show(Article $article)\n {\n\n }", "title": "" }, { "docid": "16165c3a2102457c6e5fe4e0e812402b", "score": "0.57534033", "text": "public function validerAction($id) {\r\n$em = $this->getDoctrine()->getManager();\r\n $nouvelle = $em->getRepository('UserNewsBundle:Nouvelle')->find($id);\r\n \r\n \r\n $nouvelle->setIsvalide(true);\r\n\r\n\t$em->persist($nouvelle);\r\n \r\n $em->flush();\r\n \r\n \r\n $entities = $em->getRepository('UserNewsBundle:Nouvelle')->findAll();\r\n return $this->redirect($this->generateUrl('nouvelle',array(\r\n 'entities' => $entities)));\r\n\r\n\r\n\r\n }", "title": "" }, { "docid": "8e795fdc1bca9b4fc2efd2c352bcca66", "score": "0.57290125", "text": "private function changeNews() {\n if($this->editNews && is_numeric($this->id)){\n $params = array($this->title, $this->slug, $this->data, $this->filter, $this->id);\n if($this->content->updateContent($params)) {\n $this->output = 'Informationen sparades.';\n }\n }\n else if($this->addNews){\n if($this->slug == \"\" || $this->slug == null) {\n $this->slug = substr($this->title, 0, 15);\n $this->slug = str_replace(array('å', 'ä', 'ö', ' '), array('a', 'a', 'o', '_'), $this->slug); \n }\n $params = array($this->title, $this->slug, $this->data, 'post', $this->filter);\n if($this->content->addContent($params)) {\n $this->output = 'Informationen sparades.';\n }\n }\n else {\n $this->output = 'Informationen sparades EJ.<br>';\n }\n }", "title": "" }, { "docid": "454d04ef786fdbcd0b242100512ce459", "score": "0.56966966", "text": "public function articleAction(Request $request){\n $article = new Article();\n\n\n $formBuilder = $this->get('form.factory')->createBuilder(FormType::class, $article );\n\n /* Ajout de champ de notre formulaire */\n\n\n $formBuilder\n ->add('titre', TextType::class)\n ->add('description', TextType::class)\n ->add('etatPublication', ChoiceType::class, array(\n 'choices' => array(\n 'Publier' => \"publier\",\n 'Broullon' => \"brouillon\"\n )))\n ->add('categorie', ChoiceType::class, array(\n 'choices' => array(\n 'Informatique' => \"informatique\",\n 'Sport' => \"sport\",\n 'Hi Tech'=>'hitech',\n 'Loisir'=>'loisir',\n 'Non spécifié'=>'notspecify'\n )))\n ->add('imageUrl', FileType::class)\n ->add('Enregistrer',SubmitType::class)\n ;\n\n\n $formArticle = $formBuilder->getForm();\n\n if ($request->isMethod('POST')) {\n\n $formArticle->handleRequest($request);\n\n\n if ($formArticle->isValid()) {\n $article->setDateParution(new \\DateTime());\n $article->setAuteur($this->username);\n\n // On enregistre notre objet $advert dans la base de données, par exemple\n $em = $this->getDoctrine()->getManager();\n $em->persist($article);\n $em->flush();\n\n\n return $this->redirectToRoute('home_homepage');\n\n }\n\n }\n\n return $this->render('@Dashboard/Default/dashboard.html.twig',array('formArticle'=>$formArticle->createView(),\n 'username'=>$this->username));\n\n\n }", "title": "" }, { "docid": "5d066ae7e19de78800dc9cf10666803d", "score": "0.56953466", "text": "function afficherUnArticleSelonNo($noArticle){\n\t$entries = chargerTousLesArticles();\n\tforeach ($entries as $article) {\n\t\tif($article[\"tags\"] == $noArticle){\n\t\t\tafficherArticle($article);\n\t\t}\n\t}\t\n}", "title": "" }, { "docid": "680bab9ca9a2f93d2ec259dbd5172f38", "score": "0.5688705", "text": "public function testSetPuArticle() {\n\n $obj = new Tarifs();\n\n $obj->setPuArticle(true);\n $this->assertEquals(true, $obj->getPuArticle());\n }", "title": "" }, { "docid": "ce8b280eaed063ad2611ea837597b641", "score": "0.56743693", "text": "public function makeUnexpectedArticle(){\n $this->title=\"erreur\";\n $this->content=\"<h1>Erreur</h1>\";\n $this->content.=\"l'article demandé n'existe pas\"; \n\n }", "title": "" }, { "docid": "0e24601008f70b921691108dc05ad159", "score": "0.56690234", "text": "public function ajout_article($article){\n return \"L'article $article a bien été ajouté au panier <br>\";\n }", "title": "" }, { "docid": "890ae56ce5990d9049398b709a35cfdf", "score": "0.5651344", "text": "public function addArticle(){\n if(isset($_POST['content'], $_POST['subTitle'], $_POST['title'], $_POST['resume'])) {\n $articleManager = new ArticleManager();\n\n $content = htmlentities($_POST['content']);\n $title = htmlentities($_POST['title']);\n $subTitle = htmlentities($_POST['subTitle']);\n $resume = htmlentities($_POST['resume']);\n\n $article = new Article();\n $article->setContent($content)->setTitle($title)->setSubTitle($subTitle)->setResume($resume);\n $articleManager->add($article);\n\n $controller = new HomeController();\n $controller->homePage(6);\n }\n else {\n $this->render('add.article', 'Ajouter un article');\n }\n }", "title": "" }, { "docid": "10add7d99059c7a797cb968879d6ffc2", "score": "0.5648024", "text": "public function add_article(){\n\t\t// Session\n\t\t$session = session();\n // Get Loged info\n if( $session->get('logged_in') === true ){\n $user_reg = true;\n } else {\n $user_reg = false;\n }\n\n\t\t$this->prop_model = model('PropertyModel');\n\n\t\t// Error While adding article \n\t\t// to database\n\t\t$error = false;\n\n\t\tif( @$this->request->getGet('error_ad') == 1 ){\n\t\t\t$error = true;\n\t\t}\n\n\t\t# Render #\n\t\treturn view(\"add_article\", [\n\t\t\t'header' => view(\"admin/header\",[\n\t\t\t\t'site_title' => \"Dodaj novi oglas | \" . $GLOBALS['site_title'],\n\t\t\t\t'meta_tags'\t => [\n\t\t\t\t\t'url' => site_url(),\n\t\t\t\t\t'title' => $GLOBALS['site_title'],\n\t\t\t\t\t'desc' => $GLOBALS['meta_desc'],\n\t\t\t\t\t'image' => base_url() . '/public/assets/img/avatars/64_1.png'\n\t\t\t\t]\n\t\t\t]),\n\t\t\t'footer' => view(\"admin/footer\"),\n\t\t\t'navigation' => view(\"navigation\", [\n\t\t\t\t'properties' => $this->prop_model->get_props('property_type'),\n\t\t\t\t'active_item' => 'add_article'\n\t\t\t]),\n\t\t\t'user_navigation' => view(\"user_navigation\"),\n\t\t\t'prop_types' => $this->prop_model->get_props('property_type'),\n\t\t\t'rent_types' => $this->prop_model->get_props('rent_type'),\n\t\t\t'custom_types' => $this->prop_model->get_props('customs_type'),\n\t\t\t'error' => $error,\n\t\t\t'user_reg'\t\t => $user_reg,\n\t\t\t'user_data'\t\t => $session->get('logged_data')\n\t\t]);\n\t}", "title": "" }, { "docid": "e26d931ca1910cc3b227b6e98fcf205c", "score": "0.5629162", "text": "function indexer_article($id_article) {\n\tmarquer_indexer('spip_articles', $id_article);\n}", "title": "" }, { "docid": "50562f25c7e8b984ad3c321d99db379f", "score": "0.56260216", "text": "function valider_inscription_autoriser() {\n}", "title": "" }, { "docid": "8a1e8a62fdd9860bbe6cf0b1ec0b5c9c", "score": "0.5623985", "text": "function viewArticle($articleId)\n {\n // query the article from the database\n $articleQuery = mysql_query(\"SELECT account_id, category_id, issue_id, title, content, date_submitted, publish_type, status FROM argus_articles WHERE article_id = '\".$articleId.\"'\") or die(mysql_error());\n \n // check if there is an article queried from the database\n if(mysql_num_rows($articleQuery) > 0)\n {\n // set the attributes\n $authorName = $this -> getAuthorName(mysql_result($articleQuery,0,\"account_id\"));\n $categoryId = mysql_result($articleQuery,0,\"category_id\");\n $categoryName = $this -> getCategoryName($categoryId);\n $issueId = mysql_result($articleQuery,0,\"issue_id\");\n $issueName = $this -> getIssueName($issueId);\n $title = mysql_result($articleQuery,0,\"title\");\n $content = mysql_result($articleQuery,0,\"content\");\n $dateSubmitted = date(\"F d, Y\", mysql_result($articleQuery,0,\"date_submitted\"));\n $publishType = mysql_result($articleQuery,0,\"publish_type\");\n $status = mysql_result($articleQuery,0,\"status\");\n \n // check if the issue has been set\n if($issueId == 0)\n {\n // set the title for articles that there issue has not been set\n echo \"\n <h3><a href='argusarticles.php?event=\".strtolower($status).\"'>\".ucfirst(strtolower($status)).\"</a> &raquo \".$title.\"</h3>\";\n }\n // check the status of the articl if it is published\n else if($status == 'PUBLISHED')\n {\n // set the title for the articles that there categories that has not been set\n echo \"<h3><a href='argusarticles.php?event=published'>Published</a> &raquo; \".$title.\"</h3>\";\n }\n else\n {\n // set the title for articles that there issues has been set\n echo \"\n <h3><a href='argusarticles.php?event=issues'>Issues</a> &raquo <a href='argusarticles.php?event=viewissue&issue=\".$issueId.\"'>\".$issueName.\"</a> &raquo \".$title.\"</h3>\";\n }\n \n echo \"<div class='bg1'>\";\n \n // display the attributes\n echo \"\n <p>\n Article Information\n </p>\n <p id='box'>\n Title : \".$title.\"<br>\n Category : \".$categoryName.\"<br>\n Issue : \".$issueName.\"<br>\n Author : \".$authorName.\"<br>\n Date Submitted : \".$dateSubmitted.\"<br>\n Publish Type : \".$publishType.\"<br>\n Status : \".$status.\"<br>\n </p>\";\n \n // determine the status of the article so as to know what button is to set for managing the article\n echo \"<p align='right'>\";\n \n if($status == \"PENDING\")\n {\n // buttons for pending\n echo \"\n <a href='argusarticles.php?event=\".strtolower($status).\"&action=approve&article=\".$articleId.\"'><input type='button' id='submit1' value='Approve'></a> \n <a href='argusarticles.php?event=\".strtolower($status).\"&action=reject&article=\".$articleId.\"'><input type='button' id='submit1' value='Reject'></a>\";\n }\n else if($status == \"APPROVED\")\n {\n // buttons for approved\n echo \"\n <a href='argusarticlesedit.php?article=\".$articleId.\"'><input type='button' id='submit1' value='edit'></a> \";\n \n // check if the approved article has an issue\n // the publish button is only provided to articles who doesnt have any issue\n if($issueId == 0)\n {\n echo \"<a href='argusarticles.php?event=\".strtolower($status).\"&action=publish&article=\".$articleId.\"'><input type='button' id='submit1' value='Publish'></a> \";\n }\n else\n {\n // display the remove from issue button\n echo \"<a href='argusarticles.php?event=viewissue&issue=\".$issueId.\"&action=remove&article=\".$articleId.\"'><input type='button' id='submit1' value='Remove'></a> \";\n }\n \n echo \"<a href='argusarticles.php?event=\".strtolower($status).\"&action=reject&article=\".$articleId.\"'><input type='button' id='submit1' value='Reject'></a>\";\n }\n else if($status == \"REJECTED\")\n {\n // buttons for rejected\n echo \"\n <a href='argusarticles.php?event=\".strtolower($status).\"&action=approve&article=\".$articleId.\"'><input type='button' id='submit1' value='Approve'></a> \n <a href='argusarticles.php?event=\".strtolower($status).\"&action=delete&article=\".$articleId.\"'><input type='button' id='submit1' value='Delete'></a>\";\n }\n else if($status == \"PUBLISHED\")\n {\n echo \"\n <a href='argusarticles.php?event=viewcategorypublished&category=\".$categoryId.\"&action=remove&article=\".$articleId.\"'><input type='submit' id='submit1' value='Remove'</a>\";\n }\n \n echo \"</p>\";\n \n // display the content\n echo \"<div>\".$content.\"</div>\";\n \n echo \"</div>\";\n }\n \n return;\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "6e0c82610818afc796e3a4bc07addd71", "score": "0.5622341", "text": "public function show(Article $article)\n {\n //\n }", "title": "" }, { "docid": "11ecaafc07f86483800b7796984a4782", "score": "0.5620516", "text": "public function addArticle()\n {\n $reqAddArticle = $this->db->prepare('INSERT INTO sp_article (sp_article_title, sp_article_description, sp_article_image, sp_article_resume, sp_article_date, id_sp_series_pages) VALUES (:sp_article_title, :sp_article_description, :sp_article_image, :sp_article_resume, :sp_article_date, :id_sp_series_pages)');\n $reqAddArticle->bindValue(':sp_article_title', $this->sp_article_title, PDO::PARAM_STR);\n $reqAddArticle->bindValue(':sp_article_description', $this->sp_article_description, PDO::PARAM_STR);\n $reqAddArticle->bindValue(':sp_article_image', $this->sp_article_image, PDO::PARAM_STR);\n $reqAddArticle->bindValue(':sp_article_resume', $this->sp_article_resume, PDO::PARAM_STR);\n $reqAddArticle->bindValue(':sp_article_date', $this->sp_article_date, PDO::PARAM_STR);\n $reqAddArticle->bindValue(':id_sp_series_pages', $this->id_sp_series_pages, PDO::PARAM_INT);\n if ($reqAddArticle->execute()) {\n return TRUE;\n }\n }", "title": "" }, { "docid": "cbad4f286a39d2f8b74df8d6f7d37b91", "score": "0.562016", "text": "public function getIdpublication()\n{\nreturn $this->idpublication;\n}", "title": "" }, { "docid": "3cb7576de81c20895b371e58bedab242", "score": "0.56161505", "text": "function accesrestreint_article_restreint($id_article, $id_auteur=null){\n\tinclude_spip('public/quete');\n\tinclude_spip('inc/acces_restreint');\n\t$article = quete_parent_lang('spip_articles',$id_article);\n\treturn\n\t\t@in_array($article['id_rubrique'],\n\t\t\taccesrestreint_liste_rubriques_exclues(!test_espace_prive(), $id_auteur)\n\t\t);\n}", "title": "" }, { "docid": "3806adc6a7ac19362de42660cb5541e6", "score": "0.5606273", "text": "public function setEtatArticle($etat, $ref)\n\t{\n\t\t$etat = filter_var($etat, FILTER_SANITIZE_STRING); // filtre l'etat\n\t\t$ref = filter_var($ref, FILTER_SANITIZE_STRING); // filtre la ref\n\n\t\t$sql = 'UPDATE Article SET etat_Publi = ? WHERE ref_Article = ?'; // la requete\n\t\t$this->db->query($sql, array($etat, $ref)); // lance la requete\n\t}", "title": "" }, { "docid": "c795dce5436bcb3900e10e016ae7c4e9", "score": "0.55953044", "text": "public static function getArticle() {\n if (self::$countView && self::$user->is('guest')) {\n self::$article->increaseViewCount();\n self::$repository->update(self::$article)->execute();\n Engine::getDB()->flush();\n\n self::$countView = false;\n }\n return self::$article;\n }", "title": "" }, { "docid": "b1c757b3c24e0206b28d21aee4d83887", "score": "0.55943847", "text": "public function getArticle()\n {\n return $this->article;\n }", "title": "" }, { "docid": "b1c757b3c24e0206b28d21aee4d83887", "score": "0.55943847", "text": "public function getArticle()\n {\n return $this->article;\n }", "title": "" }, { "docid": "daf03f2d55f2bcf0824b1b263f530766", "score": "0.5588768", "text": "public static function setArticle(Article $article) {\n self::$article = $article;\n }", "title": "" }, { "docid": "0abb4589cbf6469315565dc3dce41009", "score": "0.5557066", "text": "public function show(Article $article) {\n\t\t//\n\t}", "title": "" }, { "docid": "2ca6a931003a10a4bad05a095aec6ac3", "score": "0.55253017", "text": "private static function showTheArticle () {\n\t\t\tif (ADMIN) {\n\t\t\t\t$availableTags = Tags::get();\n\t\t\t\t$avTags = array();\n\n\t\t\t\tforeach ($availableTags as $avTag) {\n\t\t\t\t\t$avTags[] = $avTag['title'];\n\t\t\t\t}\n\n\t\t\t\tself::$tplVars['available_tags'] = implode(', ', $avTags);\n\t\t\t}\n\n\t\t\t# If no particular article is requested and we're admin and not on the home-page\r\n\t\t\tif (!isset(Router::$params['url_str']) and ADMIN) {\n\t\t\t\tif (Router::getController() != 'Home') {\r\n\t\t\t\t\taFramework_BaseModule::$tplVars['html_title'] = Lang::get('Add an Article');\n\t\t\t\t}\r\n\t\t\t}\n\t\t\t# Or if we're on the AddArticle-page and NOT admin\n\t\t\telseif (Router::getController() == 'AddArticle' and !ADMIN) {\n\t\t\t\tFourOFour::run();\n\t\t\t}\n\t\t\t# Or it's a normal article-display\r\n\t\t\telse {\r\n\t\t\t\t# If url_str is set get that article else get latest article\n\t\t\t\t$article = isset(Router::$params['url_str']) ? Articles::getByURLStr(Router::$params['url_str']) : Articles::get('pub_date', 'DESC', 0, 1);\r\n\n\t\t\t\t# Make sure URL-date is the same as article-date if a particular article is requested\n\t\t\t\tif (isset(Router::$params['url_str'])) {\n\t\t\t\t\t$urlYMD = Router::$params['year'] . Router::$params['month'] . Router::$params['day'];\n\t\t\t\t\t$articleYMD = $article['year'] . $article['month'] . $article['day'];\n\t\t\t\t}\n\t\t\t\t# If no article exists or the URL-date isn't the same run 404\n\t\t\t\tif (!$article or (isset(Router::$params['url_str']) and $urlYMD != $articleYMD)) {\r\n\t\t\t\t\tFourOFour::run();\r\n\t\t\t\t}\n\t\t\t\t# Article exists and URL-date is either correct or not set - display article\n\t\t\t\telse {\r\n\t\t\t\t\tself::$tplVars['article']\t\t\t= $article;\r\n\t\t\t\t\tself::$tplVars['article']['tags']\t= Tags::getByArticlesID($article['articles_id']);\r\n\t\t\t\t\tself::$tplVars['more_cut']\t\t\t= true;\n\n\t\t\t\t\t# If we're on a particular article\r\n\t\t\t\t\tif (isset(Router::$params['url_str'])) {\r\n\t\t\t\t\t\taFramework_BaseModule::$tplVars['html_title']\t\t= $article['title'];\r\n\t\t\t\t\t\taFramework_BaseModule::$tplVars['meta_description']\t= $article['meta_description'];\r\n\t\t\t\t\t\taFramework_BaseModule::$tplVars['meta_keywords']\t= $article['meta_keywords'];\r\n\r\n\t\t\t\t\t\tself::$tplVars['more_cut'] = false;\n\t\t\t\t\t}\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "531adbaf56ddc51e953342b6e4fa9948", "score": "0.55249536", "text": "function add_article($titre, $contenu, $lien) {\r\n\r\n if ((preg_match(\"#^http://#\", $lien) != 1) && ($lien != \"\"))\r\n $lien = \"http://\" . $lien;\r\n $art = new Article($titre, $contenu, $lien);\r\n\r\n $arts_node = $this->html_doc->getElementById(\"articles\");\r\n $arts_node->appendChild($this->html_doc->importNode($art->get_controls(), true));\r\n $arts_node->appendChild($this->html_doc->importNode($art->get_content(), true));\r\n\r\n $this->validate_arts();\r\n\r\n $this->html_doc->saveHTMLFile(\"draft.html\");\r\n }", "title": "" }, { "docid": "69047933e52a0309ba6ea57b49892daa", "score": "0.5516497", "text": "public static function viewOne($idArticle)\n {\n try{\n $bdd = Database::getPDO();\n $req = $bdd->query('SELECT * FROM posts WHERE id =\"' .$idArticle . '\"');\n return $req->fetch();\n }catch (Exception $e) {\n throw new Exception(\"Article non trouvé\");\n }\n }", "title": "" }, { "docid": "d63b88bcce767f721f23cdc4de92248a", "score": "0.55083716", "text": "public function __construct($article_id, $article_title, $article_content, $article_timestamp, $article_image, $article_status, $article_type, $article_staff_pick){\n\t\t \t$this->id = $article_id;\n\t\t \t$this->title = $article_title;\n\t\t \t$this->content = $article_content;\n\t\t \t$this->timestamp = $article_timestamp;\n\t\t \t$this->image = $article_image;\n\t\t \t$this->status = $article_status;\n\t\t \t$this->type = $article_type;\n\t\t \t$this->staff_pick = $article_staff_pick;\n\t\t \t\n\t\t \treturn true;\n\t\t }", "title": "" }, { "docid": "514a0a1042cfac034f97c3d1459a83bb", "score": "0.5501156", "text": "public function setTitulo($titulo){$this->titulo = $titulo;}", "title": "" }, { "docid": "1afaec3b331de3ff2e34a1c6ef434822", "score": "0.549983", "text": "function is_article() {\n\tglobal $app;\n\n\treturn $app['registry']->had('article');\n}", "title": "" }, { "docid": "8b0211fdabbdd9e337b2902dad86abd0", "score": "0.54997647", "text": "public function saving(Article $article)\n {\n }", "title": "" }, { "docid": "4c8342bf0634726e11eb2786f27c9d18", "score": "0.5495523", "text": "function fnIfProtected($article)\r\n{ \r\n if ($article)\r\n \treturn fnIfProtected1($article->getTitle());\r\n else return false;\r\n}", "title": "" }, { "docid": "bb198b8aa3181be04d522d27d86b92a8", "score": "0.5493617", "text": "function publishArticle($articleId)\n {\n // check the category of the article\n $categoryQuery = mysql_query(\"SELECT category_id FROM argus_articles WHERE article_id = '\".$articleId.\"'\") or die(mysql_error());\n $categoryId = mysql_result($categoryQuery,0,\"category_id\");\n \n // query the status of the category\n $statusQuery = mysql_query(\"SELECT status FROM argus_categories WHERE category_id = '\".$categoryId.\"'\") or die(mysql_error());\n $status = mysql_result($statusQuery,0,\"status\");\n \n if($status == \"DISABLED\")\n {\n // force the category to be enabled if the category of the article being published is disabled\n mysql_query(\"UPDATE argus_categories SET status = 'ENABLED' WHERE category_id = '\".$categoryId.\"' AND STATUS = 'DISABLED'\") or die(mysql_error());\n }\n \n // count how many articles have already been published in that category then set the position\n $articlesQuery = mysql_query(\"SELECT article_id FROM argus_articles WHERE category_id = '\".$categoryId.\"' AND status = 'PUBLISHED'\") or die(mysql_error());\n $articlesCount = mysql_num_rows($articlesQuery);\n $position = $articlesCount + 1;\n \n // query the publish type of the article if it is MAIN or FEATURED or NONE\n // at the same time query also the issue of the article to check if the article has an issue or none\n $articleQuery = mysql_query(\"SELECT publish_type, issue_id FROM argus_articles WHERE article_id = '\".$articleId.\"'\") or die(mysql_error());\n \n // check if the article was queried\n if(mysql_num_rows($articleQuery) > 0)\n {\n // set the publish type\n $publishType = mysql_result($articleQuery,0,\"publish_type\");\n $issueId = mysql_result($articleQuery,0,\"issue_id\");\n \n // check the publish type\n if($publishType == \"MAIN\")\n {\n // query the number of MAIN published articles\n $articlesQuery = mysql_query(\"SELECT article_id FROM argus_articles WHERE publish_type = 'MAIN' AND status = 'PUBLISHED'\") or die(mysql_error());\n $articlesCount = mysql_num_rows($articlesQuery);\n \n // set the position of the article that is to be published\n $publishPosition = $articlesCount + 1;\n }\n else if($publishType == \"FEATURED\")\n {\n // query the number of FEATURED published articles\n $articlesQuery = mysql_query(\"SELECT article_id FROM argus_articles WHERE publish_type = 'FEATURED' AND status = 'PUBLISHED'\") or die(mysql_error());\n $articlesCount = mysql_num_rows($articlesQuery);\n \n // set the position of the articke that is to be published\n $publishPosition = $articlesCount + 1;\n }\n \n // check if the article has an issue id\n // articles that does not have any issue are assumed to have an issue id of \"ZERO\"\n if($issueId == 0)\n {\n // if the article does not have any issue id and is being published, query the current\n // issue which will be used\n $currentIssueIdQuery = mysql_query(\"SELECT issue_id FROM argus_issues WHERE status = 'PUBLISHED'\") or die(mysql_error());\n $currentIssueId = mysql_result($currentIssueIdQuery,0,\"issue_id\");\n \n // set the issue id as the current issue id\n $issueId = $currentIssueId;\n }\n }\n \n // update the issue of the article that is going to be published and at the same time publish the article\n mysql_query(\"UPDATE argus_articles SET status = 'PUBLISHED', issue_id = '\".$issueId.\"', date_published='\".time().\"', position = '\".$position.\"', publish_position = '\".$publishPosition.\"' WHERE article_id = '\".$articleId.\"' AND status = 'APPROVED'\") or die(mysql_error());\n \n // set the rating 0\n mysql_query(\"INSERT INTO argus_article_ratings(article_id, total_votes, total_value) VALUES('\".$articleId.\"','0','0')\") or die(mysql_error());\n \n // set the hits to 0\n mysql_query(\"INSERT INTO argus_article_hits(article_id, hits) VALUES('\".$articleId.\"','0')\") or die(mysql_error());\n \n // archive article after published\n $this -> archiveArticle($articleId);\n \n return;\n }", "title": "" }, { "docid": "7600636a2bd11c1a758dfd4157ac6000", "score": "0.54921556", "text": "function articleEdit()\n\t\t{\n\t\t\t\n\t\t\t//\tThis function is used to edit article\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t\n\t\t\t$userInfo = $this->userInfo();\n\t\t\tif (!$userInfo)\n\t\t\t{\n\t\t\t\theader(\"location:index.php\");\n\t\t\t}\n\t\t\telse \t\t\t\n\t\t\t{\t\n\t\t\t\t\n\t\t\t\t//Getting article info\n\t\t\t\t\n\t\t\t\t$showForm = 1;\n\t\t\t\t\n\t\t\t\t$error = \"\";\n\t\t\t\t$articleId = (int) $this->value('id');\n\t\t\t\t\n\t\t\t\t$userInfo = $this->userInfo();\n\t\t\t\t$userId = $userInfo['user_id'];\n\t\t\t\t$userType = ($userInfo['usertype_id'] == 4) ? \"SysAdmin\" : \"\";\t\t\t\t\n\t\t\t\t\n\t\t\t\t//check if its a valid article id, does that article exist and if yes then is status active\n\t\t\t\t$query = \"SELECT * FROM article WHERE status <> 3 AND article_id =\". $articleId;\n\t\t\t\t\n\t\t\t\t$result = $this->execute_query($query);\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (!$result) \n\t\t\t\t{\n\t\t\t\t\t// that is invalid article id or a valid article id but is_deleted == 1\t\t\t\t\t\n\t\t\t\t\t//unset($_GET['id']);\t\n\t\t\t\t\theader(\"location:index.php?action=articleList\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//its a valid article id so go for edit\n\t\t\t\t\t$article_info = $this->fetch_array($result);\n\t\t\t\t\t\n\t\t\t\t\t$creatorId = $article_info['user_id'];\n\t\t\t\t\t\n\t\t\t\t\t//check if the user has access to edit the article\n\t\t\t\t\t\n\t\t\t\t\tif(\"SysAdmin\" == $userType || $creatorId == $userId)\n\t\t\t\t\t{\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$fromPost = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//check if form has been submitted or not\n\n\t\t\t\t\t\tif(\"Save Changes\" == $this->value('submitted_save') && \"saveArticle\" == $_SESSION['articleAction'])\n\t\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//that means form has been posted so check for validation\t\n\t\t\t\t\t\t\t$error = $this->validateArticleForm();\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (count($error) > 0)\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$fromPost = true;\t\t\n\t\t\t\t\t\t\t\t$showForm = 1;\t\t\t\t\t\t\t\t\t\t\t\t\t\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\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//first check the duplicates\n\t\t\t\t\t\t\t\t$articleName = addslashes($this->value('article_name'));\t\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$query = \"SELECT article.article_name FROM article INNER JOIN user ON article.user_id = user.user_id WHERE article.status <> 3 AND article.article_name LIKE '\".$articleName.\"' AND user.usertype_id = 4 AND article.article_id <> '\".$articleId .\"'\";\n\t\t\t\t\t\t\t\t$result = $this->execute_query($query);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$noRows = $this->num_rows($result);\t\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\tif ($noRows != 0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$error = 'Article name: exists in the system. Please choose another name';\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$fromPost = true;\n\t\t\t\t\t\t\t\t\t$showForm = 1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t// perfect save the details give the file name\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$fileUploadErrMsg = $this->updateArticle($articleId);\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (\"\" == $fileUploadErrMsg)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//Also update the article_speciality\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t// since its an update so\n\t\t\t\t\t\t\t\t\t\t$sql = \"DELETE FROM article_speciality WHERE article_id = \".$articleId;\n\t\t\t\t\t\t\t\t\t\t$this->execute_query($sql);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$tableName = \"article_speciality\";\n\t\t\t\t\t\t\t\t\t\t$fieldArray = null;\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tfor($i=0;$i<count($_POST['speciality']);++$i)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t$fieldArray = array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"article_id\" => $articleId,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"speciality\" => $_POST['speciality'][$i],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"creation_date\" => \"NOW()\"\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$result = $this->executeInsertQuery($tableName,$fieldArray,false);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Also, speciality block\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$queryArticle = \"SELECT article.article_id FROM article WHERE parent_article_id = \".$articleId;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$resultArticle = $this->execute_query($queryArticle);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif($this->num_rows($resultArticle)!= 0)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\twhile($row = $this->fetch_array($resultArticle))\n\t\t\t\t\t\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t// since its an update so\n\t\t\t\t\t\t\t\t\t\t\t\t\t$sql = \"DELETE FROM article_speciality WHERE article_id = \".$row['article_id'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t$this->execute_query($sql);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t$tableName = \"article_speciality\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t$fieldArray = null;\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor($i=0;$i<count($_POST['speciality']);++$i)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$fieldArray = array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"article_id\" => $row['article_id'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"speciality\" => $_POST['speciality'][$i],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"creation_date\" => \"NOW()\"\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$result = $this->executeInsertQuery($tableName,$fieldArray,false);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t}//end of while\n\t\t\t\t\t\t\t\t\t\t\t}//end of if\t\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}// end of speciality copy block\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t// unset $_SESSION['articleAction']\n\t\t\t\t\t\t\t\t\t\t$_SESSION['articleAction'] = \"\"; //to avoid resubmission\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//show article listing with message article edited successfully\n\t\t\t\t\t\t\t\t\t\t$showForm = 0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$error = $fileUploadErrMsg;\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$fromPost = true;\n\t\t\t\t\t\t\t\t\t\t$showForm = 1;\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\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\telseif (\"Save Changes\" == $this->value('submitted_save') && (isset($_SESSION['articleAction']) && \"\" == $_SESSION['articleAction'])) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t//case resubmission that is user has pressed F5 or refreshed the page after form submission\n\t\t\t\t\t\t\t\t// so we need to prevent resubmission of form\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//show article listing without any message\n\t\t\t\t\t\t\t\t$showForm = 0;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\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\t//first time\n\t\t\t\t\t\t\t\t$fromPost = false;\n\t\t\t\t\t\t\t\t$showForm = 1;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (1 == $showForm)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// this block of code displays the article edit form\n\t\t\t\t\t\t\t$selected = \"\";\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$userId = $userInfo['user_id'];\n\t\t\t\t\t\t\t$userType = ($userInfo['usertype_id'] == 4) ? \"SysAdmin\" : \"\";\n\t\t\t\t\t\t\t$replace['header'] = $this->build_template($this->get_template(\"header\"));\n\t\t\t\t\t\t\t$replace['footer'] = $this->build_template($this->get_template(\"footer\"));\t\n\t\t\t\t\t\t\t//$replace['sidebar'] = $this->build_template($this->get_template(\"sidebar\"));\t\n\t\t\t\t\t\t\t$replace['sidebar'] = $this->sidebar();\n\t\t\t\t\t\t\t$replace['articleBreadcrumb'] = strtoupper($article_info['article_name']); \n\t\t\t\t\t\t\t$replace['articleHeaderBar'] = $article_info['article_name']; \n\t\t\t\t\t\t\t//$replace['richTextAreaPath'] = $this->config['tx']['richTextArea']['dirPath'];\n\t\t\t\t\t\t\t//$replace['imagePath'] = $this->config['tx']['article']['media_url'];\n\t\t\t\t\t\t\t//$replace['imageURL'] = $this->config['tx']['article']['media_url'];\n\t\t\t\t\t\t\t$replace['article_id'] = $articleId;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$arrCheckBox = array(\n\t\t\t\t\t\t\tarray(\"name\" => \"speciality1\", \"lblName\" => \"Ortho\", \"value\" => 1, \"checked\" => false, \"extra\" => \"onMouseOver=\\\"help_text(this, '<!helpText>')\\\"\"),\n\t\t\t\t\t\t\tarray(\"name\" => \"speciality2\", \"lblName\" => \"PED\", \"value\" => 2, \"checked\" => false, \"extra\" =>\"onMouseOver=\\\"help_text(this, '<!helpText>')\\\"\"),\n\t\t\t\t\t\t\tarray(\"name\" => \"speciality3\", \"lblName\" => \"Cardio\", \"value\" => 3, \"checked\" => false, \"extra\" =>\"onMouseOver=\\\"help_text(this, '<!helpText>')\\\"\"),\n\t\t\t\t\t\t\tarray(\"name\" => \"speciality4\", \"lblName\" => \"Neuro\", \"value\" => 4, \"checked\" => false, \"extra\" =>\"onMouseOver=\\\"help_text(this, '<!helpText>')\\\"\")\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t);\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tif ($fromPost === true) \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$replace['speciality'] = $this->buildInputCheckBox($arrCheckBox,'speciality',$this->value('speciality'));\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse \n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$sql = \"SELECT speciality FROM article_speciality WHERE article_id = \".$articleId;\n\t\t\t\t\t\t\t\t$result = $this->execute_query($sql);\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\twhile($row = $this->fetch_array($result))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$arraySpeciality[] = $row['speciality'];\t\t\t\t\t\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$replace['speciality'] = $this->buildInputCheckBox($arrCheckBox,'speciality',$arraySpeciality);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['helpText'] = 'Put the checkmark against the speciality box to which this article is related to';\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['article_name'] = ($fromPost)? $this->value('article_name') : $article_info['article_name']; \t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['headline'] = ($fromPost === true)? $this->value('headline') : $article_info['headline']; \t\t\t\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$replace['link_url'] = ($fromPost)? $this->value('link_url') : $article_info['link_url']; \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$selected = ($fromPost)? $this->value('article_type') : $article_info['article_type']; \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$selectedStatus = ($fromPost)? $this->value('status') : $article_info['status'];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['displayContent1'] = (1 == $selected)? \"block\":\"none\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['displayContent2'] = (2 == $selected)? \"block\":\"none\";\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$arrOptions = array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"\"=>\"Choose...\",\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"1\"=>\"Link\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"2\"=>\"File\"\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\t\n\t\t\t\t\t\t\t$arrOptionStatus = array(\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"1\"=>\"Active\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"2\"=>\"Inactive\"\n\t\t\t\t\t\t\t\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\t\t\t\t\t\t\n\t\t\t\t\t\t\t$fileURL = $article_info['file_url'];\t\t\t\t\n\t\t\t\t\t\t\t$fileInputFieldName = 'file_url';\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['error'] = $error;\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$_SESSION['articleAction'] = 'saveArticle'; \n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['mayBeShowMedia'] = $this->maybeShowMedia($articleId,$fileInputFieldName,$fileURL);\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['options']\t= $this->build_select_option($arrOptions,$selected);\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$replace['optionStatus']\t= $this->build_select_option($arrOptionStatus,$selectedStatus);\t\t\t\t\n\t\t\t\t\t\t\t$replace['browser_title'] = \"Edit Article\";\n\t\t\t\t\t\t\t$replace['body'] = $this->build_template($this->get_template(\"articleForm\"),$replace);\n\t\t\t\t\t\t\t$this->output = $this->build_template($this->get_template(\"main\"),$replace);\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// this block of code redirects to the list of articles\n\t\t\t\t\t\t\t//header(\"location:index.php?action=articleList\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$url = $this->redirectUrl('articleList');\n\t\t\t\t\t\t\theader(\"location:\".$url);\n\t\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t}\t\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// this block of code redirects to the list of articles this is to handle the case of URL string \n\t\t\t\t\t\t// manipulation\n\t\t\t\t\t\t//unset($_GET['id']);\t\n\t\t\t\t\t\theader(\"location:index.php?action=articleList\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t}\t\n\t\t}", "title": "" }, { "docid": "332a6f8531bd183a3beb20741af24067", "score": "0.5487435", "text": "public function testSetTypeArticle() {\n\n $obj = new Tarifs();\n\n $obj->setTypeArticle(\"typeArticle\");\n $this->assertEquals(\"typeArticle\", $obj->getTypeArticle());\n }", "title": "" }, { "docid": "654dd27944cfb3974969c44fcc28fafe", "score": "0.54749453", "text": "public function isArticle()\n\t{\n\t\treturn $this->publish_as_article;\n\t}", "title": "" }, { "docid": "05e58c9010936f9bae06bf6544953e49", "score": "0.54748416", "text": "function autoriser_article_dupliquer($faire, $type='', $id=0, $qui = NULL, $opt = NULL){\n\tif (strcmp(lire_config('duplicator/config/duplic_article'),'oui') == 0){\n\t\t\n\t\t// Le webmestre peut dupliquer les articles\n\t\tif(autoriser(\"webmestre\"))\n\t\t\treturn true;\n\t\t\t\n\t\t// Administrateur\n\t\tif ( (strcmp($qui['statut'], '0minirezo') == 0) AND \n\t\t\t\t((strcmp(lire_config('duplicator/config/duplic_article_autorisation'),\"0minirezo\") == 0) OR\n\t\t\t\t (strcmp(lire_config('duplicator/config/duplic_article_autorisation'),\"1comite\") == 0)) )\n\t\t\treturn true;\n\t\t\t\n\t\t// Rédacteur\n\t\tif (( strcmp($qui['statut'], '1comite') == 0) AND (strcmp(lire_config('duplicator/config/duplic_article_autorisation'),'1comite') == 0 ))\n\t\t\treturn true;\n\n\t}\n\treturn false;\n\n}", "title": "" }, { "docid": "67e989a865d8e3837400f7ac69c52500", "score": "0.5469563", "text": "function saveArticle($articleId, $title, $categoryId, $issueId, $intro, $content, $publishType)\n {\n // escape the characters that are needed to be escaped to avoid sql injection\n $title = mysql_escape_string($title);\n\t\t\t$content = mysql_escape_string($content);\n\t\t\t$intro = mysql_escape_string($intro);\n \n // validate the title\n $titleError = $this -> validateTitle($title);\n \n // check if validation has passed\n if($titleError == null)\n {\n // if validation has succeeded, update the article from the database\n mysql_query(\"UPDATE argus_articles SET title='\".$title.\"', category_id='\".$categoryId.\"', issue_id='\".$issueId.\"', intro='\".$intro.\"', content='\".$content.\"', date_modified='\".time().\"', publish_type='\".$publishType.\"' WHERE article_id = '\".$articleId.\"' AND status = 'APPROVED'\") or die(mysql_error());\n \n // return successful save\n return true;\n }\n else\n {\n // if validation has failed, set the errors which will be soon received when needed\n $this -> errors = array(\"title\" => $titleError);\n \n // return unsuccessful save\n return false;\n }\n \n return;\n }", "title": "" }, { "docid": "9d1ca247aaf4c8e2c32257576d1d6795", "score": "0.5467075", "text": "private function articles()\n {\n $articles = new Apps\\Article(array(\n array(\n 'article.article_parent' => array( '=', 0 ),\n 'page.page_id' => array( '=', Page::$actuelle['page_id'], PDOFournie::NOT_QUOTE ),\n 'article.article_date_reviser' => array( '<=', 'NOW()', PDOFournie::NOT_QUOTE ),\n 'article.article_date_max' => array( array( '>=', 'NOW()', PDOFournie::NOT_QUOTE ), array( 'IS NULL', null ) )\n )\n )); // ne pas oublier l'alias pour la limit\n $articles->setAlias('numpage');\n $articles->addOrder('!id_post');\n $articles->limit(10);\n \n $this->assign( 'all_article', $articles->publier() );\n $this->assign( 'nb_article', $articles->count() );\n }", "title": "" }, { "docid": "5ce92bc0575a00c93631d855341057e0", "score": "0.5448785", "text": "public function updateArticle(Article $article){\n $sql = 'UPDATE article SET title = :title, description = :description, url = :url,url_img = :url_img, date_create = :date_create, id_user = :id_user, id_category = :id_category WHERE id_article = :id';\n $req = $this->bdd->prepare($sql);\n $req->bindValue('title',$article->getTitle(),PDO::PARAM_STR);\n $req->bindValue('description',$article->getDescription(),PDO::PARAM_STR);\n $req->bindValue('date_create',$article->getDate_create(),PDO::PARAM_STR);\n $req->bindValue('url',$article->getUrl(),PDO::PARAM_STR);\n $req->bindValue('url_img',$article->getUrl_img(),PDO::PARAM_STR);\n $req->bindValue('id_user',$article->getId_user(),PDO::PARAM_INT);\n $req->bindValue('id_category',$article->getId_category(),PDO::PARAM_INT);\n $req->bindValue('id',$article->getId_article(),PDO::PARAM_INT);\n $req->execute();\n }", "title": "" }, { "docid": "d92ba2257b2e7c725851615a1d9e53e2", "score": "0.54439944", "text": "public function onPrepareContent(&$article)\n\t{\n\t\t$app = JFactory::getApplication();\n\t\tif($app->isAdmin()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// get document types\n\t\t$this->_getdoc();\n\n\t\t$text = &$article->text;\n\t\t$introtext = &$article->introtext;\n\t\t\n\t\t// check whether plugin has been unpublished\n\t\tif ( !$this->params->get( 'enabled', 1 ) ) {\n\t\t\t$text = preg_replace( $this->regex, '', $text );\n\t\t\treturn true;\n\t\t}\n\t\n\t\t// perform the replacement\t\n\t\t$this->_replace( $text );\t\n\t\t$this->_replace( $introtext );\t\n\t}", "title": "" }, { "docid": "9221134812720e77b355b454b66d50d0", "score": "0.54284304", "text": "public function actionArticleView()\n {\n $article = $this->mArticles->getArticle($_GET['id'])[0];\n $this->title .= '::' . $article['title'];\n $this->content = $this->template('Views/v_article.php', ['article' => $article]);\n }", "title": "" }, { "docid": "e5c1e2706fbdfecf4ab9a84227db5b01", "score": "0.53996223", "text": "public function add_article_datas ()\r\n {\r\n $feedback = [];\r\n $flag = false;\r\n if (isset($_POST[\"title\"]) && isset($_POST[\"content\"]) && isset($_POST[\"author_id\"]) && isset($_POST[\"category_id\"]))\r\n {\r\n $feedback = [\"input_title\" => $_POST[\"title\"], \"input_content\" => $_POST[\"content\"], \"input_author_id\" => $_POST[\"author_id\"], \"input_category_id\" => $_POST[\"category_id\"]];\r\n\r\n $flag = true;\r\n if (strlen($_POST[\"title\"]) < 3)\r\n {\r\n $flag = false;\r\n $error_title = [ \"error_title\" => \"title to short !\"];\r\n $feedback = array_merge($feedback, $error_title);\r\n }\r\n if (strlen($_POST[\"content\"]) < 3)\r\n {\r\n $flag = false;\r\n $error_content = [ \"error_content\" => \"content to short !\"];\r\n $feedback = array_merge($feedback, $error_content);\r\n }\r\n\r\n //SEND WITH SECURE_INPUTS\r\n if ($flag == true){\r\n $this->add_article($this->secure_input($_POST[\"title\"]), $this->secure_input($_POST[\"content\"]), $_POST[\"author_id\"], $_POST[\"category_id\"]);\r\n $feedback = [\"succes\" => \"ALL GOOD BRO.\"];\r\n }\r\n }\r\n $this->render_add_article($feedback);\r\n return true;\r\n }", "title": "" }, { "docid": "3f61d1ebadb0b9dc0bda561d053dd1b5", "score": "0.53922254", "text": "public function __construct($tableauInput){\r\n \r\n // Type d'article\r\n $this->setDblp($tableauInput[\"typeArticle\"]); \r\n \r\n // Eléments\r\n $this->setAddress($tableauInput[\"address\"]);\r\n $this->setAuthor($tableauInput[\"author\"]);\r\n $this->setBooktitle($tableauInput[\"booktitle\"]);\r\n $this->setCdrom($tableauInput[\"cdrom\"]);\r\n $this->setChapter($tableauInput[\"chapter\"]);\r\n $this->setCite($tableauInput[\"cite\"]);\r\n $this->setCrossref($tableauInput[\"crossref\"]);\r\n $this->setEditor($tableauInput[\"editor\"]);\r\n $this->setEe($tableauInput[\"ee\"]);\r\n $this->setIsbn($tableauInput[\"isbn\"]);\r\n $this->setJournal($tableauInput[\"journal\"]);\r\n $this->setMonth($tableauInput[\"month\"]);\r\n $this->setNote($tableauInput[\"note\"]);\r\n $this->setNumber($tableauInput[\"number\"]);\r\n $this->setPages($tableauInput[\"pages\"]);\r\n $this->setPublisher($tableauInput[\"publisher\"]);\r\n $this->setSchool($tableauInput[\"school\"]);\r\n $this->setSeries($tableauInput[\"series\"]);\r\n $this->setTitle($tableauInput[\"title\"]);\r\n $this->setUrl($tableauInput[\"url\"]);\r\n $this->setVolume($tableauInput[\"volume\"]);\r\n $this->setYear($tableauInput[\"year\"]);\r\n \r\n // Attributs\r\n $this->setKey($tableauInput[\"key\"]);\r\n $this->setMdate($tableauInput[\"mdate\"]);\r\n $this->setPubltype($tableauInput[\"publtype\"]);\r\n \r\n //Attributs spécifiques à l'objet de type article\r\n if($this->getDblp() === \"article\"){\r\n $this->setReviewid($tableauInput[\"reviewid\"]);\r\n $this->setRating($tableauInput[\"rating\"]);\r\n }\r\n \r\n // Pour chaque élément, s'il a été saisi, alors on enregistre son attribut si saisi.\r\n if (null !== $this->getAuthor() && $this->getAuthor() != \"\"){\r\n $this->setBibtexAuthor($tableauInput[\"bibtex_author\"]);\r\n }\r\n \r\n if(null !== $this->getTitle() && $this->getTitle() != \"\"){\r\n $this->setBibtexTitle($tableauInput[\"bibtex_title\"]);\r\n }\r\n if(null !== $this->getNote() && $this->getNote() != \"\"){\r\n $this->setType($tableauInput[\"type\"]);\r\n }\r\n if(null !== $this->getCite() && $this->getCite() != \"\"){\r\n $this->setLabel($tableauInput[\"label\"]);\r\n }\r\n if(null !== $this->getPublisher() && $this->getPublisher() != \"\"){\r\n $this->setHrefPublisher($tableauInput[\"href_publisher\"]);\r\n }\r\n if(null !== $this->getSeries() && $this->getSeries() != \"\"){\r\n $this->setHrefSeries($tableauInput[\"href_series\"]);\r\n }\r\n }", "title": "" }, { "docid": "6b563753e32128b78a3d88d42fe589cc", "score": "0.5386694", "text": "public function saveArticle()\n\t{\n\t\t$article = Request::input('article');\n\t\t$id = $article['id'];\n\t\t\n\t\tif(Article::exists($article['id'])) {\n\t\t\tArticle::editArticle($article);\n\t\t}\n\t\telse {\n\t\t\t$id = Article::createArticle($article);\n\t\t}\n\t\tSection::insertSections($id, Request::input('sectionsDE'), Request::input('sectionsEN'));\n\n\t\tLinks::deleteLinksByArticle($id);\n\t\t$links = Request::input('links');\n\t\tif($links != 0) {\n\t\t\tforeach ($links as $link) {\n\t\t\t\tLinks::createLink($link, $id);\n\t\t\t}\n\t\t}\n\n\t\tBooktips::deleteBooktipsByArticle($id);\n\t\t$booktips = Request::input('booktips', 0);\n\t\tif($booktips != 0) {\n\t\t\tforeach ($booktips as $booktip) {\n\t\t\t\tBooktips::createBooktip($booktip, $id);\n\t\t\t}\n\t\t}\n\n\t\treturn response()->json(['success' => 'true', 'articleId' => $id]);\n\t}", "title": "" }, { "docid": "83a82840e0f89725d88824c8813f8056", "score": "0.5386286", "text": "function check_artikel()\n\t{\n\t\t// Standard für Suchvariable\n\t\t$result = \"\";\n\t\t$sendneu = \"no\";\n\n\t\tif (empty($this->checked->send_artikel)) {\n\t\t\t$this->checked->send_artikel = \"\";\n\t\t}\n\t\t// Artikel wurde erfolgreich versendet\n\t\tif (!empty($this->checked->gesendet)) {\n\t\t\t$this->content->template['gesendet'] = \"1\";\n\t\t}\n\t\t// Artikel wird jetz gesendet\n\t\tif (!empty($this->checked->send_artikel) and $this->spamschutz->is_spam == false) {\n\t\t\t$this->send_artikel();\n\t\t}\n\t\t// Artikel wird nicht gesendet da Spam???\n\t\tif ($this->checked->send_artikel == \"Senden\" and $this->spamschutz->is_spam == true) {\n\t\t\t$sendneu = \"yes\";\n\t\t\t$this->content->template['error_comment'] = \"Bitte überprüfen Sie Ihre Eingaben.\";\n\t\t}\n\n\t\tif (empty($this->checked->reporeid_send)) {\n\t\t\t$this->checked->reporeid_send = \"\";\n\t\t}\n\t\t// Wenn Artikel senden ausgewählt ist , Eingabemaske anzeigen\n\t\tif ($this->checked->reporeid_send != \"\" or $sendneu == \"yes\") {\n\t\t\theader('X-Robots-Tag: noindex, nofollow');\n\t\t\t$this->send_artikel_mask();\n\t\t}\n\t\telse {\n\t\t\t// Wir sind nicht auf der Startseite\n\t\t\tif ($this->checked->menuid != '1' or ($this->checked->menuid == 1 and $this->checked->reporeid != \"\")) {\n\t\t\t\t$this->content->template['art_url'] = \"\";\n\t\t\t\t// Es ist kein einzelner Artikel ausgewählt\n\t\t\t\tif ($this->checked->reporeid == \"\") {\n\t\t\t\t\t// zählen wieviele Artikel existieren\n\t\t\t\t\t$this->weiter->result_anzahl = $this->get_anzahl();\n\t\t\t\t\t// Aber es existiert nur einer in der Datenbank fuer diesen Menueintrag\n\t\t\t\t\tif ($this->weiter->result_anzahl == 1) {\n\t\t\t\t\t\t// Daten aus der Datenbank holen für den jeweiligen Menupunkt\n\t\t\t\t\t\t$result = $this->make_artikel();\n\t\t\t\t\t\t// Url für das Menü etc.\n\t\t\t\t\t\t$this->content->template['art_url'] = $this->menu->urlencode($this->urlheader) . \".html\";\n\t\t\t\t\t\t// Daten zurückgeben\n\t\t\t\t\t\treturn $result;\n\t\t\t\t\t}\n\t\t\t\t\t// Es existieren mehr Eintrge fuer diesen Menupunkt; Einträge mit Links anzeigen\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Alle Artikel diese Menüpunktes anzeigen mit teaser\n\t\t\t\t\t\tif ($this->cms->stamm_cat_sub_ok == 1) {\n\t\t\t\t\t\t\t$this->content->template['cat_teaser_data'] = $this->make_cat_teaser();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t$teaser = $this->make_teaser();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Seiten-Title auf Name des aktuellen Menü-Punktes setzen\n\t\t\t\t\t\t// $this->content->template['site_title'] = $this->menu->aktu_menuname;\n\t\t\t\t\t\t// Adresse des Links übergeben\n\t\t\t\t\t\t$this->weiter->weiter_link = \"index.php?menuid=\" . $this->checked->menuid . \"\";\n\t\t\t\t\t\tif ($this->cms->mod_rewrite == 2) {\n\t\t\t\t\t\t\t$this->weiter->weiter_link = \"index/menuid/\" . $this->checked->menuid;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$what = \"teaser\";\n\t\t\t\t\t\t// Links zu weiteren Seiten anzeigen\n\t\t\t\t\t\t$this->weiter->do_weiter($what);\n\t\t\t\t\t\t// Daten zurückgeben\n\t\t\t\t\t\tIfNotSetNull($teaser);\n\t\t\t\t\t\treturn $teaser;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Es ist ein einzelner Eintrag ausgewählt\n\t\t\t\telse {\n\t\t\t\t\t// Daten aus der Datenbank holen für den jeweiligen Menupunkt\n\t\t\t\t\t$result = $this->make_artikel();\n\t\t\t\t\t// Edit check\n\t\t\t\t\t$this->check_edit($this->checked->reporeid);\n\t\t\t\t\t// Daten zurückgeben\n\t\t\t\t\treturn $result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "fbf761620ed533891f9a039003e91ed4", "score": "0.53794694", "text": "public function getPoste()\n{\nreturn $this->poste;\n}", "title": "" }, { "docid": "7065547f21d7d8dbf20c4590152bc677", "score": "0.5379094", "text": "public function gateKeeperArticle($objArticle) {\n if (TL_MODE == 'BE') {\n return;\n }\n\n $is_mobile = \\Environment::get('agent')->mobile;\n if(\\Input::cookie('TL_VIEW') == 'desktop') $is_mobile = FALSE;\n if(\\Input::cookie('TL_VIEW') == 'mobile') $is_mobile = TRUE;\n\n if ($objArticle->mobile_invisible && $is_mobile) {\n $objArticle->published = FALSE;\n }\n\n if ($objArticle->desktop_invisible && !$is_mobile) {\n $objArticle->published = FALSE;\n }\n }", "title": "" }, { "docid": "4fc1bda6bf8243465d0eeda9ec7946a2", "score": "0.53721863", "text": "function updateLocaleFields(&$article) {\r\n\t\t$this->updateDataObjectSettings('article_settings', $article, array(\r\n\t\t\t'article_id' => $article->getId()\r\n\t\t));\r\n\t}", "title": "" }, { "docid": "1d733c5c932f7772d81477053f05bf5c", "score": "0.5366332", "text": "public function getArticleId(){\n\t\t \treturn $this->id;\n\t\t }", "title": "" }, { "docid": "954531eaafd54501a76a6024e1a4eaef", "score": "0.53620464", "text": "public static function tag_articles_article($tag)\r\n\t{\r\n\t\t// View : Overwrite each defined article view by the passed one\r\n\t\t// It is possible to bypass the Article view by set it to ''\r\n\t\t$view = (isset($tag->attr['view'] )) ? $tag->attr['view'] : FALSE ;\r\n\t\t\r\n\t\t// Kind of article : Get only the article linked to the given view\r\n\t\t$type = (isset($tag->attr['type'] )) ? $tag->attr['type'] : FALSE ;\r\n\t\t\r\n\t\t// paragraph limit ?\r\n\t\t$paragraph = (isset($tag->attr['paragraph'] )) ? $tag->attr['paragraph'] : FALSE ;\r\n\r\n\t\tif ( ! empty($tag->locals->article))\r\n\t\t{\r\n\t\t\t// Current article (set by tag_articles() )\r\n\t\t\t$article = &$tag->locals->article;\r\n\r\n\t\t\t/*\r\n\t\t\t * Article View\r\n\t\t\t * If no view : First, try to get the pages defined article_list view\r\n\t\t\t *\t\t\t\tSecond, get the pages defined article view\r\n\t\t\t *\t\t\t\tElse, get the default view\r\n\t\t\t */\r\n\t\t\tif ($view === FALSE)\r\n\t\t\t{\r\n\t\t\t\t// The article defined view\r\n\t\t\t\t$view = $article['view'];\r\n\r\n\t\t\t\t// If article has no defined view : view to 0, nothing or FALSE\r\n\t\t\t\tif ( $view == FALSE OR $view == '')\r\n\t\t\t\t{\t\t\t\t\r\n\t\t\t\t\t// First and second step : The page defined views for articles\r\n\t\t\t\t\t// Need to be discussed...\r\n\t\t\t\t\t$view = $tag->globals->page['article_view'] ? $tag->globals->page['article_view'] : $tag->globals->page['article_list_view'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Paragraph limiter\r\n\t\t\tif ($paragraph !== FALSE)\r\n\t\t\t{\r\n\t\t\t\t$article['content'] = tag_limiter($article['content'], 'p', $paragraph);\r\n\t\t\t}\r\n\r\n\t\t\t// View rendering\r\n\t\t\tif (empty($view))\r\n\t\t\t{\r\n\t\t\t\t$view = Theme::get_default_view('article');\r\n\t\t\t\t\r\n\t\t\t\t// Returns the default view ('article') if found in the theme folder\r\n\t\t\t\tif (file_exists(Theme::get_theme_path().'views/'.$view.EXT))\r\n\t\t\t\t{\r\n\t\t\t\t\treturn $tag->parse_as_nested(file_get_contents(Theme::get_theme_path().'views/'.$view.EXT));\r\n\t\t\t\t}\r\n\t\t\t\treturn $tag->parse_as_nested(file_get_contents(APPPATH.'views/'.$view.EXT));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif ( ! file_exists(Theme::get_theme_path().'views/'.$view.EXT))\r\n\t\t\t\t{\r\n\t\t\t\t\treturn self::show_tag_error($tag->name, '<b>Cannot find view file \"'.Theme::get_theme_path().'views/'.$view.EXT.'\".');\r\n\t\t\t\t}\r\n\t\t\t\treturn $tag->parse_as_nested(file_get_contents(Theme::get_theme_path().'views/'.$view.EXT));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn self::show_tag_error($tag->name, '<b>This article doesn\\'t exists</b>');\r\n\t}", "title": "" }, { "docid": "78beabb4fa894e56fe6be7649e504306", "score": "0.5360648", "text": "function _articleFromRow(&$article, &$row) {\r\n\t\t\r\n\t\tif (isset($row['article_id'])) $article->setId($row['article_id']);\r\n\t\tif (isset($row['locale'])) $article->setLocale($row['locale']);\r\n\t\tif (isset($row['user_id'])) $article->setUserId($row['user_id']);\r\n\t\tif (isset($row['journal_id'])) $article->setJournalId($row['journal_id']);\r\n\t\tif (isset($row['section_id'])) $article->setSectionId($row['section_id']);\r\n\t\tif (isset($row['section_title'])) $article->setSectionTitle($row['section_title']);\r\n\t\tif (isset($row['section_abbrev'])) $article->setSectionAbbrev($row['section_abbrev']);\r\n\t\tif (isset($row['doi'])) $article->setStoredDOI($row['doi']);\r\n\t\tif (isset($row['language'])) $article->setLanguage($row['language']);\r\n\t\tif (isset($row['comments_to_ed'])) $article->setCommentsToEditor($row['comments_to_ed']);\r\n\t\tif (isset($row['citations'])) $article->setCitations($row['citations']);\r\n\t\tif (isset($row['date_submitted'])) $article->setDateSubmitted($this->datetimeFromDB($row['date_submitted']));\r\n\t\tif (isset($row['date_status_modified'])) $article->setDateStatusModified($this->datetimeFromDB($row['date_status_modified']));\r\n\t\tif (isset($row['last_modified'])) $article->setLastModified($this->datetimeFromDB($row['last_modified']));\r\n\t\tif (isset($row['status'])) $article->setStatus($row['status']);\r\n\r\n\t\t//Added by Anne Ivy Mirasol, May 18, 2011\r\n\t\t$articleDao =& DAORegistry::getDAO('ArticleDAO');\r\n\t\t$article->setProposalStatus($articleDao->getProposalStatus($article->getId()));\r\n\r\n\t\tif (isset($row['submission_progress'])) $article->setSubmissionProgress($row['submission_progress']);\r\n\t\tif (isset($row['current_round'])) $article->setCurrentRound($row['current_round']);\r\n\t\tif (isset($row['submission_file_id'])) $article->setSubmissionFileId($row['submission_file_id']);\r\n\t\tif (isset($row['revised_file_id'])) $article->setRevisedFileId($row['revised_file_id']);\r\n\t\tif (isset($row['review_file_id'])) $article->setReviewFileId($row['review_file_id']);\r\n\t\tif (isset($row['editor_file_id'])) $article->setEditorFileId($row['editor_file_id']);\r\n\t\tif (isset($row['pages'])) $article->setPages($row['pages']);\r\n\t\tif (isset($row['fast_tracked'])) $article->setFastTracked($row['fast_tracked']);\r\n\t\tif (isset($row['hide_author'])) $article->setHideAuthor($row['hide_author']);\r\n\t\tif (isset($row['comments_status'])) $article->setCommentsStatus($row['comments_status']);\r\n\t\tif (isset($row['afname']) or isset($row['alname'])) $article->setPrimaryAuthor($row['afname'].\" \".$row['alname']);\r\n\t\tif (isset($row['investigatoraffiliation'])) $article->setInvestigatorAffiliation($row['investigatoraffiliation']);\r\n\t\tif (isset($row['email'])) $article->setAuthorEmail($row['email']);\r\n\r\n\t\t$article->setAuthors($this->authorDao->getAuthorsByArticle($row['article_id']));\r\n\r\n\t\t$this->getDataObjectSettings('article_settings', 'article_id', $row['article_id'], $article);\r\n\t\tHookRegistry::call('ArticleDAO::_returnArticleFromRow', array(&$article, &$row));\r\n/*\r\n\t\t$article->setWhoId($row['whoid']);\r\n\t\t$article->setDateSubmitted($this->datetimeFromDB($row['date_submitted']));\r\n\t\t$article->setScientificTitle($row['scientifictitle']);\r\n\t\t$article->setProposalCountry($row['country']);\r\n\t\t$article->setPrimaryEditor($row['efname'].\" \".$row['elname']);\r\n\t\t$article->setPrimaryAuthor($row['afname'].\" \".$row['alname']);\r\n\t\t$article->setStartDate($this->datetimeFromDB($row['start_date']));\r\n\t\t$article->setEndDate($this->datetimeFromDB($row['end_date']));\r\n\t\t$article->setProposalStatus($row['decision']);\r\n\t\t$article->setDateStatusModified($this->datetimeFromDB($row['date_decided']));\r\n\t\t$article->setAuthorEmail($row['email']);\r\n\t\t$article->setMultiCountryResearch($row['multicountryresearch']);\r\n\t\t$article->setPrimarySponsor($row['primarysponsor']);\r\n\t\t$article->setOtherPrimarySponsor($row['otherprimarysponsor']);\r\n\t\t$article->setResearchField($row['researchfield']);\r\n\t\t$article->setInvestigatorAffiliation($row['investigatoraffiliation']);\r\n\t\t$article->setProposalType($row['proposaltype']);\r\n\t\t$article->setDataCollection($row['datacollection']);\r\n\t\t$article->setStudentInstitution($row['studentinstitution']);\r\n\t\t$article->setAcademicDegree($row['academicdegree']);\r\n\t\t$article->setPrimarySponsor($row['primarysponsor']);\r\n\t\t$article->setOtherPrimarySponsor($row['otherprimarysponsor']);\r\n\t\t$article->setFundsRequired($row['funds']);\r\n\t\t$article->setSelectedCurrency($row['currency']);\r\n*/\r\n\t}", "title": "" }, { "docid": "061e1463a5b66d5cc487b68dd76eb450", "score": "0.5359727", "text": "public function getArticle()\n{\n return $this->hasOne(Article::className(), ['article_id' => 'id']);\n}", "title": "" }, { "docid": "7618735173beb61e144817f5f5b3e3be", "score": "0.535841", "text": "function cairn_verifier_coherence_articles($where_articles) {\n $rows = sql_allfetsel('id_article, page_debut, page_fin, pages_total', 'spip_articles', $where_articles);\n\n $article = array();\n $erreurs_article = array();\n\n foreach ($rows as $row) {\n $article[$row['id_article']] = array(\n // 'page_debut' => empty($row['page_debut'])? false : true,\n // 'page_fin' => empty($row['page_fin'])? false : true,\n 'pages_total' => empty($row['pages_total'])? false : true\n );\n }\n\n foreach ($article as $id => $valeurs) {\n foreach($valeurs as $cle => $valeur) {\n if(!$valeur) {\n $erreurs_article[$id][] = _T('cairn:erreur_'.$cle);\n }\n }\n }\n\n return $erreurs_article;\n}", "title": "" }, { "docid": "e09160a7a7271e967bab2c66eecc3ea6", "score": "0.53572905", "text": "function tinymce_editer_contenu_objet($flux) {\n\tif (true===tinymce_doitrechargerpage()){\n\t\t$flux['data'] .= tinymce_jsrechargerpage();\n\t}\n\treturn $flux ;\n}", "title": "" }, { "docid": "fe8e534e65acdc8d0b8c755956c9281e", "score": "0.53538966", "text": "public function getIdArticle()\n {\n return $this->idArticle;\n }", "title": "" }, { "docid": "4ddfc0b817f79beef3fa044150e1a558", "score": "0.5353629", "text": "public function saveForm(){\n\t\tif($this->_validateForm()){\n\t\t\t$id_article = intval($this->input->post('id_article'));\t\t\t\n\t\t\tif($id_article > 0){\n\t\t\t\t#es una actualizacion\n\t\t\t\t$data = $this->input->post();\n\t\t\t\tunset($data['_wysihtml5_mode']);\n\t\t\t\tif(\t$this->dbsitio->updateRow($this->Table_,$data, \n\t\t\t\t\t\t\t\t\t\t\t'id_article = ' . $this->input->post('id_article'))){\n\t\t\t\t\t$this->present($this->input->post('id_article'));\n\t\t\t\t}else{\n\t\t\t\t\tprint $this->dbsitio->lastError();\n\t\t\t\t\tprint $this->dbsitio->lastQuery();\n\t\t\t\t\t$this->_returnForm();\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t#es un nuevo artículo\n\t\t\t\t$data1 = $this->input->post();\n\t\t\t\tunset($data1['id_article']);\n\t\t\t\tunset($data1['_wysihtml5_mode']);\n\t\t\t\t$data2 = array('id_page' => $this->IdPage_,\n\t\t\t\t\t\t\t\t'create_date' => date('Y-m-d H:i:s'));\n\t\t\t\t$arreglo = array_merge($data2,$data1);\n\t\t\t\t\n\t\t\t\t$newId = $this->dbsitio->insertRow($this->Table_,\n\t\t\t\t\t\t\t\t\t\t$arreglo);\n\t\t\t\t$this->present($newId);\n\t\t\t}\n\n\t\t}else{\t\t\t\n\t\t\t$this->_returnForm();\n\t\t}\n\t}", "title": "" }, { "docid": "a201474f52ab4576a6ce9df578239336", "score": "0.53492016", "text": "public function add(Article $article): bool {\n $request = DB::getInstance()->prepare(\"\n INSERT INTO article (content, title, subTitle, resume)\n VALUES (:content, :title, :subTitle, :resume) \n \");\n $request->bindValue(':content', $article->getContent());\n $request->bindValue(':title', $article->getTitle());\n $request->bindValue(':subTitle', $article->getSubTitle());\n $request->bindValue(':resume', $article->getResume());\n\n return $request->execute() && DB::getInstance()->lastInsertId() != 0;\n }", "title": "" }, { "docid": "207db76c212632fe86a7b175baf6df1f", "score": "0.534502", "text": "public function afficheArticleController()\n {\n $id_article = $this->validatorHelper->getValue('id_article', 0, 'integer');\n $this->template = 'view_profil/article.php';\n\n //Si je souhaite modifier l'article\n if (!empty($this->validatorHelper->getValue('titre'))) {\n $this->modifierArticle();\n $this->setMessage('article modifié!');\n //return $this->redirectTo('article');\n }\n //Si je souhaite effacer l'article\n if (isset($_POST['submit'])) {\n $this->effacerArticle($id_article);\n CompteFacade::soustraitPublications();\n return $this->redirectTo('Profil');\n }\n //Si je souhaite laisser un commentaire à l'article\n elseif (!empty($this->validatorHelper->getValue('commentaire'))) {\n $this->commentaireController->ajouterCommentaire($id_article, CompteFacade::getCompteId());\n return $this->renderController();\n }\n //Aller dans commentaireController pour effacer un commentaire\n\n //Si je souhaite liker l'article\n if (isset($_POST['like'])) {\n $this->likeController->toggleLike();\n }\n\n $this->setArticle($this->articleModel->getArticle($id_article));\n $this->setCom($this->commentaireController->afficheListeCommentaire($id_article));\n $this->setNbLikesForArticle($this->likeController->getNbLikes($id_article));\n $this->setArticleAlreadyLiked($this->likeController->checkIfUserHasLiked($id_article));\n $this->setCompteVisite($this->compteModel->getCompteFromArticle($id_article));\n return $this->renderController();\n }", "title": "" }, { "docid": "894a3fab7c826ec6a7888e3395de7cdc", "score": "0.5342511", "text": "public function Evaluer(){\n global $db;\t \n\t //on verifie s'il existe un article qui a cette identifiant\n try\n\t {\n\t\t $request=$db->prepare(\"SELECT id from Article where id=?\");\n\t\t $request->execute(array($this->identifiant));\n\t\t $nombre=$request->rowCount();\n\n }catch(Exception $e)\n\t {\n die(\"Erreur\".$e->getMessage());\n }\n\n if($nombre==1):\n\t //si c'est le cas on evalue l'article\n sleep(4); \n\t $verification=$db->prepare(\"SELECT *from Evaluation where identifiant = ? \");\n\t $verification->execute(array($this->identifiant));\n\t $compteur=$verification->rowCount();\n //l'article est evaluer moin de 3 fois\n if($compteur<3):\n\t\t try\n\t\t {\n\t\t $eval=$db->prepare(\"INSERT INTO Evaluation(identifiant,evaluation,evaluateur,commentaire,message) VALUES (?,?,?,?,?)\"); \n\t\t $eval->execute(array($this->identifiant,$this->evaluation,$this->Evaluateur,$this->commentaire,$this->message)); \n\t\t }\n\t catch(Exception $e)\n\t\t {\n die(\"Une erreur est survenue\");\n }\n else:\n echo \"</br><br/><div class='alert alert-danger'>Impossible d'evalué cet Article car le quota de 3 evaluations est Atteint</div>\";\n endif;\n else:\n\t //dans le cas contraire on sort un message d'erreur\n echo \"</br><br/><div class='alert alert-danger'>Impossible d'evalué cet Article l'identifiant fourni n'existe pas </div>\";\n\t endif;\n\n }", "title": "" }, { "docid": "5311fcdd5028d1bd34419a093f9ce548", "score": "0.53374773", "text": "public function edit(Publication $publication)\n {\n //\n }", "title": "" }, { "docid": "5311fcdd5028d1bd34419a093f9ce548", "score": "0.53374773", "text": "public function edit(Publication $publication)\n {\n //\n }", "title": "" }, { "docid": "5c76873e72510882e67923f6466fcc56", "score": "0.5336547", "text": "public function getArticleById(int $id):Article{\n $sql = 'SELECT * FROM article WHERE id_article = :id';\n $req = $this->bdd->prepare($sql);\n $req->bindValue('id',$id,PDO::PARAM_INT);\n $req->execute();\n $reponse = $req->fetch(PDO::FETCH_ASSOC);\n $article = new Article($reponse);\n return $article;\n }", "title": "" }, { "docid": "138a49c924bc6306e9e2ddd7e062b25c", "score": "0.53355736", "text": "public function publicar(){\r\r\t\t$id = JRequest::getInt(\"id\");\r\r\t\t$model = $this->getModel( 'caracteristica' );\r\r\t\t$model->instance( $id );\r\t\t\r\t\techo $model->publish( 'bool' );\r\t\t\r\t\tdie();\r\t}", "title": "" }, { "docid": "9a00ea62584125593c1d1f1c1621fc5d", "score": "0.5329279", "text": "function appendArticle($papertitle, $contentIfNew, $content,$summary='')\r\n{ \r\n if ( strlen(trim($papertitle)) == 0 || $papertitle == ':') return false; \r\n \r\n $title = Title::newFromText($papertitle); \r\n if ( isset($title) == false) // page name illegal\r\n\t return false;\r\n \r\n $editPage = new Article( $title, 0 );\r\n $oldcontent = $editPage->getContent();\r\n \r\n if ( $editPage->exists() )\r\n\t\treturn $editPage->doEdit($oldcontent.$content,$summary,EDIT_UPDATE|EDIT_FORCE_BOT);\r\n\telse //new\r\n\t\treturn $editPage->doEdit($contentIfNew.$content,$summary,EDIT_NEW|EDIT_FORCE_BOT);\r\n}", "title": "" }, { "docid": "261e069bd7e10432dfdf4c96c8b07cb8", "score": "0.53235316", "text": "function articlePublished($artid) {\n\t\t$sql = \"SELECT id FROM \" . TBL_ARTICLES\n\t\t. \" WHERE id = '$artid' AND state = \"\n\t\t. PUBLISHED_STATE;\n\t\t$result = mysqli_query($this->connection, $sql);\n\t\tif (!$result || (mysqli_num_rows($result) < 1)) {\n\t\t\tmysqli_free_result($result);\n\t\t\treturn false;\n\t\t} else {\n\t\t\tmysqli_free_result($result);\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "b8a51be41237ff1c0a55bfd858541bdd", "score": "0.53118527", "text": "public function setOmschrijving($omschrijving) {\n $this->omschrijving = $omschrijving;\n \n}", "title": "" }, { "docid": "cec75b619c205c956ab2539a769de941", "score": "0.53031516", "text": "public function displayArticleToValid()\n {\n $database = $this->connectDatabase();\n $myQuery = \"SELECT A.*,\n C.CATEGORY_NAME \n FROM `article` as A left join category as C on A.CATEGORY_ID = C.CATEGORY_ID\n where valid = 0\";\n $queryArticle = $database->query($myQuery);\n $queryArticle->execute();\n $fetch = $queryArticle->fetchAll();\n return $fetch;\n }", "title": "" }, { "docid": "2c3be529fb105942983157b0e07e8c61", "score": "0.5298696", "text": "public function publish($id=null) {\n if($id == null){\n $this->Session->setFlash('Please choose a article.', 'default', array('class' => 'alert alert-danger') , 'error');\n $this -> redirect(array('controller' => 'Articles', 'action' => 'index'));\n }\n\n // Find the selected Article\n $selectedNews = $this->Article->findById($id);\n\n // Check whether resultset is null, if yes - set error message and redirect\n if($selectedNews == null){\n $this->Session->setFlash('Please choose a article.', 'default', array('class' => 'alert alert-danger') , 'error');\n $this -> redirect(array('controller' => 'Articles', 'action' => 'index'));\n }\n\n // Update Article\n \n $selectedNews['Article']['published']=1;\n $selectedNews['Article']['published_date']= date('Y-m-d G:i:s');\n //pr($selectedNews);die();\n if($this->Article->save($selectedNews)){\n\n // Display success message and redirect\n $this->Session->setFlash('Article Published.', 'default', array('class' => 'alert alert-success') , 'success');\n $this -> redirect(array('controller' => 'Articles', 'action' => 'index'));\n \n } else {\n\n // Display failure message and redirect\n $this->Session->setFlash('Sorry, an error occurred.', 'default', array('class' => 'alert alert-danger') , 'error');\n $this -> redirect(array('controller' => 'Articles', 'action' => 'index'));\n }\n\n // Set the view variables to controller variable values and layout for the view\n $this -> layout = 'base_layout';\n }", "title": "" }, { "docid": "8f6d76fe033fcf4fb0fda24aed79a58b", "score": "0.52979195", "text": "function eZNewsArticle( $inData = \"\", $fetch = true )\n {\n #echo \"eZNewsArticle::eZNewsArticle( \\$inData = $inData, \\$fetch = $fetch )<br />\\n\";\n eZNewsItem::eZNewsItem( $inData, $fetch );\n }", "title": "" }, { "docid": "aa4a21b3efcdc0e0b0d2474d02f7ec90", "score": "0.52922565", "text": "public function artikal_get($title){\n\n\t$artikal = $this->crud->searchArticleByPage($title);\n\n\treturn $artikal;\n\n}", "title": "" }, { "docid": "8ed467aee702dfee723d4aabdc31698e", "score": "0.52875274", "text": "public function addArticle(){\n\t\t$title = $_POST['title'];\n\t\t$body = $_POST['body'];\n\t\t$lat = $_POST['latitude'];\n\t\t$lng = $_POST['longitude'];\n\t\t// Insert User\n\t\t$this->db->query('INSERT INTO article (title, body, lat, lng) VALUES (:title, :body, :lat, :lng)');\n\t\t//Bind Values\n\t\t$this->db->bind(':title', $title);\n\t\t$this->db->bind(':body', $body);\n\t\t$this->db->bind(':lat', $lat);\n\t\t$this->db->bind(':lng', $lng);\n\n\t\t//Execute\n\t\t$this->db->execute();\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "bfa088fb56044e96c49d5ec7bffc436d", "score": "0.5286849", "text": "public function getNom_article()\n {\n return $this->nom_article;\n }", "title": "" }, { "docid": "734b3bbb2310ef9aab9c5d9ebb1efc5d", "score": "0.5285929", "text": "function editeazaSubiect($id_subiect) {\n\tglobal $conn, $nume_subiect, $editeazaSubiectul, $id_subiect;\n\t$sql = \"SELECT * FROM subiecte WHERE id=$id_subiect LIMIT 1\";\n\t$result = mysqli_query($conn, $sql);\n\t$subiect = mysqli_fetch_assoc($result);\n\t// seteaza valorile formularului ($nume_subiect) pentru a fi actualizate\n\t$nume_subiect = $topic['nume'];\n}", "title": "" }, { "docid": "40904f2dd6f3584696601d1235cc52d6", "score": "0.5283129", "text": "public function article($id = '')\r\n {\r\n\r\n if ($this->input->post()) {\r\n if ($id == '') {\r\n $id = $this->knowledge_base_model->add_article($this->input->post());\r\n if ($id) {\r\n set_alert('success', _l('added_successfuly',_l('kb_article')));\r\n redirect(admin_url('knowledge_base/article/' . $id));\r\n }\r\n } else {\r\n $success = $this->knowledge_base_model->update_article($this->input->post(), $id);\r\n if ($success) {\r\n set_alert('success', _l('updated_successfuly',_l('kb_article')));\r\n }\r\n redirect(admin_url('knowledge_base/article/' . $id));\r\n }\r\n }\r\n if ($id == '') {\r\n $title = _l('add_new',_l('kb_article_lowercase'));\r\n } else {\r\n $article = $this->knowledge_base_model->get($id);\r\n $data['article'] = $article;\r\n $title = _l('edit',_l('kb_article')) . ' ' . $article->subject;\r\n }\r\n $data['title'] = $title;\r\n $this->load->view('admin/knowledge_base/article', $data);\r\n }", "title": "" }, { "docid": "77bdb23898c62071026ff4e33ba61be3", "score": "0.5278886", "text": "function actualites_autoriser(){}", "title": "" }, { "docid": "94af72f4e1edc9144244aff6da7fa41e", "score": "0.52787066", "text": "public function actionviewArticle($verbiage, $hash = null)\r\n {\r\n $verbiage = explode(\"/\",$verbiage);\r\n\t\t$article_array = Articles::model() -> giveArticleContent(trim(end($verbiage)));\r\n /*if (!$article) { // FIXME: create more deteiled detection of this is not just unexisting article, but exatcly a category title\r\n $category = Menus::model()->findByAttributes(array('verbiage' => trim($verbiage)));\r\n if ($category) { \r\n //$articles = Articles::model()->findAllByAttributes(array('category' => $category->id)); //new Articles('search'); \r\n $dataProvider = new CActiveDataProvider('Articles',\r\n array(\r\n 'criteria' => array(\r\n 'condition' => \"category = \".$category->id\r\n ),\r\n 'pagination' => array(\r\n 'pageSize' => 10,\r\n )));\r\n\r\n $this->render('articles_all', array(\r\n 'articles' => $dataProvider\r\n ));\r\n Yii::app()->end();\r\n }\r\n }*/\r\n //meta tags\r\n Yii::app()->clientScript->registerMetaTag($article_array['article']->keywords, 'keywords');\r\n Yii::app()->clientScript->registerMetaTag($article_array['article']->description, 'description');\r\n //Набор клиник для показа под статьей.\r\n\t\t//$this->clinics = clinics::model()->findAll(array('with' => 'services', 'order' => 'rating DESC'));\r\n\t\t$clinics = clinics::model() -> filterByTriggerValuesIdString(clinics::model() -> findAll(array('with' => 'services', 'order' => 'rating DESC')), $article_array['article']['trigger_value_id']);\r\n\t\tif (!isset($_GET['page']))\r\n\t\t{\r\n\t\t\t$page = 0;\r\n\t\t} else {\r\n\t\t\t$page = ($_GET['page'] + 1 > count($clinics)) ? 0 : $_GET['page'];\r\n\t\t}\r\n\t\t$left = ($page > 0);\r\n\t\t$right = ($page + 1 < count($clinics));\r\n\t\tif (!empty($clinics))\r\n\t\t{\r\n\t\t\t$clinic = $clinics[$page];\r\n\t\t\t$clinic -> ReadData();\r\n\t\t} else {\r\n\t\t\t$clinic = '';\r\n\t\t}\r\n $this->render('//articles/view', array(\r\n 'model' => $article_array['article'],\r\n\t\t\t'children' => $article_array['children'],\r\n\t\t\t'parentList' => $article_array['parents'],\r\n\t\t\t'clinic' => $clinic,\r\n\t\t\t'left' => $left,\r\n\t\t\t'right' => $right,\r\n\t\t\t'page' => $page\r\n ));\r\n }", "title": "" }, { "docid": "89dcf2616ddf877182f360816c083bf5", "score": "0.5276639", "text": "public function save(User $user = null, $article = null)\n {\n if ($article === null){\n $article = new Article();\n }\n \n $article->setUserId($user->getId());\n $article->setUsername($user->getUsername());\n $article->setFlavour('code');\n $article->setHasThumbnails(false);\n\n if (strlen($this->getValue('summary')) > 0){\n $article->setSummary($this->getValue('summary'));\n $article->setSummaryHtml(myUtil::markdown($this->getValue('summary')));\n }\n\n $article->setTitle($this->getValueEscaped('title'));\n $article->setCode($this->getValue('code'));\n $article->setCodeLanguage($this->getValue('language'));\n $article->save();\n\n return $article;\n }", "title": "" } ]
f23dd24bcecf179c22bb199fcd4ca37b
Find object by primary key using raw SQL to go fast. Bypass doSelect() and the object formatter by using generated code.
[ { "docid": "251619f4b0f143d90f358228f26ec5fe", "score": "0.0", "text": "protected function findPkSimple($key, ConnectionInterface $con)\n {\n $sql = 'SELECT number, category, name FROM TEAM_MEMBER WHERE number = :p0';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_STR);\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 ChildTeamMember $obj */\n $obj = new ChildTeamMember();\n $obj->hydrate($row);\n TeamMemberTableMap::addInstanceToPool($obj, null === $key || is_scalar($key) || is_callable([$key, '__toString']) ? (string) $key : $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" } ]
[ { "docid": "078474cc565c136c546375605b9d2734", "score": "0.67390543", "text": "public function returnFindByPK($id);", "title": "" }, { "docid": "43f2ab51dbb456923a231ebe802d8243", "score": "0.6729098", "text": "public abstract function find($primary_key, $model);", "title": "" }, { "docid": "a9fe38e26d7ad8ffa46029f51c96bfc4", "score": "0.6684692", "text": "public function returnDetailFindByPK($id);", "title": "" }, { "docid": "3698a5dd39d0cc09e363247a5ffa5e91", "score": "0.63380975", "text": "public function findPk($pk)\r\n {\r\n $pkColumns = $this->getObject()->getTable()->getIdentifierColumnNames();\r\n if(($count = count($pkColumns)) > 1)\r\n {\r\n // composite primary key\r\n if(!is_array($pk))\r\n {\r\n throw new Exception(sprintf('Class %s has a composite primary key and expects %s parameters to retrieve a record by pk', $this->class, join(', ', $pkColumns)));\r\n } \r\n else if (is_array($count[0]))\r\n {\r\n // array of arrays\r\n // sorry the finder can't do that on objects with composte primary keys\r\n throw new Exception('Impossible to find a list of Pks on an objects with composite primary keys');\r\n }\r\n for ($i=0; $i < $count; $i++)\r\n { \r\n $this->addCondition('and', $pkColumns[$i], '=', $pk[$i]);\r\n }\r\n return $this->findOne();\r\n }\r\n else\r\n {\r\n // simple primary kay\r\n if(is_array($pk))\r\n {\r\n $this->addCondition('and', $pkColumns[0], ' IN ', $pk);\r\n return $this->find();\r\n }\r\n else\r\n {\r\n $this->addCondition('and', $pkColumns[0], '=', $pk);\r\n return $this->findOne();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "0588d533f4c372d805d1901b45d2aecf", "score": "0.63226265", "text": "public static function find($primary_key) {\n $table_name = self::table_name();\n return $table_name::unique([\"id\" => intval($primary_key)]); // convert to where struct and pass\n }", "title": "" }, { "docid": "ced5cd66310772c7d663401235f74f76", "score": "0.6280914", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "ced5cd66310772c7d663401235f74f76", "score": "0.6280914", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = RepositoryPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(RepositoryPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "1ec2ac38bfcb1462fe7945461469306d", "score": "0.62550485", "text": "public static function find($primary_key)\n {\n return static::select()\n ->where(static::getPrimaryKey(), $primary_key)\n ->fetchOne();\n }", "title": "" }, { "docid": "466ececfaa76993a0c0528b22de93a3a", "score": "0.62483007", "text": "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `USER_ID`, `NAME`, `DESCRIPTION`, `BARE_PATH`, `CLONE_PATH`, `FORKED_FROM_ID`, `FORKED_AT`, `CREATED_AT`, `UPDATED_AT` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "title": "" }, { "docid": "3fe8b6dce7dc2aee991be732757aa7bf", "score": "0.62242997", "text": "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `NAME`, `VALUE`, `REMOTE` FROM `repository` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Repository();\n\t\t\t$obj->hydrate($row);\n\t\t\tRepositoryPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "title": "" }, { "docid": "571466c36b7c681e8775c28b706a24dc", "score": "0.62241775", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TraspasoPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TraspasoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "bd16b15fce02dea06c6c2dc9c732343f", "score": "0.62023014", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = SessionPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "9f7adc668bbbe45df8709ca537dbf736", "score": "0.6199301", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = AdvogadoAreaAdvocaciaPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(AdvogadoAreaAdvocaciaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "813d9efcacdda4471ea85f4c7458b1a3", "score": "0.61975604", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = JadwalPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2], (string) $key[3]))))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(JadwalPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "f05622eca7379a42f616a4a6ec44a945", "score": "0.61914176", "text": "function find($id)\n\t{\n\t\treturn $this->_statement('SELECT ' . $this->_selection . \n\t\t\t\t' FROM ' . $this->_name . \n\t\t\t\t' WHERE ' . $this->_name . '.' . $this->_pk . ' = ?', \n\t\t\t\tarray((int) $id))->fetch();\n\t}", "title": "" }, { "docid": "b698e3f6e66a3e68d7495dd8ae837f45", "score": "0.6188722", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PjuridicaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PjuridicaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "a826bf1a98c08c32a4d793a946225e45", "score": "0.61770064", "text": "private function _find($id, $lockForUpdate = false)\n {\n $prepSql = \"SELECT {$this->_columnNames} FROM `{$this->_tableName}` \"\n . 'WHERE `id` = ? ';\n \n if ($lockForUpdate) {\n $prepSql .= 'FOR UPDATE ';\n }\n \n $pstmt = $this->_prepare($prepSql);\n $bindings = [$id];\n\n $pstmt->execute($bindings);\n \n $dbRecord = $pstmt->fetch(\\PDO::FETCH_ASSOC);\n $pstmt->closeCursor();\n $entity = $this->_toEntity($dbRecord);\n \n return $entity;\n }", "title": "" }, { "docid": "61aa2bd11f8329cbe7891aad13856c1e", "score": "0.61644655", "text": "public function returnMoreFindByPK($id);", "title": "" }, { "docid": "02fefbd216aaf43842b5f6751caf7f17", "score": "0.6162845", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = LibroPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(LibroPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "41881dc50c5a60ab6506cd4b99b56761", "score": "0.61539865", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = UnitPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(UnitPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "6ad9c51087f4031458a0b8a81e5dadf7", "score": "0.6136337", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = GoodsInSalePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "3dca681535a451ad3fdad30b1e5237fa", "score": "0.6135232", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = PurchasePeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "d18974677f9a26472e21fc6f998ae9e9", "score": "0.6105627", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ProductoPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "8b7da208e33eec200cf3c740055e321f", "score": "0.61036044", "text": "abstract public function byPk(string $query);", "title": "" }, { "docid": "8326265ffd9296e2950e2b41dc445fe3", "score": "0.60997736", "text": "public function findPk($key, $con = null)\n {\n if ($key === null)\n {\n return null;\n }\n if ((null !== ($obj = CollectorGeocacheArchivePeer::getInstanceFromPool((string) $key))) && !$this->formatter)\n {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null)\n {\n $con = Propel::getConnection(CollectorGeocacheArchivePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n }\n else\n {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "039ac984d20ed3188f4a2c608e30622d", "score": "0.6098339", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SearchIndexPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SearchIndexPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "a11388714e733eabadff4d0e8028bb7b", "score": "0.6094783", "text": "public function findOne()\n {\n // This is a select\n $this->operation = \"SELECT\";\n\n // Set the limit to one\n $this->limit(1);\n\n // Prepare the statement\n $stmt = $this->prepareAndExecute();\n\n // Fetch\n $entity = $this->fetchOne($stmt);\n\n // If empty, we return null\n if ($entity === null) {\n return null;\n }\n\n // Return the entity\n return $entity;\n }", "title": "" }, { "docid": "af5698ec417446404b697ed26bee7582", "score": "0.6084649", "text": "public function findById($primaryKeyValue){\n //Select* From employers Where $this->primaryKey(noemp)=$primaryKeyValue(1000)\n $array = $this->findWhere($this->primaryKey. \"=$primaryKeyValue\");\n if (count($array) != 1 ) die (\"The ID $primaryKeyValue is not valid\");\n return $array[0];\n }", "title": "" }, { "docid": "0139eb8ab80cd4010853c57b23c470d6", "score": "0.60835683", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "c49e2ac7f88de1e97b2194cd13829689", "score": "0.6051711", "text": "public function findByPk($id, $typeResult = self::FETCH_OBJ){\n\t$query = \"SELECT * FROM $this->tableName USE INDEX(PRIMARY) WHERE ID=?\";\n\treturn $this->createResult($query, array($id), $typeResult);\n}", "title": "" }, { "docid": "c2ba9a2749c6ff81ccb9c0e99621739d", "score": "0.60472494", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_AddressPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_AddressPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "ae511a02f96ed4ef9d3d35940e5c15d2", "score": "0.6043087", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TbpaisPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TbpaisPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "053f5233085d59045ea63787fba09a27", "score": "0.60219795", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = CalendarPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "89a1f2b64ca9aae8591463a4bf1d0347", "score": "0.60208464", "text": "abstract public function find(int $id);", "title": "" }, { "docid": "e842de350544541c72206d5717d9f756", "score": "0.60186154", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_ProductPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_ProductPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "5344f390777b3edd9880760097371c04", "score": "0.60056984", "text": "function find($id=true,$fetch_type = \\PDO::FETCH_ASSOC)\n {\n $this->db->table($this->getTableFullName());\n if(is_string($id) || is_numeric($id)){\n $this->where($this->getPk(),'=',$id);\n }\n return $this->db->find($fetch_type);\n }", "title": "" }, { "docid": "b97ca3354f162586bc0939172543c6de", "score": "0.5997083", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = DomainCheckPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "7b6313c91403ac93b9a24582c5a9f0a9", "score": "0.59933645", "text": "public function find($pk = null) {\n\t\t//Prepare the SELECT SQL Query\n\t\t$sql = $this->prepareSelect($pk);\n\t\t\n\t\t//Clear actual dataSet\n\t\t$this->clearDataSet();\n\t\t\n\t\t$modelName = get_class($this->getModel());\n\t\t\n\t\tif($sql != null) {\n\t\t\t$this->execute($sql);\n\t\t\t$this->resultSet = &$this->getModel()->getConnection()->executeSQL($sql);\n\t\t} else {\n\t\t\tPhpBURN_Message::output(\"[!No query found!] - <b>$modelName</b>\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//Set cursor at the first position\n\t\t$this->setPointer(0);\n\t\t\n\t\t//Prepare DataSet\n\t\t//$this->setDataSet($dataSet);\n\t\t\n\t\t//Returns the amount result\n\t\treturn $this->getModel()->getConnection()->affected_rows($this->resultSet);\n\t}", "title": "" }, { "docid": "4d4474475adaa68d462547cafe9a233f", "score": "0.5986774", "text": "public function find($id){\n $data = $this->connection->query(\"SELECT * FROM $this->table WHERE $this->primaryKey = $id\");\n $data = $data->fetch(\\PDO::FETCH_OBJ);\n return $data;\n }", "title": "" }, { "docid": "91a8f4115cceb813d9fec9ecdf56b832", "score": "0.5986319", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = MapPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$stmt = $this\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $this->getFormatter()->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "82875877ff4cdf61b8351a0025505aad", "score": "0.59770834", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PlanPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PlanPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "89688e847c1d7960cbd6105bbef120b6", "score": "0.59745383", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ActividadPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "ca34a248e0664e4d0c4b76255a30fceb", "score": "0.5970849", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ItemPropertyPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "0ebf157a61c04dabcc429b6fde7827a0", "score": "0.59661186", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ExpedienteanticipoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ExpedienteanticipoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "c6e95dcab20a26872e616a0f93db87e8", "score": "0.5963367", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `nombre`, `descripcion`, `precio`, `usuarios`, `moneda_id`, `logo_propio`, `quitar_logo`, `correo_masivo`, `correo_info`, `crear_examenes`, `created_by`, `updated_by`, `created_at`, `updated_at` FROM `plan` 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), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Plan();\n $obj->hydrate($row);\n PlanPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "8d5f886108151e4f0dc6009c1a00eefa", "score": "0.5956835", "text": "public function selectById()\n\t\t{\n\t\t}", "title": "" }, { "docid": "c81c8f68f5a5482fcd2494580f5d27d9", "score": "0.59462607", "text": "public function find() {\n\t\tOHooks::instance()->modify(get_class($this).'.model.find.pre', array($this));\n\n\t\tif ($this->_obsolete_column && !$this->_include_obsolete) {\n\t\t\t$this->_where_not_obsolete();\n\t\t}\n\n\t\t$id = $this->id;\n\t\t$result = OCache::instance()->get($id, get_class($this));\n\t\tif (empty($id) || $result === null) {\n\t\t\t// Result comes back as an object of this same class, not a DB result object\n\t\t\t$result = parent::find();\n\t\t\tOCache::instance()->set($result->id, $result, get_class($this));\n\t\t}\n\n\t\t// Set the values\n\t\tif (count($this->_fields)) {\n\t\t\t$this->set_field_values();\n\t\t}\n\n\t\tOHooks::instance()->modify(get_class($this).'.model.find.post', array($result));\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "5137a5d74461460a9915df705d8c246a", "score": "0.5937691", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = ImpresionPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "bd69b7a7b7a52bdffa72d6a6df98ef19", "score": "0.5936904", "text": "function find($id);", "title": "" }, { "docid": "e794ced1dd9de764280477ae51fac151", "score": "0.5929408", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsNawGegevensGstandaardPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsNawGegevensGstandaardPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "881aabda07fccf6d836e563608237b3c", "score": "0.5928063", "text": "public function findPk($pk)\r\n {\r\n $pk = func_get_args();\r\n return call_user_func_array(array($this->adapter, 'findPk'), $pk);\r\n }", "title": "" }, { "docid": "77fbe4e465b5c6d8b20190e8e3b6aeb9", "score": "0.592636", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TbalunomatriculaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TbalunomatriculaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "84d558b30cca4b3b58bd214694353c10", "score": "0.59235597", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DireccionRequerimientoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(DireccionRequerimientoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "b61b122f6a4a1c57d26392c6154ce99b", "score": "0.5922538", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ClientePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ClientePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "8dfc73f73bfbc40bcd385d39a57244fc", "score": "0.5914408", "text": "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID_ADDRESS`, `ID_COUNTRY`, `ID_STATE`, `ID_CUSTOMER`, `ID_MANUFACTURER`, `ID_SUPPLIER`, `ALIAS`, `COMPANY`, `LASTNAME`, `FIRSTNAME`, `ADDRESS1`, `ADDRESS2`, `POSTCODE`, `CITY`, `OTHER`, `PHONE`, `PHONE_MOBILE`, `VAT_NUMBER`, `DNI`, `DATE_ADD`, `DATE_UPD`, `ACTIVE`, `DELETED` FROM `' . _DB_PREFIX_ . 'address` WHERE `ID_ADDRESS` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Oops_Db_Address();\n\t\t\t$obj->hydrate($row);\n\t\t\tOops_Db_AddressPeer::addInstanceToPool($obj, (string) $row[0]);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "title": "" }, { "docid": "12a9c0d9387c3af9487746b401a751fe", "score": "0.5910313", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ProveedormarcaPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ProveedormarcaPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "a0dd2b07693554848623f952c283dbfd", "score": "0.5898677", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `id`, `page_id`, `path`, `language_id`, `link_text`, `page_title`, `created_at`, `updated_at`, `created_by`, `updated_by` FROM `search_index` WHERE `id` = :p0 AND `language_id` = :p1';\n try {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key[0], PDO::PARAM_INT);\n $stmt->bindValue(':p1', $key[1], PDO::PARAM_STR);\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), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new SearchIndex();\n $obj->hydrate($row);\n SearchIndexPeer::addInstanceToPool($obj, serialize(array((string) $key[0], (string) $key[1])));\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "c5081a06014dfa076d813d0ce7ba0932", "score": "0.58849007", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TemplateUnPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(TemplateUnPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "5d3778f7ae7220f03697e5b9007ffff3", "score": "0.58842945", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsArtikelenPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsArtikelenPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "883d4394bfb5097f5c20dc243c08464c", "score": "0.5883459", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = sfGuardUserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(sfGuardUserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "2b5f29a59146c7caaf6f81f6661c163f", "score": "0.58810216", "text": "static public function find_by_id(int $id, $sqlOptions = []) {\n // get options\n // check for regular string coming in, set $sqlOptions['columnOptions']\n if (!is_array($sqlOptions)) {\n // make it an array\n $sqlOptionsTemp = explode(\",\", $sqlOptions);\n // clean array\n $sqlOptions = [];\n // reset array\n $sqlOptions['columnOptions'] = $sqlOptionsTemp;\n } else {\n // check to see if the array is empty, or if it has columnOptions\n $sqlOptions['columnOptions'] = $sqlOptions['columnOptions'] ?? [\"*\"];\n }\n\n // sql for id\n $idSql = static::$idName . \" = \" . self::db_escape($id);\n\n // Prep the SQL options\n $sqlOptions['whereOptions'] = $idSql;\n\n // check to see if we got A result, if not send back false\n $result = static::find_where($sqlOptions)[0] ?? false;\n\n // should only get back one object, so select the one object from the array of objects \n return $result;\n }", "title": "" }, { "docid": "b32af0b5a41ebf3069f3c2454455ad88", "score": "0.5880634", "text": "public function findPk($key, $con = null)\n {\n if ($key === null)\n {\n return null;\n }\n if ((null !== ($obj = CollectorProfileArchivePeer::getInstanceFromPool((string) $key))) && !$this->formatter)\n {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null)\n {\n $con = Propel::getConnection(CollectorProfileArchivePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n }\n else\n {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "55c6fde12bec1943e2504479cb8c83a3", "score": "0.5878899", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = SertifikasiPdPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(SertifikasiPdPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "b7dd09c50cf11dd8d88fb0c2affaece9", "score": "0.5875506", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = EventPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "9bc84049d839f92fca4c63a172a3a1c3", "score": "0.58726394", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ((null !== ($obj = RegistrationPeer::getInstanceFromPool((string) $key))) && $this->getFormatter()->isObjectFormatter()) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t} else {\n\t\t\t// the object has not been requested yet, or the formatter is not an object formatter\n\t\t\t$criteria = $this->isKeepQuery() ? clone $this : $this;\n\t\t\t$stmt = $criteria\n\t\t\t\t->filterByPrimaryKey($key)\n\t\t\t\t->getSelectStatement($con);\n\t\t\treturn $criteria->getFormatter()->init($criteria)->formatOne($stmt);\n\t\t}\n\t}", "title": "" }, { "docid": "886373e8c2fd93dca7f145f48a180a81", "score": "0.58692265", "text": "public function find($id){\n return parent::find($this->table, $id);\n }", "title": "" }, { "docid": "1391d12c118433eef878517aafe06353", "score": "0.5869207", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = OrdencompradetallePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(OrdencompradetallePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "13124e51b1104926d64b195c38b47281", "score": "0.5863322", "text": "function find($where='') {\n\t\t$db = Cgn_DbWrapper::getHandle($this->_table);\n\t\t$whereQ = '';\n\t\tif (is_array($where) ) {\n\t\t\t$whereQ = implode(' and ',$where);\n\t\t} else {\n\t\t\t$whereQ = $where;\n\t\t}\n\t\t/*\n\t\t} else if (strlen($where) ) {\n\t\t\t$whereQ = $this->_pkey .' = '.$where;\n\t\t */\n\t\tif ($this->_debugSql) {\n\t\t\tcgn::debug( $this->buildSelect($whereQ) );\n\t\t}\n\n\t\tif (!$db->query( $this->buildSelect($whereQ), FALSE )) {\n\t\t\t$err = $db->errorMessage;\n\t\t\t$errObj = Cgn_ErrorStack::pullError();\n\t\t\tif (!$this->dynamicReload($db, $whereQ)) {\n\t\t\t\t//pulling the db error hides the specifics of the SQL\n\t\t\t\tif (Cgn_ErrorStack::pullError()) {\n\t\t\t\t\tCgn_ErrorStack::throwError(\"Cannot load data item.\\n\".\n\t\t\t\t\t\t$err, E_USER_WARNING);\n\t\t\t\t}\n\t\t\t\treturn array();\n\t\t\t}\n\t\t}\n\n\n\t\t$objs = array();\n\n\t\tif(!$db->nextRecord()) {\n\t\t\treturn $objs;\n\t\t}\n\n\t\tdo {\n\t\t\t$x = new Cgn_DataItem($this->_table,$this->_pkey);\n\t\t\t$x->_excludes = $this->_excludes;\n\t\t\t$x->row2Obj($db->record);\n\t\t\t$x->_isNew = false;\n\t\t\tif ( $this->_rsltByPkey == TRUE) {\n\t\t\t\tif (! isset($db->record[$x->_pkey])) {\n\t\t\t\t\t$objs[] = $x;\n\t\t\t\t} else {\n\t\t\t\t\t$objs[$db->record[$x->_pkey]] = $x;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$objs[] = $x;\n\t\t\t}\n\t\t} while ($db->nextRecord());\n\t\treturn $objs;\n\t}", "title": "" }, { "docid": "22f6f1a929c0c4c5676801917cf8b69b", "score": "0.5861822", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = MantenimientoPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(MantenimientoPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "f27b96c309849d8167a1fa99a11ac3bf", "score": "0.5859087", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ClientPrestationsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ClientPrestationsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "586278e5b0bf91b74247c1311a019306", "score": "0.58581346", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = CmsArticlePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(CmsArticlePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "0af384e5bd347192c17a9ca7e5b77e2e", "score": "0.5850403", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DataLeaguePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(DataLeaguePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "623d80c9ec39c01dca7bab781d0a6f00", "score": "0.5845153", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserLicensePeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserLicensePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "dfc63b19f7e2398dc21229cbfa2d76f4", "score": "0.58395594", "text": "abstract protected function fetchOneObject();", "title": "" }, { "docid": "8ab0858e46b14c00dab7e8ffb8f7332e", "score": "0.5835139", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `idcliente`, `cliente_nombre`, `cliente_apaterno`, `cliente_amaterno`, `cliente_rfc`, `cliente_razonsocial`, `cliente_callefiscal`, `cliente_numerofiscal`, `cliente_interiorfiscal`, `cliente_coloniafiscal`, `cliente_ciudadfiscal`, `cliente_cpfiscal`, `cliente_estadofiscal`, `cliente_calle`, `cliente_numero`, `cliente_interior`, `cliente_colonia`, `cliente_cp`, `cliente_ciudad`, `cliente_estado`, `cliente_tipo`, `cliente_fecharegistro`, `cliente_estatus`, `cliente_credito`, `cliente_limitecredito`, `cliente_creditorestante` FROM `cliente` WHERE `idcliente` = :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), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Cliente();\n $obj->hydrate($row);\n ClientePeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "e9a9b8d426a394e6f27169005ad3e6ee", "score": "0.58313143", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsAfgeleideIndicatieaardPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsAfgeleideIndicatieaardPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "ead3e742a8f9a97297a48e94d2dee4d9", "score": "0.5829294", "text": "public static function find( $id ){\r\n\r\n try{\r\n $child = get_called_class();\r\n $model = new $child();\r\n\r\n $query = \"select * from `\" .$model->table. \"` where `\".$model->key.\"` = ? limit 1\";\r\n $argTypes = \"i\";\r\n $args = array();\r\n $args[] = &$argTypes;\r\n $args[] = &$id;\r\n $row = [];\r\n\r\n $dbHandler = new MySqlHandler();\r\n if( ! $dbHandler->dbConnected() ){\r\n throw new Exception('DB connection failed');\r\n }\r\n $select = $dbHandler->executePreparedQuery( $query, $args, $row );\r\n if( $select !== null && $select instanceof mysqli_stmt && $select->num_rows === 1 ){\r\n $select->fetch();\r\n $select->close();\r\n\r\n $model->original = $row;\r\n $model->attributes = $row;\r\n }else{\r\n $model = null;\r\n }\r\n\r\n $dbHandler->close();\r\n }catch (Exception $e){\r\n unset($dbHandler);\r\n unset($model);\r\n throw new Exception( $e->getMessage() );\r\n }\r\n\r\n return $model;\r\n }", "title": "" }, { "docid": "c52047216beb4978cf00071da8f3c6a6", "score": "0.5823224", "text": "public function findPk($key, $con = null)\n\t{\n\t\tif ($key === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif ((null !== ($obj = Oops_Db_CustomizationPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n\t\t\t// the object is alredy in the instance pool\n\t\t\treturn $obj;\n\t\t}\n\t\tif ($con === null) {\n\t\t\t$con = Propel::getConnection(Oops_Db_CustomizationPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n\t\t}\n\t\t$this->basePreSelect($con);\n\t\tif ($this->formatter || $this->modelAlias || $this->with || $this->select\n\t\t || $this->selectColumns || $this->asColumns || $this->selectModifiers\n\t\t || $this->map || $this->having || $this->joins) {\n\t\t\treturn $this->findPkComplex($key, $con);\n\t\t} else {\n\t\t\treturn $this->findPkSimple($key, $con);\n\t\t}\n\t}", "title": "" }, { "docid": "ea7eb326f862b484957e529c6c530020", "score": "0.58228123", "text": "public function find(string $id): Record;", "title": "" }, { "docid": "5ad8f9d8534c66c3c3a27cffa5e52af8", "score": "0.5812839", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PdnTugasPeer::getInstanceFromPool((string)$key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PdnTugasPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins\n ) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "0e9aa5514a97cabdc68cf4dd2a887ed2", "score": "0.58119303", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = rlsTradeNamePeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is alredy in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(rlsTradeNamePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "d7e2682b2ca9770dcc61c3a245ca3658", "score": "0.58083975", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = UserPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(UserPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "78e1ec1cf903c18904528ccdf861a166", "score": "0.58076745", "text": "public function findByPk($pk,$fields=array()){\r\n\t\t$this->trace(__FUNCTION__);\r\n\t\treturn $this->findBy_id($pk,$fields);\r\n\t}", "title": "" }, { "docid": "1e9a670d2e0585c8c164d6e1d05b14bf", "score": "0.580568", "text": "public function findPk($key, ConnectionInterface $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DocumentTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(DocumentTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "e1bec209605e7c510af25e809ee7f804", "score": "0.57989305", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT `ID`, `COLLECTOR_ID`, `COUNTRY`, `COUNTRY_ISO3166`, `STATE`, `COUNTY`, `CITY`, `ZIP_POSTAL`, `ADDRESS`, `LATITUDE`, `LONGITUDE`, `TIMEZONE` FROM `collector_geocache_archive` WHERE `ID` = :p0';\n try\n {\n $stmt = $con->prepare($sql);\n $stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n $stmt->execute();\n }\n catch (Exception $e)\n {\n Propel::log($e->getMessage(), Propel::LOG_ERR);\n throw new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM))\n {\n $obj = new CollectorGeocacheArchive();\n $obj->hydrate($row);\n CollectorGeocacheArchivePeer::addInstanceToPool($obj, (string) $row[0]);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "5ac6cb60cc5e9006fb2ee6667fdfdd6f", "score": "0.579879", "text": "public function findByPrimaryKey($key) {\n $requete = self::$SELECT . \" WHERE id=\" . $key;\n $rs = $this->conn->query($requete);\n if ($rs->EOF) {\n return null;\n }\n return $this->mapSqlToObject(mysqli_fetch_array($rs));\n }", "title": "" }, { "docid": "4bd2d174a723751fb0264550dfa1fa89", "score": "0.57936496", "text": "function FetchByID()\n\t{\n\t\tglobal $dal_info;\n\t\t$tableinfo = &$dal_info[ $this->infoKey ];\n\n\t\t$dal_where = \"\";\n\t\tforeach($tableinfo as $fieldname => $fld)\n\t\t{\n\t\t\t$command = 'if(isset($this->'.$fld['varname'].')) { ';\n\t\t\t$command.= '$this->Value[\\''.escapesq($fieldname).'\\'] = $this->'.$fld['varname'].';';\n\t\t\t$command.= ' }';\n\t\t\t\n\t\t\teval($command);\n\t\t\t\n\t\t\tforeach($this->Param as $field => $value)\n\t\t\t{\n\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t$dal_where.= $this->_connection->addFieldWrappers( $fieldname ).\"=\".$this->PrepareValue($value, $fld[\"type\"]) . \" and \";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// cleanup\n\t\t$this->Reset();\n\t\t// construct and run SQL\n\t\tif ($dal_where)\n\t\t\t$dal_where = \" where \".substr($dal_where, 0, -5);\n\t\t\t\n\t\t$dalSQL = \"select * from \".$this->_connection->addTableWrappers( $this->m_TableName ).$dal_where;\n\t\treturn $this->_connection->query( $dalSQL );\n\t}", "title": "" }, { "docid": "4dd7dec1f71874db4e1b2ed05ea581af", "score": "0.5787456", "text": "static function custom_get_one_sql($id) {\n # this is the default functionality\n $primary_key = static::get_primary_key();\n return static::get_sql() . \" WHERE o.`$primary_key`='$id'\";\n }", "title": "" }, { "docid": "0d6de57af7fca58f703a279421236e42", "score": "0.57814765", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ParameterPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ParameterPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "ee2aa10f98d6b7dbd462973bfc3a008e", "score": "0.5779313", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = DocumentJobPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(DocumentJobPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "42b8074b7d2e2e2caed742139ff35105", "score": "0.5776864", "text": "protected function findPkSimple($key, $con)\n\t{\n\t\t$sql = 'SELECT `ID`, `UNIT_TYPE_ID`, `CITY_ID`, `TURN`, `TOTAL`, `IS_ACTIVE`, `CREATED_AT`, `UPDATED_AT` FROM `unit` WHERE `ID` = :p0';\n\t\ttry {\n\t\t\t$stmt = $con->prepare($sql);\n\t\t\t$stmt->bindValue(':p0', $key, PDO::PARAM_INT);\n\t\t\t$stmt->execute();\n\t\t} catch (Exception $e) {\n\t\t\tPropel::log($e->getMessage(), Propel::LOG_ERR);\n\t\t\tthrow new PropelException(sprintf('Unable to execute SELECT statement [%s]', $sql), $e);\n\t\t}\n\t\t$obj = null;\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$obj = new Unit();\n\t\t\t$obj->hydrate($row);\n\t\t\tUnitPeer::addInstanceToPool($obj, (string) $key);\n\t\t}\n\t\t$stmt->closeCursor();\n\n\t\treturn $obj;\n\t}", "title": "" }, { "docid": "fbaafaae47b9de77016d5e3bfdd237ca", "score": "0.57575667", "text": "public function findByPK($id) {\n // prepare SELECT statement\n $statement = $this->pdo->prepare('SELECT id, symbol, company\n FROM stocks\n WHERE id = :id');\n // bind value to the :id parameter\n $stmt->bindValue(':id', $id);\n \n // execute the statement\n $stmt->execute();\n \n // return the result set as an object\n return $stmt->fetchObject();\n }", "title": "" }, { "docid": "566a7d098a395bace6597445fcc7aeb6", "score": "0.5756155", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = GsLogistiekeInformatiePeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(GsLogistiekeInformatiePeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "33e450636101f50a32270071f6686075", "score": "0.57532835", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = TVShowTableMap::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getServiceContainer()->getReadConnection(TVShowTableMap::DATABASE_NAME);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "5a676cd842e1dee2a6f9ae8556de8c5d", "score": "0.5745981", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = PromocionPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(PromocionPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "2bd1040e4c0b824e03d86536c50c9ffe", "score": "0.57446676", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = EventsPeer::getInstanceFromPool((string) $key))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(EventsPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "8e0b2a36efcdd2f6198ea29d7992cfa6", "score": "0.5739541", "text": "public function findByPK($id) {\n // prepare SELECT statement\n $stmt = $this->pdo->prepare('SELECT id, symbol, company\n FROM stocks\n WHERE id = :id');\n // bind value to the :id parameter\n $stmt->bindValue(':id', $id);\n \n // execute the statement\n $stmt->execute();\n \n // return the result set as an object\n return $stmt->fetchObject();\n }", "title": "" }, { "docid": "8683d0f891ff103f557b8579257ff804", "score": "0.5728231", "text": "protected function findPkSimple($key, $con)\n {\n $sql = 'SELECT ID_PAIS, DESCRICAO, SUCINTO, NACIONALIDADE, CREATED_AT, UPDATED_AT, CREATED_BY, UPDATED_BY FROM tbpais WHERE ID_PAIS = :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), $e);\n }\n $obj = null;\n if ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n $obj = new Tbpais();\n $obj->hydrate($row);\n TbpaisPeer::addInstanceToPool($obj, (string) $key);\n }\n $stmt->closeCursor();\n\n return $obj;\n }", "title": "" }, { "docid": "dcdadfd5151bd7281e76da5334de14e7", "score": "0.57275224", "text": "public function findPk($key, $con = null)\n {\n if ($key === null) {\n return null;\n }\n if ((null !== ($obj = ReviewPeer::getInstanceFromPool(serialize(array((string) $key[0], (string) $key[1], (string) $key[2]))))) && !$this->formatter) {\n // the object is already in the instance pool\n return $obj;\n }\n if ($con === null) {\n $con = Propel::getConnection(ReviewPeer::DATABASE_NAME, Propel::CONNECTION_READ);\n }\n $this->basePreSelect($con);\n if ($this->formatter || $this->modelAlias || $this->with || $this->select\n || $this->selectColumns || $this->asColumns || $this->selectModifiers\n || $this->map || $this->having || $this->joins) {\n return $this->findPkComplex($key, $con);\n } else {\n return $this->findPkSimple($key, $con);\n }\n }", "title": "" }, { "docid": "acd5060ab624c43e0e53b3590250a89e", "score": "0.5724173", "text": "public function find($mixed)\n {\n $this->where([$this->primaryKey, '=', $mixed]);\n $result = $this->executeSelectQuery();\n $this->setPrimaryKeyValue($result);\n $result = $this->buildQueryResult($result);\n\n //handle With Relationships\n if(!empty($this->with)) $result = $this->nextWithScope($result);\n \n $this->afterQuery();\n return $result;\n }", "title": "" }, { "docid": "b723d5fe81828d5f5ab9401ce4463c93", "score": "0.57239234", "text": "public function findByPk($primary)\n {\n $stmt = $this->Adapter->prepare(\"SELECT * FROM $this->table WHERE $this->primaryName=:id\");\n $stmt->execute(['id' => $primary]);\n return $stmt->fetch($this->pdoFetch);\n }", "title": "" } ]
c951fd0417eac676368ee9e200661837
Implementacion de metodo para mostrar los datos de un registro a modificar
[ { "docid": "1385557e5cd76f1c9346768eae0640c5", "score": "0.0", "text": "public function mostrar($reg_anul){\n\t\t$sql = \"SELECT\n\t\t\t\tec.est_cta_contrato_id,\n\t\t\t\tec.est_cta_persona_id,\n\t\t\t\tra.reg_anul_fecha,\n\t\t\t\tra.reg_anul_concepto,\n\t\t\t\tu.usu_nombre,\n\t\t\t\tu.usu_apellido,\n\t\t\t\tp.per_nombre,\n\t\t\t\tp.per_apellido\n\t\t\t\tFROM registros_anulados ra\n\t\t\t\tINNER JOIN estado_cuenta_fin ec \n\t\t\t\tON ra.reg_anul_id_anuldo = ec.est_cta_id\n\t\t\t\tINNER JOIN persona p \n\t\t\t\tON ec.est_cta_persona_id = p.per_id\n\t\t\t\tINNER JOIN usuario_log u \n\t\t\t\tON ra.reg_anul_id_usu_anula = u.usu_id\n\t\t\t\tWHERE reg_anul_id = '$reg_anul'\";\n\n\t\treturn ejecutarConsultaSimpleFila($sql);\n\t}", "title": "" } ]
[ { "docid": "798fb8fea9361a22e7a6fad1427bf1fd", "score": "0.676418", "text": "function modificar(){\n $id=$this->objUsuarios->getIdUsuario();\n $pass=$this->objUsuarios->getPassword();\n $rol=$this->objUsuarios->getRol();\n\n $objControlConexion = new ControlConexion();\n\n //se abre la base de datos\n $objControlConexion->abrirBd(\"localhost\", \"root\", \"\", \"mesa_ayuda\");\n $cmdSql=\"UPDATE usuarios SET username='\".$id.\"', password='\".$pass.\"', idRol=\".$rol.\" WHERE usuario='\".$id.\"'\";\n $objControlConexion->ejecutarComandoSql($cmdSql);\n $objControlConexion->cerrarBd();\n }", "title": "" }, { "docid": "ed44bf439d0a4c323b0dc46346ce45d3", "score": "0.6741656", "text": "function editar(){\r\n\r\n $usuario_dao= new usuario_dao();\r\n $ativo=\"\";\r\n $resultado=$usuario_dao::selecionar($_POST[\"id\"],$ativo);\r\n echo \"Editar usuário¨\".$resultado;\r\n\r\n }", "title": "" }, { "docid": "cc6eb0e0b668620d4b182b2bd2bdefb5", "score": "0.66758925", "text": "function mostrar_registro(){\n if (isset($_SESSION['id_temporal']) && $_SESSION['id_temporal']!=\"\")\n $id=$_SESSION['id_temporal'];\n else if(isset($_GET['id']) && $_GET['id']!=\"\")\n $id=$_GET['id'];\n $sql=\"SELECT * FROM registro WHERE id_reg='$id'\";\n $consulta=mysql_query($sql);\n $resultado = mysql_fetch_array($consulta);\n $this->categoria=$resultado['categoria_reg'];\n $this->nombre=$resultado['nombre_reg'];\n $this->apellido=$resultado['apellido_reg'];\n $this->sexo=$resultado['sexo_reg'];\n $this->nacimiento=$this->convertir_fecha($resultado['nacimiento_reg']);\n $this->lugar=$resultado['lugar_reg'];\n $this->tipo=$resultado['tipo_reg'];\n $this->cedula=$resultado['cedula_reg'];\n $this->direccion=$resultado['direccion_reg'];\n $this->correo=$resultado['correo_reg'];\n $this->correo2=$resultado['correo2_reg'];\n $this->telefono=$resultado['telefono_reg'];\n $this->celular=$resultado['celular_reg'];\n $this->pais=$resultado['pais_reg'];\n $this->estado=$resultado['estado_reg'];\n $this->municipio=$resultado['municipio_reg'];\n $this->website=$resultado['website_reg'];\n $this->login=$resultado['login_reg'];\n $this->publicidad=$resultado['publicidad_reg'];\n $this->medio=$resultado['medio_reg'];\n $this->catalogo=$resultado['catalogo_reg'];\n\n }", "title": "" }, { "docid": "9259c485ad5627e9efa142e6a7bbd63c", "score": "0.66559416", "text": "protected function editar()\n {\n }", "title": "" }, { "docid": "1002e5277180e8215b5afdb64c03f87e", "score": "0.66167945", "text": "public function Modificar()\n\t{\n\t\t$tipo_de_usuario = $this -> session -> userdata('tipo_de_usuario');\n\t\t$logueado \t\t = $this -> session -> userdata('logueado');\n\t\tif($logueado==\"1\")\n\t\t{\n\t\t\t$id_funcionario = $this -> input -> post('id_funcionario_recuperado');\n\t\t\t\n\t\t\t$data = array(\n\t\t\t'nombres' => $this -> input -> post('nombres'),\n\t\t\t'paterno'\t => $this -> input -> post('paterno'),\n\t\t\t'materno' \t => $this -> input -> post('materno'),\n\t\t\t'ci' \t \t => $this -> input -> post('ci'),\n\t\t\t'direccion' => $this -> input -> post('direccion'),\n\t\t\t'telefonos' => $this -> input -> post('telefonos'),\n\t\t\t'celular' \t => $this -> input -> post('celular'),\n\t\t\t'cargo' \t => $this -> input -> post('cargo')\n\t\t\t);\n\t\t\t$Modificar = $this -> Modelo_funcionario -> Modifica($id_funcionario, $data);\n\t\t\tredirect('Funcionario/Lista');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect('Login/Salir');\n\t\t}\n\t}", "title": "" }, { "docid": "cfcafe7e076f1c2aceb2b583e9070308", "score": "0.66102403", "text": "public function modificar(){\n\t\tglobal $db_con;\n\n\t\ttry{\n\t\t\t$atributos = $this->atributos();\n\t\t\t$atributos_pares = array();\n\t\t\tforeach ($atributos as $key => $value) {\n\t\t\t\t$atributos_pares[] = \"{$key}='{$value}'\";\n\t\t\t}\n\t\t\t$sql = \"UPDATE \".static::$nombre_tabla.\" SET \";\n\t\t\t$sql .= join(\", \", $atributos_pares);\n\t\t\t$sql .= \" WHERE id='\".$this->id.\"'\";\n\t\t\tif($db_con->query($sql)) { \n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e){\n\t\t echo $e->getMessage();\n\t\t exit;\n\t\t}\n\t}", "title": "" }, { "docid": "77ab37e7b91dd6214ff463de2cfda923", "score": "0.6601184", "text": "public function modificar(){\n\t\t$objDatos = new clsDatos();\n\t\t$sql = \"UPDATE usuario SET(id_car='$this->id_car',ced_usu='$this->ced_usu',pno_usu='$this->pno_usu',sno_usu='$this->sno_usu',pap_usu='$this->pap_usu',sap_usu='$this->sap_usu',fna_usu='$this->fna_usu',cel_usu='$this->cel_usu',tel_usu='$this->tel_usu',fot_usu='$this->fot_usu',nus_usu='$this->nus_usu',con_usu='$this->con_usu',ema_usu='$this->ema_usu',ffc_usu='$this->ffc_usu',est_usu='$this->est_usu')\";\n\t\t$objDatos->ejecutar($sql);\n\t\t$objDatos->crerrarconexion();\n\t}", "title": "" }, { "docid": "87d1a22e405982752c84bfed1ea6ebe6", "score": "0.65778977", "text": "public function modificar(){\n $consulta = \"UPDATE personal SET nombre='\".$this->nombre.\"', apellido='\".$this->apellido.\"', correo='\".$this->email.\"', telefono='\".$this->telf.\"', id_nivel='\".$this->id_nivel.\"', id_area='\".$this->id_area.\"', estado='\".$this->estado.\"' WHERE id='\".$this->cedula.\"'\";\n\n $conec = new Conexion();\n\n $conec->conectar();\n\n if (!$conec->obtenerConexion()){\n return -1;// Error en la conexión\n }\n\n $resultado = pg_query($consulta);\n\n if (!$resultado){\n return 0;// Error en la consulta\n }else{\n pg_FreeResult($resultado);\n $conec->cerrarConexion();\n return 1;// Actualizado con éxito\n }\n }", "title": "" }, { "docid": "23ffc5f20bc9dd9fe790624a2e122c92", "score": "0.64940447", "text": "public function modificarDatos(){\n\n //Comprobamos que ninguno de los campos este vacío \n if(empty($_POST[\"dni\"]) || empty($_POST[\"nombre\"]) || empty($_POST[\"apellidos\"]) || empty($_POST[\"telefono\"]) || empty($_POST[\"edad\"])\n || empty($_POST[\"nivel\"]) || empty($_POST[\"tiempo\"]) || empty($_POST[\"comentarios\"]) || empty($_POST[\"propuestas\"]) || empty($_POST[\"valoracion\"])){\n $this->interfazUsuarioActual = \"<p>No puede dejar campos vacíos.</p>\"; \n return; \n }\n \n // Conexión al SGBD local con el usuario creado previamente en XAMPP\n $db = new mysqli($this->servername,$this->username,$this->password,$this->dataBaseName);\n \n // compruebo la conexion\n if($db->connect_error) {\n exit (\"<h2>ERROR de conexión:\".$db->connect_error.\"</h2>\"); \n } else {$this->interfazUsuarioActual = \"<h2>Conexión establecida</h2>\";}\n\n //prepara la consulta\n $consultaPre = $db->prepare(\"SELECT * FROM PruebasUsabilidad WHERE dni = ?\"); \n \n //obtiene los parámetros de la variable predefinida $_POST\n // s indica que dni es un string\n $consultaPre->bind_param('s', $_POST[\"dni\"]); \n\n //ejecuta la consulta\n $consultaPre->execute();\n\n //guarda los resultados como un objeto de la clase mysqli_result\n $resultado = $consultaPre->get_result();\n\n //Visualización de los resultados de la búsqueda\n if ($resultado->fetch_assoc()!=NULL) {\n $this->interfazUsuarioActual = \"<p>La fila de la tabla 'PruebasUsabilidad' que va a ser modificada es:</p>\";\n $this->interfazUsuarioActual .= \"<p>\". 'dni' . \" - \" . 'nombre' .\" - \". 'apellidos' .\" - \". 'email'\n .\" - \". 'telefono'.\" - \". 'edad'.\" - \". 'sexo'.\" - \". 'nivel'.\" - \". 'tiempo'.\" - \". 'estadoRealizacion'.\" - \"\n . 'comentarios'.\" - \". 'propuestas'.\" - \". 'valoración' .\"</p>\";\n $resultado->data_seek(0); //Se posiciona al inicio del resultado de búsqueda\n $fila = $resultado->fetch_assoc(); \n $this->interfazUsuarioActual .= \"<ul>\";\n $this->interfazUsuarioActual .= \"<li>\" . $fila[\"dni\"] . \" - \" . $fila[\"nombre\"] . \" - \".$fila['apellidos'].\" - \"\n . $fila['email']. \" - \" . $fila[\"telefono\"]. \" - \" . $fila[\"edad\"]. \" - \" . $fila[\"sexo\"]. \n \" - \" . $fila[\"nivel\"].\" - \" . $fila[\"tiempo\"].\" - \" . $fila[\"estadoRealizacion\"].\" - \" \n . $fila[\"comentarios\"]. \" - \" . $fila[\"propuestas\"]. \" - \" . $fila[\"valoracion\"] .\"</li>\";\n $this->interfazUsuarioActual .= \"</ul>\"; \n \n //Realiza la actualizacion\n $consultaPre = $db->prepare(\"UPDATE PruebasUsabilidad SET nombre=?, apellidos=?, email=?, nivel=?, tiempo=?, estadoRealizacion=?,\n comentarios=?,propuestas=?,valoracion=? WHERE dni = ?\"); \n //obtiene los parámetros de la variable almacenada\n $consultaPre->bind_param('sssiisssis', $_POST[\"nombre\"],$_POST[\"apellidos\"],$_POST[\"email\"],$_POST[\"nivel\"],$_POST[\"tiempo\"],$_POST[\"estado\"],\n $_POST[\"comentarios\"],$_POST[\"propuestas\"],$_POST[\"valoracion\"],$_POST[\"dni\"]); \n //ejecuta la consulta\n $consultaPre->execute();\n\n if($consultaPre->affected_rows == -1){\n $this->interfazUsuarioActual = \"<p>Nuevos datos erroneos, compruebe que los datos introducidos siguen el formato correcto. </p>\";\n }\n else{\n $this->interfazUsuarioActual .= \"<p>Actualizados los datos</p>\";\n //prepara la consulta\n $consultaPre = $db->prepare(\"SELECT * FROM PruebasUsabilidad WHERE dni = ?\"); \n \n //obtiene los parámetros de la variable predefinida $_POST\n // s indica que dni es un string\n $consultaPre->bind_param('s', $_POST[\"dni\"]); \n\n //ejecuta la consulta\n $consultaPre->execute();\n \n // compruebo los datos recibidos \n if ($resultado->num_rows > 0) {\n // Mostrar los datos en un lista\n $this->interfazUsuarioActual .= \"<p>Los datos en la tabla 'PruebasUsabilidad' tras la actualización son: </p>\";\n $this->interfazUsuarioActual .= \"<p>\". 'dni' . \" - \" . 'nombre' .\" - \". 'apellidos' .\" - \". 'email'\n .\" - \". 'telefono'.\" - \". 'edad'.\" - \". 'sexo'.\" - \". 'nivel'.\" - \". 'tiempo'.\" - \". 'estadoRealizacion'.\" - \"\n . 'comentarios'.\" - \". 'propuestas'.\" - \". 'valoración' .\"</p>\";\n $resultado = $consultaPre->get_result();\n $fila = $resultado->fetch_assoc(); \n $this->interfazUsuarioActual .= \"<ul>\";\n $this->interfazUsuarioActual .= \"<li>\" . $fila[\"dni\"] . \" - \" . $fila[\"nombre\"] . \" - \".$fila['apellidos'].\" - \"\n . $fila['email']. \" - \" . $fila[\"telefono\"]. \" - \" . $fila[\"edad\"]. \" - \" . $fila[\"sexo\"]. \n \" - \" . $fila[\"nivel\"].\" - \" . $fila[\"tiempo\"].\" - \" . $fila[\"estadoRealizacion\"].\" - \" \n . $fila[\"comentarios\"]. \" - \" . $fila[\"propuestas\"]. \" - \" . $fila[\"valoracion\"] .\"</li>\";\n $this->interfazUsuarioActual .= \"</ul>\"; \n } \n } \n } \n else {\n $this->interfazUsuarioActual = \"<p>No se encontró el DNI introducido. No se ha actualizado nada</p>\";\n }\n \n // cierra la consulta\n $consultaPre->close(); \n\n //cerrar la conexión\n $db->close(); \n }", "title": "" }, { "docid": "3a1d12be6dc70dbdfe983fb58cb41e42", "score": "0.64937025", "text": "public function editar()\n\t{\n $id = intval(self::get(\"id\"));\n\n $usuario = $this->leerAtributo(\"objeto\")->filtrar(array(\"Usuario.id = '$id'\"));\n $usuario = self::leerArregloEstatico($usuario, 0);\n $this->pasarVariable(\"usuario\", $usuario);\n\n $this->pasarVariable(\"id\", $id);\n\n if(sizeof($_POST) > 0)\n {\n $this->leerAtributo(\"objeto\")->edita($id, $_POST);\n echo json_encode($this->leerAtributo(\"objeto\")->leerAtributo('errores'));\n exit;\n }\n\n\t}", "title": "" }, { "docid": "ee35c9a383462515292541a27c085706", "score": "0.6462688", "text": "function EDIT()\n{\n\n\t$check = $this->comprobar_atributos_EDIT();\n\n\t//si algun atributo no cumple las restricciones\n\tif ($check !== true) return $check;\n\n\t$sql = \"SELECT *\n\t\t\tFROM TITULACION\n\t\t\tWHERE CODTITULACION = '$this->titulacion'\";\n\n\t$response = $this->mysqli->query($sql)->num_rows;\n\tif ($response == 1) {\n\n\t\t$sql = \"UPDATE TITULACION\n\t\t\tSET NOMBRETITULACION = '$this->nombre',\n\t\t\t\tRESPONSABLETITULACION = '$this->responsable'\n\t\t\tWHERE ( CODTITULACION = '$this->titulacion')\";\n\n\t\t$result = $this->mysqli->query($sql);\n\n\t\tif($result = 1) return 'Actualización realizada con éxito';\n\t}\n\treturn 'Error de gestor de base de datos';\n}", "title": "" }, { "docid": "3622b6e96716935788d5cc0e03abb7e2", "score": "0.6447595", "text": "function EDIT() {\n\t\t// se construye la sentencia de busqueda de la tupla en la bd\n\t\t$sql = \"SELECT * FROM ACCION WHERE (IdAccion = '$this->IdAccion')\";\n\t\t// se ejecuta la query\n\t\t$result = $this->mysqli->query( $sql );\n\t\t// si el numero de filas es igual a uno es que lo encuentra\n\t\tif ( $result->num_rows == 1 ) { // se construye la sentencia de modificacion en base a los atributos de la clase\n\t\t\t\n\t\t\t\t$sql = \"UPDATE ACCION SET \n\t\t\t\t\tIdAccion = '$this->IdAccion',\n\t\t\t\t\t NombreAccion='$this->NombreAccion',\n DescripAccion='$this->DescripAccion'\n\t\t\t\tWHERE ( IdAccion = '$this->IdAccion'\n\t\t\t\t)\"; //se construye la sentencia sql.\n \n\t\t\t// si hay un problema con la query se envia un mensaje de error en la modificacion\n\t\t\tif ( !( $result = $this->mysqli->query( $sql ) ) ) {\n\t\t\t\treturn 'Error en la modificación';\n\t\t\t} else { // si no hay problemas con la modificación se indica que se ha modificado\n\t\t\t\treturn 'Modificado correctamente';\n\t\t\t}\n\n\t\t} else // si no se encuentra la tupla se manda el mensaje de que no existe la tupla\n\t\t\treturn 'No existe en la base de datos';\n\t}", "title": "" }, { "docid": "0549b875ea55eb878c8b8dc9ccfcfe22", "score": "0.6434688", "text": "public function modificar(){\n\t\textract($_REQUEST);//extrayendo valores url\n\t\t$db=new clasedb();\n\t\t$conex=$db->conectar();//conectando con la base de datos\n\t\t$sql=\"SELECT * FROM datos_personales WHERE id=\".$id_persona.\"\";\n\t\t$res=mysqli_query($conex,$sql);//ejecutando consulta\n\t\t$data=mysqli_fetch_array($res);//extrayendo datos en array\n\t\theader(\"Location: ../personas/editar.php?data=\".serialize($data));\n\t}", "title": "" }, { "docid": "914f54ea45b9f42106770a0f27c22873", "score": "0.6433504", "text": "function modificarEntregaDet(){\n\t\t$this->procedimiento='conta.ft_entrega_det_ime';\n\t\t$this->transaccion='CONTA_END_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_entrega_det','id_entrega_det','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_int_comprobante','id_int_comprobante','int4');\n\t\t$this->setParametro('id_entrega','id_entrega','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "e8767e753c5cbf07d54f04cbe94c30da", "score": "0.6432867", "text": "function EDIT() {\n\t\t// se construye la sentencia de busqueda de la tupla en la bd\n\t\t$sql = \"SELECT * FROM NOTA_TRABAJO WHERE (login = '$this->login' AND IdTrabajo = '$this->IdTrabajo')\";\n\t\t// se ejecuta la query\n\t\t$result = $this->mysqli->query( $sql );\n\t\t// si el numero de filas es igual a uno es que lo encuentra\n\t\tif ( $result->num_rows == 1 ) {\n\t\t\t //modificamos los atributos de la tabla USUARIO\n\t\t\t\t$sql = \"UPDATE NOTA_TRABAJO SET \n\t\t\t\t\tlogin = '$this->login',\n IdTrabajo='$this->IdTrabajo',\n\t\t\t\t\tNotaTrabajo = '$this->NotaTrabajo'\n\t\t\t\tWHERE ( login = '$this->login' AND IdTrabajo = '$this->IdTrabajo'\n\t\t\t\t)\";\n\t\t\t// si hay un problema con la query se envia un mensaje de error en la modificacion\n\t\t\tif ( !( $resultado = $this->mysqli->query( $sql ) ) ) {\n\t\t\t\treturn 'Error en la modificación';\n\t\t\t} else { // si no hay problemas con la modificación se indica que se ha modificado\n\t\t\t\treturn 'Modificado correctamente';\n\t\t\t}\n\n\t\t \n\t\t} // si no se encuentra la tupla se manda el mensaje de que no existe la tupla\n\t\t else\n\t\t\t\t return 'No existe en la base de datos';\t\t\n\t}", "title": "" }, { "docid": "84d5223821e6d771d6b466e137902ff9", "score": "0.64288104", "text": "public function modificar() {\n if ($this->id && $this->nombre && $this->descripcion) {\n $consulta = \"UPDATE estado SET nombre = ?, descripcion = ? WHERE id = ?\";\n $datos = array($this->nombre, $this->descripcion, $this->id);\n $modificacion = SQLServer::instancia()->modificar($consulta, $datos);\n $this->mensaje = utf8_encode($this->nombre) . \": \" . SQLServer::instancia()->getMensaje();\n return $modificacion;\n }\n $this->mensaje = \"No se recibieron los campos obligatorios\";\n return 0;\n }", "title": "" }, { "docid": "1721d346efb8431affdf376e848f9ee9", "score": "0.642325", "text": "public function alterar() {\t\t\t\t\t\t//\tALTERANDO REGISTRO!!!\n\t\t$id = $this->getParam('id');\t\t\t\t//\tPega parametro na classe System\n\t\t$confirma = $this->getParam('confirma');\t//\tPega parametro na classe System\n\t\t\n\t\t$this->datas['show_registro'] = $this->verificaRegistro($id, $this->clientes->ClienteShow(\"id=\".$id));\t//\tVERIFICA SE O REGISTRO EXISTE!!!\n\t\t$this->datas['tipo'] = '2';\t\t\t\t\t\t// Alteração\t\t\n\t\t\n\t\tif ($confirma == \"sim\") {\n\t\t\t$this->clientes->update( $this->retorna_formulario($this->clientes->_tabela), \"id=\".$id) ;\n\t\t\t$this->redirecionar_pagina_inicial();\t\n\t\t} else {\n\t\t\t$this->view('incluir_alterar', $this->datas);\n\t\t}\t\n\t}", "title": "" }, { "docid": "855ee6a5f14bc7c11fbecb2d2f1178d2", "score": "0.63760155", "text": "public function modificar_datos()\r\n\t{\r\n\t\t$Permitido = array('Gerencia' => '', 'Sistemas' => '', 'Ventas' => '');\r\n\t\t$this->ver_sesion_m->acceso($Permitido, true);\r\n\t\t//Los clientes no pueden ni deben de modificar esta informacion.\r\n\t\t$this->ver_sesion_m->no_clientes();\r\n\t\t\r\n\t\t//Limpieza de variables\r\n\t\t$Id_grupo = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('id_grupo')\r\n\t\t);\r\n\t\t\r\n\t\t$Nombre = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('nombre')\r\n\t\t);\r\n\t\t$Abrev = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('abrev')\r\n\t\t);\r\n\t\t\r\n\t\t$Tipo = $this->seguridad_m->mysql_seguro(\r\n\t\t\t$this->input->post('tipo')\r\n\t\t);\r\n\t\t$Id_Cliente = $this->input->post('cliente') + 0;\r\n\t\t\r\n\t\t\r\n\t\t//Carga del modelo que nos permite modificar la informacion\r\n\t\t$this->load->model('grupo/modificar_m', 'mod_m');\r\n\t\t\r\n\t\t//Llamamos el modelo para poder modificar los datos.\r\n\t\t$agregar_grupos= $this->mod_m->modificar_sql(\r\n\t\t\t$Id_grupo,\r\n\t\t\t$Nombre,\r\n\t\t\t$Abrev,\r\n\t\t\t$Tipo,\r\n\t\t\t$Id_Cliente\r\n\t\t);\r\n\t\t\r\n\t\t//Regresamos a la pagina para de listado\r\n\t\t//para inciar el proceso nuevamente.\r\n\t\theader('location: /grupo/listado');\r\n\t\t//Evitamos que se continue ejecutando el script\r\n\t\texit();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c0fb440839c7e299cb4154ba783709c6", "score": "0.637568", "text": "function editar_registro(){\n $this->accion=\"Editando Mi Perfil\";\n if (isset($_POST['envio']) && $_POST['envio']==\"Guardar\" && isset($_SESSION['id_temporal']) && $_SESSION['id_temporal']!=\"\"){\n $id=$_SESSION['id_temporal'];\n $this->asignar_valores();\n $this->nacimiento=$this->convertir_fecha($this->nacimiento);\n $sql=\"UPDATE registro SET categoria_reg='$this->categoria', nombre_reg='$this->nombre', apellido_reg='$this->apellido', sexo_reg='$this->sexo', nacimiento_reg='$this->nacimiento', lugar_reg='$this->lugar', tipo_reg='$this->tipo', cedula_reg='$this->cedula', correo_reg='$this->correo', correo2_reg='$this->correo2', telefono_reg='$this->telefono', celular_reg='$this->celular', direccion_reg='$this->direccion', pais_reg='$this->pais', estado_reg='$this->estado', municipio_reg='$this->municipio', website_reg='$this->website' , publicidad_reg='$this->publicidad', medio_reg='$this->medio' WHERE id_reg='$id'\";\n //importante\n $_SESSION['editar_usuario']=\"no\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $this->nacimiento=$this->convertir_fecha($this->nacimiento);\n $this->mensaje=2;\n //header(\"location:/perfil.php\");\n\n }else{\n $this->mostrar_registro();\n }\n }", "title": "" }, { "docid": "132d1304d9c8818f180bc8b6643d1cd9", "score": "0.63713706", "text": "function editar_registro2(){\n $this->accion=\"Editar Registro de Cliente\";\n if (isset($_POST['envio']) && $_POST['envio']==\"Actualizar\"){\n $id=$_GET['id'];\n $this->asignar_valores();\n $this->nacimiento=$this->convertir_fecha($this->nacimiento);\n $sql=\"UPDATE registro SET categoria_reg='$this->categoria', nombre_reg='$this->nombre', apellido_reg='$this->apellido', sexo_reg='$this->sexo', nacimiento_reg='$this->nacimiento', lugar_reg='$this->lugar', tipo_reg='$this->tipo', cedula_reg='$this->cedula', correo_reg='$this->correo', correo2_reg='$this->correo2', telefono_reg='$this->telefono', celular_reg='$this->celular', direccion_reg='$this->direccion', pais_reg='$this->pais', estado_reg='$this->estado', municipio_reg='$this->municipio', website_reg='$this->website' , publicidad_reg='$this->publicidad', medio_reg='$this->medio', catalogo_reg='$this->catalogo' WHERE id_reg='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $this->mensaje=2;\n //header(\"location:/perfil.php\");\n\n }else{\n $this->mostrar_registro();\n }\n }", "title": "" }, { "docid": "fd0b7b6d802da4e8b8e4a3371b914c60", "score": "0.6366165", "text": "public function edit(Detalle_Resultado $detalle_Resultado)\n {\n //\n }", "title": "" }, { "docid": "5af5ce639d0b4ddc476fd6b9fe8b6a6d", "score": "0.6352818", "text": "function EDIT()\r\n{\r\n\t// se construye la sentencia de busqueda de la tupla en la bd\r\n $sql = \"SELECT * FROM PISTA WHERE (idPista = '$this->idPista')\";\r\n // se ejecuta la query\r\n $result = $this->mysqli->query($sql);\r\n // si el numero de filas es igual a uno es que lo encuentra\r\n if ($result->num_rows == 1)\r\n {\t// se construye la sentencia de modificacion en base a los atributos de la clase\r\n\t\t$sql = \"UPDATE PISTA SET \r\n\t\t\t\t\tidPista = '$this->idPista', \r\n\t\t\t\t\trestriccion = '$this->restriccion', \r\n\t\t\t\t\tnombre = '$this->nombre', \r\n\t\t\t\t\thora = '$this->hora', \r\n\t\t\t\t\tfecha = '$this->fecha'\t\t\t\t\t\r\n\t\t\t\tWHERE ( idPista = '$this->idPista'\r\n\t\t\t\t)\";\r\n\t\t// si hay un problema con la query se envia un mensaje de error en la modificacion\r\n if (!($resultado = $this->mysqli->query($sql))){\r\n\t\t\treturn 'Error en la modificación'; \r\n\t\t}\r\n\t\telse{ \r\n\t\t\treturn 'Modificado correctamente.';\r\n\t\t\t\r\n\t\t}\r\n }\r\n else // si no se encuentra la tupla se manda el mensaje de que no existe la tupla\r\n \treturn 'No existe en la base de datos';\r\n}", "title": "" }, { "docid": "8f8ee00df41d7014e2b98ed76c2e6216", "score": "0.6343317", "text": "public function Editar(){\n $fecha = new fecha();\n\n //Se obtienen los datos del proveedor a editar.\n if(isset($_REQUEST['fechaId'])){\n $fecha = $this->model->Obtener($_REQUEST['fechaId']);\n }\n\n //Llamado de las vistas.\n require_once 'Views/header/dataTableReport.php';\n require_once 'Views/fecha/editar.php';\n require_once 'Views/footer/BeginFooter.php';\n require_once 'Views/footer/ScriptValidation.php';\n require_once 'Views/footer/ScriptNotification.php';\n require_once 'Views/footer/ScriptDatePicker.php';\n require_once 'Views/footer/ScriptDropDownSelect.php';\n require_once 'Views/footer/EndFooter.php';\n }", "title": "" }, { "docid": "7c7417880d10d0b4c2934bc0646b2af5", "score": "0.63227457", "text": "function modificarMemoriaDet(){\n\t\t$this->procedimiento='pre.ft_memoria_det_ime';\n\t\t$this->transaccion='PRE_MDT_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_memoria_det','id_memoria_det','int4');\n\t\t$this->setParametro('importe','importe','numeric');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_periodo','id_periodo','int4');\n\t\t$this->setParametro('id_memoria_calculo','id_memoria_calculo','int4');\t\t\n\t\t$this->setParametro('cantidad_mem','cantidad_mem','numeric');\n\t\t$this->setParametro('unidad_medida','unidad_medida','varchar');\n\t\t$this->setParametro('importe_unitario','importe_unitario','numeric');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "964be736521c02392a55a9bbf62fa264", "score": "0.63130856", "text": "public function editSalida()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "ab4cd5cb130c0481c816c9e6de175616", "score": "0.63090456", "text": "public function editarUsuario($id){\n\t\t$objeto = new modelo();\n\t\t$data[\"id\"] = $id;\n\t\t$data[\"titulo\"] = \"Modificar Usuario\";\n\t\t$data[\"objeto\"] = $objeto->getUsuario($id); //llamando método que muestra un producto en el formulario\n\t\trequire_once \"vista/admin/modificarUsuarios.php\";\n\n\t}", "title": "" }, { "docid": "ebd7d68d9bd21d132e92c59033c1eee2", "score": "0.63077503", "text": "public function edit(Resultados $resultados)\n {\n //\n }", "title": "" }, { "docid": "2c0d2cc851bee681a0405a8bdb95783e", "score": "0.6299484", "text": "public function modificacion () {\n\t\t\t$datos = $this->cargarSecciones();\n\n\t\t\t//consulta al modelo para recuperar el array de libros\n\t\t\t$libros = $this->Libreria->consultaLibros();\n\t\t\t$datos['libros'] = $libros;\n\t\t\t$datos['idlibros'] = \"\";\n\t\t\t$datos['titulo'] = \"\";\n\t\t\t$datos['precio'] = \"\";\n\t\t\t$datos['respuesta']=\"\";\n\t\t\t//se encarga de cargar la vista de modificación\n\t\t\t$this->load->view('modificacion', $datos);\n\t\t}", "title": "" }, { "docid": "1d8c9aacb62100a9f5be29e26cd3ae2d", "score": "0.6296872", "text": "function visualizar(){\r\n $usuario_dao= new usuario_dao();\r\n $ativo=\"disabled\";\r\n $resultado=$usuario_dao::selecionar($_POST[\"id\"],$ativo);\r\n echo \"Visualizar usuário¨\".$resultado;\r\n //echo $resultado;\r\n\r\n }", "title": "" }, { "docid": "6cc6c790a9c8f2374928a1b5c75c0eda", "score": "0.62881565", "text": "function actualizaUsuario($POST, $tablaExtra = NULL, $id_datos_personales) {\n //Siempre se van a recibir datos de la tabla de datos personales\n //La tabla extra podria perteneces a:\n //Alumnos, Padres de familia, Profesores de aula, tutores, gestores de contenido\n //La tabla de admin no tiene una tabla extra\n //Si trae un tabla extra\n if (isset($tablaExtra)) {\n// echo \" Hay tabla extra\";\n $sets = destripaPostEdicion($POST, \"/\", \"datos_personales, $tablaExtra\");\n } else {\n// echo \" No hay tabla extra\";\n $sets = destripaPostEdicion($_POST, \"/\", \"datos_personales\");\n }\n// var_dump($sets);\n //Verifica la existencia del \n if (!consultaCorreo($POST[\"datos_personales/correo\"], $id_datos_personales) && !consultaUsuario($POST[\"datos_personales/usuario\"], $id_datos_personales)) {\n //Listo, este usuario puede editar todos su datos\n// echo \" Es editable!\";\n// echo \"<br>sets:\";\n// var_dump($sets);\n editaDatos(\"datos_personales\", $sets[\"datos_personales\"], \"id_datos_personales=$id_datos_personales\");\n\n if (isset($tablaExtra)) {\n editaDatos($tablaExtra, $sets[$tablaExtra], \"id_datos_personales=$id_datos_personales\");\n }\n\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "4c916f037dc464a2c4a3c03afa393e9f", "score": "0.6252221", "text": "public function edit($medico_Especialidad)\n {\n //\n }", "title": "" }, { "docid": "57d625dd08b98a1b5fdffb0067760d1d", "score": "0.62379235", "text": "public function edit(Resposta $resposta)\n {\n //\n }", "title": "" }, { "docid": "091e09b9c43056f5dc692f37ffe1375b", "score": "0.6227312", "text": "function modificar(){\n\t\t$id = $_POST['idMod'];\n\t\t$nombre = $_POST['nombreFamiliaMod'];\n\t\t$descripcion = $_POST['descripcionMod'];\n\t\t$result = $this->usuario_model->comparar($nombre,$descripcion,$id);\n\t\tif($result == 1){\n\t\t\techo \"son iguales\";\n\t\t}else{\n\t\t\techo \"son distintos\";\n\t\t\t$result2 = $this->usuario_model->modificar($nombre,$descripcion,$id);\n\t\t\tredirect('Controlador_admInicio');\n\t\t\t//echo $result2;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "33edf97adc6907b5f3ad161daf567a1c", "score": "0.62211776", "text": "public static function actualizarConsultarUsuarios($reg)\n {\n \t$ndocumento=$reg['documento_usuario'];\n \t$rol=\"<option value=\".$reg['id_rol'].\" selected>\".$reg['tipo_rol'].\"</option>\";\n \t$estado=\"<option value=\".$reg['estado'].\" selected>\".$reg['estado_actual'].\"</option>\";\n \t$tdocumento=\"<option value=\".$reg['tipo_documento'].\" selected>\".$reg['tipo'].\"</option>\";\n \n \n\n \t\n \t\n return \"<table class='table table-bordered table-striped table-hover table-reponsive'>\n\t\t\t\t\t\n\t\t\t\t\t <thead class='thead-dark'>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Numero Documento</th>\n\t\t\t\t\t\t<td><input type='text' name='ndocumento' value=\".$reg['documento_usuario'].\"></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Tipo Documento</th>\n\t\t\t\t\t\t<td><select name='tdocumento' class='et'>\n\t\t\t\t\t\t\".$tdocumento.\"\n\t\t\t\t \t<option value='1'>Cédula de Ciudadanía</option>\n\t\t\t\t \t<option value='2'>Tarjeta de Identidad</option>\n\t\t\t\t \t<option value='3'>Cédula de Extranjeria</option> \n\t\t\t\t \t </select> \n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Primer Nombre</th>\n\t\t\t\t\t\t<td>\".$reg['primer_nombre'].\"</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Segundo Nombre</th>\n\t\t\t\t\t\t<td>\".$reg['segundo_nombre'].\"</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Primer Apellidos</th>\n\t\t\t\t\t\t<td>\".$reg['primer_apellido'].\"</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Segundo Apellido</th>\n\t\t\t\t\t\t<td>\".$reg['segundo_apellido'].\"</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Correo</th>\n\t\t\t\t\t\t<td>\".$reg['correo'].\"</td>\n\t\t\t\t\t </tr>\n\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Rol</th>\n\t\t\t\t\t\t<td><select name='rol' class='et'>\n\t\t\t\t\t\t\".$rol.\"\n <option value='3'>Invitado</option>\n <option value='2'>Apoyo Administrativo</option>\n \t\t\t<option value='1'>Administrador</option>\n \t\t\t</select></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Estado</th>\n\t\t\t\t\t\t<td><select name='estado' class='et'>\n\t\t\t\t\t\t\".$estado.\" \n <option value='1'>Activo</option>\n \t\t\t<option value='2'>Inactivo</option>\n \t\t\t</select></td>\n\t\t\t\t\t </tr>\t\t\t\t\t\n <input type='hidden' name='id' value='$ndocumento'>\n\n\t\t\t\t\t\t</thead>\n\n \t\t<tr>\n \t \t\t<td class='le' align='center' colspan='2'><input class='bt1' type='submit' name='bt' value='Guardar Cambios'></td>\n \t \t\t\t</tr>\n\t\t\t\t\t </table>\";\n\n }", "title": "" }, { "docid": "3cf6ef375bec3dad60361b159482d6ee", "score": "0.62144554", "text": "public function editar($arg)\n {\n require_once DIRMODULOS . 'Consultorios/Forms/CargaConsultorios.php';\n require_once LibQ . 'LibQ_BarraHerramientas.php';\n $consultorioBuscado = $this->_modelo->buscarSalon($arg);\n if (is_object($consultorioBuscado)) {\n $this->_varForm['id'] = $consultorioBuscado->id;\n $this->_varForm['consultorio'] = $consultorioBuscado->consultorio;\n $this->_varForm['division'] = $consultorioBuscado->division;\n $this->_varForm['turno'] = $consultorioBuscado->turno;\n $this->_varForm['docente'] = $consultorioBuscado->docente;\n } else {\n $this->_varForm['id'] = '0';\n $this->_varForm['consultorio'] = '';\n $this->_varForm['division'] = '';\n $this->_varForm['turno'] = '';\n $this->_varForm['docente'] = '';\n }\n $listaDocentes = $this->_obtenerListaDocentes();\n $listaTurnos = $this->_listarTurnos();\n $this->_form = new Form_CargaConsultorios($listaDocentes,$listaTurnos, $this->_varForm);\n $this->_vista->form = $this->_form->mostrar();\n if ($_POST) {\n if ($this->_form->isValid($_POST)) {\n $values = $this->_form->getValidValues($_POST);\n print_r($values);\n $this->_modelo->actualizar($values, $arg);\n $messages[] = DATOSGUARDADOS;\n $this->_vista->mensajes = Mensajes::presentarMensaje($messages, 'info');\n }\n }\n $bh = new LibQ_BarraHerramientas($this->_vista);\n $bh->addBoton('Nuevo', $this->_paramBotonNuevoSalon); \n $bh->addBoton('Guardar', $this->_paramBotonGuardar);\n// $bh->addBoton('Eliminar', 'consultorios', $this->_varForm['id']);\n $bh->addBoton('Lista', $this->_paramBotonLista);\n $this->_vista->LibQ_BarraHerramientas = $bh->render();\n $foto = '<div id=mostrarFoto><img src=\"' . IMG . 'fotos/id' . $this->_varForm['id'] . '.png\" class=\"mostrarFoto\"/></div>';\n $this->_vista->foto = $foto;\n $this->_layout->content = $this->_vista->render('AgregarConsultoriosVista.php');\n // render final layout\n echo $this->_layout->render();\n }", "title": "" }, { "docid": "88c8b685b0273f9d9cd0a6b67b97eb4d", "score": "0.620838", "text": "public function edit()\n {\n if ($this->superAdmin()) {\n if (isset($_POST['id_producto'])) {\n $id = $_POST['id_producto'];\n $productos=$this->model->getProducto($id);\n $this->view->mostraredit($productos);\n }\n }\n }", "title": "" }, { "docid": "f78f85a543c2cd6e3f48a22f449b8ea9", "score": "0.61945426", "text": "function cresponsable_consultoria_edit() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"responsable_consultoria\"] = new cresponsable_consultoria();\n\n\t\t// Initialize other table object\n\t\t$GLOBALS['usuario'] = new cusuario();\n\n\t\t// Intialize page id (for backward compatibility)\n\t\tif (!defined(\"EW_PAGE_ID\"))\n\t\t\tdefine(\"EW_PAGE_ID\", 'edit', TRUE);\n\n\t\t// Initialize table name (for backward compatibility)\n\t\tif (!defined(\"EW_TABLE_NAME\"))\n\t\t\tdefine(\"EW_TABLE_NAME\", 'responsable_consultoria', TRUE);\n\n\t\t// Open connection to the database\n\t\t$conn = ew_Connect();\n\t}", "title": "" }, { "docid": "0fcbd67f5a5c9e10c43767267329aba6", "score": "0.6194427", "text": "function RegistraEditar($id){\r\n$Query= new Consulta($sql = \" SELECT * FROM `documentos` AS `d` WHERE d.id_documento='\".$id.\"'\");\r\n\t\t\t$Row= $Query->VerRegistro();\r\n\t\t\t$remit=$Row['id_remitente'];\r\n\t\t\t$tipo=$Row['id_tipo_documento'];\r\n?>\r\n<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<link href=\"style.css\" type=\"text/css\" rel=\"stylesheet\">\r\n<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"../libs/calendar/calendar-green.css\" title=\"win2k-cold-1\" /> \r\n<span class=\"Estilo2\">\r\n<script type=\"text/javascript\" src=\"../libs/calendar/calendar.js\"></script> \r\n<script type=\"text/javascript\" src=\"../libs/calendar/calendar-es.js\"></script> \r\n<script type=\"text/javascript\" src=\"../libs/calendar/calendar-setup.js\"></script> \r\n<script language=\"javascript\" src=\"js/js.js\"> </script>\r\n<script language=\"javascript\" src=\"../js/js.js\"> </script>\t\r\n\r\n<form id=\"f3\" name=\"f3\" method=\"post\" action=\"<?php echo\t$_SERVER['PHP_SELF']?>?opcion=update&id=<?=$id?>\">\r\n \r\n <div align=\"right\" class=\"Estilo2\"></div>\r\n <table width=\"93%\" border=\"1\" align=\"center\" >\r\n <tr class=\"Estilo2\">\r\n <td width=\"57\" class=\"Estilo2\"><div align=\"left\" class=\"Estilo2\" >Instituci&oacute;n:</div></td>\r\n <td width=\"324\" ><span class=\"Estilo2\">\r\n <?\r\n \r\n\t\t$sql_remit=\"select * FROM remitentes ORDER BY remitentes.nombre_remitente ASC\";\r\n \t$query_remit=new Consulta($sql_remit);\t\t\r\n\t\t///$row_remit=$query_remit->ConsultaVerRegistro();\r\n\t\r\n?> <!-----<input name=\"nom_remi\" type=\"text\" id=\"nom_remi\" value=\"<?=$row_remit['nombre_remitente']?>\" size=\"48\" />----->\r\n<select name=\"remit\">\r\n\t\t\t\t \r\n\t\t\t\t <option value=\"\">--- Seleccione Remitente ---</option>\r\n\t\t\t\t <?\r\n\t\t\t\t\twhile($row_remit=$query_remit->ConsultaVerRegistro()){?>\r\n\t\t\t\t <option value=\"<? echo $row_remit[0]?>\"<? if($row_remit[0]==$remit){ echo \"selected\";} ?>><? echo $row_remit[1]?></option> <? } ?>\t\t\t\r\n </select>\r\n \r\n <a href=\"<?=$_SESSION['PHP_SELF']?>?opcion=listremi\" class=\"Estilo2\">Agregar</a>\r\n </span></td>\r\n <td width=\"105\" class=\"Estilo2\">Tipo de Documento :</td>\r\n <td width=\"244\" class=\"Estilo2\"><span class=\"Estilo2\">\r\n \r\n \r\n<?\r\n $sql_tipo=\"SELECT * FROM tipos_documento ORDER BY tipos_documento.nombre_tipo_documento ASC\";\r\n \t$query_tipo=new Consulta($sql_tipo);\t\r\n\t\t\r\n\t\t?> \r\n \r\n<select name=\"tipo\">\r\n\t\t\t\t \r\n\t\t\t\t <option value=\"\">---Tipo de Documento---</option>\r\n\t\t\t\t <?\r\n while($row_tipo=$query_tipo->ConsultaVerRegistro()){?>\r\n\t <option value=\"<?=$row_tipo[0]?>\"<? if($row_tipo[0]==$tipo){ echo \"selected\";} ?>><?=$row_tipo[1]?>\r\n </option> <? } ?>\t\r\n </select>\r\n </span> </td>\r\n<? $sql_1=\"SELECT * FROM documentos AS td WHERE td.id_documento = '\".$id.\"'\"; \r\n\t\t$query_1=new Consulta($sql_1);\r\n\t\t$row_1=$query_1->ConsultaVerRegistro();\r\n\r\n?>\r\n <td width=\"45\" bgcolor=\"#FFFFFF\"><div align=\"left\" class=\"Estilo2\"> Folios</div> </td>\r\n <td ><span class=\"Estilo2\"><span class=\"Estilo2\">\r\n <input name=\"num_folio\" type=\"text\" value=\"<?=$row_1[6]?>\" size=\"10\" />\r\n </span></span></td>\r\n \t</tr>\r\n \t\t<tr>\r\n <td width=\"57\" class=\"Estilo2\"><div align=\"left\" class=\"Estilo2\">Nro. Doc:</div></td>\r\n <td bgcolor=\"#FFFFFF\"><span class=\"Estilo2\">\r\n <input name=\"num_doc\" type=\"text\" id=\"num_doc\" value=\"<?=$row_1[3]?>\" size=\"48\" />\r\n </span></td>\r\n <td width=\"105\" class=\"Estilo2\">Destino :</td>\r\n <td width=\"244\" bgcolor=\"#FFFFFF\"><input name=\"destino\" type=\"text\" value=\"<?=$row_1['destino_documento']?>\" size=\"40\" /></td>\r\n <td width=\"45\" bgcolor=\"#FFFFFF\" class=\"Estilo2\"><div align=\"left\" class=\"Estilo2\">Fecha</div></td>\r\n <td width=\"195\"> \r\n \t<input name=\"FechaSol\" id=\"FechaSol\" type=\"text\" value=\"<?=$row_1[7]?>\" readonly=\"true\" size=\"12\" style=\"background-color:#EEEEEE\"/>\r\n \t<input name=\"button\" type=\"button\" id=\"lanzador\" value=\"...\" />\r\n \r\n <script type=\"text/javascript\"> \r\n\t\t\t\t\t Calendar.setup({ \r\n\t\t\t\t\t\t inputField: \"FechaSol\", \r\n\t\t\t\t\t\t ifFormat : \"%d/%m/%Y\", \r\n\t\t\t\t\t\t button : \"lanzador\" \r\n\t\t\t\t\t\t});\t\t\t\r\n\t\t\t\t\t</script> </td>\r\n </tr> \r\n <tr>\r\n <td width=\"57\" class=\"Estilo2\"><div align=\"left\" class=\"Estilo2\">Referencia:</div></td>\r\n <td colspan=\"6\"><input name=\"refe\" value=\"<?=$row_1[4]?>\" type=\"text\" size=\"100\" /></td>\r\n </tr>\r\n <tr>\r\n <td width=\"57\" class=\"Estilo2\"><div align=\"left\" class=\"Estilo2\">Anexos:</div></td>\r\n <td colspan=\"6\"><span class=\"Estilo23\">\r\n <input name=\"anexo\" value=\"<?=$row_1[5]?>\" type=\"text\" size=\"100\" />\r\n </span></td>\r\n </tr>\r\n <tr>\r\n <td class=\"Estilo2\"><div align=\"left\" class=\"Estilo2\">Observacion:</div></td>\r\n <td colspan=\"6\"><textarea name=\"observ\" cols=\"140\" rows=\"4\" ><?=$row_1[observacion_documento]?></textarea></td>\r\n </tr>\r\n <tr>\r\n \r\n <td height=\"60\" colspan=\"6\" align=\"center\"><input name=\"Guardar\" type=\"submit\" value=\"Actualizar\" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name=\"Limpiar\" type=\"reset\" value=\"Limpiar\"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name=\"imprimir\" type=\"button\" onClick=\"javascript:window.open('Ventanillas/ficha_registro.php?id=<?php echo $id?>','popup','width=600,height=500')\" value=\"Imprimir\" />\r\n </td>\r\n </tr>\r\n </table></form>\r\n <? }", "title": "" }, { "docid": "3815144e3a15e79d3808dde888343056", "score": "0.6178724", "text": "public function formularioModificacion($id){\n\t\t$autor=Autor::find($id);\n\t\treturn View::make('autor.modificar',['autor'=>$autor]);\n\t}", "title": "" }, { "docid": "d468a4c8e9ea5cb1b7655e290f3388e0", "score": "0.61702716", "text": "function indicadores_modificar( $id ) {\n\t\t// carga el modelo\n\t\t$this->load->model('procesos/indicadores_model','',TRUE);\n\t\t\n\t\tif( $this->uri->segment(5) || $this->uri->segment(6) ) {\n\t\t\t$area = $this->uri->segment(5);\n\t\t\t$estado = $this->uri->segment(6);\n\t\t}\n\t\telse {\n\t\t\t$area = '';\n\t\t\t$estado = '';\n\t\t}\n\t\t$datos['area'] = $area;\n\t\t$datos['estado'] = $estado;\n\t\t\n\t\t// variables necesarias para la página\n\t\t$titulo = 'Modificar Indicador';\n\t\t$datos['titulo'] = $titulo;\n\t\t$datos['menu'] = $this->menu;\n\t\t\n\t\t// genera la barra de dirección\n\t\t$enlaces = array(\n\t\t\t'indicadores/'.$area.'/'.$estado\t\t\t\t => 'Indicadores', \n\t\t\t'indicadores_modificar/'.$id.'/'.$area.'/'.$estado => $titulo\n\t\t);\n\t\t$this->get_barra( $enlaces );\n\t\t$datos['barra'] = $this->barra;\n\t\t$datos['id'] = $id;\n\t\t$datos['mediciones'] = $this->indicadores_model->get_mediciones( $id );\n\t\t\n\t\t// obtiene los datos del indicador\n\t\t$consulta = $this->indicadores_model->get_indicador( $id );\n\t\tif( $consulta->num_rows() > 0 ) {\n\t\t\tforeach( $consulta->result() as $row ) :\n\t\t\t\t$datos['ind'] = $row->Indicador;\n\t\t\t\t$datos['met'] = $row->Meta;\n\t\t\t\t$datos['cal'] = $row->Calculo;\n\t\t\t\t$datos['fre'] = $row->Frecuencia;\n\t\t\t\t$datos['res'] = $row->Responsable;\n\t\t\t\t$datos['obs'] = $row->Observaciones;\n\t\t\tendforeach;\n\t\t}\n\t\t\n\t\t// estructura de la página\n\t\t$this->load->view('_estructura/header',$datos);\t\t\n\t\t$this->load->view('admin/_estructura/top',$datos);\n\t\t$this->load->view('mensajes/pregunta_oculta');\n\t\t$this->load->view('admin/_estructura/usuario',$datos);\n\t\t$this->load->view('admin/varios/indicadores/modificar',$datos);\n\t\t$this->load->view('admin/_estructura/footer');\n\t\t\n\t\tif( $_POST ){\t\t\n\t\t\t// reglas de validaci�n\n\t\t\t$this->form_validation->set_rules('indicador', 'Indicador', 'required|trim');\n\t\t\t$this->form_validation->set_rules('meta', 'Meta', 'required|trim');\n\t\t\t$this->form_validation->set_rules('calculo', 'Calculo', 'required|trim');\n\t\t\t$this->form_validation->set_rules('frecuencia', 'Frecuencia', 'required|trim');\n\t\t\t$this->form_validation->set_rules('responsable', 'Responsable', 'required|trim');\n\t\t\t$this->form_validation->set_message('required', 'Debes introducir el campo <strong>%s</strong>');\n\t\t\t\n\t\t\t// envia mensaje de error si no se cumple con alguna regla\n\t\t\tif( $this->form_validation->run() == FALSE ){\n\t\t\t\t$this->load->view('mensajes/error_validacion',$datos);\n\t\t\t}\n\t\t\t// realiza la inserci�n a la base de datos si todo ha estado bien\n\t\t\telse{\t\t\t\t\n\t\t\t\tif( $this->indicadores_model->modifica_indicador( $id ) ) {\n\t\t\t\t\t// msj de �xito\n\t\t\t\t\t$datos['mensaje_titulo'] = \"&Eacute;xito al Guardar\";\n\t\t\t\t\t$datos['mensaje'] = \"La informaci&oacute;n del indicador se ha modificado correctamente\";\n\t\t\t\t\t$datos['enlace'] = \"admin/varios/indicadores/\".$area.\"/\".$estado;\n\t\t\t\t\t$this->load->view('mensajes/ok_redirec',$datos);\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "0dc93aa2cd03c1a7b562768eceb0cc11", "score": "0.6159754", "text": "public function muestraRegistros(){ //Muestra el formulario inicio del docente\n\t\t$objeto = new modelo();\n\t\t$objeto2 = new modelo();\n\t\t$data[\"titulo\"] = \"Asistencias\";\n\t\t$data[\"objeto\"] = $objeto->llenaGrupos();\n\t\t$data[\"objeto2\"] = $objeto2->llenaSalones();\n\t\t//mandando información del modelo a la vista\n\t\trequire_once \"vista/registro.php\";\n\t}", "title": "" }, { "docid": "52635b3470049247ee999310e02c709e", "score": "0.61548084", "text": "function modificarDatosPersonales($consulta){\n\t\tnuevaConexionBd();\n\t\t$resultado=mysql_query($consulta) or die(msj(\"<br/>Error al modificar los datos personales del usuario: \".mysql_error()));\n\t\tmsj(\"<br/>Se han modificado con exito los datos personales del usuario\");\n\t}", "title": "" }, { "docid": "dd61d2adf5e315a7336e6f87de2a6a71", "score": "0.6148915", "text": "public function editarUsuario(){\r\n //solicitar el id del usuario a editar\r\n $datosController = $_GET[\"id\"];\r\n //Enviamos al modelo el id para hacer la consulta y obtener sus Datos\r\n $respuesta = Datos::editarUsuarioModel($datosController, \"usuarios\");\r\n\r\n //Recibimos respuesta del modelo e IMPRIMOS UN FORM PARA Editar\r\n echo '<input type=\"hidden\" value=\"'.$respuesta[\"id\"].'\" name=\"idEditar\">\r\n <input type=\"text\" value=\"'.$respuesta[\"usuario\"].'\" name=\"usuarioEditar\" required>\r\n <input type=\"hidden\" value=\"'.$respuesta[\"password\"].'\" name=\"passwordEditar\" required>\r\n <input type=\"hidden\" value=\"'.$respuesta[\"email\"].'\" name=\"emailEditar\" required>\r\n <input type=\"submit\" value=\"Actualizar\">';\r\n\r\n }", "title": "" }, { "docid": "7c4ffc9135fad09a5b4b18a0269caa54", "score": "0.6133298", "text": "public function mostrar_usuario_controlador($privilegio, $id)\n {\n \n $privilegio = mainModel::limpiar_cadena($privilegio);\n $id = mainModel::limpiar_cadena($id);\n \n $tabla = \"\";\n \n if (isset($privilegio) ) {\n //Cuenta cuantos registros hay en la base de datos\n $consulta = \"SELECT * FROM usuario WHERE usuario_id!='$id' AND usuario_id!='1' ORDER BY usuario_id DESC\";\n } \n $conexion = mainModel::conectar();\n $datos = $conexion->query($consulta);\n $datos = $datos->fetchAll();\n\n $tabla .= '<div class=\"table-responsive\"><table id=\"example1\" class=\" table table-striped table-bordered\">\n <thead class=\"bg-info\">\n <tr>\n <th>ID</th>\n <th>DNI</th>\n <th>NOMBRE</th>\n <th>APELLIDO</th>\n <th>TELÉFONO</th>\n <th>USUARIO</th>\n <th>EMAIL</th>\n <th>ACTUALIZAR</th>\n <th>ELIMINAR</th>\n </tr>\n </thead>\n <tbody>';\n \n \n foreach ($datos as $rows) {\n $tabla .= '<tr>\n <td>'. $rows['usuario_id'] . '</td>\n <td>' . $rows['usuario_dni'] . '</td>\n <td>' . $rows['usuario_nombre'] . '</td>\n <td>' . $rows['usuario_apellido'] . '</td>\n <td>' . $rows['usuario_telefono'] . '</td>\n <td>' . $rows['usuario_usuario'] . '</td>\n <td>' . $rows['usuario_email'] . '</td>\n <td>\n <a href=\"' . SERVERURL . 'user-update/' . mainModel::encryption($rows['usuario_id']) . '/\" class=\"btn btn-success\">\n <i class=\"fas fa-sync-alt\"></i>\t\n </a>\n </td>\n <td>\n <form class=\"FormulariosAjax\" action=\"' . SERVERURL . 'ajax/usuarioAjax.php\" method=\"POST\" data-form=\"delete\" autocomplete=\"off\">\n <input type=\"hidden\" name=\"usuario_id_del\" value=\"' . mainModel::encryption($rows['usuario_id']) . '\">\n <button type=\"submit\" class=\"btn btn-warning\">\n <i class=\"far fa-trash-alt\"></i>\n </button>\n </form>\n </td>\n </tr>';\n \n }\n \n \n $tabla .= '</tbody></table></div>';\n\n \n\n\n\n return $tabla;\n }", "title": "" }, { "docid": "f52a776543edf19f401e269027c9633f", "score": "0.61311716", "text": "public function modifica() {\n return view('medico.modifica');\n }", "title": "" }, { "docid": "f4849743d8aef8ebf8f5f75d889dd6f6", "score": "0.6127844", "text": "public function Modificar(){\n $upd = \"descripcion = '\".$this->_descripcion.\"'\";\n $upd .= \",cat_id = '\".$this->_cat_id.\"'\";\n $upd .= \",u_medida = '\".$this->_u_medida.\"'\";\n $upd .= \",precio_compra = '\".$this->_precio_compra.\"'\";\n $upd .= \",saldo = '\".$this->_saldo.\"'\";\n $upd .= \",costo = '\".$this->_costo.\"'\";\n echo $query = \"UPDATE productos SET \".$upd.\" WHERE codigo='\".$this->_codigo.\"'\";\n $this->_db->Query($query);\n if($this->_db->FilasAfectadas()>0){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "f4849743d8aef8ebf8f5f75d889dd6f6", "score": "0.6127844", "text": "public function Modificar(){\n $upd = \"descripcion = '\".$this->_descripcion.\"'\";\n $upd .= \",cat_id = '\".$this->_cat_id.\"'\";\n $upd .= \",u_medida = '\".$this->_u_medida.\"'\";\n $upd .= \",precio_compra = '\".$this->_precio_compra.\"'\";\n $upd .= \",saldo = '\".$this->_saldo.\"'\";\n $upd .= \",costo = '\".$this->_costo.\"'\";\n echo $query = \"UPDATE productos SET \".$upd.\" WHERE codigo='\".$this->_codigo.\"'\";\n $this->_db->Query($query);\n if($this->_db->FilasAfectadas()>0){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "f73fd80a44977ea5fc117a5ef4914e5b", "score": "0.6121488", "text": "function modificarPedido(){\n\t\t$this->procedimiento='ven.ft_pedido_ime';\n\t\t$this->transaccion='VEN_PEDIDO_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_pedido','id_pedido','int4');\n\t\t$this->setParametro('id_sucursal','id_sucursal','int4');\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\n\t\t$this->setParametro('id_moneda','id_moneda','int4');\n\t\t$this->setParametro('forma_pago','forma_pago','varchar');\n\t\t$this->setParametro('estado','estado','varchar');\n\t\t$this->setParametro('fecha','fecha','date');\n\t\t$this->setParametro('codigo','codigo','varchar');\n\t\t$this->setParametro('tipo_pago','tipo_pago','varchar');\n\t\t$this->setParametro('monto_pagado','monto_pagado','numeric');\n\t\t$this->setParametro('precio_total','precio_total','numeric');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('destinatario','destinatario','varchar');\n\t\t$this->setParametro('direccion','direccion','varchar');\n\t\t$this->setParametro('id_sucursal_dest','id_sucursal_dest','int4');\n\t\t$this->setParametro('id_lugar','id_lugar','int4');\n\t\t$this->setParametro('telef_destinatario','telef_destinatario','varchar');\n\t\t$this->setParametro('obs_destinatario','obs_destinatario','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "78189f991748d723a4f80452dfb3792b", "score": "0.61137986", "text": "public function edit(Registros $registros)\n {\n //\n }", "title": "" }, { "docid": "10ebcf35cc1fa4d7489b7816f4c6aecf", "score": "0.61110187", "text": "function datosUsuario()\n\t{\n\t\t$registro=$this->verificarUsuario();\n\t\tif(is_array($registro))\n\t\t{\n\t\t\t?><table class=\"formulario\" align=\"center\">\n\t\t\t\t\t\t<tr class=\"bloquecentralencabezado\">\n\t\t\t\t\t\t\t<td colspan=\"2\">\n\t\t\t\t\t\t\t\t<p><span class=\"texto_negrita\">Datos Registrados del Estudiante</span></p>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr >\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\tNombre:\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class=\"texto_negrita\">\n\t\t\t\t\t\t\t\t<? echo $registro[0][1] ?>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr >\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\tidentificaci&oacute;n:\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class=\"texto_negrita\">\n\t\t\t\t\t\t\t\t<? echo $registro[0][0] ?>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr >\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\tTipo de Documento:\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class=\"texto_negrita\">\n\t\t\t\t\t\t\t\t<? echo $registro[0][6] ?>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<tr >\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\tG&eacute;nero:\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td class=\"texto_negrita\">\n\t\t\t\t\t\t\t\t<? echo $registro[0][7] ?>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<?\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "e50e79c222b393edf43e0a5fcb4a9527", "score": "0.61087036", "text": "public function edit()\n {\n $consultores = Consultor::find(Auth::user()->cd_usuario_fk);\n $consultores->dt_nascimento = date('d/m/Y', strtotime($consultores->dt_nascimento));\n $especialidades = Especialidade::all();\n $usuarios = User::where('cd_usuario', '=', Auth::user()->cd_usuario)->where('cd_role', 2)->get();\n $referencia = $especialidade = EspecialidadeConsultor::where('fk_especialidade_consultor','=', Auth::user()->cd_usuario_fk)->get();\n return view('painel-consultor.minha-conta.alterar-cadastro', compact('consultores', 'especialidades', 'usuarios', 'referencia'));\n }", "title": "" }, { "docid": "a16f85229a53f88cd2351e9a008e5ae3", "score": "0.61077833", "text": "function controlador_admin_noticia_edit($idNoticia)\n {\n $editNoticia = true;\n $noticia_detalle = array();\n \n //Inicializar el array para noticia nueva\n $noticia_detalle[0]['IdCategoria'] = \"\";\n $noticia_detalle[0]['Titulo'] = \"\";\n $noticia_detalle[0]['TituloOriginal'] = \"\";\n $noticia_detalle[0]['Ano'] = \"\";\n $noticia_detalle[0]['Resumen'] = \"\";\n $noticia_detalle[0]['ImagenUrl'] = \"\";\n \n $noticia_detalle[0]['MetaAutor'] = \"\";\n $noticia_detalle[0]['MetaEditorial'] = \"\";\n $noticia_detalle[0]['MetaDirector'] = \"\";\n $noticia_detalle[0]['MetaProtagonistas'] = \"\";\n \n $noticia_detalle[0]['Aprobado'] = \"\"; \n \n if(isset($_POST['edit_noticia'])) {\n $imagenUrl = $_POST[\"path_imagen\"];\n $datosImg = $_POST[\"datos_imagen\"];\n \n if($datosImg != \"\") \n { \n $origen = fopen($datosImg, 'r');\n\n $imagenServer = substr($imagenUrl, 1);\n $destino = fopen($imagenServer, 'w');\n\n stream_copy_to_stream($origen, $destino);\n\n fclose($origen);\n fclose($destino);\n }\n \n\n //Las validaciones se hacen en el cliente con JS \n $noticia_detalle['IdCategoria'] = $_POST[\"id_categoria\"]; \n $noticia_detalle['Titulo'] = $_POST[\"titulo\"];\n $noticia_detalle['TituloOriginal'] = $_POST[\"tituloOriginal\"];\n \n $noticia_detalle['Ano'] = $_POST[\"ano\"];\n $noticia_detalle['Resumen'] = $_POST[\"resumen\"];\n $noticia_detalle['ImagenUrl'] = $imagenUrl;\n\n $noticia_detalle['MetaAutor'] = $_POST[\"autor\"];\n $noticia_detalle['MetaEditorial'] = $_POST[\"editorial\"];\n $noticia_detalle['MetaDirector'] = $_POST[\"director\"];\n $noticia_detalle['MetaProtagonistas'] = $_POST[\"protagonistas\"];\n\n $noticia_detalle['Aprobado'] = $_POST[\"chkEstado\"];\n \n //Se da de alta en la BBDD\n if($idNoticia > 0) {\n $noticia_detalle['IdNoticia'] = $idNoticia;\n set_edit_noticia($noticia_detalle, 1); //1 UPDATE \n } else {\n //RSS\n set_edit_noticia($noticia_detalle, 0); //0 INSERT\n }\n \n //Redirecciono a la vista de noticias\n echo \"<script>\";\n echo \"window.location.replace('\" . __URL__ . \"/index.php/admin_noticias\" . \"');\";\n echo \"</script>\"; \n //require ($_SERVER['DOCUMENT_ROOT'] . '/vistas/admin/noticias.php'); \n } else { \n if($idNoticia > 0) \n $noticia_detalle = get_noticia_detalle($idNoticia);\n else\n $editNoticia = false;\n \n require ($_SERVER['DOCUMENT_ROOT'] . '/vistas/admin/noticia_edit.php');\n }\n }", "title": "" }, { "docid": "1dab1ea68b388f45447f108cfeada170", "score": "0.6102787", "text": "public function actualizarMateriaController(){\n //Para realizar la actualizacio es necesario que se encuentre en el POST el campo con el nombre que hace referencia a EDITAR\n if(isset($_POST[\"id_materiaEditar\"])){\n //Se crea un array con los datos que se reciben del post (de los campos que se llenan), el cual sera enviado al metodo de actualizar para modificar los registros de la base de datos\n $datosController = array(\"nombre\"=>$_POST['nombreMateriaEditar'],\n \"carrera\"=>$_POST[\"id_carreraEditar\"],\n \"maestro\"=> $_POST['id_maestroEditar'],\n \"id\"=>$_POST['id_materiaEditar']\n );\n //Se hace el llamado al metodo actualizar y se le envian dos parametros: el array con los datos y el nombre de la tabla en la que se hace la modificacion\n $respuesta = Datos::actualizarMateriaModel($datosController, \"materias\");\n \n //verifica el resultado del llamado al metodo anterior\n //Si ha sido exitoso mostrara un mensaje indicando el exito de la operacion\n if($respuesta == \"success\"){\n echo '<div class=\"box-content bg-success text-white\">\n <h4>Se han guardado los cambios exitosamente</h4>\n </div>';\n }\n //En caso de no ser exitoso se muestra un mensaje indicando el fallo del metodo\n else{\n echo '<div class=\"box-content bg-danger text-white\">\n <h4>No ha sido posible guardar los cambios</h4>\n </div>';\n }\n \n }\n \n }", "title": "" }, { "docid": "c0d0c6d811b805f10cb57212d641d2ed", "score": "0.610015", "text": "function modificarRespuesta(){\n $this->procedimiento='rec.ft_respuesta_ime';\n $this->transaccion='REC_RES_MOD';\n $this->tipo_procedimiento='IME';\n\n //Define los parametros para la funcion\n $this->setParametro('id_respuesta','id_respuesta','int4');\n $this->setParametro('id_reclamo','id_reclamo','int4');\n $this->setParametro('recomendaciones','recomendaciones','varchar');\n $this->setParametro('nro_cite','nro_cite','varchar');\n $this->setParametro('respuesta','respuesta','codigo_html');\n $this->setParametro('fecha_respuesta','fecha_respuesta','date');\n $this->setParametro('estado_reg','estado_reg','varchar');\n $this->setParametro('procedente','procedente','varchar');\n $this->setParametro('fecha_notificacion','fecha_notificacion','date');\n\n $this->setParametro('tipo_respuesta','tipo_respuesta','varchar');\n $this->setParametro('asunto','asunto','varchar');\n //Ejecuta la instruccion\n $this->armarConsulta();\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "title": "" }, { "docid": "2eb56b7dfdcd9217d543dcddbb2b2725", "score": "0.6098454", "text": "public function editarUsuario()\r\n { \r\n //Cargamos todos los datos del usuario pasandole el id.\r\n $parametros['datos'] = $this->modelo->perfilCompleto($_GET['usuario']); \r\n $this->view->show(\"editarUsuario\",$parametros);\r\n }", "title": "" }, { "docid": "b8a3c995a3d00a8f9a763a572f499429", "score": "0.6087613", "text": "public static function edit()\n {\n // form para editar infos de um funcionario\n\n if(!session()->get(\"user\")->permission()->where('permissao_id', 1)->get()->isEmpty())\n return true;\n\n return 0;\n\n\n\n\n }", "title": "" }, { "docid": "3eff9895659a67aea6c81dd30530d791", "score": "0.6085863", "text": "public function modificarPagoController(){\n\t\t//Se confirma que se haya seleccionado el boton\n\t\tif(isset($_POST[\"modificar\"])){\n\t\t\t//Se alamacenan los datos en variables\n\t\t\t$id = $_GET[\"id\"];\n\t\t\t$grupo = $_POST[\"grupo\"];\n\t\t\t$alumna = $_POST[\"alumna\"];\n\t\t\t$mNom = $_POST[\"nombreM\"];\n\t\t\t$mApe = $_POST[\"apellidoM\"];\n\t\t\t$fecha_pago = $_POST[\"fechaPago\"];\n\t\t\t$folio = $_POST[\"folio\"];\n\t\t\t//Se ejecuta el modelo que actualiza los datos actuales con los que se acaban de ingresar en la base de datos\n\t\t\t$respuesta = Datos::modificarPagoModel($id,$grupo,$alumna,$mNom,$mApe,$fecha_pago,$folio);\n\t\t\t//Si la consulta se realiza correctamente se dirige a la pagina principal de pagos\n\t\t\tif($respuesta){\n\t\t\t\techo\"<script language='javascript'>window.location='index.php?action=pagos';</script>\";\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a24832d2166c64f14824e33f99e29933", "score": "0.6085267", "text": "function actualizaDatos(){\n\t\t\n\t\t\tif( $this ->post('Gpersonal') == \"1\" ){\n\t\t\t\t$XalumnosPersonal = new XAlumnosPersonal();\n\t\t\t\t$db = DbBase::raw_connect();\n\t\t\t\t$this -> set_response(\"view\");\n\t\t\t\t//Actualizacion de la informacion personal del alumno\n\t\t\t\t$sql = \"UPDATE xalumnos_personal SET curp = '\".$this -> post('curp').\"', domicilio = '\".$this -> post('domicilio').\"',\n\t\t\t\t\tnumero_exterior = '\".$this -> post('numExterior').\"', numero_interior = '\".$this -> post('numInterior').\"',\n\t\t\t\t\tcolonia = '\".$this -> post('colonia').\"', ciudad = '\".$this -> post('ciudad').\"', estado = '\".$this -> post('estado').\"',\n\t\t\t\t\tcp = '\".$this -> post('cp').\"', telefono = '\".$this -> post('telCasa').\"', celular = '\".$this -> post('celular').\"',\n\t\t\t\t\ttelefono_otro = '\".$this -> post('telFamiliar').\"', estadocivil = '\".$this -> post('estadoCivil').\"',\n\t\t\t\t\tcorreo = '\".$this -> post('correoIntitucional').\"', nacionalidad = '\".$this -> post('nacionalidad').\"',\n\t\t\t\t\tfnacimiento = '\".$this -> post('fechaNacimiento').\"', estadoNac ='\".$this -> post('ciudadNacimiento').\"',\n\t\t\t\t\tpaisNacimiento ='\".$this -> post('paisNacimientoAl').\"', sangre='\".$this -> post('tipoSangre').\"' WHERE registro = \".$this ->registro;\n\t\t\t\t\t\n\t\t\t\t$result = $db->query($sql);\n\t\t\t\t//$nombreAlumno = $this -> post('paterno').\" \".$this -> post('materno').\" \".$this -> post('nombre');\n\t\t\t\n\t\t\t\t$alumnos = $db->query(\"UPDATE alumnos SET nacionalidad = '\".$this -> post('nacionalidad').\"' WHERE miReg = \".$this ->registro);\n\t\t\t\n\t\t\t\tif( $result == false){\n\t\t\t\t\tFlash::error(\"Los datos personales del registro \".$this ->registro.\", no ha sido actualizada.\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif( $this ->post('GTutores') == \"1\" ){\n\t\t\t\t//Acualizacion de la informacion de los padres del alumno\n\t\t\t\t$this -> idInfo = \"\";\n\t\t\t\t$infopadres = $XalumnosPersonal -> find_all_by_sql(\"SELECT id FROM informacion_padres WHERE registro = \".$this -> registro);\n\t\t\t\tforeach( $infopadres as $info ){\n\t\t\t\t\t$this -> idInfo = $info -> id;\n\t\t\t\t}\n\t\t\t\tif( $this -> idInfo ){\n\t\t\t\t\t$sql2 =\"UPDATE informacion_padres SET nombre_pariente='\".$this -> post('nombreFamiliar').\"',apellido_paterno ='\".$this -> post('apellido_paterno').\"',\n\t\t\t\t\t\tapellido_materno ='\".$this -> post('apellido_materno').\"',parentesco='\".$this -> post('parentesco').\"',\n\t\t\t\t\t\tcorreo='\".$this -> post('correoFamiliar').\"',nacionalidad='\".$this -> post('nacionalidadFamiliar').\"',\n\t\t\t\t\t\tpaisNacimiento ='\".$this -> post('paisFamiliar').\"',grado_estudios='\".$this -> post('gradoEstudios').\"',\n\t\t\t\t\t\tcalle_numero='\".$this -> post('calleNumeroFamiliar').\"',colonia='\".$this -> post('coloniaFamiliar').\"',ciudad='\".$this -> post('ciudadFamiliar').\"',\n\t\t\t\t\t\testado='\".$this -> post('estadoFamiliar').\"',telefono_casa='\".$this -> post('telefonoFamiliar').\"',celular='\".$this -> post('celularFamiliar').\"',\n\t\t\t\t\t\tocupacion='\".$this -> post('ocupacionFamiliar').\"',telefono_trabajo='\".$this -> post('telTrabajoFamiliar').\"',\n\t\t\t\t\t\tnombre_pariente2='\".$this -> post('nombreFamiliar2').\"',apellido_paterno2 ='\".$this -> post('apellido_paterno2').\"',\n\t\t\t\t\t\tapellido_materno2 ='\".$this -> post('apellido_materno2').\"', parentesco_pariente2='\".$this -> post('parentesco2').\"',\n\t\t\t\t\t\tcorreo_pariente2='\".$this -> post('correoFamiliar2').\"',nacionalidad_pariente2='\".$this -> post('nacionalidadFamiliar2').\"',\n\t\t\t\t\t\tpaisNacimiento_pariente2 ='\".$this -> post('paisFamiliar2').\"',grado_estudios_pariente2='\".$this -> post('gradoEstudiosFamiliar').\"',\n\t\t\t\t\t\tcalle_numero_pariente2='\".$this -> post('calleNumeroFamiliar2').\"',\n\t\t\t\t\t\tcolonia_pariente2='\".$this -> post('coloniaFamiliar2').\"',ciudad_pariente2='\".$this -> post('ciudadFamiliar2').\"',\n\t\t\t\t\t\testado_pariente2='\".$this -> post('estadoFamiliar2').\"',telefono_casa_pariente2='\".$this -> post('telFamiliar2').\"',\n\t\t\t\t\t\tcelular_pariente2='\".$this -> post('celFamiliar').\"',ocupacion_pariente2='\".$this -> post('ocupacionFamiliar2').\"',\n\t\t\t\t\t\ttelefono_trabajo_pariente2='\".$this -> post('telTrabajoFamiliar2').\"' WHERE registro = \".$this ->registro;\n\t\t\t\t}else{\n\t\t\t\t\t$sql2 = \"INSERT INTO informacion_padres(registro,nombre_pariente,apellido_paterno,apellido_materno,parentesco,correo,nacionalidad,grado_estudios,\n\t\t\t\t\t\t calle_numero,colonia,ciudad,estado,telefono_casa,celular,ocupacion,telefono_trabajo,nombre_pariente2,apellido_paterno2,apellido_materno2,\n\t\t\t\t\t\t parentesco_pariente2,correo_pariente2,nacionalidad_pariente2,grado_estudios_pariente2,calle_numero_pariente2,colonia_pariente2,\n\t\t\t\t\t\t ciudad_pariente2,estado_pariente2,telefono_casa_pariente2,celular_pariente2,ocupacion_pariente2,telefono_trabajo_pariente2,\n\t\t\t\t\t\t paisNacimiento,paisNacimiento_pariente2 ) VALUE \n\t\t\t\t\t\t ('\".$this ->registro.\"','\".$this -> post('nombreFamiliar').\"','\".$this -> post('apellido_paterno').\"','\".$this -> post('apellido_materno').\"',\n\t\t\t\t\t\t '\".$this -> post('parentesco').\"','\".$this -> post('correoFamiliar').\"','\".$this -> post('nacionalidadFamiliar').\"',\n\t\t\t\t\t\t '\".$this -> post('gradoEstudios').\"','\".$this -> post('calleNumeroFamiliar').\"','\".$this -> post('coloniaFamiliar').\"',\n\t\t\t\t\t\t '\".$this -> post('ciudadFamiliar').\"','\".$this -> post('estadoFamiliar').\"','\".$this -> post('telefonoFamiliar').\"',\n\t\t\t\t\t\t '\".$this -> post('celularFamiliar').\"','\".$this -> post('ocupacionFamiliar').\"','\".$this -> post('telTrabajoFamiliar').\"',\n\t\t\t\t\t\t '\".$this -> post('nombreFamiliar2').\"','\".$this -> post('apellido_paterno2').\"','\".$this -> post('apellido_materno2').\"',\n\t\t\t\t\t\t '\".$this -> post('parentesco2').\"','\".$this -> post('correoFamiliar2').\"','\".$this -> post('nacionalidadFamiliar2').\"',\n\t\t\t\t\t\t '\".$this -> post('gradoEstudiosFamiliar').\"','\".$this -> post('calleNumeroFamiliar2').\"','\".$this -> post('coloniaFamiliar2').\"',\n\t\t\t\t\t\t '\".$this -> post('ciudadFamiliar2').\"','\".$this -> post('estadoFamiliar2').\"','\".$this -> post('telFamiliar2').\"',\n\t\t\t\t\t\t '\".$this -> post('celFamiliar').\"','\".$this -> post('ocupacionFamiliar2').\"','\".$this -> post('telTrabajoFamiliar2').\"',\n\t\t\t\t\t\t '\".$this -> post('paisFamiliar').\"','\".$this -> post('paisFamiliar2').\"')\";\n\t\t\t\t}\n\t\t\t\n\t\t\t\t$result2 = $db->query($sql2);\n\t\t\t\n\t\t\t\tif( $result2 == false ){\n\t\t\t\t\tFlash::error(\"La informaci&oacute;n de los padres del registro \".$this ->registro.\", no ha sido actualizada\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif( $this ->post('GTrabajo') == \"1\" ){\n\t\t\t\t//Actualizacion de la informacion del trabajo del alumno\n\t\t\t\t$this -> infoTrabajo = \"\";\n\t\t\t\t$infoT = $XalumnosPersonal -> find_all_by_sql('SELECT idInfoEmpresa FROM informacion_trabajo WHERE registro = '.$this ->registro);\n\t\t\t\tforeach( $infoT as $infotr ){\n\t\t\t\t\t$this -> infoTrabajo = $infotr -> idInfoEmpresa;\n\t\t\t\t}\n\t\t\t\tif( $this -> infoTrabajo ){\n\t\t\t\t\t$sql3 =\"UPDATE informacion_trabajo SET nombre_empresa='\".$this -> post('empresa').\"',domicilio_empresa='\".$this -> post('DomicilioEmpresa').\"',\n\t\t\t\t\t\tcolonia_empresa='\".$this -> post('coloniaEmpresa').\"',cp_empresa='\".$this -> post('cpEmpresa').\"',ciudad_empresa='\".$this -> post('ciudadEmpresa').\"',\n\t\t\t\t\t\testado_empresa='\".$this -> post('estadoEmpresa').\"',telenofo_empresa='\".$this -> post('telefonoEmpresa').\"',\n\t\t\t\t\t\thorario_entrada='\".$this -> post('horarioEntrada').\"',horario_salida='\".$this -> post('horarioSalida').\"',puesto='\".$this -> post('puesto').\"'\n\t\t\t\t\t\tWHERE registro = \".$this ->registro;\n\t\t\t\t}else{\n\t\t\t\t\t$sql3 =\"INSERT INTO informacion_trabajo (registro,nombre_empresa,domicilio_empresa,colonia_empresa,cp_empresa,ciudad_empresa,estado_empresa,\n\t\t\t\t\t\ttelenofo_empresa,horario_entrada,horario_salida,puesto) VALUE ('\".$this -> registro.\"','\".$this -> post('empresa').\"',\n\t\t\t\t\t\t'\".$this -> post('DomicilioEmpresa').\"','\".$this -> post('coloniaEmpresa').\"','\".$this -> post('cpEmpresa').\"',\n\t\t\t\t\t\t'\".$this -> post('ciudadEmpresa').\"','\".$this -> post('estadoEmpresa').\"','\".$this -> post('telefonoEmpresa').\"',\n\t\t\t\t\t\t'\".$this -> post('horarioEntrada').\"','\".$this -> post('horarioSalida').\"','\".$this -> post('puesto').\"')\";\n\t\t\t\t}\n\t\t\t\t$result3 = $db->query($sql3);\n\t\t\t\n\t\t\t\tif( $result3 == false ){\n\t\t\t\t\tFlash::error(\"La informaci&oacute;n referente al empleo del registro \".$this ->registro.\", no ha sido actualizada\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t//validacion de los campos de especificacion de enfermedades.\n\t\t\t\tif( $this -> post('enfermedad') == \"SI\" && $this -> post('especificar_enfermedad') == \"\" ){\n\t\t\t\t\t$this -> post('enfermedad') == \"NO\";\n\t\t\t\t}\n\t\t\t\tif( $this -> post('alergias') == \"SI\" && $this -> post('especifica_alergias') == \"\" ){\n\t\t\t\t\t$this -> post('alergias') == \"NO\";\n\t\t\t\t}\n\t\t\t\tif( $this -> post('capacidad_diferente') == \"SI\" && $this -> post('especifica_capacidad') == \"\" ){\n\t\t\t\t\t$this -> post('capacidad_diferente') == \"NO\";\n\t\t\t\t}\n\t\t\t\tif( $this -> post('protesis') == \"SI\" && $this -> post('especifica_protesis') ){\n\t\t\t\t\t$this -> post('protesis') == \"NO\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\tif( $this ->post('GMedico') == \"1\" ){\t\n\t\t\t\t//Actualizacion de la informacion medica del alumno\n\t\t\t\t$this -> serv = \"\";\n\t\t\t\n\t\t\t\t$servicio = $XalumnosPersonal -> find_all_by_sql(\"SELECT id FROM servicio_medico WHERE registro =\".$this ->registro);\n\t\t\t\tforeach( $servicio as $servicioM ){\n\t\t\t\t\t$this -> serv = $servicioM -> id;\n\t\t\t\t}\n\t\t\t\tif( $this -> serv ){\n\t\t\t\t\t$sql4 =\"UPDATE servicio_medico SET seguridad_social ='\".$this -> post('seguro').\"',dependencia_seguro ='\".$this -> post('tipoSeguro').\"',\n\t\t\t\t\t\tparte_de_quien_seguro ='\".$this -> post('porParte').\"',numero_seguro_social ='\".$this -> post('numAfiliacion').\"',\n\t\t\t\t\t\tnumClinica ='\".$this -> post('numeroClinica').\"', enfermedad_cronica ='\".$this -> post('enfermedad').\"',\n\t\t\t\t\t\tespecificar_enfermedad = '\".$this -> post('especificar_enfermedad').\"', alergias ='\".$this -> post('alergias').\"',\n\t\t\t\t\t\tespecifica_alergias ='\".$this -> post('especifica_alergias').\"', capacidad_diferente ='\".$this -> post('capacidad_diferente').\"',\n\t\t\t\t\t\tespecifica_capacidad ='\".$this -> post('especifica_capacidad').\"', protesis ='\".$this -> post('protesis').\"', \n\t\t\t\t\t\tespecifica_protesis ='\".$this -> post('especifica_protesis').\"',tipoSangre ='\".$this -> post('tipoSangre').\"', \n\t\t\t\t\t\totroSeguro ='\".$this -> post('otroSeguro').\"' WHERE registro =\".$this ->registro;\n\t\t\t\t}else{\n\t\t\t\t\t$sql4 =\"INSERT INTO servicio_medico(registro,seguridad_social,dependencia_seguro,parte_de_quien_seguro,numero_seguro_social,numClinica,\n\t\t\t\t\t\tenfermedad_cronica,especificar_enfermedad,alergias,especifica_alergias,capacidad_diferente,especifica_capacidad,protesis,\n\t\t\t\t\t\tespecifica_protesis,tipoSangre,otroSeguro) VALUES\t('\".$this -> registro.\"','\".$this -> post('seguro').\"','\".$this -> post('tipoSeguro').\"',\n\t\t\t\t\t\t'\".$this -> post('porParte').\"','\".$this -> post('numAfiliacion').\"','\".$this -> post('numeroClinica').\"',\n\t\t\t\t\t\t'\".$this -> post('enfermedad').\"','\".$this -> post('especificar_enfermedad').\"','\".$this -> post('alergias').\"',\n\t\t\t\t\t\t'\".$this -> post('especifica_alergias').\"','\".$this -> post('capacidad_diferente').\"','\".$this -> post('especifica_capacidad').\"',\n\t\t\t\t\t\t'\".$this -> post('protesis').\"','\".$this -> post('especifica_protesis').\"','\".$this -> post('tipoSangre').\"','\".$this -> post('otroSeguro').\"')\";\n\t\t\t\t}\n\t\t\t\n\t\t\t\t$result4 = $db->query($sql4);\n\t\t\t\n\t\t\t\tif( $result4 == false ){\n\t\t\t\t\tFlash::error(\"La informaci&oacute;n de serviciomedico del registro \".$this ->registro.\", no ha sido actualizada\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif( $this ->post('Gaspirante') == \"1\" ){\n\t\t\t\t//Actualizacion de la informacion de aspirantes\n\t\t\t\t$aspirantes = $XalumnosPersonal -> find_all_by_sql('SELECT id FROM aspirantes WHERE registro = '.$this ->registro);\n\t\t\t\t$this -> folioAsp = \"\";\n\t\t\t\tforeach( $aspirantes as $asp ){\n\t\t\t\t\t$this -> folioAsp = $asp -> id;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif( $this -> folioAsp ){\n\t\t\t\t\n\t\t\t\t\t$sql5 =\"UPDATE aspirantes SET folio ='\".$this -> post('folio').\"', ficha ='\".$this -> post('ficha').\"', periodo ='\".$this -> post('periodo').\"', \n\t\t\t\t\t\tfolioceneval ='\".$this -> post('folioceneval').\"', carrera ='\".$this -> post('carrera').\"', procedencia ='\".$this -> post('procedencia').\"',\n\t\t\t\t\t\tpromedioprepa ='\".$this -> post('promedioprepa').\"', estadoprepa ='\".$this -> post('estadoprepa').\"', \n\t\t\t\t\t\tregistro_tecnologo ='\".$this -> post('registro_tecnologo').\"', plantel ='\".$this -> post('plantel').\"', tipoIngreso ='\".$this -> post('tipoIngreso').\"',\n\t\t\t\t\t\tcarreraTramite ='\".$this -> post('carreraTramite').\"', anio1 ='\".$this -> post('anio1').\"', anio2 ='\".$this -> post('anio2').\"',\n\t\t\t\t\t\tmunicipioEscuela ='\".$this -> post('municipioEscuela').\"', periodoEgreso ='\".$this -> post('periodoEgreso').\"'\n\t\t\t\t\t\tWHERE registro =\".$this ->registro;\n\t\t\t\t}else{\n\t\t\t\t\n\t\t\t\t\t$sql5 =\"INSERT INTO aspirantes (registro,folio,ficha,periodo,folioceneval,carrera,procedencia,promedioprepa,estadoprepa,registro_tecnologo,plantel,\n\t\t\t\t\t\ttipoIngreso,carreraTramite,anio1,anio2,municipioEscuela,periodoEgreso) VALUE ('\".$this ->registro.\"','\".$this -> post('folio').\"',\n\t\t\t\t\t\t'\".$this -> post('ficha').\"','\".$this -> post('periodo').\"','\".$this -> post('folioceneval').\"','\".$this -> post('carrera').\"',\n\t\t\t\t\t\t'\".$this -> post('procedencia').\"','\".$this -> post('promedioprepa').\"','\".$this -> post('estadoprepa').\"','\".$this -> post('registro_tecnologo').\"',\n\t\t\t\t\t\t'\".$this -> post('plantel').\"','\".$this -> post('tipoIngreso').\"','\".$this -> post('carreraTramite').\"','\".$this -> post('anio1').\"',\n\t\t\t\t\t\t'\".$this -> post('anio2').\"','\".$this -> post('municipioEscuela').\"','\".$this -> post('periodoEgreso').\"')\";\n\t\t\t\t}\n\t\t\t\t$result5 = $db->query($sql5);\n\t\t\t\n\t\t\t\tif( $result4 == false ){\n\t\t\t\t\tFlash::error(\"La informaci&oacute;n de aspirantes del registro \".$this ->registro.\", no ha sido actualizada\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tFlash::success(\"La informaci&oacute;n del registro \".$this ->registro.\", se ha actualizado correctamente.\");\n\t\t\t\n\t\t\t\n\t\t\t$log = $db->query(\"INSERT INTO log_datosalumno (usuario,accion,alumno,fecha_accion) VALUES\n\t\t\t\t\t('\".Session::get_data('registro').\"','Modificacion',\".$this ->registro.\",'\".date('Y-m-d H:i:s').\"')\");\n\t\t}", "title": "" }, { "docid": "cfb57e8591af5874e313526708374342", "score": "0.60833037", "text": "function noticias_modificar( $id ) {\n\t\t$titulo = \"Modificar Noticia\";\n\t\t$datos['titulo'] = $titulo;\n\t\t$datos['menu'] = $this->menu;\n\t\t\n\t\t// genera la barra de dirección\n\t\t$enlaces = array( \n\t\t\t'noticias'\t\t => 'Noticias',\n\t\t\t'noticias_modificar/'.$id => $titulo\n\t\t);\n\t\t$this->get_barra( $enlaces );\n\t\t$datos['barra'] = $this->barra;\n\t\t\n\t\t$noticia = $this->db->get_where('ef_noticias', array('IdNoticia' => $id));\n\t\tif( $noticia->num_rows() > 0 ) {\n\t\t\tforeach( $noticia->result() as $row ) {\n\t\t\t\t$datos['fec'] = $row->Fecha;\n\t\t\t\t$datos['res'] = $row->Resumen;\n\t\t\t\t$datos['not'] = $row->Noticia;\n\t\t\t}\n\t\t} \n\n\t\t// estructura de la pagina (1)\n\t\t$this->load->view('_estructura/header',$datos);\t\t\n\t\t\n\t\t// Guarda / Actualiza los datos\n\t\tif( $_POST ) {\t\t\t\n\t\t\t$this->form_validation->set_rules('resumen', 'Resumen', 'required|trim');\n\t\t\t$this->form_validation->set_rules('fecha', 'Fecha', 'required|trim');\n\t\t\t$this->form_validation->set_message('required', 'Debes introducir el campo <strong>%s</strong>');\n\t\t\t\n\t\t\t// envia mensaje de error si no se cumple con alguna regla\n\t\t\tif( $this->form_validation->run() == FALSE ){\n\t\t\t\t$this->load->view('mensajes/error_validacion',$datos);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$fecha = substr($this->input->post('fecha'),8,2);\n\t\t\t\tswitch( substr($this->input->post('fecha'),5,2) ) {\n\t\t\t\t\tcase \"01\" : $fecha .= \" / Enero / \"; break;\n\t\t\t\t\tcase \"02\" : $fecha .= \" / Febrero / \"; break;\n\t\t\t\t\tcase \"03\" : $fecha .= \" / Marzo / \"; break;\n\t\t\t\t\tcase \"04\" : $fecha .= \" / Abril / \"; break;\n\t\t\t\t\tcase \"05\" : $fecha .= \" / Mayo / \"; break;\n\t\t\t\t\tcase \"06\" : $fecha .= \" / Junio / \"; break;\n\t\t\t\t\tcase \"07\" : $fecha .= \" / Julio / \"; break;\n\t\t\t\t\tcase \"08\" : $fecha .= \" / Agosto / \"; break;\n\t\t\t\t\tcase \"09\" : $fecha .= \" / Septiembre / \"; break;\n\t\t\t\t\tcase \"10\" : $fecha .= \" / Octubre / \"; break;\n\t\t\t\t\tcase \"11\" : $fecha .= \" / Noviembre / \"; break;\n\t\t\t\t\tcase \"12\" : $fecha .= \" / Diciembre / \"; break; \n\t\t\t\t}\n\t\t\t\t$fecha .= substr($this->input->post('fecha'),0,4);\t\t\t\t\n\t\t\t\t\n\t\t\t\t$query = array(\n\t\t\t\t\t'FechaNoticia' \t=> $fecha,\n\t\t\t\t\t'Fecha' \t\t=> $this->input->post('fecha'),\n\t\t\t\t\t'Resumen'\t\t=> $this->input->post('resumen'),\n\t\t\t\t\t'Noticia'\t\t=> $this->input->post('noticia'),\n\t\t\t\t\t'Estado'\t\t=> '1' // Noticia activa\t\t\t\t\t\t\t\n\t\t\t\t);\n\t\t\t\t$this->db->where(array('IdNoticia' => $id));\n\t\t\t\t$resp = $this->db->update('ef_noticias', $query);\n\n\t\t\t\tif( $resp ) {\t\t\t\t\t\n\t\t\t\t\t// msj de éxito\n\t\t\t\t\t$datos['mensaje_titulo'] = \"&Eacute;xito al Guardar\";\n\t\t\t\t\t$datos['mensaje'] = \"La noticia se ha modificado correctamente\";\n\t\t\t\t\t$datos['enlace'] = \"admin/varios/noticias\";\n\t\t\t\t\t$this->load->view('mensajes/ok_redirec',$datos);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t \n\t\t// estructura de la pagina (2)\n\t\t$this->load->view('admin/_estructura/top',$datos);\n\t\t$this->load->view('mensajes/pregunta_oculta');\n\t\t$this->load->view('admin/_estructura/usuario',$datos);\n\t\t$this->load->view('admin/varios/noticias/modificar',$datos);\n\t\t$this->load->view('admin/_estructura/footer');\n\t}", "title": "" }, { "docid": "d07a5d0a90a2988e53df50270ebfa9c5", "score": "0.60763896", "text": "public static function editar_reingreso_desercion($respuesta){\n\t$novedad=$respuesta[\"tipo_novedad\"];\n\t$nombre1=$respuesta[\"primer_nombre\"];\n\t$nombre2=$respuesta[\"segundo_nombre\"];\n\t$apellido1=$respuesta[\"primer_apellido\"];\n\t$apellido2=$respuesta[\"segundo_apellido\"];\n $tdocumento=$respuesta['tipo'];\n $ndocumento=$respuesta[\"documento\"];\n $grupo=$respuesta[\"grupo\"];\n $ficha=$respuesta[\"codigo_ficha\"];\n $trimestre=$respuesta[\"numero_trimestre\"];\n $jornada=$respuesta[\"tipo_jornada\"];\n $programa=$respuesta[\"nombre_programa\"];\n $sede=$respuesta[\"nombre_sede\"];\n $fecha=$respuesta[\"fecha\"];\n\n return \"<table class='table table-bordered table-striped table-hover table-reponsive'>\n\t\t\t\t\t\n\t\t\t\t\t <thead class='thead-dark'>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Tipo De Novedad</th>\n\t\t\t\t\t\t<td>$novedad</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t\t\t<tr class='bg-info'>\n\t\t\t\t\t\t<th>Primer Nombre</th>\n\t\t\t\t\t\t<td><input size='35' type='text' name='nombre1' value='$nombre1'></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Segundo Nombre</th>\n\t\t\t\t\t\t<td><input size='35' type='text' name='nombre2' value='$nombre2'></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Primer Apellido</th>\n\t\t\t\t\t\t<td><input size='35' type='text' name='apellido1' value='$apellido1'></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Segundo Apellido</th>\n\t\t\t\t\t\t<td><input size='35' type='text' name='apellido2' value='$apellido2'></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Tipo Documento</th>\n\t\t\t\t\t\t<td><select name='tdocumento' class='et'>\n\t\t\t\t\t\t\".$tdocumento.\"\n\t\t\t\t \t<option value='1'>Cédula de Ciudadanía</option>\n\t\t\t\t \t<option value='2'>Tarjeta de Identidad</option>\n\t\t\t\t \t<option value='3'>Cédula de Extranjeria</option> \n\t\t\t\t \t </select></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Numero Documento</th>\n\t\t\t\t\t\t<td>$ndocumento</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Grupo</th>\n\t\t\t\t\t\t<td><input size='35' type='text' name='grupo' value='$grupo'></td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Ficha</th>\n\t\t\t\t\t\t<td>$ficha</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t \n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Trimestre</th>\n\t\t\t\t\t\t<td>$trimestre</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Jornada</th>\n\t\t\t\t\t\t<td>$jornada</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Programa de Formación</th>\n\t\t\t\t\t\t<td>$programa</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Sede</th>\n\t\t\t\t\t\t<td>$sede</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t <tr class='bg-info'>\n\t\t\t\t\t\t<th>Fecha Novedad</th>\n\t\t\t\t\t\t<td>$fecha</td>\n\t\t\t\t\t </tr>\n\n\t\t\t\t\t\t<input type='hidden' name='id' value='$ndocumento'>\n\n\t\t\t\t\t\t</thead>\n\n \t\t<tr>\n \t \t\t<td class='le' align='center' colspan='2'><input class='bt1' type='submit' name='bt' value='Guardar Cambios'></td>\n \t \t\t\t</tr>\n\t\t\t\t\t </table>\";\n\t }", "title": "" }, { "docid": "a4fd75d36fb47fc8a2c542e8c78f83db", "score": "0.6072077", "text": "public function edit(){\n\t\t$this->location = \"promociones\";\n\t\t$this->promocion = new promocion($_GET['id']);\n\t\t$this->promocion->read(\"id,nombre,imagen,fecha_limite\");\n\t\t$this->include_theme(\"index\",\"edit\");\n\t}", "title": "" }, { "docid": "4b88c4c278e60337807dbe2b92e4c5c8", "score": "0.6065307", "text": "public function modificarProveedor()\n\t{\n\t\t$query=\"UPDATE proveedor SET empresa='$this->empresa',\n\t\tnombre='$this->nombre',\n\t\tcelular='$this->celular',\n\t\ttelefono='$this->telefono',\n\t\temail='$this->email',\n\t\testatus='$this->estatus'\n\t\tWHERE idproveedor=$this->idproveedor\";\n\n\t\t$resp=$this->db->consulta($query);\n\t}", "title": "" }, { "docid": "d81697d88035dfd0eedf9ae81d9f346b", "score": "0.60592335", "text": "function modificarMantenimiento(){\r\n\t\t$this->procedimiento='gev.f_tgv_mantenimiento_ime';\r\n\t\t$this->transaccion='tgv_man_MOD';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('id_mantenimiento','id_mantenimiento','int4');\r\n\t\t$this->setParametro('id_tipo_evento','id_tipo_evento','int4');\r\n\t\t$this->setParametro('descripcion','descripcion','varchar');\r\n\t\t$this->setParametro('id_proveedor','id_proveedor','int4');\r\n\t\t$this->setParametro('fecha_ini','fecha_ini','date');\r\n\t\t$this->setParametro('fecha_fin','fecha_fin','date');\r\n\t\t$this->setParametro('id_funcionario','id_funcionario','int4');\r\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "d0c3e01b6ac095ce25b5d72b034689c4", "score": "0.60454243", "text": "public function actualizarAlumnoController(){\n //Para realizar la actualizacio es necesario que se encuentre en el POST el campo con el nombre que hace referencia a EDITAR\n if(isset($_POST[\"matriculaAlumnoEditar\"])){\n //Se crea un array con los datos que se reciben del post (de los campos que se llenan), el cual sera enviado al metodo de actualizar para modificar los registros de la base de datos\n $datosController = array(\"matricula\"=>$_POST[\"matriculaAlumnoEditar\"], \n \"nombre\"=>$_POST[\"nombreAlumnoEditar\"],\n \"carrera\"=>$_POST[\"id_carreraEditar\"],\n \"tutor\"=>$_POST[\"id_tutorEditar\"]);\n \n //Se hace el llamado al metodo actualizar y se le envian dos parametros: el array con los datos y el nombre de la tabla en la que se hace la modificacion\n $respuesta = Datos::actualizarAlumnoModel($datosController, \"alumnos\");\n \n //verifica el resultado del llamado al metodo anterior\n //Si ha sido exitoso mostrara un mensaje indicando el exito de la operacion\n if($respuesta == \"success\"){\n echo '<div class=\"box-content bg-success text-white\">\n <h4>Se han guardado los cambios exitosamente</h4>\n </div>';\n }\n //En caso de no ser exitoso se muestra un mensaje indicando el fallo del metodo\n else{\n echo '<div class=\"box-content bg-danger text-white\">\n <h4>No ha sido posible guardar los cambios</h4>\n </div>';\n }\n \n }\n \n }", "title": "" }, { "docid": "94a5ced48ebdb1a79893939285bfd7aa", "score": "0.6042836", "text": "public function Modificar($id)\n {\n\n }", "title": "" }, { "docid": "4c478fe50fb32fbad762e7ed320ac75a", "score": "0.60306907", "text": "private function save_edit()\r\n {\r\n }", "title": "" }, { "docid": "cd82db1b285b0b11a4cbf2bac3185cb8", "score": "0.6029706", "text": "function completar_registro_de_usuario($id_de_usuario,$fecha_de_nacimiento,$indice_de_organizacion,$cargo_ocupacion,$telefono_de_contacto,$provincia,$ciudad,$direccion)\n {\n $this->id_de_usuario = $id_de_usuario;\n if(Conexion::conect()->has('informacion_de_usuario',['numero_de_id_de_usuario'=>$this->id_de_usuario]))\n {\n $this->fecha_de_nacimiento = $fecha_de_nacimiento;\n $this->indice_de_organizacion = $indice_de_organizacion;\n $this->cargo_ocupacion = utf8_encode(strtoupper($cargo_ocupacion));\n $this->telefono_de_contacto = $telefono_de_contacto;\n $this->provincia = utf8_encode($provincia);\n $this->ciudad = utf8_encode($ciudad);\n $this->direccion = utf8_encode($direccion);\n\n if(Conexion::conect()->update('informacion_de_usuario',[\n 'fecha_de_nacimiento'=>$this->fecha_de_nacimiento,\n 'indice_de_organizacion_fk'=>$this->indice_de_organizacion,\n 'cargo_ocupacion'=>$this->cargo_ocupacion,\n 'telefono_de_contacto'=>$this->telefono_de_contacto,\n 'provincia'=>$this->provincia,\n 'ciudad'=>$this->ciudad,\n 'direccion'=>$this->direccion,\n 'indice_de_perfil_fk'=>2,\n 'es_titular_de_cuenta'=>1,\n 'tiene_acceso_al_sistema'=>1,\n 'activar_usuario'=>1\n ],['numero_de_id_de_usuario'=>$this->id_de_usuario]))\n {\n Historial::nueva_actividad($this->id_de_usuario,'DAR DE ALTA','USUARIO COMPLETA EL FORMULARIO PARA PODERSE DAR DE ALTA EN ELS SISTEMA');\n echo \"Swal.fire({\n icon: 'success',\n title: 'Usuario activado',\n text: 'Su cuenta ha sido activada de manera exitosa',\n allowOutsideClick : false,\n allowEscapeKey : false,\n showConfirmButton : true,\n willClose : function(){\n window.close();\n }\n });\";\n }\n\n }\n else\n {\n echo \"Swal.fire({\n icon: 'error',\n title: 'Usuario no encontrado',\n text: 'Existe un error, consulte con un Administrador',\n allowOutsideClick : false,\n allowEscapeKey : false,\n showConfirmButton : true,\n willClose : function(){\n window.close();\n }\n });\";\n }\n }", "title": "" }, { "docid": "e4790be7ad4283be98acecc7705f2571", "score": "0.60240066", "text": "private function setMod($id=0){\n\t\t$resultado='Operación rechazada por falta de información';\n\t\t$obj=new TipoNota;\t// Si es nuevo registro\n\t\tif($id>0){\n\t\t\t$obj=TipoNota::findOrFail($id); // Si es modificacion\n\t\t}\t\n\n\t\t//////////////////////////////////////////////////////\n\t\t// Condiciones que se repiten sea modificación o nuevo\n\t\t// Este es el lugar que se debe modificar.\n\n\t\t$this->validate($this->req,[\n 'indicadores_id'=>'required'\n ]);\n\t\t$obj->indicadores_id=$this->req->input('indicadores_id');\n\t\tif ($this->req->has('nombre')) {\n\t\t\t$obj->nombre=$this->req->input('nombre');\n\t\t}else{\n\t\t\t$obj->nombre='No definido';\n\t\t}\n\t\tif($this->req->has('descripcion')){\n\t\t\t$obj->descripcion=$this->req->input('descripcion');\n\t\t}else{\n\t\t\t$obj->descripcion='';\n\t\t}\n\t\t$obj->save();\n\n\t\tif ($id==0) {\n\t\t\t$rell=new Rellenador;\n\t\t\t$rell->TipoNotaEnNotas($obj->id);\n\t\t}\n\n\t\t// De aqui para abajo no se toca nada\n\t\t////////////////////////////////////\n\n\n\t\t// Guardar y finalizar\n\t\tif ($id>0) {\n\t\t\t$resultado='Modificación. Tabla=TipoNota, id='.$id;\n\t\t}else{\n\t\t\t$resultado='Elemento Creado. Tabla=TipoNota, id='.$obj->id;\n\t\t}\n\t\treturn $resultado;\n\t}", "title": "" }, { "docid": "f74944b4b0205dbefbdc7f43c9dfaf10", "score": "0.6023668", "text": "public function actionEditar(){\n \n /**\n * Consulta un registro\n */\n if(isset($_GET['id'])){ \n \n $registro = \\app\\models\\Promocion::find()->where('prom_id = '.$_GET['id'])->one();\n $r = json_encode($registro->attributes);\n echo $r;\n } \n \n /**\n * Cambia el estado de un registro\n */\n else if(isset($_GET['idPromocion'])){\n $registro = \\app\\models\\Promocion::find()->where('prom_id = '.$_GET['idPromocion'])->one();\n $registro->prom_activo = $_GET['estado'];\n $registro->save();\n }\n \n /**\n * Crea un registro\n */\n else if(isset($_GET['prom_nombre'])){\n \n $registro = new \\app\\models\\Promocion();\n \n if(isset($_GET['idRegistro']) && $_GET['idRegistro'] != \"\"){\n $registro = \\app\\models\\Promocion::find()->where('prom_id = '.$_GET['idRegistro'])->one();\n } \n\n /**\n * Guarda los valores de las variables. \n */\n foreach ($registro as $attribute => $value) {\n if(isset($_GET[$attribute])){\n $registro->$attribute = $_GET[$attribute];\n }\n }\n\n if($registro->validate()){\n $registro->save();\n echo true;\n } else {\n echo false;\n } \n } else {\n echo false;\n }\n \n }", "title": "" }, { "docid": "fde5bf2e25380753507f255a25c89f06", "score": "0.6023364", "text": "function modificarBoletosObservados(){\r\n $this->procedimiento='obingresos.ft_boletos_observados_ime';\r\n $this->transaccion='OBING_BOBS_MOD';\r\n $this->tipo_procedimiento='IME';\r\n\r\n //Define los parametros para la funcion\r\n $this->setParametro('id_boletos_observados','id_boletos_observados','int4');\r\n $this->setParametro('estado_reg','estado_reg','varchar');\r\n $this->setParametro('pnr','pnr','varchar');\r\n $this->setParametro('nro_autorizacion','nro_autorizacion','varchar');\r\n $this->setParametro('moneda','moneda','varchar');\r\n $this->setParametro('importe_total','importe_total','numeric');\r\n $this->setParametro('fecha_emision','fecha_emision','date');\r\n $this->setParametro('estado_p','estado_p','varchar');\r\n $this->setParametro('forma_pago','forma_pago','varchar');\r\n $this->setParametro('medio_pago','medio_pago','varchar');\r\n $this->setParametro('instancia_pago','instancia_pago','varchar');\r\n $this->setParametro('office_id_emisor','office_id_emisor','varchar');\r\n $this->setParametro('pnr_prov','pnr_prov','varchar');\r\n $this->setParametro('nro_autorizacion_prov','nro_autorizacion_prov','varchar');\r\n $this->setParametro('office_id_emisor_prov','office_id_emisor_prov','varchar');\r\n $this->setParametro('importe_prov','importe_prov','numeric');\r\n $this->setParametro('moneda_prov','moneda_prov','varchar');\r\n $this->setParametro('estado_prov','estado_prov','varchar');\r\n $this->setParametro('fecha_autorizacion_prov','fecha_autorizacion_prov','date');\r\n $this->setParametro('tipo_error','tipo_error','varchar');\r\n $this->setParametro('tipo_validacion','tipo_validacion','varchar');\r\n $this->setParametro('prov_informacion','prov_informacion','varchar');\r\n //$this->setParametro('id_instancia_pago','id_instancia_pago','int4');\r\n\r\n //Ejecuta la instruccion\r\n $this->armarConsulta();\r\n $this->ejecutarConsulta();\r\n\r\n //Devuelve la respuesta\r\n return $this->respuesta;\r\n }", "title": "" }, { "docid": "ece6c9620bfc53944670de329a7fc854", "score": "0.6022617", "text": "public function ModificarTipopartido()\n\t{\n\t\t$query=\"UPDATE tipopartido SET nombre='$this->nombre',\n\t\testatus='$this->estatus',numerosets='$this->numeroset' WHERE idtipopartido=$this->idtipopartido\";\n\t\n\t\t$resp=$this->db->consulta($query);\n\t}", "title": "" }, { "docid": "da8813fb1a9336e59eb3ad1a433c278f", "score": "0.6004427", "text": "public function editBanco(){\n $data = self::$bancoModel->mantenimientoBanco();\n \n echo json_encode($data);\n }", "title": "" }, { "docid": "7524f650f85863bf083cb6af20122e7e", "score": "0.6002085", "text": "public function modificar(){\n\t $resp =false;\n\t $base=new BaseDatos();\n\t $nombre = $this->get_nombre();\n\t $precio = $this->get_precio();\n\t $hora_inicio = $this->get_hora_inicio();\n\t $duracion = $this->get_duracion();\n\t $id_teatro = $this->get_id_teatro();\n\t $id_funcion = $this->get_id();\n\n\t\t$consulta_modificar=\"UPDATE funcion SET nombre = '$nombre', precio = '$precio', hora_inicio = '$hora_inicio', duracion = '$duracion', id_teatro = '$id_teatro' WHERE id_funcion = '$id_funcion'\";\n\t\t//debuggin\n\t\t//echo \"\\n\".$consulta_modificar.\"\\n\";\n\t\tif($base->Iniciar()){\n\t\t\tif($base->Ejecutar($consulta_modificar)){\n\t\t\t $resp= true;\n\t\t\t}else{\n\t\t\t\t$this->set_mensaje_operacion($base->getError());\n\t\t\t}\n\t\t}else{\n\t\t\t\t$this->set_mensaje_operacion($base->getError());\n\t\t}\n\t\treturn $resp;\n\t}", "title": "" }, { "docid": "a25df81103a63c23ca1c81c0fdb39ccb", "score": "0.60004705", "text": "public function editar_institucion_formulario()\n {\n $cod_inst = mainModel::limpiar_cadena($_POST['cod_inst']);\n $datos = [\n \"cod_inst\" => $cod_inst\n ];\n $sql = institucionModelo::consultar_institucion_editar($datos);\n foreach ($sql as $row){\n echo'<input type=\"text\" class=\"form-control\" placeholder=\"Nombre del Institucion\" aria-describedby=\"addon-wrapping\" minlength=\"2\" maxlength=\"60\" required pattern=\"[A-Za-zñÑáéíóúÁÉÍÓÚöÖüÜ\\s]+\" name=\"des_inst\" value=\"'.$row['des_inst'].'\" id=\"des_inst\">';\n \n }\n \n }", "title": "" }, { "docid": "48cdc0eb79928612533e99bf7a35c740", "score": "0.599312", "text": "public function alterar() {\n $txt = array();\n //aqui so vai entrar quando clcar no form\n if ($this->input->post()) {\n $this->form_validation->set_rules('usuario_nome', 'Nome', 'trim|min_length[2]|max_length[150]');\n $this->form_validation->set_rules('usuario_email', 'Email', 'required|trim|valid_email|unique|min_length[6]|max_length[100]');\n $this->form_validation->set_rules('usuario_pass', 'Senha', 'required|trim|max_length[20]');\n $this->form_validation->set_rules('usuario_id', 'Id', 'required|trim|min_length[1]|max_length[150]');\n if ($this->form_validation->run()) {\n if ($this->usuario_m->alterar($this->input->post())) {\n $txt['mensagem'] = alert('Sucesso ao alterar o Usuário!', 'success');\n } else {\n $txt['mensagem'] = alert('Erro de banco de dados!', 'danger');\n }\n } else {\n $txt['mensagem'] = alert(validation_errors(), 'danger');\n }\n }\n\n $txt['registro'] = $this->usuario_m->getDataById($this->uri->segment(4));\n\n $this->template->write_view('conteudo', 'admin/form', $txt);\n $this->template->render();\n }", "title": "" }, { "docid": "3b22878f0b3ff7b16dbbb0b7acb88382", "score": "0.5991944", "text": "public function consultar() {\n\n \t\tif (isset($_SESSION[\"idUsuario\"])){\n \t\t\t\n \t\t\t$idPersona=$_SESSION[\"idUsuario\"];\n\n \t\t\t//consultamos los datos con esa variable.\n \t\t\t$datos= $this->personaModelo->obtenerUsuarioId($idPersona);\n\n\n\t\t\tif($datos-> rol == 'administrador'){\n\t\t\t\t$datos=[\n \t\t\t\t\t'idPersona'\t\t\t=>$idPersona,\t\n\t\t\t\t\t'primerNombre'\t\t=> $datos->primerNombre,\n\t\t\t\t\t'segundoNombre'\t\t=> $datos->segundoNombre,\n\t\t\t\t\t'primerApellido'\t=> $datos->primerApellido,\n\t\t\t\t\t'segundoApellido'\t=> $datos->segundoApellido,\n\t\t\t\t\t'documentoIdentidad'=> $datos->documentoIdentidad,\n\t\t\t\t\t'fechaNacimiento'\t=> $datos->fechaNacimiento,\n\t\t\t\t\t'correo'\t\t\t=> $datos->correo,\n\t\t\t\t\t'numeroContacto'\t=> $datos->numeroContacto,\n\t\t\t\t\t'direccion'\t\t\t=> $datos->direccion,\n\t\t\t\t\t'foto'\t\t\t=> $datos->foto,\n\t\t\t\t\t'contrasena' =>$datos->contrasena,\n\t\t\t\t\t'rol'=>$datos->rol,\t\t\t\t\t\t\t\t\t\n\t\t\t\t]; \n\t\t\t\t//var_dump($datos);\t\t\n \t\t\t\t$this->vista('/Perfiles/consultar_admin',$datos);\t\t\t\n\n\t\t\t}else{\n\n\t \t\t\t$datos=[\n\t \t\t\t\t\t'idPersona'\t\t\t=>$idPersona,\t\n\t\t\t\t\t\t'primerNombre'\t\t=> $datos->primerNombre,\n\t\t\t\t\t\t'segundoNombre'\t\t=> $datos->segundoNombre,\n\t\t\t\t\t\t'primerApellido'\t=> $datos->primerApellido,\n\t\t\t\t\t\t'segundoApellido'\t=> $datos->segundoApellido,\n\t\t\t\t\t\t'documentoIdentidad'=> $datos->documentoIdentidad,\n\t\t\t\t\t\t'fechaNacimiento'\t=> $datos->fechaNacimiento,\n\t\t\t\t\t\t'correo'\t\t\t=> $datos->correo,\n\t\t\t\t\t\t'numeroContacto'\t=> $datos->numeroContacto,\n\t\t\t\t\t\t'direccion'\t\t\t=> $datos->direccion,\n\t\t\t\t\t\t'foto'\t\t\t=> $datos->foto,\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t]; \t\t\n\t \t\t \t\t//var_dump($datos);\t\t\n\t \t\t\t\t$this->vista('/Perfiles/consultar',$datos);\t\t\t\n \t\t}\t\t\n \t}\n }", "title": "" }, { "docid": "b0cddb5a128afdbdd6b74ec66bf257c0", "score": "0.599103", "text": "public function index(){\r\n \t$tipo_identificacion= new TipoIdentificacionModel(); \r\n\t\t\r\n\t //Conseguimos todos los usuarios\r\n\t\t$resultSet=$tipo_identificacion->getAll(\"id_tipo_identificacion\");\r\n\t\t\t\t\r\n\t\t$resultEdit = \"\";\r\n\r\n\t\t\r\n\t\tsession_start();\r\n\r\n\t\r\n\t\tif (isset( $_SESSION['usuario_usuarios']) )\r\n\t\t{\r\n\t\t\t$permisos_rol = new PermisosRolesModel();\r\n\t\t\t$nombre_controladores = \"TipoIdentificacion\";\r\n\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t$resultPer = $tipo_identificacion->getPermisosVer(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\r\n\t\t\tif (!empty($resultPer))\r\n\t\t\t{\r\n\t\t\t\tif (isset ($_GET[\"id_tipo_identificacion\"]) )\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\t$nombre_controladores = \"TipoIdentificacion\";\r\n\t\t\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t\t\t$resultPer = $tipo_identificacion->getPermisosEditar(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif (!empty($resultPer))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$_id_tipo_identificacion = $_GET[\"id_tipo_identificacion\"];\r\n\t\t\t\t\t\t$columnas = \" id_tipo_identificacion, nombre_tipo_identificacion\";\r\n\t\t\t\t\t\t$tablas = \"tipo_identificacion\";\r\n\t\t\t\t\t\t$where = \"id_tipo_identificacion = '$_id_tipo_identificacion' \"; \r\n\t\t\t\t\t\t$id = \"nombre_tipo_identificacion\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t$resultEdit = $tipo_identificacion->getCondiciones($columnas ,$tablas ,$where, $id);\r\n\r\n\t\t\t\t\t\t$traza=new TrazasModel();\r\n\t\t\t\t\t\t$_nombre_controlador = \"Tipo Identificacion\";\r\n\t\t\t\t\t\t$_accion_trazas = \"Editar\";\r\n\t\t\t\t\t\t$_parametros_trazas = $_id_tipo_identificacion;\r\n\t\t\t\t\t\t$resultado = $traza->AuditoriaControladores($_accion_trazas, $_parametros_trazas, $_nombre_controlador);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Editar Tipos de Identificaciones\"\r\n\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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t$this->view(\"TipoIdentificacion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>$resultSet, \"resultEdit\" =>$resultEdit\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\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->view(\"Error\",array(\r\n\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Acceso a Tipos de Identificaciones\"\r\n\t\t\t\t\r\n\t\t\t\t));\r\n\t\t\t\t\r\n\t\t\t\texit();\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t\t$this->view(\"ErrorSesion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>\"\"\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "297d16ad26273553e3148e98a6c6f5a6", "score": "0.5989265", "text": "public function actualizar(){\n\t\textract($_POST);//EXTRAYENDO VARIABLES DEL FORMULARIO\n\t\t$db=new clasedb();\n\t\t$conex=$db->conectar();//conectando con la base de datos\n\t\t$sql=\"SELECT * FROM datos_personales WHERE dni=\".$dni.\" AND id<>\".$id_persona;\n\t\t//echo $sql;\n\t\t$res=mysqli_query($conex,$sql);\n\t\t$cant=mysqli_num_rows($res);//cuantos registros trae la consulta\n\t\t\tif ($cant>0) {\n\t\t\t\t?>\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\talert(\"CEDULA YA REGISTRADA\");\n\t\t\t\t\t\twindow.location=\"ControladorPersona.php?operacion=index\";\n\t\t\t\t\t</script>\n\t\t\t\t<?php\n\t\t\t} else {\n\t\t\t\t$sql=\"UPDATE datos_personales SET first_name='\".$first_name.\"',last_first_name='\".$last_first_name.\"', dni=\".$dni.\" WHERE id=\".$id_persona;\n\t\t\t\t$res=mysqli_query($conex,$sql);\n\t\t\t\tif ($res) {\n\t\t\t\t\t?>\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\talert(\"REGISTRO MODIFICADO\");\n\t\t\t\t\t\twindow.location=\"ControladorPersona.php?operacion=index\";\n\t\t\t\t\t</script>\n\t\t\t\t<?php\n\t\t\t\t} else {\n\t\t\t\t\t?>\n\t\t\t\t\t<script type=\"text/javascript\">\n\t\t\t\t\t\talert(\"ERROR AL MODIFICAR EL REGISTRO\");\n\t\t\t\t\t\twindow.location=\"ControladorPersona.php?operacion=index\";\n\t\t\t\t\t</script>\n\t\t\t\t<?php\n\t\t\t\t}\n\t\t\t}\n\t}", "title": "" }, { "docid": "003dfa6651ac36bf5e13d1689bfa64dc", "score": "0.59876275", "text": "public function index(){\r\n \t\r\n\t\t$tipo_notificacion = new Tipo_NotificacionModel();\r\n\t //Conseguimos todos los usuarios\r\n\t\t$resultSet=$tipo_notificacion->getAll(\"id_tipo_notificacion\");\r\n\t\t\t\t\r\n\t\t$resultEdit = \"\";\r\n\r\n\t\t\r\n\t\tsession_start();\r\n\t\t\r\n\r\n\t\r\n\t\tif (isset( $_SESSION['usuario_usuarios']) )\r\n\t\t{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t$nombre_controladores = \"Tipo_Notificacion\";\r\n\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t$resultPer = $tipo_notificacion->getPermisosVer(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\r\n\t\t\tif (!empty($resultPer))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (isset ($_GET[\"id_tipo_notificacion\"]) )\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t$nombre_controladores = \"Tipo_Notificacion\";\r\n\t\t\t\t\t$id_rol= $_SESSION['id_rol'];\r\n\t\t\t\t\t$resultPer = $tipo_notificacion->getPermisosEditar(\" controladores.nombre_controladores = '$nombre_controladores' AND permisos_rol.id_rol = '$id_rol' \" );\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif (!empty($resultPer))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t$_id_tipo_notificacion = $_GET[\"id_tipo_notificacion\"];\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$columnas = \" \ttipo_notificacion.id_tipo_notificacion, \r\n\t\t\t\t\t\t\t\t\t \ttipo_notificacion.descripcion_notificacion, \r\n \t\t\t\t\t\t\t\t\t\ttipo_notificacion.controlador_tipo_notificacion, \r\n \t\t\t\t\t\t\t\t\t\ttipo_notificacion.accion_tipo_notificacion, \r\n \t\t\t\t\t\t\t\t\t\ttipo_notificacion.nombre_icon_tipo_notificacion\";\r\n\t\t\t\t\t\t$tablas = \" public.tipo_notificacion\";\r\n\t\t\t\t\t\t$where = \"id_tipo_notificacion = '$_id_tipo_notificacion' \"; \r\n\t\t\t\t\t\t$id = \"id_tipo_notificacion\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$resultEdit = $tipo_notificacion->getCondiciones($columnas ,$tablas ,$where, $id);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$traza=new TrazasModel();\r\n\t\t\t\t\t\t$_nombre_controlador = \"id_tipo_notificacion\";\r\n\t\t\t\t\t\t$_accion_trazas = \"Editar\";\r\n\t\t\t\t\t\t$_parametros_trazas = $_id_tipo_notificacion;\r\n\t\t\t\t\t\t$resultado = $traza->AuditoriaControladores($_accion_trazas, $_parametros_trazas, $_nombre_controlador);\r\n\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\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$this->view(\"Error\",array(\r\n\t\t\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Editar Tipo de Notificacion\"\r\n\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\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\t\t$this->view(\"Tipo_Notificacion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>$resultSet, \"resultEdit\" =>$resultEdit\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\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->view(\"Error\",array(\r\n\t\t\t\t\t\t\"resultado\"=>\"No tiene Permisos de Acceso a Tipo de Notificacion\"\r\n\t\t\t\t\r\n\t\t\t\t));\r\n\t\t\t\t\r\n\t\t\t\texit();\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t\t$this->view(\"ErrorSesion\",array(\r\n\t\t\t\t\t\t\"resultSet\"=>\"\"\r\n\t\t\t\r\n\t\t\t\t));\r\n\t\t\r\n\t\t}\r\n\t\r\n\t}", "title": "" }, { "docid": "114ffeceb023963911d1d67bab7fd9e5", "score": "0.59852797", "text": "public function editMovimiento(){\r\n $data = self::$VacacionesModel->mantenimientoMovimiento();\r\n \r\n echo json_encode($data);\r\n }", "title": "" }, { "docid": "2f829001505779f8315041dc5e398dc6", "score": "0.5977206", "text": "public function registro()\n\t{\n $data[\"titulo\"]=\"Registro de clientes\";\n $data[\"descripcion\"]=\"Este modulo permite ingresar o editar registros\";\n $data[\"imagen\"]=\"clientes.jpg\";\n $data[\"mensajes\"]=\"\";\n \n // agregar los campos que son considerador requeridos\n // documento,nombres y apellidos\n // dentro form_validation que se llama set_rules (campo,texto,requerido)\n \n $this->form_validation->set_rules('nombres','<strong>Nombres</strong>','required');\n $this->form_validation->set_rules('apellidos','Apellidos','required');\n $this->form_validation->set_rules('documento','Documento','required');\n \n // podemos validar si se ejecuto el boton \"guardar\"\n if ($this->form_validation->run()===FALSE) {\n \n } else {\n // realice algun proceso de insercion\n // ANTES DE INSERTAR, PASAR EL NOMBRE DEL ARCHIVO\n $nombrearchivo=$this->archivo('dsarchivo');\n \n $this->clientes_model->ingresar($nombrearchivo);\n $data[\"mensajes\"]=\"Registro ingresado con exito\";\n \n }\n $data[\"lista\"]=$this->clientes_model->listar_registros();\n \n $data[\"nombreusuario\"]=$this->session->userdata('nombre').\" \".$this->session->userdata('apellido');\n $data[\"idusuario\"]=$this->session->userdata('id');\n \n $this->load->view('clientes_formulario',$data);\n\t}", "title": "" }, { "docid": "f73c0b9374da10a49e53538e7a2ebecb", "score": "0.5974541", "text": "public function modificarProducto()\n\t{\n\t\t$query = \"UPDATE productos SET \n\t\t\tcodigoproducto='$this->codigoproducto',\n\t\t\tidcategorias = '$this->categoria', \n\t\t\tnombre = '$this->nombre', \n\t\t\tdescripcion = '$this->descripcion',\n/*\t\t idtipo_presentacion = '$this->presentacion',\n*/\t\t estatus = '$this->estatus',\n\t\t idtipomedida='$this->v_idtipo_medida'\n\n\t\t WHERE idproducto = '$this->idproducto' \";\n\n\n\t\t\n\t\t$this->db->consulta($query);\n\t}", "title": "" }, { "docid": "53adc442fed1dc21c37a56983fb62ecf", "score": "0.59737605", "text": "public function edit()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "d20dae2b2b67a44999f7e244688334ac", "score": "0.59733987", "text": "public function modificarAction() {\r\n $usuario = Zend_Registry::get('Usuario');\r\n\r\n $id = $this->getRequest()->getParam(\"id\");\r\n\r\n //Obtenemos todos los roles que tienen este usuario\r\n $rol = Model_Roles::getSingleton()->find($id)->current();\r\n \r\n if ($rol == null) {\r\n $rol = Model_Roles::getSingleton()->createRow();\r\n }\r\n\r\n if ($rol->getsistema() == 1) {\r\n $this->getHelper('FlashMessenger')->addMessage('danger|El rol es de sistema y no puede ser editado');\r\n $url = $this->view->url(array('id' => null, 'action' => 'index'));\r\n $this->getHelper('redirector')->gotoUrlAndExit($this->view->serverUrl($url));\r\n return;\r\n }\r\n\r\n if ($this->getRequest()->isPost()) {\r\n $datos = $this->getRequest()->getPost();\r\n $rol->setFromArray(array(\r\n 'nombre' => $datos['nombre']\r\n ));\r\n $rol->save();\r\n\r\n /* @var $rolesPerfiles Model_RolesPerfiles */\r\n $rolesPerfiles = Model_RolesPerfiles::getSingleton();\r\n\r\n foreach ($datos['perfiles'] as $perfil => $estado) {\r\n\r\n if ($estado == 0) {\r\n\r\n //Quitamos permiso\r\n\r\n $rolesPerfiles->delete(array(\r\n 'rol_id = ?' => $rol->getId(),\r\n 'perfil_id=?' => $perfil,\r\n ));\r\n } else {\r\n \r\n //Intentamos Agregar permiso\r\n try {\r\n\r\n $rolesPerfiles->insert(array(\r\n 'rol_id' => $rol->getId(),\r\n 'perfil_id' => $perfil,\r\n ));\r\n } catch (Exception $ex) {\r\n \r\n }\r\n }\r\n }\r\n $this->getHelper('FlashMessenger')->addMessage('Rol guardado correctamente');\r\n $url = $this->view->url(array('id' => null, 'action' => 'index'));\r\n $this->getHelper('redirector')->gotoUrlAndExit($this->view->serverUrl($url));\r\n return;\r\n }\r\n\r\n $this->view->assign(\"Perfil\", $rol);\r\n $this->view->assign(\"Perfiles\", Model_Perfiles::getSingleton()->fetchAll());\r\n $this->view->assign('mensajes', $this->getHelper('FlashMessenger')->getMessages());\r\n }", "title": "" }, { "docid": "19bc0b4b2b73e11bc718d7fa57ac8416", "score": "0.5971781", "text": "public function editar_termino($id) {\n \tif (Session::Get('autenticado_adminsciocco') == true ){ \n\t\t\tSession::set('modulo', \"admin\");\n\t\t\n\t\t\tif (!$this->filtrarInt($id)) {\n\t //Se redirecciona al index\n\t $this->redireccionar('index','terminos');\n\t }\n\t //Si no existe un registro con ese id\n\t if (!$this->_terminos->get_termino($this->filtrarInt($id))) {\n\t //Se redirecciona al index\n\t $this->redireccionar('index','terminos');\n\t }\n\t\t\t\n\t\t\t $this->_view->termino = $this->_terminos->get_termino($this->filtrarInt($id));\n\t\t\t /* VALIDACION */\n\t\t\t\tif ($this->getInt('guardar') == 1) {\n\t\t\t\t\t\n\t\t\t\t\t$this->_view->datos = (object) $_POST; /* No se debe realizar de esta formaaaa */\n\t\t\t\t//Se valida que las dos contraseñas digitadas coincidan\n\t\t\t\t\tif (!$this->getTexto('nombre')) {\n\t\t\t\t\t//Si no cumple la validacion sale mensaje de error\n\t\t\t\t\t$this->_view->_error = 'Debe Ingresar el titulo';\n\t\t\t\t\t//Vista de la pagina actual\n\t\t\t\t\t$this->_view->renderizar('editar_termino',false,true);\n\t\t\t\t\t//Saca de la funcion principal\n\t\t\t\t\texit;\n\t\t\t\t}\n\n\t\t\t\tif (!$_POST['descripcion']) {\n\t\t\t\t\t//Si no cumple la validacion sale mensaje de error\n\t\t\t\t\t$this->_view->_error = 'Debe Ingresar el contenido';\n\t\t\t\t\t//Vista de la pagina actual\n\t\t\t\t\t$this->_view->renderizar('editar_termino',false,true);\n\t\t\t\t\t//Saca de la funcion principal\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$this->_terminos->editar_termino($this->filtrarInt($id),\n\t\t\t\t\t$this->getTexto('nombre'),\n\t\t\t\t\t$_POST['descripcion']);\n\t\t\t\t\n\t\t\t\t$this->_view->_mensaje = 'Datos Actualizados Correctamente';\n\t\t\t\t}\t\t\n\t\t\t \t\n\t\t\t\t$this->_view->info = $this->_terminos->get_termino($this->filtrarInt($id));\n\t\t\t\t\n\t\t\t $this->_view->renderizar('editar_termino',false,true);\n\n\t\t} else {\n \t\t$this->redireccionar('admin');\n \t}\n }", "title": "" }, { "docid": "22f245f476f1267854b6163d62d180dd", "score": "0.5968899", "text": "public function Editar(){\n\n \t//GUARDA O ID DO CONTATO PASSADO NA VIEW\n\t\t\t$idFuncionario = $_GET['id'];\n\n\t\t\t//INSTANCIA A CLASSE CONTATO\n\t\t\t$funcionario = new Funcionario();\n\n\t\t\t//DEFINE O ID DO CONTATO COM O VALOR DA VARIÁVEL\n\t\t\t$funcionario->id_funcionario = $idFuncionario;\n $funcionario->id_cargo = $_POST['slt_cargo'];\n $funcionario->nome = $_POST['txt_nome'];\n $funcionario->sobrenome = $_POST['txt_sobrenome'];\n $funcionario->dt_nasc = $_POST['txt_dt_nasc'];\n $funcionario->rg = $_POST['txt_rg'];\n $funcionario->cpf = $_POST['txt_cpf'];\n\n $funcionario::update($funcionario);\n\t\t}", "title": "" }, { "docid": "43c489172464c58c1ab11ef7c91782cd", "score": "0.5963885", "text": "function modificarMedicion(){\n\t\t$this->procedimiento='hidro.f_thd_medicion_ime';\n\t\t$this->transaccion='HD_MED_MOD';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_medicion','id_medicion','int4');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('fecha_fin','fecha_fin','timestamp');\n\t\t$this->setParametro('hora_medida','hora_medida','time');\n\t\t$this->setParametro('fecha_ini','fecha_ini','timestamp');\n\t\t$this->setParametro('h','h','int4');\n\t\t$this->setParametro('h_fin','h_fin','numeric');\n\t\t$this->setParametro('h_ini','h_ini','numeric');\n\t\t$this->setParametro('h_maxi','h_maxi','numeric');\n\t\t$this->setParametro('h_mini','h_mini','numeric');\n\t\t$this->setParametro('h_original','h_original','numeric');\n\t\t$this->setParametro('id_operador','id_operador','int4');\n\t\t$this->setParametro('id_sensor','id_sensor','int4');\n\t\t$this->setParametro('q','q','int4');\n\t\t$this->setParametro('q_original','q_original','numeric');\n\t\t$this->setParametro('id_tipo_medicion','id_tipo_medicion','int4');\n\t\t$this->setParametro('valor_numeric','valor_numeric','numeric');\n\t\t$this->setParametro('valor_varchar','valor_varchar','varchar');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" }, { "docid": "9388acf3c5c90202dac6dacf3eb249f0", "score": "0.59578687", "text": "public static function modificarProducto(){\n\n $producto = self::buscarPorID($_POST[\"id\"]);\n if($producto == null){\n return \"Producto no encontrado\";\n }\n // BACKUP DE FOTO\n self::BackUpFoto($producto->id, $producto->foto);\n // CARGAR DE NUEVO PISANDO EL ANTERIOR\n $productoNuevo = new self();\n $productoNuevo->id = $_POST[\"id\"];\n $productoNuevo->nombre = $_POST[\"nombre\"];\n $productoNuevo->precio = $_POST[\"precio\"];\n $productoNuevo->usuarioCarga = $_POST[\"usuarioCarga\"];\n $productoNuevo->foto = self::CargarFoto();\n $productoNuevo->GuardarProducto();\n return \"Producto Modificado\";\n }", "title": "" }, { "docid": "48cc3dc30d8faca2a26afbd9259f026b", "score": "0.5956125", "text": "public function editar($u=\"\"){\n\t //comprobar que el usuario es admin\n\t if(!Login::isAdmin())\n\t throw new Exception('Debes ser administrador');\n\t \n\t //comprobar que me llega un id\n\t if(!$u)\n\t throw new Exception('No se indicó el user del usuario');\n\t \n //recuperar la receta con esa id\n $this->load('model/UsuarioModel.php');\n $usuarioM = UsuarioModel::getUsuario($u);\n \n //comprobar que existe el usuario\n if(!$usuarioM)\n throw new Exception('No existe el usuario');\n\t \n //si no me están enviando el formulario\n if(empty($_POST['modificar'])){\n //poner el formulario\n $datos = array();\n $datos['usuario'] = Login::getUsuario();\n $datos['usuarioM'] = $usuarioM;\n $this->load_view('view/usuarios/modificacionAdmin.php', $datos);\n \n }else{\n //en caso contrario\n $conexion = Database::get();\n //actualizar los campos del usuario con los datos POST\n $usuarioM->email=$conexion->real_escape_string($_POST['email']);\n $usuarioM->privilegio= $_POST['privilegio'];\n $usuarioM->admin = empty($_POST['admin'])? 0 : 1;\n \t \n //modificar el usuario en la BDD\n if(!$usuarioM->actualizarPrivi())\n throw new Exception('No se pudo actualizar');\n //cargar la vista de éxito\n $datos = array();\n $datos['usuario'] = Login::getUsuario();\n $datos['mensaje'] = \"Datos del usuario <a href='index.php?controlador=Usuario&operacion=ver&parametro=$usuarioM->user'>'$usuarioM->user'</a> actualizados correctamente.\";\n $this->load_view('view/exito.php', $datos);\n }\n\t }", "title": "" }, { "docid": "be2842baee7a195d1b8356eb0549ae27", "score": "0.5955665", "text": "public function modificar($id='')\n\t\t{\n\t\t\tsession_start();\n\t\t\t$actividad = $this->modelo('Productos');\n\t$datos=['Titulo'=>'Bioplant',\n\t\t\t'Dato'=> $actividad->MostrarProducto($id)];\n\t\t\t$this->vista('paginas/Mproducto',$datos);\n\t\t\t# code...\n\t\t}", "title": "" }, { "docid": "3066c3301aacfc36bb9428b3f34719df", "score": "0.59527606", "text": "public function edit($empresa)\n {\n //\n }", "title": "" }, { "docid": "c5a0b2d2a07f4c60859733100c98dba3", "score": "0.59509873", "text": "function muestraFormularioProyecto() {\n\t\t$tit=EDITAACCION;\n\t\tif($this->data['opc'] ==3)\n\t\t\t$tit=ALTADEACCIONES;\n\t\t$this->buffer = \"\n <input type='hidden' name='valueId' id='valueId' value='\".($this->arrayDatos ['id'] + 0).\"'>\n \t\t<div class='panel panel-danger spancing'>\n\t\t\t\t<div class='panel-heading'>\".$tit.\"</div>\n \t\t\t\t<div class='panel-body'>\n \t<table align='center' border='0' class='table table-condensed'>\n <tr class='altorenglon'>\n <td class='tdleft bold' width='20%'>\".EJEPOLITICA.\"</td>\n <td class='tdleft alinea negritas'>\".$this->regresaNombreEje ( $this->data,$this->arrayDatos ).\"</td>\n <td class='tdleft bold'>\".POLITICAPUBLICA.\"</td>\n <td class='tdleft alinea negritas'>\".$this->regresaNombrePolitica ( $this->data ).\"</td>\n </tr>\n <tr class='altorenglon'>\n <td class='tdleft bold'>\".AREA.\"<input type='hidden' name='idarea' id='idarea' value='\".$this->data['idarea'].\"'></td>\n <td class='tdleft alinea negritas'>\".$this->regresaNombreArea ( $this->data ).\"</td>\n <td class='tdleft bold'>\".PROGRAMA.\"<input type='hidden' name='idprograma' id='idprograma' value='\".$this->data['idprograma'].\"'></td>\n <td class='tdleft alinea negritas'>\".$this->regresaNombrePrograma ( $this->data ).\"</td>\n </tr>\n </table><br>\n <table width='90%' align='center' border='0' class='table-striped'>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".PROYECTO.\"</td>\n <td class='tdcenter' width='8%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-1' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\t\n </td>\n <td class='tdleft alinea'>\".$this->generaProyectos ($this->db,$this->data['idarea'],$this->data['idprograma'],2).\"&nbsp;&nbsp;<button class='ui-icon-add' data-toggle='modal' data-target='#myModalProyecto'></button></td>\n\t\t\t</tr>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".PONDERACION.\"&nbsp;&nbsp;</td>\n <td class='tdcenter' width='5%'><img src='\".$this->path.\"imagenes/iconos/help.png' id='a-2' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'></td>\n <td class='tdleft alinea' colspan='2'>\n <input type='radio' name='ponderacion' id='ponderacion5' value='5'>5&nbsp;&nbsp;\n <input type='radio' name='ponderacion' id='ponderacion4' value='4'>4&nbsp;&nbsp;\n <input type='radio' name='ponderacion' id='ponderacion3' value='3'>3&nbsp;&nbsp;\n <input type='radio' name='ponderacion' id='ponderacion2' value='2'>2&nbsp;&nbsp;\n <input type='radio' name='ponderacion' id='ponderacion1' value='1' checked>1\n </td>\n </tr>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".DESCRIPCIONDELPROYECTO.\"</td>\n <td class='tdcenter' width='5%'><img src='\".$this->path.\"imagenes/iconos/help.png' id='a-3' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'></td>\n <td class='tdleft alinea'>\n <textarea required='yes' maxlength='2000' class='bootstrap-select validatextonumero espTextArea' placeholder='\".DESCRIPCIONDELPROYECTO.\"' value='\".$this->arrayDatos ['descripcion'].\"' name='descripcion' id='descripcion'></textarea>\n </td>\n </tr>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".RESULTADOSESPERADOS.\"</td>\n <td class='tdcenter' width='5%'><img src='\".$this->path.\"imagenes/iconos/help.png' id='a-4' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'></td>\n <td class='tdleft alinea'>\n <textarea required='yes' maxlength='2000' class='bootstrap-select validatextonumero espTextArea' placeholder='\".RESULTADOSESPERADOS.\"' value='\".$this->arrayDatos ['resultados'].\"' name='resultados' id='resultados'></textarea>\n </td>\n </tr>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".PRESUPUESTO.\"</td>\n <td class='tdcenter' width='5%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-7' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\n </td>\n <td class='tdleft alinea'>\".(date('Y') - 1).\"&nbsp;&nbsp;$&nbsp\n \t<input type='text' class='bootstrap-select validanums' placeholder='\".PRESUPUESTO.\"' name='presupuesto_1' id='presupuesto_1' size='12'>&nbsp;&nbsp;\".OTORGADO.\"\n </td>\n </tr>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;&nbsp;&nbsp;</td>\n <td class='tdcenter' width='5%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-8' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\n </td>\n <td class='tdleft alinea'>\".(date('Y') + 0).\"&nbsp;&nbsp;$&nbsp;\n \t<input type='text' class='bootstrap-select validanums' placeholder='\".ESTIMADO.\"' name='estimado_1' id='estimado_1' size='12'>&nbsp;&nbsp;\".ESTIMADO.\"\n </td>\n </tr>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".ENCOORDINACION.\"</td>\n <td class='tdcenter' width='5%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-9' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\n \t</td>\n \t<td class='tdleft alinea'></td>\n </tr>\n <tr class='altotitulo'>\n <td colspan='3' class='tdleft bold'>\".$this->enCoordinacion($this->data).\"</td>\n </tr>\n <tr class='altotitulo' id='trespecifique'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".ESPECIFIQUE.\"</td>\n <td class='tdcenter' width='5%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-10' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\n </td>\n <td class='tdleft alinea'>\n <textarea required='yes' class='bootstrap-select validatextonumero espTextArea2' placeholder='\".ESPECIFIQUE.\"' value='\".$this->arrayDatos ['especifique'].\"' name='especifique' id='especifique'></textarea>\n </td>\n </tr>\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".METODO.\"</td>\n <td class='tdcenter' width='5%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-17' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\n </td>\n\t\t\t\t<td class='tdleft alinea'>\".$this->metodoParticipacion($this->data,$this->arrayDatos).\"&nbsp;&nbsp;\n \t\t<button class='ui-icon-add' data-toggle='modal' data-target='#myModalParticipacion' id='btn-5'></button></td>\n </tr>\t\t\t\t\t\t\n <tr class='altotitulo'>\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".UNIDADOPERATIVA.\"</td>\n <td class='tdcenter' width='5%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-5' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\n </td>\n <td class='tdleft alinea'>\".$this->generaUnidadesOperativas($this->data).\"&nbsp;&nbsp;\n \t\t<button class='ui-icon-add' data-toggle='modal' data-target='#myModalUOperativa' id='btn-5'></button></td>\n </tr>\n <tr class='altotitulo'>\t\t\n <td class='tdleft bold'>&nbsp;&nbsp;*&nbsp;&nbsp;\".RESPONSABLE.\"</td>\n <td class='tdcenter' width='5%'>\n \t<img src='\".$this->path.\"imagenes/iconos/help.png' id='a-6' class='help' alt='\".AYUDA.\"' title='\".AYUDA.\"'>\n </td>\n <td class='tdleft alinea'>\".$this->generaResponsables ($this->data).\"&nbsp;&nbsp;\n <button class='ui-icon-add' data-toggle='modal' data-target='#myModalResponsable' id='btn-6'></button></td>\t\t\n </tr>\n <tr>\n <td class='tdcenter bold' colspan='6'><span id='resultado' class='error'></span></td>\n </tr> \t\t\n <tr>\n <td class='tdcenter legend' colspan='6'><br><br>\n <button type='button' class='btn btn-default savecatalogoProyecto' id='saveProyecto' name='saveProyecto'>\".GUARDARPROYECTO.\"</button> \t\t\n <BR><BR>\n </td>\n </tr>\n </table></div></div>\";\n\t\t$this->buffer.=$this->Modal(\"myModalProyecto\",1);\n\t\t$this->buffer.=$this->Modal(\"myModalParticipacion\",4);\n\t\t$this->buffer.=$this->Modal(\"myModalUOperativa\",2);\n\t\t$this->buffer.=$this->Modal(\"myModalResponsable\",3);\n\t\t\n\t}", "title": "" }, { "docid": "d859e16bac37164e18c64b629f2e2a54", "score": "0.5947889", "text": "public function edit(Valor $valor) {\n //\n }", "title": "" }, { "docid": "b4374c6f66bf8b876f67eb8bebfc0396", "score": "0.5945693", "text": "public function modificarAlumnaController(){\n\t\t//Se comprubea que el boton se haya seleccionado\n\t\tif(isset($_POST[\"modificar\"])){\n\t\t\t$id = $_GET[\"id\"];\n\t\t\t$nombre = $_POST[\"n\"];\n\t\t\t$apellido = $_POST[\"a\"];\n\t\t\t$grupo = $_POST[\"grupo\"];\n\t\t\t$fechaN = $_POST[\"fechaNac\"];\n\t\t\t//Se ejecuta el modelo que modifica los datos de una alumna\n\t\t\t$respuesta=Datos::modificarAlumnaModel($id,$nombre,$apellido,$grupo,$fechaN);\n\t\t\t//Si el modelo se ejecuta correctamente se dirige a la pagina principal de alumnos\n\t\t\tif($respuesta){\n\t\t\t\theader(\"location:index.php?action=alumnas\");\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "2c191bb156af0bbc19715e7f3f75b0da", "score": "0.59434927", "text": "static public function ctrIngreso() {\n\n if (isset($_POST[\"registroNombre\"]) && isset($_POST[\"registroDesc\"])) {\n\n $tabla = \"notas\";\n $datos = array(\n \"nombre\" => $_POST[\"registroNombre\"],\n \"descripcion\" => $_POST[\"registroDesc\"]\n );\n\n $respuesta = ModeloFormularios::mdlIngreso($tabla, $datos);\n\n return $respuesta;\n\n }\n }", "title": "" }, { "docid": "5f2f10474c946329f2ca54a1830ba275", "score": "0.5941799", "text": "public function update()\n\t{\n\t\ttry{\n\t\t\tArticolo::update($_POST); //pesco o array do dob\n\t\t\techo '<script>alert(\"Modifica eseguita con successo!\");</script>';\n\t\t\t//envio o admin pra page q mostra todas as publicacoes\n\t\t\techo '<script>location.href=\"/SimpleMVC/?pagina=admin&metodo=index\"</script>';\n\n\t\t}catch(Exception $e) {\n\t\t\techo '<script>alert(\"'.$e->getMessage().'\");</script>';\n\t\t\t//reecaminha p pagina do metodo change q exibe o form de modifica\n\t\t\techo '<script>location.href=\"/SimpleMVC/?pagina=admin&metodo=change&id= '.$_POST['id'].'\"</script>';\n\n\t\t}\n\n//var_dump($_POST); N PEGA\n\t}", "title": "" }, { "docid": "29023ca2d6ece2734840558d502bfd35", "score": "0.594125", "text": "public static function formMedicamento($dados = null, $editable = true)\n {\n $action = 'inserir';\n if(isset($dados)) $action = 'alterar'\n ?>\n <div class=\"box box-default\">\n <div class=\"box-header with-border\">\n <h3 class=\"box-title\">Medicamento</h3>\n </div>\n <!-- /.box-header -->\n <!-- form start -->\n <form action=\"?pag=medicamento&acao=<?php print($action)?>\" method=\"post\" role=\"form\">\n <div class=\"box-body row\">\n <div class=\"form-group col-xs-12\">\n <label for=\"medicamento_nome\">Descrição</label>\n <input type=\"text\" class=\"form-control\" name=\"medicamento_nome\" id=\"medicamento_nome\" placeholder=\"Nome medicamento\" <?php if(isset($dados['medicamento_nome'])) print('value=\"'.$dados['medicamento_nome'].'\"'); if(!$editable) print(\"disabled\"); ?> required>\n </div>\n </div>\n <!-- /.box-body -->\n\n <div class=\"box-footer\">\n <a href=\"?pag=medicamento&acao=listar\" class='btn btn-flat btn-default pull-left'>Voltar</a>\n <?php\n \n if(isset($dados['medicamento_id'])) print(\"<input type='hidden' name='medicamento_id' value='\".$dados['medicamento_id'].\"'>\");\n if($editable) print(\"<input type='submit' name='submit' value='Salvar' class='btn btn-flat btn-success pull-right'>\");\n ?>\n </div>\n </form>\n </div>\n <!-- /.box -->\n <?php\n }", "title": "" }, { "docid": "0b593925cae11a43c34cf05bc35b5437", "score": "0.5940241", "text": "public function listar_manteEntregar_controlador(/*$privilegio,$codigo*/){\n\t\t\t\n\t\t\n\t\t\t//$privilegio=mainModel::limpiar_cadena($privilegio);\n\t\t\t//$codigo=mainModel::limpiar_cadena($codigo);\n\t\t\t\n\n\t\t\t$tabla=\"\";\n\n\t\t\t\n\n\t\t\t\n\t\t\t//$consulta=\"SELECT SQL_CALC_FOUND_ROWS * FROM departemento\" /*WHERE CuentaCodigo!='$codigo' AND id!='1' ORDER BY AdminNombre*/;\n\t\t\t//$paginaurl=\"adminlist\";\n\t\t\t$consulta=\"SELECT *,T2.mantenimientocodigo as id_pl FROM empresa as T1 INNER JOIN mantenimiento as T2 on T1.empresacodigo=T2.empresacodigo ORDER BY empresanombre\";\n\n\t\t\t$conexion = mainModel::conectar();\n\n\t\t\t$datos = $conexion->query($consulta);\n\t\t\t$datos= $datos->fetchAll();\n\n\t\t\t\n\n\t\t\n\t\t\t//InicioTabla_______________________________________________________________\n\t\t\t$tabla.='\n\t\t\t\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<th>#</th>\n\t\t\t\t\t\t\t<th>EMPRESA</th>\n\t\t\t\t\t\t\t<th>NOMBRE</th>\n\t\t\t\t\t\t\t\n\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t\t<th>ACCIONES</th>\n\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//if ($privilegio==1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t//}\n\t\t\t$tabla.='</tr>\n\t\t\t\t\t</thead>\n\t\t\t\t\t<tbody>';\n\n\t\t\t\t\n\t\t\t\t$contador=0;\n\t\t\t\tforeach ($datos as $rows) {\n\t\t\t\t\t$contador=$contador+1;\n\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td>'.$contador.'</td>\n\t\t\t\t\t\t\t<td>'.$rows['empresanombre'].'</td>\n\t\t\t\t\t\t\t<td>'.$rows['departamentonombre'].'</td>\n\t\t\t\t\t\t\t';\n\t\t\t\t\t\t//if ($privilegio<=2) {\n\t\t\t\t\t\t\t$tabla.='\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<a href=\"'.SERVERURL.'manteEntregarinfo/'.mainModel::encryption($rows['mantenimientocodigo']).'/\" class=\"btn btn-primary\">\n\t\t\t\t\t\t\t\t\t<i class=\"fa fa-edit\" onclick=\"editbtnmenu\"></i> Editar\n\t\t\t\t\t\t\t\t</a>\n \n\t\t\t\t\t\t\t</td>\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t';\n\n\t\t\t\t\t\t//}\n\t\t\t\t\t\t//if ($privilegio==1) {\n\t\t\t\t\t\t\t/*$tabla.='\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t<form action=\"'.SERVERURL.'ajax/administradorAjax.php\" method=\"POST\" class=\"FormularioAjax\" data-form=\"delete\" entype=\"multipart/form-data\" autocomplete=\"off\">\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"codigo-del\" value=\"'.mainModel::encryption($rows['CuentaCodigo']).'\"></input>\n\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"privilegio-admin\" value=\"'.mainModel::encryption($privilegio).'\"></input>\n\t\t\t\t\t\t\t\t\t<button type=\"submit\" class=\"btn btn-danger btn-raised btn-xs\">\n\t\t\t\t\t\t\t\t\t\t<i class=\"zmdi zmdi-delete\"></i>\n\t\t\t\t\t\t\t\t\t</button>\n\t\t\t\t\t\t\t\t\t<div class=\"RespuestaAjax\"></div>\n\t\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t';*/\n\t\t\t\t\t\t}\t\n\t\t\t$tabla.='\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t';\n\t\t\t\t\t//$contador++;\n\t\t\t\t//}\n\t\t\t\n\n\t\t\t$tabla.='\n\t\t\t\t\t</tbody>\n\t\t\t\t';\n\t\t\t//Fin Tabla__________________________________________________________________\n\n\t\t\t\n\n\t\t\treturn $tabla;\n\t\t}", "title": "" }, { "docid": "95b730da424e7eb8659ade24ba0ef363", "score": "0.5939436", "text": "public function edit(UsoRespirador $usoRespirador)\n {\n //\n }", "title": "" }, { "docid": "0c46a0bfba68105b0701d82269fc8ca3", "score": "0.59374976", "text": "public function modificar()\n {\n $resp = false;\n $base = new BaseDatos();\n if (parent::modificar()) {\n $consulta = \"UPDATE musical SET director = '\" . $this->getDirector() . \"', cantpersonas = \" . $this->getCantPersonas() . \"WHERE idfuncion = \" . parent::getIdFuncion();\n if ($base->Iniciar()) {\n if ($base->Ejecutar($consulta)) {\n $resp = true;\n } else {\n $this->setmensajeoperacion($base->getError());\n }\n } else {\n $this->setmensajeoperacion($base->getError());\n }\n }\n return $resp;\n }", "title": "" }, { "docid": "8b8515f0642f6c18fb6710c1af67d633", "score": "0.5932713", "text": "public function form_editar_usuario($id)\n\t{\n\t\t//funcion para cargar los datos de cada usuario en la ficha\n\t\t$usuario=User::find($id);\n\t\t$contador=count($usuario);\n\t\tif($contador>0){\n return view(\"formularios.form_editar_usuario\")->with(\"usuario\",$usuario);\n\t\t}\n\t\telse\n\t\t{\n return view(\"mensajes.msj_rechazado\")->with(\"msj\",\"el usuario con ese id no existe o fue borrado\");\n\t\t}\n\t}", "title": "" } ]
16648f43c8d0bced5f578e6f5101b6ec
Closes open tags and adds three dots.
[ { "docid": "896aa2f1f476a0b0995ff5f9a1b4c439", "score": "0.0", "text": "private function htmlRegenerate($html)\n {\n $dom = new \\DOMDocument();\n $dom->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', \"UTF-8\"), LIBXML_HTML_NODEFDTD);\n $dots = $dom->createTextNode(\"...\");\n $this->lastParent($dom)->appendChild($dots);\n $innerHTML = \"\";\n foreach ($dom->getElementsByTagName('body')->item(0)->childNodes as $child) {\n $innerHTML .= $dom->saveHTML($child);\n }\n return $innerHTML;\n }", "title": "" } ]
[ { "docid": "a7eb050e3f95b797102e1953deb5984f", "score": "0.65361196", "text": "public function closingTag();", "title": "" }, { "docid": "18167e1dc58ad6ab528cdccaa2b54faa", "score": "0.62648726", "text": "public function closeTag()\n {\n return '</a>';\n }", "title": "" }, { "docid": "ce2a94df33e7d7c01a80ed3721934e0e", "score": "0.62214065", "text": "private function closeTag()\n {\n return '</'.$this->tag.'>';\n }", "title": "" }, { "docid": "f7c09e1ebac5b57d8ff1a74af2316c09", "score": "0.60192055", "text": "public function closeTag(): string;", "title": "" }, { "docid": "09401b2f495ad71f0f03512f8763c2a2", "score": "0.5988413", "text": "function exp_close__tag($cont,$item,$tar){\n if($cont->len==0) return $this->exp_add__tag($item,$tar);\n if(!empty($item->raw)) $cont->pre($item->raw);\n $head = $this->expc_tag_head($item,$hlen);\n $ctag = '</' . $item->head['.'] . '>';\n return $this->exp_tag($head,$hlen,$cont,$ctag,$tar);\n }", "title": "" }, { "docid": "4154d34529421acf71a1d0361d07bb1b", "score": "0.59700906", "text": "static public function endTag()\n {\n return '';\n }", "title": "" }, { "docid": "de3f011247b2cea032fdb2c1376c4c72", "score": "0.596704", "text": "protected function closeNonBlockLevel()\n\t{\n\t\t$n = count($this->open_tags) - 1;\n\t\twhile ($n >= 0 && !$this->open_tags[$n][Codes::ATTR_BLOCK_LEVEL])\n\t\t{\n\t\t\t$n--;\n\t\t}\n\n\t\t// Close all the non block level tags so this tag isn't surrounded by them.\n\t\tfor ($i = count($this->open_tags) - 1; $i > $n; $i--)\n\t\t{\n\t\t\t$old_pos = $this->pos;\n\t\t\t$this->addStringAtCurrentPos($this->open_tags[$i][Codes::ATTR_AFTER], 0);\n\t\t\t$this->param_start_pos += $this->pos - $old_pos;\n\n\t\t\t// Trim or eat trailing stuff... see comment at the end of the big loop.\n\t\t\tif ($this->open_tags[$i][Codes::ATTR_BLOCK_LEVEL] && substr_compare($this->message, '<br />', $this->pos, 6) === 0)\n\t\t\t{\n\t\t\t\t$this->message = substr_replace($this->message, '', $this->pos, 6);\n\t\t\t}\n\n\t\t\tif (isset($tag[Codes::ATTR_TRIM]) && $tag[Codes::ATTR_TRIM] !== Codes::TRIM_INSIDE)\n\t\t\t{\n\t\t\t\t$this->trimWhiteSpace($this->message, $this->pos);\n\t\t\t}\n\n\t\t\t$this->closeOpenedTag();\n\t\t}\n\t}", "title": "" }, { "docid": "9c41adb6752d3cd78bc7ba08d8a71ee4", "score": "0.5860983", "text": "function closeTag($tag, &$indent)\n {\n $indent = substr($indent, 0, -3);\n return $indent . \"</$tag>\";\n }", "title": "" }, { "docid": "47428154255a73ade427dd302e8c2574", "score": "0.58585304", "text": "protected function closeTag()\n {\n return ($this->isXml || $this->isXhtml ? '/' : '').'>';\n }", "title": "" }, { "docid": "8d311149f2306fe0b037637cdff0b8e7", "score": "0.5845483", "text": "public function renderClosingTag($node) {\n\t return ($node->isSelfClosing ? '' : ($node->whitespaceControl['inner'] ? '' :\n\t \t$this->getIndent($node)) . parent::renderClosingTag($node) .\n\t \t($node->whitespaceControl['outer'] ? '' : \"\\n\"));\n\t}", "title": "" }, { "docid": "51c6ff0123b8e45bc7d57d91b8ab0c4d", "score": "0.58316255", "text": "function closetags ( $html )\r\n {\r\n preg_match_all ( \"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result );\r\n $openedtags = $result[1];\r\n #put all closed tags into an array\r\n preg_match_all ( \"#</([a-z]+)>#iU\", $html, $result );\r\n $closedtags = $result[1];\r\n $len_opened = count ( $openedtags );\r\n # all tags are closed\r\n if( count ( $closedtags ) == $len_opened )\r\n {\r\n return $html;\r\n }\r\n $openedtags = array_reverse ( $openedtags );\r\n # close tags\r\n for( $i = 0; $i < $len_opened; $i++ )\r\n {\r\n if ( !in_array ( $openedtags[$i], $closedtags ) )\r\n {\r\n $html .= \"</\" . $openedtags[$i] . \">\";\r\n }\r\n else\r\n {\r\n unset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] );\r\n }\r\n }\r\n return $html;\r\n }", "title": "" }, { "docid": "2a5a29cd2b4f7d1fd428f9a41e290b19", "score": "0.5818679", "text": "function CloseTags($html) {\r\n\t$html = preg_replace('/<[^>]*$/', '', $html); // ending with fraction of open tag\r\n\r\n\t// put open tags into an array\r\n\tpreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\r\n\t$opentags = $result[1];\r\n\r\n\t// put all closed tags into an array\r\n\tpreg_match_all('#</([a-z]+)>#iU', $html, $result);\r\n\t$closetags = $result[1];\r\n\r\n\t$len_opened = count($opentags);\r\n\r\n\t// if all tags are closed, we can return\r\n\tif (count($closetags) == $len_opened) {\r\n\t\treturn $html;\r\n\t}\r\n\r\n\t// close tags in reverse order that they were opened\r\n\t$opentags = array_reverse($opentags);\r\n\r\n\t// self closing tags\r\n\t$sc = array('br', 'input', 'img', 'hr', 'meta', 'link');\r\n\t// ,'frame','iframe','param','area','base','basefont','col'\r\n\t// should not skip tags that can have content inside!\r\n\r\n\tfor ($i = 0; $i < $len_opened; $i++) {\r\n\t\t$ot = strtolower($opentags[$i]);\r\n\r\n\t\tif (!in_array($opentags[$i], $closetags) && !in_array($ot, $sc)) {\r\n\t\t\t$html .= '</' . $opentags[$i] . '>';\r\n\t\t} else {\r\n\t\t\tunset($closetags[array_search($opentags[$i], $closetags)]);\r\n\t\t}\r\n\t}\r\n\r\n\treturn $html;\r\n\r\n}", "title": "" }, { "docid": "06d9021cf13d13d67a7ac01d6a6885c6", "score": "0.5807589", "text": "public function renderClosingFormatTags(): string {\n $result = \"\";\n /** @var AbstractFormat $format */\n foreach (array_reverse($this->formats, true) as $format) {\n $result .= $format->renderClosingTag();\n }\n return $result;\n }", "title": "" }, { "docid": "fc6afd92454f9dab1606e5f65cef6308", "score": "0.57469577", "text": "function studio_wrap_close() {\n\techo '</div>';\n}", "title": "" }, { "docid": "d5c366c5ee864af38f0896e1b6d2871f", "score": "0.5740516", "text": "function SubscriptionDNA_closetags ( $html )\r\n{\r\n preg_match_all ( \"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result );\r\n $openedtags = $result[1];\r\n\r\n #put all closed tags into an array\r\n preg_match_all ( \"#</([a-z]+)>#iU\", $html, $result );\r\n $closedtags = $result[1];\r\n $len_opened = count ( $openedtags );\r\n # all tags are closed\r\n if( count ( $closedtags ) == $len_opened )\r\n {\r\n return $html;\r\n }\r\n $openedtags = array_reverse ( $openedtags );\r\n # close tags\r\n for( $i = 0; $i < $len_opened; $i++ )\r\n {\r\n if ( !in_array ( $openedtags[$i], $closedtags ) )\r\n {\r\n $html .= \"</\" . $openedtags[$i] . \">\";\r\n }\r\n else\r\n {\r\n unset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] );\r\n }\r\n }\r\n return $html;\r\n}", "title": "" }, { "docid": "b42d93648575322f13b98d2b0d56adf1", "score": "0.5715987", "text": "function generic_closed($tag,$prop=null){\n\t\tif($this->returnmode) $this->content.=\"\\n\".$this->tabs();\n\t\telse echo \"\\n\".$this->tabs();\n\t\t$property = '';\n\t\tif(isset($prop) && is_array($prop) && count($prop)){\n\t\t\t$p = array();\n\t\t\tforeach($prop as $name=>$val) $p[] = $name.'=\"'.$val.'\"';\n\t\t\t$property = ' '.implode(' ',$p);\n\t\t}\n\t\tif($this->returnmode) $this->content.=\"<\".$tag.$property.\" />\";\n\t\telse echo \"<\".$tag.$property.\" />\";\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "e6ee1e4fc98532d5ed65213d4810d001", "score": "0.5700539", "text": "function closetags ( $html ){\n\t\tpreg_match_all ( \"#<(?!(br|img|hr))([a-z]+)( .*)?(?!/)>#iU\", $html, $result ); \n\t\t$openedtags = $result[2]; \n\t\t#put all closed tags into an array \n\t\tpreg_match_all ( \"#</(?!(br|img|hr))([a-z]+)>#iU\", $html, $result ); \n\t\t$closedtags = $result[2]; \n\t\n\t\t$len_opened = count ( $openedtags ); \n\t\t# all tags are closed \n\t\tif( count ( $closedtags ) == $len_opened ) { return $html; } \n\t\n\t\t$openedtags = array_reverse ( $openedtags ); \n\t\t# close tags \n\t\tfor( $i = 0; $i < $len_opened; $i++ ) { \n\t\t\tif ( !in_array ( $openedtags[$i], $closedtags ) ) {\n\t\t\t\t$html .= \"</\" . $openedtags[$i] . \">\"; \n\t\t\t} else { \n\t\t\t\tunset ( $closedtags[array_search ( $openedtags[$i], $closedtags)] ); \n\t\t\t} \n\t\t}\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "a742cc23262ad78d432e36d10eab4cea", "score": "0.5662535", "text": "protected static function getTagClose()\n {\n if (self::$_documentType > self::HTML5) {\n $code = \" />\";\n } else {\n $code = \">\";\n }\n return $code;\n }", "title": "" }, { "docid": "2fb5c6ddc66f3246b59a878db8fef42d", "score": "0.56534547", "text": "function closetags($html) {\r\n#put all opened tags into an array\r\npreg_match_all('#<([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\r\n$openedtags = $result[1]; #put all closed tags into an array\r\npreg_match_all('#</([a-z]+)>#iU', $html, $result);\r\n$closedtags = $result[1];\r\n$len_opened = count($openedtags);\r\n# all tags are closed\r\nif (count($closedtags) == $len_opened) {\r\nreturn $html;\r\n}\r\n$openedtags = array_reverse($openedtags);\r\n# close tags\r\nfor ($i=0; $i < $len_opened; $i++) {\r\nif (!in_array($openedtags[$i], $closedtags)){\r\n$html .= '</'.$openedtags[$i].'>';\r\n} else {\r\nunset($closedtags[array_search($openedtags[$i], $closedtags)]);\r\n}\r\n}\r\nreturn $html;\r\n}", "title": "" }, { "docid": "60ebf1a5f056d545e5dd566e56235964", "score": "0.56420684", "text": "public function close(): string {\n return $this->scripts . $this->getClosingTag();\n }", "title": "" }, { "docid": "e3f3e17b2c58affe3806ddfc89257eae", "score": "0.5584875", "text": "protected static function get_dot_tail() {\n return '}';\n }", "title": "" }, { "docid": "c750ef7eaf87ea4d44d905031e532eb5", "score": "0.55649084", "text": "function close_html_tag($name) {\n return \"</$name>\";\n }", "title": "" }, { "docid": "c225bc32fd18f3c48b62981197e229bd", "score": "0.55170983", "text": "public function close(): string\n\t{\n\t\treturn $this->blocks[array_pop($this->openBlocks)][] = ob_get_clean();\n\t}", "title": "" }, { "docid": "215c3781c1c61b9173240ee9383818fb", "score": "0.5447157", "text": "public function tag_close($file_name) {\n $tag_end = \"<!-- End \";\n $tag_close = \" -->\";\n\n return $tag_end.$file_name.$tag_close;\n }", "title": "" }, { "docid": "e556b649ba1f9a153b9afd2f2b3ad69a", "score": "0.54308355", "text": "function close_comment() {?>\n\t</li>\n<?php\n}", "title": "" }, { "docid": "a5257ce83122d4e0b0a3f1513e7bcd3e", "score": "0.5419558", "text": "public function openTag(){\n $list_attr='';\n\n foreach ($this->attr as $key => $value) {\n $list_attr=$list_attr.' '.$key.'=\"'.$value.'\"';\n }\n if($this->is_line==1){\n return '<'.$this->tag.' '.$list_attr.'/>';\n }\n else{\n return '<'.$this->tag.' '.$list_attr.'>';\n }\n\n }", "title": "" }, { "docid": "15d840e26afaeaf17bcef6baf8121527", "score": "0.5413343", "text": "public static function closeOpenTags($html){\n\t\t// the following line was the original regex tweak by the first commenter. This was swapped out\n\t\t// for the active preg_match_all in use a couple lines down.\n\t\t//preg_match_all(\"#<([a-z]+)(?<!br)( [^/]*)?(?!/)>#iU\",$html,$result);\n\n\t\t//put all opened tags into an array\n\t\tpreg_match_all('#<(?!meta|img|br|hr|input\\b)\\b([a-z]+)(?: .*)?(?<![/|/ ])>#iU', $html, $result);\n\t\t$openedtags=$result[1];\n\n\t\t//put all closed tags into an array\n\t\tpreg_match_all(\"#</([a-z]+)>#iU\",$html,$result);\n\t\t$closedtags=$result[1];\n\t\t$len_opened = count($openedtags);\n\t\t// all tags are closed\n\t\tif(count($closedtags) == $len_opened){\n\t\t\treturn $html;\n\t\t}\n\n\t\t$openedtags = array_reverse($openedtags);\n\t\t// close tags\n\t\tfor($i=0;$i < $len_opened;$i++) {\n\t\t\tif (!in_array($openedtags[$i],$closedtags)){\n\t\t\t\t$html .= '</'.$openedtags[$i].'>';\n\t\t\t} else {\n\t\t\t\tunset($closedtags[array_search($openedtags[$i],$closedtags)]);\n\t\t\t}\n\t\t}\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "86d66ec813321872a38e3829731ed545", "score": "0.5368628", "text": "function end_el ( &$output, $item, $depth = 0, $args = array() )\n {\n $output .= '</li>';\n return;\n }", "title": "" }, { "docid": "3cc5bbfde3f0fd4001f18d434466a3b8", "score": "0.53661764", "text": "public function closetags($html) {\r\n preg_match_all(\"#<([a-z]+)( .*)?(?!/)>#iU\", $html, $result);\r\n $openedtags = $result[1];\r\n\r\n #put all closed tags into an array\r\n preg_match_all(\"#</([a-z]+)>#iU\", $html, $result);\r\n $closedtags = $result[1];\r\n $len_opened = count($openedtags);\r\n # all tags are closed\r\n if (count($closedtags) == $len_opened) {\r\n return $html;\r\n }\r\n $openedtags = array_reverse($openedtags);\r\n # close tags\r\n for ($i = 0; $i < $len_opened; $i++) {\r\n if (!in_array($openedtags[$i], $closedtags)) {\r\n $html .= \"</\" . $openedtags[$i] . \">\";\r\n } else {\r\n unset($closedtags[array_search($openedtags[$i], $closedtags)]);\r\n }\r\n }\r\n return $html;\r\n }", "title": "" }, { "docid": "8e99f7b98ed409a9580c9016b38cea08", "score": "0.5348061", "text": "public function closeNewTag()\n\t{\n\t\t$this->newTag = null;\n\t}", "title": "" }, { "docid": "dbac1d2972ec79db8749a1fc2d2b6b72", "score": "0.5316569", "text": "public function closeTag()\n\t{\n\t\treturn \"</form>\";\n\t}", "title": "" }, { "docid": "3d18b8fa60c3df1e4a37fa0d969e030c", "score": "0.5227798", "text": "public function closeBlock(): void\n {\n $firstLine = $this->strings->first();\n if ($firstLine === false) {\n $firstLine = '';\n }\n\n $this->block->setInfo(RegexHelper::unescape(\\trim($firstLine)));\n\n if ($this->strings->count() === 1) {\n $this->block->setLiteral('');\n } else {\n $this->block->setLiteral(\\implode(\"\\n\", $this->strings->slice(1)).\"\\n\");\n }\n }", "title": "" }, { "docid": "6c965b197827c0e511ece7032ec9048f", "score": "0.52130973", "text": "function fairy_style_wishlist_compare_wrap_close() {\n\techo \"</div>\";\n}", "title": "" }, { "docid": "b5b8f7842994edf9049173c0ca94867f", "score": "0.52060366", "text": "protected function closeParagraphs() {\n $this->cleaned_HTML = preg_replace('#(<p[^>]*>)#i', \"</p>$1\", $this->cleaned_HTML);\n $this->cleaned_HTML = preg_replace('#(?<!</p>)</center>[\\s\\n]*(?![\\s\\n]*</?p)#i', \"</center></p><p>\", $this->cleaned_HTML);\n // If adding additional </p> was unnecessary, remove\n $this->cleaned_HTML = preg_replace('#</(p|pre)>((?:[\\n\\s]|<[^>]+>)*)</p>#i', \"</$1>$2\", $this->cleaned_HTML);\n // Now append and remove <p> to </p(re)> that are not already followed by <p> or <pre> <small> or </anything>\n $this->cleaned_HTML = preg_replace('#</p(re)?>[\\s\\n]*(?![\\s\\n]*<(?:p|/|small))#i', \"</p$1><p>\", $this->cleaned_HTML);\n $this->cleaned_HTML = preg_replace('#<p>((?:[\\n\\s]|<[^>]+>)*)<p([^>]*)>#i', \"$1<p$2>\", $this->cleaned_HTML);\n // Remove leading </p> inserted into <body><p>\n $this->cleaned_HTML = str_replace('<body></p>', '<body>', $this->cleaned_HTML);\n }", "title": "" }, { "docid": "bb81f1c4b422051c62590bb7eb9e1c6f", "score": "0.5180146", "text": "public function close()\n\t{\n\t\t$this->blocks[array_pop($this->openBlocks)] = ob_get_clean();\n\t}", "title": "" }, { "docid": "95523ed918fb6e42e841a4ef2792ee76", "score": "0.51309055", "text": "protected function ending()\n {\n return sprintf(\"\\t\\t%s\\n%s\", $this->dots, $this->range($this->last - 1, $this->last));\n }", "title": "" }, { "docid": "9e82abf78239728a6c033721513a3334", "score": "0.5129639", "text": "public function end()\n {\n return Html::endTag(isset($this->options['tag']) ? $this->options['tag'] : 'div');\n }", "title": "" }, { "docid": "09a2f524ca258f094fae3f85f54382de", "score": "0.5103466", "text": "public function openingTag();", "title": "" }, { "docid": "266f0f067a7ed2fe35f0d11d6bf1ac4a", "score": "0.5099773", "text": "function studio_wrap_open() {\n\techo '<div class=\"wrap\">';\n}", "title": "" }, { "docid": "97f2ee0ac9a504b2f8378f646dbb16be", "score": "0.5081778", "text": "function pandago_excerpt_more_dots() {\r\r\n return '...';\r\r\n }", "title": "" }, { "docid": "5f9c61a1b10b0aaa2d912338d57c0feb", "score": "0.50704795", "text": "public static function writeParagraphEndTag() {\n echo \"</p>\\r\\n\";\n }", "title": "" }, { "docid": "37a1a86adbf794e02c6dc392b2fe07ab", "score": "0.50680614", "text": "function power_footer_markup_close() {\n\n\tpower_structural_wrap( 'footer', 'close' );\n\tpower_markup(\n\t\t[\n\t\t\t'close' => '</footer>',\n\t\t\t'context' => 'site-footer',\n\t\t]\n\t);\n\n}", "title": "" }, { "docid": "814314fe4c1eeffa8fbb5867b60827ba", "score": "0.505413", "text": "public function primary_navigation_wrapper_close() {\n\t\techo '</section>';\n\t}", "title": "" }, { "docid": "ec1c15554eb919b3a4750b5e9f993574", "score": "0.5049268", "text": "function tree_end(){\n $this->php=substr($this->php,0,strlen($this->php)-1);\n $this->php.=\"))),\";\n return;\n }", "title": "" }, { "docid": "2daa9f57ea81f041b04ef2e7dc873aec", "score": "0.504111", "text": "private function openTag($content = '')\n {\n return '<'.$this->tag.$content.'>';\n }", "title": "" }, { "docid": "1e1489f9f3419c50f78154cf55504078", "score": "0.50410974", "text": "function field_close() {\n\t\treturn $this->form['markup'] === 'xhtml' ? ' />' : '>';\n\t}", "title": "" }, { "docid": "5189139f3a9e1b018e367fd4c4dd5f8c", "score": "0.50344574", "text": "function tob_bar_wrapper_close() {\n\t\techo '</div>';\n\t}", "title": "" }, { "docid": "1fc17a3b0ddcbd36ee9db1a79b92afee", "score": "0.502378", "text": "function end_el( &$output ) {\n\t\t$output .= '}, ';\n\t}", "title": "" }, { "docid": "56b6bbd77179137478230030dca07f49", "score": "0.5019954", "text": "function storefront_secondary_navigation_wrapper_close() {\n\techo '</section>';\n}", "title": "" }, { "docid": "bc4c59212781168160a5c204e659da68", "score": "0.5018574", "text": "function poco_primary_navigation_wrapper_close() {\n echo '</div></div>';\n }", "title": "" }, { "docid": "e199129df1d9437ba541426beb7d89cd", "score": "0.5014311", "text": "public function DrawTreeElement($count){\n\t\t$html='';\n\t\tfor($i=0;$i<$count;$i++){\n\t\t\t$html.='<span class=\"gi\">|-</span>';\n\t\t\t}\n\t\treturn $html;\n\t\t}", "title": "" }, { "docid": "514691ea40701e28ac87da4a9cae4826", "score": "0.50028336", "text": "public function end_el(&$output, $item, $depth){\n $output .= \"</option>\\n\";\n }", "title": "" }, { "docid": "70942b1762f16b7127adcfd906a4dd6d", "score": "0.5000612", "text": "protected function htmlBlock(string $open, Collection $items, string $close): string\n {\n $items = collect(array_map('trim', $items->toArray()))->filter();\n if ($items->isEmpty()) {\n return '';\n }\n\n $open .= !empty($open) ? \"\\n\" : '';\n $close .= !empty($close) ? \"\\n\" : '';\n\n return \"{$open}{$items->implode(\"\\n\")}\\n{$close}\\n\";\n }", "title": "" }, { "docid": "7996a68c66419560eff24e79a8fac79a", "score": "0.4999139", "text": "function _tpl_allclosed($text) {\r\n\t\t$quotetype=-1; // 0-simple;1-double;2-blockcomm;3-inlinecomm;4-HEREDOC\n\t\t$quotename='';\r\n\t\t$text=' '.$text.' ';\r\n\t\tfor ($i=0;$i<(strlen($text)-1);$i++) {\r\n\t\t\t//if (($quotetype<0)&&($text[$i]=='/')&&($text[$i+1]=='/')) {$quotetype=3;}\r\n\t\t\tif (($quotetype<0)&&($text[$i]=='/')&&($text[$i+1]=='*')) {$quotetype=2;}\r\n\t\t\telseif (($quotetype<0)&&($text[$i]=='\\'')) {$quotetype=0;}\r\n\t\t\telseif (($quotetype<0)&&($text[$i]=='\"')) {$quotetype=1;}\n\t\t\telseif (($quotetype<0)&&(preg_match('/^<<<([a-zA-Z0-9_]+?)[\\n\\r]/',$text,$rgmatch,null,$i))) {$quotetype=4;$quotename=$rgmatch[1];}\r\n\t\t\telseif (($quotetype==0)&&($text[$i]=='\\'')&&($text[$i-1]!=\"\\\\\")) {$quotetype=-1;}\r\n\t\t\telseif (($quotetype==1)&&($text[$i]=='\"')&&($text[$i-1]!=\"\\\\\")) {$quotetype=-1;}\r\n\t\t\telseif (($quotetype==2)&&($text[$i]=='*')&&($text[$i+1]==\"/\")) {$quotetype=-1;}\n\t\t\telseif (($quotetype==4)&&(preg_match('/^'.preg_quote($quotename).'/i',$text,$rgmatch,null,$i))) {$quotetype=-1;}\r\n\t\t\t//elseif (($quotetype==3)&&(($text[$i]==\"\\n\")||($text[$i]==\"\\r\"))) {$quotetype=-1;}\r\n\t\t}\r\n\t\treturn ($quotetype>-1);\r\n\t}", "title": "" }, { "docid": "25df9df08cce52cd3b93aa7d839eb031", "score": "0.49967855", "text": "public function end_widget_options() {\n\t\t?>\n\t\t\t\t\t\t</ul>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "43542890ce391c6952533bd86f6b2cec", "score": "0.4996605", "text": "static function phpClose() {\n echo \"?\".\">\";\n }", "title": "" }, { "docid": "8ce8b31065cf9055770d8c1db2320c79", "score": "0.499205", "text": "public function end_el( &$output, $item, $depth = 0, $args = array() ) {\n\t\t$output .= \"</li>\\n\";\n\t}", "title": "" }, { "docid": "eb941b326ed94d1cafca49c3da0f6013", "score": "0.49701384", "text": "function fairy_style_product_image_wrap_close() {\n\techo \"</div>\";\n}", "title": "" }, { "docid": "330c6d2204117fd438abc4fea17e803e", "score": "0.49506292", "text": "function _close_open_lists($list_indent, $list_type)\n{\n $tag_output = '';\n for ($i = 0; $i < $list_indent; ++$i) { // Close any lists that exist\n $tag_output .= '</li>';\n $temp_tpl = ($list_type === 'ul') ? '</ul>' : '</ol>';\n $tag_output .= $temp_tpl;\n }\n $list_indent = 0;\n return array($tag_output, $list_indent);\n}", "title": "" }, { "docid": "ec19a88b69820c075331b9d9998bd412", "score": "0.49382934", "text": "function power_footer_markup_open() {\n\n\tpower_markup(\n\t\t[\n\t\t\t'open' => '<footer %s>',\n\t\t\t'context' => 'site-footer',\n\t\t]\n\t);\n\tpower_structural_wrap( 'footer', 'open' );\n\n}", "title": "" }, { "docid": "2dfc16076d2c639cae21e225868294cd", "score": "0.4921417", "text": "function create_closing_tag($value) {\n if (isset($value['grouping'])) {\n echo \"</div>\\n\";\n }\n //echo \"</div><!-- suf-section -->\\n\";\n echo \"</div>\\n\";\n}", "title": "" }, { "docid": "2fffb05bf2f7c561cd081df36afca465", "score": "0.4916963", "text": "public function renderOpeningFormatTags(): string {\n $result = \"\";\n foreach ($this->formats as $format) {\n $result .= $format->renderOpeningTag();\n }\n return $result;\n }", "title": "" }, { "docid": "3ae17393d84e4ecd45d3ec8b8692bc81", "score": "0.49151963", "text": "function endTag($parser, $name) {\r\n # do nothing\r\n }", "title": "" }, { "docid": "49458dce701198c6471af9e1d0d2e5a9", "score": "0.4890341", "text": "function end_lvl( &$output, $depth ) {\n\t\t$GLOBALS['comment_depth'] = $depth + 1;\n\n\t\t$output .= '] ';\n\t}", "title": "" }, { "docid": "a1b64943447de4b62ce5e8e886938abb", "score": "0.48863646", "text": "protected function handleOpenTags()\n\t{\n\t\t$closing_bracket_pos = strpos($this->message, ']', $this->pos + 1);\n\n\t\t// Playing games? string = [/]\n\t\tif ($closing_bracket_pos === $this->pos + 2)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Get everything between [/ and ]\n\t\t$look_for = strtolower(substr($this->message, $this->pos + 2, $closing_bracket_pos - $this->pos - 2));\n\t\t$to_close = array();\n\t\t$block_level = null;\n\n\t\t// Find the code. Should be in order but sometimes it's not\n\t\tdo\n\t\t{\n\t\t\t// Get the last opened code\n\t\t\t$code = $this->closeOpenedTag();\n\n\t\t\t// No open tags\n\t\t\tif (!$code)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif ($code[Codes::ATTR_BLOCK_LEVEL])\n\t\t\t{\n\t\t\t\t// Only find out if we need to.\n\t\t\t\tif ($block_level === false)\n\t\t\t\t{\n\t\t\t\t\t$this->addOpenTag($code);\n\t\t\t\t\t// If one of the previous/child tags is block level and this one isn't, something is screwed up.\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// The idea is, if we are LOOKING for a block level tag, we can close them on the way.\n\t\t\t\tif (isset($look_for[1]) && $this->bbc->hasChar($look_for[0]))\n\t\t\t\t{\n\t\t\t\t\tforeach ($this->bbc->getCodesByChar($look_for[0]) as $temp)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($temp[Codes::ATTR_TAG] === $look_for)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$block_level = $temp[Codes::ATTR_BLOCK_LEVEL];\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($block_level !== true)\n\t\t\t\t{\n\t\t\t\t\t$block_level = false;\n\t\t\t\t\t$this->addOpenTag($code);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$to_close[] = $code;\n\t\t} while ($code[Codes::ATTR_TAG] !== $look_for);\n\n\t\t// Did we just eat through everything and not find it?\n\t\tif (!$this->hasOpenTags() && (empty($code) || $code[Codes::ATTR_TAG] !== $look_for))\n\t\t{\n\t\t\t// The opened code can't be found\n\t\t\t$this->open_tags = $to_close;\n\t\t\treturn;\n\t\t}\n\t\telseif (!empty($to_close) && $code[Codes::ATTR_TAG] !== $look_for)\n\t\t{\n\t\t\tif ($block_level === null && isset($look_for[0]) && $this->bbc->hasChar($look_for[0]))\n\t\t\t{\n\t\t\t\tforeach ($this->bbc->getCodesByChar($look_for[0]) as $temp)\n\t\t\t\t{\n\t\t\t\t\tif ($temp[Codes::ATTR_TAG] === $look_for)\n\t\t\t\t\t{\n\t\t\t\t\t\t$block_level = !empty($temp[Codes::ATTR_BLOCK_LEVEL]);\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\t// We're not looking for a block level tag (or maybe even a tag that exists...)\n\t\t\tif (!$block_level)\n\t\t\t{\n\t\t\t\tforeach ($to_close as $code)\n\t\t\t\t{\n\t\t\t\t\t$this->addOpenTag($code);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// This is where we actually close out the tags\n\t\tforeach ($to_close as $code)\n\t\t{\n\t\t\tif (!empty($code[Codes::TRACKED_CONTENT]))\n\t\t\t{\n\t\t\t\t$this->endTrackedContent($code, $this->pos);\n\t\t\t}\n\n\t\t\t$this->addStringAtCurrentPos($code[Codes::ATTR_AFTER], $closing_bracket_pos + 1 - $this->pos);\n\t\t\t$closing_bracket_pos = $this->pos - 1;\n\n\t\t\t// See the comment at the end of the big loop - just eating whitespace ;).\n\t\t\tif ($code[Codes::ATTR_BLOCK_LEVEL] && isset($this->message[$this->pos]) && substr_compare($this->message, '<br />', $this->pos, 6) === 0)\n\t\t\t{\n\t\t\t\t$this->message = substr_replace($this->message, '', $this->pos, 6);\n\t\t\t}\n\n\t\t\t// Trim inside whitespace\n\t\t\tif (!empty($code[Codes::ATTR_TRIM]) && $code[Codes::ATTR_TRIM] !== Codes::TRIM_INSIDE)\n\t\t\t{\n\t\t\t\t$this->trimWhiteSpace($this->message, $this->pos + 1);\n\t\t\t}\n\t\t}\n\n\t\tif (!empty($to_close))\n\t\t{\n\t\t\t$this->pos--;\n\t\t}\n\t}", "title": "" }, { "docid": "c7a69aa66daebec2809bc835816d2b74", "score": "0.48756516", "text": "public static function close($extra = '')\n\t{\n\t\treturn '</form>'.\"\\n\".$extra;\n\t}", "title": "" }, { "docid": "24c69a06fe5e5885eaf25a4fb2a01b48", "score": "0.48727924", "text": "function poco_header_container_close() {\n echo '</div>';\n }", "title": "" }, { "docid": "71cae6cc9f377d437c9cb934167a8f7d", "score": "0.48690835", "text": "function template_generic_menu_dropdown_below()\n{\n\techo '\n\t\t\t\t</div>';\n}", "title": "" }, { "docid": "22040071e1b4fb84c1068886115e9bca", "score": "0.4866364", "text": "function end_side_content()\n{\n echo \"</div>\\n\";\n}", "title": "" }, { "docid": "674ce17a76b95e9b9e6c3b35c1249622", "score": "0.48541704", "text": "function ui_button_pane_end($tag = 'div'){\n return sprintf('</%s>', $tag);\n}", "title": "" }, { "docid": "edae3d6c0c84a2654d87828ffd1331c8", "score": "0.4849386", "text": "function end_lvl( &$output, $depth = 0, $args = array() ) {\r\n\t\t$indent = str_repeat(\"\\t\", $depth);\r\n\t\t$output .= \"$indent</ul>\\n\";\r\n\t}", "title": "" }, { "docid": "af3f6ad474d2cf40a79533980fe8aa64", "score": "0.48429716", "text": "function end_lvl( &$output, $depth = 0, $args = array() ) {\n\t\t$GLOBALS['comment_depth'] = $depth + 2; ?>\n\n\t\t</section>\n\n\t<?php }", "title": "" }, { "docid": "41710a4b6a36f3ccfbb860be863262ac", "score": "0.48311928", "text": "function end_el(&$output, $comment, $depth = 0, $args = array() ) { ?>\n\n\t\t</article>\n\n\t<?php }", "title": "" }, { "docid": "660e65df9c57eebd25bf69f65f487baa", "score": "0.4831109", "text": "public function renderCloseComment($node) {\n\t\treturn parent::renderCloseComment($node) . \"\\n\";\n\t}", "title": "" }, { "docid": "2b590dad604f5673b5782c95d96f9850", "score": "0.4831008", "text": "public function renderOpeningTag($node) {\n\t return ($node->whitespaceControl['outer'] ? '' : $this->getIndent($node)) .\n\t \tparent::renderOpeningTag($node) .\t($node->whitespaceControl['inner'] ? '' :\n\t \t($node->isSelfClosing && $node->whitespaceControl['outer'] ? '' : \"\\n\"));\n\t}", "title": "" }, { "docid": "f5906060b3fe96eeccaf51a1db395087", "score": "0.48220024", "text": "function endTag( Element $element, $sourceStart, $sourceLength );", "title": "" }, { "docid": "3c83ae5751ab0cde03ae54a5ed2ca3d1", "score": "0.4820496", "text": "public function navigationModuleClose()\n {\n return '</ul></div></li>';\n }", "title": "" }, { "docid": "042343a44087d653ba13f4d9acf67af7", "score": "0.4820424", "text": "public function close_permalink() {\n\t\techo '</a>';\n\t}", "title": "" }, { "docid": "2dc30ceb2d443b10eed5916c4316cf40", "score": "0.4818801", "text": "function closeHTML()\n{\necho \"</div>\\n</body>\\n</html>\\n\";\n}", "title": "" }, { "docid": "bad190182fcf50db2c42b2b87859cc45", "score": "0.48159635", "text": "function closeBox($text) {\n\treturn '<div style=\"width:100%;\" class=\"brz-padding-8 brz-text-bold brz-left brz-small brz-padding brz-super-grey brz-border-bottom brz-text-grey brz-border-super-grey\">\n\t\t '.$text.'\n\t\t\t </div>';\n}", "title": "" }, { "docid": "470606199a446f4cbdaaa09bba662824", "score": "0.4812346", "text": "function openTag($tag, &$indent)\n {\n $old_indent = $indent;\n $indent = $indent . ' ';\n return $old_indent . \"<$tag>\";\n }", "title": "" }, { "docid": "73374b32126e610fed2987eb386afae4", "score": "0.48121536", "text": "function end_content(){\r\n echo '</div></div></div></div>';\r\n}", "title": "" }, { "docid": "c314d02cfc79ea4810e314dc1df6c828", "score": "0.48051736", "text": "function tamaa_dots($more) {\n return '...';\n}", "title": "" }, { "docid": "f166e54df4aa4e438f4831ec8f19c7b8", "score": "0.47991621", "text": "public static function end() : string\n {\n return '</div><?php echo \\Jhoff\\BladeVue\\Components\\Basic::end(); ?>';\n }", "title": "" }, { "docid": "2a7692f4c348675791ddfd241e287cff", "score": "0.4786133", "text": "public static function endNode($el = 'div') { return '</'.$el.'>'; }", "title": "" }, { "docid": "447a601fa096e59128b1827bc5d49120", "score": "0.47814614", "text": "function genesis_post_tags_shortcode( $atts ) {\n\n\t$defaults = array(\n\t\t'after' => '',\n\t\t'before' => __( 'Tagged With: ', 'genesis' ),\n\t\t'sep' => ', ',\n\t);\n\t$atts = shortcode_atts( $defaults, $atts, 'post_tags' );\n\n\t$tags = get_the_tag_list( $atts['before'], trim( $atts['sep'] ) . ' ', $atts['after'] );\n\n\t//* Do nothing if no tags\n\tif ( ! $tags )\n\t\treturn;\n\n\t\n\t$output = '<span class=\"tags\">' . $tags . '</span>';\n\n\treturn apply_filters( 'genesis_post_tags_shortcode', $output, $atts );\n\n}", "title": "" }, { "docid": "26212972e4365e587e22bda316871f34", "score": "0.4777296", "text": "function omega_post_tags_shortcode( $atts ) {\n\n\t$defaults = array(\n\t\t'after' => '',\n\t\t'before' => __( 'Tagged With: ', 'omega' ),\n\t\t'sep' => ', ',\n\t);\n\t$atts = shortcode_atts( $defaults, $atts, 'post_tags' );\n\n\t$tags = get_the_tag_list( $atts['before'], trim( $atts['sep'] ) . ' ', $atts['after'] );\n\n\t//* Do nothing if no tags\n\tif ( ! $tags )\n\t\treturn;\n\n\t$output = sprintf( '<span %s>', omega_get_attr( 'entry-tags' ) ) . $tags . '</span>';\n\n\treturn apply_filters( 'omega_post_tags_shortcode', $output, $atts );\n\n}", "title": "" }, { "docid": "fa24e6df6ae317ccc29d87164b7e22ba", "score": "0.47716638", "text": "public function finish()\n\t{\n\t\tif ($this->indent !== 0 && !$this->minifyHtml) {\n\t\t\techo \"<!--\\nIt's no big deal, but your HTML could not be indented properly. To fix, please:\\n\" .\n\t\t\t\t\"1. Use this->output() to output all HTML.\\n\" .\n\t\t\t\t\"2. Balance all paired tags like <td>...</td> or <div>...</div>.\\n\" .\n\t\t\t\t\"3. Use a slash at the end of unpaired tags like <img/> or <input/>.\\n\" .\n\t\t\t\t\"Thanks!\\n-->\\n\";\n\t\t}\n\t}", "title": "" }, { "docid": "f472069921e3b30604204f7670db3e9c", "score": "0.47691754", "text": "public function end_element($parser, $tag) {\r\n\t\r\n\t\tif ($tag == 'album0') { $this->_currentTag = ''; } \r\n\t\r\n\t}", "title": "" }, { "docid": "a28d3ef312c8c0be64db9e72ee6daaba", "score": "0.47637", "text": "function endElement($parser, $name)\n\t{\n // {{{\n $this->DEPTH--;\n $this->LEFT += 1;\n $this->lastTag = \"\";\n // }}}\n }", "title": "" }, { "docid": "507058a3592bfae5592a1c252f8cd1db", "score": "0.47629866", "text": "function set_wp_generate_tag_cloud($content, $tags, $args){ \r\n $count=0;\r\n $output=preg_replace_callback('(</a\\s*>)', \r\n function($match) use ($tags, &$count) {\r\n return \"<span class=\\\"tagcount\\\">\".$tags[$count++]->count.\"</span></a>\"; \r\n }\r\n , $content);\r\n \r\n return $output;\r\n}", "title": "" }, { "docid": "7bc940002dd7f954f42953ed2346ad13", "score": "0.4761005", "text": "public function end_el(&$output, $item, $depth = 0, $args = array()) {\r\n\t\t$output .= \"</option>\\n\";\r\n\t}", "title": "" }, { "docid": "fa43ecdb36a99d92b0f5f9de2da1f42b", "score": "0.47585812", "text": "function the_portfolio_tags( $before = null, $sep = ', ', $after = '' ) {\n\t\tif ( null === $before ) {\n\t\t\t$before = __('Tags: ');\n\t\t}\n\t\techo get_the_term_list( get_the_ID(), 'portfolio_tag', $before, $sep, $after );\n\t}", "title": "" }, { "docid": "555fc2a9223ec5e36a31a7373348c430", "score": "0.47573248", "text": "function replace_phptags( &$tokens ) {\n\n\tforeach ( $tokens as $key => &$token ) {\n\t\tif ( is_string( $token ) ) continue;\n\n\t\tswitch ( $token[0] ) {\n\t\tcase T_OPEN_TAG:\n\n\t\t\t// The open tag is already the right one\n\t\t\tif ( rtrim( $token[1] ) == $GLOBALS['open_tag'] ) continue;\n\n\t\t\t// Collect following whitespace\n\t\t\tpreg_match( \"/\\s*$/\", $token[1], $matches );\n\t\t\t$whitespace = $matches[0];\n\t\t\tif ( $tokens[$key+1][0] === T_WHITESPACE ) {\n\t\t\t\t$whitespace .= $tokens[$key+1][1];\n\t\t\t\tarray_splice( $tokens, $key+1, 1 );\n\t\t\t}\n\n\t\t\tif ( $GLOBALS['open_tag']==\"<?\" ) {\n\n\t\t\t\t// Short open tags have the following whitespace in a seperate token\n\t\t\t\tarray_splice( $tokens, $key, 1, array(\n\t\t\t\t\t\tarray( T_OPEN_TAG, $GLOBALS['open_tag'] ),\n\t\t\t\t\t\tarray( T_WHITESPACE, $whitespace )\n\t\t\t\t\t) );\n\n\t\t\t} else {\n\n\t\t\t\t// Long open tags have the following whitespace included in the token string\n\t\t\t\tswitch ( strlen( $whitespace ) ) {\n\t\t\t\tcase 0:\n\t\t\t\t\t// Add an additional space if no whitespace is found\n\t\t\t\t\t$whitespace = \" \";\n\t\t\t\tcase 1:\n\t\t\t\t\t// Use the one found space or newline\n\t\t\t\t\t$tokens[$key][1] = $GLOBALS['open_tag'].$whitespace;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t// Use the first space or newline for the open tag and append the rest of the whitespace as a seperate token\n\t\t\t\t\tarray_splice( $tokens, $key, 1, array(\n\t\t\t\t\t\t\tarray( T_OPEN_TAG, $GLOBALS['open_tag'].substr( $whitespace, 0, 1 ) ),\n\t\t\t\t\t\t\tarray( T_WHITESPACE, substr( $whitespace, 1 ) )\n\t\t\t\t\t\t) );\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tbreak;\n\t\tcase T_OPEN_TAG_WITH_ECHO:\n\n\t\t\t// If we use short tags we also accept the echo tags\n\t\t\tif ( $GLOBALS['open_tag']==\"<?\" ) continue;\n\n\t\t\tif ( $tokens[$key+1][0] === T_WHITESPACE ) {\n\t\t\t\t// If there is already whitespace following we only replace the open tag\n\t\t\t\tarray_splice( $tokens, $key, 1, array(\n\t\t\t\t\t\tarray( T_OPEN_TAG, $GLOBALS['open_tag'].\" \" ),\n\t\t\t\t\t\tarray( T_ECHO, \"echo\" )\n\t\t\t\t\t) );\n\t\t\t} else {\n\t\t\t\t// If there is no whitespace following we add one space\n\t\t\t\tarray_splice( $tokens, $key, 1, array(\n\t\t\t\t\t\tarray( T_OPEN_TAG, $GLOBALS['open_tag'].\" \" ),\n\t\t\t\t\t\tarray( T_ECHO, \"echo\" ),\n\t\t\t\t\t\tarray( T_WHITESPACE, \" \" )\n\t\t\t\t\t) );\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}", "title": "" }, { "docid": "7f1d4739a3322fc093b42c160e26ad3c", "score": "0.4756341", "text": "function renderEndTags($i)\n {\n $html = '';\n for ($k = $this->getMenuLevel($i); $k > $this->getMenuLevel($i + 1); $k--) {\n $html .= '</ul>' . \"\\n\";\n if (isset($this->lf[$k - 1]) && $this->lf[$k - 1]) {\n $html .= '</li>' . \"\\n\";\n $this->lf[$k - 1] = false;\n }\n }\n return $html;\n }", "title": "" }, { "docid": "4605f539c03e8c64d1b11a3cc7867276", "score": "0.47483733", "text": "function process_li(&$sample_html, $offset) {\r\n return autoclose_tag($sample_html, $offset, \"(ul|ol|li|/li|/ul|/ol)\", \r\n array(\"ul\" => \"process_ul\",\r\n \"ol\" => \"process_ol\"),\r\n \"/li\");\r\n}", "title": "" }, { "docid": "bf7352ef58c2793a0cafc0c15ddb506c", "score": "0.47422448", "text": "function end_el( &$output, $item, $depth = 0, $args = array() ) {\n $item_html = '';\n parent::end_el($item_html, $item, $depth, $args);\n\n // BS4 - Remove li tags for dropdowns\n if ( $item->menu_item_parent ) {\n $item_html = strip_tags( $item_html , '<a>' );\n }\n\n $output .= $item_html;\n }", "title": "" }, { "docid": "d5a2048470597d75a706d74aafe02077", "score": "0.47345185", "text": "function end_lvl( &$output, $depth = 0, $args = array() ) {\n\t\t$GLOBALS['comment_depth'] = $depth + 1; ?>\n\n\t\t</ul><!-- /.children -->\n\t\t\n\t<?php }", "title": "" }, { "docid": "d5aeadd86092315574c700789285361b", "score": "0.47022513", "text": "function cutText($value, $length,$dots = true)\n {\n $text = implode(array_slice(explode('<br>',wordwrap($value,$length,'<br>',false)),0,1));\n if($text!=$value && $dots) $text=$text.'...';\n return $text;\n }", "title": "" }, { "docid": "9973a23509a576e7b468c22ceb6707be", "score": "0.46705025", "text": "protected function getDots()\n {\n return $this->getDisabledTextWrapper('...');\n }", "title": "" }, { "docid": "7258616eee3a97147e238b0a930dad2c", "score": "0.46662885", "text": "function _pop_tag($close_tag) {\r\n $message = '';\r\n if (count($this->_tag_stack)>0) {\r\n list($_open_tag, $_line_no) = array_pop($this->_tag_stack);\r\n if ($close_tag == $_open_tag) {\r\n return $_open_tag;\r\n }\r\n if ($close_tag == 'if' && ($_open_tag == 'else' || $_open_tag == 'elseif' )) {\r\n return $this->_pop_tag($close_tag);\r\n }\r\n if ($close_tag == 'section' && $_open_tag == 'sectionelse') {\r\n $this->_pop_tag($close_tag);\r\n return $_open_tag;\r\n }\r\n if ($close_tag == 'foreach' && $_open_tag == 'foreachelse') {\r\n $this->_pop_tag($close_tag);\r\n return $_open_tag;\r\n }\r\n if ($_open_tag == 'else' || $_open_tag == 'elseif') {\r\n $_open_tag = 'if';\r\n } elseif ($_open_tag == 'sectionelse') {\r\n $_open_tag = 'section';\r\n } elseif ($_open_tag == 'foreachelse') {\r\n $_open_tag = 'foreach';\r\n }\r\n $message = \" expected {/$_open_tag} (opened line $_line_no).\";\r\n }\r\n $this->_syntax_error(\"mismatched tag {/$close_tag}.$message\",\r\n E_USER_ERROR, __FILE__, __LINE__);\r\n }", "title": "" } ]
ca8135cd6e76e142229e00fe374b38bc
Following all stollen from the OpenID module
[ { "docid": "534dbaf152bf5534dd9625763b6b2c1e", "score": "0.0", "text": "function femail_user_add($form_state, $account){\n $form['femail_email'] = array(\n '#type' => 'textfield',\n '#title' => t('Email')\n );\n $form['femail_uid'] = array(\n '#type' => 'hidden',\n '#value' => $account->uid\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Add an additional Email')\n );\n return $form;\n}", "title": "" } ]
[ { "docid": "7ac4b52bdb1bec962d0aaf6146b53f76", "score": "0.69145924", "text": "public function getOpenId()\n {\n }", "title": "" }, { "docid": "d6921bca7c73005b57ba5633043ed311", "score": "0.6603669", "text": "function auth_openid_dist ($login, $pass, $serveur='') {\n\n\t// il faut un login non vide ET un pass vide (sinon cela ne concerne pas OpenID)\n\tif (!strlen($login) OR strlen($pass)) return false;\n\t$auteur = false;\n\n\tif (!$l = auth_openid_retrouver_login($login)){\n\t\tif (is_openid($login)\n\t\t\tAND $idurl = nettoyer_openid($login)\n\t\t\tAND verifier_openid($idurl))\n\t\t\treturn _T(\"openid:form_login_openid_inconnu\");\n\t\treturn false;\n\t}\n\t$login = $l;\n\n\n\t// retrouver le login\n\tif (!$auteur = sql_fetsel(\"openid,statut\", \"spip_auteurs\", \"login=\" . sql_quote($login),\"\",\"\",\"\",\"\",$serveur) )\n\t\treturn false;\n\n\tif (!$idurl = $auteur['openid'])\n\t\treturn false;\n\n\tif ($auteur['statut']=='nouveau')\n\t\treturn _T('openid:form_login_statut_nouveau');\n\t\n\t// * Si l'openid existe, la procedure continue en redirigeant\n\t// vers le fournisseur d'identite. En cas d'erreur, il y a une redirection de faite\n\t// sur la page login, en cas de reussite, sur l'action controler_openid\n\t// * S'il l'openid n'existe pas, on est de retour ici, et on continue\n\t// pour d'autres methodes d'identification\n\tinclude_spip('inc/openid');\n\t$retour = auth_url_retour_login('openid', $login, url_absolue(self()));\n\t$erreurs_openid = demander_authentification_openid($idurl, $retour);\n\t// potentiellement, on arrive ici avec une erreur si l'openid donne n'existe pas\n\t// on la renvoie\n\treturn $erreurs_openid;\n}", "title": "" }, { "docid": "c918236f44fbf216ec570a9e3a7d05c5", "score": "0.6450662", "text": "function simpleid_process_openid($request) {\n global $version;\n \n $version = openid_get_version($request);\n \n switch ($request['openid.mode']) {\n case 'associate':\n simpleid_associate($request);\n return;\n case 'checkid_immediate':\n case 'checkid_setup':\n return simpleid_checkid($request);\n case 'check_authentication':\n simpleid_check_authentication($request);\n break;\n default:\n if (isset($request['openid.return_to'])) {\n // Indirect communication - send error via indirect communication.\n header_response_code('404 Bad Request');\n set_message('Invalid OpenID message.');\n page_dashboard();\n } else {\n // Direct communication\n openid_direct_error('Invalid OpenID message.');\n }\n }\n}", "title": "" }, { "docid": "13ba00a84e70cf5882ba6f135e2d266f", "score": "0.62379164", "text": "abstract public function getIdent();", "title": "" }, { "docid": "36ee706aeb35a3db53ed171d9afa129c", "score": "0.6188435", "text": "function simpleid_checkid_ok($request) {\n global $version;\n \n $message = array(\n 'openid.mode' => 'id_res',\n 'openid.op_endpoint' => simpleid_url(),\n 'openid.response_nonce' => openid_nonce()\n );\n \n if (isset($request['openid.assoc_handle'])) $message['openid.assoc_handle'] = $request['openid.assoc_handle'];\n if (isset($request['openid.identity'])) $message['openid.identity'] = $request['openid.identity'];\n if (isset($request['openid.return_to'])) $message['openid.return_to'] = $request['openid.return_to'];\n \n if (($version >= OPENID_VERSION_2) && isset($request['openid.claimed_id'])) {\n $message['openid.claimed_id'] = $request['openid.claimed_id'];\n }\n \n $message = array_merge($message, extension_invoke_all('response', TRUE, $request));\n \n log_info('OpenID authentication response: ' . log_array($message));\n return openid_indirect_message($message, $version);\n}", "title": "" }, { "docid": "be0a930a928fa5eef4cba2b232c2f63f", "score": "0.61086476", "text": "function http_persistent_handles_ident($ident) {}", "title": "" }, { "docid": "2d3aa3a01573f8c1f286f7bc99ad41a7", "score": "0.60219586", "text": "function doregisterwithopenid($data, $form) {\n\t\t$openid = trim($data['OpenIDURL']);\n\t\tSession::set(\"FormInfo.Form_RegistrationWithOpenIDForm.data\", $data);\n\n \tif(strlen($openid) == 0) {\n\t\t\tif(!is_null($form)) {\n \t\t\t$form->addErrorMessage(\"Blurb\",\n\t\t\t\t\t\"Please enter your OpenID or your i-name.\",\n\t\t\t\t\t\"bad\");\n\t\t\t}\n\t\t\treturn $this->redirectBack();\n\t\t}\n\n\n\t\t$trust_root = Director::absoluteBaseURL();\n\t\t$return_to_url = $trust_root . $this->Link('processopenidresponse');\n\n\t\t$consumer = new Auth_OpenID_Consumer(new OpenIDStorage(), new SessionWrapper());\n\n\n\t\t// No auth request means we can't begin OpenID\n\t\t$auth_request = $consumer->begin($openid);\n\t\tif(!$auth_request) {\n\t\t\tif(!is_null($form)) {\n \t\t\t$form->addErrorMessage(\"Blurb\",\n\t\t\t\t\t\"That doesn't seem to be a valid OpenID or i-name identifier. \" .\n\t\t\t\t\t\"Please try again.\",\n\t\t\t\t\t\"bad\");\n\t\t\t}\n\t\t\treturn $this->redirectBack();\n\t\t}\n\n\t\t$SQL_identity = Convert::raw2sql($auth_request->endpoint->claimed_id);\n\t\tif($member = Member::get()->filter('IdentityURL', $SQL_identity)->first()) {\n\t\t\tif(!is_null($form)) {\n \t\t\t$form->addErrorMessage(\"Blurb\",\n\t\t\t\t\t\"That OpenID or i-name is already registered. Use another one.\",\n\t\t\t\t\t\"bad\");\n\t\t\t}\n\t\t\treturn $this->redirectBack();\n\t\t}\n\n\n\t\t// Add the fields for which we wish to get the profile data\n \t$sreg_request = Auth_OpenID_SRegRequest::build(null,\n \tarray('nickname', 'fullname', 'email', 'country'));\n\n \tif($sreg_request) {\n\t\t\t$auth_request->addExtension($sreg_request);\n \t}\n\n\n\t\tif($auth_request->shouldSendRedirect()) {\n\t\t\t// For OpenID 1, send a redirect.\n\t\t\t$redirect_url = $auth_request->redirectURL($trust_root, $return_to_url);\n\n\t\t\tif(Auth_OpenID::isFailure($redirect_url)) {\n\t\t\t\tdisplayError(\"Could not redirect to server: \" .\n\t\t\t\t\t\t\t\t\t\t $redirect_url->message);\n\t\t\t} else {\n\t\t\t\treturn $this->redirect($redirect_url);\n\t\t\t}\n\n\t\t} else {\n\t\t\t// For OpenID 2, use a javascript form to send a POST request to the\n\t\t\t// server.\n\t\t\t$form_id = 'openid_message';\n\t\t\t$form_html = $auth_request->formMarkup($trust_root, $return_to_url,\tfalse, array('id' => $form_id));\n\n\t\t\tif(Auth_OpenID::isFailure($form_html)) {\n\t\t\t\tdisplayError(\"Could not redirect to server: \" .$form_html->message);\n\t\t\t} else {\n\t\t\t\t$page_contents = array(\n\t\t\t\t\t \"<html><head><title>\",\n\t\t\t\t\t \"OpenID transaction in progress\",\n\t\t\t\t\t \"</title></head>\",\n\t\t\t\t\t \"<body onload='document.getElementById(\\\"\". $form_id .\n\t\t\t\t\t \"\\\").submit()'>\",\n\t\t\t\t\t $form_html,\n\t\t\t\t\t \"<p>Click &quot;Continue&quot; to login. You are only seeing \" .\n\t\t\t\t\t \"this because you appear to have JavaScript disabled.</p>\",\n\t\t\t\t\t \"</body></html>\");\n\n\t\t\t\tprint implode(\"\\n\", $page_contents);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "492d11a1b4110fa9e0073d15b674877f", "score": "0.6003833", "text": "public function obtenerID();", "title": "" }, { "docid": "540c1698cd301ed9c6dc439c4d0ab720", "score": "0.5958717", "text": "abstract protected function _getIdentityServiceId();", "title": "" }, { "docid": "67726cf3719f0c666f56aca8e6ce4054", "score": "0.5951304", "text": "public abstract function getIdentity();", "title": "" }, { "docid": "826a7df3661b6f0402f496b3d9b3776c", "score": "0.59436095", "text": "abstract public function LowId();", "title": "" }, { "docid": "9a19410eb55a5719b51ec5ec706a9134", "score": "0.5903754", "text": "function processopenidresponse() {\n\t\t$consumer = new Auth_OpenID_Consumer(new OpenIDStorage(), new SessionWrapper());\n\n\t\t$trust_root = Director::absoluteBaseURL();\n\t\t$return_to_url = $trust_root . $this->Link('ProcessOpenIDResponse');\n\n\t\t// Complete the authentication process using the server's response.\n\t\t$response = $consumer->complete($return_to_url);\n\n\t\tif($response->status == Auth_OpenID_SUCCESS) {\n\t\t\tSession::clear(\"FormInfo.Form_RegistrationWithOpenIDForm.data\");\n\t\t\t$openid = $response->identity_url;\n\n\t\t\tif($response->endpoint->canonicalID) {\n\t\t\t\t$openid = $response->endpoint->canonicalID;\n\t\t\t}\n\n\t\t\t$sreg_resp = Auth_OpenID_SRegResponse::fromSuccessResponse($response);\n\t\t\t$sreg = $sreg_resp->contents();\n\n\t\t\t// Convert the simple registration data to the needed format\n\t\t\t// try to split fullname to get firstname and surname\n\t\t\t$data = array('IdentityURL' => $openid);\n\t\t\tif(isset($sreg['nickname']))\n\t\t\t\t$data['Nickname'] = $sreg['nickname'];\n\t\t\tif(isset($sreg['fullname'])) {\n\t\t\t\t$fullname = explode(' ', $sreg['fullname'], 2);\n\t\t\t\tif(count($fullname) == 2) {\n\t\t\t\t\t$data['FirstName'] = $fullname[0];\n\t\t\t\t\t$data['Surname'] = $fullname[1];\n\t\t\t\t} else {\n\t\t\t\t\t$data['Surname'] = $fullname[0];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(isset($sreg['country']))\n\t\t\t\t$data['Country'] = $sreg['country'];\n\t\t\tif(isset($sreg['email']))\n\t\t\t\t$data['Email'] = $sreg['email'];\n\n\t\t\tSession::set(\"FormInfo.Form_RegistrationForm.data\", $data);\n\t\t\treturn $this->redirect($this->Link('register'));\n\t\t}\n\n\n\t\t// The server returned an error message, handle it!\n\t\tif($response->status == Auth_OpenID_CANCEL) {\n\t\t\t$error_message = _t('ForumMemberProfile.CANCELLEDVERIFICATION','The verification was cancelled. Please try again.');\n\t\t} else if($response->status == Auth_OpenID_FAILURE) {\n\t\t\t$error_message = _t('ForumMemberProfile.AUTHENTICATIONFAILED','The OpenID/i-name authentication failed.');\n\t\t} else {\n\t\t\t$error_message = _t('ForumMemberProfile.UNEXPECTEDERROR','An unexpected error occured. Please try again or register without OpenID');\n\t\t}\n\n\t\t$this->RegistrationWithOpenIDForm()->addErrorMessage(\"Blurb\",\n\t\t\t$error_message, 'bad');\n\n\t\treturn $this->redirect($this->Link('registerwithopenid'));\n\t}", "title": "" }, { "docid": "b77ff8e58c34d8ca67b2de1ee6cb1252", "score": "0.58861285", "text": "function auth_openid_retrouver_login($login, $serveur=''){\n\tinclude_spip('inc/openid');\n\n\t// regarder si l'utilisateur figure deja dans la base\n\t// il faut au moins que ca ressemble un peu a un openid !\n\tif (is_openid($login)\n\t AND $idurl = nettoyer_openid($login) \t\t// si pas de protocole, mettre http://\n\t\tAND $r = sql_getfetsel(\"login\", \"spip_auteurs\", array(\"statut!=\".sql_quote(\"5poubelle\") , \"openid=\" . sql_quote($idurl)),'','','','',$serveur)) {\n\n\t\treturn $r;\n\t}\n\n\t// encore plus fort :\n\t// si le login est un login spip mais qu'on arrive la,\n\t// et qu'il a pas fournit de pass\n\t// dans ce cas, si l'utilisateur a un openid on peut tenter de la loger avec !\n\tif ($r = sql_getfetsel(\"login\", \"spip_auteurs\", array(\"statut!=\".sql_quote(\"5poubelle\") , \"login=\" . sql_quote($login). \" AND openid>''\"),'','','','',$serveur)){\n\t\treturn $r;\n\t}\n\n\t// ou par email\n\tif ($r = sql_getfetsel(\"login\", \"spip_auteurs\", array(\"statut!=\".sql_quote(\"5poubelle\") , \"email=\" . sql_quote($login). \" AND openid>''\"),'','','','',$serveur)){\n\t\treturn $r;\n\t}\n\n\n\treturn false;\n}", "title": "" }, { "docid": "7d0d067afd1ac4fe8f1e3576a4e2eee0", "score": "0.58718425", "text": "abstract public function getIdentifier();", "title": "" }, { "docid": "8facb3e78be92b43210dc7d0e81e7392", "score": "0.5859428", "text": "public function getUserIDByOpenID($openid_identifier);", "title": "" }, { "docid": "5ef6ed5a72fae433fca50b37944feefd", "score": "0.5847868", "text": "public function getOpenid()\n {\n return $this->openid;\n }", "title": "" }, { "docid": "5ef6ed5a72fae433fca50b37944feefd", "score": "0.5847868", "text": "public function getOpenid()\n {\n return $this->openid;\n }", "title": "" }, { "docid": "3190c639d5659734bebbdd4820d7db65", "score": "0.58160883", "text": "abstract public function getAuthIdentifiersName(): array;", "title": "" }, { "docid": "88bc583df2c31f61e09ee6520d6bb3b4", "score": "0.5775853", "text": "private function parseSteamID() : void\n {\n $queryParams = $this->request->getQueryParams();\n preg_match('#^https?://'.$this->getOpenIdUrl(false).'/id/([0-9]{17,25})#', array_get($queryParams,'openid_claimed_id'), $matches);\n $this->steamId = is_numeric($matches[1]) ? $matches[1] : 0;\n }", "title": "" }, { "docid": "b37e1969434cbf4a8fe77aa952c19837", "score": "0.57357675", "text": "public function track_identity()\n {\n }", "title": "" }, { "docid": "89e39e2362e5e78a3331354ea8d6147b", "score": "0.56989616", "text": "function GuessOID($oid)\n\t{\n\t\tif (strlen($oid)>16) return false;\n\t\treturn is_numeric($oid);\n\t}", "title": "" }, { "docid": "b952712e4b9951c58e77c4f67b7065ec", "score": "0.5679362", "text": "public function getAuthIdentifier()\n {\n \treturn $this->id;\n }", "title": "" }, { "docid": "201239660bea63a0503c63b26c384f24", "score": "0.5646455", "text": "public abstract function getIdentifier();", "title": "" }, { "docid": "b0f187984e04c44f17d8c5c92490d7e9", "score": "0.56421024", "text": "function getOpenIDURL() {\n\t// value.\n\n\tif (substr($_POST[ssoInpUsername], 0, 4) == \"http\") {\n\t\t$tmpuri = $_POST[ssoInpUsername];\n\t} else {\n\t\tif (in_array(strtolower(trim($_POST[ssoInpUsername])), $GLOBALS[oldusers])) {\n\t\t\tsysmsg (\"User with old OpenID logged in: \".$_POST[ssoInpUsername], 1);\n\t\t\t$tmpuri = $GLOBALS[cfg][old_openid_identifier_base].$_POST[ssoInpUsername];\n\t\t} else {\n\t\t\t$tmpuri = $GLOBALS[cfg][openid_identifier_base].$_POST[ssoInpUsername];\n\t\t}\n\t}\n\t$_SESSION[openid_identifier] = $tmpuri;\n\n\tif (empty($tmpuri)) {\n\t\tsysmsg (\"Expected an OpenID URL.\", 1);\n\t\theader('X-JSON: '.json_encode($GLOBALS[myreturn]).')');\n\t\techo json_encode($GLOBALS[myreturn]);\n\t\texit(0);\n\t}\n\treturn $tmpuri;\n}", "title": "" }, { "docid": "bf09d025e9050a110cf5d67d8c352ff7", "score": "0.5638729", "text": "public function should_track_identity()\n {\n }", "title": "" }, { "docid": "a06507dffc3ecb27df40b88e9772d4c6", "score": "0.5630706", "text": "function simpleid_associate($request) {\n global $version;\n \n log_info('OpenID association request: ' . log_array($request));\n \n $assoc_types = openid_association_types();\n $session_types = openid_session_types(is_https(), $version);\n\n // Common Request Parameters [8.1.1]\n if (($version == OPENID_VERSION_1_1) && !isset($request['openid.session_type'])) $request['openid.session_type'] = '';\n $assoc_type = $request['openid.assoc_type'];\n $session_type = $request['openid.session_type'];\n \n // Diffie-Hellman Request Parameters [8.1.2]\n $dh_modulus = (isset($request['openid.dh_modulus'])) ? $request['openid.dh_modulus'] : NULL;\n $dh_gen = (isset($request['openid.dh_gen'])) ? $request['openid.dh_gen'] : NULL;\n $dh_consumer_public = $request['openid.dh_consumer_public'];\n \n if (!isset($request['openid.session_type']) || !isset($request['openid.assoc_type'])) {\n log_error('Association failed: openid.session_type or openid.assoc_type not set');\n openid_direct_error('openid.session_type or openid.assoc_type not set');\n return;\n }\n \n // Check if the assoc_type is supported\n if (!array_key_exists($assoc_type, $assoc_types)) {\n $error = array(\n 'error_code' => 'unsupported-type',\n 'session_type' => 'DH-SHA1',\n 'assoc_type' => 'HMAC-SHA1'\n );\n log_error('Association failed: The association type is not supported by SimpleID.');\n openid_direct_error('The association type is not supported by SimpleID.', $error, $version);\n return;\n }\n // Check if the session_type is supported\n if (!array_key_exists($session_type, $session_types)) {\n $error = array(\n 'error_code' => 'unsupported-type',\n 'session_type' => 'DH-SHA1',\n 'assoc_type' => 'HMAC-SHA1'\n );\n log_error('Association failed: The session type is not supported by SimpleID.');\n openid_direct_error('The session type is not supported by SimpleID.', $error, $version);\n return;\n }\n \n if ($session_type == 'DH-SHA1' || $session_type == 'DH-SHA256') {\n if (!$dh_consumer_public) {\n log_error('Association failed: openid.dh_consumer_public not set');\n openid_direct_error('openid.dh_consumer_public not set');\n return;\n }\n }\n\n $response = _simpleid_create_association(ASSOCIATION_SHARED, $assoc_type, $session_type, $dh_modulus, $dh_gen, $dh_consumer_public);\n \n openid_direct_response(openid_direct_message($response, $version));\n}", "title": "" }, { "docid": "29de508eeea134264c12890d7b367461", "score": "0.5612241", "text": "abstract public function HighId();", "title": "" }, { "docid": "a4f7abcb67d24f543db698144ae2f350", "score": "0.5609233", "text": "public function openidredirectAction()\n {\n if(!OPENID_ACTIVE){\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::OPEN_ID_NOT_ACTIVE));\n }\n if(empty($_GET[User::INPUT_OPENID_GET_IDENTITY])){\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::MISSING_GET_IDENTITY));\n }\n\n // 2nd loop\n $authAdapter = new Zend_Auth_Adapter_OpenId();\n $result = $authAdapter->authenticate();\n if (!$result->isValid()) {\n $this->_onLoginError($result->getMessages(), $result->getCode());\n }\n\n $userTable = new User();\n $where = $userTable->getAdapter()->quoteInto(User::COLUMN_OPENID_IDENTITY . \" = ?\", $_GET[User::INPUT_OPENID_GET_IDENTITY]);\n $user = $userTable->fetchRow($where);\n if(in_array($user->status, array(\n \t\tUser::STATUS_BANNED,\n \t\tUser::STATUS_GUEST,\n \t\tUser::STATUS_PENDING,\n \t))){\n $user = null;\n }\n if(!$user){\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::NO_USER_FOR_GIVEN_IDENTITY));\n }\n\n $this->_onLoginSuccess($user);\n }", "title": "" }, { "docid": "71f96beee8d49e84cd7f118e5337a103", "score": "0.56038487", "text": "function ts3client_createIdentity(&$result) {}", "title": "" }, { "docid": "34ec37f6ee0ca23da83ed7c077daabf4", "score": "0.5575562", "text": "function get_customoid_by_id($oid_id)\r\n{\r\n\r\n if (is_numeric($oid_id))\r\n {\r\n $oid = dbFetchRow('SELECT * FROM `oids` WHERE `oid_id` = ?', array($oid_id));\r\n }\r\n if (count($oid))\r\n {\r\n return $oid;\r\n } else {\r\n return FALSE;\r\n }\r\n\r\n}", "title": "" }, { "docid": "664c488545bd7366cbbd5852f1d49a86", "score": "0.5574202", "text": "public function getOpenId()\n {\n return $this->open_id;\n }", "title": "" }, { "docid": "9ad969d88a8ed9d0ea024223213fd0e8", "score": "0.557128", "text": "function newTokenEncode($userName,$id)\n\t{\n\t\t$newTokenNum =base64_encode($userName.\"/\".$id);\n\t\treturn $newTokenNum;\n\t}", "title": "" }, { "docid": "48b1f02ef76169853cbe5e25edd8de1a", "score": "0.55704254", "text": "function openid_resp_to_user( &$resp )\n{\n $tmp_users = array();\n $user = new stdClass;\n $sreg_resp = Auth_OpenID_SRegResponse::fromSuccessResponse($resp);\n $sreg = $sreg_resp->contents();\n\n if (defined('ADD_AX_SUPPORT'))\n {\n $ax_resp = new Auth_OpenID_AX_FetchResponse();\n $ax = $ax_resp->fromSuccessResponse($resp);\n }\n\n // We'll attempt to use the user's nickname to set their username\n if ( (isset($sreg['nickname']) && !empty($sreg['nickname']) &&\n !($tmp_users['username'] = get_records('user', 'username', addslashes($sreg['nickname'])))) ||\n (defined('USE_EMAIL_FOR_USERNAME') && isset($sreg['email']) && !empty($sreg['email'])\n && !($tmp_users['username_email'] = get_records('user', 'username', $sreg['email'])))\n ) {\n $user->username = addslashes((isset($sreg['nickname']) && !empty($sreg['nickname'])) ? $sreg['nickname'] : $sreg['email']);\n } else\n if (defined('ADD_AX_SUPPORT')\n && ((($nickname = get_ax_data(AX_SCHEMA_NICKNAME, $ax))\n && !($tmp_users['username'] = get_records('user', 'username', addslashes($nickname))))\n || (defined('USE_EMAIL_FOR_USERNAME')\n && ($useremail = get_ax_data(AX_SCHEMA_EMAIL, $ax))\n && !($tmp_users['username_email'] = get_records('user', 'username', $useremail)))\n ) )\n { // better to fall-back to email? may show-up in various display blocks\n $user->username = addslashes($nickname ? $nickname : $useremail);\n }\n // Otherwise, we'll use their openid url - last resort!\n else {\n $user->username = openid_normalize_url_as_username($resp->identity_url);\n }\n\n // SREG fullname\n if (isset($sreg['fullname']) && !empty($sreg['fullname'])) {\n $name = openid_parse_full_name($sreg['fullname']);\n $user->firstname = addslashes($name['first']);\n $user->lastname = addslashes($name['last']);\n } else if (defined('ADD_AX_SUPPORT') && (get_ax_data(AX_SCHEMA_FULLNAME, $ax) || get_ax_data(AX_SCHEMA_LASTNAME, $ax)) ) {\n if (get_ax_data(AX_SCHEMA_LASTNAME, $ax)) {\n $user->firstname = addslashes(get_ax_data(AX_SCHEMA_FIRSTNAME, $ax));\n $user->lastname = addslashes(get_ax_data(AX_SCHEMA_LASTNAME, $ax));\n } else { // fullname\n $name = openid_parse_full_name(get_ax_data(AX_SCHEMA_FULLNAME, $ax));\n $user->firstname = addslashes($name['first']);\n $user->lastname = addslashes($name['last']);\n }\n }\n\n if (!empty($user->lastname)) {\n $tmp_users['fullname'] = get_records_select('user', \"firstname = '\".$user->firstname.\"' AND lastname = '\".$user->lastname.\"'\");\n }\n\n // SREG email\n if (!empty($sreg['email']) && !($tmp_users['email'] = get_records('user', 'email', $sreg['email']))) {\n $user->email = addslashes($sreg['email']);\n } else if (defined('ADD_AX_SUPPORT') && ($useremail = get_ax_data(AX_SCHEMA_EMAIL, $ax))\n && !($tmp_users['email'] = get_records('user', 'email', $useremail)) ) {\n $user->email = addslashes($useremail);\n }\n\n // SREG country\n $country = '';\n if (isset($sreg['country']) && !empty($sreg['country'])) {\n $country = $sreg['country'];\n }\n else if (defined('ADD_AX_SUPPORT') && get_ax_data(AX_SCHEMA_COUNTRY, $ax)) {\n $country = get_ax_data(AX_SCHEMA_COUNTRY, $ax);\n }\n\n if (!empty($country)) {\n $country_code = strtoupper($country);\n $countries = get_list_of_countries();\n\n if (strlen($country) != 2 || !isset($countries[$country_code])) {\n $countries_keys = array_keys($countries);\n $countries_vals = array_values($countries);\n $country_code = array_search($country, $countries_vals);\n\n if ($country_code > 0) {\n $country_code = $countries_keys[$country_code];\n } else {\n $country_code = '';\n }\n }\n\n if (!empty($country_code)) {\n $user->country = $country_code;\n }\n }\n\n /* We're currently not attempting to get language and timezone values\n // SREG language\n if (isset($sreg['language']) && !empty($sreg['language'])) {\n }\n\n // SREG timezone\n if (isset($sreg['timezone']) && !empty($sreg['timezone'])) {\n }\n */\n\n $config = get_config('auth/openid');\n //error_log(\"/auth/openid/locallib.php::auth/openid::config=...\");\n //err_dump($config);\n\n //error_log(\"/auth/openid/locallib.php::openid_resp_to_user() - check for user matching ...\");\n //err_dump($user);\n\n // Map OpenID fields to whether field MUST be unique\n // TBD: make unique fields configurable im OpenID: auth_config_users.html\n // Keys must match keys in tmp_users[] array - set above.\n $openid_fields = array('email' => 1, // Email field must be unique\n 'fullname' => 0, // ok duplicate fullnames\n 'username' => 0, // ok dup username w/OpenID\n // creates unique username\n 'username_email' => 1 // TBD: No dup username as OpenID email\n );\n foreach($openid_fields as $openid_field => $field_unique) {\n $match_array = str_word_count($config->auth_openid_match_fields, 1, '_');\n $num = !empty($match_array) // && in_array($openid_field, $match_array)\n ? 1 : 0;\n if ($field_unique && !empty($tmp_users[$openid_field]) &&\n count($tmp_users[$openid_field]) > $num)\n {\n //error_log(\"/auth/openid/locallib.php::openid_resp_to_user() - multiple matches on count(tmp_users[{$openid_field}])=\".count($tmp_users[$openid_field]).\" ...\");\n //err_dump($tmp_users[$openid_field]);\n //error_log(\"> match_array=...\");\n //err_dump($match_array);\n return false;\n }\n }\n $matching_user = null;\n // check tmp_users[] matches for valid existing user,\n // return false if conflicts between matching fields\n if (!empty($config->auth_openid_match_fields)) {\n $openid_match_fields = explode(',', $config->auth_openid_match_fields);\n foreach ($openid_match_fields as $match_field) {\n $match_field = trim($match_field);\n if (!empty($tmp_users[$match_field]) &&\n count($tmp_users[$match_field]) == 1)\n {\n if (!$matching_user) {\n $matching_user = reset($tmp_users[$match_field]);\n } else if ($openid_fields[$match_field] &&\n $matching_user->id != reset($tmp_users[$match_field])->id)\n { // unique field matches different user!\n return false;\n }\n }\n }\n }\n if (!empty($matching_user)) {\n merge_user_fields($matching_user, $user);\n //error_log( \"openid_resp_to_user() - merged matching user: \");\n //err_dump($matching_user);\n return $matching_user;\n }\n return $user;\n}", "title": "" }, { "docid": "ae94b94c6df0e77ec6933562883457a6", "score": "0.5559421", "text": "public abstract function getIdentity(array $params);", "title": "" }, { "docid": "ccc852643f449dcea0ef6ea703153d47", "score": "0.5555052", "text": "public function getAuthIdentifierName(){\n return 'id';\n }", "title": "" }, { "docid": "86968e65c34d9da1299d2cc4949351f0", "score": "0.5553881", "text": "function getID();", "title": "" }, { "docid": "77b4bfc0adaf8a599a0902e8180ab51e", "score": "0.5546758", "text": "function enameToOid($ename) {\n\n $query = \"SELECT master.oid FROM coredata_read.coreUser_master AS master \n INNER JOIN coredata_read.coreUser_name AS name ON name.oid = master.oid \n WHERE name.nameValue=:ename AND name.nameType='ename' AND userStatus='Active'\";\n \n $bindV = array(\"ename\"=>$ename);\n $result = query_db($query,$bindV,\"false\",true);\n \n return addslashes($result['oid']);\n\n}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5544211", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5544211", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5544211", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5544211", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5544211", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5543666", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5542832", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "8db2da7c7c71e72e603c42ae784ecb5e", "score": "0.5542832", "text": "public function getIdentifier() {}", "title": "" }, { "docid": "0808c7163463157f4be5fea352a9c847", "score": "0.5535963", "text": "function getIdentifier();", "title": "" }, { "docid": "0808c7163463157f4be5fea352a9c847", "score": "0.5535963", "text": "function getIdentifier();", "title": "" }, { "docid": "23caeb63e1772a01fca886742a4343c6", "score": "0.5534724", "text": "function string_to_oid($string)\n{\n $oid = strlen($string);\n\n for($i = 0; $i != strlen($string); $i++)\n {\n $oid .= \".\".ord($string[$i]);\n }\n\n return $oid;\n}", "title": "" }, { "docid": "40c1beb3f26938007a2d6153a0ff219c", "score": "0.55193114", "text": "public function getNativeIdMethod();", "title": "" }, { "docid": "8ceb92cc09a8de8a89a3722baff2a341", "score": "0.55175954", "text": "function getIdentifier() ;", "title": "" }, { "docid": "8ceb92cc09a8de8a89a3722baff2a341", "score": "0.55175954", "text": "function getIdentifier() ;", "title": "" }, { "docid": "8ceb92cc09a8de8a89a3722baff2a341", "score": "0.5515713", "text": "function getIdentifier() ;", "title": "" }, { "docid": "d97e691c26b172a11971ded3f9ca96ac", "score": "0.5511878", "text": "public function determineId() {}", "title": "" }, { "docid": "f117e230f1eb95a4e329e622bc8c33b7", "score": "0.5505018", "text": "function hook_uuid_id_uri_data($data) {\n}", "title": "" }, { "docid": "5497308f9fd4fb511142bc94cd45edf9", "score": "0.5486892", "text": "function logon($params) {\n\t\tglobal $db_prefix, $settings;\n\n\t\t// step 1: redirect to the openid provider of choice\n\n\t\t// do we have a (valid) openid URL?\n\t\tif (isset($params['openid_url']) && isURL($params['openid_url'])) {\n\t\t\t// load the openid class, and redirect to the openid provider\n\t\t\trequire_once(PATH_INCLUDES.\"authentication/class.openid.php\");\n\t\t\t$openid = new SimpleOpenID;\n\t\t\t$openid->SetIdentity($params['openid_url']);\n\t\t\t$openid->SetApprovedURL($settings['siteurl'].\"setuser.php\");\n\t\t\t$openid->SetTrustRoot($settings['siteurl']);\n\t\t\t$server_url = $openid->GetOpenIDServer();\n\t\t\tif ($server_url) {\n\t\t\t\tredirect($openid->GetRedirectURL() , \"script\");\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\n\t\t// step 2: validate the openid provider return information\n\n\t\tif (isset($params['openid_mode'])) {\n\t\t\t// handle openid login\n\t\t\trequire_once(PATH_INCLUDES.\"authentication/class.openid.php\");\n\t\t\t$openid = new SimpleOpenID;\n\t\t\t$openid->SetIdentity(urldecode($_GET['openid_identity']));\n\t\t\tif ($openid->ValidateWithServer()) {\n\t\t\t\t$openid_url = strtolower($openid->OpenID_Standarize($_GET['openid_identity']));\n\t\t\t\t$result = dbquery(\"SELECT * FROM \".$db_prefix.\"users WHERE user_openid_url='\".$openid_url.\"'\");\n\t\t\t\tif (dbrows($result) == 0) {\n\t\t\t\t\t// not found, display an error message\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\t// retrieve the record and store it for retrieval\n\t\t\t\t\t$this->userrecord = dbarray($result);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttrigger_error($openid->GetError());\n\t\t\t\texit;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "209c0131c7a0a8c82097ac462a76ad3e", "score": "0.5469208", "text": "abstract public function get_id();", "title": "" }, { "docid": "a6ac902a769d12ace8c50effc2ae5f6f", "score": "0.5462623", "text": "public function bindOpenID($uid, $openid_identifier);", "title": "" }, { "docid": "ca427bd5cceab53461373dba361b5492", "score": "0.5462426", "text": "public function create_sid()\n {\n }", "title": "" }, { "docid": "3761d59e166ae5b6f6c87d31c72124c8", "score": "0.5459913", "text": "public function getIdentifier()\n {\n }", "title": "" }, { "docid": "42390c8a8095b91f384aa97664d0570b", "score": "0.54583126", "text": "public function testUpdateIdentity()\n {\n }", "title": "" }, { "docid": "58bed41a30ed5c07299df9a861017dc7", "score": "0.5455006", "text": "function ts3client_identityStringToUniqueIdentifier($identityString, &$result) {}", "title": "" }, { "docid": "2836ffd1c10edac01c9f1072508555a7", "score": "0.54416436", "text": "abstract public function objId();", "title": "" }, { "docid": "1eb824474d81254341c983b26e91d5fe", "score": "0.54405826", "text": "public function testAuthenticationsInweboIdGet()\n {\n }", "title": "" }, { "docid": "f9054d591ee12dc31b0e1762d1d28da7", "score": "0.54317665", "text": "public function openidloginAction()\n {\n if(!OPENID_ACTIVE){\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::OPEN_ID_NOT_ACTIVE));\n }\n if(empty($_POST[User::INPUT_OPENID_IDENTITY ])){\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::MISSING_POST_IDENTITY));\n }\n\n // 1st loop - will not return after authenticate() if everything went well\n $authAdapter = new Zend_Auth_Adapter_OpenId($_POST[User::INPUT_OPENID_IDENTITY]);\n $result = $authAdapter->authenticate();\n\n // This should only happen in case of bad OpenId identity:\n $messages = $result->getMessages();\n $code = $result->getCode();\n $message = \"OpenId authentication failed. Code : $code\".PHP_EOL;\n $message .= implode($messages, ', ');\n Globals::getLogger()->security($message, Zend_Log::NOTICE);\n\n $this->_helper->redirectToRoute('usererror',array('errorCode'=>User::BAD_IDENTITY));\n }", "title": "" }, { "docid": "698612062d0af29f8407d7482e0cff58", "score": "0.5429618", "text": "public function getUniqueObjectIdentifier();", "title": "" }, { "docid": "302529682c6728d2130d412e30734528", "score": "0.54268575", "text": "public static function AuthID()\r\n {\r\n if (!isset($_SESSION[\"ed\"])) {\r\n (new CodeFlirt\\Handlers)->trackUser();\r\n echo '<meta http-equiv=\"refresh\" content=\"0; url=' . (new CodeFlirt\\Handlers)->path(\"login\") . '\">';\r\n return false;\r\n }\r\n if (isset($_SESSION[\"ed\"]) && !empty($_SESSION[\"ed\"])) {\r\n //Import from Encryption\r\n $Encryption = new Encryption();\r\n\r\n $user_public_key = $_SESSION[\"ed\"];\r\n\r\n //Here _Profilepage_ is a decryption key\r\n $user_email_address = md5($Encryption->decrypt($user_public_key, \"_ProfilePage_\"));\r\n\r\n $user_private_key = (new CodeFlirt\\Fetch)->data('users', 'user_private_key', \"user_email_address='$user_email_address'\");\r\n\r\n if ($user_private_key == false) {\r\n echo '<meta http-equiv=\"refresh\" content=\"0; url=' . (new CodeFlirt\\Handlers)->path(\"login\") . '\">';\r\n return;\r\n } else {\r\n return $user_private_key;\r\n }\r\n } else {\r\n echo '<meta http-equiv=\"refresh\" content=\"0; url=' . (new CodeFlirt\\Handlers)->path(\"login\") . '\">';\r\n return;\r\n }\r\n }", "title": "" }, { "docid": "af406b356fb006b06bf25fc723242b5b", "score": "0.5425801", "text": "public function checkAlternativeIdMethods() {}", "title": "" }, { "docid": "73b9443e7d450f9eeaada9f6ff48b3d6", "score": "0.5424192", "text": "public function getObjectIdent() {}", "title": "" }, { "docid": "73b9443e7d450f9eeaada9f6ff48b3d6", "score": "0.5424192", "text": "public function getObjectIdent() {}", "title": "" }, { "docid": "86d3a30e0f2c414c1c14087956ffbf39", "score": "0.5421362", "text": "public function getAuthIdentifierName(): string;", "title": "" }, { "docid": "38db546fcfa70e1728ac6992e7b70df1", "score": "0.54211783", "text": "public function getAuthIdentifier();", "title": "" }, { "docid": "f9a50ee32ebb25372e1e58fe0d7877b7", "score": "0.5419242", "text": "public function getIdentity();", "title": "" }, { "docid": "b15368a763288798f8c1c23246410c1a", "score": "0.5417335", "text": "public function obtenerId() {}", "title": "" }, { "docid": "3430b1b67e94e256371be66f323bdb79", "score": "0.54148734", "text": "function simpleid_checkid_error($request, $immediate = false) {\n global $version;\n \n $message = array();\n if ($immediate) {\n if ($version >= OPENID_VERSION_2) {\n $message['openid.mode'] = 'setup_needed';\n } else {\n $message['openid.mode'] = 'id_res';\n }\n } else {\n $message['openid.mode'] = 'cancel';\n }\n \n $message = array_merge($message, extension_invoke_all('response', FALSE, $request));\n \n log_info('OpenID authentication response: ' . log_array($message));\n return openid_indirect_message($message, $version);\n}", "title": "" }, { "docid": "6d3bf98e1d710c1fb7bd8853e5a2b0ef", "score": "0.5404616", "text": "function simpleid_checkid_login_required($request) {\n global $version;\n \n if ($version >= OPENID_VERSION_2) {\n $message = array('openid.mode' => 'setup_needed');\n } else { \n $message = array(\n 'openid.mode' => 'id_res',\n 'openid.user_setup_url' => simpleid_url('login', 'destination=continue&s=' . rawurlencode(pickle($request)))\n );\n }\n \n $message = array_merge($message, extension_invoke_all('response', FALSE, $request));\n \n log_info('OpenID authentication response: ' . log_array($message));\n return openid_indirect_message($message, $version);\n}", "title": "" }, { "docid": "2e5843ee7da63a380593002b40658a26", "score": "0.53963035", "text": "function parse_id($id) {\n\n }", "title": "" }, { "docid": "69c930b85526dc2118a0632f8f9a5c03", "score": "0.53913075", "text": "protected function get_iauthority()\n {\n }", "title": "" }, { "docid": "69c930b85526dc2118a0632f8f9a5c03", "score": "0.53913075", "text": "protected function get_iauthority()\n {\n }", "title": "" }, { "docid": "45fb42c8fda82f277c0f1b497d6d1230", "score": "0.5387363", "text": "public function GetId () ;", "title": "" }, { "docid": "9add3e590b206d4710519f99860788d7", "score": "0.5383615", "text": "function auth($mode=\"\"){\n\t\t\n\t\t$openid = new OPENID();\n\t\t$account = new ACCOUNT();\n\t\t$url = new URL();\n\t\t\n\t\t//ログイン処理\n\t\tif($mode=='login'){\n\t\t\t$this->setLogin($_REQUEST['id'],$_REQUEST['pw']);\n\t\t}\n\t\t//ログアウト\n\t\telse if($mode=='logout'){\n\t\t\t$this->delSessionData();\n\t\t\t$this->setLogout($_REQUEST['id'],$_REQUEST['pw']);\n\t\t\t\n\t\t}\n\t\t//アカウント登録\n\t\telse if($mode=='regist'){\n\t\t\t\n\t\t\t$account->new_regist($_REQUEST['action'],\"\",$_REQUEST['data']);\n\t\t}\n\t\t//Open-ID認証\n\t\telse if($mode=='openid'){\n\t\t\t\n\t\t\t//認証サイトからの返信\n\t\t\tif($_REQUEST['action']){\n\t\t\t\t\n\t\t\t\t//セッションID無し(期限切れ等)\n\t\t\t\tif(!$_REQUEST['session_id'] || $_REQUEST['session_id'] != session_id()){\n\t\t\t\t\t//リダイレクト処理\n\t\t\t\t\theader(\"Location: \".$url->getUrl());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//認証成功(管理専用※返答値確認)\n\t\t\t\tif($_REQUEST['check']){\n\t\t\t\t\t$keys = array_keys($_REQUEST);\n\t\t\t\t\t$a=\"\";\n\t\t\t\t\tfor($i=0;$i<count($keys);$i++){\n\t\t\t\t\t\t$a.= \"<h4 style='color:red;'>\".$keys[$i].\"</h4>\\n\".$_REQUEST[$keys[$i]].\"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t//$b = \"--\\n\".file_get_contents($_REQUEST['openid_claimed_id']).\"&\".\"\\n--\\n\";\n\t\t\t\t\t$b = \"\";\n\t\t\t\t\t\n\t\t\t\t\t$GLOBALS['view']['html'] = \"<pre>\".$a.$b.\"</pre>\";\n\t\t\t\t\t//echo \"OK<br>\\n\";\n\t\t\t\t\t$template = new template();\n\t\t\t\t\techo $template->file2HTML($GLOBALS['sys']['system'].\"/\".$GLOBALS['sys']['common'].\"/tpl/common.html\");\n\t\t\t\t\texit();\n\t\t\t\t}\n\t\t\t\t//認証成功->ログイン\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t//openidのIDを取得\n\t\t\t\t\t$id = $openid->getReturnData($_REQUEST['service'],\"id\");\n\t\t\t\t\t$mail = $openid->getReturnData($_REQUEST['service'],\"mail\");\n\t\t\t\t\t//die($_REQUEST['service'].\" / \".$id.\" / \".$mail);\n\t\t\t\t\t\n\t\t\t\t\t//登録済みチェック\n\t\t\t\t\tif(!$account->checkAccountID($_REQUEST['service'],$id,\"\")){\n\t\t\t\t\t\t//未登録の場合(新規登録 id:アカウント pw:null openid:[google,facebook,twitter])\n\t\t\t\t\t\t//$sys_common->regist($_REQUEST['service'],$id,'','',$mail);\n\t\t\t\t\t\t$account->setAccount(array(\"0\",$_REQUEST['service'],\"\",$id,\"\",\"\",$mail));\n\t\t\t\t\t}\n\t\t\t\t\t//セッション情報の登録\n\t\t\t\t\t$_SESSION['id'] = $id;\n\t\t\t\t\t$_SESSION['service'] = $_REQUEST['service'];\n\t\t\t\t\t$_SESSION['mail'] = $mail;\n\t\t\t\t\t\n\t\t\t\t\t//cookie-time処理\n\t\t\t\t\tif($_REQUEST['cookie_time']){\n\t\t\t\t\t\t$CookieInfo = session_get_cookie_params();\n\t\t\t\t\t\tsetcookie( session_name(), session_id(), time() + $_REQUEST['cookie_time'] , $CookieInfo['path'] );\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//リダイレクト処理\n\t\t\t\t\theader(\"Location: \".$url->getUrl());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t//認証サイトへ遷移\n\t\t\telse{\n\t\t\t\t$openid->services($_REQUEST['service'],$_REQUEST['check']);\n\t\t\t}\n\t\t}\n\t\t//認証済み\n\t\telse if(isset($_SESSION['id']) && $_SESSION['id'] && $_COOKIE['PHPSESSID']){\n\t\t\t\n\t\t\tif(!$_REQUEST['p'] && $GLOBALS['sys']['config']['default_plugin']){\n\t\t\t\t$_REQUEST['p'] = $GLOBALS['sys']['config']['default_plugin'];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t//未認証(ログイン前)\n\t\telse{\n\t\t\t$_REQUEST['m'] = \"login\";\n\t\t}\n\t}", "title": "" }, { "docid": "0a1add1be3f3815fadf4f2ecbb0c981d", "score": "0.5367962", "text": "function decode_id ($id_encoded) {\n return base64_decode($id_encoded) / config('secure.tokenNumber');\n }", "title": "" }, { "docid": "e9eb7cd5f3787cec324ccd5f1b638148", "score": "0.5364954", "text": "function get_short_id()\n {\n // E.g. 04622F2089E037A5 => 89E037A5\n return enigma_key::format_id($this->id);\n }", "title": "" }, { "docid": "aef4bb12db4a10a839efb0bf8c4a8ad2", "score": "0.53632486", "text": "public static abstract function getIdentifier() : string;", "title": "" }, { "docid": "0f2042e80e8de7604e00b2e41b804319", "score": "0.5337373", "text": "public function identifierWorkaround()\n {\n $this->isUniqueIdentifier = $this->isUniqueIdentifer;\n }", "title": "" }, { "docid": "00a3ddc2367711ed97f241976da9571e", "score": "0.533595", "text": "function parse_oid($string)\n{\n $result = array();\n while (true)\n {\n $matches = array();\n $match_count = preg_match('/^(?:((?:[^\\\\\\\\\\\\. \"]|(?:\\\\\\\\.))+)|(?:\"((?:[^\\\\\\\\\"]|(?:\\\\\\\\.))+)\"))((?:[\\\\. ])|$)/', $string, $matches);\n if (null !== $match_count && $match_count > 0)\n {\n // [1] = unquoted, [2] = quoted\n $value = strlen($matches[1]) > 0 ? $matches[1] : $matches[2];\n $result[] = stripslashes($value);\n\n // Are we expecting any more parts?\n if (strlen($matches[3]) > 0)\n {\n // I do this (vs keeping track of offset) to use ^ in regex\n $string = substr($string, strlen($matches[0]));\n }\n else\n {\n $ret['value'] = array_pop($result);\n $ret['oid'] = $result;\n return $ret;\n }\n }\n else\n {\n // All or nothing\n return null;\n }\n } // while\n}", "title": "" }, { "docid": "46099fe07aa7534f648cd4d9df09b10d", "score": "0.5331672", "text": "function getNewId();", "title": "" }, { "docid": "ca7df2c8cb104542692026f732f710ad", "score": "0.5331184", "text": "abstract public function identifier(): string;", "title": "" }, { "docid": "5b8da5978a8df6fe2e7379f0b7faea73", "score": "0.53299034", "text": "public function getIdentifier(): string;", "title": "" }, { "docid": "5b8da5978a8df6fe2e7379f0b7faea73", "score": "0.53299034", "text": "public function getIdentifier(): string;", "title": "" }, { "docid": "bfbbec0a45e565de33456e07d383e816", "score": "0.5327379", "text": "public function getAuthIdentifierName()\n {\n return \"id\";\n }", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "0f0a4c537cd0fcffefce4e9ad939ef2e", "score": "0.53157604", "text": "public function getIdentifier();", "title": "" }, { "docid": "6f0bf6efc0d09c89d45079dc19ffd5d8", "score": "0.5310277", "text": "public function fetch_the_id() {}", "title": "" }, { "docid": "5f6d84155a5692242c1b0efd15ea3db7", "score": "0.53041846", "text": "public function getCombinedIdentifier() {}", "title": "" } ]
66a07eb85a12bfa5ff532d22c3cb8f03
[Output Only] Serverdefined URL for this resource. Generated from protobuf field optional string self_link = 456214797;
[ { "docid": "908f5ad50ef9de74b107544c3f00e31c", "score": "0.5752808", "text": "public function setSelfLink($var)\n {\n GPBUtil::checkString($var, True);\n $this->self_link = $var;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "383b8241120592ee4efea6e135dbf030", "score": "0.74211544", "text": "public function getSelfUrl(){\r\n \t\t\r\n \t\t/**\r\n \t\t * self url\r\n \t\t */\r\n \t\treturn $this->self_url;\r\n \t\t\r\n \t}", "title": "" }, { "docid": "f5697d9e1d06ff0e7b53bf6a6be3ecbf", "score": "0.7293517", "text": "public function getSelfLink()\n {\n return $this->self_link;\n }", "title": "" }, { "docid": "7a1584212999d02ded17c64bbd5d45bb", "score": "0.7219728", "text": "public function getSelfLink()\n {\n return isset($this->self_link) ? $this->self_link : '';\n }", "title": "" }, { "docid": "7a1584212999d02ded17c64bbd5d45bb", "score": "0.7219728", "text": "public function getSelfLink()\n {\n return isset($this->self_link) ? $this->self_link : '';\n }", "title": "" }, { "docid": "7a1584212999d02ded17c64bbd5d45bb", "score": "0.7219728", "text": "public function getSelfLink()\n {\n return isset($this->self_link) ? $this->self_link : '';\n }", "title": "" }, { "docid": "7a1584212999d02ded17c64bbd5d45bb", "score": "0.7219728", "text": "public function getSelfLink()\n {\n return isset($this->self_link) ? $this->self_link : '';\n }", "title": "" }, { "docid": "d1a9700483179b67310f367dd7d4fd24", "score": "0.6621171", "text": "public function getSelfSubUrl($resource = null);", "title": "" }, { "docid": "10f5bab8629b362e0de1ac8c5052efde", "score": "0.6435374", "text": "function getSelfUrl() {\n\t\t//return \"$protocol://\" . $_SERVER[\"HTTP_HOST\"] . $_SERVER[\"PHP_SELF\"];\n\t\treturn \"http://dev.gohoody.com/ask1/computer-and-electronics-gta/\";\n\t}", "title": "" }, { "docid": "4cca4be91df53c49a77fbb55632f944c", "score": "0.6428399", "text": "public function getSelfLinkWithId()\n {\n return isset($this->self_link_with_id) ? $this->self_link_with_id : '';\n }", "title": "" }, { "docid": "dff0989cf9723ca38817648193e793a6", "score": "0.63646626", "text": "public function setSelfUrl(){\r\n \t\t\r\n \t\t/**\r\n \t\t * global variables \r\n \t\t */\r\n \t\tglobal $module;\r\n \t\t$wpcms_path = $GLOBALS['server_info']['wpcms_path'];\r\n \t\t\r\n \t\tif ($this->access_name == 'admin' || $this->access_name == 'settings' || $this->access_name == 'agency' || $this->access_name == 'site_admin'){\r\n\r\n \t\t\t$this->self_url = $wpcms_path.'/wpform/'.$this->access_name.\"/\".$module;\r\n \t\t}else{\r\n\r\n \t\t\t$this->self_url = $wpcms_path.'/wpform/'.$module;\r\n \t\t}\r\n \t\t\r\n \t}", "title": "" }, { "docid": "6ef4cb955859c8a41184fb22bda7d200", "score": "0.63021076", "text": "public function getServerLink() {\n if (!$this->configuration) {\n return '';\n }\n $host = $this->configuration['host'];\n if ($host == 'localhost' && !empty($_SERVER['SERVER_NAME'])) {\n $host = $_SERVER['SERVER_NAME'];\n }\n $url = $this->configuration['scheme'] . '://' . $host . ':' . $this->configuration['port'] . $this->configuration['path'];\n return $url;\n }", "title": "" }, { "docid": "2e49f61e33c79b8e7a73772f10b934a0", "score": "0.6274709", "text": "public function getSelfSubLink($resource);", "title": "" }, { "docid": "25572cc95e2f855ce383123eff91754c", "score": "0.6270893", "text": "public function linkURL() {\n\t\treturn $this->linkURL;\n\t}", "title": "" }, { "docid": "dca9039f2f4014a56bd3f1d256bf44cd", "score": "0.6269622", "text": "public function getLink(): string\n {\n return $this->link;\n }", "title": "" }, { "docid": "bf0cdd4d0e67dd126f9c6c23977b40c6", "score": "0.6226305", "text": "function getLink() { return $this->_link; }", "title": "" }, { "docid": "851bbb43ea3181ffb49ceaed5f9c9bc1", "score": "0.6205447", "text": "function selfURL($server_only=false)\n{\n\tif(!isset($_SERVER['REQUEST_URI']))\n\t{\n\t\t$serverrequri = $_SERVER['PHP_SELF'];\n\t}\n\telse\n\t{\n\t\t$serverrequri = $_SERVER['REQUEST_URI'];\n\t}\n\t$s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\";\n\t$protocol = strleft(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\").$s;\n\t$port = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n\t$return = $protocol.\"://\".$_SERVER['SERVER_NAME'].$port;\n if ($server_only == false)\n {\n $return.= $serverrequri;\n }\n return $return;\n}", "title": "" }, { "docid": "378b5450fd9ece4a7c54b934fc7c597f", "score": "0.61979574", "text": "function selfURL() { \n $s = empty($_SERVER[\"HTTPS\"]) ? '' : ($_SERVER[\"HTTPS\"] == \"on\") ? \"s\" : \"\";\n $protocol = strleft(strtolower($_SERVER[\"SERVER_PROTOCOL\"]), \"/\").$s;\n $port = ($_SERVER[\"SERVER_PORT\"] == \"80\") ? \"\" : (\":\".$_SERVER[\"SERVER_PORT\"]);\n return $protocol.\"://\".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; \n}", "title": "" }, { "docid": "fa6a73458bc6e446abf4f13eecac3b0e", "score": "0.616745", "text": "final public function linkUrl()\n {\n return $this->linkUrl;\n }", "title": "" }, { "docid": "97cc5f2a99afe996a0af7678716a9f7f", "score": "0.6133197", "text": "public function getLink()\n\t{\n return $this->link;\n\t}", "title": "" }, { "docid": "c83d855b49131d918e0e7f391da3a27a", "score": "0.6132449", "text": "public function getLink(){\n return $this->link;\n }", "title": "" }, { "docid": "5fe01dba1d1247c6a5b6023d1a5db5c9", "score": "0.6121558", "text": "function selfURL(){\r\n $pageURL = 'http';\r\n if ($_SERVER[\"HTTPS\"] == \"on\") {$pageURL .= \"s\";}\r\n $pageURL .= \"://\";\r\n if ($_SERVER[\"SERVER_PORT\"] != \"80\") {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].\":\".$_SERVER[\"SERVER_PORT\"].$_SERVER[\"REQUEST_URI\"];\r\n } else {\r\n $pageURL .= $_SERVER[\"SERVER_NAME\"].$_SERVER[\"REQUEST_URI\"];\r\n }\r\n return $pageURL; \r\n}", "title": "" }, { "docid": "50b7a1bb2182e7ba2ab044291acc149b", "score": "0.61074096", "text": "public function getURL(): string\n {\n return $this->URL ?? '';\n }", "title": "" }, { "docid": "8aeb2f301455ccd85ea48c786327ff94", "score": "0.609561", "text": "public function getURL() {\n return \"\";\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "1c75425fcbf7acccd949af8fe78d091d", "score": "0.6095194", "text": "public function getLink()\n {\n return $this->link;\n }", "title": "" }, { "docid": "16f9a651901d6e398293e31ae3eecd24", "score": "0.60294807", "text": "public function getLink();", "title": "" }, { "docid": "16f9a651901d6e398293e31ae3eecd24", "score": "0.60294807", "text": "public function getLink();", "title": "" }, { "docid": "3ae10fc84220dca465c2485e683e8854", "score": "0.6026542", "text": "public static function self() {\n\t\t$s = empty( $_SERVER['HTTPS'] ) ? '' : ( ($_SERVER['HTTPS'] == 'on') ? 's' : '' );\n\t\t$port = ($_SERVER['SERVER_PORT'] == 80 || $_SERVER['SERVER_PORT'] == 443) ? '' : (':' . $_SERVER['SERVER_PORT']);\n\t\t\n\t\treturn 'http' . $s . '://' . $_SERVER['SERVER_NAME'] . ( !empty( $port ) ? ':' . $port : '' ) . $_SERVER['REQUEST_URI'];\n\t}", "title": "" }, { "docid": "c020823d30bb1a3b727132a5c7c64c67", "score": "0.6017744", "text": "public function getLink()\n\t{\n\t\treturn $this->link;\n\t}", "title": "" }, { "docid": "8339afdfa54ed94f6fdf708666f5e692", "score": "0.59978557", "text": "public function getLink()\n {\n return $this->getField('link');\n }", "title": "" }, { "docid": "bd43147fecbdc378b29b0e16ec424506", "score": "0.598952", "text": "public function Link()\n {\n return $this->owner->getFullProtocol() . $this->owner->Domain;\n }", "title": "" }, { "docid": "2494559477f2b0927425782261e6d562", "score": "0.5988928", "text": "public function link()\n {\n return $this->link;\n }", "title": "" }, { "docid": "c429a81bbc2ac4f4d76d489c1dd19a85", "score": "0.59838545", "text": "public function getLink()\n {\n\n return $this->link;\n }", "title": "" }, { "docid": "16e09667aee07049720f23b4be4ecbc5", "score": "0.5981298", "text": "public function getLink () {\n\t\treturn $this->Link;\n\t}", "title": "" }, { "docid": "16154af4e992fe6455d202844d81cc4d", "score": "0.59691525", "text": "public function get_link() {\n\n\t\treturn $this->link;\n\t}", "title": "" }, { "docid": "9c21d6257ed57434755c30111334a916", "score": "0.59614354", "text": "public function getLink() {\n\t\treturn $this->link;\n\t}", "title": "" }, { "docid": "c790814a8dba7f736f5e8bd5b42ce7f0", "score": "0.59500897", "text": "public function URL()\n {\n return $this->mURL;\n }", "title": "" }, { "docid": "d5a433734822be8022ed1d7cf74e186e", "score": "0.59462774", "text": "function getLink() {\n\t\treturn $this->_link;\n\t}", "title": "" }, { "docid": "07f58b32c4f086522f3a0caed6807e21", "score": "0.5934915", "text": "public function getLink()\r\n {\r\n return Url::base(false) . '/' . $this->getFilePath();\r\n }", "title": "" }, { "docid": "6ab2b46fb533141cd0acc0bddfe8abca", "score": "0.5928279", "text": "public function getReferralLinkAttribute()\n {\n return $this->referral_link = getenv('WEBSITE_URL') . \"/register/ref/{$this->referral_token}\";\n }", "title": "" }, { "docid": "c5fa3869a39b86d7b520ba47354935db", "score": "0.59188294", "text": "public function getURL() { return $this->url; }", "title": "" }, { "docid": "d8e4e3f4f6337f10d47f27b01525f643", "score": "0.59177506", "text": "function selfurl(){\n\t\treturn av($_SERVER,'PHP_SELF',av($_SERVER,'SCRIPT_NAME'));\n\t}", "title": "" }, { "docid": "4eacf393175f40e5ce8c9b72d96ed6f4", "score": "0.5915394", "text": "function get_url(): string {\r\n return sprintf('%s/%s', $this->vol->get_url(), $this->get_num());\r\n }", "title": "" }, { "docid": "b031a2629d83f8789da9449374c151cf", "score": "0.58976907", "text": "function link()\n {\n return $this->link;\n }", "title": "" }, { "docid": "d96c1c17942f79d883d15b807704d51f", "score": "0.5867026", "text": "public function getExternalLinkAttribute()\n {\n return (Str::contains($this->attributes['link'],'http') ? $this->attributes['link'] : asset('materi/' . $this->attributes['link']));\n // return asset('materi/'.$this->attributes['link']);\n }", "title": "" }, { "docid": "7177988255f377f23c3621ab588ad7e8", "score": "0.58533496", "text": "public function getURL()\r\n\t{\r\n\t\treturn $this->url;\r\n\t}", "title": "" }, { "docid": "b5553a8cb2cd7552056e868d7246a57e", "score": "0.582433", "text": "function getURL() {\r\n\t\treturn $this->url;\r\n }", "title": "" }, { "docid": "07b2e2a36917cc47fe3715a18d61de92", "score": "0.582295", "text": "public function getLink()\n\t{\n\t\treturn Mage::helper('wordpress')->getUrl();\n\t}", "title": "" }, { "docid": "19a4727345a2ca7cc71b53ab327ebcf1", "score": "0.581852", "text": "public function getUri()\n {\n return $this->getEndPoint() . $this->getResource();\n }", "title": "" }, { "docid": "b21dc21874b0f3deca3d5e5020293976", "score": "0.58154476", "text": "public function getQuestionLink() : string \r\n {\r\n return $this->questionLink;\r\n }", "title": "" }, { "docid": "54c536af8eab3e4c96cabf9a6fee5d95", "score": "0.5814927", "text": "public function getURL() { return $this->restUrl2; }", "title": "" }, { "docid": "d78f6d879ad8bc012b80ded785e9a60b", "score": "0.581479", "text": "function getURL()\n {\n return $this->newsroom->getURL().'/'.$this->id;\n }", "title": "" }, { "docid": "4e47f82c476fad6f1cbc82051f269bae", "score": "0.58143365", "text": "public function getExternalURL() {\n return $this->data['external_url'];\n }", "title": "" }, { "docid": "284c4689d88df6a0598b390436b6aac5", "score": "0.5813194", "text": "public function getLinkAttribute(): ?string\n {\n if ($this->id && $this->channel_id) {\n return 'https://discord.com/channels/'.($this->guild_id ?? '@me').'/'.$this->channel_id.'/'.$this->id;\n }\n\n return null;\n }", "title": "" }, { "docid": "fe6985335e2043b18f0ff9211482092b", "score": "0.57976633", "text": "function get_external_url()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_EXTERNAL_URL);\r\n }", "title": "" }, { "docid": "53025de21521d5ad7ec9ffa0fbe1ed2a", "score": "0.5749394", "text": "public function getLinkAttribute()\n {\n // External link\n $link = $this->getOriginal('link');\n if ($link) {\n return $link;\n }\n\n return $this->getPath('show');\n }", "title": "" }, { "docid": "fd3fce78ab2e69f5b62ee3b2c7fe26ae", "score": "0.5743876", "text": "public function getURL() {\r\n\t\treturn $this->url;\r\n\t}", "title": "" }, { "docid": "d73c59bcc966f23c64b04757d659a96b", "score": "0.5728701", "text": "public function getLinkUrl() {\n return $this->_linkUrl;\n }", "title": "" }, { "docid": "4d577369f8ef3958aafbb64b40ec597d", "score": "0.5725363", "text": "public function __toString(): string\n {\n return $this->getUrl();\n }", "title": "" }, { "docid": "0398bca0e6ed1077bd53dc79066dac57", "score": "0.5725223", "text": "function getURL() {\n\t\treturn $this->url;\n }", "title": "" }, { "docid": "ddb9e23aa42692e1930d85834f65f785", "score": "0.57151604", "text": "public function getExternalHomepageUrl() {\n return @$this->attributes['external_homepage_url'];\n }", "title": "" }, { "docid": "3549626e8016cdf90dac800e13fbeab1", "score": "0.57103336", "text": "public function getServerUrl() {\n\n\t\treturn $this->serverUrl;\n\n\t}", "title": "" }, { "docid": "a7903ac08f2f591b35767e1650736568", "score": "0.570761", "text": "public function getURL()\n {\n return $this->get('URL');\n }", "title": "" }, { "docid": "a7903ac08f2f591b35767e1650736568", "score": "0.57074106", "text": "public function getURL()\n {\n return $this->get('URL');\n }", "title": "" }, { "docid": "0857736cc0d2e0e652f33c8696c1d1d0", "score": "0.57059914", "text": "public function get_url(): string {\n\t\treturn $this->url;\n\t}", "title": "" }, { "docid": "0a055e6c331b9022633c3eb39c1cb22b", "score": "0.5703327", "text": "public function link()\n {\n $link = ltrim($this->property('link'), 'https:');\n\n if (strpos($link, '//') !== 0) {\n return '//' . $link;\n }\n\n return $link;\n }", "title": "" }, { "docid": "e087b58ed883abe0ac4b20531db10ef4", "score": "0.5697754", "text": "public function getAdress(){\n return $this->protocol.$this->defaultUrl;\n }", "title": "" }, { "docid": "299023f7f3a7c703e496e6a398b1aa58", "score": "0.56946874", "text": "public function __toString()\n {\n return $this->getUrl();\n }", "title": "" }, { "docid": "299023f7f3a7c703e496e6a398b1aa58", "score": "0.56946874", "text": "public function __toString()\n {\n return $this->getUrl();\n }", "title": "" }, { "docid": "a9e12b5c840911149f83c0e141003021", "score": "0.5692596", "text": "public function getLink()\n {\n return \"#\";\n }", "title": "" }, { "docid": "15ae3dbb230169c2461f114ec9baf65b", "score": "0.5690851", "text": "public function getURL()\n {\n return $this->url;\n }", "title": "" }, { "docid": "fd6742773d020c800f41e87d838c195a", "score": "0.5687522", "text": "function url() {\n return ($this->exists ? $this->url : null );\n }", "title": "" }, { "docid": "d42506c9ac41817b6e93665fd33fc6a4", "score": "0.5685454", "text": "public function getURL();", "title": "" }, { "docid": "6f0b0a7269b0c320c71c2e6f86215e7e", "score": "0.5675559", "text": "public function getServerUrl()\n {\n return $this->serverUrl;\n }", "title": "" }, { "docid": "825e26aa9c0ec33a5adc8f52806a7e6b", "score": "0.5666795", "text": "public function getUrl() {\n return $this->_constructUrl('');\n }", "title": "" }, { "docid": "5a508605c0c6f3de475023e4508d8d14", "score": "0.5657043", "text": "public function getDownloadLink()\n {\n return $this->download_link;\n }", "title": "" }, { "docid": "c2a167cf1c9f353124036e23976bf481", "score": "0.5656563", "text": "function __toString()\n {\n return $this->getUrl();\n }", "title": "" }, { "docid": "12af5846f0a41b29942aa5859edab871", "score": "0.56553715", "text": "public function GenerateLink() {\n\t\tif (empty($this->linkid)) {\n\t\t\t$this->linkid = _xls_seo_url(_xls_truncate(_xls_encrypt(md5(date(\"YmdHis\"))),31,''));\n\t\t\t$this->save();\n\t\t\treturn $this->linkid;\n\t\t}\n\t\telse\n\t\t\treturn $this->linkid;\n\t}", "title": "" }, { "docid": "6a146620c0e0e1a5df32c57cd33688ad", "score": "0.56517214", "text": "function thisURL() {\n global $site;\n return $site->uri->toURL();\n}", "title": "" }, { "docid": "91245fd13a484441954b1e5b20b8aed4", "score": "0.5650856", "text": "public function getUrlAttribute()\n {\n return $this->attributes['url'] = url(\"/api/satellite/\".$this->attributes['id']);\n }", "title": "" }, { "docid": "e0027654c28660ad45a2c41663309fc7", "score": "0.5650447", "text": "public function getClientLink()\n {\n return isset($this->ClientLink) ? $this->ClientLink : null;\n }", "title": "" }, { "docid": "aa7ef5544ef5893b54d464fc94ab6915", "score": "0.5644557", "text": "public function instanceUrl();", "title": "" }, { "docid": "a9603f9e44c5e44304477fce398d962e", "score": "0.56360614", "text": "function get_strUrl() {\n return $this->_strUrl;\n }", "title": "" }, { "docid": "558fe0ad0be616a038e76265a920d22b", "score": "0.5633844", "text": "public function getHref(): string\n {\n return $this->href;\n }", "title": "" }, { "docid": "45786d8e3116ad8e51d0ba2e3eb5ae88", "score": "0.56300163", "text": "function get_link() {\n \n return app_url().\"/\".$this->uid;\n \n }", "title": "" }, { "docid": "991da747d0ab79d5867cd612acdb9977", "score": "0.5628925", "text": "public function getShortUrl() {\r\n\t\treturn \"http://\".$_SERVER[\"HTTP_HOST\"].\"/\".$this[\"short_key\"];\r\n\t}", "title": "" }, { "docid": "b21362543358c2c8adcf3f1d493d3e9c", "score": "0.5600412", "text": "public function getURL() {\n return $this->data['url'];\n }", "title": "" }, { "docid": "a2d8fe3cf3f681116686155b38301258", "score": "0.55997264", "text": "public function get_url() {\n\t\treturn $this->url;\n\t}", "title": "" } ]
0aface6ee2f281657b97a20be8ea0b04
Shortcode : Email id
[ { "docid": "85ca79ff7c002dc126387b3d7b10b928", "score": "0.68035203", "text": "function dt_sc_email($attrs, $content = null) {\n\t\textract ( shortcode_atts ( array (\n\t\t\t\t'emailid' => ''\n\t\t), $attrs ) );\n\n\t\t$out = '<div class=\"dt-sc-contact-info\">';\n\t\t$out .= ( !empty($emailid) ) ? \"<p><i class='fa fa-envelope-o'></i><a href='mailto:$emailid'>{$emailid}</a></p>\" : \"\";\n\t\t$out .= '</div>';\n\t\treturn $out;\n\t }", "title": "" } ]
[ { "docid": "328b7881e4eb3be8a0e1c1cfc82f379c", "score": "0.6286298", "text": "protected function getIdentifierKey()\n {\n return 'email';\n }", "title": "" }, { "docid": "aa22208fb3e7d6b2f4fcc68edadf3fe8", "score": "0.61496174", "text": "public function getId()\n {\n if (!isset($this['content-id'])) {\n $this['content-id'] = '<' . md5(uniqid()) . '*[email protected]>';\n }\n\n return trim($this['content-id'], '<>');\n }", "title": "" }, { "docid": "44aff6b084a96d781fe0cde5fc4b16d7", "score": "0.6043473", "text": "function column_col_email($item)\n {\n return sprintf('%1$s',\n /*$1%s*/ $item->email);\n }", "title": "" }, { "docid": "8b7e00decf4137fd19f1c435cd7b3211", "score": "0.5997692", "text": "public function getUserIdentifier(): string\n {\n return (string)$this->email;\n }", "title": "" }, { "docid": "2ecb448fae04555cf85affd1033274e8", "score": "0.59871614", "text": "public function getCustomerEmailKey() : string\n {\n return 'email';\n }", "title": "" }, { "docid": "f6ef1fd4aaee5c8639ec69e3ed7c0b71", "score": "0.58450586", "text": "public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }", "title": "" }, { "docid": "f6ef1fd4aaee5c8639ec69e3ed7c0b71", "score": "0.58450586", "text": "public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }", "title": "" }, { "docid": "f6ef1fd4aaee5c8639ec69e3ed7c0b71", "score": "0.58450586", "text": "public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }", "title": "" }, { "docid": "f6ef1fd4aaee5c8639ec69e3ed7c0b71", "score": "0.58450586", "text": "public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }", "title": "" }, { "docid": "f6ef1fd4aaee5c8639ec69e3ed7c0b71", "score": "0.58450586", "text": "public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }", "title": "" }, { "docid": "f6ef1fd4aaee5c8639ec69e3ed7c0b71", "score": "0.58450586", "text": "public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }", "title": "" }, { "docid": "f6ef1fd4aaee5c8639ec69e3ed7c0b71", "score": "0.58450586", "text": "public function getUserIdentifier(): string\n {\n return (string) $this->email;\n }", "title": "" }, { "docid": "e70884a23051392ad5d41700159ae6a4", "score": "0.5832231", "text": "public function getAuthIdentifierName()\n {\n return 'email';\n }", "title": "" }, { "docid": "0ed033c4e5614d7badfbc1747dc19fea", "score": "0.5777449", "text": "public function getAuthorEmail()\n {\n return Yii::t('admin', '[email protected]');\n }", "title": "" }, { "docid": "ce9e3ae68e9685f5276f5cf593a0ddb4", "score": "0.57732695", "text": "function ericbdev_email_shortcode($atts, $content = null)\n{\n\t$parameters = shortcode_atts(array(\n\t\t'email' => '',\n\t), $atts, 'email');\n\tif(!empty($parameters['email'])) {\n\t\t$exploded_email = explode('@', $parameters['email']);\n\t\t$text = do_shortcode($content);\n\t} else {\n\t\t$exploded_email = explode('@', do_shortcode($content));\n\t\t$text = '';\n\t}\n\t$domain = array_pop($exploded_email);\n\t$extra = $exploded_email[0];\n\t$return_html = '';\n\t$return_html .= '<a class=\"js-replacer-text\" href=\"#\" ';\n\tif(!empty($domain)) {\n\t\t$return_html .= ' data-domain=\"' . $domain . '\"';\n\t}\n\tif(!empty($extra)) {\n\t\t$return_html .= ' data-extra=\"' . $extra . '\"';\n\t}\n\tif(!empty($text)) {\n\t\t$return_html .= ' data-text=\"' . $text . '\"';\n\t}\n\t$return_html .= '>' . __('Please enable JavaScript', 'shortcodes') . '</a>';\n\treturn $return_html;\n}", "title": "" }, { "docid": "cd4ffd0ccccfe098e5249e465dfa5e60", "score": "0.577187", "text": "public static function displayName(): string\n {\n return Craft::t('email-editor', 'Email');\n }", "title": "" }, { "docid": "3db2e62ca5cc6b822f4d652dc480365b", "score": "0.576365", "text": "public static function email(): string\n {\n return strtolower(self::firstname() . \".\" . self::lastname() . \"@\" . self::host() . \".xxxxx\");\n }", "title": "" }, { "docid": "1444bac7d158146084366af10c429a57", "score": "0.5724937", "text": "function get_post_email($post_id) {\n return get_post_meta($post_id, 'bd_email', FALSE)[0];\n}", "title": "" }, { "docid": "a011e16029e4ac76e4ddab29b08eb729", "score": "0.57153195", "text": "function mail_id($table, $data) {\n $this->db->where('email', $data['email']);\n $query = $this->db->get($table);\n $result = $query->result();\n if ($query->num_rows == 1) {\n return 1;\n } else\n return 0;\n }", "title": "" }, { "docid": "12cd7f18db6a60bddf2bfd3e05ead59f", "score": "0.5697819", "text": "function get_org_email( $atts ) {\n $a = shortcode_atts( array(\n 'link' => true,\n 'tag' => 'p',\n 'class' => '',\n 'label' => 'Email',\n 'icon' => '',\n ), $atts );\n $option = get_organization_options('email');\n $class = ($a['class'] != '' ? 'class=\"' . esc_attr($a['class']) . '\"' : '');\n $label = ($a['label'] != '' ? '<strong>' . esc_attr($a['label']) . ':</strong> ' : '');\n $icon = ($a['icon'] != '' ? '<i class=\"info-icon fa ' . esc_attr($a['icon']) . '\"></i>' : '');\n if( $a['tag'] != 'none') {\n $value = (esc_attr($a['link']) != 'false' ? '<a href=\"mailto:' . $option . '\">' . $option . '</a>' : $option );\n $output = '<' . esc_attr($a['tag']) . ' ' . $class . '>' . $icon . $label . $value . '</' . esc_attr($a['tag']) . '>';\n }\n else {\n $value = (esc_attr($a['link']) != 'false' ? '<a ' . $class . ' href=\"mailto:' . $option . '\">' . $icon . $option . '</a>' : $icon . $option );\n $output = $label . $value;\n }\n return $output;\n}", "title": "" }, { "docid": "d3e46620663847043839ff49465863fc", "score": "0.5651572", "text": "public function getIdentification() {\n return $this->getFullName() . (($this->email) ? ' (' . $this->email . ')' : '');\n }", "title": "" }, { "docid": "c5ec0d87a949a36189c1ab0a3b4dcc16", "score": "0.561899", "text": "public function messageId($email = null) {\n\t\tif (!isset($email)) {\n\t\t\t$email = $this->data;\n\t\t}\n\n\t\t$id = $email[$this->alias]['msg']['headers']['Message-Id'];\n\t\t$id = preg_replace('/[^A-Za-z0-9_\\-]/', '_', $id); // Sanitize\n\t\treturn $id;\n\t}", "title": "" }, { "docid": "44897113640ce281477784cbd6eff2a8", "score": "0.5613616", "text": "private function getIDfield() : string { \n if ($this->isEditMember != null) {\n return '<input type=\"hidden\" id=\"' . self::$memberId . '\" name=\"' . self::$memberId . '\" value=\"' . $this->memberToEdit() . '\">';\n } else {\n return \"\";\n }\n }", "title": "" }, { "docid": "952fe5607e6cc086dd9ba2c4225dd583", "score": "0.560968", "text": "public function getFullIdentifier()\n {\n return $this->getReceiver().' '.$this->getSubject();\n }", "title": "" }, { "docid": "2667ef7b44371dc35a8aef639fc9eea9", "score": "0.5606583", "text": "public function message()\n {\n return 'アカウントIDは半角英数字・4文字以上で入力してください';\n }", "title": "" }, { "docid": "6f985714eb2d264fdd4d72d4dd9592fe", "score": "0.5605845", "text": "public function getContactEmail();", "title": "" }, { "docid": "6f985714eb2d264fdd4d72d4dd9592fe", "score": "0.5605845", "text": "public function getContactEmail();", "title": "" }, { "docid": "6f985714eb2d264fdd4d72d4dd9592fe", "score": "0.5605845", "text": "public function getContactEmail();", "title": "" }, { "docid": "bbaa04cc5832c4bb72149a719ba60674", "score": "0.5602658", "text": "function shortcode_email( $atts, $content ) {\r\n\treturn antispambot( $content );\r\n}", "title": "" }, { "docid": "78565182e10f4844a30d4c6cb537902d", "score": "0.5599806", "text": "function affwp_email_tag_user_email( $affiliate_id = 0 ) {\n\treturn affwp_get_affiliate_email( $affiliate_id );\n}", "title": "" }, { "docid": "87d53476fdfdbb952fa7844dd0a7e3c1", "score": "0.5591791", "text": "public function getUserIdentifier(){\n return $this->email;\n }", "title": "" }, { "docid": "0a8ea858dd02e6f43aa73a0c631abe72", "score": "0.558125", "text": "function osc_premium_contact_email() {\n return (string) osc_premium_field(\"s_contact_email\");\n }", "title": "" }, { "docid": "504a85b86d7944f7cba2c248791940cd", "score": "0.55771625", "text": "function hide_email($email)\n{ \n $character_set = '+-.0123456789@ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz';\n\t$key = str_shuffle($character_set); $cipher_text = ''; $id = 'e'.rand(1,999999999);\n\tfor ($i=0;$i<strlen($email);$i+=1) $cipher_text.= $key[strpos($character_set,$email[$i])];\n \t$script = 'var a=\"'.$key.'\";var b=a.split(\"\").sort().join(\"\");var c=\"'.$cipher_text.'\";var d=\"\";';\n $script.= 'for(var e=0;e<c.length;e++)d+=b.charAt(a.indexOf(c.charAt(e)));';\n\t$script.= 'document.getElementById(\"'.$id.'\").innerHTML=\"<a href=\\\\\"mailto:\"+d+\"\\\\\">\"+d+\"</a>\"';\n\t$script = \"eval(\\\"\".str_replace(array(\"\\\\\",'\"'),array(\"\\\\\\\\\",'\\\"'), $script).\"\\\")\"; \n\t$script = '<script type=\"text/javascript\">/*<![CDATA[*/'.$script.'/*]]>*/</script>';\n\treturn '<span id=\"'.$id.'\">[javascript protected email address]</span>'.$script;\n}", "title": "" }, { "docid": "4c605377738175b76e1526ffa9bb58a7", "score": "0.5575164", "text": "public function email() : string{\n\t\treturn $this->email;\n\t}", "title": "" }, { "docid": "9c0e40c8066d0f048fb50da83722a1ff", "score": "0.55601346", "text": "function personalId();", "title": "" }, { "docid": "6356cd884c7647d667c30e61128f1c21", "score": "0.5549407", "text": "public function getAuthIdentifierName()\n {\n return $this->email;\n }", "title": "" }, { "docid": "a9d8c85d423a7b5880fdf2593294ff96", "score": "0.5546013", "text": "public function getHtmlId() {\n\t\treturn \"FAPI_\" . $this->getType() . \"_\" . $this->id;\n\t}", "title": "" }, { "docid": "6deca95d0ba6e68067735597021acbe7", "score": "0.5534302", "text": "public function getEmail(): string;", "title": "" }, { "docid": "0383d24d0c81ce6cc1cdfac26e8a3696", "score": "0.55337495", "text": "public function getMetaSubjectId() : int;", "title": "" }, { "docid": "4330fe33077bea55795453030a811423", "score": "0.5523567", "text": "protected function getMonzoEmailColumn()\n {\n return 'email';\n }", "title": "" }, { "docid": "da5330758ba38929bd952984d1786c17", "score": "0.5523253", "text": "function mardiio_set_contact_form_custom_column( $column, $post_id ) {\n switch( $column ) {\n case 'message':\n echo get_the_excerpt();\n break;\n case 'email':\n $email = get_post_meta( $post_id, '_user_email_value_key', true );\n echo '<a href=\"mailto:' . $email . '\">' . $email . '</a>';\n break;\n }\n}", "title": "" }, { "docid": "279bf8cd77a8c61c68b2dfe1d3d810db", "score": "0.55226314", "text": "function email_link($email) {\n return '<a href=\"mailto:'.$email.'\">'.$email.'</a>';\n}", "title": "" }, { "docid": "145e61941cd66a2269184319c8301497", "score": "0.5513508", "text": "function imap_uid($param) {\n ;\n return \"\";\n }", "title": "" }, { "docid": "47acc2d32cbe76a1f2a58c8401a004d4", "score": "0.5510465", "text": "private function get_email() {\r\n if (!$this->is_primary_family_member())\r\n// return preg_replace('/(.+)#(.+)@temp\\.vja\\.fr.*/','$1@$2',$this->user->user_email);\r\n return preg_replace('/^\\d+\\.vjafamily\\.(.+)$/','$1', $this->user->user_email);\r\n else\r\n return $this->user->user_email;\r\n }", "title": "" }, { "docid": "0056ae3344aea836166e23be6ec659d5", "score": "0.55062246", "text": "function wpcodex_hide_email_shortcode( $atts , $content = null ) {\n if ( ! is_email( $content ) ) {\n return;\n }\n\n return antispambot( $content );\n}", "title": "" }, { "docid": "fa37453ef72f69cd0528d43c53cd6961", "score": "0.55023485", "text": "public function generateShortCode() {\n\t\t$id = $this->ID;\n\t\treturn substr(uniqid($id), 0, 8);\n\t}", "title": "" }, { "docid": "a36258603c28ec1a6120648080d267d7", "score": "0.54924995", "text": "public function getEmailAuthRecipient(): string;", "title": "" }, { "docid": "1096bf6ef1bac03b9a03ebc1a652bd9e", "score": "0.5486161", "text": "public function get_id() {\n\t\treturn esc_attr( $this->id );\n\t}", "title": "" }, { "docid": "8ec00e8769393740af459c0c01ad43b9", "score": "0.5482882", "text": "public function getSyndicationAuthorEmail();", "title": "" }, { "docid": "10fd47cd2ca62d62f762b24c5ddecc32", "score": "0.54822224", "text": "public function getIdString() : string;", "title": "" }, { "docid": "fd3ce4d72c0763bdc3d211532cd75126", "score": "0.54749554", "text": "public function getPrimaryEmail() {\n return $this->getPrimaryField('email');\n }", "title": "" }, { "docid": "9b82d7080f490bbfa04519a73f3044af", "score": "0.54742765", "text": "function getPlusPartFromEmailAddress($email)\n{\n $plusPos = strpos($email, '+');\n $atPos = strpos($email, '@');\n $userIdLength = $atPos - $plusPos - 1;\n $userId = substr($email, $plusPos + 1, $userIdLength);\n\n return $userId;\n}", "title": "" }, { "docid": "30e50661fdfd8ee6dd46caab099da033", "score": "0.5473333", "text": "function email_link():string{\n return '<a href=\"mailto:'.$this->email.'?subject=Votre%20CV\">'.$this->email.'</a>';\n }", "title": "" }, { "docid": "e5b60c5789813fb4ec43631f456a9a51", "score": "0.54660034", "text": "public function getShortId()\n {\n return substr($this->getId(), 7, 12);\n }", "title": "" }, { "docid": "8fbc8db6c0d38b999a64dfc0d9afe5be", "score": "0.546126", "text": "function atcf_shortcode_submit_field_before_render_contact_email( $field ) {\n\tif ( ! is_user_logged_in() )\n\t\treturn $field;\n\n\t$current_user = wp_get_current_user();\n\n\t$field[ 'type' ] = 'hidden';\n\t$field[ 'value' ] = $current_user->user_email;\n\t$field[ 'label' ] = sprintf( __( '<strong>Note</strong>: You are currently logged in as %1$s. This %2$s will be associated with that account. Please <a href=\"%3$s\">log out</a> if you would like to make a %2$s under a new account.', 'atcf' ), $current_user->user_email, strtolower( edd_get_label_singular() ), wp_logout_url( get_permalink() ) );\n\n\treturn $field;\n}", "title": "" }, { "docid": "62136f8ff57513c5a947989de2cb6fe2", "score": "0.5442333", "text": "public function setGtmId()\n {\n $options = get_option('ccfw_component_settings');\n $googleAnalyticsID = $options['gtm_id'] ?? '';\n\n ?>\n <input type='text' name='ccfw_component_settings[gtm_id]'\n placeholder=\"GTM-XXXXXXX\" value='<?php echo sanitize_html_class($googleAnalyticsID); ?>'\n class=\"ccfw-component-input\">\n <?php\n }", "title": "" }, { "docid": "91dcd457fe48f85ea78b64173ef5adae", "score": "0.54381126", "text": "public function email()\n {\n $email = trim($this->value);\n\n if (empty($email)) {\n return $this->setValue('');\n } else if (strpos($email, '@') === false) {\n return $this->setValue(\"[email protected]\");\n } else {\n return $this->setValue(str_replace('@gac.edu', '@gustavus.edu', $email));\n }\n }", "title": "" }, { "docid": "84bb9a4a8fbf0787ac2e5263be02a773", "score": "0.54364306", "text": "function validateemail ( $id, $email = '', $listing = '' )\n {\n\n global $lang, $conf;\n\n if (empty($listing)) {\n if ($conf['rewrite'] == 'ON')\n $output = '<a href=\"' . URL . '/Mail/' . $id . '.html\">';\n else\n $output = '<a href=\"' . URL . '/sendmessage.php?id=' . $id . '\">';\n }\n else {\n if ($conf['rewrite'] == 'ON')\n $output = '<a href=\"' . URL . '/Mail/' . $id . '-' . $listing. '.html\">';\n else\n $output = '<a href=\"' . URL . '/sendmessage.php?id=' . $id . '&listing=' . $listing . '\">';\n }\n\n return $output;\n\n }", "title": "" }, { "docid": "e4a71392a13ad767318d4484c0ca6bf2", "score": "0.5430088", "text": "function affwp_email_tag_affiliate_id( $affiliate_id = 0 ) {\n\treturn $affiliate_id;\n}", "title": "" }, { "docid": "dda7bafeaad5f2912d7ed4020a511091", "score": "0.5425559", "text": "function affwp_email_tag_name( $affiliate_id = 0 ) {\n\treturn affiliate_wp()->affiliates->get_affiliate_name( $affiliate_id );\n}", "title": "" }, { "docid": "6ee2e3cc7e337e7b6bdd9c3ab780143b", "score": "0.54127306", "text": "private function generateEditCode(string $email = '[email protected]') : string {\n $seed = $email . time();\n //Security of the hash is mostly irrelevant given the single-use - simply needs to have\n //extremely low probability of collision (unique seeds practically guarantee it)\n return substr(hash('haval192,3', $seed), 0,32);\n }", "title": "" }, { "docid": "b4571842bf6f7e80a4e8951cce13af50", "score": "0.5411146", "text": "public function getForetagsId()\n\t{\n\t\t\n\t\tif ($this->isApproved()) {\n\t\t\treturn substr($this->getNamn() , strlen(self::PREFIX) , -4);\n\t\t} else {\n\t\t\treturn substr($this->getNamn() , strlen(self::PREFIX . self::UNAPPROVED_PREFIX) , -4);\n\t\t}\n\t}", "title": "" }, { "docid": "bc86bcfc2204756226bfbf40b2292ff9", "score": "0.54074883", "text": "public function getEmail() {\n\t\t$email = AM_Lite::getInstance()->getEmail();\n\t\treturn strtolower(trim( $email ));\n\t}", "title": "" }, { "docid": "e57692cdf5546ed741795f978b019b0e", "score": "0.5401584", "text": "function recup5($id, $prenom, $nom, $tel, $mail){\n return \"$id!$prenom!$nom!$tel!$mail\";\n}", "title": "" }, { "docid": "6504c9e148b97f56f41ca50531bd7a85", "score": "0.5401175", "text": "function getUserIdEmail($a_mail)\n\t{\n\t\tglobal $ilDB, $ilUser;\n\t\t\n\t\t$val_set = $ilDB->queryF('SELECT usr_id FROM usr_data WHERE(email=%s)',\n\t\tarray('text'),array($a_mail));\n\t\t$val_rec = $ilDB->fetchAssoc($val_set);\n\t\t\t\t\n\t\t\n\t\treturn $val_rec[\"usr_id\"];\n\t}", "title": "" }, { "docid": "db0be20e8a28c42cdafa86bd29b884a5", "score": "0.53882843", "text": "public function id() {\n return '';\n }", "title": "" }, { "docid": "9cbe5e71b74820970437fde880fb5a93", "score": "0.5386368", "text": "public function email()\n\t{\n\t\treturn '<a href=\"mailto:' . $this->entity->email . '\">' . $this->entity->email . '</a>';\n\t}", "title": "" }, { "docid": "b432ad400224de0c2b27259b68e371e7", "score": "0.5382609", "text": "public function getIdUrl()\n {\n return 'cid:' . $this->getId();\n }", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "dc8add57acff49e09d6dc387ffdd26ba", "score": "0.53798044", "text": "public function getEmail();", "title": "" }, { "docid": "4e8de3b0c574c6be2e8cf6a1fa1d6a58", "score": "0.5376521", "text": "function addthis_ssi_email_exist_message(){\r\n\t\r\n\t$at_exist_userdata = unserialize( stripslashes( $_COOKIE[ 'at_ssi_exist_userdata' ] ) );\r\n\t$at_exist_userdata_email = !empty( $at_exist_userdata[\"addthis_email\"] ) ? \"<i>\".$at_exist_userdata[\"addthis_email\"].\"</i>\" : \"<i>\".$at_exist_userdata[\"at_custom_email\"].\"</i>\";\r\n\r\n\techo '<p class=\"email-exist-message\">'. str_replace( \"[email]\", $at_exist_userdata_email, get_option('addthis_ssi_email_exist_text') ).'</p><br/>';\t\r\n}", "title": "" }, { "docid": "4f505b74c9835ebb2982ec65e6d5c76e", "score": "0.5372873", "text": "public function getName()\n {\n return 'email';\n }", "title": "" }, { "docid": "97a335637cc7e5ed2a0dc0f745d24d9c", "score": "0.53710324", "text": "public function generateEmailCopernicaId($email, Copernica_MarketingSoftware_Model_Abstraction_Storeview $storeview)\n {\n return $email.'|'.$storeview->id();\n }", "title": "" }, { "docid": "27e635e7af80895a7170c235518e2a2e", "score": "0.5358929", "text": "public function instance_id() {\n\t\t\treturn sanitize_title( implode( '_', array_filter( array(\n\t\t\t\t$this->module(),\n\t\t\t\t$this->unique(),\n\t\t\t\t$this->get_id(),\n\t\t\t) ) ) );\n\t\t}", "title": "" }, { "docid": "885af77433c95b316266f753682506d6", "score": "0.5357638", "text": "public function getMedlemId()\n\t{\n\t\t\n\t\tif ($this->isApproved()) {\n\t\t\treturn substr($this->getNamn() , strlen(self::PREFIX) , -4);\n\t\t} else {\n\t\t\treturn substr($this->getNamn() , strlen(self::PREFIX . self::UNAPPROVED_PREFIX) , -4);\n\t\t}\n\t}", "title": "" }, { "docid": "56c693d31d8975c6b69ab67479274327", "score": "0.5356628", "text": "function user_id_from_email($email)\n{$email = mysql_real_escape_string($email);\n\t$vizitori = mysql_query(\"SELECT id FROM vizitor WHERE email='$email'\");\n\t\n\treturn mysql_result($vizitori, 0, 'id');\n}", "title": "" }, { "docid": "7721398a32aba33250ab84ee8809f1ec", "score": "0.5356081", "text": "public function getEmailAddress()\n {\n return new \\Common\\Type\\CString( '/^(.+)@([^@]+)$/' );\n }", "title": "" }, { "docid": "a8177fac6d2e49f7ec0fd4d7d2c66c7c", "score": "0.5354994", "text": "public function getShortCode(): string;", "title": "" }, { "docid": "25cfe472f81bf0a4e19c5b770d3e2aa6", "score": "0.5352472", "text": "function cancel_mc_member($email){\n\t$contact_id = searchByEmail($email);\n\tadd_tag(array($contact_id),array(162));\n}", "title": "" }, { "docid": "49425e160d3a77d6e991c2f7e94b384e", "score": "0.53496665", "text": "function getNotifyFromMailAddress($suggest = \"\") {\n global $CONF;\n if ($this->isLoggedIn()) {\n return $this->getDisplayName() . \" <\" . $this->getEmail() . \">\";\n } else if (isValidMailAddress($suggest)) {\n return $suggest;\n } else {\n return $CONF['AdminEmail'];\n }\n }", "title": "" }, { "docid": "2479117351e967e6078689e33432dd9d", "score": "0.53390926", "text": "public function email(){\n global $L, $users, $SnickerUsers;\n\n list($type, $id) = array_pad(explode(\"::\", $this->getValue(\"author\"), 2), 2, null);\n switch($type){\n case \"bludit\":\n if(!$users->exists($id)){\n break;\n }\n $user = new User($id);\n return $user->email();\n case \"guest\":\n if(!$SnickerUsers->exists($id)){\n break;\n }\n return $SnickerUsers->db[$id][\"email\"];\n case \"unknown\":\n return \"unknown@\" . $_SERVER[\"SERVER_NAME\"];\n }\n return false;\n }", "title": "" }, { "docid": "b75c2494cab7221cf72110fcd99bf0b3", "score": "0.5339014", "text": "function pmprosla_get_slack_user_id($email){\r\n\tglobal $pmprosla_users_from_api;\r\n\tif(!array_key_exists($email, $pmprosla_users_from_api)) {\r\n\t\tpmprosla_fill_user_info_from_email($email);\r\n\t}\r\n\tif(empty($pmprosla_users_from_api[$email])){\r\n\t\treturn false;\r\n\t}\r\n\treturn $pmprosla_users_from_api[$email]['id'];\r\n}", "title": "" }, { "docid": "303660d514f39404ce4cfbf98b18cbf1", "score": "0.53361166", "text": "public function message()\n {\n return 'Invitation with that email already exists.';\n }", "title": "" }, { "docid": "0171ec5638a1a6d84d6efad76fd2ebdd", "score": "0.5332287", "text": "function getTextUidFromIdentity($identity)\n {\n\t\t// шаблоны по которым выцепляем ник из identity\n\t\t$patterns = array(\n\t\t\t'([^\\.]+)\\.ya\\.ru',\n\t\t\t'openid\\.mail\\.ru\\/[^\\/]+\\/([^\\/?]+)',\n\t\t\t'openid\\.yandex\\.ru\\/([^\\/?]+)',\n\t\t\t'([^\\.]+)\\.myopenid\\.com'\n\t\t);\n\t\tforeach ($patterns as $pattern) {\n\t\t\tif (preg_match('/^https?\\:\\/\\/'.$pattern.'/i', $identity, $result)) {\n $final_uid = $result[1];\n $final_uid = str_replace(\"uid:\", \"\", $final_uid);\n $final_uid = trim($final_uid);\n\t\t\t\treturn $final_uid;\n\t\t\t}\n\t\t}\n\t\treturn false;\n }", "title": "" }, { "docid": "33e5034dc85676e3f058437749c36baf", "score": "0.5331134", "text": "function ecv_LOGIN_LABEL($lang, $escaped, $param)\n{\n switch (get_option('one_per_email_address')) {\n case '0':\n $value = do_lang('USERNAME');\n break;\n\n case '1':\n $value = '<span class=\"must_show_together\">' . do_lang('USERNAME') . '/' . do_lang('EMAIL_ADDRESS') . '</span>';\n break;\n\n case '2':\n $value = do_lang('EMAIL_ADDRESS');\n break;\n }\n\n if ($escaped !== array()) {\n apply_tempcode_escaping($escaped, $value);\n }\n return $value;\n}", "title": "" }, { "docid": "dd9c7c3eb56461dbde633ac40140941f", "score": "0.53307843", "text": "function get_users_id_by_email($db,$email)\n\t {\n\t\t \n\t\t\t$info[\"table\"] = \"users\";\n\t\t\t$info[\"fields\"] = array(\"users.*\"); \n\t\t\t$info[\"where\"] = \"1 AND email='\".$email.\"'\";\n\t\t\t$arr = $db->select($info);\n\t\t\t\n\t\t\treturn $arr[0]['id'];\n\t }", "title": "" }, { "docid": "f28a63b4c53b4b2aad19e8206f7320a7", "score": "0.5325237", "text": "function getClientEmailFrmId($client_id){\n\t$r=mysql_query(\"select client_email from client where client_id='$client_id'\")or die(mysql_error());\n\t$a=mysql_fetch_assoc($r);\n\treturn $a[client_email];\n}", "title": "" }, { "docid": "6405721ed6dcaff6d8d724fef333e4a2", "score": "0.53207314", "text": "public function getEmail(): string\n {\n return strtolower($this->response['email']) ?? '';\n }", "title": "" }, { "docid": "2c1f8d61d320978eb0c4144bcedf327c", "score": "0.5311707", "text": "public function getMetaSubjectId() : int\n {\n return 1;\n }", "title": "" }, { "docid": "c0738915c788baa87ae7b9252be5a47d", "score": "0.5311054", "text": "public function getInvitationEmail();", "title": "" }, { "docid": "6c5702d19c23e2ed8bd96e3dadb64b24", "score": "0.5309837", "text": "public function getSenderId();", "title": "" }, { "docid": "0ef7180fb499b0da7755ea9a8890362d", "score": "0.5307887", "text": "private function getId() {\n $url = $this -> url;\n $pattern = '%^# Match any youtube URL\n (?:https?://)? # Optional scheme. Either http or https\n (?:www\\.)? # Optional www subdomain\n (?: # Group host alternatives\n youtu\\.be/ # Either youtu.be,\n | youtube\\.com # or youtube.com\n (?: # Group path alternatives\n /embed/ # Either /embed/\n | /v/ # or /v/\n | /watch\\?v= # or /watch\\?v=\n ) # End path alternatives.\n ) # End host alternatives.\n ([\\w-]{10,12}) # Allow 10-12 for 11 char youtube id.\n $%x';\n $result = preg_match($pattern, $url, $matches);\n if (false !== $result) {\n return $matches[1];\n }\n return '';\n }", "title": "" }, { "docid": "7bf715f739c3b299d152a751240423c8", "score": "0.5303811", "text": "public function getEmail() : String\r\n {\r\n return $this->_email;\r\n }", "title": "" } ]
41c0d76d781a2acb0b6151ad5e855127
(PECL imagick 2.0.0) Returns the chromaticity white point
[ { "docid": "4ef5d0a494be46a38b28258468788dba", "score": "0.6414132", "text": "public function getImageWhitePoint () {}", "title": "" } ]
[ { "docid": "67826dbdbf89e5cab080a7fc8d4937ad", "score": "0.5779197", "text": "public function getImageGamma () {}", "title": "" }, { "docid": "19ce8654bb359f0f9723d413a8d95581", "score": "0.567615", "text": "public function getImageGreenPrimary () {}", "title": "" }, { "docid": "7b8a5d0a7c9427ae7741a49b446e62d4", "score": "0.56546557", "text": "public function getImageAlphaChannel () {}", "title": "" }, { "docid": "f04caa869b1a6d980821870bc5cd08b1", "score": "0.5572713", "text": "public function lightnessMin(){\n return RGB::create('0,0,0')->lightness();\n }", "title": "" }, { "docid": "2a08597fa6d57d27300520a64ac66976", "score": "0.55460703", "text": "function imagecolorexact($image, $red, $green, $blue)\n{\n return 0;\n}", "title": "" }, { "docid": "72114626bb5f69dc959bee0c04cb4c4d", "score": "0.55081785", "text": "function luminosity() {\n\t\treturn ($this->r*0.6+$this->g+$this->b*0.3)/1.9;\n\t}", "title": "" }, { "docid": "96e86a5eeff4446b3fe2daa7d7dbefb7", "score": "0.5508015", "text": "static function isWhite($image, $x, $y, $threshold = 90) {\n\n\t\t\tif ($x > $image->getImageWidth()) return 0;\n\t\t\tif ($y > $image->getImageHeight()) return 0;\n\n\t\t\t$pixel = $image->getImagePixelColor($x, $y)->getColor();\n\n\t\t\tif (($pixel['r'] > $threshold) &&\n\t\t\t\t($pixel['g'] > $threshold) &&\n\t\t\t\t($pixel['b'] > $threshold)) return 1;\n\n\t\t\treturn 0;\n\t\t}", "title": "" }, { "docid": "96fdf5dbbaf126fd9696b8c8de67701f", "score": "0.54934734", "text": "public function levelImage ($blackPoint, $gamma, $whitePoint, $channel = Imagick::CHANNEL_ALL) {}", "title": "" }, { "docid": "b14fe1ca921f6f9b34dd190fc9b96be6", "score": "0.54149073", "text": "function yiq_contrast($hexcolor){\r\n\t$r1 = hexdec(substr($hexcolor,0,2));\r\n\t$g1 = hexdec(substr($hexcolor,2,2));\r\n\t$b1 = hexdec(substr($hexcolor,4,2));\r\n\r\n\t$yiq = (($r1*299)+($g1*587)+($b1*114))/1000;\r\n\tif($yiq >= 128){ return 'black'; } else { return 'white'; }\r\n\r\n}", "title": "" }, { "docid": "f3016913e37e67344377a12a5d493ef0", "score": "0.5391349", "text": "function imagecolorexact($image,$red,$green,$blue)\n{\n\treturn 0;\n}", "title": "" }, { "docid": "cabcdea06e173e8fd49517c25b1429da", "score": "0.5372261", "text": "public function getDisplayColorMin();", "title": "" }, { "docid": "0f38ad8b399b956865b15128f0ea46b6", "score": "0.53697306", "text": "public function getImageMatteColor () {}", "title": "" }, { "docid": "0de01ca72c28d9d505fb337d380dee91", "score": "0.53491163", "text": "function imagecolorat($image,$x,$y)\n{\n\treturn 0;\n}", "title": "" }, { "docid": "ace28774e6381ac0767f8ba60b2f4ead", "score": "0.5332382", "text": "public function getImageColorspace () {}", "title": "" }, { "docid": "8df0a00b9ab8a134333e4958b1fe4516", "score": "0.5330058", "text": "function imagecolorclosesthwb($image,$red,$green,$blue)\n{\n\treturn 0;\n}", "title": "" }, { "docid": "3e88af1e6664d967509dd1a70e0fbd89", "score": "0.5326917", "text": "public function getColour(): string|null;", "title": "" }, { "docid": "62256e103979fc3816e531ad1d867d51", "score": "0.5322368", "text": "function imagecolorclosesthwb($image, $red, $green, $blue)\n{\n return 0;\n}", "title": "" }, { "docid": "7f38b354e6829fd66cd674003c3422f5", "score": "0.5314732", "text": "public function getWhite() {\r\n\t\treturn $this->_white;\r\n\t}", "title": "" }, { "docid": "128fe0cf58bdabdfe3b884dd8597b9e4", "score": "0.53086776", "text": "function lightness() {\n\t\treturn ($this->r+$this->g+$this->b)/3;\n\t}", "title": "" }, { "docid": "7533ba8200c24fbc0e125c489d0cb634", "score": "0.52808726", "text": "public function getSupportColor()\n {\n return ($this->data['color_mode'] == 'colour') ? true : false;\n }", "title": "" }, { "docid": "a975518baeb1f54e22fd1acc9b0d1c01", "score": "0.5280567", "text": "public function contrastImage ($sharpen) {}", "title": "" }, { "docid": "3b87536fc4d1e8d71a6e50f7228bab96", "score": "0.52734077", "text": "public function getChannelPoint()\n {\n return $this->channel_point;\n }", "title": "" }, { "docid": "3b87536fc4d1e8d71a6e50f7228bab96", "score": "0.52734077", "text": "public function getChannelPoint()\n {\n return $this->channel_point;\n }", "title": "" }, { "docid": "84d251074fc083586f1e85f70d377eb8", "score": "0.5268857", "text": "public function getColorCode();", "title": "" }, { "docid": "034663f5d983e01e176a3c9e3ce33593", "score": "0.5240723", "text": "function getwrcolor($input){\t\t\n\t$n = (float)substr($input, 0, strlen($input)-1);\n\tif ($n < 46.0) { return 0; }\n\tif ($n >= 46.0 and $n < 46.5) { return 1; }\n\tif ($n >= 46.5 and $n < 47.5) { return 2; }\n\tif ($n >= 48.5 and $n < 49.5) { return 3; }\n\tif ($n >= 49.5 and $n < 51.5) { return 4; }\n\tif ($n >= 51.5 and $n < 53.5) { return 5; }\n\tif ($n >= 53.5 and $n < 55.5) { return 6; }\n\tif ($n >= 55.5 and $n < 59.5) { return 7; }\n\tif ($n >= 59.5 and $n < 64.5) { return 8; }\n\tif ($n >= 64.5 and $n < 70.5) { return 9; }\n\tif ($n >= 70.5) { return 10; }\n\treturn 0;\n}", "title": "" }, { "docid": "45019f5b46e7610c9a3648ea336059c1", "score": "0.52221954", "text": "function get_powerbar_color($power, $img){\r\n\tif($power >= 60 && $power < 80){\r\n\t\t$c = imagecolorallocate($img, 0, 0, 249);\r\n\t}\r\n\telseif($power >= 40 && $power < 60){\r\n\t\t$c = imagecolorallocate($img, 255, 255, 0);\r\n\t}\r\n\telseif($power >= 20 && $power < 40){\r\n\t\t$c = imagecolorallocate($img, 255, 164, 0);\r\n\t}\r\n\telseif($power >= 0 && $power < 20){\r\n\t\t$c = imagecolorallocate($img, 252, 3, 0);\r\n\t}\r\n\telse{\r\n\t\t$c = imagecolorallocate($img, 1, 128, 1);\r\n\t}\r\n\t\r\n\treturn $c;\r\n}", "title": "" }, { "docid": "045625e41269957d4036578f350b8968", "score": "0.52187985", "text": "public function rgbMode() {\n\t}", "title": "" }, { "docid": "6075cbae6eb22c87ba0e58621b1083e9", "score": "0.52184683", "text": "function imagecolorat($image, $x, $y)\n{\n return 0;\n}", "title": "" }, { "docid": "831270841228f5a1e35e155bd711bf7f", "score": "0.52005845", "text": "FUNCTION black()\n{\n\tGLOBAL $image;\n\tRETURN imagecolorallocate($image, RAND(0,255),RAND(0,255),RAND(0,255));\n}", "title": "" }, { "docid": "cb6debbaf38e9cefa431a711966cbe23", "score": "0.51910836", "text": "public function getBurritoChileColor(): string {\n\t\treturn ($this->burritoChileColor);\n\t}", "title": "" }, { "docid": "2c8af435b56113407ed7b3e40c7d2295", "score": "0.51775867", "text": "public function getBaseColorSpace()\n {\n return $this->_baseColorSpace;\n }", "title": "" }, { "docid": "8c6fc4e79857714d8195446eafc2267b", "score": "0.5172837", "text": "public function getColorOfCurrentPixel()\n {\n return $this->_currentColor;\n }", "title": "" }, { "docid": "c56a8c095e8eaa6441ae9abb43657ce6", "score": "0.51702774", "text": "function cinzaNormal()\n\t{\n\t\timagefilter($this->img, IMG_FILTER_GRAYSCALE);\n\t\treturn $this->img;\n\t}", "title": "" }, { "docid": "1374e1e591cad401fc8e9b2e91f76d15", "score": "0.5165905", "text": "function imagecolorexactalpha($image,$red,$green,$blue,$alpha)\n{\n\treturn 0;\n}", "title": "" }, { "docid": "6d75cbedf1c1e88629e113a2b61182ba", "score": "0.51538855", "text": "public function getImageRedPrimary () {}", "title": "" }, { "docid": "964fc324b6a9609c58aa7244ffd287f8", "score": "0.514579", "text": "function sepiaNormal()\n\t{\n\t\t$sx = imagesx($this->img);\n\t\t$sy = imagesy($this->img);\n\t\tfor ($x = 0; $x < $sx; ++$x)\n\t\t{\n\t\t\tfor ($y = 0; $y < $sy; ++$y)\n\t\t\t{\n\t\t\t\t$rgb = imagecolorat($this->img, $x, $y);\n\t\t\t\t$n = min(255,abs((($rgb >> 16) & 0xFF) * .229 + (($rgb >> 8) & 0xFF) * .587 + ($rgb & 0xFF) * .114) + 3);\n\t\t\t\t$r = min(255,$n + 80);\n\t\t\t\t$g = min(255,$n + 43);\n\t\t\t\t$b = min(255,$n - 23);\n\t\t\t\timagesetpixel($this->img, $x, $y, imagecolorallocate($this->img, $r, $g, $b));\n\t\t\t}\n\t\t}\n\t\treturn $this->img;\n\t}", "title": "" }, { "docid": "9b298615f4f735d976c6b6b0a43b6871", "score": "0.51384157", "text": "function imagecolorexactalpha($image, $red, $green, $blue, $alpha)\n{\n return 0;\n}", "title": "" }, { "docid": "71305f93ad10a75d0005d09469d04bfd", "score": "0.5132826", "text": "public function getImagePixelColor ($x, $y) {}", "title": "" }, { "docid": "928c7ec6f10fd80547b714d9ba1728f0", "score": "0.5127204", "text": "public function whiteThresholdImage ($threshold) {}", "title": "" }, { "docid": "6abbf1b50bc4b31c139b9220f730c1a5", "score": "0.5125176", "text": "public function getColorQuantum() { }", "title": "" }, { "docid": "ed97d1aa24ec9b20e1cb7bcdd222f3fe", "score": "0.5116477", "text": "public function contrastStretchImage ($black_point, $white_point, $channel = Imagick::CHANNEL_ALL) {}", "title": "" }, { "docid": "6ef6567fbd9e951dfa80eeff957173e0", "score": "0.51122624", "text": "public function noiseColor()\r\n\t{\r\n\t\t[$red, $green, $blue] = $this->hexToRgb(self::CAPTCHA_NOISE_COLOR);\r\n\t\t$this->image_noise_color = imagecolorallocate(\r\n\t\t\t$this->captcha_image,\r\n\t\t\t$red,\r\n\t\t\t$green,\r\n\t\t\t$blue\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "837f32fefdb92909d91c804faa0e7939", "score": "0.51095253", "text": "function get_color()\n\t{\n\t\t$vert = new vertex(\n\t\t\tfloor(127*round($this->x,FLOAT_PRECISION))+128,\n\t\t\tfloor(127*round($this->y,FLOAT_PRECISION))+128,\n\t\t\tfloor(127*round($this->z,FLOAT_PRECISION))+128\n\t\t);\n\t\tif($vert->x > 255) $vert->x = 255;\n\t\tif($vert->y > 255) $vert->y = 255;\n\t\tif($vert->z > 255) $vert->z = 255;\n\t\t\n\t\tif($vert->x < 0) $vert->x = 0;\n\t\tif($vert->y < 0) $vert->y = 0;\n\t\tif($vert->z < 0) $vert->z = 0;\n\t\t\n\t\treturn $vert;\n\t}", "title": "" }, { "docid": "fe0233dcdcf771b5c2acb823576b352d", "score": "0.51025045", "text": "public function grayscale()\n\t{\n\t\treturn imagefilter( $this->image->getResource(), IMG_FILTER_GRAYSCALE );\n\t}", "title": "" }, { "docid": "c79f401e573db761cf5c381b08d43ecb", "score": "0.51008826", "text": "public function getColorspace () {}", "title": "" }, { "docid": "34a11f021f0da463d45fd8d8e543aea3", "score": "0.5099457", "text": "public function charcoalImage ($radius, $sigma) {}", "title": "" }, { "docid": "badc33a56c6e9a313f84ce11815369eb", "score": "0.50955814", "text": "function genesis_sample_color_contrast( $color ) {\n\n\t$hexcolor = str_replace( '#', '', $color );\n\t$red = hexdec( substr( $hexcolor, 0, 2 ) );\n\t$green = hexdec( substr( $hexcolor, 2, 2 ) );\n\t$blue = hexdec( substr( $hexcolor, 4, 2 ) );\n\n\t$luminosity = ( ( $red * 0.2126 ) + ( $green * 0.7152 ) + ( $blue * 0.0722 ) );\n\n\treturn ( $luminosity > 128 ) ? '#333333' : '#ffffff';\n\n}", "title": "" }, { "docid": "4fb975c054e9a9d1913b06d2267c4e70", "score": "0.509368", "text": "function wc_hex_is_light($color)\n {\n }", "title": "" }, { "docid": "c54e522aafbb2e6cc5bede4eb2951648", "score": "0.50911254", "text": "function imagecolorstotal($image)\n{\n return 0;\n}", "title": "" }, { "docid": "fc947c1acc0edd431f7c1abaa90ab20b", "score": "0.50884724", "text": "public function getCrimeGeometry() {\n\t\treturn ($this->crimeGeometry);\n\t}", "title": "" }, { "docid": "e38354ca4e464d595703cd4f7e275567", "score": "0.50686127", "text": "public function getDominantColors($image){\r\n\t\tif( file_exists($image) ){\r\n\t\t\t$size = getimagesize($image);\r\n\t\t\t\r\n\t\t\t$scale=1;\r\n\t\t\tif( $size[0] > 0 ){\r\n\t\t\t\t$scale = min(150 / $size[0], 150 / $size[1]);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tif( $scale < 1 ){\r\n\t\t\t\t$width = floor($scale * $size[0]);\r\n\t\t\t\t$height = floor($scale * $size[1]);\r\n\t\t\t}\telse {\r\n\t\t\t\t$width = $size[0];\r\n\t\t\t\t$height = $size[1];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$resizedImage = imagecreatetruecolor($width, $height);\r\n\t\t\t\r\n\t\t\tswitch( $size[2] ){\r\n\t\t\t\tcase IMAGETYPE_GIF:\r\n\t\t\t\t\t$originalImage = imagecreatefromgif($image);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase IMAGETYPE_JPEG:\r\n\t\t\t\t\t$originalImage = imagecreatefromjpeg($image);\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\tcase IMAGETYPE_PNG:\r\n\t\t\t\t\t$originalImage = imagecreatefrompng($image);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\timagecopyresized($resizedImage, $originalImage, 0, 0, 0, 0, $width, $height, $size[0], $size[1]);\r\n\t\t\t\r\n\t\t\t$hexArray = array();\r\n\t\t\tfor( $y=0; $y < imagesy($resizedImage); $y++ ){\r\n\t\t\t\tfor( $x=0; $x < imagesx($resizedImage); $x++ ){\r\n\t\t\t\t\t$index = imagecolorat($resizedImage, $x, $y);\r\n\t\t\t\t\t$colors = imagecolorsforindex($resizedImage, $index);\r\n\t\t\t\t\t$colors['red' ] = intval((($colors['red']) + 15) / 32) * 32;\r\n\t\t\t\t\t$colors['green'] = intval((($colors['green']) + 15) / 32) * 32;\r\n\t\t\t\t\t$colors['blue'] = intval((($colors['blue']) + 15) / 32) * 32;\r\n\t\t\t\t\t\r\n\t\t\t\t\tforeach( array('red', 'green', 'blue') as $colorName ){\r\n\t\t\t\t\t\tif( $colors[$colorName] >= 256 ){\r\n\t\t\t\t\t\t\t$colors[$colorName] = 240;\r\n\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\t$hexArray[] = substr('0'.dechex($colors['red']), -2).substr('0'.dechex($colors['green']), -2).substr('0'.dechex($colors['blue']), -2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$hexArray = array_count_values($hexArray);\r\n\t\t\tnatsort($hexArray);\r\n\t\t\t$hexArray = array_reverse($hexArray, true);\r\n\t\t\t\r\n\t\t\treturn $hexArray;\r\n\t\t} else {\r\n\t\t\t$this->throwModuleException(__FUNCTION__.': io-error, file not found');\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9c87e12734b84a0b01fc9ee251b6403b", "score": "0.5065823", "text": "public function getGreenByte ()\n {\n return $this->green;\n }", "title": "" }, { "docid": "4d2d2cd3c41f8171d866d860c7aa8ce4", "score": "0.50459665", "text": "public function getOppositeColour()\n {\n return ($this->isWhite() ? AChessman::COLOUR_BLACK : AChessman::COLOUR_WHITE);\n }", "title": "" }, { "docid": "62e2ba34564f6147ee216232e5baaf7b", "score": "0.50409776", "text": "public function darkBoost();", "title": "" }, { "docid": "fa6aade3369d2c2e3a74156e72360128", "score": "0.5037045", "text": "public function textColorSoft(){\n if( $this->isLight() ){\n return $this->toRGB()->brightness(-55)->toHex()->shorten();\n } else {\n return $this->toRGB()->brightness(60)->toHex()->shorten();\n }\n }", "title": "" }, { "docid": "7bb0f1b09180c241cff67994b59267ef", "score": "0.50368494", "text": "public function getColor();", "title": "" }, { "docid": "7bb0f1b09180c241cff67994b59267ef", "score": "0.50368494", "text": "public function getColor();", "title": "" }, { "docid": "7ffd3569c60479b8da4bf8c5bdcda7e7", "score": "0.50310487", "text": "public function getColour()\n {\n return $this->colour;\n }", "title": "" }, { "docid": "a21d3e04710db06b177b4d3241f02f66", "score": "0.5029357", "text": "public function getImageBluePrimary () {}", "title": "" }, { "docid": "8c75c4c579cbed8bae5af91ea8a68001", "score": "0.5018156", "text": "public function toXyz()\n {\n $rgb = $this->toRgbInt();\n \n // Normalize RGB values to 1\n $rgb = array_map(function($item){\n return $item / 255;\n }, $rgb);\n \n $rgb = array_map(function($item){\n if ($item > 0.04045) {\n $item = pow((($item + 0.055) / 1.055), 2.4);\n } else {\n $item = $item / 12.92;\n }\n return ($item * 100);\n }, $rgb);\n \n //Observer. = 2°, Illuminant = D65\n $xyz = array(\n 'x' => ($rgb['red'] * 0.4124) + ($rgb['green'] * 0.3576) + ($rgb['blue'] * 0.1805),\n 'y' => ($rgb['red'] * 0.2126) + ($rgb['green'] * 0.7152) + ($rgb['blue'] * 0.0722),\n 'z' => ($rgb['red'] * 0.0193) + ($rgb['green'] * 0.1192) + ($rgb['blue'] * 0.9505)\n );\n \n return $xyz;\n }", "title": "" }, { "docid": "8cdac711654d679b4bfeece4d867921c", "score": "0.49837166", "text": "function get_color($poucentage, $mini = 0, $max = 100)\n{\n $valeur = (int) $poucentage - $mini;\n $div = $max - $mini;\n if ($div < 1) $div = 1;\n $couleur = 255 - ($valeur * 255 / ($div));\n if ($couleur > 16) $couleur = dechex($couleur);\n else $couleur = \"0\" . dechex($couleur);\n $couleurHexa = \"FF\" . $couleur . $couleur;\n return $couleurHexa;\n}", "title": "" }, { "docid": "3a866f17167d63c43cf27820e5d0696f", "score": "0.49744976", "text": "function imagecolorstotal($image)\n{\n\treturn 0;\n}", "title": "" }, { "docid": "38f2e8c7ae7f086a1271faf211fd024b", "score": "0.497257", "text": "protected function convertToTrueColor()\n {\n }", "title": "" }, { "docid": "9913ffb797a1bae18fdf87ece43de143", "score": "0.49692538", "text": "public function vignetteImage ($blackPoint, $whitePoint, $x, $y) {}", "title": "" }, { "docid": "f1e39d842062a731d71d47c62fcd7801", "score": "0.49678823", "text": "public function toCMY()\n {\n return $this->toRGB()->toCMY();\n }", "title": "" }, { "docid": "28a7406762643fd158f45914d814cfc0", "score": "0.49645635", "text": "public function luma()\n {\n return (0.30 * $this->r +\n 0.59 * $this->g +\n 0.11 * $this->b) / 255;\n }", "title": "" }, { "docid": "354a9a073e836fc9320a4a8a2fc3273c", "score": "0.4958724", "text": "public function color();", "title": "" }, { "docid": "6ed74b7a43dafc582a57bf8fbd7bfbbd", "score": "0.49576306", "text": "public static function grayscale() {\n\t\treturn static::instance ()->grayscale ();\n\t}", "title": "" }, { "docid": "2877b8fa9c16b9f9ac9af819ba08ab88", "score": "0.4952958", "text": "public function lightnessMax(){\n return RGB::create('255,255,255')->lightness();\n }", "title": "" }, { "docid": "408e8a200a8289fdece5475020e01290", "score": "0.49396914", "text": "function Coche(){\n $this->color = \"\";\n $this->ruedas = 4;\n $this->motor = 1600;\n }", "title": "" }, { "docid": "af77056ca1d77275d9fb1bd19123948f", "score": "0.49373892", "text": "function imagecolorclosestalpha($image,$red,$green,$blue,$alpha)\n{\n\treturn 0;\n}", "title": "" }, { "docid": "a98084b50d0fa3f7a7ff089b9044988a", "score": "0.4926262", "text": "function imageistruecolor($image)\n{\n return true;\n}", "title": "" }, { "docid": "aada188ace6913b9e08ad72583942989", "score": "0.49186084", "text": "function getGd($image) {\n\t\tif ($image instanceof ImageResource) {\n\t\t\t$image=$image->getResource();\n\t\t}\n\t\treturn imagecolorallocatealpha($image, $this->r*255, $this->g*255, $this->b*255, (1-$this->a)*127 );\n\t}", "title": "" }, { "docid": "247943c31dbb0f968fdd72fdb2016abf", "score": "0.49181846", "text": "function getCalibratedCVP($rawValue,$sid)\n{\n\t$error=false;\n\t\n\t$db = new Db();\n\t$pq=\"SELECT pix0 , pix10 FROM `screenshot` WHERE idscreenshot=\".$sid;\n\t$rr=$db->select($pq);\n\t$rn = count($rr,COUNT_NORMAL);\n\tif($rn>0)\n\t{\n\t\t$p0=$rr[0]['pix0'];\n\t\t$p10=$rr[0]['pix10'];\n\t}else{\n\t\t//Come gestiamo?\n\t\t$error=true;\n\t}\n\t$press2pix=($p0-$p10)/10;\n\tif($error)return false;\n\t$calibrated=($p0-$rawValue)/$press2pix;\n\treturn $calibrated;\n\n}", "title": "" }, { "docid": "d8dddd1d32fe6ca49b0c2dd8956df7dc", "score": "0.49180925", "text": "public function getEyeColor()\n {\n $value = $this->get(self::EYECOLOR);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "5ea8150d6615c5bb8d019bd146b047c1", "score": "0.49157512", "text": "public function getImageChannelStatistics () {}", "title": "" }, { "docid": "caf694e2128bdf4048c64edd58bf3f49", "score": "0.4911361", "text": "public function obtainCape()\n {\n }", "title": "" }, { "docid": "b3e46718d2a3269986fbfa25f3450c5c", "score": "0.4900058", "text": "function imagecreatetruecolor($x,$y)\n{\n\treturn array();\n}", "title": "" }, { "docid": "9a558ba6881e0134033098342237580f", "score": "0.4898806", "text": "function getPieceCharForImage($piece)\r\n{\r\n\tswitch($piece & COLOR_MASK)\r\n\t{\r\n\t\tcase PAWN:\r\n\t\t\t$name = \"p\";\r\n\t\t\tbreak;\r\n\t\tcase KNIGHT:\r\n\t\t\t$name = \"n\";\r\n\t\t\tbreak;\r\n\t\tcase BISHOP:\r\n\t\t\t$name = \"b\";\r\n\t\t\tbreak;\r\n\t\tcase ROOK:\r\n\t\t\t$name = \"r\";\r\n\t\t\tbreak;\r\n\t\tcase QUEEN:\r\n\t\t\t$name = \"q\";\r\n\t\t\tbreak;\r\n\t\tcase KING:\r\n\t\t\t$name = \"k\";\r\n\t\t\tbreak;\r\n\t}\r\n\r\n\treturn $name;\r\n}", "title": "" }, { "docid": "8c045297a333a7c224150981b045096d", "score": "0.48914298", "text": "function Infrared($noise = 20)\n\t{\n\t\tfor ($x = 0; $x <$this->ImageWidth(); ++$x)\n\t\t{\n\t\t\tfor ($y = 0; $y <$this->ImageHeight(); ++$y)\n\t\t\t{\n\t\t\t\t$rgb = imagecolorat($this->ImageID, $x, $y);\n\t\t\t\t$red = ($rgb >> 16) & 0xFF;\n\t\t\t\t$green = ($rgb >> 8) & 0xFF;\n\t\t\t\t$blue = $rgb & 0xFF;\n\t\t\t\t$modifier = rand(-$noise, $noise);\n\t\t\t\t$gray = (int)((($red + $green + $blue) / 3) + $modifier);\n\t\t\t\t$green = $gray + 60;\n\t\t\t\tif ($gray > 255)\n\t\t\t\t{\n\t\t\t\t\t$gray = 255;\n\t\t\t\t}\n\t\t\t\tif ($green > 255)\n\t\t\t\t{\n\t\t\t\t\t$green = 255;\n\t\t\t\t}\n\t\t\t\tif ($gray < 0)\n\t\t\t\t{\n\t\t\t\t\t$gray = 0;\n\t\t\t\t}\n\t\t\t\tif ($green < 0)\n\t\t\t\t{\n\t\t\t\t\t$green = 0;\n\t\t\t\t}\n\t\t\t\t$newcol = imagecolorallocate($this->ImageID, $gray,$green,$gray);\n\t\t\t\timagesetpixel($this->ImageID, $x, $y, $newcol);\n\t\t\t}\n\t\t}\n\t\t$this->ChangeFlag = true;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "4aee777b5bafe63b6329f600f874fd58", "score": "0.48781073", "text": "private static function contrast($hex)\n {\n if($hex <= 3)\n {\n $longHex = $hex[0].$hex[0].$hex[1].$hex[1].$hex[2].$hex[2];\n $brightness = self::colourBrightness($longHex);\n }\n else\n {\n $brightness = self::colourBrightness($hex);\n }\n if( $brightness > 130)\n {\n return '000000';\n }\n else\n {\n return 'ffffff';\n }\n }", "title": "" }, { "docid": "f6eec8eae0017ac69edcf7a49e844a7a", "score": "0.48772392", "text": "public function toLabCie()\n {\n $xyz = $this->toXyz();\n \n //Ovserver = 2*, Iluminant=D65\n $xyz['x'] /= 95.047;\n $xyz['y'] /= 100;\n $xyz['z'] /= 108.883;\n \n $xyz = array_map(function($item){\n if ($item > 0.008856) {\n //return $item ^ (1/3);\n return pow($item, 1/3);\n } else {\n return (7.787 * $item) + (16 / 116);\n }\n }, $xyz);\n \n $lab = array(\n 'l' => (116 * $xyz['y']) - 16,\n 'a' => 500 * ($xyz['x'] - $xyz['y']),\n 'b' => 200 * ($xyz['y'] - $xyz['z'])\n );\n \n return $lab;\n }", "title": "" }, { "docid": "dcfc5220735861351dcdc1006d947591", "score": "0.48752788", "text": "function cb_illuminance($illuminance)\n{\n echo \"Illuminance: \" . $illuminance / 10.0 . \" Lux\\n\";\n}", "title": "" }, { "docid": "8ca58da13f506a8b23d697d6857b3e18", "score": "0.48728958", "text": "function get_color($temp,$saturation,$brightness)\n{\n\n\t// Calculate the color Hue\n\t// based on ocean temp\n\t// \n\t// Range = 32 (low) -> 78 (high)\n\t// 46 color values\n\t// 78 should be 1 (red)\n\t// 32 should be 270 (blue)\n\t\n\t$temp_mod = 49 - ($temp - 32);\n\t$hue = round((270 * $temp_mod)/49);\n\tif ($hue <= 0) $hue = 1;\n\t//$saturation = .75;\n\t// Set brightness to 100%\n\t//$brightness = .75;\n\t\n\t// echo \"Hue:\" . $hue . \"<br>\";\n\t\n\t// Calculate the HEX color\n\t$hex = hsv2hex ($hue, $saturation, $brightness);\n\n\treturn $hex;\n\n}", "title": "" }, { "docid": "15d6d2ae0fb0fc9a15c9e4ee19424582", "score": "0.48710206", "text": "function imagecolorclosest($image, $red, $green, $blue)\n{\n return 0;\n}", "title": "" }, { "docid": "17f7c82c57cab7dbd930b62fd9f095b8", "score": "0.48686638", "text": "function _get_image_color($im, $r, $g, $b) {\n\t\t$c=imagecolorexact($im, $r, $g, $b);\n\t\tif ($c!=-1) return $c;\n\t\t$c=imagecolorallocate($im, $r, $g, $b);\n\t\tif ($c!=-1) return $c;\n\t\treturn imagecolorclosest($im, $r, $g, $b);\n\t}", "title": "" }, { "docid": "b7279f382fd48fbb9e6b01511d7aa88c", "score": "0.48677665", "text": "public function getColor()\n {\n // Busca en esta clase la propiedad X\n return $this->color;\n }", "title": "" }, { "docid": "3c72bfa0cd356ac6c0f90b62c1ebc5fb", "score": "0.48663148", "text": "public function sepiaToneImage ($threshold) {}", "title": "" }, { "docid": "d75493a39850961559ae3028a2242d76", "score": "0.4864311", "text": "public function toCIELab()\n {\n $hradi = $this->hue * (pi() / 180);\n $a_dimension = cos($hradi) * $this->chroma;\n $b_dimension = sin($hradi) * $this->chroma;\n return new CIELab($this->lightness, $a_dimension, $b_dimension);\n }", "title": "" }, { "docid": "6c3316b402a465d29525b445a2f5ac04", "score": "0.48596382", "text": "function imagecolorclosestalpha($image, $red, $green, $blue, $alpha)\n{\n return 0;\n}", "title": "" }, { "docid": "01b3af57f36a9bfac7b9ea5583233743", "score": "0.4853267", "text": "public function getRGB()\n {\n return $this->value->rgb;\n }", "title": "" }, { "docid": "7f226f1c67fe6138834930affe52dc47", "score": "0.4850054", "text": "function getPixel($x, $y);", "title": "" }, { "docid": "6a192aa989291ab6315ae36009d90119", "score": "0.4847677", "text": "function imagecolorclosest($image,$red,$green,$blue)\n{\n\treturn 0;\n}", "title": "" }, { "docid": "f3e02f7282400d1f5d5c2a42e2c55f1d", "score": "0.48334432", "text": "function _get_image_color($im, $r, $g, $b) {\n\n $c = imagecolorexact($im, $r, $g, $b);\n\n if ($c != -1)\n return $c;\n\n $c = imagecolorallocate($im, $r, $g, $b);\n\n if ($c != -1)\n return $c;\n\n return imagecolorclosest($im, $r, $g, $b);\n }", "title": "" }, { "docid": "3fa1c97e398850c004a7f3a7426d52c7", "score": "0.48328468", "text": "function getBin($deg) {\n global $GRAPH;\n\n if ($GRAPH['rosePoints'] === 8) {\n $bin = floor(($deg + 22.5) / 45) % 8;\n } else {\n $bin = floor(($deg + 11.25) / 22.5) % 16;\n }\n return $GRAPH['compass'][$bin];\n}", "title": "" }, { "docid": "3a8f9be17c621692033703ac94c869ec", "score": "0.4827683", "text": "function readable_colour( $hex ) {\r\n\r\n\t\t$hex = str_replace( '#', '', $hex );\r\n\t\tif ( strlen( $hex ) == 3 ) {\r\n\t\t\t$hex = str_repeat( substr( $hex, 0, 1 ), 2 ) . str_repeat( substr( $hex, 1, 1 ), 2 ) . str_repeat( substr( $hex, 2, 1), 2 );\r\n\t\t}\r\n\r\n\t\t$color_parts = str_split( $hex, 2 );\r\n\r\n\t\t$brightness = ( hexdec( $color_parts[0] ) * 0.299 ) + ( hexdec( $color_parts[1] ) * 0.587 ) + ( hexdec( $color_parts[2] ) * 0.114 );\r\n\r\n\t\tif ( $brightness > 128 ) {\r\n\t\t\treturn '#000';\r\n\t\t} else {\r\n\t\t\treturn '#fff';\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "fca5e418b5bfa7125ebc9d54514be74f", "score": "0.48250553", "text": "function get_win_color($w, $l){\r\n\tif($w > 0){\r\n\t\treturn \"red\";\r\n\t}\r\n\telseif($l > 0){\r\n\t\treturn \"blue\";\r\n\t}\r\n\telse{\r\n\t\treturn \"green\";\r\n\t}\r\n}", "title": "" }, { "docid": "c8be25c125edb32216fc17cc9ff96708", "score": "0.48245618", "text": "function calCone($r,$h){\n $resultat=1/3*3.14*$r*$r*$h;\n return $resultat;\n}", "title": "" }, { "docid": "1132fe6cdacc98cfd6a4b7477190f7a0", "score": "0.482426", "text": "function sepiaClara()\n\t{\n\t\t$sx = imagesx($this->img);\n\t\t$sy = imagesy($this->img);\n\t\tfor ($x = 0; $x < $sx; ++$x)\n\t\t{\n\t\t\tfor ($y = 0; $y < $sy; ++$y)\n\t\t\t{\n\t\t\t\t$rgb = imagecolorat($this->img, $x, $y);\n\t\t\t\t$n = min(255,abs((($rgb >> 16) & 0xFF) * .229 + (($rgb >> 8) & 0xFF) * .587 + ($rgb & 0xFF) * .114) + 20);\n\t\t\t\t$r = min(255,$n + 80);\n\t\t\t\t$g = min(255,$n + 43);\n\t\t\t\t$b = min(255,$n - 23);\n\t\t\t\timagesetpixel($this->img, $x, $y, imagecolorallocate($this->img, $r, $g, $b));\n\t\t\t}\n\t\t}\n\t\treturn $this->img;\n\t}", "title": "" }, { "docid": "3f5fdf43df600f0fcc5c3ac3366023f0", "score": "0.48241764", "text": "public function toHSV(){\n return $this->toRGB()->toHSV();\n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "d3a98e8be209ef91cba7e2d7836f261c", "score": "0.0", "text": "public function create()\n {\n return view('admin.menuSection.create');\n }", "title": "" } ]
[ { "docid": "2aaf2ecaef4fe756e441fbe5133d649b", "score": "0.77659076", "text": "public function create()\n {\n return view('resource::create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "09a06518682f649f50825ae03a5f02c5", "score": "0.74312615", "text": "public function create(Resource $resource)\n {\n \n return view('resources.create', compact('resource'));\n }", "title": "" }, { "docid": "0040811f91da2137388f5b25ff0b7003", "score": "0.74040693", "text": "public function create()\n {\n // we don't need the create method which will show a frontend of forms\n }", "title": "" }, { "docid": "eefd3a34279d87bd94753b0beae69b0d", "score": "0.7391348", "text": "public function create()\n {\n return view('humanresources::create');\n }", "title": "" }, { "docid": "59acf613824f0c3b37aa55dc50605250", "score": "0.7295752", "text": "public function create()\n {\n // Get the form options\n $options = method_exists($this, 'formOptions') ? $this->formOptions() : [];\n\n // Render create view\n return $this->content('create', $options);\n }", "title": "" }, { "docid": "9332c37244dbc51a6ec587579d9cd246", "score": "0.72882813", "text": "public function create()\n {\n //\n return view('forms.create');\n }", "title": "" }, { "docid": "97f8d4d6f5ca725cf3e66f545b385fc5", "score": "0.7287024", "text": "public function create()\n {\n return view('formation.add-form');\n }", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72783977", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "43b99da6b88bf413a5a649ba3a67015e", "score": "0.72783977", "text": "public function create()\n\t{\n\t\treturn view($this->views . '.form')->with('obj', $this->model);\n\t}", "title": "" }, { "docid": "241815ede3de07346cdc5dd5223c3297", "score": "0.7277652", "text": "public function create()\n {\n return view(\"pengeluaran.form\");\n }", "title": "" }, { "docid": "3068f5b3c0dfff179b7c9ecffe939b5b", "score": "0.72379696", "text": "public function create()\n {\n $countries = Country::all();\n $roles = Role::all();\n $pageTitle = trans(config('dashboard.trans_file').'add_new');\n $submitFormRoute = route('admins.store');\n $submitFormMethod = 'post';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('countries', 'roles', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "38ecc75a4d6989a8b4f4e8399b531681", "score": "0.7215714", "text": "public function create()\n {\n //\n return view('admin.forms.create');\n }", "title": "" }, { "docid": "2ba4890e70df9cc5460b64bc519b7725", "score": "0.7213451", "text": "public function actionCreate() {\n $model = new Form();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->form_id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "53f6a6cabd482a9ba582ca823a9212fc", "score": "0.72079307", "text": "public function actionCreate()\n {\n $model=new Resources;\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if(isset($_POST['Resources']))\n {\n $model->attributes=$_POST['Resources'];\n $model->created_at = date(\"Y-m-d H:i:s\");\n $model->modified_at = date(\"Y-m-d H:i:s\");\n if($model->is_available == \"on\"){\n $model->is_available = 1;\n }\n else{\n $model->is_available = 0;\n }\n if($model->save())\n $this->redirect(array('view','id'=>$model->resource_id));\n }\n\n $this->render('create',array(\n 'model'=>$model,\n 'from' => \"create\",\n ));\n }", "title": "" }, { "docid": "ec6c48e2a6c77e52e3dd220e9a42790d", "score": "0.72031635", "text": "public function create()\n {\n return view('RequestForms.requestforms.create');\n }", "title": "" }, { "docid": "b85c23612f97bf86113f4c24770e2c90", "score": "0.71800745", "text": "public function create()\n {\n return view('be/forms/add');\n }", "title": "" }, { "docid": "9b078c37b7def3d0aa0936448ea591e4", "score": "0.7176178", "text": "public function form()\n {\n return view('create');\n }", "title": "" }, { "docid": "abcdd6ee800f478cd20431244af3bd42", "score": "0.71643156", "text": "public function newAction()\n {\n $this->view->form = new ClientForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "333b7adf43052fb5d5c8718573f770bd", "score": "0.71619326", "text": "public function create()\r\n {\r\n return view('ask::form');\r\n }", "title": "" }, { "docid": "83a47d90318500ad98cc612ab26fc702", "score": "0.71607125", "text": "public function create(){\n $resourceStatuses = ResourceStatus::orderBy('name', 'ASC')->get();\n $resourceTypes = ResourceType::orderBy('name', 'ASC')->get();\n $dependencies = Dependency::orderBy('name', 'ASC')->get();\n $resourceCategories = ResourceCategory::orderBy('name', 'ASC')->get();\n $physicalStates = PhysicalState::orderBy('name', 'ASC')->get();\n $spaces = Space::orderBy('name', 'ASC')->get();\n\n return view('admin.resources.create_edit')\n ->with('spaces', $spaces)\n ->with('resourceStatuses', $resourceStatuses)\n ->with('resourceTypes', $resourceTypes)\n ->with('dependencies', $dependencies)\n ->with('resourceCategories', $resourceCategories)\n ->with('physicalStates', $physicalStates)\n ->with('title_page', 'Crear nuevo recurso')\n ->with('menu_item', $this->menu_item);\n }", "title": "" }, { "docid": "7f194de3c5c17bb40860b2954fe66227", "score": "0.71606153", "text": "public function create()\n {\n return view('Application_Form/create');\n }", "title": "" }, { "docid": "cdccf0772168a4c3198ad8229762752f", "score": "0.7155322", "text": "public function create()\n {\n return $this->view('form');\n }", "title": "" }, { "docid": "dda7015eff0593458f7e9daeb92389f7", "score": "0.71473134", "text": "public function create()\r\n {\r\n Breadcrumb::title(trans('admin_partner.create'));\r\n return view('admin.partner.create_edit');\r\n }", "title": "" }, { "docid": "b4766fe7cffd9556005a702266efce82", "score": "0.7135474", "text": "public function create()\n {\n return view('luot-choi.form');\n }", "title": "" }, { "docid": "53163536d5d151380894ed516baf152c", "score": "0.71345985", "text": "public function actionCreate() {\n $this->render('create');\n }", "title": "" }, { "docid": "97209db276d73dfc71ffc10ef4a4037f", "score": "0.71315765", "text": "public function create()\n {\n return view('book.form');\n }", "title": "" }, { "docid": "91f24bb86cd15eed211f58196f1d86ae", "score": "0.71308476", "text": "public function create()\n {\n return view('backend.Professor.add');\n }", "title": "" }, { "docid": "c571604fd51a96c35378cece2d31fca9", "score": "0.712255", "text": "public function create()\n {\n return view('component.form');\n }", "title": "" }, { "docid": "d97704263c26734e129cdf5323ff60bc", "score": "0.7120813", "text": "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCResourcePersonBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "title": "" }, { "docid": "11be4c91a1fe4a200ba70320116d65bd", "score": "0.71170485", "text": "public function newAction()\n {\n $entity = new Form();\n $form = $this->createCreateForm($entity);\n\n return $this->render('FormBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "e864dc2fb3b7132697f36b0ed311645c", "score": "0.7115181", "text": "public function create()\n {\n //\n\n $modules = Module::getFormModulesArray();\n\n return view('resources.create', compact('modules'));\n }", "title": "" }, { "docid": "5d55890bc62628c68b42c85ea77e34ab", "score": "0.7111818", "text": "public function create()\n {\n //return the form\n return view('addBrand');\n }", "title": "" }, { "docid": "250053e797e8b6427e70e0bf8a821f82", "score": "0.7103223", "text": "public function create()\n {\n return view('singularForm');\n }", "title": "" }, { "docid": "4ae755f5cddde08f9f196daabb710be5", "score": "0.7102469", "text": "public function create()\n {\n return view('rest.create');\n }", "title": "" }, { "docid": "730158469e1bfb64d8c0b14e02113fed", "score": "0.7092879", "text": "public function create()\n { \n return $this->showForm();\n }", "title": "" }, { "docid": "d1aa4707a9c6ebf5c8103249dbc1a2a3", "score": "0.7087244", "text": "public function create()\n {\n $view = 'create';\n\n $active = $this->active;\n $word = $this->create_word;\n $model = null;\n $select = null;\n $columns = null;\n $actions = null;\n $item = null;\n\n return view('admin.crud.form', compact($this->compact));\n }", "title": "" }, { "docid": "30ab8989b95dcf9d797d22a8cedaf241", "score": "0.70865136", "text": "public function create()\n {\n return view ('walas.form');\n }", "title": "" }, { "docid": "e72578b08d1332567faf884e2c542543", "score": "0.70826364", "text": "public function create()\n {\n //\n return view('Hrm.create');\n }", "title": "" }, { "docid": "1d478e63e74fbe4c05b862772d019539", "score": "0.707235", "text": "public function create()\n\t{\n\t\treturn View::make('referrals.create');\n\t}", "title": "" }, { "docid": "b7d9a98626783303d6641ee55810a61c", "score": "0.70682013", "text": "public function create()\n {\n return view ('mapel.form');\n }", "title": "" }, { "docid": "ef53dfc7738110e45d9007d473bd71d5", "score": "0.70573217", "text": "public function newAction()\n {\n $user = $this->getUser();\n $entity = new Program();\n $form = $this->createCreateForm($entity);\n\n return $this->render('SifoAdminBundle:new:layout.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'user' => $user,\n ));\n }", "title": "" }, { "docid": "a3472bb62fbfd95113a02e6ab298fb16", "score": "0.705323", "text": "public function create()\n {\n return view('admin.new.create');\n }", "title": "" }, { "docid": "c69f303d7cafa0864b25b452417d3c13", "score": "0.70510703", "text": "public function create()\n\t{\n\t\treturn view('actions.create');\n\t}", "title": "" }, { "docid": "24de1eba4953f740bc6a118cfe591c83", "score": "0.70484626", "text": "public function create()\n\t{\n\t\treturn view('terapis.create');\n\t}", "title": "" }, { "docid": "620ab4a3a65ec50a3ce7567f8eb824b6", "score": "0.70416564", "text": "public function create()\n {\n return view('periode.form', ['action' => 'create']);\n }", "title": "" }, { "docid": "f6a3aae712481bebdb682e358afe1838", "score": "0.7037379", "text": "public function create()\n {\n return view('addnew');\n }", "title": "" }, { "docid": "6e681e9ac9f85217033ef4f7a3bbf71a", "score": "0.70288837", "text": "public function new()\n {\n return view('api.create');\n }", "title": "" }, { "docid": "2d5b7eca3b39b1bc57b0ee331b2b4be2", "score": "0.70182526", "text": "public function create()\n {\n return view('cr.create');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "66b746538eaf7a550c7b3a12968b96a6", "score": "0.70147324", "text": "public function create()\n {\n return view('supplier.form');\n }", "title": "" }, { "docid": "815b2bb0c304d8b5c4fe1f4daf2ceec4", "score": "0.7002844", "text": "public function newAction()\n {\n $entity = new Contratos();\n $form = $this->createForm(new ContratosType(), $entity);\n\n return $this->render('ContratosBundle:Contratos:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "352b208a6732c907e34599651886889d", "score": "0.69893515", "text": "public function newAction()\n {\n $entity = new Presupuesto();\n $entity->setFecha(new \\DateTime(\"now\"));\n $form = $this->createForm(new PresupuestoType(), $entity);\n\n return $this->render('SisafBundle:Presupuesto:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c8b3173ebb54a31ce2b94ee2bb8bfa2c", "score": "0.69823664", "text": "public function newAction()\n {\n $this->view->form = new PeliculaForm(null, array('edit' => true));\n }", "title": "" }, { "docid": "186fd4dd8e12d5f9b7757f0a686adc29", "score": "0.6978345", "text": "public function create()\n {\n //\n \n return view('students.add-record');\n }", "title": "" }, { "docid": "ed971a374ffda4f996862b4981ac44db", "score": "0.69768286", "text": "public function create() {\n\n\t\t//Pasamos los datos antiguos del form o un objeto vacio a la vista\n\t\treturn view('balance.entry.insert', [\n\t\t\t'title' \t=> 'Insertar Registro',\n\t\t\t'action' \t=> [\n\t\t\t'name' => 'insert',\n\t\t\t'value' => 'Insertar',\n\t\t\t'route' => '/entry/insert'\n\t\t\t],\n\t\t\t'concepts'\t=> Concepts::all('name', 'id'),\n\t\t\t'entry'\t=> $this->createEntry (old())\n\t\t\t]\n\t\t\t);\n\n\t}", "title": "" }, { "docid": "ac3176c7f03421a5d8485f79ce8a5af7", "score": "0.69745404", "text": "public function create()\n {\n //\n return view('admin.forms.form-produto');\n }", "title": "" }, { "docid": "b448943ed550a7fe66b7e558cb34571d", "score": "0.697418", "text": "public function create()\n {\n\t\treturn view('admin.pages.material-form-create', ['page' => 'material']);\n }", "title": "" }, { "docid": "f552f3b31ae1d146915cc557308d9ddf", "score": "0.6973076", "text": "public function create()\n {\n $controls = [\n [\n 'type' => 'text',\n 'name' => 'title',\n 'title' => 'Название',\n 'placeholder' => 'Введите название'\n ],\n ];\n\n return view('control-form.create', [\n 'title' => 'Добавить новый жанр',\n 'controls' => $controls,\n 'button_title' => 'Все жанры',\n 'button_route' => 'genre.index',\n 'route_store' => 'genre.store',\n ]);\n }", "title": "" }, { "docid": "77f3e1fd596cfdf21d9eae9a8efaa862", "score": "0.69651383", "text": "public function create()\n\t\t{\n\t\t\treturn view('kalender.create');\n\t\t}", "title": "" }, { "docid": "5de84c2126fe48e85ce132c9fbb06f89", "score": "0.69628006", "text": "public function newAction()\n {\n $entity = new Section();\n $form = $this->createForm(new SectionType(), $entity);\n\n return $this->render('OrchestraOrchestraBundle:Section:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c259b246490a579b8d14c75187100711", "score": "0.69576067", "text": "public function create()\n {\n //\n return view(env('THEME').'.form');\n }", "title": "" }, { "docid": "8ed65484ff2ee4c220e635b0137f51c9", "score": "0.69491976", "text": "public function create()\n {\n return view('show.create');\n }", "title": "" }, { "docid": "468549dd2c5b7deb7ef57808ae25eb96", "score": "0.69468784", "text": "public function newAction()\n {\n $entity = new Representation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('DevPCultBundle:Representation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "93bc20f90c626c640e22d48a58c57dc8", "score": "0.6946652", "text": "public function action_new()\n\t{\n\t\t$id = $this->request->param('id');\n\n\t\tif ($id !== null)\n\t\t{\n\t\t\t$this->redirect(Route::url('customer', array('action' => 'edit', 'id' => $id)));\n\t\t} // if\n\n\t\t$model = ORM::factory('Customer');\n\n\t\t$this->content = View::factory('customer/form', array(\n\t\t\t'title' => __('Create new customer'),\n\t\t\t'customer' => $model,\n\t\t\t'properties' => $model->get_properties(),\n\t\t\t'ajax_url' => Route::url('customer', array('action' => 'save'))\n\t\t));\n\t}", "title": "" }, { "docid": "bfc152f36ac3a238d17495dc7b11b127", "score": "0.69463605", "text": "public function create() {\n\t\t//\n\t\treturn view('matakuliah.create');\n\t}", "title": "" }, { "docid": "3646d78424385e5a1829ad7679cf8113", "score": "0.6940157", "text": "public function create()\n {\n abort_if(Gate::denies('user_access'), Response::HTTP_FORBIDDEN, '403 Forbidden');\n $forms = Form::all(['id', 'name']);\n return view('admin.form.create',[\n 'forms' => $forms\n ]);\n }", "title": "" }, { "docid": "d2dfb39011e7751d334f3b102132bcc0", "score": "0.6937871", "text": "public function create()\n {\n return view('libro.create');\n }", "title": "" }, { "docid": "f19095884fa0edb7061608c09bb71e8d", "score": "0.6934648", "text": "public function create()\n {\n return view(static::$resource::uriKey() . '.create');\n }", "title": "" }, { "docid": "c617fff7a1564553ef77993e1b2abce0", "score": "0.6932357", "text": "public function create()\n\t{\n\t\treturn View::make('pertanians.create');\n\t}", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6928802", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "978bcc6315cbc834f3ebe718240ae1d3", "score": "0.6928802", "text": "public function create()\n {\n return view('actions.create');\n }", "title": "" }, { "docid": "a5971cddc1452c95970f26bbe6bb5e6f", "score": "0.6924157", "text": "public function create()\n\t{\n\t\treturn view('baloncestos.create');\n\t}", "title": "" }, { "docid": "5517acddff8c143f08d4836b4e8fd2e3", "score": "0.69231087", "text": "public function create()\n\t{\t\n\n\t\treturn view('karyawan.create');\n\t}", "title": "" }, { "docid": "0b29daaacb3707cc487ca300065d6c2d", "score": "0.6922709", "text": "public function create()\n {\n return view('Admin/product/form');\n }", "title": "" }, { "docid": "c4416390a701ec4941a20dc3ab095a2a", "score": "0.6919174", "text": "public function create()\n\t{\n\t\treturn view('create');\n\t}", "title": "" }, { "docid": "1d6a11dbd501ca5d140d052e376ab852", "score": "0.69172156", "text": "public function create()\n {\n //\n return view('security_form/create');\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.6914271", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "d4c80824a85a6929fc348476de3eca98", "score": "0.69134784", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n return $this->render('StalkAdminBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "48be68f2d9bd5c305c8873ab5aff62d3", "score": "0.69117326", "text": "public function create()\n\t{\n\t\t//\n\n return view ('control.create');\n\t}", "title": "" }, { "docid": "e8cca05e3e15a063aab85a8139089f03", "score": "0.6910168", "text": "public function create()\n\t{\n\t\treturn View::make('actions.create');\n\t}", "title": "" }, { "docid": "9b7a38de3bb00757b81dc1254498c827", "score": "0.6908405", "text": "public function create()\n {\n //\n return view(\"admin.admin.add\");\n }", "title": "" }, { "docid": "5519441f340b7c0a79f84cf3d36493f2", "score": "0.6906029", "text": "public function create()\n {\n return view('bookshelfs.create');\n }", "title": "" }, { "docid": "f608122e33d25f55691c654ca00c5667", "score": "0.690486", "text": "public function create()\n {\n //\n view('backend.form.post');\n }", "title": "" }, { "docid": "e9b252f908807559380ec3e0133efd8e", "score": "0.69030714", "text": "public function create()\n\t{\n\t\treturn view('background.form');\n\t}", "title": "" }, { "docid": "e88b17f0dfcb8e1d7ac04c5b9f6af8f1", "score": "0.6902272", "text": "public function create()\n {\n return view('cars.form');\n }", "title": "" }, { "docid": "0bfd2732af9e7c334472e3d359a90660", "score": "0.6900851", "text": "public function newAction()\r\n {\r\n return view('new::new');\r\n }", "title": "" }, { "docid": "b0e63a1ed98c6d4fef9c0ef1f2d36a46", "score": "0.6900227", "text": "public function create()\n {\n return view('digemid::create');\n }", "title": "" }, { "docid": "a0881f7e221b4df400147e74c85c747d", "score": "0.68980205", "text": "public function create()\n {\n Return View::make(\"manufacture.add\");\n }", "title": "" }, { "docid": "500865703b94c25ca90c99ae01ee90e3", "score": "0.6896493", "text": "public function new()\n {\n $this->denyAccessUnlessGranted('ROLE_ADMIN');\n\n $form = $this->createNewForm(new Relation());\n\n return $this->render('@IntegratedContent/relation/new.html.twig', [\n 'form' => $form->createView(),\n ]);\n }", "title": "" }, { "docid": "b0dd1ae1c23ce5ea02e38a9b85427b1e", "score": "0.68961895", "text": "public function create()\n \t{\n \t\treturn view('terapiobat.create');\n \t}", "title": "" }, { "docid": "1dbd74dcb3f0ceb2fd4fb4fd641e0384", "score": "0.6895091", "text": "public function create()\n {\n return view('backend.instruktur.form');\n }", "title": "" }, { "docid": "8e97605e60c08e7be60f2ce241d8675e", "score": "0.68922514", "text": "public function create()\n {\n return view('administration.create');\n }", "title": "" }, { "docid": "e9341a1375b53713ef8760a5689b525f", "score": "0.68912005", "text": "public function create()\n {\n return view('bookself.create');\n }", "title": "" }, { "docid": "0075ba982bed082bc50bd31893c5082e", "score": "0.6890889", "text": "public function create()\n {\n //\n $BookId = Book::max('id')+1;\n $BookId = \"BOOKID-\".str_pad($BookId, 4, '0', STR_PAD_LEFT);\n\n $data = array(\n 'bookId'=>$BookId,\n 'form'=>\"create\",\n );\n return view('book.form')->with($data);\n }", "title": "" }, { "docid": "6769fe63e35d4f98abe507728065b246", "score": "0.6890337", "text": "public function create()\r\n {\r\n return view('superadmin::create');\r\n }", "title": "" }, { "docid": "b7654a4ac084aa2dc258dde927666f09", "score": "0.68886495", "text": "public function create()\n {\n return view (\"student.create\");\n }", "title": "" } ]
7e1ca2a56fb4cb46a75f7e87f069c51d
/ Function: voidLinkPoint First Data / LinkPoint interface for
[ { "docid": "6f0fb078762c3a67a472b959bce48a4b", "score": "0.4948688", "text": "protected function voidLinkPoint($authorization) {\n\t\t\t$params = array(\n\t\t\t\t\"orderoptions\" => array(\n\t\t\t\t\t\"ordertype\" => \"VOID\"\n\t\t\t\t),\n\t\t\t\t\"transactiondetails\" => array(\n\t\t\t\t\t\"ip\" => $_SERVER[\"REMOTE_ADDR\"],\n\t\t\t\t\t\"oid\" => $authorization\n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\t$response = $this->sendLinkPoint($params);\n\t\t\t\n\t\t\t// Setup response messages.\n\t\t\t$this->Transaction = strval($response->r_ordernum);\n\t\t\t$this->Message = strval($response->r_error);\n\n\t\t\tif (strval($response->r_message) == \"ACCEPTED\") {\n\t\t\t\treturn $this->Transaction;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" } ]
[ { "docid": "2c97800a80b21542ab00aa501c42855d", "score": "0.59383273", "text": "public function link();", "title": "" }, { "docid": "2c97800a80b21542ab00aa501c42855d", "score": "0.59383273", "text": "public function link();", "title": "" }, { "docid": "406f157980d249aeedc268c02de27f16", "score": "0.57517993", "text": "public function getLinkData();", "title": "" }, { "docid": "7b42640198eb3b2f6c86bbfc11400a31", "score": "0.5381883", "text": "public function getLinkDataWithNewLinkType();", "title": "" }, { "docid": "7d020bad55bda8b03bcdcbfb3cffa36c", "score": "0.5360571", "text": "public function LinkToInfo() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ff04ed314996079ea031d4d1b91f38b4", "score": "0.5191944", "text": "public abstract function doBlock(Datapoint $datapoint);", "title": "" }, { "docid": "a68af5aa12a64ab9ead5e80c0740a0f5", "score": "0.5167531", "text": "protected function setupLinkPoint() {\n\t\t\t$this->Store = $this->Settings[\"linkpoint-store\"];\n\t\t\t$this->Environment = $this->Settings[\"linkpoint-environment\"];\n\t\t\t$this->Certificate = SERVER_ROOT.\"custom/certificates/\".$this->Settings[\"linkpoint-certificate\"];\n\n\t\t\tif ($this->Environment == \"test\") {\n\t\t\t\t$this->PostURL = \"https://staging.linkpt.net:1129\";\n\t\t\t} else {\n\t\t\t\t$this->PostURL = \"https://secure.linkpt.net:1129\";\n\t\t\t\t$this->DefaultParameters[\"orderoptions\"] = array(\n\t\t\t\t\t\"result\" => \"live\"\n\t\t\t\t);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "df69a3cc23bc8b87ead78a0276c7d8fd", "score": "0.5145096", "text": "public function create_link()\n {\n }", "title": "" }, { "docid": "b8b9713fd76847567e0307d8c2119fec", "score": "0.5051864", "text": "public function renderLink();", "title": "" }, { "docid": "a1bd43dfa503573f41952d74cac807ab", "score": "0.49868384", "text": "public function addLink(Entity $entity, int $type): void {\n\t\t$this->removeLink($entity, $type);\n\t\t$viewers = $this->getViewers();\n\n\t\tswitch($type) {\n\t\t\tcase self::LINK_RIDER:\n\t\t\t\t$link = new EntityLink();\n\t\t\t\t$link->fromEntityUniqueId = $this->getId();\n\t\t\t\t$link->type = self::STATE_SITTING;\n\t\t\t\t$link->toEntityUniqueId = $entity->getId();\n\t\t\t\t$link->bool1 = true;\n\n\t\t\t\tif($entity instanceof Player) {\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link;\n\t\t\t\t\t$entity->dataPacket($pk);\n\n\t\t\t\t\t$link_2 = new EntityLink();\n\t\t\t\t\t$link_2->fromEntityUniqueId = $this->getId();\n\t\t\t\t\t$link_2->type = self::STATE_SITTING;\n\t\t\t\t\t$link_2->toEntityUniqueId = 0;\n\t\t\t\t\t$link_2->bool1 = true;\n\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link_2;\n\t\t\t\t\t$entity->dataPacket($pk);\n\t\t\t\t\tunset($viewers[$entity->getLoaderId()]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase self::LINK_RIDING:\n\t\t\t\t$link = new EntityLink();\n\t\t\t\t$link->fromEntityUniqueId = $entity->getId();\n\t\t\t\t$link->type = self::STATE_SITTING;\n\t\t\t\t$link->toEntityUniqueId = $this->getId();\n\t\t\t\t$link->bool1 = true;\n\n\t\t\t\tif($entity instanceof Player) {\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link;\n\t\t\t\t\t$entity->dataPacket($pk);\n\n\t\t\t\t\t$link_2 = new EntityLink();\n\t\t\t\t\t$link_2->fromEntityUniqueId = $entity->getId();\n\t\t\t\t\t$link_2->type = self::STATE_SITTING;\n\t\t\t\t\t$link_2->toEntityUniqueId = 0;\n\t\t\t\t\t$link_2->bool1 = true;\n\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link_2;\n\t\t\t\t\t$entity->dataPacket($pk);\n\t\t\t\t\tunset($viewers[$entity->getLoaderId()]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new \\InvalidArgumentException();\n\t\t}\n\n\t\tif(!empty($viewers)) {\n\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t$pk->link = $link;\n\t\t\t$this->server->broadcastPacket($viewers, $pk);\n\t\t}\n\n\t\t$this->links[$type] = $link;\n\t}", "title": "" }, { "docid": "89251273c0d1c0b669abf51fc5a3bb72", "score": "0.49219072", "text": "abstract public function establishLink($linkname = 'readwrite');", "title": "" }, { "docid": "3cd4a78d651fa6bacebe3b6a7bae03c2", "score": "0.49194354", "text": "public function head() : void {}", "title": "" }, { "docid": "b4fdc787f275efefc5250287beda5321", "score": "0.48765382", "text": "public function getDataLinks($data) : array;", "title": "" }, { "docid": "44160a35776fa5f47c779ad36ff7544a", "score": "0.48514053", "text": "public function direct ()\n { // TODO Auto-generated 'direct' method\n }", "title": "" }, { "docid": "6bbe4c54d28811b74285ddab93cc7d98", "score": "0.48236847", "text": "public function testSendLink()\n {\n }", "title": "" }, { "docid": "70150c835526dfb05b281e6492cf1c2d", "score": "0.4788258", "text": "public function dataObjectUrls();", "title": "" }, { "docid": "f22b3554ae42dccb525374582ebe4a60", "score": "0.47584635", "text": "public function link($source, $target);", "title": "" }, { "docid": "83aa7e9befd8cd5bce5962381094af06", "score": "0.47573292", "text": "public static function addDataLinks($hook, $type, $return, $params) {\n\n\t\t$entity = elgg_extract('entity', $params);\n\t\t$type = $entity->type;\n\t\t$subtype = $entity->getSubtype();\n\n\t\tif ($entity->owner_guid) {\n\t\t\t$return['_links']['owner'] = elgg_http_add_url_query_elements(\"data/entity\", [\n\t\t\t\t'guid' => $entity->owner_guid,\n\t\t\t]);\n\t\t} else {\n\t\t\t$return['_links']['owner'] = false;\n\t\t}\n\n\t\tif ($entity->container_guid) {\n\t\t\t$return['_links']['container'] = elgg_http_add_url_query_elements(\"data/entity\", [\n\t\t\t\t'guid' => $entity->container_guid,\n\t\t\t]);\n\t\t} else {\n\t\t\t$return['_links']['container'] = false;\n\t\t}\n\n\t\t$return['_links']['comments'] = elgg_http_add_url_query_elements(\"data/comments\", [\n\t\t\t'guid' => $entity->guid,\n\t\t]);\n\n\t\tif (elgg_is_active_plugin('likes')) {\n\t\t\t$likable = (bool) elgg_trigger_plugin_hook('likes:is_likable', \"$type:$subtype\", [], false);\n\t\t\tif ($likable) {\n\t\t\t\t$return['_links']['likes'] = elgg_http_add_url_query_elements(\"data/likes\", [\n\t\t\t\t\t'guid' => $entity->guid,\n\t\t\t\t]);\n\t\t\t} else {\n\t\t\t\t$return['_links']['likes'] = false;\n\t\t\t}\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "8f92b37b7c52b0169b1140ebd660ed0f", "score": "0.47216582", "text": "public function callback($link);", "title": "" }, { "docid": "26733613f52f899583572c67407d92de", "score": "0.47155866", "text": "public function removeLink(Entity $entity, int $type): void {\n\t\tif(!isset($this->links[$type])) {\n\t\t\treturn;\n\t\t}\n\n\t\t$viewers = $this->getViewers();\n\n\t\tswitch($type) {\n\t\t\tcase self::LINK_RIDER:\n\t\t\t\t$link = new EntityLink();\n\t\t\t\t$link->fromEntityUniqueId = $this->getId();\n\t\t\t\t$link->type = self::STATE_STANDING;\n\t\t\t\t$link->toEntityUniqueId = $entity->getId();\n\t\t\t\t$link->bool1 = true;\n\n\t\t\t\tif($entity instanceof Player) {\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link;\n\t\t\t\t\t$entity->dataPacket($pk);\n\n\t\t\t\t\t$link_2 = new EntityLink();\n\t\t\t\t\t$link_2->fromEntityUniqueId = $entity->getId();\n\t\t\t\t\t$link_2->type = self::STATE_STANDING;\n\t\t\t\t\t$link_2->toEntityUniqueId = 0;\n\t\t\t\t\t$link_2->bool1 = true;\n\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link_2;\n\t\t\t\t\t$entity->dataPacket($pk);\n\t\t\t\t\tunset($viewers[$entity->getLoaderId()]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase self::LINK_RIDING:\n\t\t\t\t$link = new EntityLink();\n\t\t\t\t$link->fromEntityUniqueId = $entity->getId();\n\t\t\t\t$link->type = self::STATE_STANDING;\n\t\t\t\t$link->toEntityUniqueId = $this->getId();\n\t\t\t\t$link->bool1 = true;\n\n\t\t\t\tif($entity instanceof Player) {\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link;\n\t\t\t\t\t$entity->dataPacket($pk);\n\n\t\t\t\t\t$link_2 = new EntityLink();\n\t\t\t\t\t$link_2->fromEntityUniqueId = $entity->getId();\n\t\t\t\t\t$link_2->type = self::STATE_STANDING;\n\t\t\t\t\t$link_2->toEntityUniqueId = 0;\n\t\t\t\t\t$link_2->bool1 = true;\n\n\t\t\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t\t\t$pk->link = $link_2;\n\t\t\t\t\t$entity->dataPacket($pk);\n\t\t\t\t\tunset($viewers[$entity->getLoaderId()]);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new \\InvalidArgumentException();\n\t\t}\n\n\t\tunset($this->links[$type]);\n\n\t\tif(!empty($viewers)) {\n\t\t\t$pk = new SetEntityLinkPacket();\n\t\t\t$pk->link = $link;\n\t\t\t$this->server->broadcastPacket($viewers, $pk);\n\t\t}\n\t}", "title": "" }, { "docid": "8bc5d6524a2acddefacc4a935c309d2d", "score": "0.46833107", "text": "public function toLink();", "title": "" }, { "docid": "dc97d80f760c4a6ecce16c9b6f5a27e5", "score": "0.46768165", "text": "public function getClickData();", "title": "" }, { "docid": "2c49ab8a9e2ade7cb2ac82dbe46aaf3e", "score": "0.46726847", "text": "public function parseLinkFromData($data, Context $context, $prefix='') {\n\t\t$this->linkType = arrayPath($data, \"{$prefix}link_type\", null);\n\t\tif (!$this->linkType || ($this->linkType == 'none')) {\n\t\t\t$this->linkType = 'none';\n\t\t\treturn;\n\t\t}\n\n\t\t$this->linkId = arrayPath($data, \"{$prefix}link_id\", null);\n\n\t\t$externalUrl = arrayPath($data, \"{$prefix}link_url\", null);\n\t\t$pageLink = arrayPath($data, \"{$prefix}link_page_link\", null);\n\t\t$postLink = arrayPath($data, \"{$prefix}link_post_link\", null);\n\t\t$fileLinkID = arrayPath($data, \"{$prefix}link_file_link\", null);\n\t\t$relativeUrl = arrayPath($data, \"{$prefix}link_relative_url\", null);\n\t\t$linkAnchor = arrayPath($data, \"{$prefix}link_anchor\", null);\n\n\t\t$relationships = arrayPath($data, \"{$prefix}link_relationship\", []);\n\t\tif (is_array($relationships) && (count($relationships)>0))\n\t\t\t$this->linkRelationships = implode(' ',$relationships);\n\n\t\t$this->linkOpenInNewWindow = arrayPath($data, \"{$prefix}link_new_window\", false);\n\t\t$this->linkDownloadFileName = arrayPath($data, \"{$prefix}link_download_file_name\", null);\n\t\t$this->linkTitle = arrayPath($data, \"{$prefix}link_title\", null);\n\t\t$this->linkCSSClasses = arrayPath($data, \"{$prefix}link_css_class\", null);\n\t\t$this->linkVideoEmbed = arrayPath($data, \"{$prefix}video_embed\", null);\n\n\t\t$this->linkIcon = arrayPath($data, \"{$prefix}link_icon\", null);\n\t\tif ($this->linkIcon == 'None') {\n\t\t\t$this->linkIcon = null;\n\t\t}\n\n\t\t$linkImageID = arrayPath($data, \"{$prefix}link_image\", null);\n\t\tif ($linkImageID)\n\t\t\t$this->linkImage = $context->modelForPostID($linkImageID);\n\n\t\t$linkBackgroundImageID = arrayPath($data, \"{$prefix}link_background_image\", null);\n\t\tif ($linkBackgroundImageID)\n\t\t\t$this->linkBackgroundImage = $context->modelForPostID($linkBackgroundImageID);\n\n\t\tif (($this->linkType=='post') && $postLink) {\n\t\t\t$this->linkObject = $context->modelForPost($postLink);\n\t\t\t$this->linkURL = $this->linkObject->permalink;\n\t\t} else if (($this->linkType=='page') && $pageLink) {\n\t\t\t$this->linkObject = $context->modelForPost($pageLink);\n\t\t\t$this->linkURL = $this->linkObject->permalink;\n\t\t} else if (($this->linkType=='file') && $fileLinkID) {\n\t\t\t$this->linkObject = $context->modelForPostID($fileLinkID);\n\t\t\t$this->linkURL = $this->linkObject->url();\n\t\t} else if (($this->linkType == 'external') && $externalUrl) {\n\t\t\t$this->linkURL = $externalUrl;\n\t\t} else if (($this->linkType == 'relative') && $relativeUrl) {\n\t\t\t$this->linkURL = $relativeUrl;\n\t\t} else if ($this->linkType == 'video') {\n\t\t\t$this->linkURL = '#';\n\t\t\t$this->linkCSSClasses .= ' video-popup';\n\t\t}\n\n\t\tif (!empty($linkAnchor)) {\n\t\t\t$this->linkURL .= '#'.trim($linkAnchor,'#');\n\t\t}\n\t}", "title": "" }, { "docid": "16f9a651901d6e398293e31ae3eecd24", "score": "0.466607", "text": "public function getLink();", "title": "" }, { "docid": "16f9a651901d6e398293e31ae3eecd24", "score": "0.466607", "text": "public function getLink();", "title": "" }, { "docid": "59dcc10670a163081cde816b02759f9e", "score": "0.46408293", "text": "public function testUpdateRTPBankLinkUsingPut()\n {\n }", "title": "" }, { "docid": "7ab9bca75d0749309eea9afc8e09daf3", "score": "0.46280295", "text": "function peigLocalLink($linkType,$peigReturnURL=NULL) {\n $params = array();\n switch( strtolower($linkType) ) {\n case \"primaryreplica\":\n $params[\"PrimaryReplica\"] = 1;\n break;\n case \"secondaryreplica\":\n $params[\"SecondaryReplica\"] = 1;\n break;\n case \"connectionusb\":\n $params[\"Connection\"] = \"Usb\";\n break;\n }\n if( ! count( $params ) ) { return NULL; }\n return $this->exuse(\n AducidMethodName::PEIG_LOCAL_LINK,\n $params,\n array(\n \"personalObjectTypeName\"=> \"peigMgmt\",\n \"personalObjectAlgorithmName\"=> AducidAlgorithmName::PEIG_MGMT\n ),\n $peigReturnURL);\n }", "title": "" }, { "docid": "5ed9096760555de1bd2529cb3d3ace82", "score": "0.46119285", "text": "public function forward() {\n\t\t\n\t}", "title": "" }, { "docid": "dfba20feae94ed68ea278e3c6cc81120", "score": "0.46069875", "text": "public function redirect($url, $data = []): void\n {\n throw new NotImplementedException(sprintf('SSP/SAML2 Redirect not implemented! URL: \"%s', $url));\n }", "title": "" }, { "docid": "a8c1adbe7029b287c32fc0d60ff6f103", "score": "0.45930097", "text": "function clients_objecturl_getData($ctlData,$clientID) {\t\n}", "title": "" }, { "docid": "3d661a6f7eabf4bb9d11d5c302b5800e", "score": "0.45666695", "text": "abstract public function crossover();", "title": "" }, { "docid": "eee330f3f0b187eb96910599f66d0a4f", "score": "0.45606825", "text": "abstract protected function perform( $data = false );", "title": "" }, { "docid": "878b0b250d9602e3cebea22a7542835c", "score": "0.45535442", "text": "function test_pointer_link_empty_post_with_valid_link_yeilds_valid_link_without_object_errors() {\n\t\t$post = '';\n\t\t$link = 'http://montrealgazette.wpdev5.canada.com';\n\t\t$pointer_url = $this->pointer->pointer_link( $link, $post );\n\t\t$this->assertEquals( $pointer_url, 'http://montrealgazette.wpdev5.canada.com' );\n\t}", "title": "" }, { "docid": "e7abf917a7378198b524d185d3f0827d", "score": "0.4545096", "text": "public function alink($info, $internal = 0)\n {\n // a callback function to support the formation of clickable links within the document\n $lineFactor = 0.05; // the thickness of the line as a proportion of the height. also the drop of the line.\n switch ($info['status']) {\n case 'start':\n case 'sol':\n // the beginning of the link\n // this should contain the URl for the link as the 'p' entry, and will also contain the value of 'nCallback'\n if (!isset($this->ez['links'])) {\n $this->ez['links'] = [];\n }\n $this->ez['links'][] = ['x' => $info['x'], 'y' => $info['y'], 'angle' => $info['angle'], 'descender' => $info['descender'], 'height' => $info['height'], 'url' => $info['p']];\n if ($internal == 0) {\n $this->saveState();\n $this->setColor(0, 0, 1);\n $this->setStrokeColor(0, 0, 1);\n $thick = $info['height'] * $lineFactor;\n $this->setLineStyle($thick);\n }\n break;\n case 'end':\n case 'eol':\n // the end of the link\n // assume that it is the most recent opening which has closed\n $start = array_shift($this->ez['links']);\n // add underlining\n if ($internal) {\n $this->addInternalLink($start['url'], $start['x'], $start['y'] + $start['descender'], $info['x'], $start['y'] + $start['descender'] + $start['height']);\n } else {\n $a = deg2rad((float) $start['angle'] - 90.0);\n $drop = $start['height'] * $lineFactor * 1.5;\n $dropx = cos($a) * $drop;\n $dropy = -sin($a) * $drop;\n $this->line($start['x'] - $dropx, $start['y'] - $dropy, $info['x'] - $dropx, $info['y'] - $dropy);\n $this->addLink($start['url'], $start['x'], $start['y'] + $start['descender'], $info['x'], $start['y'] + $start['descender'] + $start['height']);\n $this->restoreState();\n }\n break;\n }\n }", "title": "" }, { "docid": "ee7aa45b9df84e3d129856cc72f9046c", "score": "0.45414403", "text": "protected abstract function connect ();", "title": "" }, { "docid": "21e41db2082fe1557f411a860630b106", "score": "0.453602", "text": "function Drawlink($x1,$y1,$x2,$y2,$prop) {\n\n\t$ida = 0;\n\t$oda = 0;\n\n\t$ltxt = \"\";\n\t$itxt = \"\";\n\n\t$slabel = array();\n\t$elabel = array();\n\t\n global $fmt,$link,$lev,$lis,$ifi,$ipi,$lwt,$lix,$liy,$net;\n\tglobal $trfw,$trfa,$rrdstep,$rrdpath,$rrdcmd;\n\n if($x1 == $x2){\n $lix[$x1]+= 2;\n $x1 += $lix[$x1];\n $x2 = $x1;\n }\n if($y1 == $y2){\n $liy[$y1]+= 2;\n $y1 += $liy[$y1];\n $y2 = $y1;\n }\n\n\tforeach(array_keys($prop['bw']) as $dv){\n\t\tforeach(array_keys($prop['bw'][$dv]) as $if){\n\t\t\tif( preg_match(\"/[tsm]/\",$lis) ){\n\t\t\t\t$rrd = \"$rrdpath/\" . rawurlencode($dv) . \"/\" . rawurlencode($if) . \".rrd\";\n\t\t\t\tif (file_exists($rrd)){\n\t\t\t\t\t$rrdif[\"$dv-$if\"] = $rrd;\n\t\t\t\t}else{\n\t\t\t\t\techo \"RRD:$rrd not found!\\n\";\n\t\t\t\t}\n\t\t\t}elseif($lis == 'r'){\n\t\t\t\t$iquery\t= GenQuery('interfaces','s','dinoct,doutoct','','',array('device','ifname'),array('=','='),array($dv,$if),array('AND') );\n\t\t\t\t$ires\t= @DbQuery($iquery,$link);\n\t\t\t\t$nres\t= @DbNumRows($ires);\n\t\t\t\tif ($nres == 1) {\n\t\t\t\t\t$trf = @DbFetchRow($ires);\n\t\t\t\t\t$ida += $trf[0];\n\t\t\t\t\t$oda += $trf[1];\n\t\t\t\t}\n\t\t\t\t@DbFreeResult($ires);\n\t\t\t}\n\t\t\tforeach(array_keys($prop['bw'][$dv][$if]) as $ndv){\n\t\t\t\tforeach(array_keys($prop['bw'][$dv][$if][$ndv]) as $nif){\n\t\t\t\t\tif($lis == 'e'){\n\t\t\t\t\t\t$iquery\t= GenQuery('interfaces','s','dinerr,douterr','','',array('device','ifname'),array('=','='),array($dv,$if),array('AND') );\n\t\t\t\t\t\t$ires\t= @DbQuery($iquery,$link);\n\t\t\t\t\t\t$nres\t= @DbNumRows($ires);\n\t\t\t\t\t\tif ($nres == 1) {\n\t\t\t\t\t\t\t$err = @DbFetchRow($ires);\n\t\t\t\t\t\t\t$ida += $err[0];\n\t\t\t\t\t\t\t$oda += $err[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$iquery\t= GenQuery('interfaces','s','dinerr,douterr','','',array('device','ifname'),array('=','='),array($ndv,$nif),array('AND') );\n\t\t\t\t\t\t$ires\t= @DbQuery($iquery,$link);\n\t\t\t\t\t\t$nres\t= @DbNumRows($ires);\n\t\t\t\t\t\tif ($nres == 1) {\n\t\t\t\t\t\t\t$err = @DbFetchRow($ires);\n\t\t\t\t\t\t\t$oda += $err[0];\n\t\t\t\t\t\t\t$ida += $err[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t@DbFreeResult($ires);\n\t\t\t\t\t}\n\t\t\t\t\tif($ipi){\n\t\t\t\t\t\tif($net[$dv][$if]) {$ia = $net[$dv][$if];}\n\t\t\t\t\t\tif($net[$ndv][$nif]){$nia= $net[$ndv][$nif];}\n\t\t\t\t\t}\n\t\t\t\t\tif($ifi){\n\t\t\t\t\t\tif($lev == \"f\"){\n\t\t\t\t\t\t\t$in = $if;\n\t\t\t\t\t\t\t$nin= $nif;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$in = \"$dv $if\";\n\t\t\t\t\t\t\t$nin= \"$ndv $nif\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($ifi or $ipi){\n\t\t\t\t\t\tarray_push($slabel,\"$in $ia\");\n\t\t\t\t\t\tarray_push($elabel,\"$nin $nia\");\n\t\t\t\t\t}\n\t\t\t\t\t$bw += $prop['bw'][$dv][$if][$ndv][$nif];\n\t\t\t\t\t$nbw += $prop['nbw'][$dv][$if][$ndv][$nif];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t$xl = intval($x1 + $x2) / 2;\n\t$yl = intval($y1 + $y2) / 2;\n\t$xi1 = intval($x1+($x2-$x1)/(1 + $lwt/10));\n\t$xi2 = intval($x2+($x1-$x2)/(1 + $lwt/10));\n\t$yi1 = intval($y1+($y2-$y1)/(1 + $lwt/10));\n\t$yi2 = intval($y2+($y1-$y2)/(1 + $lwt/10));\n\t$bwtxt= ZFix($bw) . \"/\" . ZFix($nbw);\n\n\tif($lis == 'r'){\n\t\tif($bw and $nbw){\n\t\t\t$ri = round($ida*800/$bw/$rrdstep);\n\t\t\t$ro = round($oda*800/$nbw/$rrdstep);\n\t\t\tif ($ri > intval($trfa + (100 - $trfa)/2) ){\n\t\t\t\t$lico = \"red\";\n\t\t\t}elseif ($ri > $trfa){\n\t\t\t\t$lico = \"orange\";\n\t\t\t}elseif ($ri > intval($trfw + $trfw/2) ){\n\t\t\t\t$lico = \"purple\";\n\t\t\t}elseif ($ri > $trfw){\n\t\t\t\t$lico = \"blue\";\n\t\t\t}else{\n\t\t\t\t$lico = \"limegreen\";\n\t\t\t}\n\t\t\tif ($ro > intval($trfa + (100 - $trfa)/2) ){\n\t\t\t\t$loco = \"red\";\n\t\t\t}elseif ($ro > $trfa){\n\t\t\t\t$loco = \"orange\";\n\t\t\t}elseif ($ro > intval($trfw + $trfw/2) ){\n\t\t\t\t$loco = \"purple\";\n\t\t\t}elseif ($ro > $trfw){\n\t\t\t\t$loco = \"blue\";\n\t\t\t}else{\n\t\t\t\t$loco = \"limegreen\";\n\t\t\t}\n\t\t}else{\n\t\t\t$lico = \"gray\";\n\t\t\t$loco = \"gray\";\n\t\t\t$ri = \"-\";\n\t\t\t$ro = \"-\";\n\t\t}\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$xl\\\" y2=\\\"$yl\\\" stroke=\\\"$lico\\\" stroke-width=\\\"4\\\"/>\\n\";\n\t\t\t$ltxt .= \"\t<line x1=\\\"$xl\\\" y1=\\\"$yl\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"$loco\\\" stroke-width=\\\"4\\\"/>\\n\";\n\t\t\t$ltxt .= \"\t<text x=\\\"$xi2\\\" y=\\\"\".($yi2-8).\"\\\">${ri}%</text>\\n\";\n\t\t\t$ltxt .= \"\t<text x=\\\"$xi2\\\" y=\\\"\".($yi1-8).\"\\\">${ro}%</text>\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"Imagesetthickness(\\$image,4);\\n\";\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$xl,$yl,\\$$lico);\\n\";\n\t\t\t$ltxt .= \"Imageline(\\$image,$xl,$yl,$x2,$y2,\\$$loco);\\n\";\n\t\t\t$ltxt .= \"Imagesetthickness(\\$image, 1);\\n\";\n\t\t\t$itxt .= \"ImageString(\\$image, 1,$xi2,\".($yi2-8).\",\\\"${ri}%\\\", \\$black);\\n\";\n\t\t\t$itxt .= \"ImageString(\\$image, 1,$xi1,\".($yi1-8).\",\\\"${ro}%\\\", \\$black);\\n\";\n\t\t}\n\t}elseif($lis == 'e'){\n\t\tif ($ida > $rrdstep ){\n\t\t\t$lico = \"red\";\n\t\t}elseif ($ida > intval($rrdstep/60) ){\n\t\t\t$lico = \"orange\";\n\t\t}elseif ($ida > 1){\n\t\t\t$lico = \"blue\";\n\t\t}else{\n\t\t\t$lico = \"limegreen\";\n\t\t}\n\t\tif ($oda > $rrdstep ){\n\t\t\t$loco = \"red\";\n\t\t}elseif ($oda > intval($rrdstep/60) ){\n\t\t\t$loco = \"orange\";\n\t\t}elseif ($oda > 1){\n\t\t\t$loco = \"blue\";\n\t\t}else{\n\t\t\t$loco = \"limegreen\";\n\t\t}\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$xl\\\" y2=\\\"$yl\\\" stroke=\\\"$lico\\\" stroke-width=\\\"4\\\"/>\\n\";\n\t\t\t$ltxt .= \"\t<line x1=\\\"$xl\\\" y1=\\\"$yl\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"$loco\\\" stroke-width=\\\"4\\\"/>\\n\";\n\t\t\t$ltxt .= \"\t<text x=\\\"$xi2\\\" y=\\\"\".($yi2-8).\"\\\">$ida</text>\\n\";\n\t\t\t$ltxt .= \"\t<text x=\\\"$xi2\\\" y=\\\"\".($yi1-8).\"\\\">$oda</text>\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"Imagesetthickness(\\$image,4);\\n\";\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$xl,$yl,\\$$lico);\\n\";\n\t\t\t$ltxt .= \"Imageline(\\$image,$xl,$yl,$x2,$y2,\\$$loco);\\n\";\n\t\t\t$ltxt .= \"Imagesetthickness(\\$image, 1);\\n\";\n\t\t\t$itxt .= \"ImageString(\\$image, 1,$xi2,\".($yi2-8).\",\\\"$ida\\\", \\$black);\\n\";\n\t\t\t$itxt .= \"ImageString(\\$image, 1,$xi1,\".($yi1-8).\",\\\"$oda\\\", \\$black);\\n\";\n\t\t}\n\t}elseif($bw == 11000000 or $bw == 54000000){\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"cornflowerblue\\\" stroke-dasharray=\\\"3,3\\\"/>\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"imagesetstyle(\\$image,array(\\$navy,\\$blue,\\$cornflowerblue,\\$wte,\\$wte) );\\n\";\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$x2,$y2,IMG_COLOR_STYLED);\\n\";\n\t\t}\n\t}elseif($bw < 10000000){\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"limegreen\\\" />\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$x2,$y2,\\$limegreen);\\n\";\n\t\t}\n\t}elseif($bw < 100000000){\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"blue\\\" />\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$x2,$y2,\\$blue);\\n\";\n\t\t}\n\t}elseif($bw < 1000000000){\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"purple\\\" />\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$x2,$y2,\\$purple);\\n\";\n\t\t}\n\t}elseif($bw == 1000000000){\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"orange\\\" />\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$x2,$y2,\\$orange);\\n\";\n\t\t}\n\t}else{\n\t\t$lt = ($bw/1000000000 < 10)?($bw/1000000000):10;\n\t\tif($fmt == \"svg\"){\n\t\t\t$ltxt .= \"\t<line x1=\\\"$x1\\\" y1=\\\"$y1\\\" x2=\\\"$x2\\\" y2=\\\"$y2\\\" stroke=\\\"red\\\" stroke-width=\\\"$lt\\\"/>\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"imagesetthickness(\\$image,$lt);\\n\";\n\t\t\t$ltxt .= \"Imageline(\\$image,$x1,$y1,$x2,$y2,\\$red);\\n\";\n\t\t\t$ltxt .= \"Imagesetthickness(\\$image, 1);\\n\";\n\t\t}\n\t}\n\n\tif($lis\tand is_array($rrdif) ){\n\t\t$opts = GraphOpts($lis,0,'Link Traffic',$bw);\n\t\tlist($drawin,$drawout,$tit) = GraphTraffic($rrdif,'trf');\n\t\texec(\"$rrdcmd graph log/$xl$yl.png -a PNG $opts $drawin $drawout\");\n\t\tif($lis == \"t\"){\n\t\t\tif($fmt == \"svg\"){\n\t\t\t\t$itxt .= \"\t<text x=\\\"\".($xl-16).\"\\\" y=\\\"\".($yl-18).\"\\\" fill=\\\"green\\\">$bwtxt</text>\\n\";\n\t\t\t}else{\n\t\t\t\t$itxt .= \"ImageString(\\$image, 1,\".($xl-16).\", \".($yl-18).\", \\\"$bwtxt\\\", \\$green);\\n\";\n\t\t\t}\n\t\t}\n\t\tif($fmt == \"svg\"){\n\t\t\t\t$itxt .= \"\t<text x=\\\"\".($xl-16).\"\\\" y=\\\"\".($yl-18).\"\\\" fill=\\\"green\\\">no RRDs in SVG!</text>\\n\";\n\t\t}else{\n\t\t\t$ltxt .= \"\\$icon = Imagecreatefrompng(\\\"$xl$yl.png\\\");\\n\";\n\t\t\t$ltxt .= \"\\$w = Imagesx(\\$icon);\\n\";\n\t\t\t$ltxt .= \"\\$h = Imagesy(\\$icon);\\n\";\n\t\t\t$ltxt .= \"Imagecopy(\\$image, \\$icon,$xl-\\$w/2,$yl-\\$h/2,0,0,\\$w,\\$h);\\n\";\n\t\t\t$ltxt .= \"Imagedestroy(\\$icon);\\n\";\n\t\t\t$ltxt .= \"unlink(\\\"$xl$yl.png\\\");\\n\";\n\t\t}\n\t}elseif( preg_match(\"/[rw]/\",$lis) ){\n\t\tif($fmt == \"svg\"){\n\t\t\t$itxt .= \"\t<text x=\\\"\".($xl-16).\"\\\" y=\\\"$yl\\\" fill=\\\"green\\\">$bwtxt</text>\\n\";\n\t\t}else{\n\t\t\t$itxt .= \"ImageString(\\$image, 1, \".($xl-16).\",$yl, \\\"$bwtxt\\\", \\$green);\\n\";\n\t\t}\n\t}\n\t$yof = 0;\n\tforeach ($slabel as $i){\n\t\t$i = preg_replace('/[$&]/','.', $i);\n\t\tif($fmt == \"svg\"){\n\t\t\t$itxt .= \"\t<text x=\\\"$xi2\\\" y=\\\"\".($yi2+$yof).\"\\\" fill=\\\"green\\\">$i</text>\\n\";\n\t\t}else{\n\t\t\t$itxt .= \"ImageString(\\$image, 1, $xi2, \".($yi2+$yof).\", \\\"$i\\\", \\$green);\\n\";\n\t\t}\n\t\t$yof += 8;\n\t}\n\t$yof = 0;\n\tforeach ($elabel as $i){\n\t\tif($fmt == \"svg\"){\n\t\t\t$itxt .= \"\t<text x=\\\"$xi1\\\" y=\\\"\".($yi1+$yof).\"\\\" fill=\\\"green\\\">\".Safelabel($i).\"</text>\\n\";\n\t\t}else{\n\t\t\t$itxt .= \"ImageString(\\$image, 1, $xi1, \".($yi1+$yof).\", \\\"\".Safelabel($i).\"\\\", \\$green);\\n\";\n\t\t}\n\t\t$yof += 8;\n\t}\n\treturn array($ltxt,$itxt);\n}", "title": "" }, { "docid": "84f1f39d7c6527c893d4c068198cfb2e", "score": "0.45243624", "text": "function event_ParseURL(&$data) {\r\n if ($data['completed']) return;\r\n $urlInfo = $data['info'];\r\n $data['type'] = $this->_getKeyFromURL($urlInfo);\r\n \r\n global $itemid;\r\n switch ($data['type']) {\r\n \r\n case 'item': // Item pages\r\n $itemid = -1;\r\n $values = $this->_getDataFromURL('item',$urlInfo); //Get data\r\n if ($values['itemid'] != '') $itemid = $values['itemid']; //See if itemID is specified and set\r\n elseif ($values['slug'] != '') $itemid = $this->_getItemID($values); //If not, get itemID from slug\r\n //echo $itemid; //DEBUG: itemid seems to be set correctly whether using the itemid lookup or the slug lookup\r\n $data['completed'] = true;\r\n break;\r\n } \r\n \r\n }", "title": "" }, { "docid": "9afa373e9e59285ae754f09049b331e2", "score": "0.4521131", "text": "function __callBackCaller( $st ) {\n\t\tpreg_replace_callback( $this->linkReg, Array( &$this, '__manageLinkRecipient' ), $st );\n\t}", "title": "" }, { "docid": "3853f5a99bee195752a94d5ccc772a3a", "score": "0.45068622", "text": "function quicklinks_url_handler($hook, $type, $returnvalue, $params) {\n\t\n\tif (empty($returnvalue) && !empty($params) && is_array($params)) {\n\t\t$entity = elgg_extract(\"entity\", $params);\n\t\t\n\t\tif (!empty($entity) && elgg_instanceof($entity, \"object\", QUICKLINKS_SUBTYPE)) {\n\t\t\t$returnvalue = $entity->description;\n\t\t}\n\t}\n\t\n\treturn $returnvalue;\n}", "title": "" }, { "docid": "ae920b1a808653be6f64bb3cb96363f6", "score": "0.44997483", "text": "abstract function callback($data);", "title": "" }, { "docid": "ff87db05de310e3d0634cc5d3906d05a", "score": "0.44896957", "text": "function isClickable($a_type, $a_obj_id = 0)\n\t{\n\t\tglobal $ilUser;\n\t\t\n\t\tif ($a_type == \"skll\")\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a9dfd404e0ab3b16d528446e06b2453f", "score": "0.44731823", "text": "function hook_broken_links_save_plugin_parameters($data)\n{\n\t$conf = new ConfigManager();\n\t$sessionManager = new SessionManager($_SESSION, $conf);\n\t$loginManager = new LoginManager($conf, $sessionManager);\n\t$clientIpId = client_ip_id($_SERVER);\n\t$loginManager->generateStaySignedInToken($_SERVER['REMOTE_ADDR']);\n\t$loginManager->checkLoginState($_COOKIE, $clientIpId);\n\t$history = new History($conf->get('resource.history'));\n\n\t$action = $data['DEFAULT_ACTION'];\n if (!empty($action)) {\n\t\t$pluginManager = new PluginManager($conf);\n\t\t$pluginManager->load($conf->get('general.enabled_plugins'));\n\n\t\t$LINKSDB = new LinkDB(\n\t\t\t$conf->get('resource.datastore'),\n\t\t\ttrue,\n\t\t\t$conf->get('privacy.hide_public_links')\n\t\t);\n\t\t\n\t\t\n\t\tforeach ($LINKSDB as $id=>$link){\n\t\t\n\t\t\t$handle = curl_init($link[\"url\"]);\n\t\t\tcurl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);\n\t\t\t$response = curl_exec($handle);\n\t\t\t$httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\t\t\t\n\t\t\tif(in_array($httpCode,[0,403,404,410])) {\n\t\t\t\tif ($action == \"TAG\"){\n\t\t\t\t\tif (stripos($link[\"tags\"],\"@404\")===false){\n\t\t\t\t\t\t$link[\"tags\"] = trim(trim($link[\"tags\"]).\" @404\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$pluginManager->executeHooks('save_link', $link);\n\t\t\t\t\t$LINKSDB[$id] = $link;\n\t\t\t\t\t$LINKSDB->save($conf->get('resource.page_cache'));\n\t\t\t\t}else{\n\t\t\t\t\t$pluginManager->executeHooks('delete_link', $link);\n\t\t\t\t\tunset($LINKSDB[$id]);\n\t\t\t\t\t$LINKSDB->save($conf->get('resource.page_cache')); // save to disk\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t//Remove 404 Tag\n\t\t\t\t$link[\"tags\"] = str_replace(\"@404\",\"\",$link[\"tags\"]);\n\t\t\t\t$pluginManager->executeHooks('save_link', $link);\n\t\t\t\t$LINKSDB[$id] = $link;\n\t\t\t\t$LINKSDB->save($conf->get('resource.page_cache'));\n\t\t\t}\n\t\t\tcurl_close($handle);\n\t\t}\n\t\t\t\t\n\t\t//Disable the plugin\n\t\t$pluginMeta = $pluginManager->getPluginsMeta();\n\n\t\t// Split plugins into 2 arrays: ordered enabled plugins and disabled.\n\t\t$enabledPlugins = array_filter($pluginMeta, function ($v) {\n\t\t\treturn $v['order'] !== false;\n\t\t});\n\t\t// Load parameters.\n\t\t$enabledPlugins = load_plugin_parameter_values($enabledPlugins, $conf->get('plugins', array()));\n\t\t\n\t\t$activePlugins = [];\n\t\tforeach ($enabledPlugins as $key=>$plugin){\n\t\t\tif ($key != \"broken_links\"){\n\t\t\t\t$activePlugins[]= $key;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t$conf->set('general.enabled_plugins', $activePlugins);\n\t\t$conf->write($loginManager->isLoggedIn());\n\t\t$history->updateSettings();\n\t\theader('Location: ?do='. Router::$PAGE_PLUGINSADMIN);\n\t\texit();\t\t\n\t}\n\t\n\treturn $data;\n}", "title": "" }, { "docid": "d95fbb33414abc9568495944558e5ed0", "score": "0.4470272", "text": "public static function link_returns() {\n return new external_single_structure(array(\n new external_value(PARAM_BOOL, 'Success or failue (true/false).')\n ));\n }", "title": "" }, { "docid": "2682eca0cfe8421b1d8f8c1498f1aed0", "score": "0.4463717", "text": "public function target();", "title": "" }, { "docid": "2682eca0cfe8421b1d8f8c1498f1aed0", "score": "0.4463717", "text": "public function target();", "title": "" }, { "docid": "e24fe5fc27a32659acdd8f3e6141d773", "score": "0.44611794", "text": "public function travel()\n {\n }", "title": "" }, { "docid": "e24fe5fc27a32659acdd8f3e6141d773", "score": "0.44611794", "text": "public function travel()\n {\n }", "title": "" }, { "docid": "e24fe5fc27a32659acdd8f3e6141d773", "score": "0.44611794", "text": "public function travel()\n {\n }", "title": "" }, { "docid": "06d187cc6dc6f08da011f6f3c0e53fb8", "score": "0.44572052", "text": "abstract protected function _getPostUrl();", "title": "" }, { "docid": "fe61b4e04dc85fbc9bd0bf5fa3487223", "score": "0.44536734", "text": "abstract public function fetchData();", "title": "" }, { "docid": "dc9654d71bbbbd727eefc66f96bdb6d9", "score": "0.44401047", "text": "public function redirect_story($obj_link) {\n\n $this->host = $obj_link->getHost();\n $this->function = $obj_link->getFunction();\n $this->category = $obj_link->getCategory();\n \n $this->category = parent::get_param_url($this->category);\n \n //if ($this->category != null) {\n// if ($this->category == 'index' || $this->category == null) {\n// self::index();\n// \n// } else {\n// self::load_slug_category($permalinks); \n// }\n// } else {\n// self::index();\n// }\n \n if ($this->category == 'index' || $this->category == null) {\n self::index();\n \n } else {\n self::load_slug_category(); \n }\n }", "title": "" }, { "docid": "293be066c819a04d4f441c3d1ea1b6c8", "score": "0.44398183", "text": "public function updateLink(string $name, array $data);", "title": "" }, { "docid": "3b21d0a0d791af24fdefd40881b85dd8", "score": "0.4425601", "text": "public function testGetRTPBankLinkUsingGet()\n {\n }", "title": "" }, { "docid": "142fc730b99e9ad91ddc3d8eb0df017d", "score": "0.44221565", "text": "function _write_url_internal() {\n\n $_=func_get_args();\n\n $record = 0x01B8; # Record identifier\n $length = 0x00000; # Bytes to follow\n\n $row1 = $_[0]; # Start row\n $col1 = $_[1]; # Start column\n $row2 = $_[2]; # End row\n $col2 = $_[3]; # End column\n $url = $_[4]; # URL string\n if (isset($_[5])) {\n $str = $_[5]; # Alternative label\n }\n $xf = $_[6] ? $_[6] : $this->_url_format; # The cell format\n\n # Strip URL type\n $url = preg_replace('s[^internal:]', '', $url);\n\n # Write the visible label\n if (!isset($str)) {\n $str = $url;\n }\n $str_error = $this->write_string($row1, $col1, $str, $xf);\n\n if ($str_error == -2) {\n return $str_error;\n }\n\n # Pack the undocumented parts of the hyperlink stream\n $unknown1 = pack(\"H*\", \"D0C9EA79F9BACE118C8200AA004BA90B02000000\");\n\n # Pack the option flags\n $options = pack(\"V\", 0x08);\n\n # Convert the URL type and to a null terminated wchar string\n $url = join(\"\\0\", preg_split(\"''\", $url, -1, PREG_SPLIT_NO_EMPTY));\n $url = $url . \"\\0\\0\\0\";\n\n # Pack the length of the URL as chars (not wchars)\n $url_len = pack(\"V\", int(strlen($url)/2));\n\n # Calculate the data length\n $length = 0x24 + strlen($url);\n\n # Pack the header data\n $header = pack(\"vv\", $record, $length);\n $data = pack(\"vvvv\", $row1, $row2, $col1, $col2);\n\n # Write the packed data\n $this->_append($header.\n $data.\n $unknown1.\n $options.\n $url_len.\n $url);\n\n return $str_error;\n}", "title": "" }, { "docid": "fbbd092c4c87c568c4a6ba8591e22972", "score": "0.4415778", "text": "function internallink($id, $name = null){\n global $ID;\n\n if(is_array($name)) {\n $this->_firstimage($name['src']);\n if ($name['type'] == 'internalmedia') $this->_recordMediaUsage($name['src']);\n }\n\n $parts = explode('?', $id, 2);\n if (count($parts) === 2) {\n $id = $parts[0];\n }\n\n $default = $this->_simpleTitle($id);\n\n // first resolve and clean up the $id\n resolve_pageid(getNS($ID), $id, $exists);\n @list($page, $hash) = explode('#', $id, 2);\n\n // set metadata\n $this->meta['relation']['references'][$page] = $exists;\n // $data = array('relation' => array('isreferencedby' => array($ID => true)));\n // p_set_metadata($id, $data);\n\n // add link title to summary\n if ($this->capture){\n $name = $this->_getLinkTitle($name, $default, $id);\n $this->doc .= $name;\n }\n }", "title": "" }, { "docid": "0fb218658f3a7bf4e8fc6c3c3374f074", "score": "0.4413881", "text": "function elementRelation($transfer) {}", "title": "" }, { "docid": "51f395bef506afcd89ada35fc0aa0e8e", "score": "0.44125238", "text": "public function foreign()\n\t{\n\t}", "title": "" }, { "docid": "cf646c8bc0fdeba97ff959010bfbcfd2", "score": "0.44106704", "text": "function PlaceCall(\n $Target,\n $Target2,\n $Target3,\n $Target4\n ) {\n }", "title": "" }, { "docid": "52862664efb7809d7d95d620c0b92e8f", "score": "0.44101214", "text": "public function setLink($link);", "title": "" }, { "docid": "6c88b538168af466c1c5901f148fea4f", "score": "0.4402932", "text": "function redirectclicks(){\r\n\r\n\t}", "title": "" }, { "docid": "bf0cdd4d0e67dd126f9c6c23977b40c6", "score": "0.4402758", "text": "function getLink() { return $this->_link; }", "title": "" }, { "docid": "981dd96b34439dda52ae0f8f9373ddcc", "score": "0.44017255", "text": "function add_link($link, $direct){\r\n global $res;\r\n $con = db_connect();\r\n $stm = $con->prepare(Query::ADD_LINK);\r\n $stm->execute(array(\r\n ':link' => $link,\r\n ':direct' => $direct\r\n ));\r\n \r\n if($stm){\r\n $res->success = true; \r\n }else{\r\n $res->success = false; \r\n }\r\n \r\n }", "title": "" }, { "docid": "b0825fb7a73f2ee04bbe26fa7fe2c7c8", "score": "0.43985206", "text": "public function isLink(): bool;", "title": "" }, { "docid": "7d281350129653ca296337150961f9ba", "score": "0.43984792", "text": "public function head(){}", "title": "" }, { "docid": "ede54fe99266fb8a66a8dbde9ae89523", "score": "0.4397395", "text": "function modifyLinks(){\n\t}", "title": "" }, { "docid": "7313b1dc498118c4ef8b9402201e4ba2", "score": "0.43929207", "text": "static function txStatic($url, $data, $headers, $function = '', $package = 'json', $type = 'curl') {\r\n\t\t$class = 'XFriendicaProtocols'.ucfirst($type);\r\n\t\tif (!class_exists($class))\r\n\t\t\tinclude_once(dirname(__FILE__).DS.$type.DS.$type.'.php');\r\n\t\t$ret = false;\r\n\t\tif (class_exists($class)&&method_exists($class, 'txStatic'))\r\n\t\t\t$ret = call_user_method('txStatic', $class, array($url, $data, $headers, $function, $package, $type));\r\n\t\tif (isset($package)&&!empty($package)&&is_string($ret['body'])) {\r\n\t\t\tinclude_once (dirname(dirname(__FILE__)).DS.'packages'.DS.'packages.php');\r\n\t\t\t$XFPackages = new XFriendicaPackages();\r\n\t\t\t$method = $XFPackages->state($ret['body'], $package);\r\n\t\t\t$ret['body'] = $XFPackages->{$method}($ret['body'], $package); \r\n\t\t}\r\n\t\treturn $ret;\r\n\t}", "title": "" }, { "docid": "4d275ced63972a6a8300da8c8e4b61ac", "score": "0.43906766", "text": "public abstract function ins($data);", "title": "" }, { "docid": "defaf69f5109c4b7be176b139f46b0f0", "score": "0.43848252", "text": "public function addReferal() {\n if (func_num_args() > 0):\n $data = func_get_arg(0);\n\n $this->insert($data);\n else:\n throw new Exception(\"Argument not passed\");\n endif;\n }", "title": "" }, { "docid": "1e3c6302f6a8cd3f68ced2a352eaf958", "score": "0.43813333", "text": "function drawLinks()\n\t{\n\t\t// submit, edit, view, etc.\n\t}", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.43793258", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.43793258", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.43793258", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.43793258", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.43793258", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.43793258", "text": "abstract public function connect();", "title": "" }, { "docid": "aac12d8ece2f9b17f3e61e0cb0168e26", "score": "0.43793258", "text": "abstract public function connect();", "title": "" }, { "docid": "4b53832065e42fd69dbd4158659d2be0", "score": "0.43758452", "text": "abstract function transporter();", "title": "" }, { "docid": "7bf0c90592e302810f49215f1a2349e4", "score": "0.4374213", "text": "public function decideOnJoinPoint(\\TYPO3\\Flow\\Aop\\JoinPointInterface $joinPoint);", "title": "" }, { "docid": "a05dcd31e488776bea0373e2b5dcf7f0", "score": "0.4373458", "text": "public function displayShortLink() {\r\n\t\techo $this->TrainingObject->Linker()->linkWithSportIcon();\r\n\t}", "title": "" }, { "docid": "01afa429f1b8c248a033f7bb2fc25326", "score": "0.43641615", "text": "function clickbanner()\r\n{\r\n list($dbconn) = pnDBGetConn();\r\n $pntable = pnDBGetTables();\r\n\r\n $bid = pnVarCleanFromInput('bid');\r\n\r\n $column = &$pntable['banner_column'];\r\n $bresult = $dbconn->Execute(\"SELECT $column[clickurl]\r\n FROM $pntable[banner]\r\n WHERE $column[bid]=\".pnVarPrepForStore($bid).\"\");\r\n list($clickurl) = $bresult->fields;\r\n $bresult->Close();\r\n $dbconn->Execute(\"UPDATE $pntable[banner]\r\n SET $column[clicks]=$column[clicks]+1\r\n WHERE $column[bid]=\".pnVarPrepForStore($bid).\"\");\r\n Header(\"Location: $clickurl\");\r\n}", "title": "" }, { "docid": "9c8bb602b48e4bc07995270b10055e88", "score": "0.4360676", "text": "public function nextEntry($link, $result);", "title": "" }, { "docid": "18f8ba84b588cc8413e63a6b07cbf6fc", "score": "0.43605053", "text": "public function getBlockDataHandler($data = NULL);", "title": "" }, { "docid": "601126f7f4683c2fc76c1692647a244b", "score": "0.4359912", "text": "public function labelCallback( $row, $label, DataContainer $dc=null, $imageAttribute='', $blnReturnImage=false, $blnProtected=false ) {\n\n $this->loadLanguageFile('tl_cms_link_shortener_statistics');\n\n $strHtml = '<div class=\"cms_flex\">';\n $strHtml .= '<span>';\n\n $strTarget = $this->replaceInserttags($row['target']);\n $id = null;\n if( preg_match(\"/{{link_url::([0-9]*)}}/\", $row['target'], $id) ) {\n\n $objPage = PageModel::findOneById($id[1]);\n $strTarget = $objPage->title . ' (' . $objPage->alias . Config::get('urlSuffix') . ')';\n }\n\n if( $row['active'] && ($row['stop'] === '' || $row['stop'] > time()) ) {\n\n $strHtml .= $strTarget;\n } else {\n\n $strFallback = '404 Not Found';\n\n if( strlen($row['fallback']) ) {\n\n $strFallback = $this->replaceInserttags($row['fallback']);\n }\n\n $id = null;\n if( preg_match(\"/{{link_url::([0-9]*)}}/\", $row['fallback'], $id) ) {\n\n $objPage = PageModel::findOneById($id[1]);\n $strFallback = $objPage->title . ' (' . $objPage->alias . Config::get('urlSuffix') . ')';\n }\n\n $strHtml .= \"<s>\".$strTarget.\"</s> -> \". $strFallback;\n }\n\n if( strlen($row['description']) ) {\n $strHtml .= \"<br><i>\".$row['description'] .\"</i>\";\n }\n\n $strHtml .= '</span>';\n $strHtml .= '<div class=\"cms_right\">';\n\n $db = Database::getInstance();\n // count requests\n $objResult = $db->prepare(\"\n SELECT count(1) AS count\n FROM tl_cms_link_shortener_statistics\n WHERE pid=?\n \")->execute($row['id']);\n\n $label = $GLOBALS['TL_LANG']['tl_cms_link_shortener_statistics']['requests'];\n $strHtml .= '<span>'.$label.': <strong>'.$objResult->count.'</strong></span>';\n\n if( $objResult->count > 0 ) {\n // count unique requests\n $objResult = $db->prepare(\"\n SELECT DISTINCT unique_id\n FROM tl_cms_link_shortener_statistics\n WHERE pid=?\n \")->execute($row['id']);\n\n $label = $GLOBALS['TL_LANG']['tl_cms_link_shortener_statistics']['unique_requests'];\n $strHtml .= ' - <span>'.$label.': <strong>'.$objResult->numRows.'</strong></span>';\n\n // count bot requests\n $objResult = $db->prepare(\"\n SELECT count(1) AS bot_count\n FROM tl_cms_link_shortener_statistics\n WHERE pid=? AND is_bot=?\n \")->execute($row['id'], 1);\n\n $label = $GLOBALS['TL_LANG']['tl_cms_link_shortener_statistics']['bot_requests'];\n $strHtml .= ' - <span>'.$label.': <strong>'.$objResult->bot_count.'</strong></span>';\n }\n\n $strHtml .= \"</div>\";\n $strHtml .= \"</div>\";\n\n return $strHtml;\n }", "title": "" }, { "docid": "99c45ff65be63efdfd20a28ed9b41634", "score": "0.4358921", "text": "private function setUserData()\n {\n $this->userData = $this->verificationLinkData->user;\n }", "title": "" }, { "docid": "b211fde63f295458540aea594d521fcd", "score": "0.435753", "text": "public function getLinkData()\n {\n return array(\n 'loungetag' => $this->lounge->getLoungetag()\n );\n }", "title": "" }, { "docid": "328ba4a58e02d4115062770e09bee49a", "score": "0.4357205", "text": "protected function mapData( \\stdClass $data ): void {\n\t}", "title": "" }, { "docid": "2f3e5a0171b9061ed171fd7b1389b81e", "score": "0.43554395", "text": "abstract public function getData();", "title": "" }, { "docid": "2f3e5a0171b9061ed171fd7b1389b81e", "score": "0.43554395", "text": "abstract public function getData();", "title": "" }, { "docid": "2f3e5a0171b9061ed171fd7b1389b81e", "score": "0.43554395", "text": "abstract public function getData();", "title": "" }, { "docid": "5bbd7eb5c638641d861bc0aebd443b38", "score": "0.4355121", "text": "function LinkExtractor() {\n\t\tglobal $__linkExtractor_linkRecipient;\n\t\t$__linkExtractor_linkRecipient = Array();\n\t}", "title": "" }, { "docid": "22e81f7c76ed713076af3b90ac221e3a", "score": "0.4352785", "text": "public function linked_page() {\n\t\t$this->render_page_fields( 'linked' );\n\t}", "title": "" }, { "docid": "1999a4a71ba4cce5e5f9f72e8bc3941b", "score": "0.4350969", "text": "function atkOneToOneRelation($name, $destination, $refKey=\"\", $flags=0)\n {\n if ($flags & AF_ONETOONE_ADD != AF_ONETOONE_ADD) $flags |= AF_NO_ADD;\n $this->atkRelation($name, $destination, $flags|AF_ONETOONE_LAZY);\n $this->m_refKey = $refKey;\n }", "title": "" }, { "docid": "f5051ddffd7e78c45a8dec5bea797658", "score": "0.4348712", "text": "function acquire_link_dataset($where)\n {\n $this->transPaths = $this->dbh->Select(\"*\", \"USMap_Trans_Links_View\", $where);\n\n // select all the receiver paths\n $this->recvPaths = $this->dbh->Select(\"*\", \"USMap_Recv_Links_View\", $where);\n\n if($this->debug >= 5) {\n print(\"# Items in Trans Data Set:\" . count($this->transPaths) . \"<br>\\n\");\n print(\"# Items in Recv Data Set:\" . count($this->recvPaths) . \"<br>\\n\");\n }\n}", "title": "" }, { "docid": "88261d83cedb0abb7df65713c5d19678", "score": "0.43481594", "text": "public function show(DataPoint $dataPoint)\n {\n //\n }", "title": "" }, { "docid": "ebe74b998e9d514a3e28e78718cd8bde", "score": "0.43478766", "text": "public function __invoke($data);", "title": "" }, { "docid": "42b53aae79c5ba013e5f0b929fd43e29", "score": "0.43468392", "text": "public function post_link($permalink, $id, $leavename = false);", "title": "" }, { "docid": "eea192f5783c1ebe4d2ef0c91adff331", "score": "0.43369654", "text": "public function link() {\n $this->render('link.inc');\n }", "title": "" }, { "docid": "099b75075ff700927c9a2ef26e014170", "score": "0.4333296", "text": "public function setLinks(array $data);", "title": "" }, { "docid": "11439d06062f7b009a1bcc7dd63c6e81", "score": "0.43319866", "text": "public function visit(){}", "title": "" }, { "docid": "28b3d6bd0bba2a234d297920596174e5", "score": "0.4330095", "text": "protected function define_data_binding(){\n\t\t\t// placeholder function\n\t\t\t// use bind_action here to define the data binding\n\t\t}", "title": "" } ]
767099a34f7756f9e106417ab2a8aee8
Ensures typed property is initialized in PHP >=7.4, if so, return its value,
[ { "docid": "238eda8a689ddda5932b36c1d673f640", "score": "0.614752", "text": "public function getInitializedPropertyValue(\\ReflectionProperty $property)\n {\n // if not initialized, return null (as expected in earlier PHP Versions)\n if (method_exists($property, 'isInitialized') && !$property->isInitialized($this)) {\n return null;\n }\n\n return $property->getValue($this);\n }", "title": "" } ]
[ { "docid": "3923d3f198eca8254dfb590442e12e4c", "score": "0.5563778", "text": "protected function getPropertyType()\n {\n $propertyName = $this->propertyRef->getName();\n $propertyClassName = $this->propertyRef->getDeclaringClass()->getName();\n $propertyType = null;\n $zendPropertyRef = new PropertyReflection($propertyClassName, $propertyName);\n /** @var \\Zend\\Code\\Reflection\\DocBlock\\Tag\\GenericTag $tag */\n foreach ($zendPropertyRef->getDocBlock()->getTags() as $tag) {\n if ($tag->getName() == 'var') {\n $propertyType = $tag->getContent();\n break;\n }\n }\n if (!$propertyType) {\n throw new PropertyTypeNotSetException($propertyName, $propertyClassName);\n }\n return $propertyType;\n }", "title": "" }, { "docid": "b286893af2552378703dde22c5a4a8de", "score": "0.5446788", "text": "public function getReferencedProperty(): ?string {\n $val = $this->getBackingStore()->get('referencedProperty');\n if (is_null($val) || is_string($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'referencedProperty'\");\n }", "title": "" }, { "docid": "e4180cb4d8a6c412dfbb93b5cc6e3778", "score": "0.5438653", "text": "public function testPublicProperty()\n {\n $e = null;\n try {\n\n $this->propertyTestClass->publicNonCheckedProperty = 'test';\n\n } catch (\\Exception $e) {\n }\n\n // Did we get the right $e?\n $this->assertNull($e);\n\n $e = null;\n try {\n\n $test = $this->propertyTestClass->publicNonCheckedProperty;\n\n } catch (\\Exception $e) {\n }\n\n // Did we get the right $e?\n $this->assertNull($e);\n\n $e = null;\n try {\n\n $this->propertyTestClass->publicCheckedProperty = 27.42;\n\n } catch (\\Exception $e) {\n }\n\n // Did we get the right $e?\n $this->assertNull($e);\n\n $e = null;\n try {\n\n $test = $this->propertyTestClass->publicCheckedProperty;\n\n } catch (\\Exception $e) {\n }\n\n // Did we get the right $e?\n $this->assertNull($e);\n $this->assertEquals($test, 27.42);\n\n $e = null;\n try {\n\n $this->propertyTestClass->publicCheckedProperty = 27.423;\n\n } catch (\\Exception $e) {\n }\n\n // Did we get the right $e?\n $this->assertInstanceOf(\"TechDivision\\\\PBC\\\\Exceptions\\\\BrokenInvariantException\", $e);\n }", "title": "" }, { "docid": "e63f5951d765ac48dfc5233754bd669d", "score": "0.54191744", "text": "public function init() {\r\n if ($this->realType === null && $this->defaultValue !== null)\r\n $this->extractRealType();\r\n $this->extractType();\r\n }", "title": "" }, { "docid": "171c546b3b43922ce56213eef3ff590a", "score": "0.5379157", "text": "final public function get ()\n\t{ return $this->_value ?? $this->_default; }", "title": "" }, { "docid": "f99201df916a7643016ddbcc147c9325", "score": "0.5325526", "text": "function fetchMonoProp()\n {\n $ret = 1;\n foreach ($this->monowall as $mono) {\n if (!$mono->fetchProp()) $ret = 0;\n }\n return $ret;\n }", "title": "" }, { "docid": "ec601d2f898d34e9d921ec4d6fd09c2d", "score": "0.53098404", "text": "public function getSingleValueExtendedProperties(): ?array {\n $val = $this->getBackingStore()->get('singleValueExtendedProperties');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, SingleValueLegacyExtendedProperty::class);\n /** @var array<SingleValueLegacyExtendedProperty>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'singleValueExtendedProperties'\");\n }", "title": "" }, { "docid": "e201d06e3a9e24bc60441b38e0ad677a", "score": "0.52868", "text": "public function __get($property) {\n if (!isset($this->values[$property]))\n throw new Core_MissingPropertyException($property);\n switch (true) {\n case is_array($this->values[$property]):\n return new self($this->values[$property]);\n case $this->is_date($property):\n return Time::DateTime($this->values[$property]);\n default:\n return $this->values[$property];\n }\n }", "title": "" }, { "docid": "8197534d90ae3d90595cfd08c03e56f3", "score": "0.5247236", "text": "public function testDefaultValue()\n {\n $c = 0; // class SimpleClass\n $p = 1; // var2 property\n\n $properties = self::$models[$c]->getProperties();\n\n $this->assertTrue(\n $properties[$p]->isDefault(),\n $properties[$p]->getName()\n . \", property #$p was not declared at compile-time.\"\n );\n }", "title": "" }, { "docid": "e2a205029db680e6a79090cf93b00d77", "score": "0.52227205", "text": "private static function getMagicGetterOrSetterProperty(\n StatementsAnalyzer $statements_analyzer,\n PhpParser\\Node\\Expr\\MethodCall $stmt,\n Context $context,\n $fq_class_name\n ) : ?Type\\Union {\n if (!$stmt->name instanceof PhpParser\\Node\\Identifier) {\n return null;\n }\n\n $method_name = strtolower($stmt->name->name);\n if (!in_array($method_name, ['__get', '__set'], true)) {\n return null;\n }\n\n $codebase = $statements_analyzer->getCodebase();\n\n $first_arg_value = $stmt->args[0]->value;\n if (!$first_arg_value instanceof PhpParser\\Node\\Scalar\\String_) {\n return null;\n }\n\n $prop_name = $first_arg_value->value;\n $property_id = $fq_class_name . '::$' . $prop_name;\n\n $class_storage = $codebase->classlike_storage_provider->get($fq_class_name);\n\n $codebase->properties->propertyExists(\n $property_id,\n $method_name === '__get',\n $statements_analyzer,\n $context,\n new CodeLocation($statements_analyzer->getSource(), $stmt)\n );\n\n switch ($method_name) {\n case '__set':\n // If `@psalm-seal-properties` is set, the property must be defined with\n // a `@property` annotation\n if ($class_storage->sealed_properties\n && !isset($class_storage->pseudo_property_set_types['$' . $prop_name])\n && IssueBuffer::accepts(\n new UndefinedThisPropertyAssignment(\n 'Instance property ' . $property_id . ' is not defined',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id\n ),\n $statements_analyzer->getSuppressedIssues()\n )\n ) {\n // fall through\n }\n\n // If a `@property` annotation is set, the type of the value passed to the\n // magic setter must match the annotation.\n $second_arg_type = $statements_analyzer->node_data->getType($stmt->args[1]->value);\n\n if (isset($class_storage->pseudo_property_set_types['$' . $prop_name]) && $second_arg_type) {\n $pseudo_set_type = \\Psalm\\Internal\\Type\\TypeExpander::expandUnion(\n $codebase,\n $class_storage->pseudo_property_set_types['$' . $prop_name],\n $fq_class_name,\n new Type\\Atomic\\TNamedObject($fq_class_name),\n $class_storage->parent_class\n );\n\n $union_comparison_results = new \\Psalm\\Internal\\Analyzer\\TypeComparisonResult();\n\n $type_match_found = TypeAnalyzer::isContainedBy(\n $codebase,\n $second_arg_type,\n $pseudo_set_type,\n $second_arg_type->ignore_nullable_issues,\n $second_arg_type->ignore_falsable_issues,\n $union_comparison_results\n );\n\n if ($union_comparison_results->type_coerced) {\n if ($union_comparison_results->type_coerced_from_mixed) {\n if (IssueBuffer::accepts(\n new MixedPropertyTypeCoercion(\n $prop_name . ' expects \\'' . $pseudo_set_type->getId() . '\\', '\n . ' parent type `' . $second_arg_type . '` provided',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id\n ),\n $statements_analyzer->getSuppressedIssues()\n )) {\n // keep soldiering on\n }\n } else {\n if (IssueBuffer::accepts(\n new PropertyTypeCoercion(\n $prop_name . ' expects \\'' . $pseudo_set_type->getId() . '\\', '\n . ' parent type `' . $second_arg_type . '` provided',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id\n ),\n $statements_analyzer->getSuppressedIssues()\n )) {\n // keep soldiering on\n }\n }\n }\n\n if (!$type_match_found && !$union_comparison_results->type_coerced_from_mixed) {\n if (TypeAnalyzer::canBeContainedBy(\n $codebase,\n $second_arg_type,\n $pseudo_set_type\n )) {\n if (IssueBuffer::accepts(\n new PossiblyInvalidPropertyAssignmentValue(\n $prop_name . ' with declared type \\''\n . $pseudo_set_type\n . '\\' cannot be assigned possibly different type \\'' . $second_arg_type . '\\'',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id\n ),\n $statements_analyzer->getSuppressedIssues()\n )) {\n // fall through\n }\n } else {\n if (IssueBuffer::accepts(\n new InvalidPropertyAssignmentValue(\n $prop_name . ' with declared type \\''\n . $pseudo_set_type\n . '\\' cannot be assigned type \\'' . $second_arg_type . '\\'',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id\n ),\n $statements_analyzer->getSuppressedIssues()\n )) {\n // fall through\n }\n }\n }\n }\n break;\n\n case '__get':\n // If `@psalm-seal-properties` is set, the property must be defined with\n // a `@property` annotation\n if ($class_storage->sealed_properties\n && !isset($class_storage->pseudo_property_get_types['$' . $prop_name])\n && IssueBuffer::accepts(\n new UndefinedThisPropertyFetch(\n 'Instance property ' . $property_id . ' is not defined',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id\n ),\n $statements_analyzer->getSuppressedIssues()\n )\n ) {\n // fall through\n }\n\n if (isset($class_storage->pseudo_property_get_types['$' . $prop_name])) {\n return clone $class_storage->pseudo_property_get_types['$' . $prop_name];\n }\n\n break;\n }\n\n return null;\n }", "title": "" }, { "docid": "d42cb3a4c68b195a60d8f262f5ac47ec", "score": "0.52013725", "text": "public function __get(string $name)\n {\n if ($name === 'length') {\n return sizeof($this);\n }\n throw new \\Exception('Undefined property: ' . $name);\n }", "title": "" }, { "docid": "84e82818d66b998f8f5a9a06da674952", "score": "0.518831", "text": "public function __get(string $name){\n\n\t\tif(in_array($name, $this::ALLOWED_PROPERTIES, true)){\n\t\t\treturn $this->{$name};\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5666cf033dedbc6f3c4ea83bd06dfea7", "score": "0.51713634", "text": "public function getPhpType(): string|null;", "title": "" }, { "docid": "58e3bdc6caf863827ae1f1e399254290", "score": "0.51407665", "text": "public function __get($property);", "title": "" }, { "docid": "887342c281a67133b67609f3ba2de120", "score": "0.5137329", "text": "public function checkAndSetTypeHint()\n {\n $this->typeHint = self::TYPE_VALUE; \n }", "title": "" }, { "docid": "e2be4489f4f8d2c4045038590a6752cf", "score": "0.51270133", "text": "public function __get($name) {\n\t\tif (!property_exists($this, $name)) {\n\t\t\treturn FALSE;\n\t\t}\n\t}", "title": "" }, { "docid": "5536390c7e28ae7332790a4794a30a8f", "score": "0.51233697", "text": "public function toPhpReflectionProperty()\n {\n return new \\ReflectionProperty($this->getClassName(), $this->getPropertyName());\n }", "title": "" }, { "docid": "717830a18024c9fbd2b176a150867260", "score": "0.5118544", "text": "public function asDoctrineProperty();", "title": "" }, { "docid": "de319270125a39578ddc3c49e3a77055", "score": "0.51137394", "text": "public function getProperty(): ?array\n\t{\n\t\treturn $this->property;\n\t}", "title": "" }, { "docid": "3b01865e732c9b2a409d8da17eb8dea2", "score": "0.5077578", "text": "final public function createProperty()\n {\n $container = $this->getContainer();\n\n $prop = $container['property/factory']->create('generic');\n $prop->setIdent('xyzzy');\n\n return $prop;\n }", "title": "" }, { "docid": "73ecbda5a65307fccc3946327b5809de", "score": "0.5066584", "text": "public function __get(string $property);", "title": "" }, { "docid": "ee56733d89eb186835cb745a46b744ad", "score": "0.50604945", "text": "function get_value()\n {\n return $this->get_default_property(self::PROPERTY_VALUE);\n }", "title": "" }, { "docid": "3cf9bab9ea18f9c2964a92f290d4e475", "score": "0.5057536", "text": "private static function getMagicGetterOrSetterProperty(\n StatementsAnalyzer $statements_analyzer,\n PhpParser\\Node\\Expr\\MethodCall $stmt,\n PhpParser\\Node\\Identifier $stmt_name,\n Context $context,\n string $fq_class_name\n ): ?Union {\n $method_name = strtolower($stmt_name->name);\n if (!in_array($method_name, ['__get', '__set'], true)) {\n return null;\n }\n\n $codebase = $statements_analyzer->getCodebase();\n\n $first_arg_value = $stmt->getArgs()[0]->value ?? null;\n\n if (!$first_arg_value instanceof PhpParser\\Node\\Scalar\\String_) {\n return null;\n }\n\n $prop_name = $first_arg_value->value;\n $property_id = $fq_class_name . '::$' . $prop_name;\n\n $class_storage = $codebase->classlike_storage_provider->get($fq_class_name);\n\n $codebase->properties->propertyExists(\n $property_id,\n $method_name === '__get',\n $statements_analyzer,\n $context,\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n );\n\n switch ($method_name) {\n case '__set':\n // If `@psalm-seal-properties` is set, the property must be defined with\n // a `@property` annotation\n if (($class_storage->hasSealedProperties($codebase->config))\n && !isset($class_storage->pseudo_property_set_types['$' . $prop_name])\n ) {\n IssueBuffer::maybeAdd(\n new UndefinedThisPropertyAssignment(\n 'Instance property ' . $property_id . ' is not defined',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id,\n ),\n $statements_analyzer->getSuppressedIssues(),\n );\n }\n\n // If a `@property` annotation is set, the type of the value passed to the\n // magic setter must match the annotation.\n $second_arg_type = isset($stmt->getArgs()[1])\n ? $statements_analyzer->node_data->getType($stmt->getArgs()[1]->value)\n : null;\n\n if (isset($class_storage->pseudo_property_set_types['$' . $prop_name]) && $second_arg_type) {\n $pseudo_set_type = TypeExpander::expandUnion(\n $codebase,\n $class_storage->pseudo_property_set_types['$' . $prop_name],\n $fq_class_name,\n new TNamedObject($fq_class_name),\n $class_storage->parent_class,\n );\n\n $union_comparison_results = new TypeComparisonResult();\n\n $type_match_found = UnionTypeComparator::isContainedBy(\n $codebase,\n $second_arg_type,\n $pseudo_set_type,\n $second_arg_type->ignore_nullable_issues,\n $second_arg_type->ignore_falsable_issues,\n $union_comparison_results,\n );\n\n if ($union_comparison_results->type_coerced) {\n if ($union_comparison_results->type_coerced_from_mixed) {\n IssueBuffer::maybeAdd(\n new MixedPropertyTypeCoercion(\n $prop_name . ' expects \\'' . $pseudo_set_type->getId() . '\\', '\n . ' parent type `' . $second_arg_type . '` provided',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id,\n ),\n $statements_analyzer->getSuppressedIssues(),\n );\n } else {\n IssueBuffer::maybeAdd(\n new PropertyTypeCoercion(\n $prop_name . ' expects \\'' . $pseudo_set_type->getId() . '\\', '\n . ' parent type `' . $second_arg_type . '` provided',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id,\n ),\n $statements_analyzer->getSuppressedIssues(),\n );\n }\n }\n\n if (!$type_match_found && !$union_comparison_results->type_coerced_from_mixed) {\n if (UnionTypeComparator::canBeContainedBy(\n $codebase,\n $second_arg_type,\n $pseudo_set_type,\n )) {\n IssueBuffer::maybeAdd(\n new PossiblyInvalidPropertyAssignmentValue(\n $prop_name . ' with declared type \\''\n . $pseudo_set_type\n . '\\' cannot be assigned possibly different type \\'' . $second_arg_type . '\\'',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id,\n ),\n $statements_analyzer->getSuppressedIssues(),\n );\n } else {\n IssueBuffer::maybeAdd(\n new InvalidPropertyAssignmentValue(\n $prop_name . ' with declared type \\''\n . $pseudo_set_type\n . '\\' cannot be assigned type \\'' . $second_arg_type . '\\'',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id,\n ),\n $statements_analyzer->getSuppressedIssues(),\n );\n }\n }\n }\n break;\n\n case '__get':\n // If `@psalm-seal-properties` is set, the property must be defined with\n // a `@property` annotation\n if (($class_storage->hasSealedProperties($codebase->config))\n && !isset($class_storage->pseudo_property_get_types['$' . $prop_name])\n ) {\n IssueBuffer::maybeAdd(\n new UndefinedThisPropertyFetch(\n 'Instance property ' . $property_id . ' is not defined',\n new CodeLocation($statements_analyzer->getSource(), $stmt),\n $property_id,\n ),\n $statements_analyzer->getSuppressedIssues(),\n );\n }\n\n if (isset($class_storage->pseudo_property_get_types['$' . $prop_name])) {\n return $class_storage->pseudo_property_get_types['$' . $prop_name];\n }\n\n break;\n }\n\n return null;\n }", "title": "" }, { "docid": "37f0409db677e841a20e2b4e7e994984", "score": "0.50569475", "text": "public function getEnableAlwaysOn(): ?bool {\n $val = $this->getBackingStore()->get('enableAlwaysOn');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'enableAlwaysOn'\");\n }", "title": "" }, { "docid": "8ec8dcc5e029facc3f6ecaf0d05d4684", "score": "0.504361", "text": "public function __get($property)\n {\n return null;\n }", "title": "" }, { "docid": "06d14320c38f6661fffd1f694661573c", "score": "0.5031297", "text": "public function getProperty();", "title": "" }, { "docid": "06d14320c38f6661fffd1f694661573c", "score": "0.5031297", "text": "public function getProperty();", "title": "" }, { "docid": "06d14320c38f6661fffd1f694661573c", "score": "0.5031297", "text": "public function getProperty();", "title": "" }, { "docid": "455229ad1fbf74a08f0f8dbb84e6dabe", "score": "0.5026873", "text": "public function test_static_property()\n {\n self::$static_property = 'not_set';\n $value = 'is_set';\n\n $this->assertNotEquals($value, Reflection::getProperty('static_property', null, $this));\n $null = null;\n Reflection::setProperty('static_property', null, $null, $value);\n $this->assertEquals($value, Reflection::getProperty('static_property', null, $this));\n }", "title": "" }, { "docid": "f5605621ab03193f7ab288fc08bca42f", "score": "0.5024851", "text": "public function offsetGet($offset): ?\\StructType\\EwsTrackingPropertyType\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "57ee442f11a2569485dba82ceaf6f03c", "score": "0.500605", "text": "private static function getProperty($obj, $property, $type, $allowEmptyValues)\n {\n if (!is_array($obj) && !is_object($obj)) {\n return null;\n }\n\n if (is_object($obj) && !property_exists($obj, $property)) {\n return null;\n }\n if (is_array($obj) && !isset($obj[$property])) {\n return null;\n }\n\n if (is_object($obj)) {\n $value = self::getFromObj($obj, $property);\n } else {\n $value = self::getFromArray($obj, $property);\n }\n\n settype($value, $type);\n\n // Check for empty after the property has been casted to submitted the type.\n if (!$allowEmptyValues && self::isEmpty($value)) {\n return null;\n }\n\n return $value;\n }", "title": "" }, { "docid": "b86ebaf1afc853e260cad57c8a24c359", "score": "0.49981686", "text": "public function __get($property){\n// check if what we are tryig to access exist in our container\n if ($this->container->{$property})\n {\n return $this->container->{$property};\n }\n\n }", "title": "" }, { "docid": "ae2ffc9bb207a3849043f8eacedf71ed", "score": "0.49959522", "text": "public function testConstructor()\n {\n $neededTarget = 'neededTarget';\n\n $instance = new MappedPropertyFilter($neededTarget);\n\n $reflexProperty = new \\ReflectionProperty(\n MappedPropertyFilter::class,\n 'neededProperty'\n );\n $reflexProperty->setAccessible(true);\n\n $this->assertEquals($neededTarget, $reflexProperty->getValue($instance));\n\n return;\n }", "title": "" }, { "docid": "bcfbc31144dd206fdf1d4b02a0d7ddb5", "score": "0.49955168", "text": "public function __get($property)\r\n {\r\n if (property_exists($this, $property)) {\r\n //UTF-8 is recommended for correct JSON serialization\r\n $value = $this->$property;\r\n if (is_string($value) && mb_detect_encoding($value, \"UTF-8\", TRUE) != \"UTF-8\") {\r\n return utf8_encode($value);\r\n }\r\n else {\r\n return $value;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "bcfbc31144dd206fdf1d4b02a0d7ddb5", "score": "0.49955168", "text": "public function __get($property)\r\n {\r\n if (property_exists($this, $property)) {\r\n //UTF-8 is recommended for correct JSON serialization\r\n $value = $this->$property;\r\n if (is_string($value) && mb_detect_encoding($value, \"UTF-8\", TRUE) != \"UTF-8\") {\r\n return utf8_encode($value);\r\n }\r\n else {\r\n return $value;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5c4281ddfd2ff2cf410499d18cb1770f", "score": "0.499293", "text": "public function getAllowed(): ?bool {\n $val = $this->getBackingStore()->get('allowed');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'allowed'\");\n }", "title": "" }, { "docid": "0e3b57e662e9f722976d7fc082e9c605", "score": "0.49920583", "text": "public function __get($prop) {\n if ($this->container->{$prop}) {\n return $this->container->{$prop};\n }\n }", "title": "" }, { "docid": "fddc41559b837fd7d6338172113636e0", "score": "0.498072", "text": "function get($name, $properties) {\n if (TP_STRICT_PROPERTIES) {\n if (!isset($properties[$name])) return TypePad::throwPropertyNotice($name);\n }\n return isset($this->data->$name) ? $this->data->$name : NULL;\n }", "title": "" }, { "docid": "a1eadd21019bb41c89c50be5a9e56c1a", "score": "0.49797264", "text": "public function getIsValid(): ?bool {\n $val = $this->getBackingStore()->get('isValid');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'isValid'\");\n }", "title": "" }, { "docid": "0da2743f80cdd25532a8b10d6b63fdcc", "score": "0.4973106", "text": "public function __get($name)\n {\n if ($this->_isReadableProperty($name) === true) {\n return $this->_getPropertyValue($name);\n }\n\n list($trace) = debug_backtrace();\n trigger_error(\n 'Undefined property via __get(): ' . $name .\n ' in ' . $trace['file'] . ' on line ' . $trace['line'],\n E_USER_ERROR\n );\n }", "title": "" }, { "docid": "70cc4a13577018dafd63222c67fc4a50", "score": "0.49602294", "text": "abstract public function readProperty($class, $property);", "title": "" }, { "docid": "b2f0aa4995fe96b3305b34319d3b3ef3", "score": "0.4956286", "text": "public function shouldFetchFromMagicProperty(): bool;", "title": "" }, { "docid": "eb83a077011f694ba13b4f1e906474ae", "score": "0.49463356", "text": "public function getCanExtend(): ?bool {\n $val = $this->getBackingStore()->get('canExtend');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'canExtend'\");\n }", "title": "" }, { "docid": "e611908924ead10fc0ed371bf9a4d28a", "score": "0.49404398", "text": "public function getEnablePreAuthentication(): ?bool {\n $val = $this->getBackingStore()->get('enablePreAuthentication');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'enablePreAuthentication'\");\n }", "title": "" }, { "docid": "a907307cf940e13c8288effde7f7cafc", "score": "0.49360353", "text": "public function __get($var) {\n return false;\n }", "title": "" }, { "docid": "2a722dbca12bcb5d1ac2ebd78da0ea52", "score": "0.4934458", "text": "public function __get($name) {\n $properties = get_object_vars($this);\n if (array_key_exists($name, $properties)) {\n return $properties[$name];\n }\n\n if (isset(static::$lazyLoad[$name]) && $this->_item) {\n $method = static::$lazyLoad[$name];\n return $this->_item->$method();\n }\n\n $class = get_class($this);\n trigger_error(\"Undefined property: $class::\\$$name\");\n return NULL;\n }", "title": "" }, { "docid": "e9fdc0423cc7f348d0fce5077165ab3b", "score": "0.49290735", "text": "public function getIsBuiltIn(): ?bool {\n $val = $this->getBackingStore()->get('isBuiltIn');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'isBuiltIn'\");\n }", "title": "" }, { "docid": "a9e9b7537a7e81f76d43c9dcaaddd745", "score": "0.49220988", "text": "public function checkProperty()\n {\n if ($this->char() == Null)\n\n $this->unexpectedEof();\n\n elseif ($this->char() == '@' || ctype_space($this->char()))\n\n $this->unexpectedPropertyDef();\n\n elseif (!ctype_alpha($this->char()))\n\n $this->invalidProperty();\n }", "title": "" }, { "docid": "549fbaf1f28d21819878c92f75ab02df", "score": "0.4920718", "text": "public function testMissingProperty()\n {\n $e = null;\n try {\n\n $this->propertyTestClass->notExistingProperty = 'test';\n\n } catch (\\Exception $e) {\n }\n\n // Did we get the right $e?\n $this->assertInstanceOf(\"TechDivision\\\\PBC\\\\Exceptions\\\\MissingPropertyException\", $e);\n\n $e = null;\n try {\n\n $test = $this->propertyTestClass->notExistingProperty;\n\n } catch (\\Exception $e) {\n }\n\n // Did we get the right $e?\n $this->assertInstanceOf(\"TechDivision\\\\PBC\\\\Exceptions\\\\MissingPropertyException\", $e);\n }", "title": "" }, { "docid": "53b0149e191c1436dfebc2083a1a8147", "score": "0.4920061", "text": "final protected static function get_property_default_value($property) {\n $properties = static::properties_definition();\n if (!isset($properties[$property]['default'])) {\n return null;\n }\n $value = $properties[$property]['default'];\n if ($value instanceof \\Closure) {\n return $value();\n }\n return $value;\n }", "title": "" }, { "docid": "631ce4f0541ce9870dadc63578a4c581", "score": "0.4914674", "text": "abstract protected function initialize($value);", "title": "" }, { "docid": "129d167b64076a7b13991756d810dfdd", "score": "0.49099183", "text": "public function __get($key) {\n\t\tswitch ($key) {\n\t\t\tcase 'max_size':\n\t\t\t\treturn $this->settings[$key];\n\t\t\tdefault:\n\t\t\t\tthrow new Throwable_InvalidProperty_Exception('Message: Unable to get the specified property. Reason: Property :key is either inaccessible or undefined.', array(':key' => $key));\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "53ba1471e33c6cf543fe8ab69ea1c734", "score": "0.4899091", "text": "public function getProcessorCoreCountCheckFailed(): ?bool {\n $val = $this->getBackingStore()->get('processorCoreCountCheckFailed');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'processorCoreCountCheckFailed'\");\n }", "title": "" }, { "docid": "63d7a8604ef0995455adbad07d25a36c", "score": "0.4898958", "text": "public static function DaftObjectNullableProperties() : array;", "title": "" }, { "docid": "3bcf0c41af5b36757e407ba22b6e3be5", "score": "0.48962608", "text": "public function __get($property) {\n return property_exists($this, $property) ? $this->$property : null;\n }", "title": "" }, { "docid": "53327dc92afcaeae692ed19a849fe95f", "score": "0.48957035", "text": "public function getPasswordMinimumLength(): ?int {\n $val = $this->getBackingStore()->get('passwordMinimumLength');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'passwordMinimumLength'\");\n }", "title": "" }, { "docid": "53327dc92afcaeae692ed19a849fe95f", "score": "0.48957035", "text": "public function getPasswordMinimumLength(): ?int {\n $val = $this->getBackingStore()->get('passwordMinimumLength');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'passwordMinimumLength'\");\n }", "title": "" }, { "docid": "523d63185c008b7b35316b0765fb7ab3", "score": "0.4894093", "text": "public function testValueAccessor()\n {\n $c = 0; // class SimpleClass\n $p = 5; // var6 property\n\n $properties = self::$models[$c]->getProperties();\n\n $expected = 'hello world';\n\n $this->assertEquals(\n $expected,\n $properties[$p]->getValue(),\n $properties[$p]->getName()\n . \", property #$p value does not match.\"\n );\n }", "title": "" }, { "docid": "868cd004dd38e791cae328e6365ba57b", "score": "0.48862183", "text": "public function getAutoPilotRegistered(): ?bool {\n $val = $this->getBackingStore()->get('autoPilotRegistered');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'autoPilotRegistered'\");\n }", "title": "" }, { "docid": "c7451369fb1644774604232cd945d484", "score": "0.48834777", "text": "public function & __get(string $name): mixed\n {\n if (! isset($this->lazyPropertyAccessors[$name])) {\n throw InvalidLazyProperty::nonExistingLazyProperty($this, $name);\n }\n\n $caller = debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT)[1];\n\n // small optimization to avoid initializing reflection out of context\n if (! isset($caller['object']) || $caller['object'] !== $this) {\n AccessScopeChecker::checkCallerScope($caller, $this, $name);\n }\n\n $this->$name = null;\n $this->$name = $this->{'get' . $name}();\n\n return $this->$name;\n }", "title": "" }, { "docid": "380162634b93ee893df24404ecd4c29c", "score": "0.4873653", "text": "public function findProperty(string $name): ?IProperty;", "title": "" }, { "docid": "38b2a7415a011984e29c17359883c8c9", "score": "0.48726806", "text": "public function getProcessorSpeedCheckFailed(): ?bool {\n $val = $this->getBackingStore()->get('processorSpeedCheckFailed');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'processorSpeedCheckFailed'\");\n }", "title": "" }, { "docid": "99f197da8f580040618f67f86944192f", "score": "0.48717526", "text": "private function readProperty(array $zval, string $property, bool $ignoreInvalidProperty = false, bool $isNullSafe = false): array\n {\n if (!\\is_object($zval[self::VALUE])) {\n throw new NoSuchPropertyException(sprintf('Cannot read property \"%s\" from an array. Maybe you intended to write the property path as \"[%1$s]\" instead.', $property));\n }\n\n $result = self::RESULT_PROTO;\n $object = $zval[self::VALUE];\n $class = $object::class;\n $access = $this->getReadInfo($class, $property);\n\n if (null !== $access) {\n $name = $access->getName();\n $type = $access->getType();\n\n try {\n if (PropertyReadInfo::TYPE_METHOD === $type) {\n try {\n $result[self::VALUE] = $object->$name();\n } catch (\\TypeError $e) {\n [$trace] = $e->getTrace();\n\n // handle uninitialized properties in PHP >= 7\n if (__FILE__ === ($trace['file'] ?? null)\n && $name === $trace['function']\n && $object instanceof $trace['class']\n && preg_match('/Return value (?:of .*::\\w+\\(\\) )?must be of (?:the )?type (\\w+), null returned$/', $e->getMessage(), $matches)\n ) {\n throw new UninitializedPropertyException(sprintf('The method \"%s::%s()\" returned \"null\", but expected type \"%3$s\". Did you forget to initialize a property or to make the return type nullable using \"?%3$s\"?', get_debug_type($object), $name, $matches[1]), 0, $e);\n }\n\n throw $e;\n }\n } elseif (PropertyReadInfo::TYPE_PROPERTY === $type) {\n if ($access->canBeReference() && !isset($object->$name) && !\\array_key_exists($name, (array) $object) && !(new \\ReflectionProperty($class, $name))->hasType()) {\n throw new UninitializedPropertyException(sprintf('The property \"%s::$%s\" is not initialized.', $class, $name));\n }\n\n $result[self::VALUE] = $object->$name;\n\n if (isset($zval[self::REF]) && $access->canBeReference()) {\n $result[self::REF] = &$object->$name;\n }\n }\n } catch (\\Error $e) {\n // handle uninitialized properties in PHP >= 7.4\n if (preg_match('/^Typed property ([\\w\\\\\\\\@]+)::\\$(\\w+) must not be accessed before initialization$/', $e->getMessage(), $matches)) {\n $r = new \\ReflectionProperty(str_contains($matches[1], '@anonymous') ? $class : $matches[1], $matches[2]);\n $type = ($type = $r->getType()) instanceof \\ReflectionNamedType ? $type->getName() : (string) $type;\n\n throw new UninitializedPropertyException(sprintf('The property \"%s::$%s\" is not readable because it is typed \"%s\". You should initialize it or declare a default value instead.', $matches[1], $r->getName(), $type), 0, $e);\n }\n\n throw $e;\n }\n } elseif (property_exists($object, $property) && \\array_key_exists($property, (array) $object)) {\n $result[self::VALUE] = $object->$property;\n if (isset($zval[self::REF])) {\n $result[self::REF] = &$object->$property;\n }\n } elseif ($isNullSafe) {\n $result[self::VALUE] = null;\n } elseif (!$ignoreInvalidProperty) {\n throw new NoSuchPropertyException(sprintf('Can\\'t get a way to read the property \"%s\" in class \"%s\".', $property, $class));\n }\n\n // Objects are always passed around by reference\n if (isset($zval[self::REF]) && \\is_object($result[self::VALUE])) {\n $result[self::REF] = $result[self::VALUE];\n }\n\n return $result;\n }", "title": "" }, { "docid": "75c4f5e8da5174b07af6ed0759364407", "score": "0.48674947", "text": "public function getAutoPilotProfileAssigned(): ?bool {\n $val = $this->getBackingStore()->get('autoPilotProfileAssigned');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'autoPilotProfileAssigned'\");\n }", "title": "" }, { "docid": "db4bf9881b19a8fe82b2d76c3ae11cb6", "score": "0.48565128", "text": "public function __get($Name)\r\n {\r\n $getter='get'.$Name;\r\n\r\n if(method_exists($this,$getter))\r\n {\r\n $returnValue = $this->$getter();\r\n }\r\n else if (array_key_exists(strtolower($Name), $this->_templateVariables))\r\n {\r\n $returnValue = $this->_templateVariables[strtolower($Name)];\r\n }\r\n else\r\n {\r\n throw new InvalidPropertyException(\"No Readable Property: $Name\", get_class($this), $Name);\r\n }\r\n\r\n return $returnValue;\r\n }", "title": "" }, { "docid": "383ed42a263e619fce8d02758f7dbf56", "score": "0.48561895", "text": "public function __get(string $name): mixed\n {\n if (Pure::dotGet($this->accessScopes, \"$name.get\")) {\n return $this->$name;\n }\n if (defined(\"{$this->castedClass->className}::$name\")) {\n return constant(\"$this->classInstance::$name\");\n }\n if (is_null(Pure::dotGet($this, \"classInstance.$name\"))) {\n throw new Error(\n Lang::get('errors.adaptor.inaccessibleProperty.get', [get_class($this), $name])\n );\n }\n return $this->classInstance->$name;\n }", "title": "" }, { "docid": "8415721827ddc1f2bfa34ab9a21d7dd0", "score": "0.4855161", "text": "public function getPasswordRequired(): ?bool {\n $val = $this->getBackingStore()->get('passwordRequired');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'passwordRequired'\");\n }", "title": "" }, { "docid": "8415721827ddc1f2bfa34ab9a21d7dd0", "score": "0.4855161", "text": "public function getPasswordRequired(): ?bool {\n $val = $this->getBackingStore()->get('passwordRequired');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'passwordRequired'\");\n }", "title": "" }, { "docid": "497e88bb713b48fe46e2a8dab24652c4", "score": "0.48542273", "text": "public function testClassFqnPostfixAsPropertyInitializer()\n {\n $this->assertNotNull($this->parseCodeResourceForTest());\n\n /** @var \\PDepend\\Source\\AST\\ASTFieldDeclaration $fieldDeclaration */\n $fieldDeclaration = $this->getFirstClassForTestCase(__METHOD__)->getChild(0);\n\n $this->assertInstanceOf('PDepend\\\\Source\\\\AST\\\\ASTFieldDeclaration', $fieldDeclaration);\n\n /** @var \\PDepend\\Source\\AST\\ASTVariableDeclarator $variableDeclarator */\n $variableDeclarator = $fieldDeclaration->getChild(0);\n\n $this->assertInstanceOf('PDepend\\\\Source\\\\AST\\\\ASTVariableDeclarator', $variableDeclarator);\n $this->assertTrue($variableDeclarator->getValue()->isValueAvailable());\n\n /** @var \\PDepend\\Source\\AST\\ASTClassOrInterfaceReference $classReference */\n $classReference = $variableDeclarator->getValue()->getValue();\n $this->assertInstanceOf('PDepend\\\\Source\\\\AST\\\\ASTClassOrInterfaceReference', $classReference);\n\n $this->assertSame('\\\\Iterator', $classReference->getImage());\n }", "title": "" }, { "docid": "155675450ba746cb1b7c92e11c0d24b7", "score": "0.48519626", "text": "public function testGetMapper()\n {\n $property = new ReflectionProperty(get_class($this->model), '_mapper');\n $property->setAccessible(true);\n $expected = $property->getValue($this->model);\n\n $this->assertSame($expected, $this->model->getMapper());\n \n // test when mapper is not already set\n $property->setValue($this->model, null);\n $expected = get_class($this->model) . 'Mapper';\n \n $this->assertInstanceOf($expected, $this->model->getMapper());\n \n }", "title": "" }, { "docid": "50e23ec9df277f4dfebf80cbe21642da", "score": "0.48390087", "text": "public function testGetPropValue()\n {\n $propValue1 = $this->mockReflection->getPropValue('mockProp1');\n $this->assertSame('Initial Test String', $propValue1);\n\n $propValue2 = $this->mockReflection->getPropValue('mockProp2');\n $this->assertCount(5, $propValue2);\n $this->assertSame('element 0', $propValue2[0]);\n $this->assertSame('element 1', $propValue2[1]);\n $this->assertSame('element 2', $propValue2[2]);\n $this->assertSame('element 3', $propValue2[3]);\n $this->assertSame('element 4', $propValue2[4]);\n\n $propValue3 = $this->mockReflection->getPropValue('mockProp3');\n $this->assertSame(12345, $propValue3);\n\n $propValue4 = $this->mockReflection->getPropValue('mockProp4');\n $this->assertSame('This was set in the __construct()', $propValue4);\n }", "title": "" }, { "docid": "24207f8678252c7dae6c6cec1d64bac0", "score": "0.48367867", "text": "public function __get(string $name):mixed\n {\n return $this->get($name) ?? NULL;\n }", "title": "" }, { "docid": "8db84a286630b23a693eb8412f9c20d3", "score": "0.4830829", "text": "public function getValue()\n {\n if (array_key_exists(\"value\", $this->_propDict)) {\n return $this->_propDict[\"value\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "8db84a286630b23a693eb8412f9c20d3", "score": "0.4830829", "text": "public function getValue()\n {\n if (array_key_exists(\"value\", $this->_propDict)) {\n return $this->_propDict[\"value\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "0ce38077655182aab62472dbe668f8ca", "score": "0.48267028", "text": "public function __get($property) {\n\t\tif (array_key_exists($property, $this->values)) {\n\t\t\treturn $this->values[$property];\n\t\t}\n\t\t$trace = debug_backtrace();\n\t\ttrigger_error(\n\t\t\tsprintf(\n\t\t\t\t'Unknown response property %s in line %s of %s',\n\t\t\t\t$property,\n\t\t\t\t$trace[0]['line'],\n\t\t\t\t$trace[0]['file']\n\t\t\t),\n\t\t\tE_USER_NOTICE\n\t\t);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ee5efb30b787c8db211126e4c04726cb", "score": "0.48211446", "text": "public function __construct()\n {\n $this->dynamicProperty = 'bad';\n }", "title": "" }, { "docid": "7fe1b47ee984fd6066be620eecb7f1b9", "score": "0.4797726", "text": "protected function buildProperty(ReflectionProperty $property)\n {\n if (!$property->type instanceof ObjectType)\n {\n $this->setAnyValue($property, 0);\n }\n elseif ($property->builtInConstructor)\n {\n $class = (string)$property->type->classname;\n $this->setRawValue($property->name, new $class());\n }\n }", "title": "" }, { "docid": "ae48c3dfb7342c20990f8282dbda2ccb", "score": "0.4795291", "text": "public function __get($name)\n {\n if (!$this->_valid) {\n //this object was not started correctly\n return;\n }\n //enabled is more important, if it is not enabled, everything else doesn't matter\n if (!isset($this->_data['is_enabled']) || !$this->_data['is_enabled']) {\n //return depending on what type of thing was requested\n return $this->clean($name, null);\n }\n\n if (isset($this->_data[$name])) {\n return $this->_data[$name];\n }\n //could not find what they were looking for!\n $trace = debug_backtrace();\n trigger_error('ERROR FIELDS: Could not find property via __get(): ' . $name .\n ' in ' . $trace[0]['file'] .\n ' on line ' . $trace[0]['line']);\n\n return null;\n }", "title": "" }, { "docid": "e006107a46f4db522cb73d4a0cb0d553", "score": "0.47821268", "text": "public function __get($key) {\n\t\t# TODO: perhaps replace this reflection code with some simple hash access code. See the comments below why.\n\t\t$r = new \\ReflectionObject($this);\n\t\t$p = null;\n\t\ttry {\n\t\t\t$p = $r->getProperty($key);\n\t\t}\n\t\tcatch (\\ReflectionException $e) {\n\t\t\t# snuff unknown properties with exception message 'Property x does not exist'\n\t\t}\n\t\tif ($p && ($p->isProtected() || $p->isPublic()) && !$p->isStatic()) {\n\t\t\t$p->setAccessible(true); # Allow access to non-public members.\n\t\t\treturn $p->getValue($this); # This design breaks mirrors. Surely the reflection property should know what object was given to ReflectionObject.\n\t\t}\n\t\tthrow new \\BadMethodCallException('Attempt to read undefined property ' . get_class($this) . '->' . $key);\n\t}", "title": "" }, { "docid": "c55dc97995bacf6b98bab807478d5e5a", "score": "0.47799096", "text": "public function getValue(): ?int {\n $val = $this->getBackingStore()->get('value');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'value'\");\n }", "title": "" }, { "docid": "7cf6781bc01b310f69cfb5904a547f30", "score": "0.47756025", "text": "public function getCodeIntegrityEnabled(): ?bool {\n $val = $this->getBackingStore()->get('codeIntegrityEnabled');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'codeIntegrityEnabled'\");\n }", "title": "" }, { "docid": "9b8c3cd7f666069be667e322ecaf2ab3", "score": "0.4773587", "text": "public function getValue()\n {\n return $this->nullable;\n }", "title": "" }, { "docid": "6dfe8089ee0e7a6f1ac044d4ed8f92b7", "score": "0.4761972", "text": "#[@test]\n public function lazyRead() {\n $p= new \\util\\Properties('@@does-not-exist.ini@@');\n \n // This cannot be done via @expect because it would also catch if an\n // exception was thrown from util.Properties' constructor. We explicitely\n // want the exception to be thrown later on\n try {\n $p->readString('section', 'key');\n $this->fail('Expected exception not thrown', null, 'io.IOException');\n } catch (\\io\\IOException $expected) {\n \\xp::gc();\n }\n }", "title": "" }, { "docid": "7dfa78f84614b9819710774e69fe2336", "score": "0.47557506", "text": "public function getType() {\n\n if (isset($this->propertyType)) {\n return $this->propertyType;\n }\n\n return NULL;\n }", "title": "" }, { "docid": "be70d0aa7e2b276edf865b9bf9370773", "score": "0.47554904", "text": "public function testDeclaringClassAccessor()\n {\n $c = 0; // class SimpleClass\n $p = 1; // var2 property\n\n $properties = self::$models[$c]->getProperties();\n\n $this->assertEquals(\n 'SimpleClass',\n $properties[$p]->getDeclaringClass()->getName(),\n $properties[$p]->getName()\n . \", property #$p declaring class does not match.\"\n );\n }", "title": "" }, { "docid": "2721758b2395829057dc8d9c42181bb8", "score": "0.47527713", "text": "public function __get($name)\n {\n if (array_key_exists($name, $this->data)) {\n return $this->data[$name];\n }\n $trace = debug_backtrace();\n trigger_error(\n 'Undefined property via __get(): ' . $name .\n ' in ' . $trace[0]['file'] .\n ' on line ' . $trace[0]['line'],\n E_USER_NOTICE\n );\n return null;\n }", "title": "" }, { "docid": "d568507b77bd25b85f319015d507b380", "score": "0.4751748", "text": "public function checkBehaviourProperties($property_name)\r\n {\r\n $value = null;\r\n\r\n if ($this->hasBehaviour())\r\n {\r\n if($this->getSortByPriority())\r\n {\r\n $this->_behaviour = $this->sortPriority($this->_behaviour);\r\n }\r\n foreach ($this->_behaviour as $behaviour_name => $configArray)\r\n {\r\n if (isset($configArray[self::_CLASS]))\r\n {\r\n $object = $configArray[self::_CLASS];\r\n \r\n if(is_string($object))\r\n {\r\n /**\r\n * remove and temp store _priority_ from config array so doesnt throw error\r\n * as not a property of the instantiated object. After instantiation, restore\r\n */\r\n $priority = $configArray[self::PRIORITY];\r\n unset($configArray[self::PRIORITY]);\r\n $object = $this->getDi()->getClass($configArray);\r\n $this->_behaviour[$behaviour_name][self::_CLASS] = $object;\r\n $this->_behaviour[$behaviour_name][self::PRIORITY] = $priority;\r\n }\r\n \r\n $methodname = 'get'.clean($property_name);\r\n \r\n if(method_exists($object, $methodname))\r\n {//if there is a get method for the property use that\r\n $value = call_user_func(array($object, $methodname));\r\n break;\r\n }elseif (property_exists($object, $property_name))\r\n {//else attempt to get if public\r\n $value = $object->{$property_name};\r\n break;\r\n }\r\n \r\n }\r\n }\r\n }\r\n\r\n return $value;\r\n }", "title": "" }, { "docid": "d8bcccdaaa2a768e8e9e5e3de082f99c", "score": "0.47476545", "text": "public function testGetPropertyValue(): void\n {\n $testDouble = new class\n {\n /**\n * @var string\n */\n private $privateProperty = 'private property value';\n\n /**\n * Get private property\n *\n * @return string\n */\n public function getPrivatePropertyValue(): string\n {\n return $this->privateProperty;\n }\n };\n\n $objectReflector = $this->getMockForTrait(ObjectReflectorTrait::class);\n\n static::assertSame(\n $testDouble->getPrivatePropertyValue(),\n $objectReflector::getPropertyValue($testDouble, 'privateProperty')\n );\n }", "title": "" }, { "docid": "6c22f454c38938371a3d10a78c7ad9bd", "score": "0.47450536", "text": "public function getWidth(): ?int {\n $val = $this->getBackingStore()->get('width');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'width'\");\n }", "title": "" }, { "docid": "1b3a1cad7335636eff37e1677375520f", "score": "0.47446543", "text": "private function readProperty(array $zval, string $property, bool $ignoreInvalidProperty = false): array\n {\n if (!\\is_object($zval[self::VALUE])) {\n $format = 'Cannot read property \"%s\" from an array. Maybe you intended to write the property path'\n . ' as \"[%1$s]\" instead.';\n throw new NoSuchPropertyException(sprintf($format, $property));\n }\n\n $result = self::RESULT_PROTO;\n $object = $zval[self::VALUE];\n $class = \\get_class($object);\n $access = $this->getReadInfo($class, $property);\n\n if (null !== $access) {\n $name = $access->getName();\n $type = $access->getType();\n\n try {\n if (PropertyReadInfo::TYPE_METHOD === $type) {\n try {\n $result[self::VALUE] = $object->$name();\n } catch (\\TypeError $e) {\n [$trace] = $e->getTrace();\n\n // handle uninitialized properties in PHP >= 7\n $pattern = '/Return value (?:of .*::\\w+\\(\\) )?must be of (?:the )?type (\\w+), null returned$/';\n if (__FILE__ === $trace['file']\n && $name === $trace['function']\n && $object instanceof $trace['class']\n && preg_match($pattern, $e->getMessage(), $matches)\n ) {\n $format = 'The method \"%s::%s()\" returned \"null\", but expected type \"%3$s\". Did you forget '\n . 'to initialize a property or to make the return type nullable using \"?%3$s\"?';\n $getParentClass = get_parent_class($object) ?: key(class_implements($object)) ?: 'class';\n $values = !str_contains(\\get_class($object), \"@anonymous\\0\")\n ? \\get_class($object)\n : $getParentClass . '@anonymous';\n throw new UninitializedPropertyException(\n sprintf(\n $format,\n $values,\n $name,\n $matches[1]\n ),\n 0,\n $e\n );\n }\n\n throw $e;\n }\n } elseif (PropertyReadInfo::TYPE_PROPERTY === $type) {\n if ($access->canBeReference()\n && !isset($object->$name)\n && !\\array_key_exists($name, (array)$object)\n && (\\PHP_VERSION_ID < 70400 || !(new \\ReflectionProperty($class, $name))->hasType())) {\n throw new UninitializedPropertyException(\n sprintf(\n 'The property \"%s::$%s\" is not initialized.',\n $class,\n $name\n )\n );\n }\n\n $result[self::VALUE] = $object->$name;\n\n if (isset($zval[self::REF]) && $access->canBeReference()) {\n $result[self::REF] = &$object->$name;\n }\n }\n } catch (\\Error $e) {\n // handle uninitialized properties in PHP >= 7.4\n $pattern = '/^Typed property (' . preg_quote(get_debug_type($object), '/')\n . ')::\\$(\\w+) must not be accessed before initialization$/';\n $checkInit = preg_match($pattern, $e->getMessage(), $matches);\n if (\\PHP_VERSION_ID >= 70400 && $checkInit) {\n $r = new \\ReflectionProperty($class, $matches[2]);\n $type = ($type = $r->getType()) instanceof \\ReflectionNamedType ? $type->getName() : (string)$type;\n $format = 'The property \"%s::$%s\" is not readable because it is typed \"%s\". '\n . 'You should initialize it or declare a default value instead.';\n\n throw new UninitializedPropertyException(\n sprintf($format, $matches[1], $r->getName(), $type),\n 0,\n $e\n );\n }\n\n throw $e;\n }\n } elseif (property_exists($object, $property) && \\array_key_exists($property, (array)$object)) {\n $result[self::VALUE] = $object->$property;\n if (isset($zval[self::REF])) {\n $result[self::REF] = &$object->$property;\n }\n // customization start\n } elseif ($object instanceof \\ArrayAccess) {\n if (isset($object[$property])) {\n $result[self::VALUE] = $object[$property];\n } elseif (!$ignoreInvalidProperty) {\n $reflClass = new \\ReflectionClass($object);\n throw new NoSuchPropertyException(\n sprintf('The key \"%s\" does exist in class \"%s\".', $property, $reflClass->name)\n );\n }\n } elseif ($this->getReflectionClass($object::class)->hasProperty($property)) {\n $prop = $this->getReflectionClass($object::class)->getProperty($property);\n $prop->setAccessible(true);\n $value = $prop->getValue($object);\n $result[self::VALUE] = $value;\n if (isset($zval[self::REF])) {\n $result[self::REF] = &$value;\n }\n //customization end\n } elseif (!$ignoreInvalidProperty) {\n throw new NoSuchPropertyException(\n sprintf(\n 'Can\\'t get a way to read the property \"%s\" in class \"%s\".',\n $property,\n $class\n )\n );\n }\n\n // Objects are always passed around by reference\n if (isset($zval[self::REF]) && \\is_object($result[self::VALUE])) {\n $result[self::REF] = $result[self::VALUE];\n }\n\n return $result;\n }", "title": "" }, { "docid": "a0aa227cdef5512cfd7fd0ce36c98cdf", "score": "0.4740749", "text": "public function hasToBeInitialized(): bool;", "title": "" }, { "docid": "6ecf80b8af4bdc42edd70b9cc9393b47", "score": "0.47382423", "text": "public function getIsOptional(): ?bool {\n $val = $this->getBackingStore()->get('isOptional');\n if (is_null($val) || is_bool($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'isOptional'\");\n }", "title": "" }, { "docid": "326f6b7475f1de59568fbe0061fc6e18", "score": "0.47348788", "text": "protected function _getDefaultProperty($name) {\n\n\t\t// check name param\n\t\tif ($name == '') {\n\t\t\tthrow new \\Exception('Empty property name');\n\t\t}\n\n\t\tif (array_key_exists($name, $this->_defaultProperties)) {\n\t\t\treturn $this->_defaultProperties[$name];\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "6f1e559b6897fad1f60326628884e36b", "score": "0.47324297", "text": "public function __get($var)\n {\n if (array_key_exists($var, $this->_propertyMap)) {\n return $this->{$this->_propertyMap[$var]};\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "1a948c894149af1cf4ea0b5a24c5e516", "score": "0.47268713", "text": "public function testTypeIsSetToRaw()\n {\n $this->assertSame(WNSType::RAW, $this->get_reflection_property_value('type'));\n }", "title": "" }, { "docid": "ee4817fcffbad7c944f9a460becb6a28", "score": "0.47265628", "text": "public function testPropertiesManipulation()\n {\n $model = new ModelStub();\n $model->name = 'foo';\n $this->assertEquals('foo', $model->name);\n $this->assertTrue(isset($model::getProperties()['name']));\n }", "title": "" }, { "docid": "89c3a2921714170fa432a4d4209ee155", "score": "0.4726293", "text": "function get( $prop ) {\n\t\treturn property_exists( $this, $prop )\n\t\t\t? $this->$prop\n\t\t\t: null;\n\t}", "title": "" }, { "docid": "e4cdeeceda30ced08f593ab2ceb9b9b7", "score": "0.47239548", "text": "private function _parseStaticReflectionValue()\n {\n return new StaticReflectionValue( $this->_parseStaticScalarOrArray() );\n }", "title": "" }, { "docid": "9cc882f83d4bbd4030177dd042b4b19c", "score": "0.47206172", "text": "public function getBusinessScenarioProperties(): ?BusinessScenarioProperties {\n $val = $this->getBackingStore()->get('businessScenarioProperties');\n if (is_null($val) || $val instanceof BusinessScenarioProperties) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'businessScenarioProperties'\");\n }", "title": "" }, { "docid": "acac8b31f18f717580067109c2f71b03", "score": "0.47175372", "text": "public function testCompilationContainsEncodingProperty() {\n\n\t\t$class = $this->createReflectionClassFixture();\n\n\t\t$this->assertSame('encoding', $class->getProperty('encoding')->getName());\n\t}", "title": "" } ]
9cc7a6ef24831856b72aa2d406a89309
Helper function. Create an active facet for the granularity passed.
[ { "docid": "daac9a8d1763447f85aec62cc9e14086", "score": "0.71397823", "text": "private function createActiveFacet($facet, $activeItem, $granularity, &$results) {\n $explodedActiveItem = $this->explodeActiveItem($activeItem);\n switch($granularity) {\n case 'year':\n // Create Year facet - count gets added later\n $results[$explodedActiveItem['year']] = new Result($facet, $explodedActiveItem['year'], $explodedActiveItem['year'], 0);\n $results[$explodedActiveItem['year']]->setActiveState(TRUE);\n // Create month facet - count gets added later.\n //$monthDisplay = \\DateTime::createFromFormat('Y-m', $activeItem)->format('F Y');\n //$results[$activeItem] = new Result($facet, $activeItem, $monthDisplay, 0);\n break;\n case 'month':\n $yearMonth = $explodedActiveItem['year'] . '-' . $explodedActiveItem['month'];\n // Create month facet - count gets added later.\n $monthDisplay = \\DateTime::createFromFormat('Y-m', $yearMonth)->format('F Y');\n $results[$yearMonth] = new Result($facet, $yearMonth, $monthDisplay, 0);\n $results[$yearMonth]->setActiveState(TRUE);\n break;\n case 'day':\n $yearMonthDay = $explodedActiveItem['year'] . '-' . $explodedActiveItem['month'] . '-' . $explodedActiveItem['day'];\n // Create day facet - count gets added later.\n $dayDisplay = \\DateTime::createFromFormat('Y-m-d', $yearMonthDay)->format('jS \\o\\f F Y');\n $results[$yearMonthDay] = new Result($facet, $yearMonthDay, $dayDisplay, 0);\n $results[$yearMonthDay]->setActiveState(TRUE);\n break;\n }\n }", "title": "" } ]
[ { "docid": "35154a6aaec22c87e706fcb6090c2418", "score": "0.6370469", "text": "private function createFacets($facet, $params, $activeItems, $granularity, &$results) {\n switch ($granularity) {\n case 'year':\n for ($i = 1; $i < 13; $i++) {\n $iPlusOne = $i + 1;\n // Get the current and next month Objects + Set the time to 00:00:00\n $month = \\DateTime::createFromFormat('d-n-Y', '01-' . $i . '-' . $activeItems);\n $month->setTime(0, 0, 0);\n $nextMonth = \\DateTime::createFromFormat('d-n-Y', '01-' . $iPlusOne . '-' . $activeItems);\n $nextMonth->setTime(0, 0, 0);\n if (!empty($month) && !empty($nextMonth)) {\n $month->setTime(0, 0, 0);\n $nextMonth->setTime(0, 0, 0);\n $monthTimestamp = $month->getTimestamp();\n $nextMonthTimestamp = $nextMonth->getTimestamp();\n // Get the month in the n format (month number, without leading 0).\n $monthObj = \\DateTime::createFromFormat('n', $i);\n // Human readable month.\n $monthName = $monthObj->format('F');\n // Month with leading 0.\n $monthNumber = $monthObj->format('m');\n // Create the query on the index.\n // We need to use this index to return the result count for\n // the newly created facets, since they aren't found automatically.\n\n\n // Get the index ID from the facet. I think this should\n // be safe without an !empty check since a facet\n // always has to have an Index.\n // TODO create helper of this.\n // TODO - I think we can replace this with a search API query like I've done in the\n // query type.\n $indexId = $facet->getFacetSource()\n ->getIndex()\n ->id();\n $query = Index::load($indexId)->query();\n $field = $facet->getFieldIdentifier();\n $query->addCondition('status', 1);\n $query->addCondition($field, [$monthTimestamp, $nextMonthTimestamp], 'BETWEEN');\n // Run the query.\n $entities = $query->execute();\n if (!empty($results) && $entities->getResultCount() > 0) {\n $results[$activeItems . '-' . $monthNumber] = new Result($facet, $activeItems . '-' . $monthNumber, $monthName . ' ' . $activeItems, $entities->getResultCount());\n }\n }\n }\n break;\n case 'month':\n $explodedActiveItem = $this->explodeActiveItem($activeItems);\n $activeMonth = $explodedActiveItem['month'];\n $daysInCurrentMonth = cal_days_in_month(CAL_GREGORIAN, $activeMonth, $explodedActiveItem['year']);\n // Process days. PHP DateTime days start at 1. So start there.\n for ($i = 1; $i < $daysInCurrentMonth; $i++) {\n $month = \\DateTime::createFromFormat('m', $activeMonth);\n $iPlusOne = $i + 1;\n // Get the current and next month Objects + Set the time to 00:00:00\n $day = \\DateTime::createFromFormat('Y-m-d', $activeItems . '-' . $i);\n $day->setTime(0, 0, 0);\n $nextDay = \\DateTime::createFromFormat('Y-m-d', $activeItems . '-' . $iPlusOne);\n $nextDay->setTime(0, 0, 0);\n if (!empty($day) && !empty($nextDay)) {\n $dayTimestamp = $day->getTimestamp();\n $nextDayTimestamp = $nextDay->getTimestamp();\n // TODO - Code duplication. We need to extract this to a helper function now...\n // TODO - I think we can replace this with a search API query like I've done in the\n // query type.\n $indexId = $facet->getFacetSource()\n ->getIndex()\n ->id();\n $dayQuery = Index::load($indexId)->query();\n $dayField = $facet->getFieldIdentifier();\n $dayQuery->addCondition('status', 1);\n $dayQuery->addCondition($dayField, [$dayTimestamp, $nextDayTimestamp], 'BETWEEN');\n // Run the query.\n $dayEntities = $dayQuery->execute();\n\n if ($dayEntities->getResultCount() > 0) {\n $explodedActiveItem = $this->explodeActiveItem($activeItems);\n $displayValue = $day->format('jS') . ' of ' . $month->format('F') . ' ' . $explodedActiveItem['year'];\n $results[$activeItems . '-' . $day->format('d')] = new Result($facet, $activeItems . '-' . $day->format('d'), $displayValue, $dayEntities->getResultCount());\n }\n }\n }\n break;\n }\n }", "title": "" }, { "docid": "dffa67c7729799c991f15455d8aeac1c", "score": "0.54569703", "text": "abstract protected function search_engine_client_add_facet_range_regular( $facet_name, $field_name, $range_start, $range_end, $range_gap );", "title": "" }, { "docid": "901690e0ebc8f7106865cfdebc4907dc", "score": "0.50327015", "text": "function front_scripts() {\n?>\n<style>\n.facetwp-type-alpha {\n margin-bottom: 20px;\n}\n.facetwp-alpha {\n display: inline-block;\n color: #ddd;\n margin-right: 8px;\n cursor: default;\n}\n.facetwp-alpha.available {\n color: #333;\n cursor: pointer;\n}\n.facetwp-alpha.selected {\n color: #333;\n font-weight: bold;\n}\n</style>\n<script>\n(function($) {\n wp.hooks.addAction('facetwp/refresh/alpha', function($this, facet_name) {\n FWP.facets[facet_name] = $this.find('.facetwp-alpha.selected').attr('data-id') || '';\n });\n\n $(document).on('click', '.facetwp-alpha.available', function() {\n $parent = $(this).closest('.facetwp-facet');\n $parent.find('.facetwp-alpha').removeClass('selected');\n $(this).addClass('selected');\n\n if ('' !== $(this).attr('data-id')) {\n FWP.static_facet = $parent.attr('data-name');\n }\n FWP.refresh();\n });\n})(jQuery);\n</script>\n<?php\n }", "title": "" }, { "docid": "f04f62dd52ae38104c1fdbadd5da79df", "score": "0.49724063", "text": "function generateFacetSet (int $termId, string $post_type = NULL) {\n // for each term for a post of a given type, generate an array\n if (isset($post_type)) {\n $the_query = array(\n 'post_type' => $post_type,\n 'fields' => 'ids',\n 'tax_query' => array( \n array(\n 'taxonomy' => 'resources',\n 'terms' => array($termId)\n )\n )\n );\n }\n else {\n $the_query = array(\n 'fields' => 'ids',\n 'tax_query' => array( \n array(\n 'taxonomy' => 'resources',\n 'terms' => array($termId)\n )\n )\n );\n }\n $the_query = new WP_Query( $the_query );\n \n return ($the_query->posts);\n\n /* Restore original Post Data */\n wp_reset_postdata();\n}", "title": "" }, { "docid": "39e7a9a006b3bdde8a1a803803ab8f07", "score": "0.4971643", "text": "function initActiveFilters($query) {\n $enabled_facets = facetapi_get_enabled_facets($this->info['name']);\n if ($enabled_facets) {\n $query->addParam('facet', 'true');\n $query->addParam('facet.sort', 'count');\n $query->addParam('facet.mincount', '1');\n }\n }", "title": "" }, { "docid": "712194088544f4b9cc4946a22db7a80e", "score": "0.4937273", "text": "function facet_stuff() {\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "a49030b3ab5ff9e215230439c6cd84cc", "score": "0.48375863", "text": "function wp_facet_filter_add_settings_field() {\n $faceted_post_type = get_option('wp_facet_filters_faceted_post_type');\n add_settings_field(\n 'wp_facet_filters_faceted_post_type',\n 'Post Type',\n 'wp_facet_filter_add_post_type_setting_field_markup_callback',\n 'wp_facet_filter_page',\n 'wp_facet_filters_target',\n array( 'label_for' => 'wp_face_filter_faceted_post_type' )\n ); \n $miniblog_page = get_option('wp_facet_filter_miniblog_page_id');\n add_settings_field(\n 'wp_facet_filter_miniblog_page_id',\n 'Miniblog Page',\n 'wp_facet_filter_add_miniblog_page_id_setting_field_markup_callback',\n 'wp_facet_filter_page',\n 'wp_facet_filters_target',\n array( 'label_for' => 'wp_face_filter_miniblog_page_id' )\n ); \n $faceted_post_type_taxonomies = getPostTypeTaxonomies($faceted_post_type);\n if ( $faceted_post_type_taxonomies ) {\n $tax_index = 0;\n foreach ( $faceted_post_type_taxonomies as $tax ) {\n $tax_obj = get_taxonomy( $tax );\n add_settings_field(\n 'wp_facet_filters_faceted_post_tax_' . $tax_index,\n 'Filter Strategy for ' . $tax_obj->label,\n 'wp_facet_filter_faceted_post_tax_markup_callback',\n 'wp_facet_filter_page',\n 'wp_facet_filters_target',\n array( 'label_for' => 'wp_facet_filters_faceted_post_tax_' . $tax_index )\n );\n $tax_index += 1;\n }\n }\n}", "title": "" }, { "docid": "c8eeb8548765c50f65eba7a0b25c654a", "score": "0.48187304", "text": "protected function applyFacets(){\n\t\t$this->setFacet(true);\n\t\tfor ($i = 0, $fc = count($this->_facetFields); $i < $fc; $i ++) {\n\t\t\t$this->addFacetField($this->_facetFields[$i]);\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "b70560afe62dbd36ec5ffafe9cd0494e", "score": "0.48120132", "text": "function render( $params ) {\n global $wpdb;\n\n $output = '';\n $facet = $params['facet'];\n $selected_values = (array) $params['selected_values'];\n $where_clause = $params['where_clause'];\n\n $sql = \"\n SELECT DISTINCT UPPER(LEFT(facet_display_value, 1)) AS letter\n FROM {$wpdb->prefix}facetwp_index\n WHERE facet_name = '{$facet['name']}' $where_clause\n ORDER BY letter\";\n $results = $wpdb->get_col( $sql );\n\n $available_chars = array( '#', 'A', 'B', 'C', 'D', 'E', 'F', 'G',\n 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',\n 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z' );\n\n $output .= '<span class=\"facetwp-alpha available\" data-id=\"\">' . __( 'Any', 'fwp' ) . '</span>';\n\n foreach ( $available_chars as $char ) {\n $match = false;\n $active = in_array( $char, $selected_values );\n\n if ( '#' == $char ) {\n foreach ( array( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 ) as $num ) {\n if ( in_array( (string) $num, $results ) ) {\n $match = true;\n break;\n }\n }\n }\n elseif ( in_array( $char, $results ) ) {\n $match = true;\n }\n\n if ( $active ) {\n $output .= '<span class=\"facetwp-alpha selected\" data-id=\"' . $char . '\">' . $char . '</span>';\n }\n elseif ( $match ) {\n $output .= '<span class=\"facetwp-alpha available\" data-id=\"' . $char . '\">' . $char . '</span>';\n }\n else {\n $output .= '<span class=\"facetwp-alpha\" data-id=\"' . $char . '\">' . $char . '</span>';\n }\n }\n\n return $output;\n }", "title": "" }, { "docid": "5be3f495d7383d9956a96684ebb0d11d", "score": "0.47755262", "text": "function select_tag_with_ranged_facet($name, $options = array(), $facets = array(), $attributes = array(), $default = null) {\n die('select_tag_with_ranged_facet is not longer supported. You should be able to use select_tag_with_facet instead.');\n $new_options = array();\n foreach ($options as $range => $tag) {\n $ddhq_range = preg_replace(\"/^ddhq:/\", \"\", $range);\n $range_count = 0;\n foreach ($facets as $value => $count) {\n if (is_in_range($value, $ddhq_range)) {\n $range_count = $range_count + $count;\n }\n }\n if ($range_count)\n $new_options[$range] = \"$tag ($range_count)\";\n }\n select_tag($name, $new_options, $attributes, $default);\n}", "title": "" }, { "docid": "0cb077fdf8c1a1464ef2b41bad9af011", "score": "0.46837378", "text": "public function getFacets() {\n $filters = Filter::where('is_hidden', 0)->where('is_searchable', 1)->orderBy('position', 'ASC')->get();\n $facet_groups = [];\n foreach($filters as $filter) {\n $facet_group = [];\n $facet_group['field'] = $filter->field;\n $facet_group['name'] = $filter->name;\n $facet_group['search_ui'] = $filter->search_ui;\n $listings = new Listing();\n #var_dump($filter->search_ui);\n if(in_array($filter->search_ui, ['refinementList', 'menuSelect'])) {\n #dd($filter->form_input_meta);\n #$filter->form_input_meta = json_decode($filter->form_input_meta, true);\n $facet_group['options'] = [];\n if($filter->form_input_meta && isset($filter->form_input_meta['values'])) {\n foreach($filter->form_input_meta['values'] as $k => $v) {\n $tmp = [];\n $tmp['name'] = $v['label'];\n $tmp['value'] = $v['value'] ;\n //var_dump($v);\n $facet_group['options'][] = $tmp;\n }\n\n } else {\n $listings = $listings->groupBy('meta->'.$filter->field)\n ->whereNotNull('meta->'.$filter->field.'')\n ->select('meta->'.$filter->field.' as name', 'meta->'.$filter->field.' as value', \\DB::raw('count(*) as total'))\n ->orderBy('meta->'.$filter->field, 'ASC')\n ->get();\n #dd($listings);\n\n $facet_group['options'] = $listings->toArray();\n #dd($facet_group['options']);\n } \n \n } else if(in_array($filter->search_ui, ['rangeSlider', 'priceRange'])) {\n $min = $listings->min('meta->'.$filter->field);\n $max = $listings->max('meta->'.$filter->field);\n $facet_group['options'] = [$min, $max];\n } else {\n $facet_group['options'] = null;\n }\n $facet_groups[$filter->field] = json_decode(json_encode($facet_group));\n }\n #dd($facet_groups);\n return $facet_groups;\n }", "title": "" }, { "docid": "dd4c9ce0db811a431dcc04b131025e53", "score": "0.46765676", "text": "public function AddFaceter ( $fname, $sortby=ORDER_COUNT_DESC, $facetmincount=0, $facetlimit=10 ) {\n assert (is_string($fname));\n assert ($sortby == ORDER_COUNT_DESC || $sortby == ORDER_VAL_ASC || $sortby == ORDER_CUSTOM);\n assert (is_int($facetmincount) && $facetmincount>=0);\n assert (is_int($facetlimit) && $facetlimit>0);\n\n $this->faceters[$fname] = array();\n $this->faceters[$fname][\"sortby\"] = $sortby;\n $this->faceters[$fname][\"facetmincount\"] = $facetmincount;\n $this->faceters[$fname][\"facetlimit\"] = $facetlimit;\n }", "title": "" }, { "docid": "b6cd5fac5c65f92949ea977afd673050", "score": "0.46278465", "text": "public function facet($mincount = 0, $sort = TRUE, $limit=100, $offset = 0)\n {\n $this->params['facet'] = 'true';\n $this->params['facet.limit'] = $limit;\n $this->params['facet.offset'] = $offset;\n $this->params['facet.mincount'] = $mincount;\n //, $method = 'fc'\n //$this->params['facet.method'] = $method;\n\n // 1.4 will allow 'count' and 'index' as sort values.\n if (is_string($sort)) {\n $this->params['facet.sort'] = $sort;\n } else {\n $this->params['facet.sort'] = $sort ? 'true' : 'false';\n }\n\n return $this;\n }", "title": "" }, { "docid": "d65c069de52c65198d3b7627e76d10d5", "score": "0.4596424", "text": "public function getFacet($name)\r\n {\r\n return $this->getFacets()->get($name); \r\n }", "title": "" }, { "docid": "b84c79bebd13b60893a7d7d62c4b5205", "score": "0.45465365", "text": "abstract protected function search_engine_client_add_facet_field( $facet_name, $field_name );", "title": "" }, { "docid": "a5cb22d5640483cab50bb73dcb06c83d", "score": "0.4496994", "text": "function facetapi_get_block($delta) {\n $builds = &drupal_static(__FUNCTION__, array());\n\n // Bails if delta is not mapped.\n $map = facetapi_get_delta_map();\n if (!isset($map[$delta])) {\n return;\n }\n\n // Extracts the searcher, realm name, and facet name from $delta.\n // Process the parts from the end in case the searcher includes a ':'.\n $parts = explode(':', $map[$delta]);\n $facet_name = array_pop($parts);\n $facet_name = rawurldecode($facet_name);\n $realm_name = array_pop($parts);\n $searcher = implode(':', $parts);\n\n // If we are viewing the current search block, set variable names accordingly.\n if (!$searcher && 'current_search' == $facet_name) {\n $searcher = $realm_name;\n $realm_name = $facet_name = FALSE;\n }\n\n // Bails if adapter can't be loaded.\n if (!$adapter = facetapi_adapter_load($searcher)) {\n return;\n }\n\n // If there is no realm, we are rendering the curent search block.\n if (FALSE === $realm_name) {\n if (!$adapter->searchExecuted()) {\n return;\n }\n return array(\n 'subject' => t('Current search'),\n 'content' => $adapter->buildCurrentSearch(),\n );\n }\n\n // Bails if the output should be suppressed.\n if ($adapter->suppressOutput($realm_name)) {\n return;\n }\n\n // Bails if the facet isn't enabled.\n if (!facetapi_facet_enabled($searcher, $realm_name, $facet_name)) {\n return;\n }\n\n // Builds and caches the entire realm per searcher / realm combination.\n $group = $searcher . ':' . $realm_name;\n if (!isset($builds[$group])) {\n $builds[$group] = facetapi_build_realm($searcher, $realm_name);\n }\n\n // Returns the individual block.\n if (isset($builds[$group][$facet_name])) {\n\n // Adds contextual links.\n $builds[$group][$facet_name]['#contextual_links'] = array(\n 'facetapi' => array('admin/config/search/facetapi', array($searcher, $realm_name, $facet_name)),\n );\n\n // Returns the subject and content of the block.\n $variables = array('title' => $builds[$group][$facet_name]['#title']);\n return array(\n 'subject' => theme('facetapi_title', $variables),\n 'content' => $builds[$group][$facet_name]\n );\n }\n}", "title": "" }, { "docid": "30666e982c12ef4c4e98d180be1b5f5a", "score": "0.44489467", "text": "public function configureOverallFacilityTreemap();", "title": "" }, { "docid": "a2b4b95e1d9a009cfd30a2e7f3f74110", "score": "0.4445043", "text": "function wp_facet_filter_register_settings() {\n $settings_args = array(\n 'type' => 'string'\n );\n register_setting(\n 'wp_facet_filter_options',\n 'wp_facet_filters_faceted_post_type',\n $settings_args\n );\n register_setting(\n 'wp_facet_filter_options',\n 'wp_facet_filter_miniblog_page_id',\n $settings_args\n );\n $faceted_post_type = get_option('wp_facet_filters_faceted_post_type');\n $faceted_post_type_taxonomies = getPostTypeTaxonomies($faceted_post_type);\n if ( $faceted_post_type_taxonomies ) {\n $tax_index = 0;\n foreach ( $faceted_post_type_taxonomies as $tax ) {\n $tax_obj = get_taxonomy( $tax );\n register_setting(\n 'wp_facet_filter_options',\n 'wp_facet_filters_faceted_post_tax_' . $tax_index,\n $settings_args\n );\n $tax_index += 1;\n }\n }\n}", "title": "" }, { "docid": "2a1b104d6f2f9da0c5d68dd22858702c", "score": "0.4410396", "text": "function fwp_add_facet_labels() {\n?>\n<script>\n(function($) {\n $(document).on('facetwp-loaded', function() {\n\n \t$('.facetwp-facet').addClass( \"collapse show\" );\n\n $('.facetwp-facet').each(function(ind) {\n var $facet = $(this);\n var facet_name = $facet.attr('data-name');\n var facet_label = FWP.settings.labels[facet_name];\n var facet_id = $(this).attr('id', 'slide-' + parseInt(ind + 1));\n\n if ($facet.closest('.facet-wrap').length < 1 && $facet.closest('.facetwp-flyout').length < 1) {\n $facet.wrap('<div class=\"facet-wrap\"></div>');\n $facet.before('<div class=\"facet-header\"><h6 class=\"mb-0\">' + facet_label + '</h6><button href=\"#'+$(this).attr('id')+'\" data-toggle=\"collapse\"><i class=\"icon-minus\"></i></button></div>');\n }\n });\n\n\t\t$('.collapse').on('shown.bs.collapse', function(){\n\t\t\t$(this).parent().find(\".icon-plus\").removeClass(\"icon-plus\").addClass(\"icon-minus\");\n\t\t}).on('hidden.bs.collapse', function(){\n\t\t\t$(this).parent().find(\".icon-minus\").removeClass(\"icon-minus\").addClass(\"icon-plus\");\n\t\t});\n\n });\n})(jQuery);\n</script>\n<?php\n}", "title": "" }, { "docid": "ac3e0cc666a3e3a2d222f67bc96e9bff", "score": "0.43941376", "text": "function displayPivotFacet($pivot)\n{\n echo '<ul>';\n echo '<li>Field: '.$pivot->getField().'</li>';\n echo '<li>Value: '.$pivot->getValue().'</li>';\n echo '<li>Count: '.$pivot->getCount().'</li>';\n foreach ($pivot->getPivot() as $nextPivot) {\n displayPivotFacet($nextPivot);\n }\n echo '</ul>';\n}", "title": "" }, { "docid": "86be1f5e0abfff7f2160638a154c5970", "score": "0.43920743", "text": "public function addFacets(Array $facetFields = array()){\n\t\tif(!empty($facetFields)) $this->_facetFields = array_merge($this->_facetFields,$facetFields);\n\t\t \n\t\treturn $this;\n\t}", "title": "" }, { "docid": "6f896b8d43ac0f42f4d49aea46e7f617", "score": "0.43808854", "text": "public function addGranularity($g) {\n $this->granularity[] = $g;\n $this->granularity = array_unique($this->granularity);\n }", "title": "" }, { "docid": "3b46d48117a8eaf1fc539f901211ac04", "score": "0.43658254", "text": "function select_tag_with_facet($name, $facets = array(), $attributes = array(), $default = null) {\n $options = array();\n foreach ($facets as $value => $count) {\n $options[$value] = \"$value ($count)\";\n }\n select_tag($name, $options, $attributes, $default);\n}", "title": "" }, { "docid": "8bf33e04dc603acf1bd685b8f97aac37", "score": "0.4331419", "text": "function getFacet() {\n\t\t$oResponse = $this->getResponse();\n\t\t$facet = $oResponse->facet_counts->facet_fields;\n\t\t$facetList = array();\n\t\tforeach ( $facet as $type => $inValue ) {\n\t\t\t//$facetList[] = $type;\n\t\t\t$facetItem = array();\n\t\t\t$k =0;\n\t\t\tfor ($i = 0;$i<count($inValue); ) {\n\t\t\t\t$k = $i+1;\n\t\t\t\t$facetItem[$inValue[$i]] = $inValue[$k];\n\t\t\t\t$i = $i+2;\n\t\t\t}\n\t\t\t$facetList[$type] = $facetItem;\n\t\t}\n\t\t\n\t\treturn $facetList;\n\t}", "title": "" }, { "docid": "0fbf384376b80d442d94707ab7d40bf8", "score": "0.43209612", "text": "function facetapi_build_delta($searcher, $realm_name, $facet_name) {\n return $searcher . ':' . $realm_name . ':' . urlencode($facet_name);\n}", "title": "" }, { "docid": "26b8a41acb60112dc6f8b91cd9562e60", "score": "0.43058497", "text": "function add_local_field_group(){\n \n acf_add_local_field_group(array(\n 'key' => 'group_acfe_dynamic_taxonomy',\n 'title' => __('Dynamic Taxonomy', 'acfe'),\n \n 'location' => array(\n array(\n array(\n 'param' => 'post_type',\n 'operator' => '==',\n 'value' => $this->post_type,\n ),\n ),\n ),\n \n 'menu_order' => 0,\n 'position' => 'normal',\n 'style' => 'default',\n 'label_placement' => 'left',\n 'instruction_placement' => 'label',\n 'hide_on_screen' => '',\n 'active' => 1,\n 'description' => '',\n \n 'fields' => array(\n array(\n 'key' => 'field_acfe_dt_tab_general',\n 'label' => 'General',\n 'name' => '',\n 'type' => 'tab',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n 'data-no-preference' => true,\n ),\n 'acfe_permissions' => '',\n 'placement' => 'top',\n 'endpoint' => 0,\n ),\n array(\n 'key' => 'field_acfe_dt_name',\n 'label' => 'Name',\n 'name' => 'acfe_dt_name',\n 'type' => 'acfe_slug',\n 'instructions' => 'The name of the taxonomy. Name should only contain lowercase letters and the underscore character, and not be more than 32 characters long (database structure restriction)',\n 'required' => 1,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => 32,\n ),\n array(\n 'key' => 'field_acfe_dt_description',\n 'label' => 'Description',\n 'name' => 'description',\n 'type' => 'text',\n 'instructions' => 'Include a description of the taxonomy',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_hierarchical',\n 'label' => 'Hierarchical',\n 'name' => 'hierarchical',\n 'type' => 'true_false',\n 'instructions' => 'Is this taxonomy hierarchical (have descendants) like categories or not hierarchical like tags',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 0,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_post_types',\n 'label' => 'Post types',\n 'name' => 'post_types',\n 'type' => 'acfe_post_types',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'field_type' => 'checkbox',\n 'return_format' => 'name',\n ),\n array(\n 'key' => 'field_acfe_dt_public',\n 'label' => 'Public',\n 'name' => 'public',\n 'type' => 'true_false',\n 'instructions' => 'Whether a taxonomy is intended for use publicly either via the admin interface or by front-end users',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_publicly_queryable',\n 'label' => 'Publicly queryable',\n 'name' => 'publicly_queryable',\n 'type' => 'true_false',\n 'instructions' => 'Whether the taxonomy is publicly queryable',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_update_count_callback',\n 'label' => 'Update count callback',\n 'name' => 'update_count_callback',\n 'type' => 'text',\n 'instructions' => 'A function name that will be called when the count of an associated $object_type, such as post, is updated',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_meta_box_cb',\n 'label' => 'Meta box callback',\n 'name' => 'meta_box_cb',\n 'type' => 'select',\n 'instructions' => 'Provide a callback function name for the meta box display.<br /><br/>Defaults to the categories meta box for hierarchical taxonomies and the tags meta box for non-hierarchical taxonomies. No meta box is shown if set to false.',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'choices' => array(\n 'null' => 'Null (default)',\n 'false' => 'False',\n 'custom' => 'Custom',\n ),\n 'default_value' => array(\n 0 => 'null',\n ),\n 'allow_null' => 0,\n 'multiple' => 0,\n 'ui' => 0,\n 'return_format' => 'value',\n 'ajax' => 0,\n 'placeholder' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_meta_box_cb_custom',\n 'label' => 'Meta box callback',\n 'name' => 'meta_box_cb_custom',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n 'conditional_logic' => array(\n array(\n array(\n 'field' => 'field_acfe_dt_meta_box_cb',\n 'operator' => '==',\n 'value' => 'custom',\n )\n )\n )\n ),\n array(\n 'key' => 'field_acfe_dt_sort',\n 'label' => 'Sort',\n 'name' => 'sort',\n 'type' => 'true_false',\n 'instructions' => 'Whether this taxonomy should remember the order in which terms are added to objects',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 0,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_tab_menu',\n 'label' => 'Menu',\n 'name' => '',\n 'type' => 'tab',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'placement' => 'top',\n 'endpoint' => 0,\n ),\n array(\n 'key' => 'field_acfe_dt_show_ui',\n 'label' => 'Show UI',\n 'name' => 'show_ui',\n 'type' => 'true_false',\n 'instructions' => 'Whether to generate a default UI for managing this post type in the admin',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_show_in_menu',\n 'label' => 'Show in menu',\n 'name' => 'show_in_menu',\n 'type' => 'true_false',\n 'instructions' => 'Where to show the taxonomy in the admin menu. show_ui must be true',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_show_in_nav_menus',\n 'label' => 'Show in nav menus',\n 'name' => 'show_in_nav_menus',\n 'type' => 'true_false',\n 'instructions' => 'true makes this taxonomy available for selection in navigation menus',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_show_tagcloud',\n 'label' => 'Show tagcloud',\n 'name' => 'show_tagcloud',\n 'type' => 'true_false',\n 'instructions' => 'Whether to allow the Tag Cloud widget to use this taxonomy',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_show_in_quick_edit',\n 'label' => 'Show in quick edit',\n 'name' => 'show_in_quick_edit',\n 'type' => 'true_false',\n 'instructions' => 'Whether to show the taxonomy in the quick/bulk edit panel',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_show_admin_column',\n 'label' => 'Show admin column',\n 'name' => 'show_admin_column',\n 'type' => 'true_false',\n 'instructions' => 'Whether to allow automatic creation of taxonomy columns on associated post-types table',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_tab_single',\n 'label' => 'Single',\n 'name' => '',\n 'type' => 'tab',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'placement' => 'top',\n 'endpoint' => 0,\n ),\n array(\n 'key' => 'field_acfe_dt_single_template',\n 'label' => 'Template',\n 'name' => 'acfe_dt_single_template',\n 'type' => 'text',\n 'instructions' => 'ACF Extended: Which template file to load for the term query. More informations on <a href=\"https://developer.wordpress.org/themes/basics/template-hierarchy/\">Template hierarchy</a>',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => 'my-template.php',\n 'prepend' => trailingslashit(acfe_get_setting('theme_folder')),\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_single_posts_per_page',\n 'label' => 'Posts per page',\n 'name' => 'acfe_dt_single_posts_per_page',\n 'type' => 'number',\n 'instructions' => 'ACF Extended: Number of posts to display on the admin list screen',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => 10,\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'min' => -1,\n 'max' => '',\n 'step' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_single_orderby',\n 'label' => 'Order by',\n 'name' => 'acfe_dt_single_orderby',\n 'type' => 'text',\n 'instructions' => 'ACF Extended: Sort retrieved posts by parameter in the admin list screen. Defaults to \\'date (post_date)\\'.',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => array(\n '5c9479dec93c4' => array(\n 'acfe_update_function' => 'sanitize_title',\n ),\n ),\n 'acfe_permissions' => '',\n 'default_value' => 'date',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_single_order',\n 'label' => 'Order',\n 'name' => 'acfe_dt_single_order',\n 'type' => 'select',\n 'instructions' => 'ACF Extended: Designates the ascending or descending order of the \\'orderby\\' parameter in the admin list screen. Defaults to \\'DESC\\'.',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'choices' => array(\n 'ASC' => 'ASC',\n 'DESC' => 'DESC',\n ),\n 'default_value' => array(\n 0 => 'DESC',\n ),\n 'allow_null' => 0,\n 'multiple' => 0,\n 'ui' => 0,\n 'return_format' => 'value',\n 'ajax' => 0,\n 'placeholder' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_rewrite',\n 'label' => 'Rewrite',\n 'name' => 'rewrite',\n 'type' => 'true_false',\n 'instructions' => 'Set to false to prevent automatic URL rewriting a.k.a. \"pretty permalinks\". Pass an argument array to override default URL settings for permalinks',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_rewrite_args_select',\n 'label' => 'Rewrite Arguments',\n 'name' => 'rewrite_args_select',\n 'type' => 'true_false',\n 'instructions' => 'Use additional rewrite arguments',\n 'required' => 0,\n 'conditional_logic' => array(\n array(\n array(\n 'field' => 'field_acfe_dt_rewrite',\n 'operator' => '==',\n 'value' => '1',\n ),\n ),\n ),\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 0,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_rewrite_args',\n 'label' => 'Rewrite Arguments',\n 'name' => 'rewrite_args',\n 'type' => 'group',\n 'instructions' => 'Additional arguments',\n 'required' => 0,\n 'conditional_logic' => array(\n array(\n array(\n 'field' => 'field_acfe_dt_rewrite',\n 'operator' => '==',\n 'value' => '1',\n ),\n array(\n 'field' => 'field_acfe_dt_rewrite_args_select',\n 'operator' => '==',\n 'value' => '1',\n ),\n ),\n ),\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'layout' => 'row',\n 'sub_fields' => array(\n array(\n 'key' => 'field_acfe_dt_rewrite_slug',\n 'label' => 'Slug',\n 'name' => 'acfe_dt_rewrite_slug',\n 'type' => 'text',\n 'instructions' => 'Used as pretty permalink text (i.e. /tag/) - defaults to $taxonomy (taxonomy\\'s name slug)',\n 'required' => 0,\n 'conditional_logic' => array(\n array(\n array(\n 'field' => 'field_acfe_dt_rewrite_args_select',\n 'operator' => '==',\n 'value' => '1',\n ),\n ),\n ),\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => 'Default',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_rewrite_with_front',\n 'label' => 'With front',\n 'name' => 'acfe_dt_rewrite_with_front',\n 'type' => 'true_false',\n 'instructions' => 'Allowing permalinks to be prepended with front base',\n 'required' => 0,\n 'conditional_logic' => array(\n array(\n array(\n 'field' => 'field_acfe_dt_rewrite_args_select',\n 'operator' => '==',\n 'value' => '1',\n ),\n ),\n ),\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 1,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_rewrite_hierarchical',\n 'label' => 'Hierarchical',\n 'name' => 'hierarchical',\n 'type' => 'true_false',\n 'instructions' => 'True or false allow hierarchical urls',\n 'required' => 0,\n 'conditional_logic' => array(\n array(\n array(\n 'field' => 'field_acfe_dt_rewrite_args_select',\n 'operator' => '==',\n 'value' => '1',\n ),\n ),\n ),\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 0,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n ),\n ),\n array(\n 'key' => 'field_acfe_dt_tab_admin',\n 'label' => 'Admin',\n 'name' => '',\n 'type' => 'tab',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'placement' => 'top',\n 'endpoint' => 0,\n ),\n array(\n 'key' => 'field_acfe_dt_admin_terms_per_page',\n 'label' => 'Terms per page',\n 'name' => 'acfe_dt_admin_terms_per_page',\n 'type' => 'number',\n 'instructions' => 'ACF Extended: Number of terms to display on the admin list screen',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => 10,\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'min' => -1,\n 'max' => '',\n 'step' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_admin_orderby',\n 'label' => 'Order by',\n 'name' => 'acfe_dt_admin_orderby',\n 'type' => 'text',\n 'instructions' => 'ACF Extended: Sort retrieved terms by parameter in the admin list screen. Accepts term fields \\'name\\', \\'slug\\', \\'term_group\\', \\'term_id\\', \\'id\\', \\'description\\', \\'parent\\', \\'count\\' (for term taxonomy count), or \\'none\\' to omit the ORDER BY clause',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => array(\n '5c9479dec93c4' => array(\n 'acfe_update_function' => 'sanitize_title',\n ),\n ),\n 'acfe_permissions' => '',\n 'default_value' => 'name',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_admin_order',\n 'label' => 'Order',\n 'name' => 'acfe_dt_admin_order',\n 'type' => 'select',\n 'instructions' => 'ACF Extended: Designates the ascending or descending order of the \\'orderby\\' parameter in the admin list screen. Defaults to \\'ASC\\'.',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'choices' => array(\n 'ASC' => 'ASC',\n 'DESC' => 'DESC',\n ),\n 'default_value' => array(\n 0 => 'ASC',\n ),\n 'allow_null' => 0,\n 'multiple' => 0,\n 'ui' => 0,\n 'return_format' => 'value',\n 'ajax' => 0,\n 'placeholder' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_tab_labels',\n 'label' => 'Labels',\n 'name' => '',\n 'type' => 'tab',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'placement' => 'top',\n 'endpoint' => 0,\n ),\n array(\n 'key' => 'field_acfe_dt_labels',\n 'label' => 'Labels',\n 'name' => 'labels',\n 'type' => 'group',\n 'instructions' => 'An array of labels for this taxonomy. By default tag labels are used for non-hierarchical types and category labels for hierarchical ones.<br /><br />\nDefault: if empty, name is set to label value, and singular_name is set to name value.',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'layout' => 'row',\n 'sub_fields' => array(\n array(\n 'key' => 'field_acfe_dt_singular_name',\n 'label' => 'Singular name',\n 'name' => 'singular_name',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_menu_name',\n 'label' => 'Menu name',\n 'name' => 'menu_name',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_all_items',\n 'label' => 'All items',\n 'name' => 'all_items',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_edit_item',\n 'label' => 'Edit item',\n 'name' => 'edit_item',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_view_item',\n 'label' => 'View item',\n 'name' => 'view_item',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_update_item',\n 'label' => 'Update item',\n 'name' => 'update_item',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_add_new_item',\n 'label' => 'Add new item',\n 'name' => 'add_new_item',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_new_item_name',\n 'label' => 'New item name',\n 'name' => 'new_item_name',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_parent_item',\n 'label' => 'Parent item',\n 'name' => 'parent_item',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_parent_item_colon',\n 'label' => 'Parent item colon',\n 'name' => 'parent_item_colon',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_search_items',\n 'label' => 'Search items',\n 'name' => 'search_items',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_popular_items',\n 'label' => 'Popular items',\n 'name' => 'popular_items',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_separate_items_with_commas',\n 'label' => 'Separate items with commas',\n 'name' => 'separate_items_with_commas',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_add_or_remove_items',\n 'label' => 'Add or remove items',\n 'name' => 'add_or_remove_items',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_choose_from_most_used',\n 'label' => 'Choose from most used',\n 'name' => 'choose_from_most_used',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_not_found',\n 'label' => 'Not found',\n 'name' => 'not_found',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_back_to_items',\n 'label' => 'Back to items',\n 'name' => 'back_to_items',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n ),\n ),\n array(\n 'key' => 'field_acfe_dt_tab_capability',\n 'label' => 'Capability',\n 'name' => '',\n 'type' => 'tab',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'placement' => 'top',\n 'endpoint' => 0,\n ),\n array(\n 'key' => 'field_acfe_dt_capabilities',\n 'label' => 'Capabilities',\n 'name' => 'capabilities',\n 'type' => 'textarea',\n 'instructions' => 'An array of the capabilities for this taxonomy:<br /><br />\nmanage_terms : edit_posts<br />\nedit_terms : edit_posts<br />\ndelete_terms : edit_posts<br />\nassign_terms : edit_posts',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'maxlength' => '',\n 'rows' => '',\n 'new_lines' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_tab_rest',\n 'label' => 'REST',\n 'name' => '',\n 'type' => 'tab',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_permissions' => '',\n 'placement' => 'top',\n 'endpoint' => 0,\n ),\n array(\n 'key' => 'field_acfe_dt_show_in_rest',\n 'label' => 'Show in rest',\n 'name' => 'show_in_rest',\n 'type' => 'true_false',\n 'instructions' => 'Whether to include the taxonomy in the REST API. Set this to true for the taxonomy to be available in the block editor',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'message' => '',\n 'default_value' => 0,\n 'ui' => 1,\n 'ui_on_text' => '',\n 'ui_off_text' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_rest_base',\n 'label' => 'Rest base',\n 'name' => 'rest_base',\n 'type' => 'text',\n 'instructions' => 'To change the base url of REST API route',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n array(\n 'key' => 'field_acfe_dt_rest_controller_class',\n 'label' => 'Rest controller class',\n 'name' => 'rest_controller_class',\n 'type' => 'text',\n 'instructions' => 'REST API Controller class name',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => array(\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ),\n 'acfe_validate' => '',\n 'acfe_update' => '',\n 'acfe_permissions' => '',\n 'default_value' => 'WP_REST_Terms_Controller',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ),\n ),\n ));\n \n }", "title": "" }, { "docid": "9a3abbe2d6b8f85a62eb6dffd9b3f52a", "score": "0.4299008", "text": "public function addFacetField($field)\n {\n $this->facetFields[$field] = true;\n return $this;\n }", "title": "" }, { "docid": "13f03f02edd8295f1479ba026acd5287", "score": "0.42810476", "text": "function culturefeed_search_get_agefrom_value($facet_value) {\n\n if (module_exists('culturefeed_search_ui')) {\n\n $options = culturefeed_search_ui_get_age_range_facet_options();\n foreach ($options as $key => $option) {\n if ($option['range'] == $facet_value) {\n return $key;\n }\n }\n\n }\n\n}", "title": "" }, { "docid": "560f6e5d429108ed576da909799b6a7d", "score": "0.42652687", "text": "abstract protected function search_engine_client_add_facet_stats( $facet_name, $exclude );", "title": "" }, { "docid": "bf249c831ce904e3c57cf33870b8b587", "score": "0.42563894", "text": "public function init()\n {\n // Turn on side facets in the search results:\n foreach ($this->_mainFacets as $name => $desc) {\n $this->_searchObject->addFacet($name, $desc);\n }\n foreach ($this->_checkboxFacets as $name => $desc) {\n $this->_searchObject->addCheckboxFacet($name, $desc);\n }\n }", "title": "" }, { "docid": "0705aff5632b9c254bf6a9b64b60932a", "score": "0.419476", "text": "function wp_facet_filter_add_post_type_setting_field_markup_callback() {\n $post_type_args = array(\n 'public' => true\n );\n $options = get_option( 'wp_facet_filters_faceted_post_type' );\n $post_types = get_post_types( $post_type_args );\n ?>\n <select id=\"wp_facet_filters_faceted_post_type\" name=\"wp_facet_filters_faceted_post_type\" >\n <?php\n foreach ( $post_types as $post_type ) {\n $pt_obj = get_post_type_object( $post_type );\n if ($options == $post_type) {\n echo \"<option selected value='\" . $post_type . \"'>\" . $pt_obj->label . \"</option>\";\n } else {\n echo \"<option value='\" . $post_type . \"'>\" . $pt_obj->label . \"</option>\";\n }\n } \n ?>\n </select>\n <?php\n}", "title": "" }, { "docid": "fe35cbbaf8271adac598e033c9daa309", "score": "0.4193599", "text": "function fwp_add_facet_labels() {\n ?>\n <script>\n (function($) {\n $(document).on('facetwp-loaded', function() {\n $('.facetwp-facet').each(function() {\n var $facet = $(this);\n var facet_name = $facet.attr('data-name');\n var facet_label = FWP.settings.labels[facet_name];\n\n if ($facet.closest('.facet-wrap').length < 1 && $facet.closest('.facetwp-flyout').length < 1) {\n $facet.wrap('<div class=\"facet-wrap\"></div>');\n $facet.before('<h3 class=\"h6 facet-label\">' + facet_label + '</h3>');\n }\n });\n });\n })(jQuery);\n </script>\n <?php\n }", "title": "" }, { "docid": "6c9988678b17715b01d14fc0a96a2c8a", "score": "0.41840556", "text": "private\n\tfunction is_facet_to_show_as_a_hierarchy(\n\t\t$facet_name\n\t) {\n\n\t\t$facets_to_show_as_a_hierarchy = WPSOLR_Service_Container::getOption()->get_facets_to_show_as_hierarchy();\n\n\t\treturn ! empty( $facets_to_show_as_a_hierarchy ) && ! empty( $facets_to_show_as_a_hierarchy[ $facet_name ] );\n\t}", "title": "" }, { "docid": "67a523918e9cb71de40463d83705593e", "score": "0.4171307", "text": "public function getFacets(): array;", "title": "" }, { "docid": "0bc574fc225866d033eec78f4f2a920b", "score": "0.41685662", "text": "public function buildComponent(ConfigurableInterface $component, Request $request): Request\n {\n $facets = $component->getFacets();\n\n if (0 !== \\count($facets)) {\n $nonJson = false;\n $jsonFacets = [];\n\n // create a list of facet fields\n // 1) filter for FACET_FIELD\n // 2) get field name\n // 3) count occurence\n $facetFields = array_count_values(array_map(\n static function ($value) {\n return $value->getField();\n },\n array_filter($facets, static function ($value) {\n return FacetSetInterface::FACET_FIELD === $value->getType();\n })\n ));\n foreach ($facets as $key => $facet) {\n switch ($facet->getType()) {\n case FacetSetInterface::FACET_FIELD:\n /* @var FacetField $facet */\n $this->addFacetField($request, $facet, 1 < $facetFields[$facet->getField()]);\n $nonJson = true;\n break;\n case FacetSetInterface::FACET_QUERY:\n /* @var FacetQuery $facet */\n $this->addFacetQuery($request, $facet);\n $nonJson = true;\n break;\n case FacetSetInterface::FACET_MULTIQUERY:\n /* @var FacetMultiQuery $facet */\n $this->addFacetMultiQuery($request, $facet);\n $nonJson = true;\n break;\n case FacetSetInterface::FACET_RANGE:\n /* @var FacetRange $facet */\n $this->addFacetRange($request, $facet);\n $nonJson = true;\n break;\n case FacetSetInterface::FACET_PIVOT:\n /* @var FacetPivot $facet */\n $this->addFacetPivot($request, $facet);\n $nonJson = true;\n break;\n case FacetSetInterface::FACET_INTERVAL:\n /* @var FacetInterval $facet */\n $this->addFacetInterval($request, $facet);\n $nonJson = true;\n break;\n case FacetSetInterface::JSON_FACET_TERMS:\n case FacetSetInterface::JSON_FACET_QUERY:\n case FacetSetInterface::JSON_FACET_RANGE:\n case FacetSetInterface::JSON_FACET_AGGREGATION:\n /* @var JsonFacetInterface $facet */\n $jsonFacets[$key] = $facet->serialize();\n break;\n default:\n throw new UnexpectedValueException('Unknown facet type');\n }\n }\n\n if ($nonJson) {\n // enable non-json faceting\n $request->addParam('facet', 'true');\n\n // global facet params\n $request->addParam('facet.prefix', $component->getPrefix());\n $request->addParam('facet.contains', $component->getContains());\n $request->addParam('facet.contains.ignoreCase', $component->getContainsIgnoreCase());\n $request->addParam('facet.matches', $component->getMatches());\n $request->addParam('facet.sort', $component->getSort());\n $request->addParam('facet.limit', $component->getLimit());\n $request->addParam('facet.offset', $component->getOffset());\n $request->addParam('facet.mincount', $component->getMinCount());\n $request->addParam('facet.missing', $component->getMissing());\n $request->addParam('facet.method', $component->getMethod());\n $request->addParam('facet.enum.cache.minDf', $component->getEnumCacheMinimumDocumentFrequency());\n $request->addParam('facet.exists', $component->getExists());\n $request->addParam('facet.excludeTerms', $component->getExcludeTerms());\n $request->addParam('facet.overrequest.count', $component->getOverrequestCount());\n $request->addParam('facet.overrequest.ratio', $component->getOverrequestRatio());\n $request->addParam('facet.threads', $component->getThreads());\n $request->addParam('facet.pivot.mincount', $component->getPivotMinCount());\n }\n\n if ($jsonFacets) {\n $request->addParam('json.facet', json_encode($jsonFacets));\n }\n }\n\n return $request;\n }", "title": "" }, { "docid": "9cb109103ff65e11493667f8238219eb", "score": "0.41463464", "text": "private function createLazy($guid) {\n $guid = PapayaUtilStringGuid::toLower($guid);\n if (!isset($this->_groups[$guid])) {\n $this->_groups[$guid] = new PapayaPluginOptions($guid);\n $this->_groups[$guid]->papaya($this->papaya());\n }\n }", "title": "" }, { "docid": "3add5bc740ebfbf21429187d3ff4ec0d", "score": "0.413347", "text": "function team_taxonomy() {\n register_taxonomy(\n 'team-filters', //The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces).\n 'team', //post type name\n array(\n 'hierarchical' => true,\n 'label' => 'Team Filters', //Display name\n 'query_var' => 'team-filters',\n 'rewrite' => array(\n 'slug' => 'team/filter/', // This controls the base slug that will display before each term\n 'with_front' => true // Don't display the category base before\n )\n )\n );\n}", "title": "" }, { "docid": "a48303df9af79459610f17b3f22fb995", "score": "0.40946296", "text": "protected function registerFacets()\n {\n add_filter('docalist_search_get_facets', function ($facets) {\n $facets += [\n '_type' => [\n 'label' => __('Type de contenu', 'docalist-search'),\n 'facet' => [\n 'field' => '_type',\n // 'order' => 'term',\n ],\n ],\n ];\n\n return $facets;\n });\n\n add_filter('docalist_search_get_facet_label', function ($term, $facet) {\n static $types = null;\n\n if ($facet !== '_type') {\n return trim(str_replace('¤', ' ', $term));\n }\n\n if (is_null($types)) {\n $types = apply_filters('docalist_search_get_types', []);\n }\n\n isset($types[$term]) && $term = $types[$term];\n\n return $term;\n }, 10, 2);\n }", "title": "" }, { "docid": "01fba0550cecc49965b300b1dae21665", "score": "0.40724495", "text": "abstract protected function search_engine_client_set_facets_min_count( $facet_name, $min_count );", "title": "" }, { "docid": "b90130f43d7234c6a590a337eab4010f", "score": "0.4069892", "text": "public function setFacet(bool $value): self\n {\n $this->setOption('facet', $value);\n\n return $this;\n }", "title": "" }, { "docid": "8fe25b4dd73a357fbead9098a2c6c164", "score": "0.40620375", "text": "public function getFacetSet(): FacetSet\n {\n return $this->getComponent(ComponentAwareQueryInterface::COMPONENT_FACETSET, true);\n }", "title": "" }, { "docid": "4f3cba58832dc2a361a1966d1d5418b5", "score": "0.4054006", "text": "function generate_ontosegment($src_service_id, $srcName, $segmentName) {\n\tswitch ($segmentName) {\n\t\tcase 'broader':\n\t\t\t$shortName = 'b';\n\t\t\t$longName = lg('lblOntoFacetsBroader');\n\t\t\t$segmentToggleTitle = lg('titleOntoFacetsBroader', $srcName);\n\t\t\tbreak;\n\t\tcase 'narrower':\n\t\t\t$shortName = 'n';\n\t\t\t$longName = lg('lblOntoFacetsNarrower');\n\t\t\t$segmentToggleTitle = lg('titleOntoFacetsNarrower', $srcName);\n\t\t\tbreak;\n\t\tcase 'related':\n\t\tdefault:\n\t\t\t$shortName = 'r';\n\t\t\t$longName = lg('lblOntoFacetsRelated');\n\t\t\t$segmentToggleTitle = lg('titleOntoFacetsRelated', $srcName);\n\t}\n\t\n\treturn <<<EOR\n\t\t<!-- Segment name -->\n\t\t<div id=\"fb_item_{$shortName}_{$src_service_id}\" class=\"facetgroup-header-$segmentName\">\n\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=0 style=\"width: 100%;\">\n\t\t\t\t<tr style=\"cursor: pointer;font-style:italic;\" \n\t\t\t\t\tonclick=\"\\$p.ajax.call('../../app/tests/LoggerResponder.php?action=12&name=$srcName/$segmentName', {'type':'load'});\n\t\t\t\t\tfb_toggle_itemcontent('{$src_service_id}','_{$shortName}_')\" title=\"$segmentToggleTitle\"\n\t\t\t\t>\n\t\t\t\t\t<td id=\"fb_itemname_expander_{$shortName}_$src_service_id\" class=\"fb-expander\" alt=\"Expand\" valign=\"center\" width=\"12\"></td>\n\t\t\t\t\t<td align=\"left\" class=\"facetcontrol-td\" style=\"font-size:small;font-style:italic;\">$longName</td>\n\t\t\t\t\t<td id=\"fb_itemcount_{$shortName}_{$src_service_id}\" class=\"facet-result-count\"></td>\n\t\t\t\t</tr>\n\t\t\t</table> \n\t\t</div>\n\t\t\n\t\t<!-- Segment list of terms -->\n\t\t<div id=\"fb_itemcontent_{$shortName}_{$src_service_id}\" class=\"facetlist-inactive\">\n\t\t\t<table id=\"fb_table_{$shortName}_{$src_service_id}\" cellpadding=\"0\" cellspacing=\"0\" border=0 width=\"225px\" class=\"fb-group-table\">\n\t\t\t\t<tr style=\"cursor:pointer;font-style:italic;\" class=\"fb-sorting\">\n\t\t\t\t\t<td class=\"facetcontrol-td\" valign=\"center\" style=\"font-style:italic;\" />\n\t\t\t\t</tr>\n\t\t\t</table> \n\t\t</div>\nEOR;\n}", "title": "" }, { "docid": "6bfc196d37b03f2792bfa44130bdc439", "score": "0.40368715", "text": "function hook_field_group_pre_render_alter(&$element, $group, & $form) {\n\n if ($group->format_type == 'htab') {\n $element['#theme_wrappers'] = array('my_horizontal_tab');\n }\n\n}", "title": "" }, { "docid": "4d19ee675fbbe0b88a0a95a60d996dc9", "score": "0.40297768", "text": "abstract public function search_engine_client_add_filter_range_upper_included( $filter_name, $field_name, $facet_is_or, $range_start, $range_end, $filter_tag = '' );", "title": "" }, { "docid": "d3eee46af808b993c2cfec3bdf5c889e", "score": "0.40200937", "text": "public function configureSpecificFacilityTreemap();", "title": "" }, { "docid": "52ed50633f0cbd29b9e0d57db5c2f001", "score": "0.40178165", "text": "abstract protected function search_engine_client_set_facet_sort_alphabetical( $facet_name );", "title": "" }, { "docid": "afb499f977792e6b0ab741d3ea1b6605", "score": "0.40161", "text": "function researchlistvar( $atts ) {\n $r = shortcode_atts( array(\n 'department' => '',\n ), $atts ); ?>\n<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;\nif (!empty($r['department'])) { \n$args = array(\n\t\t'post_type' => 'person',\n\t 'post_status' => 'publish',\n\t\t'posts_per_page' => -1,\n\t 'paged' => $paged,\n\t\t'meta_key' => 'profile_L_name',\n\t\t'orderby' => 'meta_value',\n\t\t'order' => 'ASC', \n 'tax_query' => array(\n array(\n 'taxonomy' => 'departments',\n 'field' => 'slug',\n 'terms' => $r['department'],\n ),\n ),\n );\n}\nelse {\n\t$args = array(\n\t\t'post_type' => 'person',\n\t 'post_status' => 'publish',\n\t\t'posts_per_page' => -1,\n\t 'paged' => $paged,\n\t\t'meta_key' => 'profile_L_name',\n\t\t'orderby' => 'meta_value',\n\t\t'order' => 'ASC', \n );\n} ?><?php \n $loop = new WP_Query($args);\n while($loop->have_posts()) : $loop->the_post(); ?>\n<?php if (get_field('research_interests')):\t?> \n<?php get_template_part( 'research-result'); ?>\n<?php\t endif;\n\t\t endwhile; ?>\t<!-- then the pagination links -->\n<div class=\"mt-5\">\n\t<?php wpbeginner_numeric_posts_nav(); ?>\n</div>\n<?php }", "title": "" }, { "docid": "1873f0322a0f5d5815907860be28b89e", "score": "0.40132836", "text": "public function __construct($searchObject, $params)\n {\n // Save the passed-in SearchObject:\n $this->_searchObject = $searchObject;\n // Parse the additional settings:\n $params = explode(':', $params);\n $mainSection = empty($params[0]) ? 'Results' : $params[0];\n $checkboxSection = isset($params[1]) ? $params[1] : false;\n $iniName = isset($params[2]) ? $params[2] : 'facets';\n if (in_array('Primo Central', $_SESSION['shards']) === true || in_array('GBV Primo Bridged', $_SESSION['shards']) === true) $iniName = 'facets_primocentral';\n // Load the desired facet information...\n $this->config = getExtraConfigArray($iniName);\n // All standard facets to display:\n $this->_mainFacets = isset($this->config[$mainSection]) ?\n $this->config[$mainSection] : array();\n // Get a list of fields that should be displayed as date ranges rather than\n // standard facet lists.\n if (isset($this->config['SpecialFacets']['dateRange'])) {\n $this->_dateFacets = is_array($this->config['SpecialFacets']['dateRange'])\n ? $this->config['SpecialFacets']['dateRange']\n : array($this->config['SpecialFacets']['dateRange']);\n }\n\n // Checkbox facets:\n $this->_checkboxFacets\n = ($checkboxSection && isset($config[$checkboxSection]))\n ? $config[$checkboxSection] : array();\n\n if (isset($this->config['Raw'.$checkboxSection])) {\n $index = 0;\n for ($intCount = 0; $intCount < count($this->config['Raw'.$checkboxSection])/2; $intCount++) {\n $this->_checkboxFacets[$this->config['Raw'.$checkboxSection][$index]] = $this->config['Raw'.$checkboxSection][$index.'_label'];\n $index++;\n }\n }\n }", "title": "" }, { "docid": "2d128c65878db43282d035e83777aa32", "score": "0.40011454", "text": "public function getFacetPath(array $facet, array $values, $active) {\n $segments = $this->pathSegments;\n $active_items = $this->adapter->getActiveItems($facet);\n\n // 检查当前分类是否存在.\n $already_exists_alias = array();\n foreach ($segments as $key => $segment) {\n $already_exists_alias[$key] = $segment['alias'];\n }\n\n // dpm($segments, 'values');\n // Adds to segments if inactive, removes if active.\n foreach ($values as $value) {\n $segment = $this->getPathSegment($facet, $value);\n if ($index = array_search($segment['alias'], $already_exists_alias)) {\n unset($segments[$index]);\n }\n// if ($active && isset($active_items[$value])) {\n// unset($segments[$segment['key']]);\n// }\n// elseif (!$active) {\n $segments[$segment['key']] = $segment;\n// }\n }\n\n $path = $this->constructPath($segments);\n $path = str_replace('//', '/', $path);\n return $path;\n }", "title": "" }, { "docid": "746d7209df90013295777be123920c68", "score": "0.3997854", "text": "public static function getEngagements($entire_range = FALSE) {\n $engagements = self::buildAggregationArray();\n $entities = self::filteredNodes($entire_range);\n foreach ($entities as $entity) {\n // ARI Faculty.\n $engagements['total']['ari']['fac'] += $entity->get('field_ercore_ee_ari_fac_f')->value;\n $engagements['female']['ari']['fac'] += $entity->get('field_ercore_ee_ari_fac_f')->value;\n $engagements['total']['ari']['fac'] += $entity->get('field_ercore_ee_ari_fac_m')->value;\n $engagements['male']['ari']['fac'] += $entity->get('field_ercore_ee_ari_fac_m')->value;\n $engagements['total']['ari']['fac'] += $entity->get('field_ercore_ee_ari_fac_u')->value;\n $engagements['minority']['ari']['fac'] += $entity->get('field_ercore_ee_ari_fac_mn')->value;\n\n // ARI Student.\n $engagements['total']['ari']['stu'] += $entity->get('field_ercore_ee_ari_stu_f')->value;\n $engagements['female']['ari']['stu'] += $entity->get('field_ercore_ee_ari_stu_f')->value;\n $engagements['total']['ari']['stu'] += $entity->get('field_ercore_ee_ari_stu_m')->value;\n $engagements['male']['ari']['stu'] += $entity->get('field_ercore_ee_ari_stu_m')->value;\n $engagements['total']['ari']['stu'] += $entity->get('field_ercore_ee_ari_stu_u')->value;\n $engagements['minority']['ari']['stu'] += $entity->get('field_ercore_ee_ari_stu_mn')->value;\n // PUI Faculty.\n $engagements['total']['pui']['fac'] += $entity->get('field_ercore_ee_pui_fac_f')->value;\n $engagements['female']['pui']['fac'] += $entity->get('field_ercore_ee_pui_fac_f')->value;\n $engagements['total']['pui']['fac'] += $entity->get('field_ercore_ee_pui_fac_m')->value;\n $engagements['male']['pui']['fac'] += $entity->get('field_ercore_ee_pui_fac_m')->value;\n $engagements['total']['pui']['fac'] += $entity->get('field_ercore_ee_pui_fac_u')->value;\n $engagements['minority']['pui']['fac'] += $entity->get('field_ercore_ee_pui_fac_mn')->value;\n // PUI Student.\n $engagements['total']['pui']['stu'] += $entity->get('field_ercore_ee_pui_stu_f')->value;\n $engagements['female']['pui']['stu'] += $entity->get('field_ercore_ee_pui_stu_f')->value;\n $engagements['total']['pui']['stu'] += $entity->get('field_ercore_ee_pui_stu_m')->value;\n $engagements['male']['pui']['stu'] += $entity->get('field_ercore_ee_pui_stu_m')->value;\n $engagements['total']['pui']['stu'] += $entity->get('field_ercore_ee_pui_stu_u')->value;\n $engagements['minority']['pui']['stu'] += $entity->get('field_ercore_ee_pui_stu_mn')->value;\n // MSI Faculty.\n $engagements['total']['msi']['fac'] += $entity->get('field_ercore_ee_msi_fac_f')->value;\n $engagements['female']['msi']['fac'] += $entity->get('field_ercore_ee_msi_fac_f')->value;\n $engagements['total']['msi']['fac'] += $entity->get('field_ercore_ee_msi_fac_m')->value;\n $engagements['male']['msi']['fac'] += $entity->get('field_ercore_ee_msi_fac_m')->value;\n $engagements['total']['msi']['fac'] += $entity->get('field_ercore_ee_msi_fac_u')->value;\n $engagements['minority']['msi']['fac'] += $entity->get('field_ercore_ee_msi_fac_mn')->value;\n // MSI Student.\n $engagements['total']['msi']['stu'] += $entity->get('field_ercore_ee_msi_stu_f')->value;\n $engagements['female']['msi']['stu'] += $entity->get('field_ercore_ee_msi_stu_f')->value;\n $engagements['total']['msi']['stu'] += $entity->get('field_ercore_ee_msi_stu_m')->value;\n $engagements['male']['msi']['stu'] += $entity->get('field_ercore_ee_msi_stu_m')->value;\n $engagements['total']['msi']['stu'] += $entity->get('field_ercore_ee_msi_stu_u')->value;\n $engagements['minority']['msi']['stu'] += $entity->get('field_ercore_ee_msi_stu_mn')->value;\n // Other.\n $engagements['total']['other'] += $entity->get('field_ercore_ee_other_f')->value;\n $engagements['female']['other'] += $entity->get('field_ercore_ee_other_f')->value;\n $engagements['total']['other'] += $entity->get('field_ercore_ee_other_m')->value;\n $engagements['male']['other'] += $entity->get('field_ercore_ee_other_m')->value;\n $engagements['total']['other'] += $entity->get('field_ercore_ee_other_u')->value;\n $engagements['minority']['other'] += $entity->get('field_ercore_ee_other_mn')->value;\n // K12 TTR.\n $engagements['total']['k12']['ttr'] += $entity->get('field_ercore_ee_k12_ttr_f')->value;\n $engagements['female']['k12']['ttr'] += $entity->get('field_ercore_ee_k12_ttr_f')->value;\n $engagements['total']['k12']['ttr'] += $entity->get('field_ercore_ee_other_m')->value;\n $engagements['male']['k12']['ttr'] += $entity->get('field_ercore_ee_k12_ttr_m')->value;\n $engagements['total']['k12']['ttr'] += $entity->get('field_ercore_ee_k12_ttr_u')->value;\n $engagements['minority']['k12']['ttr'] += $entity->get('field_ercore_ee_k12_ttr_mn')->value;\n // K12 TCH.\n $engagements['total']['k12']['tch'] += $entity->get('field_ercore_ee_k12_tch_f')->value;\n $engagements['female']['k12']['tch'] += $entity->get('field_ercore_ee_k12_tch_f')->value;\n $engagements['total']['k12']['tch'] += $entity->get('field_ercore_ee_k12_tch_m')->value;\n $engagements['male']['k12']['tch'] += $entity->get('field_ercore_ee_k12_tch_m')->value;\n $engagements['total']['k12']['tch'] += $entity->get('field_ercore_ee_k12_tch_u')->value;\n $engagements['minority']['k12']['tch'] += $entity->get('field_ercore_ee_k12_tch_mn')->value;\n // k12 DIR.\n $engagements['total']['k12']['dir'] += $entity->get('field_ercore_ee_k12_dir_f')->value;\n $engagements['female']['k12']['dir'] += $entity->get('field_ercore_ee_k12_dir_f')->value;\n $engagements['total']['k12']['dir'] += $entity->get('field_ercore_ee_k12_dir_m')->value;\n $engagements['male']['k12']['dir'] += $entity->get('field_ercore_ee_k12_dir_m')->value;\n $engagements['total']['k12']['dir'] += $entity->get('field_ercore_ee_k12_dir_u')->value;\n $engagements['minority']['k12']['dir'] += $entity->get('field_ercore_ee_k12_dir_mn')->value;\n }\n return $engagements;\n }", "title": "" }, { "docid": "4f5b4c522c4fb95e5970aee7d3923ebc", "score": "0.39881217", "text": "function display_granularity($display_id) {\r\n \r\n $arguments = $this->view->get_items('argument', $display_id);\r\n $wildcard = '';\r\n $argument = '';\r\n $default_granularity = '';\r\n $i = 0;\r\n foreach ($arguments as $argument) {\r\n if ($argument['id'] == 'date_argument') {\r\n $pos = $i;\r\n $default_granularity = $argument['granularity'];\r\n $wildcard = $argument['wildcard'];\r\n $argument = !empty($this->view->args) && !empty($this->view->args[$pos]) ? $this->view->args[$pos] : '';\r\n break;\r\n }\r\n $i++;\r\n }\r\n // TODO Anything else we need to do for 'all' arguments?\r\n if ($argument == $wildcard) {\r\n $view_granularity = $default_granularity;\r\n }\r\n elseif (!empty($argument)) {\r\n require_once('./'. drupal_get_path('module', 'date_api') .'/date_api_sql.inc');\r\n $date_handler = new date_sql_handler();\r\n $view_granularity = $date_handler->arg_granularity($argument);\r\n }\r\n else {\r\n $view_granularity = $default_granularity;\r\n }\r\n return $view_granularity;\r\n }", "title": "" }, { "docid": "d5317e7c0860d4372d81730345991f8b", "score": "0.39855504", "text": "public function settingsForm(&$form, &$form_state) {\n if (in_array('date', $form['#facetapi']['facet']['query types']) ) {\n $granularity = array(\n FACETAPI_DATE_YEAR => t('Year'),\n FACETAPI_DATE_MONTH => t('Month'),\n FACETAPI_DATE_DAY => t('Day'),\n FACETAPI_DATE_HOUR => t('Hour'),\n FACETAPI_DATE_MINUTE => t('Minute'),\n );\n\n $facet = $form['#facetapi']['facet'];\n $settings = $this->getFacet($facet)->getSettings()->settings;\n\n $form['global']['date_granularity'] = array(\n '#type' => 'select',\n '#title' => t('Granularity'),\n '#description' => t('Time intervals smaller than this will not be displayed in the facet.'),\n '#options' => $granularity,\n '#default_value' => isset($settings['date_granularity']) ? $settings['date_granularity'] : FACETAPI_DATE_MINUTE,\n );\n }\n\n $form['#validate'][] = 'apachesolr_facet_form_validate';\n }", "title": "" }, { "docid": "abdf38af1bea03090a372bba2085c784", "score": "0.39766952", "text": "function new_subcategory_hierarchy() { \n $category = get_queried_object();\n \n $parent_id = $category->category_parent;\n \n $templates = array();\n \n if ( $parent_id == 0 ) {\n // Use default values from get_category_template()\n $templates[] = \"category-{$category->slug}.php\";\n $templates[] = \"category-{$category->term_id}.php\";\n $templates[] = 'category.php'; \n } else {\n // Create replacement $templates array\n $parent = get_category( $parent_id );\n \n // Current first\n $templates[] = \"category-{$category->slug}.php\";\n $templates[] = \"category-{$category->term_id}.php\";\n \n // Parent second\n $templates[] = \"category-{$parent->slug}.php\";\n $templates[] = \"category-{$parent->term_id}.php\";\n $templates[] = 'category.php'; \n }\n return locate_template( $templates );\n}", "title": "" }, { "docid": "87cb395e27962d39ca4605c19ea15dd0", "score": "0.39754686", "text": "public function get_search_facet_data() {\n\t\tif ( empty( $this->facets ) )\n\t\t\treturn false;\n\n\t\t$facets = $this->get_search_facets();\n\n\t\tif ( ! $facets )\n\t\t\treturn false;\n\n\t\t$facet_data = array();\n\n\t\tforeach ( $facets as $label => $facet ) {\n\t\t\tif ( empty( $this->facets[ $label ] ) )\n\t\t\t\tcontinue;\n\n\t\t\t$facets_data[ $label ] = $this->facets[ $label ];\n\t\t\t$facets_data[ $label ]['items'] = array();\n\n\t\t\t// All taxonomy terms are going to have the same query_var\n\t\t\tif( 'taxonomy' == $this->facets[ $label ]['type'] ) {\n\t\t\t\t$tax_query_var = $this->get_taxonomy_query_var( $this->facets[ $label ]['taxonomy'] );\n\n\t\t\t\tif ( ! $tax_query_var )\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$existing_term_slugs = ( get_query_var( $tax_query_var ) ) ? explode( ',', get_query_var( $tax_query_var ) ) : array();\n\n\t\t\t\t// This plugon's custom \"categery\" isn't a real query_var, so manually handle it\n\t\t\t\tif ( 'category' == $tax_query_var && ! empty( $_GET[ $tax_query_var ] ) ) {\n\t\t\t\t\t$slugs = explode( ',', $_GET[ $tax_query_var ] );\n\n\t\t\t\t\tforeach ( $slugs as $slug ) {\n\t\t\t\t\t\t$existing_term_slugs[] = $slug;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$items = array();\n\t\t\tif ( ! empty( $facet['terms'] ) ) {\n\t\t\t\t$items = (array) $facet['terms'];\n\t\t\t}\n\t\t\telseif ( ! empty( $facet['entries'] ) ) {\n\t\t\t\t$items = (array) $facet['entries'];\n\t\t\t}\n\n\t\t\t// Some facet types like date_histogram don't support the max results parameter\n\t\t\tif ( count( $items ) > $this->facets[ $label ]['count'] ) {\n\t\t\t\t$items = array_slice( $items, 0, $this->facets[ $label ]['count'] );\n\t\t\t}\n\n\t\t\tforeach ( $items as $item ) {\n\t\t\t\t$query_vars = array();\n\n\t\t\t\tswitch ( $this->facets[ $label ]['type'] ) {\n\t\t\t\t\tcase 'taxonomy':\n\t\t\t\t\t\t$term = get_term_by( 'slug', $item['term'], $this->facets[ $label ]['taxonomy'] );\n\n\t\t\t\t\t\tif ( ! $term )\n\t\t\t\t\t\t\tcontinue 2; // switch() is considered a looping structure\n\n\t\t\t\t\t\t// Don't allow refinement on a term we're already refining on\n\t\t\t\t\t\tif ( in_array( $term->slug, $existing_term_slugs ) )\n\t\t\t\t\t\t\tcontinue 2;\n\n\t\t\t\t\t\t$slugs = array_merge( $existing_term_slugs, array( $term->slug ) );\n\n\t\t\t\t\t\t$query_vars = array( $tax_query_var => implode( ',', $slugs ) );\n\t\t\t\t\t\t$name = $term->name;\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'post_type':\n\t\t\t\t\t\t$post_type = get_post_type_object( $item['term'] );\n\n\t\t\t\t\t\tif ( ! $post_type || $post_type->exclude_from_search )\n\t\t\t\t\t\t\tcontinue 2; // switch() is considered a looping structure\n\n\t\t\t\t\t\t$query_vars = array( 'post_type' => $item['term'] );\n\t\t\t\t\t\t$name = $post_type->labels->singular_name;\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'date_histogram':\n\t\t\t\t\t\t$timestamp = $item['time'] / 1000;\n\n\t\t\t\t\t\tswitch ( $this->facets[ $label ]['interval'] ) {\n\t\t\t\t\t\t\tcase 'year':\n\t\t\t\t\t\t\t\t$query_vars = array(\n\t\t\t\t\t\t\t\t\t'year' => date( 'Y', $timestamp ),\n\t\t\t\t\t\t\t\t\t'monthnum' => false,\n\t\t\t\t\t\t\t\t\t'day' => false,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$name = date( 'Y', $timestamp );\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'month':\n\t\t\t\t\t\t\t\t$query_vars = array(\n\t\t\t\t\t\t\t\t\t'year' => date( 'Y', $timestamp ),\n\t\t\t\t\t\t\t\t\t'monthnum' => date( 'n', $timestamp ),\n\t\t\t\t\t\t\t\t\t'day' => false,\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$name = date( 'F Y', $timestamp );\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tcase 'day':\n\t\t\t\t\t\t\t\t$query_vars = array(\n\t\t\t\t\t\t\t\t\t'year' => date( 'Y', $timestamp ),\n\t\t\t\t\t\t\t\t\t'monthnum' => date( 'n', $timestamp ),\n\t\t\t\t\t\t\t\t\t'day' => date( 'j', $timestamp ),\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$name = date( 'F jS, Y', $timestamp );\n\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tcontinue 3; // switch() is considered a looping structure\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t//continue 2; // switch() is considered a looping structure\n\t\t\t\t}\n\n\t\t\t\t// Remove any backslash from the GET parameters\n\t\t\t\t$_GET = array_map( \"stripslashes\", $_GET );\n\n\t\t\t\t// Need to urlencode param values since add_query_arg doesn't\n\t\t\t\t$url_params = urlencode_deep( array_merge( $_GET, $query_vars ) );\n\n\t\t\t\t$facets_data[ $label ]['items'][] = array(\n\t\t\t\t\t'url' => add_query_arg( $url_params, home_url() ),\n\t\t\t\t\t'query_vars' => $query_vars,\n\t\t\t\t\t'name' => $name,\n\t\t\t\t\t'count' => $item['count'],\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\n\t\treturn $facets_data;\n\t}", "title": "" }, { "docid": "5f32767701abafd65a2906c95ac4822c", "score": "0.39570177", "text": "function jds_ga_dashboard_widget_function() {?>\n\t<!-- Step 1: Create the containing elements. -->\n\n\t<!-- Step 1: Create the containing elements. -->\n\n<section id=\"auth-button\"></section>\n<section id=\"view-selector\"></section>\n<section id=\"timeline\"></section>\n\n<!-- Step 2: Load the library. -->\n\n<script>\n(function(w,d,s,g,js,fjs){\n g=w.gapi||(w.gapi={});g.analytics={q:[],ready:function(cb){this.q.push(cb)}};\n js=d.createElement(s);fjs=d.getElementsByTagName(s)[0];\n js.src='https://apis.google.com/js/platform.js';\n fjs.parentNode.insertBefore(js,fjs);js.onload=function(){g.load('analytics')};\n}(window,document,'script'));\n</script>\n\n<script>\ngapi.analytics.ready(function() {\n\n // Step 3: Authorize the user.\n\n var CLIENT_ID = '511408457597-p1ino2qdb2dpimsjfjm8jjukkt1162ih.apps.googleusercontent.com';\n\n gapi.analytics.auth.authorize({\n container: 'auth-button',\n clientid: CLIENT_ID,\n });\n\n // Step 4: Create the view selector.\n\n var viewSelector = new gapi.analytics.ViewSelector({\n container: 'view-selector'\n });\n\n // Step 5: Create the timeline chart.\n\n var timeline = new gapi.analytics.googleCharts.DataChart({\n reportType: 'ga',\n query: {\n 'dimensions': 'ga:date',\n 'metrics': 'ga:sessions',\n 'start-date': '30daysAgo',\n 'end-date': 'yesterday',\n },\n chart: {\n type: 'LINE',\n container: 'timeline'\n }\n });\n\n // Step 6: Hook up the components to work together.\n\n gapi.analytics.auth.on('success', function(response) {\n viewSelector.execute();\n });\n\n viewSelector.on('change', function(ids) {\n var newIds = {\n query: {\n ids: ids\n }\n }\n timeline.set(newIds).execute();\n });\n});\n</script><?php\n}", "title": "" }, { "docid": "09c9e13f96415dcb4a99e845716d5537", "score": "0.3954041", "text": "public function setGranularity($var)\n {\n GPBUtil::checkEnum($var, \\Google\\Analytics\\Data\\V1alpha\\CohortsRange\\Granularity::class);\n $this->granularity = $var;\n\n return $this;\n }", "title": "" }, { "docid": "5bc7294289797e53ca52f9fd3edec40f", "score": "0.3935265", "text": "public function isFaceting()\n {\n return $this->checkBooleanParamIsSet('facet');\n }", "title": "" }, { "docid": "3a7cccdbe56d4a7743400be4a71b2baa", "score": "0.39346543", "text": "function create_post_type() {\n register_post_type( 'apartment',\n array(\n 'labels' => array(\n 'name' => __( 'Apartments' ),\n 'singular_name' => __( 'Apartment' )\n ),\n \t'taxonomies' => array('category'),\n\n 'public' => true,\n 'has_archive' => true,\n )\n );\n}", "title": "" }, { "docid": "89fe11ce443bd31d13174cb0417a0fe0", "score": "0.3932797", "text": "function new_subcategory_hierarchy() { \n $category = get_queried_object();\n \n $parent_id = $category->category_parent;\n \n $templates = array();\n \n if ( $parent_id == 0 ) {\n // Use default values from get_category_template()\n $templates[] = \"category-{$category->slug}.php\";\n $templates[] = \"category-{$category->term_id}.php\";\n $templates[] = 'category.php'; \n } else {\n // Create replacement $templates array\n $parent = get_category( $parent_id );\n \n // Current first\n $templates[] = \"category-{$category->slug}.php\";\n $templates[] = \"category-{$category->term_id}.php\";\n \n // Parent second\n $templates[] = \"category-{$parent->slug}.php\";\n $templates[] = \"category-{$parent->term_id}.php\";\n $templates[] = 'category.php'; \n }\n return locate_template( $templates );\n }", "title": "" }, { "docid": "3b54a000d8365133caf2f05e92558055", "score": "0.39318675", "text": "public function addFacetRange($request, $facet): void\n {\n $field = $facet->getField();\n\n $request->addParam(\n 'facet.range',\n $this->renderLocalParams(\n $field,\n $facet->getLocalParameters()->getParameters()\n )\n );\n\n $request->addParam(\"f.$field.facet.range.start\", $facet->getStart());\n $request->addParam(\"f.$field.facet.range.end\", $facet->getEnd());\n $request->addParam(\"f.$field.facet.range.gap\", $facet->getGap());\n $request->addParam(\"f.$field.facet.range.hardend\", $facet->getHardend());\n $request->addParam(\"f.$field.facet.mincount\", $facet->getMinCount());\n\n foreach ($facet->getOther() as $otherValue) {\n $request->addParam(\"f.$field.facet.range.other\", $otherValue);\n }\n\n foreach ($facet->getInclude() as $includeValue) {\n $request->addParam(\"f.$field.facet.range.include\", $includeValue);\n }\n\n if (null !== $pivot = $facet->getPivot()) {\n $request->addParam(\n 'facet.pivot',\n $this->renderLocalParams(\n implode(',', $pivot->getFields()),\n $pivot->getLocalParameters()->getParameters()\n )\n );\n }\n }", "title": "" }, { "docid": "786123b7777f12d6bcb56d57d79daedc", "score": "0.3929517", "text": "function wp_facet_filter_page() {\n ?>\n <div>\n <form action=\"options.php\" method=\"post\">\n <?php settings_fields('wp_facet_filter_options'); ?>\n <?php do_settings_sections('wp_facet_filter_page'); ?>\n \n <input name=\"Submit\" type=\"submit\" value=\"<?php esc_attr_e('Save Changes'); ?>\" />\n </form>\n </div>\n <?php\n}", "title": "" }, { "docid": "ff17a86b9f1baae0e2bca88e0741b0f3", "score": "0.3922463", "text": "function vc_staff( $atts, $content = null ) {\n\textract( shortcode_atts( array(\n\t\t'staff_groups' => '',\n\t\t'to_show' => '4',\n\t\t'heading_color' => '#262626',\n\t\t'text_color' => '#647886',\n\t\t'job_color' => '#262626',\n\t\t'border_color' => '#f7c605',\n\t\t'hover_effect' => 'no'\n\t), $atts ) );\n\n\n\tif ( $hover_effect == \"yes\" ) {\n\t\t$hover = 'true';\n\t} else {\n\t\t$hover = \"false\";\n\t}\n\t#GET POSTS FOR specific team\n\tif ( $staff_groups ) {\n\t\t$group = get_term( $staff_groups, 'groups' );\n\t}\n\t$args = array(\n\t\t'post_type' => 'pro_staff',\n\t\t'posts_per_page' => $to_show\n\t);\n\t//only if a group is set\n\tif ( $group ) {\n\t\t$args['tax_query'] = array(\n\t\t\tarray(\n\t\t\t\t'taxonomy' => 'groups',\n\t\t\t\t'field' => 'slug',\n\t\t\t\t'terms' => $group->slug\n\t\t\t)\n\t\t);\n\t}\n\t$loop = new WP_Query( $args );\n\t$specific_id = rand( 1000, 10000 );\n\tif ( $to_show != 5 && $to_show != '1' ) {\n\t\t$size_class = 12 / $to_show;\n\t}\n\tif ( $to_show == 5 && $to_show != '1' ) {\n\t\t$size_class = 'five';\n\t}\n\tif ( $to_show != 5 && $to_show != '1' ) {\n\t\t$size_class = 12 / $to_show;\n\t}\n\tif ( $to_show == 5 && $to_show != '1' ) {\n\t\t$size_class = 'five';\n\t}\n\t$output = '';\n\tif ( $to_show != 1 ) {\n\t\t$output .= '<div class=\"pro-team specific_' . $specific_id . '\"><div class=\"container\" style=\"padding-left:0px;padding-right:0px;\"><div class=\"row\">';\n\t\tforeach ( $loop->posts as $members ) {\n\t\t\t$border_color_style = $border_color ? 'style=\"border-color:' . $border_color . ' !important;\"' : '';\n\t\t\t$heading_color_style = $heading_color ? 'style=\"color:' . $heading_color . ';\"' : '';\n\t\t\t$job_color_style = $job_color ? 'style=\"color:' . $job_color . ';\"' : '';\n\t\t\t$text_color_style = $text_color ? 'style=\"color:' . $text_color . ';\"' : '';\n\t\t\t#GET CUSTOM INFO ON STAFF\n\t\t\t$extra_info = get_post_custom( $members->ID );\n\t\t\t$output .= '<div class=\"pro-team-member col-md-' . $size_class . '\">';\n\t\t\t$output .= '<figure ' . $border_color_style . '>';\n\t\t\t$output .= '<span class=\"outline\"></span>';\n\t\t\t$attachment_image_src = wp_get_attachment_image_src( get_post_thumbnail_id( $members->ID ), 'full' );\n\t\t\t$output .= '<img src=\"' . esc_url($attachment_image_src[0]) . '\" alt=\"<b>' . $members->post_title . '</b>\" />';\n\t\t\t$output .= '</figure>';\n\t\t\t$output .= '<h4 ' . $heading_color_style . '>' . $members->post_title . '</h4>';\n\t\t\t$members_terms = wp_get_post_terms( $members->ID, 'staff-categories' );\n\t\t\t$output .= '<h6 ' . $job_color_style . '>' . $members_terms[0]->name . '</h6>';\n\t\t\t$output .= '<div class=\"about\" ' . $text_color_style . '>' . $extra_info[\"staff_member_description\"][0] . '</div>';\n\t\t\t$output .= '<div class=\"social\">';\n\n\t\t\t$output .= '<a href=\"mailto:' . $extra_info['staff_member_email'][0] . '\" target=\"_blank\" class=\"fa fa-envelope\" data-toggle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\tif ( $extra_info['staff_member_facebook_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_facebook_link'][0] . '\" target=\"_blank\" class=\"fa fa-facebook\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_twitter_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_twitter_link'][0] . '\" target=\"_blank\" class=\"fa fa-twitter\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_linkedin_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_linkedin_link'][0] . '\" target=\"_blank\" class=\"fa fa-linkedin\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_skype_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_skype_link'][0] . '\" target=\"_blank\" class=\"fa fa-skype\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_vimeo_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_vimeo_link'][0] . '\" target=\"_blank\" class=\"fa fa-vimeo\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_youtube_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_youtube_link'][0] . '\" target=\"_blank\" class=\"fa fa-youtube\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_dribbble_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_dribbble_link'][0] . '\" target=\"_blank\" class=\"fa fa-dribbble\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_deviantart_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_deviantart_link'][0] . '\" target=\"_blank\" class=\"fa fa-deviantart\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_reddit_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_reddit_link'][0] . '\" target=\"_blank\" class=\"fa fa-reddit\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_behance_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_behance_link'][0] . '\" target=\"_blank\" class=\"fa fa-behance\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\t$output .= '</div>';\n\t\t\t$output .= '</div>';\n\t\t}\n\t\t$output .= '</div></div></div>';\n\t\tif ( $hover == 'false' ) {\n\t\t\t$style = '.specific_' . $specific_id . ' .pro-team-member:hover > figure{padding:0px; border:none; -webkit-transform: scale(1); transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); margin-bottom: 16px !important; }';\n\t\t\t$style .= '.specific_' . $specific_id . ' .pro-team-member:hover > .about, .specific_' . $specific_id . ' .pro-team-member:hover > .social{top:200px;}.specific_' . $specific_id . ' .pro-team-member:hover > h4{ -webkit-transform: scale(1);transform: scale(1);-moz-transform: scale(1);-o-transform: scale(1);-ms-transform: scale(1);}';\n\t\t\twebuild_add_inline_style( $style );\n\t\t}\n\t} else {\n\t\t$output .= '<div class=\"pro-team specific_' . $specific_id . '\"><div style=\"padding:0;\"><div class=\"row\">';\n\t\tforeach ( $loop->posts as $members ) {\n\t\t\t#GET CUSTOM INFO ON STAFF\n\t\t\t$extra_info = get_post_custom( $members->ID );\n\t\t\t$output .= '<div class=\"pro-team-member col-md-6\" style=\"float:none;\">';\n\t\t\t$output .= '<figure style=\"border-color:' . $border_color . ' !important;\">';\n\t\t\t$output .= '<span class=\"outline\"></span>';\n\t\t\t$attachment_image_src = wp_get_attachment_image_src( get_post_thumbnail_id( $members->ID ), 'full' );\n\t\t\t$output .= '<img src=\"' . esc_url($attachment_image_src[0]) . '\" alt=\"<b>' . $members->post_title . '</b>\" />';\n\t\t\t$output .= '</figure>';\n\t\t\t$output .= '<h4 style=\"color:' . $heading_color . ';\">' . $members->post_title . '</h4>';\n\t\t\t$members_terms = wp_get_post_terms( $members->ID, 'staff-categories' );\n\t\t\t$output .= '<h6 style=\"color:' . $job_color . ';\">' . $members_terms[0]->name . '</h6>';\n\t\t\t$output .= '<div class=\"about\" style=\"color:' . $text_color . ';\">' . $extra_info[\"staff_member_description\"][0] . '</div>';\n\t\t\t$output .= '<div class=\"social\">';\n\t\t\t$output .= '<a href=\"mailto:' . $extra_info['staff_member_email'][0] . '\" target=\"_blank\" class=\"fa fa-envelope\" data-toggle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\tif ( $extra_info['staff_member_facebook_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_facebook_link'][0] . '\" target=\"_blank\" class=\"fa fa-facebook\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_twitter_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_twitter_link'][0] . '\" target=\"_blank\" class=\"fa fa-twitter\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_linkedin_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_linkedin_link'][0] . '\" target=\"_blank\" class=\"fa fa-linkedin\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_skype_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_skype_link'][0] . '\" target=\"_blank\" class=\"fa fa-skype\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_vimeo_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_vimeo_link'][0] . '\" target=\"_blank\" class=\"fa fa-vimeo\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_youtube_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_youtube_link'][0] . '\" target=\"_blank\" class=\"fa fa-youtube\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_dribbble_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_dribbble_link'][0] . '\" target=\"_blank\" class=\"fa fa-dribbble\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_deviantart_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_deviantart_link'][0] . '\" target=\"_blank\" class=\"fa fa-deviantart\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_reddit_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_reddit_link'][0] . '\" target=\"_blank\" class=\"fa fa-reddit\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\tif ( $extra_info['staff_member_behance_link'][0] ) {\n\t\t\t\t$output .= '<a href=\"' . $extra_info['staff_member_behance_link'][0] . '\" target=\"_blank\" class=\"fa fa-behance\" data-toogle=\"tooltip\" data-html=\"true\" ></a>';\n\t\t\t}\n\t\t\t$output .= '</div>';\n\t\t\t$output .= '</div>';\n\t\t}\n\t\t$output .= '</div></div></div>';\n\t\tif ( $hover == 'false' ) {\n\t\t\t$style = '.specific_' . $specific_id . ' .pro-team-member:hover > figure{padding:0px; border:none; -webkit-transform: scale(1); transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); margin-bottom: 16px !important; }';\n\t\t\t$style .= '.specific_' . $specific_id . ' .pro-team-member:hover > .about, .specific_' . $specific_id . ' .pro-team-member:hover > .social{top:200px;}.specific_' . $specific_id . ' .pro-team-member:hover > h4{ -webkit-transform: scale(1);transform: scale(1);-moz-transform: scale(1);-o-transform: scale(1);-ms-transform: scale(1);}';\n\t\t\twebuild_add_inline_style( $style );\n\t\t}\n\t}\n\n\treturn $output;\n}", "title": "" }, { "docid": "e413c7ba46d424aab4e5efc8850f6385", "score": "0.39016733", "text": "public function setGranularity(string $granularity): self\n {\n $this->options['granularity'] = $granularity;\n return $this;\n }", "title": "" }, { "docid": "916b9635d74dac0c9195552b5a4d2b61", "score": "0.38984364", "text": "function get_sub_fields($field_params, $field_slug, $current_values)\n {\n $sub_fields = array();\n if (!empty($field_params['enum_values'])) {\n foreach ($field_params['enum_values'] as $key => $value) {\n $sub_fields[$key] = array();\n if (is_array($value)) {\n if ($field_params['type'] == 'accordion') {\n $sub_fields[$key][] = $this->convert_field($value, $current_values);\n } else {\n foreach ($value as $k => $sub_field) {\n if (is_array($sub_field) and !empty($this->fields[$sub_field['slug']])) {\n $sub_fields[$key][] = $this->convert_field($sub_field, $current_values);\n }\n }\n }\n }\n }\n }\n return $sub_fields;\n }", "title": "" }, { "docid": "a0809058d2c108adee91e1df198b22fa", "score": "0.38897434", "text": "function fwpradio_init() {\n add_filter( 'facetwp_facet_types', 'fwpradio_facet_types' );\n}", "title": "" }, { "docid": "eb37ba97cf555205eaa962bb6a2f0ab0", "score": "0.38896134", "text": "function grantlistvar( $atts ) {\n $g = shortcode_atts( array(\n 'unit' => '',\n\t\t'num' => '-1',\n\t\t'style' => '',\n ), $atts ); ?>\n<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;\n//$grantSmall = $g['style'];\nif (!empty($g['unit'])) { \n$args = array(\n\t\t'post_type' => 'grants',\n\t 'post_status' => 'publish',\n\t\t'posts_per_page' => $g['num'],\n\t 'paged' => $paged,\n\t\t'meta_key' => 'grant_start_date',\n\t\t'orderby' => 'meta_value',\n\t\t'order' => 'DESC', \n 'tax_query' => array(\n array(\n 'taxonomy' => 'grant_units',\n 'field' => 'slug',\n 'terms' => $g['unit'],\n ),\n ),\n\t\t'meta_query' => array( // WordPress has all the results, now, return only the events after today's date\n \tarray(\n 'key' => 'grant_end_date', // Check the start date field\n 'value' => date(\"Y-m-d\"), // Set today's date (note the similar format)\n 'compare' => '>=', // Return the ones greater than or equal to today's date\n 'type' => 'DATE' // Let WordPress know we're working with date\n \t)\n \t),\n );\n}\nelse {\n\t$args = array(\n\t\t'post_type' => 'grants',\n\t 'post_status' => 'publish',\n\t\t'posts_per_page' => $g['num'],\n\t 'paged' => $paged,\n\t\t'meta_key' => 'grant_start_date',\n\t\t'orderby' => 'meta_value',\n\t\t'order' => 'DESC', \n );\n} ?> \n<?php \n$loop = new WP_Query($args);\nwhile($loop->have_posts()) : $loop->the_post(); \n?>\n<div class=\"pt-3 pb-3 grantResult <?php echo $g['style']; ?>\">\n<?php get_template_part( 'grant-results'); ?>\n</div>\n<?php endwhile; ?>\n<div class=\"mt-5\">\n\t<?php wpbeginner_numeric_posts_nav(); ?>\n</div>\n<?php }", "title": "" }, { "docid": "d656942f9e4b07e19c5da3354fd0bb29", "score": "0.3886052", "text": "function top6_department_taxonomy()\n{\n $args = array(\n'label' => 'Department',\n'public' => true,\n'rewrite' => array( 'slug' => 'top-6/department' ),\n'hierarchical' => true,\n'show_in_rest' => true\n);\n\n register_taxonomy('department', 'top6', $args);\n}", "title": "" }, { "docid": "1f9b3a59776c9c19df46daa3fcf6c2ec", "score": "0.38840204", "text": "function new_subcategory_hierarchy() {\n\t$category = get_queried_object();\n\n\t$parent_id = $category->category_parent;\n\n\t$templates = array();\n\n\tif ( $parent_id == 0 ) {\n\t\t\t// Use default values from get_category_template()\n\t\t\t$templates[] = \"category-{$category->slug}.php\";\n\t\t\t$templates[] = \"category-{$category->term_id}.php\";\n\t\t\t$templates[] = 'category.php';\n\t} else {\n\t\t\t// Create replacement $templates array\n\t\t\t$parent = get_category( $parent_id );\n\n\t\t\t// Current first\n\t\t\t$templates[] = \"category-{$category->slug}.php\";\n\t\t\t$templates[] = \"category-{$category->term_id}.php\";\n\n\t\t\t// Parent second\n\t\t\t$templates[] = \"category-{$parent->slug}.php\";\n\t\t\t$templates[] = \"category-{$parent->term_id}.php\";\n\t\t\t$templates[] = 'category.php';\n\t}\n\treturn locate_template( $templates );\n}", "title": "" }, { "docid": "16509cf5ac9580cb3ef9220e9023ac49", "score": "0.38820192", "text": "public function wpsolr_filter_facet_type( $default_value, $facet_name ) {\n\n\t\t$facet_layout_id = $this->get_container()->get_service_option()->get_facets_layout_id( $facet_name );\n\n\t\tif ( ! empty( $facet_layout_id ) && ! empty( static::$layout_classes[ $facet_layout_id ] ) ) {\n\t\t\t// Get the facet type of the layout\n\t\t\t$layout_class = $this->get_layout_class( $facet_layout_id );\n\n\t\t\treturn $layout_class::get_facet_type();\n\t\t}\n\n\t\treturn isset( $default_value ) ? $default_value : WPSOLR_Option::OPTION_FACET_FACETS_TYPE_FIELD;\n\t}", "title": "" }, { "docid": "22813c8deb91ae4ae71477332fbadaae", "score": "0.3865228", "text": "function fwpradio_facet_types( $facet_types ) {\n include( dirname( __FILE__ ) . '/facetwp-radio.php' );\n $facet_types['radio'] = new FacetWP_Facet_Radio();\n return $facet_types;\n}", "title": "" }, { "docid": "25637bae8d7facb0f3e750ae96836094", "score": "0.38649514", "text": "function itrend_create_regiones_terms() {\n\tcptui_register_my_taxes();\n\t\n\t$regiones = itrend_populate_regiones();\n\t$alcances = array('Nacional', 'Internacional', 'Regional');\n\n\tforeach($alcances as $alcance):\n\t\tif( !term_exists( $alcance, 'alcance_territorial' )):\n\t\t\tif($alcance == 'Regional'):\n\t\t\t\t$regionalid = wp_insert_term( $alcance, 'alcance_territorial' );\n\t\t\t\tforeach($regiones as $region):\n\t\t\t\t\t$slug = sanitize_title( $region );\n\t\t\t\t\tif( !term_exists( $region, 'alcance_territorial' )):\n\t\t\t\t\t\twp_insert_term( $region, 'alcance_territorial', array('slug' => $slug, 'parent' => $regionalid['term_id']) );\n\t\t\t\t\tendif;\n\t\t\t\tendforeach;\n\t\t\telse:\n\t\t\t\twp_insert_term( $alcance, 'alcance_territorial' );\n\t\t\tendif;\n\t\tendif;\n\tendforeach;\n\t}", "title": "" }, { "docid": "094e45f4a48d14c55745dfebc4e9fa12", "score": "0.38612708", "text": "function wp_facet_filter_register_settings_page() {\n add_options_page( \n 'WP Facet Filter',\n 'WP Facet Filter',\n 'manage_options',\n 'wp-facet-filter-page',\n 'wp_facet_filter_page'\n );\n}", "title": "" }, { "docid": "5a71424d82d42902a862cbd11e207a1b", "score": "0.38604212", "text": "public function create()\n {\n abort_unless(\\Gate::allows('group_create'), 403);\n\n $grades = Organization::where('id', auth()->user()->current_organization_id)->get()->first()->type->grades()->get(); //Grade::all();\n $periods = Period::all(); //Organization::where('id',auth()->user()->current_organization_id)->get()->first()->periods;\n $organizations = (auth()->user()->role()->id == 1) ? Organization::all() : auth()->user()->organizations()->get();\n\n return view('groups.create')\n ->with(compact('grades'))\n ->with(compact('periods'))\n ->with(compact('organizations'));\n }", "title": "" }, { "docid": "3b2830a10b4da26bbce588649425f209", "score": "0.3854676", "text": "function theme_facetapi_link_active($variables) {\n $suffix = '';\n if (isset($variables['text'])) {\n if (empty($variables['options']['html'])) {\n $suffix = ' ' . check_plain($variables['text']);\n }\n else {\n $suffix = ' ' . $variables['text'];\n }\n }\n $accessible_link_text = '<span class=\"element-invisible\">' . t('Remove @text filter', array('@text' => $variables['text'])) . '</span>';\n $variables['options']['html'] = TRUE;\n $variables['text'] = '(-) ' . $accessible_link_text;\n return theme_link($variables) . $suffix;\n}", "title": "" }, { "docid": "c0e04c0bb9201efc4141c39da4b53c1f", "score": "0.38450813", "text": "function cptui_register_my_cpts_tenant_portal() {\n\n\t$labels = array(\n\t\t\"name\" => __( \"Tenant Portal\", \"\" ),\n\t\t\"singular_name\" => __( \"Tenant Portal\", \"\" ),\n\t);\n\n\t$args = array(\n\t\t\"label\" => __( \"Tenant Portal\", \"\" ),\n\t\t\"labels\" => $labels,\n\t\t\"description\" => \"\",\n\t\t\"public\" => true,\n\t\t\"publicly_queryable\" => true,\n\t\t\"show_ui\" => true,\n\t\t\"delete_with_user\" => false,\n\t\t\"show_in_rest\" => false,\n\t\t\"rest_base\" => \"\",\n\t\t\"rest_controller_class\" => \"WP_REST_Posts_Controller\",\n\t\t\"has_archive\" => true,\n\t\t\"show_in_menu\" => true,\n\t\t\"show_in_nav_menus\" => true,\n\t\t\"exclude_from_search\" => false,\n\t\t\"capability_type\" => \"post\",\n\t\t\"map_meta_cap\" => true,\n\t\t\"hierarchical\" => false,\n\t\t\"rewrite\" => array( \"slug\" => \"tenant_portal\", \"with_front\" => true ),\n\t\t\"query_var\" => true,\n\t\t\"supports\" => array( \"title\", \"editor\", \"thumbnail\" ),\n\t);\n\n\tregister_post_type( \"tenant_portal\", $args );\n}", "title": "" }, { "docid": "0ebe0dafb548c53dd21c565e6b5c74dc", "score": "0.38443455", "text": "public function addAggregations(\\obiba\\mica\\DatasetVariableAggregationDto $value){\n return $this->_add(1, $value);\n }", "title": "" }, { "docid": "bda6db3211eed9d19515ae2550e81b1a", "score": "0.38421863", "text": "public function build(FacetsSummaryInterface $facets_summary) {\n // Let the facet_manager build the facets.\n $facetsource_id = $facets_summary->getFacetSourceId();\n\n /** @var \\Drupal\\facets\\Entity\\Facet[] $facets */\n $facets = $this->facetManager->getFacetsByFacetSourceId($facetsource_id);\n // Get the current results from the facets and let all processors that\n // trigger on the build step do their build processing.\n // @see \\Drupal\\facets\\Processor\\BuildProcessorInterface.\n // @see \\Drupal\\facets\\Processor\\SortProcessorInterface.\n $this->facetManager->updateResults($facetsource_id);\n\n $facets_config = $facets_summary->getFacets();\n // Exclude facets which were not selected for this summary.\n $facets = array_filter($facets,\n function ($item) use ($facets_config) {\n return (isset($facets_config[$item->id()]));\n }\n );\n\n foreach ($facets as $facet) {\n // Do not build the facet in summary if facet is not rendered.\n if (!$facet->getActiveItems()) {\n continue;\n }\n // For clarity, process facets is called each build.\n // The first facet therefor will trigger the processing. Note that\n // processing is done only once, so repeatedly calling this method will\n // not trigger the processing more than once.\n $this->facetManager->build($facet);\n }\n\n $build = [\n '#theme' => 'facets_summary_item_list',\n '#facet_summary_id' => $facets_summary->id(),\n '#attributes' => [\n 'data-drupal-facets-summary-id' => $facets_summary->id(),\n ],\n ];\n\n $results = [];\n foreach ($facets as $facet) {\n $show_count = $facets_config[$facet->id()]['show_count'];\n $results = array_merge($results, $this->buildResultTree($show_count, $facet->getResults()));\n }\n $build['#items'] = $results;\n\n // Allow our Facets Summary processors to alter the build array in a\n // configured order.\n foreach ($facets_summary->getProcessorsByStage(ProcessorInterface::STAGE_BUILD) as $processor) {\n if (!$processor instanceof BuildProcessorInterface) {\n throw new InvalidProcessorException(\"The processor {$processor->getPluginDefinition()['id']} has a build definition but doesn't implement the required BuildProcessorInterface interface\");\n }\n $build = $processor->build($facets_summary, $build, $facets);\n }\n\n return $build;\n }", "title": "" }, { "docid": "4fc822b80c34b7ace15b856048adfedf", "score": "0.3838333", "text": "function hs_create_apartment() {\r\n $labels = array(\r\n 'name' => 'Apartments',\r\n 'singular_name' => 'Apartment',\r\n 'add_new' => 'Add New Apartment',\r\n 'add_new_item' => 'Add New Apartment',\r\n 'edit_item' => 'Edit Apartment',\r\n 'new_item' => 'New Apartment',\r\n 'all_items' => 'All Apartments',\r\n 'view_item' => 'View Apartment',\r\n 'search_items' => 'Search Apartments',\r\n 'not_found' => 'No Apartments found',\r\n 'not_found_in_trash' => 'No Apartments found in Trash', \r\n 'parent_item_colon' => '',\r\n 'menu_name' => 'Apartments'\r\n );\r\n $args = array(\r\n 'labels' => $labels,\r\n 'public' => true,\r\n 'publicly_queryable' => true,\r\n 'show_ui' => true, \r\n 'show_in_menu' => true, \r\n 'query_var' => true,\r\n 'rewrite' => array( 'slug' => 'leilighets' ),\r\n 'capability_type' => 'post',\r\n 'has_archive' => FALSE, \r\n 'hierarchical' => false,\r\n 'menu_position' => null,\r\n 'supports' => array( 'title', 'thumbnail', 'page-attributes')\r\n ); \r\n register_post_type( 'apartment', $args );\r\n}", "title": "" }, { "docid": "5ca8a7bb702cba4d39663780117c80b1", "score": "0.3822659", "text": "function archival_category_root($collection_id, WP_Term $category_root) {\n $parent_taxonomy_category_id = get_register_id('socialdb_taxonomy', 'socialdb_category_type');\n $category_subject_root_id = create_register(__('Classification plan of', 'tainacan').' '.get_post($collection_id)->post_title, 'socialdb_category_type', array('parent' => $parent_taxonomy_category_id, 'slug' => 'subject_category_collection_'.$collection_id));\n $category_subject_root_id = get_term_by('id', $category_subject_root_id['term_id'], 'socialdb_category_type');\n add_term_meta($category_subject_root_id->term_id, 'socialdb_category_owner', get_current_user_id());\n //adiciono a categoria root como faceta da colecao\n update_post_meta($collection_id, 'socialdb_collection_facets', $category_subject_root_id->term_id);\n update_post_meta($collection_id, 'socialdb_collection_facet_' . $category_subject_root_id->term_id . '_color', 'color1');\n update_post_meta($collection_id, 'socialdb_collection_facet_' . $category_subject_root_id->term_id . '_widget', 'tree');\n update_post_meta($collection_id, 'socialdb_collection_facet_' . $category_subject_root_id->term_id . '_priority', '1');\n create_initial_property($category_subject_root_id->term_id, $collection_id,$category_root);\n}", "title": "" }, { "docid": "5a8cbfe9c095471c3bea1ed4400bcd2d", "score": "0.38199508", "text": "private function _createSearcherForScope($target) {\r\n $class = 'PM\\Search\\Filter\\Target\\\\' . ucfirst($this->_utils->toCamelCase($target));\r\n $targetInstance = $this->_provider->prototype($class); /* @var $targetInstance Filter\\Target\\AbstractTarget */\r\n\r\n $container = $this->_provider->prototype('PM\\Search\\Filter\\Container'); /* @var $container Filter\\Container */\r\n $container->setTarget($targetInstance);\r\n\r\n return $container;\r\n }", "title": "" }, { "docid": "2acef8044c39dcdefbe9ed9066f32033", "score": "0.38177228", "text": "public function getFacets()\n {\n return [];\n }", "title": "" }, { "docid": "498250ab3ce4e1377cb03b7cf16f4da9", "score": "0.38153523", "text": "function set_up_supplier_tabs($tab_active='o_tab',$supplier_id=''){\n\t\t\t\n\t\t$tabs['o_tab'] = array('class'=>'','tab_id'=>'tab_1','text'=>'Profile',\n\t\t\t\t\t\t'content_class'=>'tab-pane');\n\n\t\tif($supplier_id!='' && $supplier_id > 0){\n\n\t\t\t$tabs['t_tab'] = array('class'=>'','tab_id'=>'tab_6','text'=>'Trip',\n\t\t\t\t\t\t'content_class'=>'tab-pane');\t\n\n\t\t\t$tabs['p_tab'] = array('class'=>'','tab_id'=>'tab_3','text'=>'Payments',\n\t\t\t\t\t\t'content_class'=>'tab-pane');\n\t\t\t$tabs['a_tab'] = array('class'=>'','tab_id'=>'tab_4','text'=>'Accounts',\n\t\t\t\t\t\t'content_class'=>'tab-pane');\n\t\t}\n\n\t\tif (array_key_exists($tab_active, $tabs)) {\n\t\t\t$tabs[$tab_active]['class'] = 'active';\n\t\t\t$tabs[$tab_active]['content_class'] = 'tab-pane active';\n\t\t}else{\n\t\t\t$tabs['o_tab']['class'] = 'active';\n\t\t\t$tabs['o_tab']['content_class'] = 'tab-pane active';\n\t\t}\n\n\n\t\treturn $tabs;\n\t}", "title": "" }, { "docid": "1f4a0c9d64e2b0d0f4af5fb63b6f375f", "score": "0.38151926", "text": "public function facet_set($facet, $value) {\n if ($facet != \"\" && $value != \"\") {\n $this->facets[$facet] = $value;\n }\n }", "title": "" }, { "docid": "b8a2b3896a618b2eb9b8c14e8b1c5a74", "score": "0.381473", "text": "public function facetSearch()\n {\n return $this->_index->select(array('q' => \"{$this->_argv[1]}:{$this->_argv[2]}\"));\n }", "title": "" }, { "docid": "fb2bb4caeca6873153f329c963b3cbf5", "score": "0.3809417", "text": "function cre_energy_metabox_tab($property_metabox_tabs)\n{\n\tif (is_array($property_metabox_tabs)) {\n\t\t$property_metabox_tabs['energy-performance'] = array(\n\t\t\t'label' => esc_html__('Energy Performance', 'crucial-real-estate'),\n\t\t\t'icon' => 'dashicons-performance',\n\t\t);\n\t}\n\n\treturn $property_metabox_tabs;\n}", "title": "" }, { "docid": "5d9df661abc6ccd379afaafe713168e5", "score": "0.38033476", "text": "function wp_facet_filter_add_settings_section() {\n add_settings_section(\n 'wp_facet_filters_target',\n 'WP Facet Filter Options',\n 'wp_facet_filter_add_settings_section_markup_callback',\n 'wp_facet_filter_page'\n );\n}", "title": "" }, { "docid": "34e70f73ceac52f2f1a44fe0e5352667", "score": "0.3803085", "text": "abstract public function search_engine_client_add_filter_term( $filter_name, $field_name, $facet_is_or, $field_value, $filter_tag = '' );", "title": "" }, { "docid": "3553af76b63b989e8edc8f164bd37ca7", "score": "0.38019603", "text": "public function advanced_filters() {\r\r\n\t\t\tglobal $wpdb;\r\r\n\r\r\n\t\t\t$sql = \"SELECT * FROM {$wpdb->prefix}js_grade_level WHERE is_active = 1 ORDER BY level_order ASC\";\r\r\n\t\t\t$levels = $wpdb->get_results( $sql );\r\r\n\t\t\t$views = array();\r\r\n\r\r\n\t\t\tif ( !empty( $_GET['level'] ) ) {\r\r\n\t\t\t\t$selected_level = sanitize_text_field( $_GET['level'] );\r\r\n\t\t\t} else {\r\r\n\t\t\t\t$selected_level = $levels[0]->level_id;\r\r\n\t\t\t}\r\r\n\r\r\n\t\t\tif ( !empty($levels) ) {\r\r\n\t\t\t\tforeach ( $levels as $level ) {\r\r\n\t\t\t\t\t$views[$level->level_id] =\r\r\n\t\t\t\t\t\tsprintf( '<option value=\"%s\"%s>%s</option>', \r\r\n\t\t\t\t\t\t\t\t $level->level_id, \r\r\n\t\t\t\t\t\t\t\t $selected_level === $level->level_id ? ' selected' : '', \r\r\n\t\t\t\t\t\t\t\t __( $level->level_name, 'js_topic_manager' ) );\r\r\n\t\t\t\t}\r\r\n\t\t\t}\r\r\n\t\t\t?>\r\r\n\r\r\n\t\t\t<p class=\"filter-title\">Education Level:</p>\r\r\n\t\t\t<select name=\"subject_level\">\r\r\n\t\t\t\t<?php echo join( '', $views ); ?>\r\r\n\t\t\t</select>\r\r\n\r\r\n\t\t\t<?php\r\r\n\t\t}", "title": "" }, { "docid": "5a3894eb31e78ace6f56bbd2eead15e1", "score": "0.38016576", "text": "public function add_facet_fields(\n\t\t$facets_parameters\n\t) {\n\n\t\t// Field names\n\t\t$field_names = isset( $facets_parameters[ self::PARAMETER_FACET_FIELD_NAMES ] )\n\t\t\t? $facets_parameters[ self::PARAMETER_FACET_FIELD_NAMES ]\n\t\t\t: [];\n\n\t\t// Limit\n\t\t$limit = isset( $facets_parameters[ self::PARAMETER_FACET_LIMIT ] )\n\t\t\t? $facets_parameters[ self::PARAMETER_FACET_LIMIT ]\n\t\t\t: self::DEFAULT_MAX_NB_ITEMS_BY_FACET;\n\n\t\t// Min count\n\t\t$min_count = isset( $facets_parameters[ self::PARAMETER_FACET_MIN_COUNT ] )\n\t\t\t? $facets_parameters[ self::PARAMETER_FACET_MIN_COUNT ]\n\t\t\t: self::DEFAULT_MIN_COUNT_BY_FACET;\n\n\n\t\tif ( count( $field_names ) ) {\n\n\n\t\t\tforeach ( $field_names as $facet_with_str_extension ) {\n\n\t\t\t\t$facet = WpSolrSchema::replace_field_name_extension( $facet_with_str_extension );\n\n\t\t\t\t$fact = $this->get_facet_hierarchy_name( WpSolrSchema::_FIELD_NAME_FLAT_HIERARCHY, $facet );\n\n\t\t\t\t// Only display facets that contain data\n\t\t\t\t$this->search_engine_client_set_facets_min_count( $fact, $min_count );\n\n\t\t\t\tswitch ( $this->get_facet_type( $facet_with_str_extension ) ) {\n\n\t\t\t\t\tcase WPSOLR_Option::OPTION_FACET_FACETS_TYPE_RANGE:\n\t\t\t\t\t\t$this->search_engine_client_add_facet_range_regular( $fact, $fact,\n\t\t\t\t\t\t\tWPSOLR_Service_Container::getOption()->get_facets_range_regular_start( $facet_with_str_extension ),\n\t\t\t\t\t\t\tWPSOLR_Service_Container::getOption()->get_facets_range_regular_end( $facet_with_str_extension ),\n\t\t\t\t\t\t\tWPSOLR_Service_Container::getOption()->get_facets_range_regular_gap( $facet_with_str_extension )\n\t\t\t\t\t\t);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase WPSOLR_Option::OPTION_FACET_FACETS_TYPE_MIN_MAX:\n\t\t\t\t\t\t$this->search_engine_client_add_facet_stats( $fact, $facet_with_str_extension );\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// Add the facet\n\t\t\t\t\t\t$this->search_engine_client_add_facet_field( $fact, $fact );\n\n\t\t\t\t\t\tif ( ! empty( $limit ) ) {\n\n\t\t\t\t\t\t\t$this->search_engine_client_set_facets_limit( $fact, $limit );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( $this->is_facet_sorted_alphabetically( $facet_with_str_extension ) ) {\n\n\t\t\t\t\t\t\t$this->search_engine_client_set_facet_sort_alphabetical( $fact );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\n\t\t\t\tif ( $this->is_facet_exclusion( $facet_with_str_extension ) || ( WPSOLR_Option::OPTION_FACET_FACETS_TYPE_MIN_MAX === $this->get_facet_type( $facet_with_str_extension ) ) ) {\n\t\t\t\t\t// Exclude the tag corresponding to this facet. The tag was set on filter query.\n\t\t\t\t\t$this->search_engine_client_set_facet_excludes( $fact, $facet_with_str_extension );\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "f8bb1aeab21b141f295289b65eb1e3d0", "score": "0.3797132", "text": "function create_instructors() {\n $post_types = get_post_types();\n //if dt_team is already defined then return without doing anything\n if(in_array(\"dt_team\", $post_types)) {\n return;\n }\n\n register_post_type('dt_team', array(\n 'labels' => array(\n 'name' => __('Instructors'),\n 'singular_name' => __('Instructor'),\n 'menu_name' => _x('Instructors', 'admin menu', 'Instructor'),\n 'name_admin_bar' => _x('Instructor', 'add new on admin bar', 'Instructor'),\n 'add_new' => _x('Add New Instructor', 'Instructor', 'Instructor'),\n 'add_new_item' => __('Add New Instructor', 'Instructor'),\n 'new_item' => __('New Instructor', 'Instructor'),\n 'edit_item' => __('Edit Instructor', 'Instructor'),\n 'view_item' => __('View Instructor', 'Instructor'),\n 'all_items' => __('All Instructor', 'Instructor'),\n 'search_items' => __('Search Instructor', 'Instructor'),\n 'parent_item_colon' => __('Parent Instructor:', 'Instructor'),\n 'not_found' => __('No Instructor found.', 'Instructor'),\n 'not_found_in_trash' => __('No Instructor found in Trash.', 'Instructor')\n ),\n 'public' => true,\n 'has_archive' => true,\n 'supports' => array('title', 'editor'),\n 'register_meta_box_cb' => 'add_instructor_metaboxes'\n )\n );\n}", "title": "" }, { "docid": "c05963483a0737f859a3b577e7aa4538", "score": "0.37947813", "text": "function wpzoom_create_post_type_portfolios() \n{\n\t$labels = array(\n\t\t'name' => __( 'Portfolio'),\n\t\t'singular_name' => __( 'Portfolio' ),\n\t\t'rewrite' => array('slug' => __( 'portfolios' )),\n\t\t'add_new' => _x('Add New', 'slide'),\n\t\t'add_new_item' => __('Add New Portfolio'),\n\t\t'edit_item' => __('Edit Portfolio'),\n\t\t'new_item' => __('New Portfolio'),\n\t\t'view_item' => __('View Portfolio'),\n\t\t'search_items' => __('Search Portfolio'),\n\t\t'not_found' => __('No portfolios found'),\n\t\t'not_found_in_trash' => __('No portfolios found in Trash'), \n\t\t'parent_item_colon' => ''\n\t );\n\t \n\t $args = array(\n\t\t'labels' => $labels,\n\t\t'public' => true,\n\t\t'publicly_queryable' => true,\n\t\t'show_ui' => true, \n\t\t'query_var' => true,\n\t\t'rewrite' => true,\n\t\t'capability_type' => 'post',\n\t\t'hierarchical' => false,\n\t\t'rewrite' => array(\t\"slug\" => \"project\" ), \n\t\t'menu_position' => null,\n\t\t'show_in_nav_menus'\t=> true ,\n\t\t'supports' => array('title','editor','thumbnail'),\n\t\t'taxonomies' => array( 'skill-type')\n\t ); \n\t \n\t register_post_type(__( 'portfolio' ),$args);\n}", "title": "" }, { "docid": "f8385d1eb27f678d696dc4a011b97cdf", "score": "0.37869364", "text": "public function newCollection()\n {\n $this->getContainer()->activeCollection = new ActiveCollection();\n }", "title": "" }, { "docid": "cf4ae0d930a9fd302fd79cb562a7a116", "score": "0.37860987", "text": "function generate_facetboard($INIT_SRC_REF_TABS) {\n\tglobal $RODINIMAGES, $RODINIMAGESURL;\n\tglobal $COLOR_BROADER, $COLOR_NARROWER, $COLOR_RELATED;\n\tglobal $TITLESTYLE, $FONTPREFS_TD, $FONTPREFS_TD_QUERY;\n\t\n\tglobal $RODINU;\n\tglobal $RODINSEGMENT;\n\tglobal $BROWSER;\n\tglobal $SRCREFIFRAMENAME;\n\tglobal $RODIN_LOGO_YELLOW;\n\tglobal $IMG_REFINING_DONE;\n\tglobal $RODINUTILITIES_GEN_URL;\n\tglobal $FACETBOARDMINWIDTH;\n\tglobal $FACETBOARDMINWIDTH_PX;\n\tglobal $URL_ICONONTO_ON_OFF, $URL_ICONONTO_OFF_ON;\n\tglobal $nosrc;\n \t\n\t$DEBUG=0;\n\t$SRC_ACTION = '';\n\t$USER_ID = $_SESSION['user_id'];\n\n\tif (!$nosrc) {\n\t\t$SRC_ACTION = \"fri_rodin_repeat_search_context(bc_get_terms(),\\$p)\";\t\n\t}\n\t\n\t$ontoFacetsLaunchSearchTitle = lg(\"lblOntoExploreFacets\");\n\t$ontoFacetsSearchFieldTitle = lg(\"titleOntoFacetsSearch\");\n\t//FRI - changed LoggerResponder.php?action=10 --> action=25\n\t$FACETBOARD = <<<EOF\n\t\t<div id=\"facet-nodelabel\" class=\"facet-nodelabel boardConfiguration\">\n\t\t\t\t<tr>\n\t\t\t\t\t<td colspan=2 width='95%'>\n\t\t\t\t\t\t<table cellspacing=0 cellpading=0>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td width=\"228px\">\n\t\t\t\t\t\t\t\t\t<input id=\"ontofacet_center\" type=\"text\" title=\"$ontoFacetsSearchFieldTitle\"\n style=\"width:100%\"\n\t\t\t\t\t\t\t\t\t\tonkeyup=\"if (event.keyCode==13) { document.getElementById('ontofacet_center_search').click(); }\" />\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t<td align=right>\n\t\t\t\t\t\t\t\t\t<img id=\"ontofacet_center_wait\" style=\"display: none;\" src=\"$RODINIMAGESURL/magnifier-onto-wait.png\" title=\"Undefined\" />\n\t\t\t\t\t\t\t\t\t<img id=\"ontofacet_center_search\" style=\"cursor:pointer;\" src=\"$RODINIMAGESURL/magnifier-onto.png\" title=\"$ontoFacetsLaunchSearchTitle\"\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tonclick=\"var text=document.getElementById('ontofacet_center').value;\n\t\t\t\t\t\t\t\t\t\t\t\\$p.ajax.call('../../app/tests/LoggerResponder.php?action=25&query=' + text + '&from=field', {'type':'load'});\n\t\t\t\t\t\t\t\t\t\t\tdetectLanguageInOntoFacets_launchOntoSearch(text, 0, 0, 0, 0, 0, 0,\\$p);\" />\n\t\t\t\t\t\t\t\t\t<input id=\"ontofacet_center_language\" type=\"hidden\" value=\"un\" />\n\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>\n\t\t</div>\n\t\t<div id=\"facetboard-container\" class=\"facetboard-container\">\nEOF;\n\t\n\tif (count($INIT_SRC_REF_TABS)) {\n\t\tforeach($INIT_SRC_REF_TABS as $src_service_id=>$ARR) {\n\t\t\tlist($SRCNAME,$TEMPORARILY_USED) = $ARR;\n\t\t\t\n\t\t\tif ($DEBUG) print \"<br>$src_service_id TEMPORARILY_USED $TEMPORARILY_USED\";\n\t\t\t$TITLE_ALL_ON_OFF = \"Click to show/hide facets from $SRCNAME\";\n\t\t\t$TITLE_OFF_ON = \"Click to (re)activate ontological facets from $SRCNAME\";\n\t\t\t$TITLE_ON_OFF = \"Click to temporarily deactivate facets from $SRCNAME\";\n\t\t\t\n\t\t\tif ($TEMPORARILY_USED)\n\t\t\t{\n\t\t\t\t$URL_ICON=$URL_ICONONTO_ON_OFF;\n\t\t\t\t$TITLE=$TITLE_ON_OFF;\n\t\t\t\t$TEMPORARILY_USED_CHECKED = \"checked=false\";\n\t\t\t\t$TEMPORARILY_SHOULD_CHECKED = \"shouldchecked=true\";\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$URL_ICON=$URL_ICONONTO_OFF_ON;\n\t\t\t\t$TITLE=$TITLE_OFF_ON;\n\t\t\t\t$TEMPORARILY_USED_CHECKED = 'checked=true';\n\t\t\t\t$TEMPORARILY_SHOULD_CHECKED = \"shouldchecked=false\";\n\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$temporary_onoff= \"<a href='#'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tid='tyn_$src_service_id' \n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle='$TITLE' \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tstyle='visibility:hidden'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$TEMPORARILY_USED_CHECKED\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$TEMPORARILY_SHOULD_CHECKED\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonsrc_on_off='$URL_ICONONTO_ON_OFF'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ticonsrc_off_on='$URL_ICONONTO_OFF_ON'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle_on_off='$TITLE_ON_OFF'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitle_off_on='$TITLE_OFF_ON'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrcname='$SRCNAME'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonclick=fb_toggleonto_temponoff(this,$src_service_id,false) \n\t\t\t\t\t\t\t\t\t\t\t\t\t><img id='iyn_$src_service_id' \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsrc='$URL_ICON' width=16 height=16 ></a>\"\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$broaderSegment \t= generate_ontosegment($src_service_id,$SRCNAME,'broader');\n\t\t\t$narrowerSegment \t= generate_ontosegment($src_service_id,$SRCNAME,'narrower');\n\t\t\t$relatedSegment \t= generate_ontosegment($src_service_id,$SRCNAME,'related');\n\t\t\t$FBTERMWIDTH=$FACETBOARDMINWIDTH*0.9;\n\n $SRCNAME_LABLE=lg('lbl'.$SRCNAME);\n $SRCNAME_TOOLTIP=lg('ttp'.$SRCNAME);\n\n\t\t\t$FACETBOARD.=<<<EOF\n\t \t\t<tr>\n\t \t\t\t<td align=left valign=top class='onoff'\n\t \t\t\t\t\tonmouseover=\"document.getElementById('tyn_$src_service_id').style.visibility ='visible'\" \n\t\t\t\t\t\tonmouseout=\"document.getElementById('tyn_$src_service_id').style.visibility ='hidden'\"\n\t\t\t\t\t\tclass='ontotr'\n\t \t\t\t>$temporary_onoff</td>\n\t \t\t\t<td>\n\t\t\t\t\t<div id=\"fb_itemcontent_v_{$src_service_id}\" style=\"padding-right:2px; padding-top:2px; display:none;\">\n\t\t\t\t\t\t<table id=\"fb_table_v_{$src_service_id}\" cellpadding=\"0\" cellspacing=\"0\" border=0 width=\"100%\" class=\"fb-group-table\">\n\t\t\t\t\t\t\t<tr style=\"cursor:pointer;font-style:italic;\" class=\"$CLASS_ITEMEXPANDER1\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<td class=\"facetcontrol-td\" valign=\"center\" style=\"font-style:italic;white-space:nowrap\" />\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t</table> \n\t\t\t\t\t</div>\n\t\t\t\t\t<table cellpadding=\"0\" cellspacing=\"0\" border=0 style=\"width: 100%;\">\n\t\t\t\t\t\t<tr class='ontotr'\n\t\t\t\t\t\t\t\tstyle=\"cursor: pointer;\"\n\t\t\t\t\t\t\t\t\tonmouseover=\"document.getElementById('tyn_$src_service_id').style.visibility ='visible'\" \n\t\t\t\t\t\t\t\t\tonmouseout=\"document.getElementById('tyn_$src_service_id').style.visibility ='hidden'\"\n\t\t\t\t\t\t\t\t\ttitle='$SRCNAME_TOOLTIP'\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<td id=\"fb_itemname_expander_$src_service_id\" class=\"fb-expander-uninit\" alt=\"Expand\" valign=\"center\"\n\t\t\t\t\t\t\t\tonclick=\"\\$p.ajax.call('../../app/tests/LoggerResponder.php?action=11&name={$SRCNAME}',{'type':'load'});\n\t\t\t\t \t\t\t\t\t\t\tfb_toggle_allItemContent('{$src_service_id}');\"\n\t\t\t\t \t\t\t\ttitle=\"$TITLE_ALL_ON_OFF\"\n\t\t\t\t\t\t />\n\t\t\t\t\t\t\t<td id=\"fb_itemname_expander2_$src_service_id\" align=\"left\" \n\t\t\t\t\t\t\t\t\tvalign=\"center\" \n\t\t\t\t\t\t\t\t\tclass=\"facetcontrol-td-uninit\"\n\t\t\t\t\t\t\t\t\ttitle=\"$TITLE_ALL_ON_OFF\"\n\t\t\t\t\t\t\t\t\tonclick=\"document.getElementById('fb_itemname_expander_$src_service_id').onclick();\"\n\t\t\t\t\t\t\t>$SRCNAME_LABLE</td>\n\t\t\t\t\t\t\t<td id=\"fb_itemcount_$src_service_id\" class=\"facet-result-count\" />\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table> \n\t\t\t\t</div>\n\t\t\t\t<div id=\"fb_itemcontent_{$src_service_id}\" class=\"facetgroup-inactive\">\n\t\t\t\t\t$broaderSegment\n\t\t\t\t\t$narrowerSegment\n\t\t\t\t\t$relatedSegment\n\t\t\t\t</td>\n\t\t\t</tr>\nEOF;\n\t\t} // foreach\n\t}\n$FACETBOARD.=\"</div id='facetboard-container'>\";\n\nreturn $FACETBOARD;\n}", "title": "" }, { "docid": "4fc6e992195c4ef61fffd21cf47a4f6d", "score": "0.37819555", "text": "public function hasGranularity($g) {\n return in_array($g, $this->granularity);\n }", "title": "" }, { "docid": "266ddec087fd06817e312755e96635a4", "score": "0.37819543", "text": "public function scopeActive($query);", "title": "" }, { "docid": "998052a1bc17fa366e35bcc7430cf886", "score": "0.37810642", "text": "function cne_ac_groups_front_template_part() {\r\n $located = bp_groups_get_front_template();\r\n\r\n if ( false !== $located ) {\r\n $slug = str_replace( '.php', '', $located );\r\n\r\n do_action( 'get_template_part_' . $slug, $slug, false );\r\n\r\n load_template( $located, true );\r\n\r\n } else if ( bp_is_active( 'members' ) ) {\r\n cne_ac_groups_members_template_part();\r\n }\r\n\r\n return $located;\r\n}", "title": "" }, { "docid": "2c886037ec5bbacb5b09d0342600fd10", "score": "0.37796208", "text": "public function testGetActiveFacetKeys()\n {\n\n $field1 = $this->_field('field1');\n $field2 = $this->_field('field2');\n $field3 = $this->_field('field3');\n\n $field1->is_facet = true;\n $field2->is_facet = true;\n $field3->is_facet = false;\n\n $field1->save();\n $field2->save();\n $field3->save();\n\n $names = $this->fieldTable->getActiveFacetKeys();\n\n // Should contain the names of the active facets.\n $this->assertEquals(array('field1', 'field2'), $names);\n\n }", "title": "" }, { "docid": "8c5e9b1f331d427976e3798f38bb00ef", "score": "0.3775164", "text": "public function create()\n {\n $aggregate_root = $this->aggregate_root_type->createEntity();\n $this->startTracking($aggregate_root);\n\n return $aggregate_root;\n }", "title": "" }, { "docid": "525778d736e2562b875752b6701fd5d1", "score": "0.3770572", "text": "function woo_garant_product_tab($tabs)\n{\n\tif(get_option(\"check-garant\") == 'checked'){\n\t\t$title = get_option(\"tabs-check-garant-name\");\n\t\t$priority = get_option(\"tabs-check-garant-number\");\n\n\t\t$tabs['garant_tab'] = array(\n\t\t\t'title' => __( $title, 'woocommerce' ),\n\t\t\t'priority' => $priority,\n\t\t\t'callback' => 'woo_garant_product_tab_content',\n\t\t);\n\t\treturn $tabs;\n\t}\n}", "title": "" }, { "docid": "e19fa1ed7a1d1f037912a394e96ccaba", "score": "0.37698165", "text": "public function create(Horde_Injector $injector)\n {\n return empty($GLOBALS['conf']['tags']['enabled'])\n ? new Horde_Core_Tagger_Null()\n : new Turba_Tagger();\n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "3fd5659f7e9f6f9e082ac2b0be238400", "score": "0.0", "text": "public function update(Request $request, Portfolio $portfolio)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'type' => 'required',\n 'image' => 'image|mimes:jpeg,png,jpg|max:10240',\n ]);\n\n $params = $request->all();\n\n //Add The Image\n if(!empty($request->file('image'))){\n $params['image'] = save_image( $request->file('image'), 'portfolio');\n }\n\n try {\n $portfolio->update($params);\n } catch (Exception $e) {\n return redirect()->back()->with('error_message','Sorry, Unable to Update Portfolio.');\n } \n\n\n\n return redirect()->back()->with('success_message','Portfolio Updated successfully!!');\n }", "title": "" } ]
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7658553", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "33eafa1267660ce479c92ad656dea136", "score": "0.7497171", "text": "function updateResource(){\n\t\t$resource = $this->getResource()->update();\n\t}", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3edf989e06553ae1b0e42f6e1554b8cc", "score": "0.6981674", "text": "public function update(Request $request, resource $resource)\n {\n //\n }", "title": "" }, { "docid": "79163632c1ee775bbfdb37df0ed49f7a", "score": "0.69713145", "text": "public function update($resource, $entity, $id);", "title": "" }, { "docid": "abd2d9691e5bed830d5a50ddc78e9666", "score": "0.67193717", "text": "protected function updateResource(): void\n {\n /* Set the controller resource name. */\n $this->name = $this->getName();\n\n /* Get the ability map */\n $map = $this->resourceAbilityMap();\n\n /* Store the resource permissions on DB */\n $this->registerPermissions($map);\n\n /* Store the resource module on DB */\n $this->updateModule($this->name, $map);\n\n $this->updateSettings();\n }", "title": "" }, { "docid": "872fee47b4f9bc0a0da99279df7e8203", "score": "0.6609197", "text": "protected function update($resource){\n $entity = $this->dataService->update($resource);\n\n return $entity;\n }", "title": "" }, { "docid": "2941dd64817aec2862ad3945616aabfa", "score": "0.65418714", "text": "public function update(ResourcesRequest $request, Resource $resource) {\n $request->validated();\n $resource->fill($request->all())->save();\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated!');\n }", "title": "" }, { "docid": "988b9db60f871096839ee3c5b440e154", "score": "0.6525437", "text": "public function update(Request $request, Resource $resource)\n {\n $this->allowedAdminAction();\n \n $rules=[\n 'name' =>'string|min:2',\n 'description' =>'string|min:2', \n 'type' =>'string|min:2',\n ];\n $this->validate($request,$rules);\n if($request->has('name')){\n $resource->name=$request->name;\n }\n if($request->has('description')){\n $resource->description=$request->description;\n }\n if($request->has('type')){\n $resource->type=$request->type;\n }\n if(!$resource->isDirty()){\n return $this->errorResponse('Se debe especificar al menos un valor diferente para actualizar',422);\n }\n $resource->save();\n return $this->showOne($resource);\n }", "title": "" }, { "docid": "0a8ff6c637e4445b87c5b9716fa41192", "score": "0.6509508", "text": "public function update(SpecificateRequest $request, $id)\n {\n //\n $storage = Storage::findOrFail($id);\n $storage->update([\n 'storage' => $request->storage,\n ]);\n $storage->save();\n return redirect()->route('admin.specificate.storage.show', $storage->id);\n }", "title": "" }, { "docid": "645a8e4f0c0ac4fe3a6cff897cedd569", "score": "0.63936436", "text": "public function update(ResourceTypeInterface $resourceType);", "title": "" }, { "docid": "8ef8bfa47ef7d30297a02f132b09c19c", "score": "0.63837194", "text": "public function put(ApiResource $resource);", "title": "" }, { "docid": "cbcff9a7ae5b1d786f46919932ecccc1", "score": "0.62448", "text": "public function update(ResourceRequest $request, Resource $resource)\n {\n $resource->update($request->validated());\n $resource = new ResourceResource($resource);\n return $this->success('Resource Updated Successfully.', $resource);\n }", "title": "" }, { "docid": "f9c2b1bc5036ac76b3ea95ba3fbc61e8", "score": "0.6183787", "text": "public function update(Request $request, $id)\n {\n //更新操作\n $result = Storage::find($id);\n $result->storage_name = $request->storage_name;\n $result->storage_code = $request->storage_code;\n $result->storage_address = $request->storage_address;\n $result->show = $request->show;\n return $result->save()?'0':'1';\n }", "title": "" }, { "docid": "2cc3cab36436f9f12f05025ca511d3b4", "score": "0.6089192", "text": "public function updateResource(\n Resource\\ResourceType $resourceType,\n Resource\\ResourceData $resourceData\n );", "title": "" }, { "docid": "2b8a79adbe1af409adcb87f83c9169f6", "score": "0.59985447", "text": "function refresh($resource)\n {\n $this->getCache()->removeItem(get_class($resource) . $resource->getId());\n $resource->_load($resource->getId());\n }", "title": "" }, { "docid": "6822b36ec42f6f57430782d13125b59a", "score": "0.5963711", "text": "function update_resource($data, $id)\n\t{\n\t\t# Update the record \n\t\t$this -> db -> where('id', $id);\n\t\t$query = $this -> db -> update('gh_resource', $data);\n\t\treturn $query;\t\t\n\t}", "title": "" }, { "docid": "06f480d5aa69c73bbcf80fa0d7349713", "score": "0.59046763", "text": "public function updateStream($path, $resource, Config $config)\n\t{\n\t\t$this->delete($path);\n\t\treturn $this->writeStream($path, $resource, $config);\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "97b6e3224737bc7e7e679cae8ecba355", "score": "0.58905315", "text": "private function update()\n {\n $this->save();\n $this->load();\n }", "title": "" }, { "docid": "0cfc587ef3ef12b2896188cd18843c4e", "score": "0.5886223", "text": "public function update(Request $request)\n {\n $item = $this->storageRepository->find($request->id);\n if (empty($item)) {\n\n return response(null, 404);\n }\n $data = $request->all();\n $result = $item->fill($data)->save();\n\n //todo: подумать над кодом ошибки\n //Что должно вовзращать при ошибке сохранения\n if (!$result) {\n return response(null, 404);\n }\n else return response(null, 200);\n }", "title": "" }, { "docid": "50a2469e575685d948691687a87b3018", "score": "0.58826905", "text": "public function updateStream($path, $resource, Config $config)\n {\n // Todo\n }", "title": "" }, { "docid": "7fb849d8b455c566201a86dfb43be07f", "score": "0.5880392", "text": "public function updateStream ($path, $resource, Config $config)\n {\n return $this->upload ($path, $resource, true);\n }", "title": "" }, { "docid": "b23963f9ffa0d4dd76bb7372985b4dcd", "score": "0.5847549", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $response = $product->update([\n 'name' => $request->name,\n 'price' => $request->price,\n 'quantity' => $request->quantity,\n ]);\n\n if ($response && $request->file('avatar')) {\n if ($product->avatar && \\Storage::disk('local')->exists($product->avatar)) {\n \\Storage::delete($product->avatar);\n }\n $product->update([\n 'avatar' => $request->file('avatar')->store('public/avatar'),\n ]);\n }\n return redirect('product');\n }", "title": "" }, { "docid": "c69feb2ecc7f5393f2375122a9d3041c", "score": "0.58427507", "text": "protected function updateInformation()\n {\n parent::updateInformation();\n $this->_updateResource();\n }", "title": "" }, { "docid": "d69db4f2a0dc00982a1f889bd5e3e833", "score": "0.5830592", "text": "public function update($id)\n\t{\n\t\t$input = Input::all();\n\t\t$input['ip_address'] = Request::getClientIp();\n $validation = Validator::make($input, Resources::$rules);\n if ($validation->passes())\n {\n $resource = Resources::find($id);\n $resource->update($input);\n return Redirect::route('secureadmin.resources.index');\n }\n\t\treturn Redirect::route('secureadmin.resources.edit', $id)\n ->withInput()\n ->withErrors($validation)\n ->with('message', 'There were validation errors.');\n\t}", "title": "" }, { "docid": "320ba9944f4c2ee76e642401a7fc9dca", "score": "0.5824011", "text": "public function update(Request $request, $id)\n {\n $path=\"\";\n $slide=Slide::where('id',$id)->first();\n if($request->hasFile('image')){\n $path=$request->old_image;\n if($path!=null&&file_exists(\"/storage/$path\")){\n unlink(\"storage/\".$path);\n }$path=$request->file('image')->store('Slides');\n }else{\n $path=$request->old_image;\n }\n \n \n $slide->image=$path;\n $slide->save();\n return redirect()->route('listSlide');\n }", "title": "" }, { "docid": "ff532344ab178d688587c7da12273ec4", "score": "0.5812807", "text": "public function updateStream($path, $resource, \\League\\Flysystem\\Config $config)\n {\n $this->delete($path);\n\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "63ab5cefaa3e5c0b3403f60763069aa0", "score": "0.58026063", "text": "public function updateStream($path, $resource, Config $config)\n {\n $this->delete($path);\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "7f72d6356b07bb9a7b5f966d552003cb", "score": "0.5800651", "text": "public function update(Request $request, Product $product)\n {\n $product->product_name = $request->product_name;\n $product->category_id = $request->category_id;\n $product->subcategory_id = $request->subcategory_id;\n $product->price = $request->price;\n $product->description = $request->description;\n if($request->hasFile('image')){\n $product->image = $this->uploadImage($request);\n }\n $product->status = $request->status;\n $product->save();\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "379ccf05ba613aad88534619cf8d15fd", "score": "0.5760052", "text": "public function update(ThumbRequest $request, $id)\n {\n // $data = $request->all();\n // $data['thumb'] = $request->file('thumb')->store(\n // 'assets/thumb',\n // 'public'\n // );\n\n // $item = Thumb::findOrFail($id);\n // $item->update($data);\n\n // return redirect()->route('thumb.index');\n }", "title": "" }, { "docid": "f9f7b2aeec9eec47f3fa1be7250f25ee", "score": "0.57584673", "text": "public function update(Request $request, Product $product)\n {\n $this->validate(\n $request,\n [\n 'image' => 'required|image|mimes:jpeg,png,jpg,gif|max:3000',\n 'product_name' => 'required',\n 'unit_price' => 'required',\n 'quantity' => 'required',\n 'store' => 'required',\n\n ]\n );\n $image_name = time() . '_' . $request->store . '.' . $request->image->extension();\n\n $path = $request->file('image')->storeAs('images/prod_images', $image_name, 'public');\n $filePath = '/storage/'. $path;\n\n $product->update([\n 'image'=> $filePath ,\n 'product_name' => $request->input('product_name'),\n 'unit_price' => $request->input('unit_price'),\n 'quantity' => $request->input('quantity'),\n 'store' => $request->input('store'),\n 'category_id' => $request->input('category_id'),\n ]);\n\n return new ProductResource($product);\n }", "title": "" }, { "docid": "b7efc8833e2707d2c41ccbb075ab62b4", "score": "0.5752699", "text": "public function updateExisting();", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "58af7069ccd84811f59fa519443b29b7", "score": "0.5742609", "text": "public function update(Request $request, $id)\n {\n if($request->session()->exists('resources')) {\n $resources = $request->session()->get('resources');\n if(isset($resources[$id])) {\n $resource = $resources[$id];\n $idInput = $request->input('id');\n $nameInput = $request->input('name');\n $precioInput = $request-> input('precio');\n $resource['id'] = $idInput;\n $resource['name'] = $nameInput;\n $resource['precio'] = $precioInput;\n if(isset($resources[$idInput]) && $id != $idInput) {\n return back()->withInput();\n } \n unset($resources[$id]);\n $resources[$idInput] = $resource;\n \n $request->session()->put('resources', $resources);\n return redirect('resource');\n }\n }\n return back()->withInput();\n }", "title": "" }, { "docid": "b7966c379f90ae2061930029bb3777f6", "score": "0.57385576", "text": "public function update(Request $request, $resource, $id)\n {\n $command = $this->translator->getCommandFromResource($resource, 'update');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom($command, $request);\n\n $this->fireEventForResource($resource, 'update', $data);\n\n return $this->success($data);\n }", "title": "" }, { "docid": "6f20a1779e33227cfc4451ace6ab29af", "score": "0.57327956", "text": "public function edit(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "68611877d8742448025a8506ebac8d13", "score": "0.5723295", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "title": "" }, { "docid": "d6f7ceba30cd1fa1f963d331a704f50e", "score": "0.5719147", "text": "public function update(PostRequest $request, Storage $storage, Post $post)\n {\n // Update data\n $post->update($request->validated());\n\n // Process Image then add to post\n $this->saveFeaturedImage($request, $storage, $post);\n\n return new PostResource($post->load('owner'));\n }", "title": "" }, { "docid": "70bd037614d311211369ca22a9f666ad", "score": "0.570673", "text": "public function update(Request $r, $id) {\n\t\t$data = $this->validate(request(),\n\t\t\t[\n\t\t\t\t'' => 'required',\n\t\t\t\t\n\t\t\t\t'logo' => 'sometimes|nullable|'.v_images(),\n\t\t\t], [], [\n\t\t\t\t'' => trans('admin.'),\n\t\t\t\t\n\t\t\t\t'logo' => trans('admin.logo'),\n\t\t\t]);\n\t\tif (request()->hasFile('logo')) {\n\t\t\t$data['logo'] = up()->upload([\n\t\t\t\t\t'file' => 'logo',\n\t\t\t\t\t'path' => 'countries',\n\t\t\t\t\t'upload_type' => 'single',\n\t\t\t\t\t'delete_file' => Country::find($id)->logo,\n\t\t\t\t]);\n\t\t}\n\t\tProduct::where('id', $id)->update($data);\n\t\tsession()->flash('success', trans('admin.record_updated'));\n\t\treturn redirect(aurl('products'));\n\t}", "title": "" }, { "docid": "369171ed590b58ee7cf2cce5a7475211", "score": "0.5706556", "text": "public function updateStreamAsync($path, $resource, array $config = []);", "title": "" }, { "docid": "099b7bf4723843472514004918e11afd", "score": "0.56880456", "text": "public function updating($entity) {}", "title": "" }, { "docid": "223e71d8a07c8027ab5aeccbe0abe839", "score": "0.56874144", "text": "public function update(Request $request, $id)\n {\n\n try {\n // dd($request->all());\n $asset_name = Str::uuid() . '.' . $request->file('file_path')->getClientOriginalExtension();\n $user_provider_release = Release::where('id', $id)->first();\n\n if (Storage::disk('s3')->exists($user_provider_release->file)) {\n Storage::disk('s3')->delete($user_provider_release->file);\n }\n\n $user_provider_release->update([\n 'releases_name' => $request->input('releases_name'),\n 'file' => $request->file('file_path')->storeAs(\n $asset_name, #$fileName\n ['disk' => 's3']#$options\n ),\n // 'file' => Storage::disk('s3')->put($user_provider->provider_key . '/' . $asset_name, $request->file('file_path')),\n 'file_size' => $request->input('file_size'),\n ]);\n\n return $this->sendResponse($user_provider_release, trans('actions.created.success'));\n } catch (ValidationException $ex) {\n return $this->sendError([], $ex->getMessage());\n } catch (Exception $ex) {\n return $this->sendError([], $ex->getMessage());\n }\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "7dec9cec9d7076e6ea452e8d03c2611f", "score": "0.5659796", "text": "public function put($resource = '', array $params = [], array $options = [])\n\t{\n\t\treturn $this->api($resource, 'put', $params, $options);\n\t}", "title": "" }, { "docid": "c23871337ecfebeb8791f86a8676b910", "score": "0.5646621", "text": "public function updateStream($path, $resource, Config $config) {\n return $this->write($path, $resource, $config);\n }", "title": "" }, { "docid": "b547e1879af26ac25f46448832af936b", "score": "0.56463546", "text": "public function update_put()\n {\n $id = $this->get('id');\n \n $response = [\n 'status' => FALSE,\n 'message' => 'Invalid ID Found!',\n 'id' => $id,\n ];\n \n // Validate the id.\n if (! ctype_digit($id)) {\n // Invalid id, set the response and exit.\n $this->response($response, parent::HTTP_BAD_REQUEST);\n }\n\n $product = $this->_validate($this->put(), $err, TRUE);\n if (empty($product)) {\n // Invalid data, set the response and exit.\n $response['message'] = $err;\n $this->response($response, parent::HTTP_BAD_REQUEST);\n }\n\n $n = $this->product_model->update($product, $id);\n if ($n && ES_ENABLE) {\n $product = $this->product_model->get_product($id);\n $this->elasticsearch->add($this->es_type, $id, [$product]);\n }\n \n $response = [\n 'status' => $n,\n 'message' => $n ? 'Updated Successfully' : 'Product not found!',\n 'id' => $id,\n ];\n\n $this->set_response($response, parent::HTTP_ACCEPTED);\n }", "title": "" }, { "docid": "08d68444721a437dc3de2117d3a1e2e7", "score": "0.56340516", "text": "public function update(Request $request, $id)\n {\n DB::beginTransaction();\n try{\n $product = Product::findOrFail($id);\n $data = $request->all();\n if (!empty($data['image'])) {\n $this->unlink($product->image);\n $image_name = $this->uploadImage($data['image'], $request->title);\n $data['image_url'] = asset('products/' . $image_name);\n $data['image'] = $image_name;\n }\n $product->update($data);\n }catch (QueryException $e){\n DB::rollBack();\n return response()->json(['status'=>'error','message'=>$e->getMessage()]);\n }\n DB::commit();\n return response()->json(['status'=>'success','message'=>'Updated Successfully !']);\n }", "title": "" }, { "docid": "d4074248e0a1fab1615f9e277478c327", "score": "0.5631618", "text": "public function update(Request $request, $id)\n {\n// dd($request);\n $id = Product::find($id);\n $id->name = $request->name;\n if($request->image){\n \\Storage::disk('public')->delete($id->image);\n $id->image = $request->image->store('img', 'public');\n }\n $id->price = $request->price;\n\n $id->save();\n $id->sizes()->sync($request->size);\n session()->flash('update','تم تحديث القسم بنجاح');\n return redirect('products');\n\n }", "title": "" }, { "docid": "d60e4a66b566bb76d21dd14ffcb9658b", "score": "0.56287634", "text": "public function updatePhoto(UploadedFile $photo, $storage)\n {\n tap($this -> photoColumn(), function ($previous) use ($photo, $storage) {\n $this -> forceFill([\n $this -> photoColumn() => $photo -> storePublicly(\n $storage, ['disk' => $this -> photoDisk()]\n ),\n ]) -> save();\n\n if ($previous) {\n Storage::disk($this -> photoDisk()) -> delete($previous);\n }\n });\n }", "title": "" }, { "docid": "bbe4927402086e2ac59fa99f10f7099c", "score": "0.5621518", "text": "public function updateProduct($request, $product);", "title": "" }, { "docid": "11cbd279ad105d4859bedb4e70e50376", "score": "0.56115353", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'title' => 'required', \n 'price' => 'required|numeric|min:0', \n 'quantity' => 'required|numeric|min:1|',\n 'weight' => 'numeric|min:0',\n 'shipping_cost' => 'numeric|min:0',\n 'file' => 'mimes:jpeg,png,jpg,gif,svg|max:2048'\n ]);\n \n $data = $request->all();\n unset($data['_token']);\n $data['supplier_id'] = Auth::user()->id;\n $data['updated_at'] = date('Y-m-d H:i:s');\n\n if ($request->file()) {\n $col = DB::table('products')->select('file_path')->where('id', $id)->get();\n unlink($col[0]->file_path);\n\n $f = $data['file'];\n unset($data['file']);\n\n $origianlName = $f->getClientOriginalName();\n $fileName = time().'_'.$origianlName;\n $filePath = $request->file('file')->storeAs('uploads', $fileName, 'public');\n \n $data['file_name'] = $origianlName;\n $data['file_path'] = 'storage/' . $filePath;\n }\n \n DB::table('products')->where('id', $id)->update($data);\n return redirect('/supplier/product');\n }", "title": "" }, { "docid": "a53529e9cb9a8139e2baa6d25d9036a1", "score": "0.5605788", "text": "public function update_resources(Request $request, $id)\n {\n $gallery = Gallery::find($id);\n $gallery->fill($request->all());\n $gallery->save();\n $gallery->resources()->sync($request->resources);\n return redirect()->route('gallery.index');\n }", "title": "" }, { "docid": "51435ade6c2668fe55d1c7f77189c706", "score": "0.56055146", "text": "public function update($bucket, $object, \\Google\\Service\\Storage\\StorageObject $postBody, $optParams = array())\n {\n $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);\n $params = array_merge($params, $optParams);\n return $this->call('update', array($params), 'Google\\Service\\Storage\\StorageObject');\n }", "title": "" }, { "docid": "b7bac3ceb1b9b8584ebd61b08fa09788", "score": "0.5604227", "text": "public function putAction()\n {\n /** XXX **/\n\n $this->view->message = sprintf('Resource #%s Updated', $id);\n $this->_response->ok();\n }", "title": "" }, { "docid": "92a495162690e82a01f773b8e7ed8f2b", "score": "0.5602022", "text": "public function update(Request $request, $id)\n {\n\n $products = Products::find($id);\n $products->product_name = $request->product_name;\n $products->product_description = $request->product_description;\n $products->amount=$request->amount;\n $products->phone_number=$request->phone_number;\n\n //resize photo\n if($request->hasFile('product_image')){\n $avatar = $request->file('product_image');\n $filename = time() . '.' . $avatar->getClientOriginalExtension();\n $size = getimagesize($avatar);\n if ($size[0]>1280 && $size[1]>720){\n Image::make($avatar)->resize(1280,720)->save(public_path('photo/').$filename);\n }\n else{\n Image::make($avatar)->save(public_path('photo/').$filename);\n\n }\n $oldFilename = $products->product_image;\n //update the database\n $products->product_image=$filename;\n //Delete the old photo\n Storage::delete($oldFilename);\n\n }\n\n $products->save();\n\n\n\n return redirect('/home') -> with('edit','');\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "9a7fd1cb16f74652db2cbc25a7bffef7", "score": "0.55910134", "text": "public function update(Request $request, $id)\n {\n $Product = products::findOrFail($id);\n $Product->Product_Name = $request->Product_Name;\n $Product->Price = $request->Price;\n $Product->Quantity = $request->Quantity;\n $Product->Product_Detail = $request->Product_Detail;\n $Product->Category_id = $request->category;\n\n $current = $Product->Product_Image;\n if($request->hasFile('image')){\n $image = $request->image;\n $image_new_name = time().$image->getClientOriginalName();\n $image->move('Uploads/Artists',$image_new_name);\n $img = 'Uploads/Artists/'.$image_new_name;\n $Product->Product_Image = $img;\n\n if($current != $img){\n unlink($current);\n }\n }\n $Product->save();\n return redirect()->route('AdminViewProducts');\n }", "title": "" }, { "docid": "4c27f86a48a9e3de14bac6ad42c242c6", "score": "0.5589116", "text": "public function update(Request $request, $id)\n {\n $product = product::find($id);\n\n $imgName = $product->img_path;\n if ($request->img_path) {\n $imgName = $request->img_path->getClientOriginalName() . '-' . time();\n $request->img_path->move(public_path('image'), $imgName);\n }\n\n $product -> name = $request -> name;\n $product -> price = $request -> price;\n $product -> description = $request -> description;\n $product -> stock = $request -> stock;\n $product -> img_path = $imgName;\n\n $product -> save();\n\n return redirect('/product');\n }", "title": "" }, { "docid": "9f97386359fae88a2b45d3b14d379734", "score": "0.55884373", "text": "public function update($id, Request $request)\n {\n\n //VALIDATE FIELDS\n $validator = Validator::make(request()->all(),\n [\n 'title' => 'required|max:255',\n 'slug' => 'required|max:255',\n 'status' => 'required',\n ]);\n\n //IF INVALID\n if($validator->fails()){ \n return $this->respondInvalid('Error with validation.', $validator->errors());\n }\n\n //IF VALID\n else { \n\n try {\n //Update \n $data = [\n 'title' => request('title'),\n 'slug' => str_slug(request('slug')), \n 'body' => request('body'),\n 'header_img' => request('header_img'),\n 'status' => request('status'),\n 'user_id' => request('user_id'),\n ];\n\n $resource = Resource::find($id);\n $tags = json_decode(request('tags'));\n\n //If new tags then create and add for sync\n foreach($tags as $tagK => $tagV){\n if(!is_int($tags[$tagK])){\n if($tag = Tag::create([\n 'title' => $tagV,\n 'slug' => str_slug($tagV),\n ]))\n {\n $tag->resources()->sync($id);\n unset($tags[$tagK]);\n\n $tags[] = $tag->id;\n }\n }\n }\n\n if($resource->update($data) && $resource->tags()->sync($tags) && $resource->quote()->update(['message' => request('quote')])) \n {\n return $this->respondSuccess('Successful edit.');\n }\n\n }\n catch(\\Illuminate\\Database\\QueryException $e){\n $errorCode = $e->errorInfo[1];\n\n switch ($errorCode) {\n //1062 == Duplicate entry for unique MySQL\n case 1062: \n return $this->respondDuplicate('Duplicate Entry.', ['error'=>'This entry already exists.', 'message'=> $e]); \n break;\n default:\n return $this->respondInvalid('Invalid.', ['error'=> $errorCode, 'message'=>$e]); \n break;\n }\n }\n }\n }", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "b55844482d03418d91c721f346f2b8e5", "score": "0.5578638", "text": "public function update(User $user, Resource $resource): Response\n {\n return $user->id === $resource->user_id\n ? Response::allow()\n : Response::deny('You cannot edit this resource.');\n }", "title": "" }, { "docid": "28d5bec9027248d2c146179bcd10f0c3", "score": "0.55759186", "text": "function update_resource_plugin($tablename, $resource) {\n\n return $this->update_record($tablename, $resource);\n }", "title": "" }, { "docid": "9fe43bb7a01e7955489b2fff4393a98b", "score": "0.5575356", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $input = $request->all();\n// need to unlink the old img\n if($image = $request->file('image')){\n if($product->imgurl){unlink(public_path().$product->imgurl);}\n $img_name = \"shop_\".time(). $image->getClientOriginalName();\n $img_name = str_replace(\" \", \"_\", $img_name);\n $image->move('images', $img_name);\n Photo::create(['path'=>$img_name]);\n }\n\n if($file = $request->file('file')){\n if($product->file['filename']){Storage::delete($product->file['filename']);}\n $file_name = \"storage_\".$file->getClientOriginalName();\n $file_name = str_replace(\" \", \"_\", $file_name);\n // $file->move('products', $file_name);\n\n $extension = $file->getClientOriginalExtension();\n Storage::disk('local')->put($file_name, File::get($file));\n\n $entry = new \\App\\File();\n // $entry-> = $file->getClientOriginalExtension();\n $entry->mime = $file->getClientMimeType();\n $entry->filename = $file_name;\n $entry->original_filename = $file->getClientOriginalName();\n $entry->save();\n }\n\n if(isset($img_name)){\n $input['imageurl'] = $img_name;\n }\n if(isset($entry->id)){\n $input['file_id'] = $entry->id;\n }\n\n $product->update($input);\n\n if(isset($product->file_id)){\n $file = $product->hasFile($product->file_id);\n $file->update(['product_id'=>$product->id]);\n }\n\n return redirect('/admin/shop/products');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "773e44111ac6b9307c71a255a478a41a", "score": "0.55630225", "text": "public function update(Request $request, $id)\n {\n $product=Product::find($id);\n $validator = Validator::make($request->all(), [\n 'price'=>'required',\n 'discount'=>'required',\n 'description'=>'required',\n 'image_1'=>'required|image',\n 'color'=>'required',\n 'product_name'=>'required',\n 'quantity'=>'required',\n 'id_departmant'=>'required',\n ]);\n\n if ($validator->fails()) {\n return $this->sendError('Validate Error',$validator->errors());\n }\n\n $product->price= $request->input('price');\n $product->discount= $request->input('discount');\n $product->description= $request->input('description');\n $product->image_1=$request->file('image_1')->store('products');\n $product->color= $request->input('color');\n $product->product_name= $request->input('product_name');\n $product->quantity= $request->input('quantity');\n $product->id_departmant= $request->input('id_departmant');\n\n $product->save();\n return $this->sendResponse(new ProductResources($product), 'Product updated Successfully!');\n\n }", "title": "" }, { "docid": "e892ca85154974bbdf6924de5bbfbb7e", "score": "0.5562889", "text": "public function updateById($id, $data);", "title": "" }, { "docid": "c7a6fd0923fd6923716704c3e0ead706", "score": "0.5562537", "text": "public function update(Request $request, $id)\n { if (auth()->user()->role->name == 'super admin') {\n $service=Service::find($id);\n if ($request->file('image')) {\n\n $filename = $this->globalclass->storeS3($request->file('image'), 'construction/service');\n $service->update($request->except('image') + [\"image\" => $filename]);\n } else {\n $service->update($request->except('image'));\n }\n }\n return redirect()->route('services.index');\n }", "title": "" }, { "docid": "fc4b493da0edca2fd04fda410f514b2c", "score": "0.55605084", "text": "public function write($resource) {\n $this->fill();\n parent::write($resource);\n }", "title": "" }, { "docid": "db2bf6303069858bbe73f4ca2c2dd771", "score": "0.5560327", "text": "public function update($bucket, $object, StorageObject $postBody, $optParams = [])\n {\n $params = ['bucket' => $bucket, 'object' => $object, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('update', [$params], StorageObject::class);\n }", "title": "" }, { "docid": "0fe165fb2ee0e358e23629542836c73f", "score": "0.5549928", "text": "public function update(ElementSLAStoreRequest $request, $id)\n {\n \n$ElementSLA=ElementSLA::get()->where('id',$id)->first();\n if($ElementSLA->update($request->toArray())) {\n return new ElementSLAResource($ElementSLA);\n }\n }", "title": "" }, { "docid": "6047899fb72f8829f2cc03aebb4c3bb3", "score": "0.5540523", "text": "function set_resource($resource) {\n\n return $this->update_record('block_assmgr_resource', $resource);\n }", "title": "" }, { "docid": "5aed89390836b61bf6d700fce636230f", "score": "0.55287766", "text": "public function update(Request $request, $id)\n {\n // The updated flow :\n // 1. When empty use the data from DB\n // 2. So this flow haven't validation flow\n\n\n // 1. Get data from DB use ID parameter\n $product = Product::find($id);\n\n // 2. Update the field value using $request->input\n if ($request->has('name')) {\n $product->name = $request->input('name');\n }\n\n if ($request->has('indexing_name')) {\n $product->indexing_name = $request->input('indexing_name');\n }\n \n if ($request->has('url_ecommerce')) {\n $product->url_ecommerce = $request->input('url_ecommerce');\n }\n \n if ($request->has('price')) {\n $product->price = $request->input('price');\n }\n\n if ($request->has('show')) {\n $product->show = $request->input('show') == \"true\" ? true : false;\n }\n\n if ($request->has('description')) {\n $product->description = $request->input('description');\n }\n \n // 3. Update the image and get the link\n // 2. Save the image and get the link\n $max_image = 5;\n for ($i=1; $i <= $max_image ; $i++) { \n $index = \"image_path_{$i}\";\n\n if ($request->hasFile(\"image_{$i}\")) {\n $image = $request->file(\"image_{$i}\");\n $file_name = time() . '.' . $image->getClientOriginalExtension();\n $image_url = asset('storage/product/'.$file_name);\n \n // Put the file to storage\n // Use file_get_content to get the image/file from object $image\n Storage::disk('public')->put('product/'.$file_name, file_get_contents($image));\n \n // Update URL using new image updated\n $product->{$index} = $image_url;\n }\n }\n \n $product->save();\n\n $message = [\n 'message' => 'Success update product!'\n ];\n return response()->json($message, 200);\n }", "title": "" }, { "docid": "e8f2a79f2bd8c3eb405e389cd50395bf", "score": "0.5526578", "text": "public abstract function update($data);", "title": "" }, { "docid": "0735b88fa99945515b020a6550c7d695", "score": "0.5523289", "text": "public function update(Request $request, $id)\n {\n $pro=Product::find($id);\n $pro->fill($request->all());\n $pro->save();\n $pro->sizes()->sync($request->size);\n $price= Price::where(\"product_id\",\"=\",$id)->first();\n $price->price=$request->price;\n $price->save();\n return redirect()->action(\"StockController@index\");\n \n \n }", "title": "" }, { "docid": "e3ae1f82414c2fe1454cbdd2580b9252", "score": "0.5516162", "text": "public function update(Request $request, $id)\n {\n // Get user from $request token.\n // if (! $user = auth()->setRequest($request)->user()) {\n // return $this->responseUnauthorized();\n // }\n\n // Admin can only update data.\n if (auth()->user()->role !== 'admin') {\n return $this->responseUnauthorized();\n }\n\n // Validates data.\n $validator = Validator::make($request->all(), [\n 'name' => 'required'\n ]);\n\n if ($validator->fails()) {\n return $this->responseUnprocessable($validator->errors());\n }\n\n try {\n $product = Product::where('id', $id)->firstOrFail();\n if (request('name')) {\n $product->name = request('name');\n }\n $product->save();\n return $this->responseResourceUpdated();\n } catch (\\Exception $e) {\n return $this->responseServerError('Error updating resource.');\n }\n }", "title": "" }, { "docid": "19663296ebc49734460cd3e85ba50418", "score": "0.55061334", "text": "public function update(Request $request, $id)\n {\n $item = $request->item;\n VertStorage::find($id)->update($item);\n return response()->json(VertStorage::with(['catalog', 'category'])->find($id));\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "c164d7026174bb67053b77eb09e80d64", "score": "0.54943293", "text": "public function update(Request $request, $id)\n { \n\n \n $product = Product::find($id);\n $product->name = $request->name;\n\n $img = $request->img;\n $img_new_name = time().$img->getClientOriginalName();\n $img->move('uploads/',$img_new_name);\n $product->img = 'uploads/'.$img_new_name;\n $product->save();\n\n return redirect()->route('products');\n }", "title": "" }, { "docid": "4e47d4dc028ea28ff1177255c879c482", "score": "0.5494305", "text": "public function update(Request $request, $id)\n {\n $data_international = International::find($id);\n\n $request->validate([\n 'title' => 'required|max:200',\n 'short_description' => 'required',\n 'description' => 'required',\n 'icon' => 'image'\n ]);\n\n if ($request->file('icon')) {\n $file = $request->file('icon');\n $path = $file->store(\"cooperation\");\n\n if (@$data_international->icon && Storage::exists($data_international->icon)) {\n Storage::delete($data_international->icon);\n }\n }\n\n $data_international->fill([\n 'title' => $request->title,\n 'short_description' => $request->short_description,\n 'description' => $request->description,\n 'url' => $request->url,\n 'url_website' => $request->url_website,\n 'icon' => ($request->file('icon') ? $path : ($data_international->icon != null ? $data_international->icon : null))\n ])->save();\n\n return redirect()->route('admin.international.index')->with(['status' => 'success', 'message' => 'International Updated Successfully']);\n }", "title": "" }, { "docid": "ca5509e96386bb6933d62097aed5ce81", "score": "0.54937387", "text": "public function update(Request $request, $id)\n {\n $this->validateProduct($request,$id);\n $product = Product::findOrFail($id);\n $old_image = $product->image;\n if($request->hasFile('image')){\n $image = $this->uploadProductImage($request);\n Storage::delete('public/products/'.$old_image);\n \n }else{\n $image = '';\n }\n $this->createOrUpdateProduct($request,$product,$image);\n return redirect()\n ->route('admin.products.index')\n ->with('status','Selected Product has been updated!');\n }", "title": "" }, { "docid": "3d8bf3989e6d607ede812c04d29b3205", "score": "0.54916", "text": "public function update(Request $request, $id)\n {\n $file = $request->file('path2');\n $upload = 'public/images_ready';\n $file_name = $file->getClientOriginalName();\n Storage::putFileAs($upload, $file, $file_name);\n $ap = Application::find($id);\n $ap->path2 = url('public/storage/images_ready/' . $file_name);\n $ap->prichina = $request->input('prichina');\n $ap->status_id = $request->input('status');\n $ap->save();\n return redirect()->route('admin');\n }", "title": "" }, { "docid": "630c0491c19401c99ce9452f492c62fd", "score": "0.5484033", "text": "public function updated($entity) {}", "title": "" }, { "docid": "e16acf9713c8c3f5cfd99fb0c548a300", "score": "0.54830205", "text": "public function updateResources($resource_id,$name,$rate,$description,$type){\n\t\t$sql = \"UPDATE resource SET name='\".$name.\"',rate='\".$rate.\"',description='\".$description.\"',type='\".$type.\"' WHERE resource_id=\".$resource_id.\";\";\n\t\t\n\t\t$result = $this->db->query($sql);\n\t\t\n\t\treturn $this->db->countAffected();\n\t}", "title": "" }, { "docid": "43a03b07d905c05a02472b9ff319b7f7", "score": "0.54800415", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n if($product->name != $request['name']) {\n $productImages = Images::where('product_id', $id)->get();\n foreach($productImages as $productImage) {\n $pathArray = explode('/', $productImage->img_path);\n $pathArray[count($pathArray) - 1] = $request['name'];\n $updatedPath = implode('/', $pathArray);\n \n $updatedSlug = implode('-', explode(' ', $request['name']));\n $updatedSlug = $updatedSlug . '-' . $productImage->img_name . '.jpg';\n Storage::move('public/' . $productImage->img_path . '/'.$productImage->img_name . '.jpg', 'public/' . $updatedPath . '/'.$productImage->img_name . '.jpg');\n // Storage::deleteDirectory('public/' . $productImage->img_path);\n $productImage->update(['img_path' => $updatedPath, 'slug' => $updatedSlug]);\n }\n }\n\n $product->update($request->all());\n return $product;\n }", "title": "" }, { "docid": "68b81bcd25140dd49661e608e6da07e4", "score": "0.54704595", "text": "public function update(Request $request, $id)\n {\n\n //\n $validator = Validator::make($request->input(), Product::rulesUpdate($id), Product::$messages);\n if ($validator->fails()){\n return response()->json([\n 'error' => true,\n 'message' => $validator->errors()\n ], 422);\n }\n\n\n $producto = Product::find($id);\n $producto->codigo = $request->codigo;\n $producto->descripcion = $request->descripcion;\n $producto->categoria_id = $request->categoria_id;\n $producto->stock = $request->stock;\n $producto->precio_compra = $request->precio_compra;\n $producto->precio_venta = $request->precio_venta;\n\n\n $photo = $request->file('imagen');\n if($photo){\n\n if($producto->imagen){\n //eliminar\n $photoPath = str_replace('storage', 'public', $producto->imagen);\n Storage::delete($photoPath);\n }\n\n $namefile = 'producto/'.time() . $photo->getClientOriginalName();\n $result = Storage::disk('images')->put($namefile, \\File::get($photo));\n $producto->imagen = Storage::disk('images')->url($namefile);\n }\n\n $producto->save();\n\n return response()->json([\n 'error' => false,\n 'message' => 'El producto se guardo con exito.'\n ], 200);\n }", "title": "" }, { "docid": "73910df553bfa029428fd28ff71bb764", "score": "0.54704195", "text": "protected function _updateResource()\n {\n $params = $this->_getImageCreationParameters($this->_subType);\n $createFunction = $params['createFunction'];\n $this->_resource = $createFunction($this->_fullPath);\n if ($this->_resource == null) {\n throw new Lib_Exception(\"An error occured while loading image file '$this->_fullPath'\");\n }\n }", "title": "" }, { "docid": "f8d6001ac2ab84858440a1f39d3cd6c3", "score": "0.5468607", "text": "public function update(Request $request, Product $product)\n {\n // only authorize role id can touch spicific button or page\n $this->authorize('update', $product);\n $validatedData = $request->validate([\n\n 'name' => 'required|string',\n 'price' => 'required|numeric',\n 'description' => 'required',\n 'category_id' => 'required',\n 'image' => 'image|max:2000'\n ]);\n \n // update product\n $product->update($validatedData);\n\n // check if there's image uploaded.\n // if there's and image, save it and get the url\n if($request->hasFile('image')){\n\n // store the image\n $path = $request->file('image')->store('public/products');\n\n // this will return the url of the saved image\n $url = Storage::url($path);\n\n // set the new url image\n $product->image = $url;\n }\n\n\n // save product\n $product->save();\n\n return redirect(route('products.show', $product->id))\n ->with('message', \"Product is updated successfully\");\n\n\n }", "title": "" }, { "docid": "6dbe9a80c3cc7c4c7214a73b919cb78b", "score": "0.54670787", "text": "public function update($request);", "title": "" }, { "docid": "bc4833cc8fefd6bb389f4233f8156c0e", "score": "0.5465375", "text": "public function update(Request $request, $id)\n {\n //return $request->all();\n\n if( $request->file('product_img') ){\n $fileObj = $request->file('product_img');\n $fileOriginalName = $fileObj->getClientOriginalName();\n $uniqueName = $fileObj->hashName();\n $filePath = ( $this->variables->awsFolderName() ).\"/$fileOriginalName/$uniqueName\";\n $request['img_url'] = $filePath;\n\n $pathToUpload = ( $this->variables->awsFolderName() ).\"/\".$fileOriginalName;\n Storage::disk('s3')->put($pathToUpload, $fileObj, \"public\");\n }\n\n unset($request['_token']);\n unset($request['_method']);\n\n //return $request->except(['product_img']);\n\n Products::where('id', $id)->update($request->except(['product_img']));\n\n return redirect('/product');\n }", "title": "" }, { "docid": "6dfdb976d3f3913cf8013159c3cf0071", "score": "0.5463308", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n\n $product->title = $request->get('title');\n $product->description = $request->get('description');\n $product->price = $request->get('price');\n\n if($product->image && file_exists(storage_path('app/public/' . $product->image)))\n {\n Storage::delete('public/'.$product->avatar);\n $file = $request->file('image')->store('img/product', 'public');\n $product->image = $file;\n }\n\n $product->material = $request->get('material');\n $product->stock = $request->get('stock');\n $product->size = $request->get('size');\n $product->status = $request->get('status');\n $product->category = $request->get('category');\n\n return redirect()\n ->route('products.index')\n ->with('status','Great! Product updated successfully');\n }", "title": "" }, { "docid": "bbb0907862893d6cc949de90a08b7c28", "score": "0.5461275", "text": "public function flush($resource);", "title": "" }, { "docid": "13060cd318eed312852c00ed17885787", "score": "0.5460793", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "13060cd318eed312852c00ed17885787", "score": "0.5460793", "text": "public function update($object)\n {\n }", "title": "" }, { "docid": "4a265ec0ce4a35c698470132f29a7e0f", "score": "0.54604995", "text": "abstract function update($object);", "title": "" }, { "docid": "19323452d4f8b1e3cc766b966234512d", "score": "0.54551905", "text": "public function update($obj) {\n }", "title": "" } ]
e2e449bf5cd2c33afa3477de100ccb49
Validates the requested step ID. Redirects to the actual step ID if the requested one is no longer available. This can happen if payment was already cancelled, or if the payment "notify" endpoint created the payment and placed the order before the customer returned to the site.
[ { "docid": "2456cb14405a632684a884f3225eb450", "score": "0.72677636", "text": "protected function validateStepId($requested_step_id, OrderInterface $order) {\n $step_id = $this->checkoutOrderManager->getCheckoutStepId($order);\n if ($requested_step_id != $step_id) {\n throw new NeedsRedirectException(Url::fromRoute('commerce_checkout.form', [\n 'commerce_order' => $order->id(),\n 'step' => $step_id,\n ])->toString());\n }\n }", "title": "" } ]
[ { "docid": "336c4917b33c63d3b74e5772ba91c3e5", "score": "0.5879513", "text": "function validateProcess($currentStep) {\n\tif ($currentStep == 'calendar' || $currentStep == 'contactInfo' || $currentStep == 'confirm') {\n\t\tif (!(isset($_SESSION['reservation.step1'])))\n\t\t\tredirect('selectService.php');\n\t}\n\t\n\tif ($currentStep == 'contactInfo' || $currentStep == 'confirm') {\n\t\tif (!(isset($_SESSION['reservation.step2'])))\n\t\t\tredirect('calendar.php');\n\t}\n\t\n\tif ($currentStep == 'confirm') {\n\t\tif (!(isset($_SESSION['reservation.step3'])))\n\t\t\tredirect('contactInfo.php');\n\t}\n\t\n\t$service = null;\n\t\n\tif ($_SESSION['reservation.step1']) {\n\t\t// Check for the timeout\n\t\trequire 'config/settings.php';\n\t\t$beginTime = unserialize($_SESSION['reservation.beginTime']);\n\t\t\n\t\tif (time() > ($beginTime + $SETTINGS['reservation_timeout'] * Calendar::SecondsInMinute)) {\n\t\t\tcleanupReservation();\n\t\t\tdisplay_template('templates/reservationTimeout.php');\n\t\t}\n\t\t\n\t\t// Validate the selected service is reservable\n\t\t$service = unserialize($_SESSION['reservation.service']);\n\t\t\n\t\tif (!($service->isReservable()))\n\t\t\tdisplay_template('templates/serviceUnavailable.php');\n\t}\n\t\n\t$employee = null;\n\t$datetime = null;\n\t\n\tif ($_SESSION['reservation.step2']) {\n\t\t// Validate the selected user performs the service\n\t\t$employee = unserialize($_SESSION['reservation.employee']);\n\t\t$datetime = unserialize($_SESSION['reservation.datetime']);\n\n\t\tif ($service->getPerformingEmployees()->get('id', $employee->id) === null || !($employee->isAvailable($datetime, $service->duration)))\n\t\t\tdisplay_template('templates/employeeUnavailable.php');\n\t}\n}", "title": "" }, { "docid": "5cedd187a40b9cdc9676f57088b81e5f", "score": "0.58482254", "text": "protected function redirectToPreviousStep() {\n $routeMatch = \\Drupal::routeMatch();\n $checkoutFlow = $this->entity->getOrder()->get('checkout_flow')->entity;\n $checkoutFlowPlugin = $checkoutFlow->getPlugin();\n $stepId = $routeMatch->getParameter('step');\n $redirectStepId = $checkoutFlowPlugin->getPreviousStepId($stepId);\n $checkoutFlowPlugin->redirectToStep($redirectStepId);\n // Method will never return because redirectToStep() will throw an\n // exception.\n }", "title": "" }, { "docid": "e6957be8544c4c31d1e2a7642d9390ac", "score": "0.57863396", "text": "public function validateAction() {\n\t\t$valid = false;\n\n\t\tif ( $this->routed && $this->onPage() ) {\n\t\t\t$valid = true;\n\t\t}\n\n\t\tif ( ! $valid ) {\n\t\t\twp_safe_redirect( $this->redirectPath() );\n\t\t\texit;\n\t\t}\n\t}", "title": "" }, { "docid": "e20be456c8194e619ebf80021df2212d", "score": "0.5628653", "text": "public function paymentFailedRedirectAction()\n {\n return $this->redirectToLangRoute('_deals_payment_failure', array(), 301);\n }", "title": "" }, { "docid": "4fff75a136d3d7f9714ab9c8d53237e5", "score": "0.555462", "text": "public function get_step_url( $step_id ) {\n\n\t\t$url = false;\n\n\t\tif ( $this->has_step( $step_id ) ) {\n\t\t\t$url = add_query_arg( 'step', $step_id, remove_query_arg( 'action' ) );\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "3ff51b181d5708c27f34c94cd231cd1c", "score": "0.55447143", "text": "private function validateSteps($validateCurrentStep) {\n $data=$this->getSessionObject();\n\n $res1=$data['RegistrationCodeForm']->validate();\n $res2=$data['RegistrationDataForm']->validate();\n if (!$res1 || !$res2) {\n return false;\n }\n\n return true;\n/*\n if (!$data['RegistrationDataForm']->validate()) {\n return false;//return $this->action->id=='data' ? false:$this->redirect(['data']);\n }\n\n\n $steps=[\n 'index',\n 'data',\n 'activation-code'\n ];\n\n $step=array_search($this->action->id,$steps);\n $validateStep=$step-($validateCurrentStep ? 0:1);\n\n $data=$this->getSessionObject();\n\n if ($step>$data['activePage']) {\n $data['activePage']=0;\n $this->redirect(['index']);\n }\n\n if ($validateStep>=0) {\n if (!$data['RegistrationCodeForm']->validate()) {\n return $this->action->id=='index' ? false:$this->redirect(['index']);\n }\n\n if ($data['RegistrationCodeForm']->refId) {\n if (!$data['RegistrationCodeForm']->code) {\n $parentUser=\\app\\models\\User::findOne($data['RegistrationCodeForm']->refId);\n\n if ($parentUser && $parentUser->getRegistrationsCount()>=$parentUser->getRegistrationsLimit()) {\n $data['RegistrationCodeForm']->addError('code', Yii::t('app', 'Link nicht mehr aktiv. Bitte wende dich an deinen einladenden Kontakt'));\n return $this->action->id=='index' ? false:$this->redirect(['index']);\n }\n }\n\n if (!User::findOne($data['RegistrationCodeForm']->refId)) {\n $this->initSessionObject();\n return $this->redirect('index');\n }\n }\n }\n\n $data['RegistrationDataForm']->setScenario(User::SCENARIO_DEFAULT);\n if ($validateStep>=1) {\n if (!$data['RegistrationDataForm']->validate()) {\n return false;//return $this->action->id=='data' ? false:$this->redirect(['data']);\n }\n }\n*/\n /*\n $model=$data['RegistrationActivationCodeForm'];\n $model->setScenario($model->tries>=3 && $step==2 ? 'withCaptcha':User::SCENARIO_DEFAULT);\n if ($validateStep>=2) {\n if (!$model->validate()) {\n $model->tries++;\n $model->setScenario($model->tries>=3 && $step==2 ? 'withCaptcha':User::SCENARIO_DEFAULT);\n return $this->action->id=='activation-code' ? false:$this->redirect(['activation-code']);\n }\n }\n */\n\n //return true;\n }", "title": "" }, { "docid": "d4d66d35c39c29fe0f7897bd1b510b57", "score": "0.5531793", "text": "public function validateFailedAction()\n {\n $this->_getSession()->addError(\n Mage::helper('klarna_kco/checkout')->__('Unable to complete order. Please try again')\n );\n\n $this->_redirect('checkout/cart');\n }", "title": "" }, { "docid": "32f56091d25eb579ecd89a94c631f56a", "score": "0.549423", "text": "function getStepID() {\n return $this->stepid;\n }", "title": "" }, { "docid": "55fcc3c5c0ba5ba08e774d12afddb8dc", "score": "0.5437967", "text": "function setStepID($stepid) {\n $this->stepid = $stepid;\n }", "title": "" }, { "docid": "9c376eb95fb1e3ed9fcf475599433661", "score": "0.54235816", "text": "public function redirect_finish_order($order_id){\n $wc_order = new WC_Order($order_id);\n wp_redirect($wc_order->get_checkout_order_received_url());\n exit();\n }", "title": "" }, { "docid": "02f2f08769f8cb8460c6bbe9350cfd9b", "score": "0.53276587", "text": "public function setStep(int $id): void\n\t{\n\t\tif (empty($this->getStep()) || $id < $this->getStep()['id']) {\n\t\t\t$this->step = $this->wizardMap[$id];\n\t\t}\n\t}", "title": "" }, { "docid": "25b12ef0eef107cc6f4b096635589134", "score": "0.53120923", "text": "function process_payment($order_id)\n {\n\n $order = new WC_Order($order_id);\n\n // Return thankyou redirect\n return array(\n 'result' => 'success',\n 'redirect' => add_query_arg('order', $order->id, add_query_arg('key', $order->order_key, get_permalink(woocommerce_get_page_id('pay'))))\n );\n\n }", "title": "" }, { "docid": "18482608c4e311b556a92cb9b7567286", "score": "0.5305076", "text": "public function get_attemptid_by_stepid($stepid) {\n global $DB;\n\n if (!$attempid = $DB->get_field('question_attempt_steps', 'questionattemptid', array('id' => $stepid))) {\n //TODO : show custom message error\n }\n return $attempid;\n }", "title": "" }, { "docid": "5e2d19e9c7e08756c13592b2cfc8dc87", "score": "0.5303293", "text": "function process_payment($order_id) {\n\n $order = new WC_Order($order_id);\n\n // Return thankyou redirect\n return array(\n 'result' => 'success',\n 'redirect' => add_query_arg('order', $order->id, add_query_arg('key', $order->order_key, get_permalink(woocommerce_get_page_id('pay'))))\n );\n\n }", "title": "" }, { "docid": "428f3d674cce119e0ee1a84552720541", "score": "0.52536327", "text": "protected function render_step( $step_id ) {\n\n\t\tcall_user_func( $this->steps[ $step_id ]['view'], $this );\n\n\t\t?>\n\t\t<p class=\"wc-setup-actions step\">\n\n\t\t\t<?php $label = __( 'Continue', 'woocommerce-gateway-paypal-powered-by-braintree' ); ?>\n\n\t\t\t<?php if ( is_callable( $this->steps[ $step_id ]['save'] ) ) : ?>\n\n\t\t\t\t<button\n\t\t\t\t\ttype=\"submit\"\n\t\t\t\t\tname=\"save_step\"\n\t\t\t\t\tclass=\"button-primary button button-large button-next\"\n\t\t\t\t\tvalue=\"<?php echo esc_attr( $label ); ?>\">\n\t\t\t\t\t<?php echo esc_html( $label ); ?>\n\t\t\t\t</button>\n\n\t\t\t<?php else : ?>\n\n\t\t\t\t<a class=\"button-primary button button-large button-next\" href=\"<?php echo esc_url( $this->get_next_step_url( $step_id ) ); ?>\"><?php echo esc_html( $label ); ?></a>\n\n\t\t\t<?php endif; ?>\n\t\t</p>\n\t\t<?php\n\t}", "title": "" }, { "docid": "7b5eccc63f0900d12a0b67d563cf2d6a", "score": "0.52393216", "text": "function process_payment($order_id){\n\n\t\t\tglobal $woocommerce;\n\t\t\t$order = new WC_Order($order_id);\n\n // Empty awaiting payment session\n unset($_SESSION['order_awaiting_payment']);\n \n $this->receipt_page($order);\n\n return array(\n 'result' => 'success',\n 'redirect' => add_query_arg('order', $order->id, add_query_arg('key', $order->order_key, get_permalink(woocommerce_get_page_id('pay'))))\n );\n\t\t}", "title": "" }, { "docid": "dba3691693c423da2c581903b7188f6b", "score": "0.52374244", "text": "public function redirectToPaymentPage($id, $verification)\n {\n // Retrieve order details.\n $order = Orders::details($id, $verification);\n\n // Redirect to payment URL.\n return redirect($order->payment_details->payment_url);\n }", "title": "" }, { "docid": "e9a0ef9eeefd83ee4af36e656ac2e1ad", "score": "0.5235586", "text": "public function get_next_step_url( $step_id = '' ) {\n\n\t\tif ( ! $step_id ) {\n\t\t\t$step_id = $this->current_step;\n\t\t}\n\n\t\t$steps = array_keys( $this->steps );\n\n\t\t// if on the last step, next is the final finish step\n\t\tif ( end( $steps ) === $step_id ) {\n\n\t\t\t$url = $this->get_finish_url();\n\n\t\t} else {\n\n\t\t\t$step_index = array_search( $step_id, $steps, true );\n\n\t\t\t// if the current step is found, use the next in the array. otherwise, the first\n\t\t\t$step = false !== $step_index ? $steps[ $step_index + 1 ] : reset( $steps );\n\n\t\t\t$url = add_query_arg( 'step', $step );\n\t\t}\n\n\t\treturn $url;\n\t}", "title": "" }, { "docid": "268a5d74c8fd836c585df76dece5939b", "score": "0.52126807", "text": "public function failed_webhook()\n {\n\n $order_id = filter_input(INPUT_GET, 'merchantRefNum', FILTER_VALIDATE_INT);\n\n $order = wc_get_order($order_id);\n\n // If order not found.\n if (!$order) {\n wc_add_notice(sprintf(__('Order #%d not found', 'fawry'), $order_id), 'error');\n wp_redirect(wc_get_cart_url());\n exit;\n }\n\n $order->update_status('failed', __('Fawry payment failure', 'fawry'));\n\n wp_redirect($this->get_return_url($order));\n\n exit;\n }", "title": "" }, { "docid": "99f964a31878655a673b7a43a32828a4", "score": "0.52101415", "text": "function post($id = '',$step=''){\n \n if(empty($this->user_details)){\n redirect('/');\n }\n\n $posted_data = array();\n\n if($step == 2){\n $this->step2($id);\n \n }elseif($step == '' || $step == 1){\n $this->step1($id);\n }elseif($step == 3){\n $this->step3($id);\n }\n\n \n }", "title": "" }, { "docid": "c76eae96d20644f24f4f329554ece677", "score": "0.5208603", "text": "function process_payment( $order_id ) {\n\t\t$order = new WC_Order( $order_id );\n\t\t$redirect_url = add_query_arg( array(\n\t\t\t'order' => $order->id,\n\t\t\t'key' => $order->order_key,\n\t\t), get_permalink( woocommerce_get_page_id( 'pay' ) ) );\n\n\t\treturn array(\n\t\t\t'result' => 'success',\n\t\t\t'redirect' => $redirect_url,\n\t\t);\n\t}", "title": "" }, { "docid": "89b370fe16551a0df52f84ff569b24cc", "score": "0.51962817", "text": "public function testOrderPaymentPageFail()\n {\n $order = Order::factory(['status' => 'COMPLETED'])->create();\n\n $response = $this->get('/order/' . $order->id . '/payment');\n\n $response->assertStatus(302)\n ->assertRedirect('/');\n }", "title": "" }, { "docid": "133de90c8be993a02a01982a35bc2efa", "score": "0.5183265", "text": "public function verify_intent() {\n\t\tglobal $woocommerce;\n\n\t\t$gateway = $this->get_gateway();\n\n\t\ttry {\n\t\t\t$order = $this->get_order_from_request();\n\t\t} catch ( WC_Stripe_Exception $e ) {\n\t\t\t/* translators: Error message text */\n\t\t\t$message = sprintf( __( 'Payment verification error: %s', 'woocommerce-gateway-stripe' ), $e->getLocalizedMessage() );\n\t\t\twc_add_notice( esc_html( $message ), 'error' );\n\n\t\t\t$redirect_url = $woocommerce->cart->is_empty()\n\t\t\t\t? get_permalink( woocommerce_get_page_id( 'shop' ) )\n\t\t\t\t: wc_get_checkout_url();\n\n\t\t\t$this->handle_error( $e, $redirect_url );\n\t\t}\n\n\t\ttry {\n\t\t\t$gateway->verify_intent_after_checkout( $order );\n\n\t\t\tif ( ! isset( $_GET['is_ajax'] ) ) {\n\t\t\t\t$redirect_url = isset( $_GET['redirect_to'] ) // wpcs: csrf ok.\n\t\t\t\t\t? esc_url_raw( wp_unslash( $_GET['redirect_to'] ) ) // wpcs: csrf ok.\n\t\t\t\t\t: $gateway->get_return_url( $order );\n\n\t\t\t\twp_safe_redirect( $redirect_url );\n\t\t\t}\n\n\t\t\texit;\n\t\t} catch ( WC_Stripe_Exception $e ) {\n\t\t\t$this->handle_error( $e, $gateway->get_return_url( $order ) );\n\t\t}\n\t}", "title": "" }, { "docid": "86d42a242ecd75b00a7f1c76ef6ffe21", "score": "0.51618636", "text": "public function processWizard(WizardInterface $wizard,Request $request)\n {\n if(!$request->get('step',false))\n {\n return $wizard->getCurrentUrl();\n }\n\n // wizard is finished\n if($wizard->getCurrentStep()==='_finished')\n {\n return $wizard->onFinish();\n }\n\n // a invalid step has been called, so redirect to current\n if($request->get('step',false) && !$wizard->isValidStep($request->get('step',false)))\n {\n return $wizard->getCurrentUrl();\n }\n\n // check form submisions\n if($request->getMethod() === 'POST')\n {\n $wizard->getForm()->bindRequest($request);\n\n if($wizard->getForm()->isValid())\n {\n switch($request->get('WizardNextStep','current'))\n {\n case 'next': $wizard->setCurrentStep($wizard->getNextStep()); break;\n case 'previous': $wizard->setCurrentStep($wizard->getPreviousStep()); break;\n }\n\n return $wizard->getCurrentUrl();\n }\n\n }\n\n return false;\n }", "title": "" }, { "docid": "5e821dccf15ed962b5b6f247b74b58fe", "score": "0.5159006", "text": "function process_payment($order_id)\n {\n $order = new WC_Order($order_id);\n\n return array(\n 'result' => 'success',\n 'redirect' => add_query_arg('order', $order_id, add_query_arg('key', $order->order_key, get_permalink(woocommerce_get_page_id('pay')))),\n );\n }", "title": "" }, { "docid": "9eccbf235878179eaba9aa9bf02d0b00", "score": "0.5155694", "text": "public function process_payment($order_id)\n {\n $this->init_configs();\n $order = wc_get_order($order_id);\n try {\n $return = $this->process_standard_payment($order);\n } catch (Exception $e) {\n wc_add_notice($e->getMessage(), 'error');\n }\n\n // Return redirect\n return $return;\n }", "title": "" }, { "docid": "7684f9a279909c7c18ee1714b86fb17e", "score": "0.5151815", "text": "public function destroy(Step $step)\n {\n $recipe = Recipe::find($request->input('recipe_id'));\n $step = RecipeStep::find($request->input('id'));\n\n if (\n is_object($recipe) && is_object($step) &&\n $recipe->user_id == Auth::user()->id\n ) {\n $delete = $step->delete();\n if ($delete) {\n return redirect()->back()->with('success', [\n 'Step was deleted successfully',\n ]);\n }\n\n return redirect()->back()->withErrors([\n 'message',\n 'Step was not deleted successfully',\n ]);\n }\n abort(404);\n }", "title": "" }, { "docid": "57c7240c06eb02fffda1ae6a67acf3dc", "score": "0.51491904", "text": "protected function determineCurrentStep() {\n\t\tforeach($this->getSteps() as $step) {\n\t\t\tif(!$step->isValid() && $step->needsValidation() && $step->isRequired()) {\n\t\t\t\t$this->currentStep = $step;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "590c894746ad1bd64611b4179f9a6414", "score": "0.5120939", "text": "public function testCompletePurchaseNoMandateIdFailedRedirectFlow()\n {\n $this->setMockHttpResponse([\n 'RedirectCompleteFlowResponseFailedIncomplete.txt',\n 'RedirectCompleteFlowResponseFailedIncomplete.txt',\n ]);\n $options = [\n 'card' => $this->getValidCard(),\n 'description' => 'Wine boxes',\n 'amount' => 500,\n 'currency' => 'GBP',\n 'returnUrl' => 'https://example.com/pay/confirm',\n 'redirectFlowId' => 'RE123',\n 'sessionToken' => 'SESS_wSs0uGYMISxzqOBq'\n ];\n\n // could drop 'send' and end up with same results\n $response = $this->gateway->completePurchase($options)->send();\n\n $this->assertFalse($response->isSuccessful());\n $this->assertFalse($response->isRedirect());\n $this->assertSame('Customer has not yet completed the payment pages', $response->getMessage());\n $this->assertNull($response->getTransactionReference());\n $this->assertNull($response->getRedirectUrl());\n $this->assertNull($response->getMandateId());\n }", "title": "" }, { "docid": "a29f77e9b9cb41128d3c1ea44786ea94", "score": "0.50875384", "text": "protected function postsaleError()\n {\n $objPage = PageModel::findWithDetails((int) Input::post('M_pageId'));\n $strUrl = Checkout::generateUrlForStep(Checkout::STEP_FAILED, null, $objPage, true);\n\n // HTML page to redirect the client from WorldPay back to the shop\n return new Response('\n<!DOCTYPE html>\n<html lang=\"de\">\n<head>\n<meta charset=\"utf-8\">\n<title>Isotope eCommerce</title>\n<meta http-equiv=\"refresh\" content=\"0; url=' . $strUrl . '\">\n</head>\n<body>\nRedirecting back to shop...\n</body>\n</html>\n');\n }", "title": "" }, { "docid": "0b59c3602548553d4d1bfd10fb655a2a", "score": "0.5087186", "text": "protected function ValidateStepData()\n {\n $bContinue = $this->ValidateUser($this->GetUserData());\n\n // which address do we need to validate? if $this->GetShipToBillingAddress() != 1 then we need to validate both..\n // otherwise one will do...\n\n if ('1' != $this->GetShipToBillingAddress()) {\n $bContinue = $this->ValidateShippingAddress($this->GetShippingAddressData()) && $bContinue;\n $bContinue = $this->ValidateBillingAddress($this->GetBillingAddressData()) && $bContinue;\n } else {\n switch ($this->AddressUsedAsPrimaryAddress()) {\n case TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING:\n $bContinue = $this->ValidateShippingAddress($this->GetShippingAddressData()) && $bContinue;\n break;\n\n default:\n case TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING:\n $bContinue = $this->ValidateBillingAddress($this->GetBillingAddressData()) && $bContinue;\n break;\n }\n }\n\n return $bContinue;\n }", "title": "" }, { "docid": "1a0ea6979059f27ec1e0279d2b99805d", "score": "0.50681466", "text": "function step3($id)\n {\n if (empty($this->user_details)) {\n redirect('/');\n }\n if ($posted_data = $this->input->post()) {\n $this->form_validation->set_rules('payment', 'Payment', 'required');\n if($this->form_validation->run()==false){\n message('error',validation_errors());\n redirect(current_url());\n }else{\n unset($posted_data['submit']);\n if ($posted_data['payment'] != 'bank') {\n Modules::load('payments')->makePayment($id, $posted_data);\n } else {\n if ($this->jobs_m->update(config('job'), array('status' => 1), array('id' => $id))) {\n redirect('jobs/thankyou/' . $id);\n }\n }\n }\n }\n $this->template->title('Post New Job')\n ->append_metadata('<script src=\"https://khalti.com/static/khalti-checkout.js\"></script>')\n ->set_layout('layout-sidebar')\n ->set('class', 'page')\n ->set('menu', 'new-job')\n ->set('id', $id)\n ->set_breadcrumb('Jobs', site_url('jobs'))\n ->set_breadcrumb('New Job', site_url('jobs/post'))\n ->build('step3', $posted_data);\n }", "title": "" }, { "docid": "6174a84c7d9b2679cf9aea1c49aebe85", "score": "0.50678945", "text": "function process_payment($order_id)\n {\n global $woocommerce;\n\n if(!$this->validated) return;\n \n $this->order = new WC_Order($order_id);\n \n $this->transaction_reference = $this->generateTransactionReference();\n \n $result = $this->processPaymentInfo();\n \n switch ($result)\n {\n case self::PAYMENT_SUCCESS:\n $this->order->add_order_note( __('Payment completed', 'paychoice') . ' (Transaction reference: ' . $this->transaction_reference . ')' );\n $woocommerce->cart->empty_cart();\n $this->order->payment_complete();\n return array(\n 'result' => 'success',\n 'redirect' => $this->get_return_url( $this->order )\n );\n return;\n case self::PAYMENT_DISHONOUR:\n $this->order->add_order_note( __('Payment dishonoured', 'paychoice') . ' (Transaction reference: ' . $this->transaction_reference . ')' );\n $message = 'Your transaction has been declined. Please try again later';\n $this->displayErrorMessage($message);\n return;\n case self::PAYMENT_ERROR:\n default:\n $message = 'There has been an error processing your payment. '.(isset($this->exception_message)?$this->exception_message:'');\n $this->displayErrorMessage($message);\n return;\n }\n }", "title": "" }, { "docid": "7df59a830d6f959e56552c26e66a3c32", "score": "0.50643134", "text": "public function destroy($id)\n {\n StepUI::find($id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "293c4176b3609ab8e30447c5ca212182", "score": "0.5044265", "text": "public function process_payment($order_id)\n {\n $order = wc_get_order($order_id);\n $order->payment_complete($_POST['transaction-id']);\n $order->add_order_note(__('Transaction to be checked.', 'wc-gateway-offline'));\n // Remove cart\n WC()->cart->empty_cart();\n\n // Return thankyou redirect\n return array(\n 'result' => 'success',\n 'redirect' => $this->get_return_url($order)\n );\n }", "title": "" }, { "docid": "ff72043e38888e96a4df7d14a1b47aef", "score": "0.5038909", "text": "public function returnAction() \r\n\t\t{\r\n\t\t\t$oIdealcheckoutclickandbuyModel = Mage::getSingleton('idealcheckoutclickandbuy/idealcheckoutclickandbuy');\r\n\r\n\t\t\t$sOrderId = $this->getRequest()->get('order_id');\r\n\t\t\t$sOrderCode = $this->getRequest()->get('order_code');\r\n\r\n\r\n\t\t\tif($oIdealcheckoutclickandbuyModel->validatePayment($sOrderId, $sOrderCode))\r\n\t\t\t{ \r\n\t\t\t\t$this->_redirect('checkout/onepage/success', array('_secure' => true));\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t$this->_redirect('checkout/cart');\r\n\t\t\t} \r\n\t\t}", "title": "" }, { "docid": "1122daaf57f8e37ce80d4762350fe85b", "score": "0.502511", "text": "public function handle($request, Closure $next, $currentStep)\n {\n if(Auth::guard('student')->check())\n {\n $currentStudentState = CurrentStudentState::find(Auth::guard('student')->user()->rollNo);\n\n /**\n * If student has not completed the first step\n * then redirect him to initial details page\n * other wise redirect him to the correct\n * page accourding to his current state\n */\n if ($currentStudentState == null)\n { \n /*\n * This check avoids redirection loop\n * in case the student is accessing\n * the initial details page\n */\n if ($currentStep != 1)\n {\n return redirect('/students/semesterRegistration/initialDetails');\n }\n\n return $next($request);\n }\n else\n {\n $step = $currentStudentState->step;\n \n /**\n * Redirect if student tries to visit a step\n * without completing the previous one and\n * let the request pass to the inner\n * layers if his request if valid\n */\n if ($currentStep != $step + 1)\n {\n if ($step == 1)\n {\n return redirect('/students/semesterRegistration/feeAndHostelDetails');\n }\n elseif ($step == 2)\n {\n return redirect('/students/semesterRegistration/courseDetails');\n }\n else // if ($step == 3)\n {\n return redirect('/students/semesterRegistration/status');\n }\n }\n\n return $next($request);\n }\n }\n\n return $next($request);\n }", "title": "" }, { "docid": "8236bd42d18bfc075d1790b431507f3b", "score": "0.5009319", "text": "function process_payment( $order_id ) {\r\n\t\t\tglobal $woocommerce;\t\t\t\r\n\t\t\t\r\n\t\t\t$order = &new woocommerce_order( $order_id );\r\n\t\t\t\r\n\t\t \t// Return payment page\r\n\t\t\treturn array(\r\n\t\t\t'result' => 'success',\r\n\t\t\t'redirect'\t=> add_query_arg('order', $order->id, add_query_arg('key', $order->order_key, get_permalink(get_option('woocommerce_pay_page_id'))))\r\n\t\t\t);\r\n\t\t}", "title": "" }, { "docid": "83b4f7079af2fcaeb45238ba39f83b5d", "score": "0.5008745", "text": "public function is_current_step( $step_id ) {\n\n\t\treturn $this->current_step === $step_id;\n\t}", "title": "" }, { "docid": "788a7d122a6ab5fce67c3cd101bf6772", "score": "0.5000296", "text": "public function checkout(Request $request, $step = 'step1'){\n $invoice = session()->get('checkout_invoice');\n $shipping = session()->get('checkout_shipping');\n $stripe = session()->get('checkout_stripe');\n $payment_type = session()->get('checkout_payment_type');\n $shippping_method = session()->get('shippping_method');\n \n $checkout_steps = (array)session()->get('checkout_steps'); //step history\n\n if(\\View::exists('frontend.checkout.'.$step) ) {\n $step_n = (int)$step[strlen($step)-1];\n if( ($step_n !== 1) && !array_key_exists($step_n, $checkout_steps) ){\n return redirect()->back();\n }\n return view('frontend.checkout.'.$step, compact('invoice', 'shipping', 'stripe', 'payment_type', 'checkout_steps', 'shippping_method'))->with('step', $step);\n }else{\n return view('frontend.checkout.step1', compact('invoice', 'shipping', 'stripe', 'payment_type', 'checkout_steps', 'shippping_method'))->with('step', 'step1');\n }\n }", "title": "" }, { "docid": "7e1bac0b7043a862e003e5438975b022", "score": "0.49940276", "text": "function delStep($projectId, $stepId){\n DB::table('steps')->delete($stepId);\n return redirect()->back();\n }", "title": "" }, { "docid": "f8478a6eb7723f844b90088e2e71dbab", "score": "0.4977661", "text": "function set_cancel_url( $order_id ){\n\tglobal $post, $wp;\n\n\t$post_type = $post->post_type;\n\n\t$order = wc_get_order($order_id); //<--check this line\n\n $orderstat = $order->get_status();\n\n print $orderstat;\n die();\n\tif( 'cartflows_step' === $post_type && 'thankyou' === get_post_meta( $post->ID, 'wcf-step-type', true ) ){\n\n\t\tif( $orderstat === 'failed' ){ // completed, pending, processing, cancelled, refunded\n\n\t\t\t$URL = 'add_your_full_URL_here_if_the_orde_is_fail';\n\n\t\t\twp_redirect( $URL );\n\n\t\t}\n\t}\n}", "title": "" }, { "docid": "53d3b90c967cc7ae55eada90a2543fe3", "score": "0.49758133", "text": "public function redirectAfterFailure($id = null) {\n $errorPage = (empty($id)) ? $this->getProperty('errorPage', false, 'isset') : $id;\n if (!empty($errorPage)) {\n $url = $this->modx->makeUrl($errorPage,'','','full');\n $this->modx->sendRedirect($url);\n } else {\n $this->modx->sendErrorPage();\n }\n }", "title": "" }, { "docid": "4263f6925efae4bf78377565c411ff59", "score": "0.49490902", "text": "public function nextStep($step){\n if(!$this->disAllowNextStep){\n $this->output .= <<<HTML\n<form id='nextStep' action=\"/install/step/$step/\" method=\"POST\">\n<input type=\"submit\" value='Next step' /> \n</form>\nHTML;\n } else {\n $currentStep = $step -1;\n $this->output .= <<<HTML\n <form action=\"/install/step/$currentStep/\" method='POST' style='display: inline;'>\n <input type='checkbox' name=\"force\" id='override' value='true' />Check to override old values\n <input type=\"submit\" value='Try Again' />\n </form><form action=\"/install/step/1/\" method=\"POST\" style='display: inline;'>\n<input type=\"submit\" value='Back to step 1' />\n</form>\nHTML;\n }\n }", "title": "" }, { "docid": "c3fb523601474eb89c5ed1cafa604727", "score": "0.49352247", "text": "public function postEdit($id)\n\t{\n\n $input = array_except(Input::all(), '_method');\n $validation = Validator::make($input, Workflow_step::$rules);\n\n // If validation fails, we'll exit the operation now.\n if ($validation->fails()) {\n // Ooops.. something went wrong\n return Redirect::back()->withInput()->withErrors($validation);\n }\n\n $workflow_step = $this->workflow_step->find($id);\n\n $workflow_step->name = Input::get('name');\n $workflow_step->description = Input::get('description');\n $workflow_step->step_no = Input::get('step_no');\n\n $next_steps = Input::get('next_step');\n if($next_steps!=null){\n $next_steps = implode(',',Input::get('next_step'));\n }\n $workflow_step->next_step = $next_steps;\n\n if ($workflow_step->save()) {\n // Redirect to the workflow_steps page\n return Redirect::to(\"workflow_steps/{$workflow_step->workflow_id}/list\")->with('success', Lang::get('workflow_steps/message.update.success'));\n }\n\n return Redirect::to(\"workflow_steps/{$workflow_step->workflow_id}/list\")->with('error', Lang::get('tweets/message.update.error'));\n\t}", "title": "" }, { "docid": "aa5f9d1e0c4f267b2103d89c431045f2", "score": "0.4934757", "text": "public function get_step() {\n\t\t\t$step = (int) ( isset( $_REQUEST['step'] ) ? give_clean( $_REQUEST['step'] ) : 0 );\n\t\t\t$on_step = 1;\n\n\t\t\tif ( empty( $step ) || 1 === $step ) {\n\t\t\t\t$on_step = 1;\n\t\t\t} elseif ( 2 === $step ) {\n\t\t\t\t$on_step = 2;\n\t\t\t} elseif ( 3 === $step ) {\n\t\t\t\t$on_step = 3;\n\t\t\t}\n\n\t\t\treturn $on_step;\n\t\t}", "title": "" }, { "docid": "b2c0b8dad77f94c195b9b1919ae43dd9", "score": "0.49196973", "text": "function my_edd_stuff_redirect_to_cart_on_add( $data ) {\n\tglobal $edd_options;\n \n\t$redirect_url = get_permalink( $edd_options['purchase_page'] );\n \n\tif ( edd_get_current_page_url() != $redirect_url ) {\n\t\twp_redirect( $redirect_url, 303 ); \n\t\texit;\n\t}\n\t\n}", "title": "" }, { "docid": "5db83f0879fbc4e08162caf3a02cbe15", "score": "0.49194843", "text": "protected function crudActionMissingId()\n {\n $this->getServiceLocator()->get('Helper\\FlashMessenger')->addWarningMessage('please-select-row');\n return $this->redirect()->toRoute(null, [], [], true);\n }", "title": "" }, { "docid": "a030aec27b4957d5d51d7a21e9356ffe", "score": "0.49119473", "text": "public function clictopay_check_payment()\n {\n\n $response = wp_remote_get(($this->testmode ? 'https://test.' : 'https://ipay.') . 'clictopay.com/payment/rest/getOrderStatus.do?orderId=' . $_GET['orderId'] . '&password=' . $this->password . '&userName=' . $this->username);\n\n $body = json_decode($response['body'], true);\n\n if ($body['ErrorMessage'] === 'Success') {\n global $woocommerce;\n\n $order = wc_get_order($body['OrderNumber']);\n // we received the payment\n $order->payment_complete();\n $order->reduce_order_stock();\n\n // Empty cart\n $woocommerce->cart->empty_cart();\n\n $redirect = $this->get_return_url($order);\n } else {\n $redirect = get_site_url().'/failed-payment/';\n }\n wp_redirect($redirect);\n return;\n }", "title": "" }, { "docid": "981193ef21ff55e08c3f60001dd4baa0", "score": "0.48971313", "text": "public function setWizardStep($step) {\n $this->wizardStep = $step;\n }", "title": "" }, { "docid": "2633362a61678b2a4b72aaee953e3646", "score": "0.48721647", "text": "function testRedirectFormOnValid() {\n\t\t$init = $this->getDonorTestData();\n\t\t$session = [ 'Donor' => $init ];\n\n\t\t$redirectTest = function ( $location ) use ( $init ) {\n\t\t\tparse_str( parse_url( $location, PHP_URL_QUERY ), $actual );\n\t\t\t$this->assertEquals( $init['amount'], $actual['amount'] );\n\t\t};\n\t\t$assertNodes = [\n\t\t\t'headers' => [\n\t\t\t\t'Location' => $redirectTest,\n\t\t\t]\n\t\t];\n\n\t\t$this->verifyFormOutput( 'PaypalLegacyGateway', $init, $assertNodes, false, $session );\n\t}", "title": "" }, { "docid": "9871bf7996c4863ace02d761e008063b", "score": "0.4865007", "text": "function response_handler(){\n\tif(isset($_GET['request_id'])){\n\t\tglobal $woocommerce, $wp;\n\t\t$url = home_url($wp->request);\n\t\t$order = wc_get_order( $_GET['request_id'] );\n\t\tif($order != null){\n\t\t\t$quantity = $order->get_item_count();\n\t\t\tif($url == get_site_url() . '/accept'){\n\t\t\t\t$order->payment_complete();\n\t\t\t\t$order->reduce_order_stock();\n\t\t\t\t$woocommerce->cart->empty_cart();\n\t\t\t\t$order->add_order_note( 'Hey, your order is paid! Thank you!', true );\n\t\t\t\t$url = $order->get_checkout_order_received_url();\n\t\t\t\twp_safe_redirect( $url );\n\t\t\t\texit();\n\t\t\t}\n\t\t\tif($url == get_site_url() . '/decline'){\n\t\t\t\t$order->add_order_note( 'Card has been declined by the bank', false );\n\t\t\t\t$order->update_status( 'failed' );\n\t\t\t\tadd_filter( 'template_include', 'redirect_to_plugin_page');\n\t\t\t}\n\t\t\tif($url == get_site_url() . '/cancel'){\n\t\t\t\t$order->add_order_note( 'Transaction has been canceled by the user', false );\n\t\t\t\t$order->update_status( 'cancelled' );\n\t\t\t\tadd_filter( 'template_include', 'redirect_to_plugin_page', 99);\n\t\t\t}\n\t\t}else{\n\t\t\tstatus_header( 404 );\n\t nocache_headers();\n\t include( get_query_template( '404' ) );\n\t exit();\n\t\t}\n\t}\n}", "title": "" }, { "docid": "1c8ea48884f4b62957c50e65479afce0", "score": "0.4863039", "text": "public function getWizardStep() {\n return $this->wizardStep;\n }", "title": "" }, { "docid": "dd7d63db787a303983c4b3eba925fe63", "score": "0.48382777", "text": "public function has_step( $step_id ) {\n\n\t\treturn ! empty( $this->steps[ $step_id ] );\n\t}", "title": "" }, { "docid": "3cf3bc8e9e375ae5f442459454647447", "score": "0.48335242", "text": "public function check_redirect_after_donation($post_id) {\n $redirect_url = '';\n $redirect_id = get_post_meta( $post_id, 'transact_redirect_after_donation' , true );\n if (is_numeric($redirect_id) && $redirect_id > 0) {\n $redirect_url = get_page_link($redirect_id);\n }\n return $redirect_url;\n }", "title": "" }, { "docid": "7e3e78a51b83288051539516b7e64b67", "score": "0.4828335", "text": "protected function ProcessStep()\n {\n if ($this->IsChangeShipToBillingStateRequest() || $this->PreventProcessStepMethodFromExecuting()) {\n $bContinue = false;\n } else {\n $bContinue = parent::ProcessStep();\n\n $bContinue = $this->ValidateStepData() && $bContinue;\n\n if ($bContinue) {\n $bContinue = $this->UpdateUser($this->GetUserData());\n // if we ship to billing address, we update only the primary address and change the secondary address to match this\n if (false !== $bContinue && '1' == $this->GetShipToBillingAddress()) {\n $oUser = self::getExtranetUserProvider()->getActiveUser();\n switch ($this->AddressUsedAsPrimaryAddress()) {\n case TdbDataExtranetUserAddress::FORM_DATA_NAME_SHIPPING:\n $this->UpdateShippingAddress($this->GetShippingAddressData());\n if (false == $oUser->ShipToBillingAddress()) {\n // we need to set the billing address based on the shipping address\n if (!empty($oUser->id)) {\n $oUser->SetAddressAsBillingAddress($oUser->fieldDefaultShippingAddressId);\n } else {\n $oShippingAddress = $oUser->GetShippingAddress(true);\n if (null !== $oShippingAddress) {\n $oUser->UpdateBillingAddress($oShippingAddress->sqlData);\n }\n }\n $oUser->GetBillingAddress(true);\n }\n break;\n default:\n case TdbDataExtranetUserAddress::FORM_DATA_NAME_BILLING:\n $this->UpdateBillingAddress($this->GetBillingAddressData());\n // we need to set the billing address based on the shipping address\n if (!empty($oUser->id)) {\n $oUser->SetAddressAsShippingAddress($oUser->fieldDefaultBillingAddressId);\n } else {\n $oBillingAddress = $oUser->GetBillingAddress(true);\n if (null !== $oBillingAddress) {\n $oUser->UpdateShippingAddress($oBillingAddress->sqlData);\n }\n }\n $oUser->GetShippingAddress(true);\n break;\n }\n } else {\n $this->UpdateBillingAddress($this->GetBillingAddressData());\n $this->UpdateShippingAddress($this->GetShippingAddressData());\n }\n }\n }\n\n return $bContinue;\n }", "title": "" }, { "docid": "efdc59be3b18a4e0ac6ffec5dd4e65bb", "score": "0.48224753", "text": "public static function check_payment_page_data() {\n\t\tif ( is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! empty( $_POST['payment_type'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$payment_page = get_theme_mod( 'inventor_general_payment_page' );\n\n\t\tif ( ! $payment_page || ! is_page( $payment_page ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! empty( $_POST ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$pricing_page = get_post_type_archive_link( 'pricing_table' );\n\n\t\tif ( $pricing_page ) {\n\t\t\twp_redirect( $pricing_page );\n\t\t\texit();\n\t\t}\n\t}", "title": "" }, { "docid": "dc5813387b4b46d7cf07e14e6cb500a0", "score": "0.48170677", "text": "public function process_sent_payment()\n { \n if (!isset($_GET['transaction_id']) || !isset($_GET['tx_ref'])) {\n echo json_encode(array('error' => true, 'message' => 'Payment is not confirmed'));\n return;\n }\n $transaction_ref = $_GET['tx_ref'];\n \n //avoid calling undefined WC_Payment_Gateway by abstracting the validation\n $response = Flutterwave_Controller::get_instance()->validate_payment($transaction_ref, (int)$_GET['transaction_id']);\n\n if ($response) {\n echo json_encode(array('error' => false, 'message' => 'Payment is confirmed'));\n } else {\n echo json_encode(array('error' => true, 'message' => 'Payment was not confirmed'));\n }\n }", "title": "" }, { "docid": "14e4dca12a668a3850291a0e49f6b518", "score": "0.4811921", "text": "public function update(StepRequest $request, $id)\n {\n StepOp::_update($request, $id);\n toastr()->success(trans('local.updated_success'));\n return redirect()->route('steps.index');\n }", "title": "" }, { "docid": "5a53432f187ad61896f4dc55c1777775", "score": "0.47957686", "text": "function process_payment($order_id){\n\t\t\tif ( version_compare( WOOCOMMERCE_VERSION, '2.0.0', '>=' ) ) {\n\t\t\t\t$order = new WC_Order($order_id);\n\t\t\t } else {\n\t\t\t\t$order = new woocommerce_order($order_id);\n\t\t\t}\n\t\t\treturn array('result' => 'success', 'redirect' => add_query_arg('order',\n\t\t\t\t$order->id, add_query_arg('key', $order->order_key, $order->get_checkout_payment_url( true )))\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "e4f734cc5e95f3c419a1cfda0bb97482", "score": "0.47903508", "text": "public function process_payment( $order_id ) {\n\n $order = wc_get_order( $order_id );\n \n // Mark as on-hold (we're awaiting the payment)\n $order->update_status( 'on-hold', __( 'Awaiting Digital River payment', 'woocommerce-gateway-digitalriver' ) );\n \n // Reduce stock levels\n $order->reduce_order_stock();\n \n // Remove cart\n if ( isset( WC()->cart ) ) {\n WC()->cart->empty_cart();\n }\n\n // Return thank you page redirect\n return array(\n 'result' \t=> 'success',\n 'redirect'\t=> $this->get_return_url( $order )\n );\n }", "title": "" }, { "docid": "74d1f6c83a86470219312a5525a17655", "score": "0.47885868", "text": "private function getCurrentStep()\n\t{\n\t\treturn $_SESSION['LANDING_DEMO_STORAGE']['STEP_ID'];\n\t}", "title": "" }, { "docid": "2ed33599535de556b71ac3e2d194f262", "score": "0.4788388", "text": "public function pay_for_order( $order_id ) {\n\t\t\t\n\t\t\t\n\t\t\t$order = new WC_Order( $order_id );\n\t\t\techo '<p>' . 'Redirecting to payment provider.' . '</p>';\n\t\t\t// add a note to show order has been placed and the user redirected\n\t\t\t$order->add_order_note( 'Order placed and user redirected.');\n\t\t\t// update the status of the order should need be\n\t\t\t$order->update_status( 'on-hold', 'Awaiting payment.' );\n\t\t\t// remember to empty the cart of the user\n\t\t\tWC()->cart->empty_cart();\n\n\t\t\t// perform a click action on the submit button of the form you are going to return\n\t\t\twc_enqueue_js( 'jQuery( \"#submit-form\" ).click();' );\n\n\t\t\t$payment_url = wp_is_mobile() ? \"https://rt05.kasikornbank.com/mobilepay/payment.aspx\" : \"https://rt05.kasikornbank.com/pgpayment/payment.aspx\";\n\t\t\t$url2 = get_home_url() . \"/?wc-api=wc_gateway_kbank\";\n\t\t\t$respurl = get_home_url() . \"/?wc-api=wc_gateway_kbank\";\n\t\t\t$amount = str_pad( ($order->order_total * 100), 12, \"0\", STR_PAD_LEFT);\n\t\t\t$kbankorder = str_pad( $order->get_order_number(),12,\"0\",STR_PAD_LEFT);\n\t\t\t$itemname = trim($this->get_firstorder_item_names( $order ));\n\t\t\t$str4md5 = $this->merchantid.$this->terminalid.$amount. $url2. $respurl . $_SERVER['REMOTE_ADDR'] . $itemname . $kbankorder . $this->secretkey;\n\t\t\t$checksum = md5($str4md5) ;\n\n\t\t\t\t\n\t\t\t// return your form with the needed parameters\n\t\t\techo '<form action=\"' . $payment_url. '\" method=\"post\" target=\"_top\">\n\t\t\t\t<input type=\"hidden\" name=\"MERCHANT2\" value=\"'.$this->merchantid.'\">\n\t\t\t\t<input type=\"hidden\" name=\"TERM2\" value=\"'.$this->terminalid.'\">\n\t\t\t\t<input type=\"hidden\" name=\"AMOUNT2\" value=\"'. $amount .'\">\n\t\t\t\t<input type=\"hidden\" name=\"URL2\" value=\"' . $url2 . '\">\n\t\t\t\t<input type=\"hidden\" name=\"RESPURL\" value=\"' . $respurl . '\">\n\t\t\t\t<input type=\"hidden\" name=\"IPCUST2\" value=\"' . $_SERVER['REMOTE_ADDR'] . '\">\n\t\t\t\t<input type=\"hidden\" name=\"DETAIL2\" value=\"' . $itemname . '\">\n\t\t\t\t<input type=\"hidden\" name=\"INVMERCHANT\" value=\"'.$kbankorder.'\">\n\t\t\t\t<input type=\"hidden\" name=\"checksum\" value=\"'.$checksum.'\">\n\n\t\t\t\t<div class=\"btn-submit-payment\" style=\"display: none;\">\n\t\t\t\t\t<button type=\"submit\" id=\"submit-form\"></button>\n\t\t\t\t</div>\n\t\t\t</form>';\n\t\t\t\n\t\t\n\t\t}", "title": "" }, { "docid": "831364df229d2bc6d29cec78131c6bf2", "score": "0.47812158", "text": "protected function _paymentStepHandle()\n {\n // should we remove the payment method step..\n if (Mage::helper('sunarc_skipcheckout/data')->skipShippingMethod() == true) {\n $this->getUpdate()->addHandle('sunarc_checkout_skip_skip_shippingmethod');\n } // end\n }", "title": "" }, { "docid": "37abcb5ffbf5ae64bc16df82f9f73e89", "score": "0.4778944", "text": "function process_payment( $order_id ) {\n\t\t\tglobal $woocommerce;\n $order = new WC_Order( $order_id );\n // Mark as on-hold (we're awaiting the cheque)\n $order->update_status('on-hold', 'Awaiting BTPay payment');\n // Reduce stock levels\n $order->reduce_order_stock();\n // Remove cart\n $woocommerce->cart->empty_cart();\n\t\t\t// Return thankyou redirect\n\t\t\t\n\t\t\t$backend_url = IT_HIT_BACKEND . \"pay?user=%s&pass=%s&transactionId=%s&amount=%d&returnUrl=%s&failUrl=%s&description=%s&sandbox=%s\";\n\t\t\t$amount = $order->get_total();\n\t\t\t$returnUrl = $this->get_return_url($order) . \"&btpay_success=true\";\n\t\t\t$failUrl = IT_HIT_BACKEND . \"failed\";\n\t\t\t$description = \"Ati cumparat de pe un magazin online\";\n\t\t\t$backend_url = sprintf($backend_url, $this->username, $this->password, $order_id, $amount, $returnUrl, $failUrl, $description, $this->sandbox);\n return array(\n 'result' => 'success',\n 'redirect' => $backend_url\n );\n\t\t}", "title": "" }, { "docid": "a3959f6770e9ea7180225df7ab92af93", "score": "0.47725952", "text": "public function redirect()\n {\n $approvalUrl = $this->payment->getApprovalLink();\n\n if ($approvalUrl)\n return redirect()->away($approvalUrl);\n\n Flash::error('Unknown Error Occurred');\n return redirect()->route('payment_status')\n ->with('error', 'unknown error occurred');\n }", "title": "" }, { "docid": "b6ef933d6a8a3e566c04512ca29a1793", "score": "0.47693464", "text": "public static function checkStatusAndNextAction($enrolmentHash, $expectedProcessID)\n {\n $enrolmentData = AX_Enrolments::getEnrolmentByID($enrolmentHash);\n $AxcelerateAPI = new AxcelerateAPI();\n $enrolmentStatus = self::getCurrentStatus($enrolmentHash, $expectedProcessID);\n\n if (key_exists('error', $enrolmentStatus)) {\n error_log(print_r($enrolmentStatus, true));\n return null;\n } else {\n $status = $enrolmentStatus->STATUS;\n\n if (\"COMPLETE\" == $status || \"CHARGED\" == $status || \"PAYMENT_METHOD_PRESENT\" == $status) {\n\n $callbackURL = $enrolmentData['epayment_response_data']['CALLBACK'];\n if (!empty($callbackURL)) {\n $args = parse_url($callbackURL, PHP_URL_QUERY);\n if (!empty($args)) {\n $callbackURL = $callbackURL . '&ax_custom=';\n } else {\n $callbackURL = $callbackURL . '?ax_custom=';\n }\n $callbackURL = $callbackURL . $enrolmentData['epayment_submission_data']['passthrough']\n . '&ax_p=' . $enrolmentData['epayment_submission_data']['process'];\n }\n\n return array('epayment_redirect_success' => $callbackURL);\n } elseif (\"RUNING\" == $status || \"PAYMENT_METHOD_MISSING\" == $status) {\n //An existing request is currently identified as active.\n //Reject this, but add a button to \"check again\" which reloads the page?\n\n $ePayParams = $enrolmentData['epayment_submission_data'];\n\n $ePayParams['callback'] = $enrolmentData['epayment_response_data']['CALLBACK'];\n\n $oldID = $ePayParams['process'];\n\n if (!empty($ePayParams['ruleID'])) {\n $ePayParams['termID'] = $ePayParams['ruleID'];\n }\n $epayResponse = $AxcelerateAPI->callResource($ePayParams, '/accounting/external/debit_success/paymentrecord', 'POST');\n\n if ($epayResponse instanceof stdClass) {\n if (!empty($epayResponse->error)) {\n return array('epayment_failure' => true, 'epayment_error' => $epayResponse->resultBody);\n } else {\n //Update stored process id.\n AX_Enrolments::updateEnrolmentWithoutRefresh($enrolmentHash, $enrolmentData);\n //Currently this always throws an error :( See what we can fix!\n if (!empty($epayResponse->REDIRECT)) {\n return array('epayment_redirect_resume' => $epayResponse->REDIRECT);\n }\n }\n }\n\n return array('epayment_running' => true);\n } elseif (\"FAILED\" == $status || 'DECLINED' == $status) {\n\n $ePayParams = $enrolmentData['epayment_submission_data'];\n\n $ePayParams['callback'] = $enrolmentData['epayment_response_data']['CALLBACK'];\n\n $oldID = $ePayParams['process'];\n\n // need a new process ID...\n // Time is not the best option here. Instead we need to check the previous process and then update.\n $processID = wp_hash($enrolmentHash . '_' . 1);\n $ePayParams['process'] = $processID;\n\n //Store the previous process ID in the history\n if (key_exists('process_history', $enrolmentData)) {\n $oldIDs = $enrolmentData['process_history'];\n $processCount = count($oldIDs);\n //Get a new hash that won't conflict\n $processID = wp_hash($enrolmentHash . '_' . $processCount + 1);\n\n $oldIDs = array_push($oldIDs, $oldID);\n $enrolmentData['process_history'] = $oldIDs;\n\n } else {\n $enrolmentData['process_history'] = array($oldID);\n }\n $enrolmentData['epayment_submission_data']['process'] = $processID;\n\n $epayResponse = $AxcelerateAPI->callResource($ePayParams, '/accounting/external/debit_success/paymentrecord', 'POST');\n\n if ($epayResponse instanceof stdClass) {\n if (!empty($epayResponse->error)) {\n return array('epayment_failure' => true, 'epayment_error' => $epayResponse->resultBody);\n } else {\n //Update stored process id.\n AX_Enrolments::updateEnrolmentWithoutRefresh($enrolmentHash, $enrolmentData);\n\n if (!empty($epayResponse->REDIRECT)) {\n return array('epayment_redirect_resume' => $epayResponse->REDIRECT);\n }\n }\n }\n //revert to error if broken.\n return array('epayment_failure' => true, 'epayment_error' => $epayResponse->resultBody);\n } elseif ('UNBEGUN' == $status) {\n //This should never occur.\n return array('epayment_failure' => true, 'epayment_error' => $epayResponse->resultBody, 'message' => \"Incorrect API response detected.\");\n\n } elseif ('FATAL' == $status) {\n error_log(print_r($epayResponse, true));\n return array('epayment_failure' => true, 'epayment_error' => $epayResponse->resultBody);\n } else {\n error_log(print_r($epayResponse, true));\n return array('epayment_failure' => true, 'epayment_error' => $epayResponse->resultBody);\n }\n }\n }", "title": "" }, { "docid": "29b8d7a5ee8b58ebb4bb690ecb289752", "score": "0.4767897", "text": "private function failedPayment($payment_id)\n {\n $this->checkoutModel->addStock($this->checkoutModel->getTicketsByPaymentId($payment_id));\n }", "title": "" }, { "docid": "67b167e5aa274bfe8dc23d67f6e2d24d", "score": "0.4755789", "text": "public function processBookingRedirectAction()\n {\n return $this->redirectToLangRoute('_deals_booking', array(), 301);\n }", "title": "" }, { "docid": "738eb5329368a050091071857e7fd341", "score": "0.4752481", "text": "public function request(): void\n\t{\n\t\t$redirect = $this->input->getBase64('redirect');\n\n\t\tif (empty($redirect))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$transactionId = '';\n\t\t$pid = '';\n\t\t$uri = Uri::getInstance(base64_decode($redirect));\n\n\t\tif ($uri->hasVar('transactionId'))\n\t\t{\n\t\t\t$transactionId = $uri->getVar('transactionId');\n\t\t}\n\n\t\tif ($uri->hasVar('pid'))\n\t\t{\n\t\t\t$pid = $uri->getVar('pid');\n\t\t}\n\n\t\tif (empty($transactionId) || empty($pid))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tBaseDatabaseModel::addIncludePath(\n\t\t\tJPATH_SITE . '/components/com_jdidealgateway/models'\n\t\t);\n\t\t/** @var JdidealgatewayModelCheckideal $model */\n\t\t$model = $this->getModel('Checkideal', 'JdidealgatewayModel');\n\t\t$userName = $model->getUsername($transactionId, $pid);\n\n\t\tif ($userName\n\t\t\t&& Factory::getApplication()->login(\n\t\t\t\t[\n\t\t\t\t\t'username' => $userName,\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'entry_url' => $uri->toString(),\n\t\t\t\t\t'source' => 'RO Payments',\n\t\t\t\t\t'skip_joomdlehooks' => true,\n\t\t\t\t]\n\t\t\t) === false)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->setRedirect($uri->toString());\n\t\t$this->redirect();\n\t}", "title": "" }, { "docid": "cc0ab8b63a91570a8dac2591dc920b47", "score": "0.47480482", "text": "public function quickReminderOrderRedirect($id = false)\n {\n if($id)\n {\n // The data variable to be passed to the view.\n $data = [];\n\n // Get the reminder from the ID.\n $reminder = $this->_quickReminderRepository->getQuickReminderById($id);\n\n if($reminder)\n {\n $payment = $this->_mollie->payments->get($reminder->payment_id);\n\n // Check if the payment is successful.\n if ($payment->isPaid())\n {\n // Update the reminder & set the message.\n $this->_quickReminderRepository->updateQuickReminder($reminder->id, [\"is_payed\" => true]);\n $data[\"message\"] = \"We received your payment successfully!\";\n }\n else\n {\n $data[\"message\"] = \"There were some problems with your payment.\";\n }\n\n return view('home.paymentcomplete', $data);\n }\n }\n\n // Redirect if there is no ID given OR if the reminder isn't found (deleted/sent/invalid).\n return view('home.index');\n }", "title": "" }, { "docid": "7d0acec840b46a3752946d0f564da5cd", "score": "0.47275352", "text": "public function process_payment($order_id)\n {\n\n $order = wc_get_order($order_id);\n\n $status = 'wc-' === substr($this->order_status, 0, 3) ? substr($this->order_status, 3) : $this->order_status;\n\n // Set order status\n $order->update_status($status, __('Checkout with custom payment. ', $this->domain));\n\n // Reduce stock levels\n // depreceiated // $order->reduce_order_stock();\n //$order->reduce_stock_levels();\n\n // Remove cart\n WC()->cart->empty_cart();\n\n // Return thankyou redirect\n return array(\n 'result' => 'success',\n 'redirect' => $this->get_return_url($order)\n );\n }", "title": "" }, { "docid": "7761bfdc438ec5a061ce931706636589", "score": "0.47268122", "text": "public static function setStepItemIDToEmpty()\n {\n self::$stepItemID = self::EMPTY_ID;\n }", "title": "" }, { "docid": "275f6ed4000091591c44fe31278dd59b", "score": "0.47128797", "text": "public function validateId($sid, Request $request) {\n /** @var \\Drupal\\webform\\WebformSubmissionInterface $submission */\n $submission = $this->entityTypeManager()->getStorage('webform_submission')->load($sid);\n if ($submission) {\n $data = $submission->getData();\n if (array_key_exists('paid', $data) && array_key_exists('transaction_reference', $data)) {\n $tid = $data['transaction_reference'];\n $refId = $request->query->get('tid');\n if ($tid === $refId) {\n update_paid($sid, payment_status('success'));\n $output = \"<p>Congratulations! You have successfully registered. </br>Thank you for your contribution.</p>\";\n $this->messenger()->addMessage(Markup::create($output));\n }\n }\n }\n return $this->redirect('<front>');\n }", "title": "" }, { "docid": "61bbdd5695ba8d862941d302e8f65a99", "score": "0.47028056", "text": "function process_payment( $order_id ) {\r\n\r\n\t\t\t$order = new WC_Order( $order_id );\r\n\r\n\t\t\treturn array(\r\n\t\t\t\t'result' => 'success',\r\n\t\t\t\t'redirect' => add_query_arg( 'order', $order->id, add_query_arg( 'key', $order->order_key, get_permalink( woocommerce_get_page_id('pay') ) ) )\r\n\t\t\t);\r\n\t\t}", "title": "" }, { "docid": "17230a7ff2bc5df2d58ee92aeba254ac", "score": "0.47018188", "text": "public function failedAction() {\n Shopware()->Session()->offsetUnset(\"nfxLastAPICall\");\n $request = $this->Request();\n //$this->View()->nfxErrorMessage = Shopware()->Session()->nfxErrorMessage;\n //Shopware()->Session()->offsetUnset('nfxErrorMessage');\n $plugin = $this->Plugin();\n $plugin->logAction(\"FAILED:\");\n foreach ($request->getParams() as $key => $value) {\n $plugin->logAction(\"\\t$key => $value\");\n if($key == \"msg\" && !Shopware()->Session()->nfxErrorMessage){\n Shopware()->Session()->nfxErrorMessage = $value;\n //$this->View()->nfxErrorMessage = Shopware()->Session()->nfxErrorMessage;\n }\n }\n Shopware()->Db()->update(\"hypercharge_orders\", array('status' => -1), \"sessionId = '\" . Shopware()->SessionID() . \"' AND status = 0\");\n //we want to display the error message above the payment method\n Shopware()->Session()->nfxFailedAction = true;\n $this->redirect(array('controller' => 'checkout', 'action' => 'confirm','forceSecure' => true));\n return;\n }", "title": "" }, { "docid": "d8b75e1d819c9d7172ce142a4f5317a5", "score": "0.469606", "text": "public function redirectPayment()\n\t{\n\t\t$paymentRequestData = $this->sessionStorage->getPlugin()->getValue('nnPaymentData');\n\t\t$orderNo = $this->sessionStorage->getPlugin()->getValue('nnOrderNo');\n\t\t$paymentRequestData['order_no'] = $orderNo;\n\t\t$paymentUrl = $this->sessionStorage->getPlugin()->getValue('nnPaymentUrl');\n\n\t\treturn $this->twig->render('Novalnet::NovalnetPaymentRedirectForm', [\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'formData' => $paymentRequestData,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'nnPaymentUrl' => $paymentUrl\n\t\t\t\t\t\t\t\t ]);\n\t}", "title": "" }, { "docid": "fbbc571ba00608f3572e122a373c8169", "score": "0.46885914", "text": "function validate() {\n\t\tparent::validate();\n\t\t$journal = &Request::getJournal();\n\t\tif (!isset($journal) || !Validation::isProofreader($journal->getJournalId())) {\n\t\t\tValidation::redirectLogin();\n\t\t}\n\t}", "title": "" }, { "docid": "f8cd261a7d8b6ef12ca5081fafc6705c", "score": "0.46884313", "text": "public function handle_payment_request() {\n\t\t\tob_start();\n\t\t\tif ( ! empty( $_POST['terms-field'] ) && empty( $_POST['terms'] ) ) {\n\t\t\t\twp_send_json( [\n\t\t\t\t\t'result' => 'failure',\n\t\t\t\t\t'messages' => 'Please read and accept the terms and conditions to proceed with your order.',\n\t\t\t\t\t'step' => 'existing_order'\n\t\t\t\t] );\n\t\t\t}\n\n\t\t\tif ( $_SERVER['REQUEST_METHOD'] !== 'POST' || ! isset( $_POST['woocommerce-pay-nonce'] ) || ! isset( $_POST['order_id'] ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$nonce_value = $_POST['woocommerce-pay-nonce'];\n\n\t\t\tif ( ! wp_verify_nonce( $nonce_value, 'woocommerce-pay' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$response = $this->process_payment( $_POST['order_id'] );\n\n\t\t\twp_send_json( $response );\n\t\t}", "title": "" }, { "docid": "f44fd8e1fa0ac7d61c89b28214d40ab9", "score": "0.46879473", "text": "protected function _session_check() {\n\t\t\n\t\t$this->_query('service', SHCSSO_SERVICE_URL . '?' . SHCSSO_QUERYSTRING_PARAM . '=_validate&sso_check')\n\t\t\t->_query('sourceSiteid', SSO_Utils::options('sso_site_id'))\n\t\t\t->_query('gateway','true')\n\t\t\t->_url();\n\t\t\t\n\t\t\t\n\t\tSSO_Utils::view('redirect', array('url' => $this->url));\n\t}", "title": "" }, { "docid": "dded8f2b06fd396ccd26b8c115a9270e", "score": "0.46874318", "text": "public function failureAction()\n {\n $orderId = $this->getRequest()->getParam('order_id');\n if (empty($orderId)) {\n $this->_redirectUrl($this->getFailureUrl());\n } else {\n if (Mage::helper('postfinancecheckout_payment')->hash($orderId) != $this->getRequest()->getParam('secret')) {\n Mage::throwException('Invalid secret.');\n }\n\n /* @var Mage_Sales_Model_Order $order */\n $order = Mage::getModel('sales/order')->load($orderId);\n /* @var PostFinanceCheckout_Payment_Model_Payment_Method_Abstract $methodInstance */\n $methodInstance = $order->getPayment()->getMethodInstance();\n $methodInstance->fail($order);\n\n $this->_redirectUrl($this->getFailureUrl($order));\n }\n }", "title": "" }, { "docid": "1badef3ca752a4aab205e1b70d0ab883", "score": "0.46861327", "text": "function process_payment( $order_id ) {\r\n\r\n\t\t$order = wc_get_order( $order_id );\r\n\t\treturn array(\r\n\t\t\t'result' \t=> 'success',\r\n\t\t\t'redirect'\t=> $order->get_checkout_payment_url( true )\r\n\t\t);\r\n\r\n\t}", "title": "" }, { "docid": "ee3fd4e3752167e0e5df37c16123a8ef", "score": "0.4682728", "text": "public function forceDelete(User $user, Step $step)\n {\n return $user->id === $step->user_id;\n }", "title": "" }, { "docid": "c1adb4a6457472cc776dfcacf6d36eef", "score": "0.46736455", "text": "public function redirectToGateway(Request $request)\n {\n $request->validate([\n 'amount' => 'required|string|max:255',\n ]);\n\n return Paystack::getAuthorizationUrl()->redirectNow();\n }", "title": "" }, { "docid": "452a05650bcde381823bfa665fac4dd2", "score": "0.4673179", "text": "function no_id_redirect($num_items) {\n $min_item = 1;\n \n if (!isset($_GET) || !isset($_GET[\"id\"]) || $_GET[\"id\"] > $num_items || $_GET[\"id\"] < $min_item) {\n redirect_to(url_for(\"/404\"));\n }\n }", "title": "" }, { "docid": "0bd0b2cb6c3e34adf708334a1e3fcd70", "score": "0.46675283", "text": "public function payInvestment ($id) {\n if (\\Auth::check()) {\n\n // check if user has provided bank details\n if (!is_null(\\Auth::user()->user_bank)) {\n // user provided bank detail\n return redirect()\n ->route('index-investment-payment', $id);\n } else {\n // user haven't provided bank detail\n session()->put('url.intended', route('index-investment-payment', $id)); \n return redirect()\n ->route('get-user-settings');\n }\n } else {\n // setting intended url\n session()->put('url.intended', route('index-investment-payment', $id));\n\n return redirect()\n ->route('get-user-login');\n }\n \n }", "title": "" }, { "docid": "9cd8557917a3b025328c93cf379fa0be", "score": "0.46578342", "text": "public function getDeclineRedirectRoute()\n {\n return self::OPS_CONTROLLER_ROUTE_PAYMENT . 'decline';\n }", "title": "" }, { "docid": "b470facf5ce7d41cb6bf9c9aa66b3875", "score": "0.46573192", "text": "function woo_custom_redirect_after_purchase() {\n\tglobal $wp;\n\tif ( $wp->query_vars['pagename'] == 'sprawdzanie-statusu-platnosci') {\n\t\twp_redirect( 'http://kofeina24.pl/zamowienie/order-received/' );\n\t\texit;\n\t}\n}", "title": "" }, { "docid": "79519904f967605e2718790ef8f50027", "score": "0.46517828", "text": "function process_payment( $order_id ) {\n\n\t\t\t$order\t= wc_get_order( $order_id );\n\n\t\t\tif ( $this->submission == 'form' ) {\n\t\t\t\t// FORM submission method\n \t\treturn array(\n \t \t'result' => 'success',\n \t\t\t'redirect'\t=> $order->get_checkout_payment_url( true )\n \t\t);\n\n \t} else {\n \t\t// URL submission method\n \t\tinclude_once( 'class-wc-gateway-worldpay-request.php' );\n \t\t$worldpay_request = new WC_Gateway_WorldPay_Request( $this );\n\n \t\treturn array(\n\t\t\t\t\t'result' => 'success',\n\t\t\t\t\t'redirect' => $worldpay_request->get_request_url( $order, self::status() )\n\t\t\t\t);\n\n \t}\n\n\t\t}", "title": "" }, { "docid": "315c4d3f8b9501e050b27b6a55da0ca9", "score": "0.46488228", "text": "private function get_step() {\n\n\t\tif ( ! isset( $this->step ) ) {\n\n\t\t\t$this->step = wpem_get_current_step();\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "6886dd81f8538d88dc25fdc74d58929d", "score": "0.46457675", "text": "public function process_payment( $order_id ) {\n\t\t\t$order = new WC_Order( $order_id );\n\t\t\t$this->inline_helper();\n\t\t\t$helper = new Two_Checkout_Inline_Helper();\n\t\t\tglobal $woocommerce;\n\t\t\t$woocommerce_version_formatted = str_replace( '.', '_', $woocommerce->version );\n\n\t\t\ttry {\n\t\t\t\t$order_params = [\n\t\t\t\t\t'currency' => get_woocommerce_currency(),\n\t\t\t\t\t'language' => strtoupper( substr( get_locale(), 0,\n\t\t\t\t\t\t2 ) ),\n\t\t\t\t\t'country' => strtoupper( $order->get_billing_country() ),\n\t\t\t\t\t'products' => $this->get_item( $order ),\n\t\t\t\t\t'return-method' => [\n\t\t\t\t\t\t'type' => 'redirect',\n\t\t\t\t\t\t'url' => add_query_arg( 'wc-api', 'payment_response', home_url( '/' ) ) . \"&pm={$order->get_payment_method()}\" . \"&order-ext-ref={$order->get_id()}\",\n\t\t\t\t\t],\n\t\t\t\t\t'test' => strtolower( $this->test_order ) === 'yes' ? '1' : '0',\n\t\t\t\t\t'order-ext-ref' => $order->get_id(),\n\t\t\t\t\t'customer-ext-ref' => $order->get_billing_email(),\n\t\t\t\t\t'src' => 'WOOCOMMERCE_' . $woocommerce_version_formatted,\n\t\t\t\t\t'mode' => 'DYNAMIC',\n\t\t\t\t\t'dynamic' => '1',\n\t\t\t\t\t'merchant' => $this->seller_id,\n\t\t\t\t];\n\n\t\t\t\t$order_params = array_merge( $order_params,\n\t\t\t\t\t$this->get_billing_details( $order ) );\n\t\t\t\t$order_params = array_merge( $order_params,\n\t\t\t\t\t$this->get_shipping_details( $order ) );\n\n\t\t\t\t$order_params['billing_address'] = $this->get_billing_details( $order );\n\t\t\t\t$order_params['shipping_address'] = $this->get_shipping_details( $order );\n\n\t\t\t\t$order_params['signature'] = $helper->get_inline_signature(\n\t\t\t\t\t$this->seller_id,\n\t\t\t\t\t$this->secret_word,\n\t\t\t\t\t$order_params );\n\n\n\t\t\t\treturn [\n\t\t\t\t\t'result' => 'success',\n\t\t\t\t\t'payload' => wp_json_encode( $order_params ),\n\t\t\t\t];\n\n\t\t\t} catch ( Exception $e ) {\n\t\t\t\twc_add_notice( $e->getMessage(), $notice_type = 'error' );\n\n\t\t\t\treturn [\n\t\t\t\t\t'result' => 'failure',\n\t\t\t\t\t'messages' => 'There has been an error processing your order',\n\t\t\t\t];\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "07c276ac63c52c1d6a5f9bbf636e0616", "score": "0.46437013", "text": "function redirect ( $order ) {\n\t\t\tglobal $woocommerce;\n\t\t\t$order \t = new WC_Order( (int) $order );\n\n\t\t\t// WC 3.0 compatibility\n \t$payment_method = is_callable( array( $order, 'get_payment_method' ) ) ? $order->get_payment_method() : $order->payment_method;\n\n\t\t\tif( $payment_method === $this->id ) {\n\t\t\t\t$url = $this->get_return_url( $order );\n\t\t\t\techo \"<meta http-equiv='Refresh' content='1; Url=\\\"$url\\\"'>\";\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8bf6b7ab58e019462dd77514b25b0fac", "score": "0.46423286", "text": "function woolman_camp_add_payment_validate($form, &$form_state) {\n $vals = $form_state['values'];\n if ($vals['method'] == 4 && !$vals['check_no']) {\n form_set_error('check_no', 'Please enter check #.');\n }\n if (!$vals['amount'] || !is_numeric($vals['amount'])) {\n form_set_error('amount', 'Please enter dollar amount paid.');\n }\n}", "title": "" }, { "docid": "4f833253a12e25c662c5bb71960bcbde", "score": "0.46339858", "text": "public function process_step() {\n\t\tif ( is_null( $this->status ) ) {\n\t\t\treturn new \\WP_Error( 'no_status_found', __( 'No valid affiliate status was selected for export.', 'affiliate-wp' ) );\n\t\t}\n\n\t\treturn parent::process_step();\n\t}", "title": "" }, { "docid": "79f8f8d12c8edcf446c0bd28695bb32c", "score": "0.46152475", "text": "function redirect_invalid_user($check = 'user_id', $destination = 'index.php', $protocol = 'http://') {\n\t\n\t// Check for the session item:\n\tif (!isset($_SESSION[$check])) {\n\t\t$url = $protocol . BASE_URL . $destination; // Define the URL.\n\t\theader(\"Location: $url\");\n\t\texit(); // Quit the script.\n\t}\n\t\n}", "title": "" }, { "docid": "2cc45d1c7b51017492da953816f0c6af", "score": "0.461466", "text": "function receipt_page( $order_id ) {\r\n\t\tglobal $woocommerce;\r\n\t\t\r\n\t\t//get current order\r\n\t\t$order = wc_get_order( $order_id ); // added code in Woo Commerce that needs to be changed\r\n\t\t$checkout_url = $order->get_checkout_payment_url( );\r\n\t\t\r\n\t\t// Check payment\r\n\t\tif ( ! $order_id ) {\r\n\t\t\twp_redirect($checkout_url);\r\n\t\t\texit;\r\n\t\t} else {\r\n\t\t\t$api_request_url = WC()->api_request_url( $this->callback );\r\n\t\t\t$listener_url = add_query_arg( 'order_id' , $order_id, $api_request_url );\r\n\t\t\t\t\t\t\r\n\t\t\t// Get the return url\r\n\t\t\t$return_url = $this->return_url = $this->get_return_url( $order );\r\n\r\n\t\t\t// get currency\r\n\t\t\t$order_currency = $order->get_currency();\r\n\t\t\t\r\n\t\t\t// Setup Paynow arguments\r\n\r\n\t\t\tif ($order_currency == \"USD\") {\r\n\t\t\t\t$MerchantId = $this->forex_merchant_id;\r\n\t\t\t\t$MerchantKey = \t$this->forex_merchant_key;\r\n\t\t\t} else {\r\n\t\t\t\t$MerchantId = $this->merchant_id;\r\n\t\t\t\t$MerchantKey = \t$this->merchant_key;\r\n\t\t\t}\r\n\r\n\t\t\t// $this->log('Merchant ID:' . $MerchantId);\r\n\r\n\t\t\t$ConfirmUrl = $listener_url;\r\n\t\t\t$ReturnUrl = $return_url;\r\n\t\t\t$Reference = \"Order Number: \" . $order->get_order_number();\r\n\t\t\t$Amount = $order->get_total();\r\n\t\t\t$AdditionalInfo = \"\";\r\n\t\t\t$Status = \"Message\";\r\n\t\t\t$custEmail = \t\t$order->billing_email;\r\n\r\n\t\t\t//set POST variables\r\n\t\t\t$values = array(\r\n\t\t\t\t'resulturl' => $ConfirmUrl,\r\n\t\t\t\t'returnurl' => $ReturnUrl,\r\n\t\t\t\t'reference' => $Reference,\r\n\t\t\t\t'amount' => $Amount,\r\n\t\t\t\t'id' => $MerchantId,\r\n\t\t\t\t'additionalinfo' => $AdditionalInfo,\r\n\t\t\t\t'authemail' => $custEmail, // customer email\r\n\t\t\t\t'status' => $Status\r\n\t\t\t);\r\n\t\t\t\t\t\t\r\n\t\t\t// should probably use static methods to have WC_Paynow_Helper::CreateMsg($a, $b);\r\n\t\t\t$fields_string = (new WC_Paynow_Helper)->CreateMsg($values, $MerchantKey);\r\n\r\n\t\t\t$url = $this->initiate_transaction_url;\r\n\t\t\t\r\n\t\t\t// send API post request\r\n\t\t\t$response = wp_remote_request($url, [\r\n\t\t\t\t'timeout' => 45,\r\n\t\t\t\t'method' => 'POST',\r\n\t\t\t\t'body' => $fields_string\r\n\t\t\t]);\r\n\r\n\t\t\t// get the response from paynow\r\n\t\t\t$result = $response['body'];\r\n\t\t\t\r\n\t\t\tif($result)\r\n\t\t\t{\r\n\t\t\t\t$msg = (new WC_Paynow_Helper)->ParseMsg($result);\r\n\t\t\t\t\r\n\t\t\t\t// first check status, take appropriate action\r\n\t\t\t\tif ( strtolower( $msg[\"status\"] ) == strtolower( ps_error ) ){\r\n\t\t\t\t\twp_redirect($checkout_url);\r\n\t\t\t\t\texit;\r\n\t\t\t\t}\r\n\t\t\t\telseif ( strtolower($msg[\"status\"] ) == strtolower( ps_ok ) ){\r\n\t\t\t\t\r\n\t\t\t\t\t//second, check hash\r\n\t\t\t\t\t$validateHash = (new WC_Paynow_Helper)->CreateHash($msg, $MerchantKey);\r\n\t\t\t\t\tif ( $validateHash != $msg[\"hash\"] ) {\r\n\t\t\t\t\t\t$error = \"Paynow reply hashes do not match : \" . $validateHash . \" - \" . $msg[\"hash\"];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$theProcessUrl = $msg[\"browserurl\"];\r\n\r\n\t\t\t\t\t\t//update order data\r\n\t\t\t\t\t\t$payment_meta['BrowserUrl'] = $msg[\"browserurl\"];\r\n\t\t\t\t\t\t$payment_meta['PollUrl'] = $msg[\"pollurl\"];\r\n\t\t\t\t\t\t$payment_meta['PaynowReference'] = $msg[\"paynowreference\"];\r\n\t\t\t\t\t\t$payment_meta['Amount'] = $msg[\"amount\"];\r\n\t\t\t\t\t\t$payment_meta['Status'] = \"Sent to Paynow\";\r\n\r\n\t\t\t\t\t\t// if the post meta does not exist, wp calls add_post_meta\r\n\t\t\t\t\t\tupdate_post_meta( $order_id, '_wc_paynow_payment_meta', $payment_meta );\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t} elseif( strtolower($msg[\"status\"] ) == strtolower( ps_cancelled ) ){\r\n\t\t\t\t\twp_mail('[email protected]', 'WC Test', 'This is a cancelled test.');\r\n\t\t\t\t}else {\t\t\t\t\t\t\r\n\t\t\t\t\t//unknown status\r\n\t\t\t\t\t$error = \"Invalid status in from Paynow, cannot continue lah ;).\";\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 $error = \"Empty response from network request\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Choose where to go\r\n\t\t\tif(isset($error))\r\n\t\t\t{\t\r\n\t\t\t\twp_redirect($checkout_url);\r\n\t\t\t\texit;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{ \r\n\t\t\t\t// redirect user to paynow \r\n\t\t\t\twp_redirect($theProcessUrl);\r\n\t\t\t\texit;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ff4eceaed1b28ef6d556cdcae512ee7e", "score": "0.46116933", "text": "function process_payment($order_id) {\n\n\n\n\t\t$order = &new jigoshop_order($order_id);\n\n\n\n if ($this->validate_fields()) {\n\n $keys = array('id_type', 'id_number', 'office_phone', 'mobile_phone');\n\n foreach ($keys as $key) {\n\n $data = $_POST['pagosonline_' . $key];\n\n if (!empty($data)) {\n\n $meta_key = 'pagosonline_' . $key;\n\n $meta_data = mysql_real_escape_string($data);\n\n update_post_meta($order_id, $meta_key, $meta_data);\n\n update_user_meta($order->user_id, $meta_key, $meta_data);\n\n }\n\n }\n\n\n\n // maybe store the firm for future use?\n\n return array(\n\n 'result' \t=> 'success',\n\n 'redirect'\t=> add_query_arg('order', $order->id, add_query_arg('key', $order->order_key, get_permalink(get_option('jigoshop_pay_page_id'))))\n\n );\n\n } else {\n\n return array('result' => 'error');\n\n }\n\n\t}", "title": "" }, { "docid": "b0e282515b8b49f9c15abb753846d150", "score": "0.46097302", "text": "public function redirectAction()\r\n\t\t{\r\n\t\t\t// Load /app/code/community/Mage/Idealcheckoutclickandbuy/Model/Idealcheckoutclickandbuy.php\r\n\t\t\t$oIdealcheckoutclickandbuyModel = Mage::getSingleton('idealcheckoutclickandbuy/idealcheckoutclickandbuy');\r\n\r\n\r\n\t\t\t// Create transaction record and get URL to /idealcheckoutclickandbuy/setup.php\r\n\t\t\t$sIdealcheckoutclickandbuyUrl = $oIdealcheckoutclickandbuyModel->setupPayment();\r\n\r\n\r\n\t\t\t// redirect\r\n\t\t\theader('Location: ' . $sIdealcheckoutclickandbuyUrl);\r\n\t\t\texit();\r\n\t\t}", "title": "" }, { "docid": "d77ed1886f1d076189835e49b693a9b8", "score": "0.4601616", "text": "public function getRequiresOneStepPayment()\n {\n return $this->requires_one_step_payment;\n }", "title": "" }, { "docid": "c345c292ddd971f99ddc6eb8941fcdb9", "score": "0.46006113", "text": "public function delete(User $user, Step $step)\n {\n return $user->id === $step->user_id;\n }", "title": "" } ]
e3b750f4b3497d47533ee0ebc29feb89
ir a la pag para crear proyecto
[ { "docid": "a569fe574395225702f57d9692379c6d", "score": "0.0", "text": "public function createProject() {\n $tags = Tag::orderBy('es_name', 'asc')->get();\n $param = [\n 'tags' => $tags\n ];\n return view('projects.create', $param);\n }", "title": "" } ]
[ { "docid": "4ea72ce1c0c107c93a83b61a98098821", "score": "0.67324865", "text": "public function pagCrear(){\n $invernaderos= invernaderoPlantula::select('id','nombre')->orderBy('nombre', 'asc')->get();\n $aplicacion = ['Fungicida','Herbicida','Insecticida','Podas'];\n $tipoAplicacion = ['Sistema de riego','Al suelo','Al follaje'];\n return view('Plantula/aplicaciones/crear')->with([\n 'invernaderos' => $invernaderos,\n 'aplicacion'=>$aplicacion,\n 'tipoAplicacion'=>$tipoAplicacion\n ]);\n }", "title": "" }, { "docid": "1307a8a2c94db23cb28690fc59f2594a", "score": "0.66799295", "text": "function action_creates_from_project()\n {\n Page::createFromProject($this->project);\n $this->redirectTo(['action' => 'list']);;\n }", "title": "" }, { "docid": "74397c5fe73bc6fb0450a2726185976e", "score": "0.667855", "text": "public function crear(){\n Utils::isIdentity();\n require_once 'views/producto/crear.php';\n }", "title": "" }, { "docid": "478502387e1860a6d789c62dd08342ce", "score": "0.6675021", "text": "public function crear(){\n Utils::isAdmin();\n require_once 'views/producto/crear.php';\n }", "title": "" }, { "docid": "11b30ef1a86a587e29695501040e39f4", "score": "0.66403466", "text": "public function create() //la empresa focuseada en la que crearemos el proceso\n {\n\n \n }", "title": "" }, { "docid": "8a859d1b1958d724156edf3045bcb0be", "score": "0.66066444", "text": "function crearPaginaFull() {\n\tglobal $pag_titulo;\n\tglobal $pag_scripts;\n\tglobal $pag_estilos;\n\tglobal $pag_contenido;\n\tglobal $pag_cabecera;\n\tglobal $pag_col_der;\n\tglobal $pag_col_izq;\n\tglobal $pag_pie;\n\tglobal $Tema;\n\tglobal $div_errores;\n\tglobal $div_mensajes;\n\tglobal $menu_principal;\n\t\n\t$pag_titulo = obtenerTituloApp();\n\t$pag_scripts = crearScripts();\n\t$pag_estilos = crearEstilos();\n\t$pag_cabecera = crearEncabezado();\n\t$pag_col_izq = crearColIzq();\n\t$pag_col_der = crearColDer();\n\t$pag_pie = crearPiePag();\n\t$div_errores = crearErrores();\n\t$div_mensajes = crearMensajes();\n\trequire_once($Tema);\n}", "title": "" }, { "docid": "f0bb26c196125dba315c3ad85984dfcf", "score": "0.65911317", "text": "function crear() {\n $objAlmacenista = new PrestamoModel();\n\n $sql = \"SELECT * FROM pag_almacenista\";\n\n $almacenista = $objAlmacenista->select($sql);\n\n $objAlmacenista->cerrar();\n //aqui empieza el select para la jornada\n $objJornada = new PrestamoModel();\n\n $sql = \"SELECT * FROM pag_jornada\";\n\n $jornada = $objJornada->select($sql);\n\n $objJornada->cerrar();\n include_once(\"../view/Prestamo/prestamo/crear.html.php\");\n }", "title": "" }, { "docid": "539168600080a6bd3390da7b939568b7", "score": "0.65057224", "text": "public function Carregar_Pagina()\n {\n $view = new View_Orcamentos();\n \n $orcamentos = DAO_Orcamento::BuscarIndiceTodos($this->indice);\n if (!empty($orcamentos)) {\n $controller_orcamento = new Controller_Orcamento();\n $view_orcamento = $controller_orcamento->Retornar_Pagina();\n $view_orcamento->set_pagina(Controller_Orcamento::ORCAMENTOS);\n $view->set_view_orcamento($view_orcamento);\n $view->set_orcamentos($orcamentos);\n }\n \n $view->Executar();\n }", "title": "" }, { "docid": "6f109a8034b6ceeab8bbffd994191d0b", "score": "0.64742416", "text": "public function create()\n\t{\n $paises=Pais::orderBy('id','asc')->paginate(50);\n // return view('horario.create',compact('servicios','localidades','tipos')); \n return view('publicacion.create',compact('paises')); \n \n\t}", "title": "" }, { "docid": "cc216189093deda4d623829ae7c20ee5", "score": "0.6460096", "text": "public function generateProject() {\n $ret = $this->getData(); //obtiene la estructura y el contenido del proyecto\n $plantilla = $ret[ProjectKeys::KEY_PROJECT_METADATA][\"plantilla\"]['value'];\n $ret[ProjectKeys::KEY_PROJECT_METADATA][\"fitxercontinguts\"]['value'] = $destino = $this->id.\":\".end(explode(\":\", $plantilla));\n\n //1. Crea el archivo 'continguts', en la carpeta del proyecto, a partir de la plantilla especificada\n $this->createPageFromTemplate($destino, $plantilla, NULL, \"generate project\");\n\n //3. Otorga, a cada 'person', permisos adecuados sobre el directorio de proyecto y añade shortcut\n $params = $this->buildParamsToPersons($ret[ProjectKeys::KEY_PROJECT_METADATA], NULL);\n $this->modifyACLPageAndShortcutToPerson($params);\n $this->forceFileComponentRenderization();\n\n\n //4. Establece la marca de 'proyecto generado'\n $ret[ProjectKeys::KEY_GENERATED] = $this->projectMetaDataQuery->setProjectGenerated();\n\n return $ret;\n }", "title": "" }, { "docid": "a41e559856a72ec57cc8cd6a8b17297f", "score": "0.64558136", "text": "public function create($id)\n {\n $oP = OrdenPagos::where([['estado', '1'], ['saldo', '>', 0]])->get();\n foreach ($oP as $data){\n if ($data->registros->cdpsRegistro[0]->cdp->vigencia_id == $id){\n $ordenPagos[] = collect(['info' => $data]);\n }\n }\n if (!isset($ordenPagos)){\n Session::flash('warning', 'No hay ordenes de pago disponibles para crear el pago. ');\n return redirect('/administrativo/pagos/'.$id);\n } else {\n return view('administrativo.pagos.create', compact('ordenPagos','id'));\n }\n }", "title": "" }, { "docid": "a8173daca91144b30273110f9096d09e", "score": "0.642975", "text": "public function agregar() \n\t{\n\t\t$data['title'] = 'Proyectos ';\n\t\t$cliente = $this->uri->segment(2);\n\t\t$this->form_validation->set_rules('project','Proyecto','required');\n\t\t$order = FALSE;\n\t\t$data['clientes'] = $this->clientes_model->get_clientes($cliente,$order);\n\t\t$type = $this->session->userdata('type');\n\t\tif($this->form_validation->run() === FALSE)\n\t\t{\t\t\n\t\t\t$this->load->view('templates/header_creardocs',$data);\n\t\t\tif ($type === 'admin')\n\t\t\t{\n\t\t\t\t$this->load->view('templates/logo');\n\t\t\t\t$this->load->view('clientes/agregar',$data);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$this->load->view('templates/logo');\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$data['title'] = 'Proyectos ';\n\t\t\t$data['projects'] = $this->clientes_model->set_proyecto();\n\t\t\t$this->load->view('templates/header',$data);\n\t\t\tif ($type === 'admin')\n\t\t\t{\n\t\t\t\t$this->load->view('templates/menu_admin');\n\t\t\t\t$this->load->view('templates/logo');\n\t\t\t\t$this->load->view('clientes/show_projects',$data);\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$this->load->view('templates/logo');\n\t\t\t}\n\t\t}\n\t\t$this->load->view('templates/footer');\n\t}", "title": "" }, { "docid": "90aac74620f0c782e2606d41fd166c8a", "score": "0.64274997", "text": "public function CrearCita(){\n //muestra todas las partes de la vista create\n require_once 'view/pages/header.php';\n require_once 'view/pages/create/create_cita.php';\n require_once 'view/pages/foot.php';\n }", "title": "" }, { "docid": "c005168e1cf77c279592585868543339", "score": "0.6402719", "text": "static public function ctrCrearFormaPago(){\n\t\tif(isset($_POST[\"accionFormaPago\"]) && $_POST[\"accionFormaPago\"] == \"crear\"){\n\t\t\t$fecha = date('Y-m-d');\n\t\t\t$hora = date('H:i:s');\n\t\t\t$fechaActual = $fecha.' '.$hora;\n\t\t\t$tabla = 'vtama_forma_pago';\n\t\t\t$codFormaPago = maximoCodigoTabla($tabla,'cod_forma_pago','');\n\t\t\t$datos = array(\"cod_forma_pago\" => $codFormaPago,\n\t\t\t\t\t\t \"dsc_forma_pago\" => ms_escape_string(trim($_POST[\"nombreFormaPago\"])),\n\t\t\t\t\t\t \"cod_usr_registro\" => $_SESSION[\"cod_trabajador\"],\n\t\t\t\t\t\t \"fch_registro\" => $fechaActual);\n\t\t\t$respuesta = ModeloFormaPago::mdlIngresarFormaPago($tabla,$datos);\n\t\t\treturn $respuesta;\n\t\t}//if\n\t}", "title": "" }, { "docid": "f984b2b5509645caea8b88e161e551a3", "score": "0.6387154", "text": "public function create($id)\n\t{\t\t\t\n $proyecto = Proyecto::find($id);\n\t\t$this->layout->title = 'Nuevo Riesgo Inicial';\n\t\t$this->layout->titulo = 'Gestión de Proyectos';\n\t\t$this->layout->nest(\n\t\t\t'content',\n\t\t\t'riesgos.create',\n\t\t\tarray(\n\t\t\t\t'proyecto' => $proyecto\t\t\t\t\t\t\n\t\t\t)\n\t\t);\n\t}", "title": "" }, { "docid": "beb2a7df0e3e3b7d85b11df97ade0d1c", "score": "0.63624126", "text": "public function create()\n {\n Proyecto::create(\n [\n \"titulo\" => request(\"titulo\"),\n \"url\" => request(\"url\"),\n \"descripcion\" => request(\"descripcion\")\n ]);\n\n\n return redirect()->route(\"listaproyecto\");\n\n }", "title": "" }, { "docid": "98df24d50e3c10f43cb209a55734a66f", "score": "0.6358673", "text": "function agregar_pago($pago){\n //Se insertan los datos del pago\n $this->db->insert('contratos_pagos', $pago);\n }", "title": "" }, { "docid": "a2a4464f3f2e0903b8d4c6a1febb638a", "score": "0.63366145", "text": "public function create()\n {\n\n $id_transaccion = 17;// 17 = Pagos de tesorería\n\n // Se obtiene el modelo según la variable modelo_id de la url\n $modelo = Modelo::find(Input::get('id_modelo'));\n\n $lista_campos = ModeloController::get_campos_modelo($modelo,'','create');\n $cantidad_campos = count($lista_campos);\n\n $tipo_transaccion = TipoTransaccion::find($id_transaccion);\n\n $lista_campos = ModeloController::personalizar_campos($id_transaccion,$tipo_transaccion,$lista_campos,$cantidad_campos,'create');\n\n $form_create = [\n 'url' => $modelo->url_form_create,\n 'campos' => $lista_campos\n ];\n\n $motivos = [''];//TesoDocController::get_motivos($id_transaccion);\n $medios_recaudo = TesoDocController::get_medios_recaudo();\n $cajas = TesoDocController::get_cajas();\n $cuentas_bancarias = TesoDocController::get_cuentas_bancarias();\n\n /*$registros = Tercero::all();\n //$vec_m[''] = ''; // si quito esto queda seleccionado el primer registro por defecto, entonces no tengo que hacer validaciones para evitar que este campo se vaya vacío \n foreach ($registros as $fila) {\n $vec_m[$fila->id]=$fila->apellido1.' '.$fila->apellido2.' '.$fila->nombre1.' '.$fila->razon_social; \n }*/ \n $terceros = [''];//$vec_m;\n\n $miga_pan = [\n ['url'=>'tesoreria?id='.Input::get('id'),'etiqueta'=>'Tesorería'],\n ['url'=>'web?id='.Input::get('id').'&id_modelo='.Input::get('id_modelo'),'etiqueta' => $modelo->descripcion ],\n ['url'=>'NO','etiqueta' => 'Crear nuevo' ]\n ];\n\n return view('tesoreria.pagos.create', compact( 'form_create','id_transaccion','motivos','miga_pan','medios_recaudo','cajas','cuentas_bancarias', 'terceros' ) );\n }", "title": "" }, { "docid": "68fe3b74f088b440a253589588918cee", "score": "0.6336071", "text": "public function crear($id = null){\n $datosDeProyecto = array();\n $transaccion = 1;\n if($id == null){\n\n }else{\n $Proyecto = $this->obtener($id);\n if(isset($Proyecto)){\n foreach($Proyecto as $p){\n $datosDeProyecto['IDPROYECTO'] = $p->IDPROYECTO;\n $datosDeProyecto['NOMBREPROYECTO'] = $p->NOMBREPROYECTO;\n $datosDeProyecto['FECHAPROYECTO'] = $p->FECHAPROYECTO;\n $datosDeProyecto['ESTADOPROYECTO'] = $p->ESTADOPROYECTO;\n $datosDeProyecto['SERIAL_DEP'] = $p->SERIAL_DEP;\n }\n }\n }\n \n $departamentos = DB::table('departamento')->get();\n $supervisores = $this->obtenerSupervisores(null);\n $catalogo = $this->obtenerCatalogoObjetivo(null);\n return view('proyectos.crearProyecto')->with(['departamento' => $departamentos,\n 'supervisores' => $supervisores,\n 'catalogo' => $catalogo])\n ->with($datosDeProyecto);\n }", "title": "" }, { "docid": "94582a50c6b258a0167cd36114e799b2", "score": "0.63117003", "text": "public function generarPagares(Request $request){\n if(!$request->ajax() || Auth::user()->rol_id == 11)return redirect('/');\n try{\n DB::beginTransaction();\n $intereses = 0;\n // Se crea el registro de la liquidacion\n $liquidacion = new Liquidacion();\n $liquidacion->id = $request->folio;\n $liquidacion->interes_ord = $request->intereses_ordinarios;\n $liquidacion->interes_mor = $request->intereses_moratorios;\n $liquidacion->fecha_ini_interes = $request->fecha_ini_interes;\n $liquidacion->nombre_aval = $request->nombre_aval;\n $liquidacion->direccion = $request->direccion_aval;\n $liquidacion->telefono = $request->telefono_aval;\n $liquidacion->nombre_aval2 = $request->nombre_aval2;\n $liquidacion->direccion2 = $request->direccion_aval2;\n $liquidacion->telefono2 = $request->telefono_aval2;\n $liquidacion->save();\n // El expediente pasa a status liquidado\n $expediente = Expediente::findOrFail($request->folio);\n $expediente->liquidado = 1;\n\n $pagares = $request->pagares;\n\n $pagaresContrato = Pago_contrato::select('id','pagado','contrato_id')\n ->where('contrato_id','=',$request->folio)\n ->where('pagado','=',1)\n ->orWhere('pagado','=',0)\n ->where('contrato_id','=',$request->folio)\n ->get();\n // Los pagares pendientes se cambian a liquidado\n foreach ($pagaresContrato as $pagaresAnteriores){\n $pagaresCambio = Pago_contrato::findOrFail($pagaresAnteriores->id);\n $pagaresCambio->pagado = 3;\n $pagaresCambio->save();\n }\n\n // Se crean los nuevos pagares.\n foreach($pagares as $ep=>$det)\n {\n $pagos = new Pago_contrato();\n $pagos->contrato_id = $request->folio;\n $pagos->num_pago = $ep;\n $pagos->monto_pago = $det['monto_pago'];\n $pagos->fecha_pago = $det['fecha_pago'];\n $pagos->restante = $det['monto_pago'];\n $pagos->pagado = 0;\n $pagos->tipo_pagare = 1;\n $pagos->save();\n\n $intereses += $det['monto_pago'];\n\n }\n\n $intereses -= $expediente->total_liquidar;\n $expediente->interes_ord = round($intereses,2);\n // Se crean los registros correspondientes a los interes Ordinarios\n if($expediente->interes_ord != 0){\n $gasto = new Gasto_admin();\n $gasto->contrato_id = $request->folio;\n $gasto->concepto = 'Interes Ordinario';\n $gasto->costo = $expediente->interes_ord;\n $gasto->fecha = $request->fecha_ini_interes;;\n $gasto->observacion = 'Intereses ordinarios al generar liquidación';\n $gasto->save();\n }\n\n $expediente->save();\n\n $contrato = Contrato::findOrFail($request->folio);\n $contrato->saldo += round($intereses,2);\n $contrato->save();\n DB::commit();\n\n } catch (Exception $e){\n DB::rollBack();\n }\n }", "title": "" }, { "docid": "f4e9cbb29a10af465e28d98174b46ee5", "score": "0.62974095", "text": "static public function ctrCrearProyecto(){\n\n\t\tif(isset($_POST[\"nuevoProyecto\"])){\n\n\t\t\tif(preg_match('/^[a-zA-Z0-9ñÑáéíóúÁÉÍÓÚ ]+$/', $_POST[\"nuevoProyecto\"])){\n\n\t\t\t\t$tabla = \"proyectos\";\n\n\t\t\t\t$datos = array(\"proyecto\" => $_POST[\"nuevoProyecto\"],\n\t\t\t\t\t \"etapa\" => $_POST[\"etapaProyecto\"],\n\t\t\t\t\t \"terreno\" => $_POST[\"terrenoProyecto\"],\n\t\t\t\t\t \"precio_lista\" => $_POST[\"precioProyecto\"],\n\t\t\t\t\t \"area\" => $_POST[\"areaProyecto\"]);\n\n\t\t\t\t$respuesta = ModeloProyectos::mdlIngresarProyecto($tabla, $datos);\n\n\t\t\t\tif($respuesta == \"ok\"){\n\n\t\t\t\t\techo'<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\t type: \"success\",\n\t\t\t\t\t\t title: \"El proyecto ha sido guardada correctamente\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\t\t\twindow.location = \"proyectos\";\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\n\t\t\t\t\t</script>';\n\n\t\t\t\t}\n\n\n\t\t\t}else{\n\n\t\t\t\techo'<script>\n\n\t\t\t\t\tswal({\n\t\t\t\t\t\t type: \"error\",\n\t\t\t\t\t\t title: \"¡El proyecto no puede ir vacía o llevar caracteres especiales!\",\n\t\t\t\t\t\t showConfirmButton: true,\n\t\t\t\t\t\t confirmButtonText: \"Cerrar\"\n\t\t\t\t\t\t }).then(function(result){\n\t\t\t\t\t\t\tif (result.value) {\n\n\t\t\t\t\t\t\twindow.location = \"proyectos\";\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\n\t\t\t \t</script>';\n\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "925bfead845bf63c848a1f2893e3dacc", "score": "0.62760127", "text": "public function enlacePaginasController(){\n\t\tif(isset($_GET['action'])){\n\t\t\t$enlace = $_GET['action'];\n\t\t}else{\n\t\t\t$enlace = 'registro_comprobante';\n\t\t}\n\t\t//peticion al modelo\n\t\t$peticion = Enlaces::enlacesPaginasModel($enlace);\n \t//mostrar peticion\n\t\tinclude $peticion;\n\t}", "title": "" }, { "docid": "bcc6239178a35c38ed4d49b6d44e412e", "score": "0.62674284", "text": "function pagoTeste () {\r\n // /* Generar nuevo pedido */\r\n // //Id mayor al Id del ultimo pedido , solo para pruebas\r\n // $idNuevoPedido = 1515;\r\n // // Generamos el pedido\r\n // $pedidoPagoPar = new Pagopar($idNuevoPedido ,$db);\r\n $public_key = \"\";\r\n $private_key = \"82636bffa10e70e7cd3d929b5ceb8b96\";\r\n $seller_public_key = \"bb984ecc72487ec5ad13d6ac065c3f5a\";\r\n // $result = $pedidoPagoPar->newTestPagoparTransaction($public_key,$private_key,$seller_public_key);\r\n \r\n $token = sha1($private_key.\"CIUDADES\");\r\n $args = ['token'=>$token,'token_publico'=>$seller_public_key];\r\n \r\n $response = runCurl($args, \"https://api.pagopar.com/api/ciudades/1.1/traer\");\r\n \r\n \r\n return json_decode($response);\r\n }", "title": "" }, { "docid": "b658f78811cccc8c35317f89bc53dd3a", "score": "0.6258531", "text": "public function create()\n {\n try\n {\n if (Auth::guest())\n {\n return Redirect::route('/');\n }\n else\n {\n //ACT 07-06-18: Enviamos organizaciones\n $organizations = \\Ermtool\\Organization::where('status',0)->lists('name','id');\n //Seleccionamos procesos que pueden ser padres\n $procesos = \\Ermtool\\Process::where('process_id',NULL)->lists('name','id');\n\n if (Session::get('languaje') == 'en') \n {\n return view('en.datos_maestros.procesos.create',['procesos'=>$procesos, 'organizations' => $organizations]);\n } \n else \n {\n return view('datos_maestros.procesos.create',['procesos'=>$procesos, 'organizations' => $organizations]);\n }\n }\n }\n catch (\\Exception $e)\n {\n enviarMailSoporte($e);\n return view('errors.query',['e' => $e]);\n }\n }", "title": "" }, { "docid": "182079d3219f77d9366bc0600f2b218c", "score": "0.6223727", "text": "public function create()\n {\n PermissionController::temPermissao('pagamentos.update');\n return view('pagtos.create');\n }", "title": "" }, { "docid": "2fc925f3f6fda0b271ede5900d09ff56", "score": "0.62181634", "text": "function cl_orcprojetolei() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"orcprojetolei\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "e98954143c532ef3472036885796ff6a", "score": "0.6202833", "text": "public static function bienvenido2(){\n echo \" bienvenidos de nuevo \" . Pagina::$url;\n \n }", "title": "" }, { "docid": "3024ef42780ca7ec2091221f5b801d80", "score": "0.6159627", "text": "public function create()\n {\n if(Auth::user()->tipo ==1){\n $produtos = Produto::all();\n return view('compras.create')->with('produtos', $produtos);\n } else {\n session()->flash('error', 'Acesso não autorizado!');\n return redirect('/');\n }\n }", "title": "" }, { "docid": "1d23fe4b5aee27ca7c5fb0d862a3f032", "score": "0.61467135", "text": "public function create()\n {\n $data['proceso'] = 'crea';\n $data['var'] = $this->var;\n $data['route'] = route($this->var);\n $data['view'] = link_view('Maestros', 'Costos', 'Proyectos', '');\n $data['header'] = headeroptions($this->var, 'crea', '', '');\n $data['pcgs'] = AccountingPlan::where('es_titulo', 2)->get();\n return view('projects.create', $data);\n }", "title": "" }, { "docid": "9bf5a332c5b73e2e601906de5e4ef11c", "score": "0.6136445", "text": "public function pagoEfectivoAction()\n {\n $containerHead = $this->view->headLink()->getContainer();\n\n unset($containerHead[count($containerHead) - 1]);\n\n $this->view->headLink()->appendStylesheet(\n $this->view->S('/css/empresa/empresa.layout.css'), 'all'\n );\n \n $this->view->headLink()->appendStylesheet(\n $this->view->S('/css/empresa/empresa.class.css'), 'all'\n \n );\n\n Zend_Layout::getMvcInstance()->assign(\n 'bodyAttr', array('id' => 'perfilReg', 'class' => 'noMenu')\n );\n $this->view->headScript()->appendFile(\n $this->view->S(\n '/js/empresa/empresa.misprocesos.js')\n );\n\n $sess = $this->getSession();\n $this->view->rol = $this->auth[\"usuario\"]->rol;\n $pos= strlen($sess->rowAnuncio['cip'])/2;\n $sess->rowAnuncio['cip']=substr($sess->rowAnuncio['cip'], $pos);\n $this->view->anuncioWeb = $sess->rowAnuncio;\n $medioPublicacion = $sess->rowAnuncio['medioPublicacion'];\n if ($medioPublicacion == 'aptitus y talan') $medioPublicacion = 'combo';\n\n $this->view->fhCierre = $this->_helper->Aviso->getFechaCierreImpresoByPaquete($medioPublicacion);\n $this->view->moneda = $this->_config->app->moneda;\n $this->view->igv = $this->_config->app->igv;\n }", "title": "" }, { "docid": "7c9a8bb429b74a6731c4583027bd365b", "score": "0.61292845", "text": "public function proyecto(Request $request,$id= '-1',$idCli= '-1') {\n\t $proyecto = Proyecto::find($id);\n\n\t # Get clientes\n $clientesForDropdown = Cliente::all();\n # Get estatus\n $estatusForDropdown = Proyecto::getEstatusDropDown();\n # Get conceptos\n $conceptos = [];\n\n\n $clienteSelected = $idCli;\n $estatusSelected = \"\";\n if($proyecto){\n $clienteSelected = $proyecto->cliente_id;\n $estatusSelected = $proyecto->estatus;\n\n $proyecto->calculoVariables($proyecto);\n $conceptos = Proyecto::getConceptos($proyecto->id,-1);\n $cliente = Cliente::find($proyecto->cliente_id);\n }\n else{\n $proyecto = new Proyecto;\n $proyecto->id = -1;\n $cliente = Cliente::find($idCli);\n }\n\n if(!$cliente){\n $cliente = new Cliente;\n $cliente->id = $idCli;\n }\n\n $proveedore = new Proveedore;\n $proveedore->id = -1;\n $cotizacione = new Cotizacione;\n $cotizacione->id = -1;\n\n $pagos = PagoCliente::where('proy_coti_id','=',$proyecto->id)->paginate(5,['*'], 'pagos_p');\n $cotizaciones = Cotizacione::where('proyecto_id','=',$proyecto->id)->paginate(5,['*'], 'cotizaciones_p');\n\n if (!$cotizaciones->isEmpty()) {\n foreach ($cotizaciones as $cotizacione) {\n $cotizacione->saldo = Cotizacione::getSaldo($cotizacione);\n }\n }\n\n return view('proyecto.proyecto')->\n with([ 'proyecto' => $proyecto,\n 'conceptos' => $conceptos,\n 'clientesForDropdown' => $clientesForDropdown,'clienteSelected'=>$clienteSelected,\n 'estatusForDropdown' => $estatusForDropdown,'estatusSelected'=>$estatusSelected,\n 'cliente' => $cliente,\n 'proveedore'=>$proveedore,\n 'pagos'=>$pagos,\n 'esCliente'=>1,\n 'cotizaciones'=>$cotizaciones,\n 'cotizacione'=>$cotizacione\n ]);\n\t}", "title": "" }, { "docid": "e9dc2138046be340c0c574e86ef008d4", "score": "0.61254936", "text": "public function criarAction()\n {\n if($this->usuario['tp_id']==5){\n $this->_redirect('index');\n }\n $this->modelArtePesca->insert($this->_getAllParams());\n\n $this->_redirect('arte-pesca/index');\n }", "title": "" }, { "docid": "4caa1e777defb9d4ca7ede7f18870fa8", "score": "0.6094957", "text": "public function retornaProjetoAction()\n {\n set_time_limit(0);\n $service = new Projeto_Service_Gerencia();\n $projeto = $service->retornaArrayCronogramaProjetoPorId($this->_request->getParams());\n $this->view->projeto = $projeto;\n// $this->_helper->json->sendJson($projeto);\n }", "title": "" }, { "docid": "55f4372fb71f651ca125afd6dfe64819", "score": "0.6069808", "text": "public function create()\n\t{\n\t\t$this->layout->title = 'Nuevo Cargo';\n\t\t$this->layout->titulo = 'Mantenimiento';\n\t\t$this->layout->nest(\n\t\t\t'content',\n\t\t\t'cargos.create',\n\t\t\tarray()\n\t\t);\n\t}", "title": "" }, { "docid": "2a9795e419edac5d0b37020673eca4fc", "score": "0.6066553", "text": "function crear(){\n $this->data['titulo'] = 'Listar Hojas de vida';\n //Se establece la vista de la barra lateral\n $this->data['menu'] = 'hojas_vida/menu_hojas_vida';\n //Se establece la vista que tiene el contenido principal\n $this->data['contenido_principal'] = 'hojas_vida/hojas_vida_view';\n //Se carga la plantilla con las demas variables\n $this->load->view('plantillas/template', $this->data);\n }", "title": "" }, { "docid": "c32b970c0290c221c6036aa508d849e0", "score": "0.60659415", "text": "public function pagar(){\nUtils::usuario(); \nif(isset($_GET['id'])){\n$id = $_GET['id'];\n$factura = new Factura();\n$factura->setId($id);\n$facturas = $factura->pagarfacturas();\nrequire_once 'views/facturas/pagar.php';\n} \n}", "title": "" }, { "docid": "198846ce984d0bbb9626d3daa1e790c5", "score": "0.60523987", "text": "public function create()\n {\n //\n\t\tif (Auth::check()) {\n\t\t\treturn view('tipoPagos.create');\t\t\n\t\t}\n\t\telse {\n\t\t\treturn view('auth/login');\n\t\t}\n }", "title": "" }, { "docid": "c7db2277d58d4e63d14b6de5bb417f52", "score": "0.60514796", "text": "public function create()\n\t{\n //echo \"uadacs\";\n $deportista = \\DB::table('usuarios')\n ->select('*')\n ->where('id', '=', '1')\n ->get();\n\n //dd($deportista);\n\n return view('deportista.objetivos.create',compact('deportista'));\n\t}", "title": "" }, { "docid": "ead0d78186ca93cbef28eba2b3485203", "score": "0.6037981", "text": "public function crearPropuesta()\n {\n //$propuestas=propuesta::all(),,compact('propuestas');\n return view(\"crearPropuesta\");\n }", "title": "" }, { "docid": "ce91d04d45aa8d7246053c4d749f3035", "score": "0.60081077", "text": "private function permiso_crear($parametros){\n if (count($this->id_org_acceso) <= 0){\n $this->cargar_acceso_nodos($parametros);\n } \n foreach ($this->id_org_acceso as $value) {\n if ($value[nuevo] == 'S'){\n return 'S';\n }\n } \n return 'N';\n }", "title": "" }, { "docid": "07dd819a23c1760080fbb5037fbb33f1", "score": "0.60023654", "text": "public function nuevoAction(){\n if($this->imprimirEjecucion){\n echo 'yyyyyyyyyyyEste si se usa';\n }\n //***Cargar un anuncion nuevo para una moto entidad producto\n //***obtener usuario en sesion, si no hay cree nueva instancia\n //***crear formulario con campos de producto, \n \n \n \n $peticion = $this->getRequest();\n \n $usuario = new Usuario(); \n $producto = new Products();\n \n //***Crear options para pasarle al combo de cajas de compensacion\n $options = array();\n $em = $this->getDoctrine()->getManager(); \n //***\n $fabricantes = $em->getRepository('EntidadesBundle:Manufacturers')->findBy(array('estado' => 'A'));\n foreach($fabricantes as $fabricante){\n $fabricantesOptions[$fabricante->getManufacturersId()] = $fabricante;\n }\n $cilindrajes = $em->getRepository('EntidadesBundle:Cilindraje')->findAll();\n $colores = $em->getRepository('EntidadesBundle:Color')->findAll();\n $opcionesProductos = $em->getRepository('EntidadesBundle:ProductsOptionsValues')->findAll();\n \n //***Armar mas combos para pasar\n $paises = $em->getRepository('EntidadesBundle:Pais')->findAll(); \n foreach ($paises as $paiss){\n $pais[$paiss->getId()] = $paiss->getDescripcion();\n }\n\n $departamentos = $em->getRepository('EntidadesBundle:Departamento')->findAll();\n foreach ($departamentos as $deptos){\n $departamento[$deptos->getId()] = $deptos->getDescripcion();\n }\n\n $ciudades = $em->getRepository('EntidadesBundle:Ciudad')->findAll();\n foreach ($ciudades as $city){\n $ciudad[$city->getId()] = $city->getDescripcion();\n }\n\n $options = array('fabricantes' => $fabricantesOptions, \n 'cilindrajes' => $cilindrajes, \n 'opcionesProductos' => $opcionesProductos, \n 'colores' => $colores,\n 'pais' => $pais, \n 'departamento' => $departamento, \n 'ciudad' => $ciudad); \n \n //**********************************************************************************\n //**************SECCION PARA CREAR UNA NUEVA INSTANCIA DE FORMULARIO****************\n //**********************************************************************************\n //**********************************************************************************\n //***Crear formularios \n if (!isset($formulario)) {\n if($this->imprimirEjecucion){\n echo '<br/>El formulario no esta seteado';\n }\n \n //****************LLENAR LAS CATEGORIAS CON SUS ATRIBUTOS DEL PRODUCTO SEGURIDAD, SONIDO, ACCESORIOS, CONDICIONES\n //***Buscar todas las categorias activas y recorrerlas \n $categoryCollection = $em->getRepository('EntidadesBundle:Category')->findBy(array('estado' => 'A'));\n //***Por cada categoria recorrer sus ProductsOptions \n foreach ($categoryCollection as $category){ \n if($category->getEstado() == 'A'){\n foreach ($category->getProductsOptionsCollection() as $optionsId){\n //***si el estado del product options es activo entonces adicionelo al producto\n if($optionsId->getEstado() == 'A'){\n $productsAtributes = new ProductsAttributes(); \n // $productsAtributes->setOptionsId($optionsId);\n $productsAtributes->setOptionsId($optionsId->getProductsOptionsId());\n $productsAtributes->setOptionsLabel($optionsId->getProductsOptionsName()); \n $productsAtributes->setCategoryId($category->getId());\n $productsAtributes->setCategoryLabel($category->getLabel());\n // $productsAtributes->setOptionsValuesId($optionsId);\n $productsAtributes->setProductsId($producto); \n $producto->addProductsAttributesCollection($productsAtributes);\n \n }\n }\n }\n }\n \n //**************LLENAR LOS TIPOS PUBLICACION, (OPCIONES DE PAGO PERMITIDAS) \n $productsTipoPublicacion = new ProductsTipoPublicacion(); \n $productsTipoPublicacion->setProductsId($producto);\n $producto->addProductsTipoPublicacionCollection($productsTipoPublicacion);\n \n //**************LLENAR LAS FOTOS \n $cantidadFotos = $this->container->getParameter('cantidadFotos');\n// $cantidadFotos = 2;\n for ($contadorFotos = 1; $contadorFotos < $cantidadFotos; $contadorFotos++) {\n $productsImages = new ProductsImages();\n $productsImages->setSortOrder($contadorFotos);\n $productsImages->setProductsId($producto);\n $producto->addProductsImagesCollection($productsImages);\n }\n\n \n //***\n $usuario->addProductsCollection($producto);\n //***\n// $formulario = $this->createForm(new ProductsType(), $producto, $options);\n $formulario = $this->createForm(new UsuarioProductoType(), $usuario, $options);\n \n }\n \n \n //**********************************************************************************\n //**********************************************************************************\n //**********************************************************************************\n \n //**********************************************************************************\n //********SECCION PARA GUARDAR EL FORMULARIO DE REGISTRO ***************************\n //********EN NUEVA PUBLICACION SIN INICIAR SESION***********************************\n //**********************************************************************************\n \n// $formulario = $this->createForm(new ProductsType(), $producto);\n if ($peticion->getMethod() == 'POST') {\n if($this->imprimirEjecucion){\n echo '<br/><font color=\"red\">Entro en el post </font>';\n }\n // Validar los datos enviados y guardarlos en la base de datos\n// $formulario->bindRequest($peticion);\n $formulario->bind($peticion);\n if ($formulario->isValid()) {\n if($this->imprimirEjecucion){\n echo '<br/>El formulario es valido';\n }\n \n // guardar la información en la base de datos// \n// $em = $this->getDoctrine()->getEntityManager();\n //***\n// $producto = new Products();\n $idProducto = 0;\n foreach ($usuario->getProductsCollection() as $producto){ \n $fecha = new \\DateTime;\n $producto->setProductsDateAdded($fecha);\n $producto->setProductsDateAvailable($fecha);\n $producto->setProductsLastModified($fecha);\n $producto->setProductsStatus(1);\n $producto->setUsuarioId($usuario);\n //***Buscar la entidad para relacionarla (TODO:reparar esto haciendo que el usuario tenga entidades)\n $paisEntity = $em->getRepository('EntidadesBundle:Pais')->find($usuario->getPais());\n $departamentoEntity = $em->getRepository('EntidadesBundle:Departamento')->find($usuario->getDepartamento());\n $ciudadEntity = $em->getRepository('EntidadesBundle:Ciudad')->find($usuario->getCiudad());\n //***\n $producto->setPaisId($paisEntity);\n $producto->setDepartamentoId($departamentoEntity);\n $producto->setCiudadId($ciudadEntity);\n $producto->upload();\n \n// if($this->imprimirEjecucion){\n// echo '<br/>El path de la placa es '.$producto->getPath();\n// echo '<br/><br/>El id '.$producto->getId();\n// echo '<br/>htmlContent '.$producto->getHtmlcontent();\n// echo '<br/>image '.$producto->getImage();\n// echo '<br/>nombreImagen '.$producto->getNombreImagen(); \n// echo '<br/>sortOrder '.$producto->getSortOrder();\n// echo '<br/>webPath '.$producto->getWebPath();\n// echo '<br/>fileImage '.$producto->getProductsFileImage().'<br/><br/>';\n// }\n \n //**********************************************************\n //***************VALIDACIONES MANUALES**********************\n //**********************************************************\n \n //***Validar que exista por lo menos la foto de la placa\n if($producto->getPath() == null){ \n $this->get('session')->getFlashBag()->add('info',\n 'La foto de la placa es una foto obligatoria.'\n );\n// return $this->render(\n// 'FrontendBundle:Default:registrarProducto.html.twig',\n// array('formulario' => $formulario->createView())\n// );\n return $this->render(\n 'FrontendBundle:UsuarioProducto:registroUsuarioProducto.html.twig',\n array('formulario' => $formulario->createView())\n );\n break;\n } \n //***************************************************************\n //**************FIN VALIDACIONES MANUALES*******************************\n //***************************************************************\n \n// $producto = new Products();\n foreach ($producto->getProductsTipoPublicacionCollection() as $productsTipoPublicacion){\n// $productsTipoPublicacion = new ProductsTipoPublicacion();\n $tipoPublicacion = $productsTipoPublicacion->getTipoPublicacionId();\n $productsTipoPublicacion->setCantidadFotos($tipoPublicacion->getCantidadFotos());\n $productsTipoPublicacion->setDescripcion($tipoPublicacion->getDescripcion());\n $productsTipoPublicacion->setEstado($tipoPublicacion->getEstado());\n $productsTipoPublicacion->setPrecio($tipoPublicacion->getPrecio());\n $productsTipoPublicacion->setTipo($tipoPublicacion->getTipo());\n $productsTipoPublicacion->setUbicacion($tipoPublicacion->getUbicacion());\n }\n \n foreach ($producto->getProductsImagesCollection() as $productsImages){\n $productsImages->upload(); \n }\n \n }\n \n //**********************************************************\n //***************VALIDACIONES MANUALES**********************\n //**********************************************************\n //***Validar que exista el Pais, Departamento y Ciudad\n //***Realizar algunas validaciones manuales\n if($usuario->getDepartamento() == null || $usuario->getCiudad() == null){\n $this->get('session')->getFlashBag()->add('info',\n 'Por algun motivo usted no posee Departamento o Ciudad, por favor adicione estos datos.'\n ); \n\n //***\n// echo '<br/>$pais '.$usuario->getPais();\n// echo '<br/>$departamento '.$usuario->getDepartamento();\n// echo '<br/>$ciudad '.$usuario->getCiudad(); \n return $this->render(\n 'FrontendBundle:UsuarioProducto:registroUsuarioProducto.html.twig',\n array('formulario' => $formulario->createView())\n ); \n }\n //***************************************************************\n //**************FIN VALIDACIONES MANUALES*******************************\n //***************************************************************\n \n \n \n //***\n $usuario->setPassword('kpizk');\n \n //***\n $em->persist($usuario);\n $em->flush();\n \n //****Registrar usuario en sesion\n $token = new UsernamePasswordToken(\n $usuario,\n $usuario->getPassword(),\n 'usuarios',\n $usuario->getRoles()\n );\n $this->container->get('security.context')->setToken($token);\n //***Fin registrar usuario en sesion\n \n //***Mostrar mensaje flash en la siguiente pagina visitada\n foreach ($usuario->getProductsCollection() as $producto){\n $idProducto = $producto->getProductsId();\n }\n $this->get('session')->getFlashBag()->add('info',\n '¡Enhorabuena! Te has registrado tu y tu moto correctamente en Mi moto, el numero de publicacion es: '.$idProducto\n ); \n\n\n// return $this->redirect($this->generateUrl('producto_ver'));\n return $this->render(\n 'FrontendBundle:UsuarioProducto:verUsuarioProducto.html.twig',\n array('usuario' => $usuario));\n\n }else{\n if($this->imprimirEjecucion){\n echo '<br/><font color=\"red\">El formulario no es valido</font>';\n }\n }\n\n }\n \n if($this->imprimirEjecucion){\n echo '<br/><font color=\"red\">Voy a mostrar el registrar producto</font>';\n }\n \n \n \n// return $this->render(\n// 'LoginBundle:Default:registro.html.twig',\n// array('formulario' => $formulario->createView())\n return $this->render(\n 'FrontendBundle:UsuarioProducto:registroUsuarioProducto.html.twig',\n array('formulario' => $formulario->createView())\n );\n }", "title": "" }, { "docid": "697603800831ae8da73447a1bb287002", "score": "0.59956163", "text": "public function create(){\n\t\t\n\t\t$base = new BaseController();\n\n\n\t\t$documentos = TiposDocumentos::where('estatus','ACTIVO')->where('tipo','JURIDICO')->get();\n\t\t$caracteres = Caracteres::where('estatus','ACTIVO')->get();\n\t\t$areas = $base->load_areas();\n\t\t$acciones = Acciones::where('estatus','ACTIVO')->get();\n\t\t\n\t\techo $this->render('Volantes/volantes/create.twig',[\n\t\t\t'sesiones' => $_SESSION,\n\t\t\t'modulo' => $this->modulo,\n\t\t\t'documentos' => $documentos,\n\t\t\t'cuenta' => $_SESSION['idCuentaActual'],\n\t\t\t'caracteres' => $caracteres,\n\t\t\t'areas' => $areas,\n 'acciones' => $acciones,\n\t\t\t'filejs' => $this->filejs\n\t\t]);\n\t}", "title": "" }, { "docid": "2512961fbded472296fb974402a0afaf", "score": "0.5985033", "text": "public function create()\n\t{\n\t\t$alcance = AlcanceProyecto::all();\n\t\t$this->layout->titulo = 'Crear Conograma';\n $this->layout->nest(\n 'content',\n 'cronogramas.create',\n array(\n \t'alcances' => $alcance \n )\n );\n\t}", "title": "" }, { "docid": "423941ed34e8fbdf7385642de7f5f8ec", "score": "0.59745395", "text": "function crear_capacitacion(){\n $this->data['titulo'] = 'Crear capacitación';\n //Se establece la vista de la barra lateral\n $this->data['menu'] = 'hojas_vida/menu_hojas_vida';\n //Se establece la vista que tiene el contenido principal\n $this->data['contenido_principal'] = 'hojas_vida/capacitacion/crear_view';\n //Se carga la plantilla con las demas variables\n $this->load->view('plantillas/template', $this->data);\n }", "title": "" }, { "docid": "d8767fe58c3560bbbb7ef72dac4a277b", "score": "0.5972261", "text": "public function cargar_plantilla()\n\t{\n\t\t//echo '<pre>';print_r($result); die();\n\t\t//$usuarios= User::paginate(1); \n //$paises=Pais::all();\n\t\t$result=Categoria::all();\n\t\t $usuarioactual=\\Auth::user();\n // return view('home')->with(\"usuario\", $usuarioactual);\n\t\treturn view('documentos.crear')->with(\"categoria\", $result )->with(\"usuario\", $usuarioactual);\n\n\t}", "title": "" }, { "docid": "40fa8b50933d390fbc1048c7b2331b86", "score": "0.5970193", "text": "public function criar($objeto) {\n }", "title": "" }, { "docid": "6845e73a953a85a1e458ef0c0fdf83e7", "score": "0.59694827", "text": "public static function crearAbout(){\r\n if (isset($_POST['crear'])) {\r\n\r\n $titulo=$_POST['titulo'];\r\n $birthday=$_POST['birthday'];\r\n $phone=$_POST['phone'];\r\n $city=$_POST['city'];\r\n $age=$_POST['age'];\r\n $degree=$_POST['degree'];\r\n $email=$_POST['email'];\r\n $descripcion=$_POST['descripcion'];\r\n $descripcion_skills=$_POST['descripcion_skills'];\r\n $descripcion_facts=$_POST['descripcion_facts'];\r\n\r\n Portafolio::crearAbout($titulo,$birthday,$phone,$city,$age,$degree,$email,$descripcion,$descripcion_skills,$descripcion_facts);\r\n header(\"Location:?controlador=admin&accion=inicioAbout\");\r\n }\r\n include_once(\"vistas/about/crearAbout.php\");\r\n }", "title": "" }, { "docid": "3d00b51ab13a476c9e8cf9e25c63c036", "score": "0.5955695", "text": "function BuildPage($title,$contentActualPage) {\n //carica la struttura con head e body\n $page=file_get_contents('./content/structure.html');\n $page=str_replace('{title}',$title,$page);\n \n $menuPages=createNavArray();//crea array con le pagine\n\n //HEADER\n $header=PrepareMenu($title,$menuPages);\n $page=str_replace('{header}',$header,$page);\n \n $isProductPage=isProductPage($title,$menuPages);//è una pagina di secondo livello? (SOLO PRODOTTI)\n $isCategoryPage=isCategoryPage($title,$menuPages);//è una pagina prodotti di primo livello? (SOLO PRODOTTI)\n $isSinglePage=isSinglePage($title,$menuPages);\n\n //se è una pagina prodotti => vado ad inserire dinamicamente tutti i prodotti dal DB\n //COSTRUZIONE PAGINA DI SECONDO LIVELLO (SOLO SE PAGINA DI SECONDO LIVELLO PER I PRODOTTI)\n if($isProductPage){\n //ntab -> vedi creazione menu url.\n if(isset($_REQUEST[\"ntab\"])){\n $titleTable=$_REQUEST[\"ntab\"];\n }\n $contentActualPage=insertProductList($titleTable,$title);\n }\n $page=str_replace('{content}',$contentActualPage,$page);\n //FOOTER\n //se loggato con utente amministratore => vede footerAmm.html altrimente footer.html\n if(isset($_SESSION[\"sessionAmm\"]) and $_SESSION[\"sessionAmm\"]=='1')\n $footer=file_get_contents('content/footerAmm.html');\n else\n $footer=file_get_contents('content/footer.html');\n $page=str_replace('{footer}',$footer,$page);\n \n\n //BREADCRUMB (deve essere messo alla fine) CORRETTO\n // $breadcrumb=prepareBreadcrumb($title,$isProductPage,$isCategoryPage,$isSinglePage);\n // $page=str_replace('{breadcrumb}',$breadcrumb,$page);\n\n // breadcrumb ridefinito\n $breadcrumb=breadcrumbHtml();\n $page=str_replace('{breadcrumb}',$breadcrumb,$page);\n $isSecondLevelPage=isSecondLevelPage($title,$menuPages);\n $substitution=breadcrumbLinkSubstitution($title,$isSecondLevelPage,$isCategoryPage,$menuPages);\n $page=str_replace('{BreadcrumbLink}',$substitution,$page);\n\n echo $page;\n}", "title": "" }, { "docid": "8cf520138b175edee689ece4650bd349", "score": "0.5953218", "text": "static public function ctrProcesarPago($datos)\n\t{\n\t\t\n $dotenv = Dotenv::createImmutable(dirname(__DIR__));\n $dotenv->load();\n\n $placetopay = new PlacetoPay([\n 'login' => $_ENV['LOGIN'],\n 'tranKey' => $_ENV['TANKEY'],\n 'url' => $_ENV['URL_REDIRECT'],\n 'rest' => [\n 'timeout' => 45,\n 'connect_timeout' => 30,\n ]\n ]);\n\n $reference = $datos[\"id_orden\"].'TEST_' . time();\n\n $request = [\n 'payment' => [\n 'reference' => $reference,\n 'description' => $datos[\"descripcion\"],\n 'amount' => [\n 'currency' => 'COP',\n 'total' => $datos[\"precio\"],\n ],\n ],\n 'expiration'=> date('c', strtotime('+2 days')),\n 'returnUrl' => Ruta::ctrRuta() . 'ajax/ProcesarPagoAjax.php?reference=' . $reference,\n 'ipAddress' => '127.0.0.1',\n 'userAgent' => 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36',\n ];\n\n $response = $placetopay->request($request);\n\n if ($response->isSuccessful()) {\n\n $tablaOrden = 'orders';\n \n $respPlace = array(\n 'status' => 200,\n 'requestId' => $response->requestId(),\n 'reference' => $reference,\n 'processUrl' => $response->processUrl(),\n 'id' => $datos[\"id_orden\"]\n );\n\n $actualizar_orden = OrdenesModelo::mdlActualizarOrden($tablaOrden, $respPlace);\n \n if($actualizar_orden == 'ok'){\n\n $respuesta = $respPlace;\n\n }else{\n\n $respuesta = 'No se pudo actualizar la orden';\n\n }\n\n }else {\n\n $respuesta = $response->status()->message();\n }\n\n\n return $respuesta;\n\n\t}", "title": "" }, { "docid": "e06601f277f82650c413f6566fb2122b", "score": "0.5947074", "text": "function projets_autoriser(){}", "title": "" }, { "docid": "c6ce594c5e468732145230f7743cda1c", "score": "0.59434646", "text": "function create_page() {\n global $user_ID;\n $page = array(\n 'post_type' => 'page',\n 'post_title' => 'Code is Poterie',\n 'post_content' => 'Opération Template du Dessert',\n 'post_status' => 'publish',\n 'post_author' => $user_ID,\n );\n \n return wp_insert_post( $page );\n }", "title": "" }, { "docid": "5ea59e6ac5d73f1e58f1b2af8ca03c9a", "score": "0.59428036", "text": "function create() {\n if (isset($this->params['IES']) && isset($this->params['cedula'])) {\n TEgresado::ingresarEducacionSuperior($this->params['cedula'], $this->params['IES']);\n $this->_redirect_to(\"view\", array('cedula'=>$this->params['cedula']));\n }\n }", "title": "" }, { "docid": "73791d959b4b55a47589f1d88fba9200", "score": "0.59373915", "text": "public function newAction() {\n if ($this->values['permisos']['permisosModulo']['IN']) {\n\n switch ($this->request['accion']) {\n case 'cliente': //AÑADIR UN CLIENTE NUEVO\n if ($this->request['IDCliente'] != '') {\n $cliente = new Clientes($this->request['IDCliente']);\n $datos = new $this->parentEntity();\n $datos->setIDComercial($this->request['IDComercial']);\n $datos->setDia($this->request['dia']);\n $datos->setIDCliente($this->request['IDCliente']);\n $datos->setIDZona($cliente->getIDZona()->getIDZona());\n $datos->create();\n unset($cliente);\n unset($datos);\n //$this->values['datos'] = $datos;\n }\n break;\n\n case 'zona': //INSERTAR TODOS LOS CLIENTES DE ESA ZONA\n if ($this->request['IDZona'] != '') {\n $cliente = new Clientes();\n $rows = $cliente->cargaCondicion(\"IDCliente\", \"IDZona='{$this->request['IDZona']}' AND IDComercial='{$this->request['IDComercial']}' AND Vigente='1'\");\n unset($cliente);\n foreach ($rows as $key => $value) {\n $datos = new $this->parentEntity();\n $datos->setIDComercial($this->request['IDComercial']);\n $datos->setDia($this->request['dia']);\n $datos->setIDZona($this->request['IDZona']);\n $datos->setIDCliente($value['IDCliente']);\n $datos->create();\n }\n unset($datos);\n }\n break;\n }\n return $this->listAction($this->request['IDComercial'], $this->request['dia']);\n } else {\n return array('template' => '_global/forbiden.html.twig');\n }\n }", "title": "" }, { "docid": "cc401077079f22b2c6518c5fad74e12b", "score": "0.59333384", "text": "function setComprobantePagoARegistroPago() {\n\t\tglobal $bd;\t\t\n\t\tglobal $x_correlativo_comprobante;\n\t\t$correlatico_comprobante = $x_correlativo_comprobante;\n\t\t$x_array_comprobante = $_POST['p_comprobante'];\n\t\t$x_array_comprobante = is_object($x_array_comprobante) || is_array($x_array_comprobante) ? $x_array_comprobante : json_decode($x_array_comprobante, true);\n\n\t\t$id_registro_pago = $_POST['idregistro_pago'];\n\n\t\t$idtipo_comprobante_serie = $x_array_comprobante['idtipo_comprobante_serie'];\n\t\t\n\t\t//0 si solo se factura\n\t\tif ( $id_registro_pago != '0' ) {\n\t\t\t$sqlrp=\"update registro_pago set idtipo_comprobante_serie=\".$idtipo_comprobante_serie.\" where idregistro_pago=\".$id_registro_pago;\n\t\t\t$idregistro_pago=$bd->xConsulta_NoReturn($sqlrp);\n\t\t} else {\n\t\t\t$idregistro_pago = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "cb783c49764df91ed78b93ebc2947c30", "score": "0.59282476", "text": "function crearAutomovil(){\n\t\t$params = array(\n\t\t\t':usuario' => $_POST['Usuario'],\n\t\t\t':piel' => $_POST['Piel'],\n\t\t\t':respuestas' => $_POST['Respuestas'],\n\t\t\n\t\t);\n\n\t\t/* Preparamos el query apartir del array $params*/\n\t\t$query = 'INSERT INTO \n\t\t\t\t\t ConfigUsuario(Usuario,Piel,Respuestas)\n\t\t\t\tVALUES\n\t\t\t\t\t(:usuario,:piel,:respuestas)';\n\n\t\t/* Ejecutamos el query con los parametros */\n\t\t$result = excuteQuery(\"Blog\",\"\", $query, $params);\n\t\tif ($result > 0){\n\t\t\theader('Location: viewAutomoviles.php?result=true');\n\t\t}else{\n\t\t\theader('Location: addAutomovil.php?result=false');\n\t\t}\n\t}", "title": "" }, { "docid": "f9d2ff1f591ffe33347b0f0169ef4705", "score": "0.5918872", "text": "public function newAction() {\n $em = $this->getDoctrine()->getManager();\n $ptoEmision = $em->getRepository('FactelBundle:PtoEmision')->findPtoEmisionEstabEmisorByUsuario($this->get(\"security.context\")->gettoken()->getuser()->getId());\n if ($ptoEmision != null && count($ptoEmision) > 0) {\n return array(\n 'pto' => $ptoEmision,\n );\n } else {\n throw $this->createNotFoundException('El usuario del sistema no tiene asignado un Punto de Emision.');\n }\n }", "title": "" }, { "docid": "e92486e5a910afebb0091011ea3b5fc1", "score": "0.59144455", "text": "public function getPagosController(){\n\t\t//Alumnas : nombre, apellidos, fecha nac, grupo\n\t\t$informacion = Crud::vistaXTablaModel(\"pagos\");//ejecucion del metodo del modelo\n\t\tif(!empty($informacion)){\n\t\t\t\t//imprimir los datos en forma de tabla\n\t\t\t\tforeach ($informacion as $row => $item) {\n\t\t\t\t\t$alumna = Crud::getRegModel($item['id_alumna'], \"alumnas\");\n\t\t\t\t\t$grupo = Crud::getRegModel($alumna['id_grupo'], \"grupos\"); //obtener la informacion del grupo de cada alumna para mostrarlo\n\t\t\t\t\techo \"<tr>\";\n\t\t\t\t\techo \"<td>\".$item['id'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$grupo['nombre'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$alumna['nombre'] . \" \" . $alumna[\"apellidos\"].\"</td>\";\n\t\t\t\t\techo \"<td>\".$item['nombre_mama'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$item['fecha_pago'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$item['fecha_envio'].\"</td>\";\n\t\t\t\t\t//mostrar la imagen en una nueva ventana\n\t\t\t\t\techo '<td><a href=\"'.$item[\"imagen_comprobante\"].'\" target=\"_blank\">Ver</a></td>';\n\t\t\t\t\techo \"<td>\".$item['folio'].\"</td>\";\n\t \t\techo \"<td>\".\"<a class='btn btn-secondary fa fa-edit' href=index.php?action=editar_pago&id=\".$item['id'].\"></a></td>\";\n\t\t\t\t\t//mandar por propiedad onclick el id del elemento tag a para eleminarlo\n\t\t\t\t\t echo \"<td>\".\"<a class='btn btn-danger fa fa-trash' id='borrar_btn\".$item[\"id\"].\"' onclick='b(\".$item[\"id\"].\");' href='index.php?action=borrar&tipo=pagos&id=\".$item['id'].\"'></a></td>\"; \n\t \tif($item[\"aprobado\"]==\"0\"){\n\t \t\techo \"<td>\".\"<a class='btn btn-success fa fa fa-check-circle' id='aprobar\".$item[\"id\"].\"' onclick='d(\".$item[\"id\"].\");' href='index.php?action=aprobar_pago&id=\".$item['id'].\"'></a></td>\"; \n\t \t}else{\n\t \t\techo \"<td>Aprobado</td>\";\n\t \t}\n\t \t\n\t \t\techo \"</tr>\";\n\t\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c749582a1488b6114e3e85339cf8cf39", "score": "0.5914336", "text": "public function actionCreatePage()\n {\n $model = new \\cmsadmin\\models\\Nav();\n $create = $model->createPage($this->postArg('parent_nav_id'), $this->postArg('cat_id'), $this->postArg('lang_id'), $this->postArg('title'), $this->postArg('rewrite'), $this->postArg('layout_id'));\n\n if ($create !== true) {\n Yii::$app->response->statusCode = 422;\n }\n\n return $create;\n }", "title": "" }, { "docid": "949d8a24d52584136b9907220a2b97f7", "score": "0.59113026", "text": "private function create_new_pages()\n\t{\n\t\tglobal $wpdb;\n\n\t\t$vendor_page_id = $this->create_page( 'vendor_dashboard', __( 'Vendor Dashboard', 'topgroupshops' ), '[tgs_vendor_dashboard]' );\n\t\t$this->create_page( 'product_orders', __( 'Orders', 'topgroupshops' ), '[tgs_orders]', $vendor_page_id );\n\t\t$this->create_page( 'shop_settings', __( 'Shop Settings', 'topgroupshops' ), '[tgs_shop_settings]', $vendor_page_id );\n\t}", "title": "" }, { "docid": "eb37b44c4a602e2570c4d00fccec5b20", "score": "0.5904454", "text": "public function getCrear()\r\n\t{\r\n $arrNivelEducativo = NivelEducativo::lists('descripcion', 'id');\r\n $arrPais = Pais::lists('descripcion', 'id');\r\n $arrProvincia = Provincia::lists('descripcion', 'id');\r\n $arrDepartamento = Departamento::lists('descripcion', 'id');\r\n $arrLocalidad = Localidad::lists('descripcion', 'id');\r\n $arrBarrio = Barrio::lists('descripcion', 'id');\r\n $arrContacto = Contacto::lists('descripcion', 'id');\r\n\r\n //$arrPais1 = Pais::get(array('id','descripcion'))->toArray();\r\n\r\n\t\treturn View::make('organizacions.nuevo')\r\n ->with('arrNivelEducativo', $arrNivelEducativo)\r\n ->with('arrPais', $arrPais)\r\n ->with('arrProvincia', $arrProvincia)\r\n ->with('arrDepartamento', $arrDepartamento)\r\n ->with('arrLocalidad', $arrLocalidad)\r\n ->with('arrBarrio', $arrBarrio)\r\n ->with('arrContacto', $arrContacto)\r\n ->with('menu', ModulosHelper::MENU_GESTION_ADMINISTRATIVA)\r\n ->with('submenu', ModulosHelper::SUBMENU_ORGANIZACIONES);\r\n\t}", "title": "" }, { "docid": "56c35d21b8ea4dd36bd436925e9e5d70", "score": "0.59043586", "text": "public function create()\n {\n return view('pagamenti.create');\n }", "title": "" }, { "docid": "9a1fb08fb05be4fcd0a68328081f7506", "score": "0.5900017", "text": "public function crearproductoAction()\n {\n $entity = new Producto();\n $form = $this->createForm(new ProductoType(), $entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }", "title": "" }, { "docid": "dec36a81319f2b160b96a9f8e1bd92d9", "score": "0.58964384", "text": "public function createAction()\n {\n Zend_Dojo_View_Helper_Dojo::setUseDeclarative(true);\n $form = new Page_Form_CreatePage();\n $page = new Page_Model_Page();\n $row = $page->fetchNew();\n// $pageCount = $page->fetchTotalPageCount();\n try {\n switch (true) {\n case (! $this->isAjax() && $this->_request->isPost() ) :\n \n // the pre-validation data, never ever use this raw\n $post = $this->_request->getPost();\n // the subForm container\n $wSoObj = $form->getSubForm('wSoObj');\n $data = array();\n \n foreach ($wSoObj as $subForm) {\n if (array_key_exists($subForm->getName(), $post[$wSoObj->getName()])) {\n if ($subForm->isValid($post[$wSoObj->getName()][$subForm->getName()])) {\n $valid = $subForm->getValues();\n $section = $valid[$subForm->getName()];\n\n $row->setFromArray($section);\n } else {\n // TODO:: Add validation handling\n }\n }\n continue;\n }\n \n if ($this->validatePageName->isValid($row->label)) {\n // got to have this\n $parent = $row->findParentRow('System_Db_Categories');\n if(isset($parent->uri) && !empty($parent->uri)) {\n // if we got to here we need this as well\n $urlFilter = new Zend_Filter_Word_SeparatorToDash();\n //$row->uri = $urlFilter->filter($row->label);\n $uri = $urlFilter->filter($row->label);\n $row->uri = $parent->uri . '/' . $uri;\n $row->setReadOnly(false);\n $result = $row->save();\n // validate result, redirect common\n $this->redirect('/admin/success');\n }\n else {\n // throw error\n }\n \n } else {\n throw new Zend_Application_Exception(sprintf('A page with that name already exist, please choose another page name.', $row->label));\n }\n \n break;\n }\n } catch (Exception $e) {\n $this->log->alert($e->getMessage() . ' ::Error Location:: File:: ' . $e->getFile() . ' :: Line:: ' . $e->getLine());\n echo $e->getMessage();\n }\n $this->view->form = $form;\n }", "title": "" }, { "docid": "667713557ce9e907299d0494146dc1f2", "score": "0.5891423", "text": "public function create()\n {\n //communes list\n $communes = Commune::orderBy('nom_fr')->pluck('nom_fr', 'id');\n $programmes = Programme::orderBy('nom_fr')->pluck('nom_fr', 'id');\n $interventions = Intervention::orderBy('nom')->pluck('nom', 'id');\n $partenaire_types = PartenaireType::all();\n //$sessions = Session::orderBy('nom')->pluck('mois', 'id');\n //point desservis\n $localites = PointDesserviCategorie::find(1)->point_desservis;\n $categorie_points = PointDesserviCategorie::all();\n $etablissement_scols = PointDesservi::all()->where('type_point', '=', 'etab.scolaire');\n $moas = Moa::orderBy('nom_fr')->pluck('nom_fr', 'id');\n\n //create a new piste to reserve id\n $piste = new Piste();\n $piste->active = 0;\n $piste->save();\n if($piste->save())\n {\n $piste_id= $piste->id;\n }\n\n //creat a new object to send it in form for editing\n $convention = new Convention();\n return view('projets.create.index_create_projet')->with(\n [\n 'convention' => $convention,\n 'communes' => $communes,\n 'programmes' => $programmes,\n 'interventions' => $interventions,\n 'localites' => $localites,\n 'etablissement_scols' => $etablissement_scols,\n 'partenaire_types' => $partenaire_types,\n 'categorie_points' => $categorie_points,\n 'moas' => $moas,\n 'piste_id' => $piste_id,\n 'is_mobile' => Device::Device()\n ]\n );\n }", "title": "" }, { "docid": "b5330b0e336eaae5bbc8519868a3bbda", "score": "0.58907765", "text": "public function create()\n {\n $proyecto = new Proyecto();\n\n\n\n return view('proyecto.create', compact('proyecto'));\n }", "title": "" }, { "docid": "37eba3b80d8936d92ee1729783c0c73b", "score": "0.58812445", "text": "public function agregar_pag(){\n\n\t\t$test = $this->input->post('set_data');\n\t\t$decode = json_decode($test);\n\n\t\tforeach($decode as $dec){\n\t\t\t$this->data['id']\t\t=\t$dec->id;\n\t\t\t$this->data['qty']\t\t=\t$dec->qty;\n\t\t\t$this->data['price']\t=\t$dec->price;\n\t\t\t$this->data['name']\t\t= \turl_title($dec->name,' ',FALSE);\n\t\t\t$this->data['options']\t=\tarray(\n\t\t\t\t'mayoreo' \t\t\t=>\t\t$dec->mayoreo,\n\t\t\t\t'distribuidor'\t\t=>\t\t$dec->distribuidor,\n\t\t\t\t'imagen'\t\t\t=>\t\t$dec->imagen\n\t\t\t);\n\t\t\t$result[] = $this->cart->insert($this->data);\n\t\t\t\n\t\t}\n\t\t//$c_content = $this->cart->contents();\n\t\techo json_encode(array('entro'=>'si'));\n\t}", "title": "" }, { "docid": "33722288acfe356d52d9ea5112264194", "score": "0.5880137", "text": "public function pagCrear() {\n $roles= Role::select('id','name')->get();\n return view('Administracion/Usuarios/crear')->with([\n 'roles' => $roles\n ]);\n }", "title": "" }, { "docid": "8b352655b1101b3ffbaea8c2fc920daf", "score": "0.58598775", "text": "public function actionCreate()\n {\n $page = new Page();\n\n $descriptions = [];\n $seoUrls = [];\n\n $languages = Language::getAll(Language::STATUS_ACTIVE);\n\n foreach ($languages as $language) {\n $description = new PageDescription();\n $seoUrl = new SeoUrl();\n\n if ($language['language_id'] == Language::getLanguageIdByCode(Yii::$app->language)) {\n $description->scenario = 'language-is-system';\n }\n\n $descriptions[$language['language_id']] = $description;\n $seoUrls[$language['language_id']] = $seoUrl;\n }\n\n if ($page->load(Yii::$app->request->post()) && PageDescription::loadMultiple($descriptions, Yii::$app->request->post())\n && SeoUrl::loadMultiple($seoUrls, Yii::$app->request->post())) {\n\n $isValid = $page->validate();\n\n $isValid = PageDescription::validateMultiple($descriptions, Yii::$app->request->post()) && $isValid;\n $isValid = SeoUrl::validateMultiple($seoUrls, Yii::$app->request->post()) && $isValid;\n\n if ($isValid && $page->save(false)) {\n // Save descriptions\n foreach ($descriptions as $key => $description) {\n $description->page_id = $page->page_id;\n $description->language_id = $key;\n $description->save(false);\n }\n\n // Save SEO URLs\n $pageName = $descriptions[Language::getLanguageIdByCode(Yii::$app->language)]->title;\n\n /**\n * @var int $key language id\n * @var SeoUrl $seoUrl category SEO URL\n */\n foreach ($seoUrls as $key => $seoUrl) {\n $seoUrl->language_id = $key;\n $seoUrl->query = 'page_id=' . $page->page_id;\n $seoUrl->keyword = SeoUrl::prepare(SeoUrl::transliterate($pageName), $key);\n\n $seoUrl->save(false);\n }\n\n return $this->redirect(['index']);\n }\n }\n\n if (empty($page->sort_order)) {\n $page->sort_order = 1;\n }\n\n return $this->render('create', [\n 'page' => $page,\n 'descriptions' => $descriptions,\n 'seoUrls' => $seoUrls,\n 'languages' => $languages,\n ]);\n }", "title": "" }, { "docid": "723901c58f49f9585a5a620b9e2ce5c2", "score": "0.58529717", "text": "public function create()\n {\n\n // return view('admin.pages.create');\n \n }", "title": "" }, { "docid": "3af1d58ec41347c9771e322e39683a4c", "score": "0.58515877", "text": "public static function CreateProg(){\r\n \t$view='update';\r\n \t$pagetitle='Création d\\'une progression';\r\n \t$action='CreerProg'; // fonction created quand on click sur le submit\r\n\r\n\t}", "title": "" }, { "docid": "86de809b474945a3fe9d1e15e0104434", "score": "0.5848962", "text": "private function Create() {\n $cadastra = new Create;\n $cadastra->ExeCreate(self::Entity, $this->Data);\n if ($cadastra->getResult()):\n $this->Error = [\"O slide {$this->Data['slide_title2']} foi cadastrado com sucesso!\", WS_ACCEPT];\n $this->Result = $cadastra->getResult();\n endif;\n }", "title": "" }, { "docid": "56995dbeebf80e84809011f7db93fdf3", "score": "0.5842295", "text": "public function Cadastrar($ativo,$id_condicao_pagamento, $prazo_entre_parcelas, $altera_dia_minimo, $altera_dia_maximo)\r\n\t{\r\n\t\t\r\n\t\t$cmd = $this->pdo->prepare(\"select id_condicao_pagamento from forma_condicao_pagamento where id_forma_pagamento = 52 and id_condicao_pagamento = :id_condicao_pagamento order by id_condicao_pagamento \");\r\n\t\t$cmd->bindValue(\":id_condicao_pagamento\" , $id_condicao_pagamento);\r\n\t\t$cmd->execute();\r\n\t\tif ($cmd->rowCount() > 0) // verifica se id ja existe\r\n\t\t{\t\r\n\t\t\techo \"<div class='alert alert-danger' role='alert'>\r\n\t\t\tNúmero da Parcela Já Cadastrada!</div>\";\r\n\t\t\treturn false;\r\n\t\t}else // naõ foi encontrado o id_condicao_pagamento\r\n\t\t{\r\n\r\n\r\n\r\n\t\t\t$cmd = $this->pdo->prepare(\" INSERT INTO forma_condicao_pagamento\r\n\t\t\t\t(ativo,id_forma_pagamento, id_condicao_pagamento, prazo_entre_parcelas, altera_data_parcela, altera_dia_minimo, altera_dia_maximo, parcela_ideal, id_cpg, sem_juros, usuario_inclusao, data_inclusao, usuario_alteracao, data_ultima_alteracao, preferencia)\r\n\t\t\t\tVALUES( :ativo,52, :id_condicao_pagamento, :prazo_entre_parcelas, false, :altera_dia_minimo, :altera_dia_maximo, false, 52, true,'APLICACAO WEB', CURRENT_DATE, 'ROBO - FORMA_PAGAMENTO', CURRENT_DATE, 1); \");\r\n\r\n\t\t\t$cmd->bindValue(\":ativo\", $ativo);\r\n\t\t\t$cmd->bindValue(\":id_condicao_pagamento\", $id_condicao_pagamento);\r\n\t\t\t$cmd->bindValue(\":prazo_entre_parcelas\", $prazo_entre_parcelas);\r\n\t\t\t$cmd->bindValue(\":altera_dia_minimo\", $altera_dia_minimo);\r\n\t\t\t$cmd->bindValue(\":altera_dia_maximo\", $altera_dia_maximo);\r\n\t\t\t$cmd->execute();\r\n\t\t\treturn true;\r\n\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e3e266ba2af6ef8388f176d30c6b8058", "score": "0.5838943", "text": "public function actionCreate()\n {\n $model = new CdPagos();\n\n $concat_id_factura = $model->getIdFacturaConcat();\n $propietarios = $model->getPropietarios();\n\n if ($model->load(Yii::$app->request->post())) {\n $model->fecha_pago = date('Y-m-d',strtotime($model->fecha_pago));\n $model->nombre = strtoupper($model->nombre);\n $model->apellido = strtoupper($model->apellido);\n \n $monto_tmp = $model->monto;\n\n if ($model->save()) {\n $model2 = new FacturasPagos();\n $save = false;\n\n foreach ($model->cod_factura as $key => $value) {\n if ($monto_tmp > 0) {\n $model3 = Facturas::findOne($value);\n\n if ($monto_tmp - $model3->total_deducible > 0) {\n $model3->total_deducible = 0;\n $monto_tmp = $monto_tmp - $model3->total_deducible;\n $model3->update(false);\n $save = true;\n }elseif ($monto_tmp - $model3->total_deducible <= 0) {\n $model3->total_deducible = $model3->total_deducible - $monto_tmp;\n $monto_tmp = $model3->total_deducible - $monto_tmp;\n $model3->update(false);\n $save = true;\n }\n\n //Guardo en transaccional\n if ($save) {\n $model2->cod_facturas_fk = $value;\n $model2->cod_pagos_fk = $model->cd_pago_pk;\n $model2->save();\n }\n }\n }\n \n Yii::$app->session->setFlash('success', 'El pago fue creado exitosamente.');\n return $this->redirect(['view', 'id' => $model->cd_pago_pk]);\n } else {\n Yii::$app->session->setFlash('error', 'El pago no pudo ser creado.');\n return $this->render('create', [\n 'model' => $model,\n 'data' => $concat_id_factura, \n 'propietarios' => $propietarios, \n ]);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'data' => $concat_id_factura, \n 'propietarios' => $propietarios, \n ]);\n }\n }", "title": "" }, { "docid": "4f719960ba90f515fa761eb61c9b1600", "score": "0.58363867", "text": "public function create()\n {\n //\n return view('procesos.agregarproceso');\n }", "title": "" }, { "docid": "0f18c2c9ee7cb0a2b6965404d7f22a2d", "score": "0.5835913", "text": "function insertarProyecto(){\r\n\t\t$this->procedimiento='segu.ft_proyecto_ime';\r\n\t\t$this->transaccion='SG_PROY_INS';\r\n\t\t$this->tipo_procedimiento='IME';\r\n\t\t\t\t\r\n\t\t//Define los parametros para la funcion\r\n\t\t$this->setParametro('codigo','codigo','varchar');\r\n\t\t$this->setParametro('descripcion','descripcion','varchar');\r\n\t\t$this->setParametro('nombre','nombre','varchar');\r\n\r\n\t\t//Ejecuta la instruccion\r\n\t\t$this->armarConsulta();\r\n\t\t$this->ejecutarConsulta();\r\n\r\n\t\t//Devuelve la respuesta\r\n\t\treturn $this->respuesta;\r\n\t}", "title": "" }, { "docid": "19982ed211dc1d77d1fbe09df0752cdb", "score": "0.58349335", "text": "public function create()\n {\n\n $array_nodo[''] = \"Seleccione...\";\n $ar_universidad[''] = \"Seleccione...\";\n $ar_semillero[''] = \"Seleccione...\";\n $ar_procate[''] = \"Seleccione...\";\n $ar_estudiante [''] = \"Seleccione...\"; \n $ar_nivel[''] = \"Seleccione...\";\n $ar_asignatura[''] = \"Seleccione...\";\n $ar_area[''] = \"Seleccione...\";\n $ar_subarea[''] = \"Seleccione...\";\n $pais = $this->paisRepository->all()->toArray(); \n foreach ($pais as $key => $value) {\n $array_pais[$value['id']]=$value['pais'];\n }\n\n $nodo = Nodo::all()->toArray();\n foreach ($nodo as $key => $value) {\n $array_nodo[$value['id']]=$value['nodo'];\n }\n\n $universidad = Universidades::all()->toArray();\n foreach ($universidad as $key => $value) {\n $ar_universidad[$value['id']]=$value['universidad'];\n }\n\n $semilleros = Semilleros::all()->toArray();\n foreach ($semilleros as $key => $value) {\n $ar_semillero[$value['id']]=$value['nombre'];\n }\n\n $Proyecto_Categoria = ProyectoCategoria::all()->toArray();\n foreach ($Proyecto_Categoria as $key => $value) {\n $ar_procate[$value['id']]=$value['categoria'];\n }\n $estudiante = EStudiantes::all()->toArray();\n foreach ($estudiante as $key => $value) {\n $ar_estudiante[$value['id']]=$value['nombre_completo'];\n }\n\n $nivel = Nivelformacion::all()->toArray();\n foreach ($nivel as $key => $value) {\n $ar_nivel[$value['id']]=$value['nivel'];\n }\n\n $asignatura = Asignaturas::all()->toArray();\n foreach ($asignatura as $key => $value) {\n $ar_asignatura[$value['id']]=$value['asignatura'];\n }\n\n $area = Areainvestigacion::all()->toArray();\n foreach ($area as $key => $value) {\n $ar_area[$value['id']]=$value['area'];\n }\n $subarea = Subarea::all()->toArray();\n foreach ($subarea as $key => $value) {\n $ar_subarea[$value['id']]=$value['subarea'];\n }\n\n return view('proyectoInvestigacions.create')\n ->with(['array_pais' => $array_pais,\n 'array_nodo' => $array_nodo,\n 'ar_universidad' => $ar_universidad,\n 'ar_semillero' => $ar_semillero,\n 'ar_procate' => $ar_procate,\n 'ar_estudiante' => $ar_estudiante,\n 'ar_nivel' => $ar_nivel,\n 'ar_asignatura' => $ar_asignatura,\n 'ar_area' => $ar_area,\n 'ar_subarea' => $ar_subarea]);\n\n }", "title": "" }, { "docid": "2eee4e091e5f03cd682187b9b3030000", "score": "0.5834448", "text": "public function create()\n {\n $activo = 'presupuestos';\n $fecha = Carbon::now()->format('d/m/Y');\n $lista = 1.2;\n $num_pre = 29;\n $user = User::find(Auth()->user()->id);\n $horarios = Entrega_horario::OrderBy('id', 'ASC')->get();\n $dias = Entrega_dia::OrderBy('id', 'ASC')->get();\n $restricciones = Restriccion::OrderBy('id', 'ASC')->get();\n $requeridas = Drequerida::OrderBy('id', 'ASC')->get();\n $superficies = Superficie::OrderBy('id', 'ASC')->pluck('descripcion', 'id')->all();\n if (Auth()->user()->nivel == 'administrador') {\n return view('admin.pedidos.create', compact('activo','requeridas', 'restricciones', 'fecha', 'lista', 'num_pre', 'horarios', 'dias', 'superficies'));\n }else{\n return view('tienda.pedidos.create', compact('activo','requeridas', 'restricciones', 'fecha', 'lista', 'num_pre', 'horarios', 'dias', 'user', 'superficies'));\n }\n }", "title": "" }, { "docid": "71c93a39506b44b2b2b0b157aaf15992", "score": "0.58336985", "text": "public function create()\n {\n $projeto = Projeto::all();\n\n return view('admin.projetos.adicionar', compact('projeto'));\n }", "title": "" }, { "docid": "8892922dac2a79a400a4810d296ee4c8", "score": "0.5832039", "text": "function generar_poliza_cp($uuid, $id_pago)\n\t{\n\t\t$model = \"account.move\";\n\t\t$method = \"generar_poliza_cp\";\n\t\t$data = array(\n\t\t\t\"cfdi\" => model($uuid, \"int\"),\n\t\t\t\"pago\" => model($id_pago, \"int\"),\t\t\t\n\t\t);\t\t\n\t\t$res = $this->obj->call(USER_ID, md5(PASS), $model, $method, null, $data);\n\t\tif ($res[\"success\"])\n\t\t{\n\t\t\t$pid = $res[\"data\"][0];\n\t\t\t$poliza = $this->obtener_datos_poliza($pid);\n\t\t\treturn $poliza;\n\t\t}\t\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "5cd83cbaea6d7d9ba7471cd0254c99d5", "score": "0.5827996", "text": "public function newAction()\n {\n $entity = new VentaPaquete();\n $em = $this->getDoctrine()->getManager();\n \n //Recuperaci贸n del paciente\n $request = $this->getRequest();\n //$id= $request->get('id');\n //$id = substr($id, 1);\n //Busqueda del paciente\n //$paciente = $em->getRepository('DGPlusbelleBundle:Paciente')->find($id);\n //Seteo del paciente en la entidad\n //$persona=$paciente->getPersona();\n //$entity->setPaciente($persona);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "e9de8d6c7095ffbaad467a87fa559f62", "score": "0.5827545", "text": "public function create()\n {\n\n $id_transaccion = 8;// 8 = Recaudo cartera\n\n // Se obtiene el modelo según la variable modelo_id de la url\n $modelo = Modelo::find( Input::get('id_modelo') );\n\n $lista_campos = ModeloController::get_campos_modelo($modelo,'','create');\n $cantidad_campos = count($lista_campos);\n\n $tipo_transaccion = TipoTransaccion::find($id_transaccion);\n\n $lista_campos = ModeloController::personalizar_campos($id_transaccion,$tipo_transaccion,$lista_campos,$cantidad_campos,'create');\n\n $form_create = [\n 'url' => $modelo->url_form_create,\n 'campos' => $lista_campos\n ];\n\n $motivos = [''];//RecaudoController::get_motivos($id_transaccion);\n $medios_recaudo = RecaudoController::get_medios_recaudo();\n $cajas = RecaudoController::get_cajas();\n $cuentas_bancarias = RecaudoController::get_cuentas_bancarias();\n\n $miga_pan = [\n ['url'=>'tesoreria?id='.Input::get('id'),'etiqueta'=>'Tesorería'],\n ['url'=>'web?id='.Input::get('id').'&id_modelo='.Input::get('id_modelo'),'etiqueta' => $modelo->descripcion ],\n ['url'=>'NO','etiqueta' => 'Crear nuevo' ]\n ];\n\n if ( count($cajas) == 0) {\n return redirect('web/create?id=3&id_modelo=45')->with('mensaje_error','No exite ninguna Caja creada. Debe crear al menos UNA.');\n }\n\n if ( count($cuentas_bancarias) == 0) {\n return redirect('web/create?id=3&id_modelo=33')->with('mensaje_error','No exite ninguna Cuenta bancaria creada. Debe crear al menos UNA.');\n }\n\n return view('tesoreria.recaudos.create', compact('form_create','id_transaccion','motivos','miga_pan','medios_recaudo','cajas','cuentas_bancarias'));\n }", "title": "" }, { "docid": "fe6a33d6ee49b3eeb20478e875945d84", "score": "0.582698", "text": "public function actionCreatePublico()\n {\n $model = new Posts();\n $model->creador_id = Yii::$app->user->identity->id;\n return $this->create($model, ['publico']);\n }", "title": "" }, { "docid": "e845c2671e5c60d167b99031e51e04be", "score": "0.5824709", "text": "public function pruebaAction()\n\t{\n\t\t\t\n\t\t\n\t\t$idop\t\t= 80;\n\t\t\n\t\t$modelEst\t\t= new EstructuraModel();\n\t\t$estructuras\t= $modelEst->getEstructurasInternasServicio( $idop , false);\n\t\t\n\t\t\n\t\t//$mo\t= new CampoModel();\n\t\techo '<pre>';\n\t\tprint_r($estructuras);\n\t\treturn;\n\t\t\n\t\t\n\t\t/*$modelFilas\t= new FilaModel();\n\t\t\t$filas\t\t= $modelFilas->buscarFilas( 1 );\n\t\t\techo '<pre>';\n\t\t\tprint_r($filas);*/\n\t\t\n\t\t/**$modeloTabla\t= new TablaModel();\n\t\t$campos\t\t\t= $modeloTabla->buscarTablasCampos( 1 ) ;\n\t\techo '<pre>';\n\t\t\tprint_r($campos);\n\t\t\t\n\t\t\t*/\n\t\t/*$modeloTabla\t= new CampoModel();\n\t\t$campos\t\t\t= $modeloTabla->buscarTablaPertenece( 1 ) ;\n\t\techo '<pre>';\n\t\t\tprint_r($campos);*/\n\t\t/*$modeloEst\t= new EstructuraModel();\n\t\t$datosEst\t= $modeloEst->getEstructurasTablas( 2 );\n\t\t\techo '<pre>';\n\t\t\tprint_r($datosEst);\n\t\t*/\n\t/*\t$modelTabla\t\t= new EstructuraModel();\n\t\t$arreglo\t\t\t= $modelTabla->getArbol(60);\n\t\t$llaves=array();\n\t\tforeach ( $arreglo as $hi)\n\t\t{\n\t\t\t$llaves[]\t= $hi['idestructura'];\n\t\t}\n\t\tforeach ( $arreglo as $hi)\n\t\t{\n\t\t\t\n\t\t\t$idpadre\t= $hi['idestructura'] == $hi['idpadre'] ? false : $hi['idpadre'];\n\t\t\tif($idpadre && array_search($idpadre,$llaves)=== false)\n\t\t\t$idpadre\t= false;\n\t\t\t$hijos[]\t= new CNodo($hi['idestructura'],$idpadre,$hi['idestructura'].'-'.$hi['abreviatura']);\n\t\t}\n\t\t//$campos\t\t\t= $campos[0]['NomCampoestruc'];*/\n\t/*\n\t$modeloTabla\t= new TablaModel();\n\t\t$datosEst\t\t\t= $modeloTabla->buscarTablasCampos( 14 ,true) ;\n\t\t*/\n\t/*\t$modelNomOrg\t\t\t\t\t= new NomorganoModel();\n\t\t$datos\t\t\t\t\t\t\t= $modelNomOrg->buscarNomorgano(1000,0,1);\n\t\t*/\n\t\t\n\t\t$modelEstructura= new EstructuraModel();\n\t\t\n\t\t\n\techo '<pre>';\n\t\t\tprint_r($modelEstructura->getHijosp(60));\n\t\t//echo json_encode($datos);\n\t\t \n\t}", "title": "" }, { "docid": "a50ddcaaf2625acc26e2dd0865ad1fc4", "score": "0.58242154", "text": "public function newAction(Request $request)\n {\n /*Validar que un mismo usuario no este autenticado en PC distintas.*/\n if (!$this->get('admin.service.check.security')->ChequearSession($this->getRequest()->getSession())) {\n return $this->redirectToRoute('portada');\n }\n $nomPrecio = new NomPrecio();\n $form = $this->createForm('NomencladorBundle\\Form\\NomPrecioType', $nomPrecio);\n $em = $this->getDoctrine()->getManager();\n $datos = $request->request->get('nom_precio');\n $dataGrupos = json_decode($datos['grupo']);\n $dataProd = json_decode($datos['producto']);\n $enviado = $datos['enviado'];\n $datos['preciocuc'] = $datos['preciocuc'] != \"\" ? $datos['preciocuc'] : 0;\n $datos['preciomn'] = $datos['preciomn'] != \"\" ? $datos['preciomn'] : 0;\n $datos['impuesto'] = $datos['impuesto'] != \"\" ? $datos['impuesto'] : 0;\n $gru = $GLOBALS['kernel']->getContainer()->get('nomenclador.nomgrupointeres');\n $pro = $GLOBALS['kernel']->getContainer()->get('nomenclador.nomproducto');\n if ($enviado == 'enviado') {\n $dataGrupos = $gru->getGruposByIds($dataGrupos);\n $gruposTodos = $gru->getGruposHijosByGrupos($dataGrupos);\n $existen = false;\n $inserto = false;\n foreach ($dataProd as $valueProd) {\n $gruposInser = [];\n $prod = $em->getRepository('NomencladorBundle:Nomproducto')->find($valueProd);\n $padres = $pro->getProductosPadres($prod, array());\n $padres['id'] != null ? array_push($padres['id'], (int)$valueProd) : $padres['id'][0] = (int)$valueProd;\n\n foreach ($padres['id'] as $value) {\n $res = $em->getRepository('NomencladorBundle:NomGrupointeres')->comprobarExisProdGrupoPrecios($value, $datos['preciomn'], $datos['preciocuc']);\n\n $gruposComp = [];\n if (count($res) > 1) {\n foreach ($res as $valueRes) {\n $gruposComp = array_merge($valueRes->getGrupo(), $gruposComp);\n }\n } else if (count($res) > 0) {\n $gruposComp = $res[0]->getGrupo();\n } else {\n $gruposComp = $gruposTodos;\n }\n\n if (count(array_intersect($gruposTodos, $gruposComp)) != count($gruposTodos)) {\n foreach ($gruposTodos as $grupo) {\n $pos = array_search($grupo, $gruposComp);\n if ($pos) {\n $pos1 = array_search($grupo, $gruposInser);\n if (in_array($grupo, $gruposInser)) {\n unset($gruposInser[$pos1]);\n }\n $existen = true;\n } else {\n $pos2 = array_search($grupo, $gruposInser);\n if (in_array($grupo, $gruposInser)) {\n unset($gruposInser[$pos2]);\n }\n }\n }\n } else {\n $gruposInser = $gruposTodos;\n }\n }\n $todosGruposAsocProd = $em->getRepository('NomencladorBundle:NomPrecio')->getProdPrecios($padres['id']);\n\n $gruposComp1 = [];\n foreach ($todosGruposAsocProd as $valueRes) {\n $gruposComp1 = array_merge($valueRes->getGrupo(), $gruposComp1);\n }\n foreach (array_unique($gruposComp1) as $grupo1) {\n $pos3 = array_search($grupo1, $gruposInser);\n if (in_array($grupo1, $gruposInser)) {\n unset($gruposInser[$pos3]);\n }\n }\n\n if (count($gruposInser) > 0) {\n $nomPrecio = new NomPrecio();\n $um = $em->getRepository('NomencladorBundle:NomUnidadmedida')->find($datos['um']);\n $nomPrecio->setPreciocuc($datos['preciocuc']);\n $nomPrecio->setPreciomn($datos['preciomn']);\n $nomPrecio->setUm($um);\n $nomPrecio->setProducto($prod);\n $nomPrecio->setImpuesto($datos['impuesto']);\n $nomPrecio->setIdpadre($valueProd);\n $nomPrecio->setGrupo($gruposInser);\n $em->persist($nomPrecio);\n $inserto = true;\n } else {\n $existen = true;\n }\n }\n\n $em->flush();\n if (!$existen) {\n $this->addFlash('success', 'Se ha insertado el elemento correctamente.');\n if ($datos['action'] == \"aceptar\")\n return $this->redirectToRoute('precio_index', array('remember' => 1));\n else\n return $this->redirectToRoute('precio_new');\n } else {\n $this->addFlash('warning', 'Algunos de los elementos no se insertaron porque existen.');\n if ($inserto) {\n if ($datos['action'] == \"aceptar\")\n return $this->redirectToRoute('precio_index', array('remember' => 1));\n else\n return $this->redirectToRoute('precio_new');\n }\n return $this->redirectToRoute('precio_new');\n }\n }\n\n return $this->render('NomencladorBundle:nomprecio:new.html.twig', array(\n 'nomPrecio' => $nomPrecio,\n 'form' => $form->createView(),\n 'accion' => 'Adicionar'\n ));\n }", "title": "" }, { "docid": "9dc250756fd76d4375a5b393e732273e", "score": "0.58206195", "text": "public function criarProcessPageFields($id_turma = \"\", $id_instituicao = \"\", $permissao = \"\", $id_usuario = \"\")\n {\n //\n $db = new UsuarioDB($this->_context);\n\n if(empty($id_turma))\n {\n $id_turma = 0;\n }\n\n $it = $db->obterTodosOsUsuariosQueNaoEstaoNaTurmaPorIDInstituicao($id_instituicao, $id_turma);\n\n $arrayUsuario = PanteonEscolarBaseDBAccess::getArrayFromIterator($it, \"id_usuario\", \"nome_completo_usuario\");\n\n if($id_usuario == \"\")\n {\n unset($arrayUsuario[\"\"]);\n $arrayUsuarioXTurma = $arrayUsuario;\n\n $db = new UsuarioXTurmaDB($this->_context);\n $it = $db->obterTodosOsUsuariosPorIDTurma($id_turma);\n\n while($it->hasNext())\n {\n $sr = $it->moveNext();\n unset($arrayUsuarioXTurma[$sr->getField(\"id_usuario\")]);\n }\n }\n\n // Fim Obtencao de dados de Tabelas Auxiliares-Relacionadas\n\n // Inicio ProcessPageField\n $fieldList = new ProcessPageFields();\n\n // Inicio Campos da Entidade\n\n if($id_usuario != \"\")\n {\n $field = ProcessPageFields::FactoryMinimal(\"id_usuario\", \"Usuário\", 30, false, false);\n }\n\n else\n {\n $field = ProcessPageFields::FactoryMinimal(\"id_usuario\", \"Usuário\", 30, true, true);\n }\n\n $field->fieldXmlInput = PanteonEscolarXmlInputObjectType::RANDERNET_DUALLIST_ASMSELECT;\n $field->arraySelectList = $arrayUsuario;\n // seleciona o valor inicial\n $field->defaultValue = 9;\n\n\n $fieldList->addProcessPageField($field);\n\n if($id_usuario != \"\")\n {\n $db = new TurmaDB($this->_context);\n $it = $db->obterTodos();\n $arrayTurma = PanteonEscolarBaseDBAccess::getArrayFromIterator($it, \"id_turma\", \"nome_turma\");\n\n if(($this->_context->ContextValue(\"acao\") == \"\") || ($this->_context->ContextValue(\"acao\") == \"move\"))\n {\n $field = ProcessPageFields::FactoryMinimal(\"id_turma\", \"Turma\", 30, true, true);\n $field->editable = false;\n $field->fieldXmlInput = XmlInputObjectType::HTMLTEXT;\n $field->editListFormatter = new PanteonEscolarTurmaFormatter($this->_context, \"view\");\n $fieldList->addProcessPageField($field);\n }\n\n else\n {\n $field = ProcessPageFields::FactoryMinimal(\"id_turma\", \"Turma\", 30, true, true);\n $field->fieldXmlInput = XmlInputObjectType::SELECTLIST;\n $field->arraySelectList = $arrayTurma;\n $fieldList->addProcessPageField($field);\n\n }\n\n }\n\n else\n {\n $field = ProcessPageFields::FactoryMinimal(\"id_turma\", \"Turma\", 30, false, false);\n $field->fieldXmlInput = XmlInputObjectType::HIDDEN;\n $field->defaultValue = $id_turma;\n $fieldList->addProcessPageField($field);\n }\n\n if($this->_context->ContextValue(\"acao\") != \"ppnew\")\n {\n if($id_usuario == \"\")\n {\n $field = ProcessPageFields::FactoryMinimal(\"id_\".$this->_nome_entidade, \"Apagar?\", 1, true, true);\n $field->editListFormatter = new PanteonEscolarUsuarioXTurmaFormatter($this->_context, 'delete');\n $field->editable = false;\n $fieldList->addProcessPageField($field);\n }\n }\n\n // ID da Entidade (Todos Possuem)\n $field = ProcessPageFields::FactoryMinimal(\"id_\".$this->_nome_entidade, \"\", 1, false, false);\n $field->editable = false;\n $field->key = true;\n $fieldList->addProcessPageField($field);\n\n // Fim dos Campos do ProcessPageFields\n\n $processpage = new PanteonEscolarMyProcess($this->_context,\n $fieldList,\n $this->_titulo_entidade,\n \"module:panteonescolar.\".$this->_nome_modulo.\"&amp;chamada=1\",\n NULL,\n $this->_nome_entidade,\n PanteonEscolarBaseDBAccess::DATABASE());\n\n $processpage->setPageSize($this->_num_registros_padrao, $this->_context->ContextValue(\"curpage\"));\n\n if($permissao)\n {\n $processpage->setPermissions($permissao[0], $permissao[1], $permissao[2], $permissao[3]);\n }\n\n else\n {\n $processpage->setPermissions(false, false, false, false);\n }\n\n // Filtros\n if($id_turma != \"\")\n {\n $processpage->setFilter(\"id_turma = \" . $id_turma);\n }\n\n if($id_usuario != \"\")\n {\n $processpage->setFilter(\"id_usuario = \" . $id_usuario);\n }\n\n return $processpage;\n\n }", "title": "" }, { "docid": "28558e518034d53b6ec6140746b1d76b", "score": "0.58149254", "text": "public function getPagosSortedController(){\n\t\t//Alumnas : nombre, apellidos, fecha nac, grupo\n\t\t$informacion = Crud::getPagosSortedByDate();//ejecucion del metodo del modelo\n\t\tif(!empty($informacion)){\n\t\t\t\t$i = 1;\n\t\t\t\t//imprimir los datos en forma de tabla\n\t\t\t\tforeach ($informacion as $row => $item) {\n\t\t\t\t\t$alumna = Crud::getRegModel($item['id_alumna'], \"alumnas\");\n\t\t\t\t\t$grupo = Crud::getRegModel($alumna['id_grupo'], \"grupos\"); //obtener la informacion del grupo de cada alumna para mostrarlo\n\t\t\t\t\techo \"<tr>\";\n\t\t\t\t\techo \"<td>\".$i.\"</td>\";\n\t\t\t\t\techo \"<td>\".$grupo['nombre'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$alumna['nombre']. \" \" .$alumna[\"apellidos\"] .\"</td>\";\n\t\t\t\t\techo \"<td>\".$item['nombre_mama'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$item['fecha_pago'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$item['fecha_envio'].\"</td>\";\n\t\t\t\t\techo \"<td>\".$item['folio'].\"</td>\";\n\t \t\techo \"</tr>\";\n\t \t\t$i++;\n\t\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "1eaf142b0c650ae8bb5e6419132d7d64", "score": "0.58103967", "text": "public function create($datos)\n {\n // return view('GestionDocumental.suscripcion.create');\n echo $datos->path;\n }", "title": "" }, { "docid": "0ac30758ea0ce8e684b6019bbadd254f", "score": "0.5797121", "text": "public function cadastrargrupoacessoAction() {\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "841488a8eeb107a90747a00e1f2ef1cd", "score": "0.5784492", "text": "public function createAction(Request $request)\n {\n $entity = new VentaPaquete();\n \n //$entity->getFechaVenta();\n $em = $this->getDoctrine()->getManager();//\n \n //Obtener el usuario segun el id\n //$usuario = $em->getRepository('DGPlusbelleBundle:Usuario')->findBy(array(\"id\"=>1));\n $usuario= $this->get('security.token_storage')->getToken()->getUser();\n\n// $dql = \"SELECT suc.id\n// FROM DGPlusbelleBundle:Usuario u\n// JOIN u.persona per\n// JOIN per.empleado emp\n// \n// WHERE u.id=:id\";\n// \n// $entities = $em->createQuery($dql)\n// ->setParameter('id',1)\n// ->getResult();\n\n\n// $sucursal = $em->getRepository('DGPlusbelleBundle:Sucursal')->findBy(array(\"id\"=>$entities[0][\"id\"]));\n// $entity->setSucursal($sucursal[0]);\n $entity->setUsuario($usuario);\n //var_dump($usuario);\n\n //die();\n\n $entity->setFechaRegistro(new \\DateTime('now'));\n $entity->setFechaVenta(new \\DateTime('now'));\n $entity->setEstado(1);\n $form = $this->createCreateForm($entity);\n $form->handleRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $em->flush();\n\n $paqueteTratamiento = $em->getRepository('DGPlusbelleBundle:PaqueteTratamiento')->findBy(array('paquete' => $entity->getPaquete()->getId()));\n // var_dump($paqueteTratamiento);\n // die();\n foreach($paqueteTratamiento as $pt){\n $seguimiento = new SeguimientoPaquete;\n $seguimiento->setVentaPaquete($entity);\n $seguimiento->setNumSesion(0);\n $seguimiento->setTratamiento($pt->getTratamiento());\n $em->persist($seguimiento);\n $em->flush();\n }\n \n $usuario= $this->get('security.token_storage')->getToken()->getUser();\n $this->get('bitacora')->escribirbitacora(\"Se registro la venta de un paquete\",$usuario->getId());\n \n return $this->redirect($this->generateUrl('admin_ventapaquete'));\n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "73116e13250d8de7189d02f96d34f956", "score": "0.5781577", "text": "public function create()\n { \n $ti= CE_tipo::orderBy('nombre','ASC')->get();\n $amb=DB::table('ambito')->get();\n $am=DB::table('ambito')->get();\n $pa=DB::table('pais')->get();\n $es=DB::table('estado')->get();\n $ar=DB::table('archivo')->get();\n $cat=$this->repoComvenio->getCategoria(1); // 1 = convenio 2 = contrato\n $res=$this->repoComvenio->getResponsable();\n return view('convenios.create',compact('ti','amb','pa','es','ar','cat','am','res'));\n }", "title": "" }, { "docid": "844a776d1d4e6b21bfd5a745065bef50", "score": "0.57797873", "text": "function cl_pagordemele() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"pagordemele\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_SELF\"]);\n }", "title": "" }, { "docid": "20fd5e4ed57db571338d05ef2fe78cee", "score": "0.5761495", "text": "public function subirProyectoAction(){\n\t\t$request = $this->getRequest();\n\n\t\t$usuario = $this->get('security.context')->getToken()->getUser();\n\t\t$peticion = $this->getRequest();\n\n\t\t$em = $this->getDoctrine()->getManager();\n\t\t$repository = $this->getDoctrine()->getRepository('CituaoCoordBundle:Practicante');\n\t\t$practicante = $repository->findOneBy(array('codigo' => $usuario->getUsername()));\n\t\t\n\t\t$document = new Docpdf();\n\t\t$form = $this->createFormBuilder($document)\n\t\t->add('file','file',array( 'label' => 'Documento (solo tipo pdf):') )\n\t\t\t//->add('name')\n\t\t->getForm();\n\n\t\t$form->handleRequest($request);\n\n\t\tif ($form->isValid()) {\n\t\t\t$document->setPath($practicante->getCodigo().'.pdf' );\n\t\t\t$practicante->setPathPdf($practicante->getCodigo().'.pdf');\n\t\t\t$practicante->setListoProyecto(true);\n\t\t\t\n\t\t\t//se copia el archivo al directorio del servidor\t\t\t\n\t\t\t$document->upload();\n\t\t\t\n\t\t\t//buscamos los registros de los cronogramas y determinar si se ha entregado todo\n\t\t\t$query = $em->createQuery(\n\t\t\t\t\t'SELECT i FROM CituaoAcademicoBundle:Cronograma i WHERE i.practicante =:id_pra ');\n\t\t\t$query->setParameter('id_pra',$practicante->getId());\n\t\t\t$cronogramacademico = $query->getOneOrNullResult();\n\t\t\t\n\t\t\t//buscamos el registro cronograma del externo y determinar si ya registro el acto de conformidad\n\t\t\t$query = $em->createQuery(\n\t\t\t\t'SELECT i FROM CituaoExternoBundle:Cronogramaexterno i WHERE i.practicante =:id_pra ');\n\t\t\t$query->setParameter('id_pra',$practicante->getId());\n\t\t\t$cronogramaexterno = $query->getOneOrNullResult();\n\t\t\t\n\t\t\t//cambiamos estado del practicante\n\t\t\tif ($cronogramaexterno->getListoActa() == true && $cronogramacademico->getListoEvaluacionFinal() == true) {\n\t\t\t\t\n\t\t\t\t//buscamos el informe para actualizar \n\t\t\t\t$query = $em->createQuery(\n\t\t\t\t\t'SELECT i FROM CituaoExternoBundle:Acta i WHERE i.practicante =:id_pra ');\n\t\t\t\t$query->setParameter('id_pra',$practicante->getId());\n\t\t\t\t\n\t\t\t\t$acta = $query->getOneOrNullResult();\n\t\t\t\t//si no hay informes creamos una instancia de informe final\n\t\t\t\tif ($acta->getSatisfaccion()) {\n\t\t\t\t\t//verificamos si el asesor externo pasa a usuario inactivo\n\t\t\t\t\t$repository = $this->getDoctrine()->getRepository('CituaoExternoBundle:Externo');\n\t\t\t\t\t$externo = $repository->findOneBy(array('id' => $practicante->getExterno()->getId()));\n\t\t\t\t\t$numero_practicantes_activos = $externo->getActivos();\n\t\t\t\t\tif ($numero_practicantes_activos == 1){\n\t\t\t\t\t\t$repository = $this->getDoctrine()->getRepository('CituaoUsuarioBundle:Usuario');\n\t\t\t\t\t\t$usuario_externo = $repository->findOneBy(array('username' => $practicante->getExterno()->getCi()));\n\t\t\t\t\t\t$usuario_externo->setIsActive(false);\n\t\t\t\t\t\t$em->persist($usuario_externo);\n\t\t\t\t\t}\n\n\t\t\t\t\t//verificamos si el asesor académico pasa a usuario inactivo\n\t\t\t\t\t$repository = $this->getDoctrine()->getRepository('CituaoAcademicoBundle:Academico');\n\t\t\t\t\t$academico = $repository->findOneBy(array('id' => $practicante->getAcademico()->getId()));\n\t\t\t\t\t$numero_practicantes_activos = $academico->getActivosGeneral();\n\t\t\t\t\tif ($numero_practicantes_activos == 1){\n\t\t\t\t\t\t$repository = $this->getDoctrine()->getRepository('CituaoUsuarioBundle:Usuario');\n\t\t\t\t\t\t$usuario_academico = $repository->findOneBy(array('username' => $practicante->getAcademico()->getCi()));\n\t\t\t\t\t\t$usuario_academico->setIsActive(false);\n\t\t\t\t\t\t$em->persist($usuario_academico);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$practicante->setEstado('2');\n\t\t\t\t\t$usuario->setIsActive(false);\n\t\t\t\t\t$em->persist($usuario);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t$em->persist($practicante);\n\t\t\t$em->flush();\n\t\t\t\n\t\t\tif ($usuario->getIsActive())\n\t\t\t\treturn $this->redirect($this->generateUrl('cituao_practicante_homepage'));\n\t\t\telse{\n\t\t\t\t$repository = $this->getDoctrine()->getRepository('CituaoUsuarioBundle:Programa');\n\t\t\t\t$programa = $repository->findOneBy(array('id' => $practicante->getPrograma()));\n\n\t\t\t\t$message = \\Swift_Message::newInstance();\n\t\t\t\t$message->setSubject('Notificación - Práctica profesional');\n\t\t\t\t$message->setFrom(array($programa->getEmail()=>'Coord. de Práctica profesional'));\n\t\t\t\t$message->setContentType(\"text/html\");\n\t\t\t\t$message->setBody($this->renderView('CituaoPracticanteBundle:Default:email_culmina.html.twig'),'text/html');\n\t\t\t\t$message->setTo(array($practicante->getEmailPersonal() => 'Practicante'));\n\t\t\t\t$this->get('mailer')->send($message);\n\t\t\t\t\n\t\t\t\t$message_coo = \\Swift_Message::newInstance();\n\t\t\t\t$message_coo->setSubject('Notificación - Práctica profesional');\n\t\t\t\t$message_coo->setFrom(array($programa->getEmail()=>'Aplicación Web'));\n\t\t\t\t$message_coo->setContentType(\"text/html\");\n\t\t\t\t$message_coo->setBody($this->renderView('CituaoPracticanteBundle:Default:email_culmina_coordinador.html.twig', array('p' => $practicante)),'text/html');\n\t\t\t\t$message_coo->setTo(array($programa->getEmail() => 'Coordinador'));\n\t\t\t\t$this->get('mailer')->send($message_coo);\n\n\t\t\t\treturn $this->render('CituaoPracticanteBundle:Default:culmina.html.twig');\n\t\t\t}\n\t\t}\t\t\n\t\t$msgerr = array('id'=>'0', 'descripcion'=>' ');\n\t\treturn $this->render('CituaoPracticanteBundle:Default:formsubirproyecto.html.twig', array('form' => $form->createView() , 'msgerr' => $msgerr , 'practicante' => $practicante ));\n\t}", "title": "" }, { "docid": "151d320abd792438f41333e5c839bfa3", "score": "0.57596964", "text": "public function store(CreatePagtoRequest $request)\n {\n PermissionController::temPermissao('pagamentos.update');\n $input = $request->all();\n\n $pagto = $this->pagtoRepository->create($input);\n\n Flash::success('Pagto saved successfully.');\n\n return redirect(route('pagtos.index'));\n }", "title": "" }, { "docid": "f75cf0b96dd81b6b8a97fd08f47cb22c", "score": "0.575816", "text": "public function createThemePages(){\n\t\t$pagesToCreate = [\n\t\t\t'new review'\n\t\t];\n\n\t\tif(count($pagesToCreate) > 0){\n\t\t\tforeach( $pagesToCreate as $pageID ){\n\t\t\t\t$slug = sanitize_title_with_dashes($pageID);\n\t\t\t\t$pageExists = Quarterly_Reviews::the_slug_exists($slug);\n\t\t\t\t\n\t\t\t\tif(!$pageExists){\n\t\t\t\t\t$result = wp_insert_post(array(\n\t\t\t\t\t\t'post_type' => 'page',\n\t\t\t\t\t\t'post_title' => ucfirst($pageID),\n\t\t\t\t\t\t'post_content' => '',\n\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t'post_author' => 1,\n\t\t\t\t\t\t'post_slug' => $slug\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "24ffa522809ca841c23981d35d7a0722", "score": "0.5757673", "text": "public function newPlacaAction($numero, $tipoVehiculo, $servicio, $organismoTransito, $asignacion)\n {\n $helpers = $this->get(\"app.helpers\");\n\n $em = $this->getDoctrine()->getManager();\n \n $placa = $em->getRepository('JHWEBVehiculoBundle:VhloCfgPlaca')->findOneByNumero(\n $numero\n );\n\n if (!$placa) {\n $placa = new VhloCfgPlaca();\n\n $placa->setNumero(mb_strtoupper($numero, 'utf-8'));\n $placa->setEstado('DISPONIBLE');\n $placa->setTipoVehiculo($tipoVehiculo);\n $placa->setServicio($servicio);\n $placa->setOrganismoTransito($organismoTransito);\n $placa->setAsignacion($asignacion);\n\n $em->persist($placa);\n $em->flush();\n\n $response = array(\n 'status' => 'success',\n 'code' => 200,\n 'message' => \"Registro creado con exito\",\n );\n }else{\n $response = array(\n 'status' => 'error',\n 'code' => 400,\n 'message' => 'La placa ya existe', \n );\n }\n \n return $helpers->json($response);\n }", "title": "" }, { "docid": "7b33846fbe85c29d5c3c38c3b8720957", "score": "0.57570064", "text": "public function create()\n {\n $indicador_modulo = 9;\n $route = [ 'route' => 'proyectos-investigacion.store','method'=>'POST' ];\n $tipo_proyecto = TipoProyecto::allLists();\n $nombre_profesor = Profesor::all()->lists('full_name','id');\n $nombre_red = RedConocimiento::all()->lists('full_name', 'id');\n return view('componentes.proyectos-investigacion.addproyecto', compact('route', 'tipo_proyecto', 'nombre_profesor', 'nombre_red', 'indicador_modulo'));\n }", "title": "" }, { "docid": "d79118357b24bfee38c06f6730a1bafa", "score": "0.57516974", "text": "public static function CreerProg(){\r\n\t\t$DescrEtape = myGet('AjouterProgressionDirect');\r\n\t\tControllerEtape::create($DescrEtape);\r\n\t\tself::update();\r\n\t}", "title": "" }, { "docid": "abe6c04ced692f047a4d2bee01072e4a", "score": "0.57478744", "text": "public function execute()\n {\n $resultPage = $this->resultPageFactory->create();\n $resultPage->setActiveMenu(static::MENU_ID);\n $resultPage->getConfig()->getTitle()->prepend(__('Utilidades'));\n\n return $resultPage;\n }", "title": "" }, { "docid": "18364f1a2ea83a5657b1a7d7dea726d9", "score": "0.5741141", "text": "public function generado($numero = null) {\r\n// 'recursive' => -1,\r\n// 'order' => 'Gasto.id DESC'\r\n// ));\r\n//\r\n// $numeroPedido = $gastoFinal['Gasto']['numero'];\r\n\r\n $itemParametro = $this->Gasto->find('first', array(\r\n 'conditions' => array('Gasto.numero' => $numero),\r\n 'fields' => array('MIN(Gasto.id) as id'),\r\n 'group' => ('Gasto.numero')\r\n ));\r\n\r\n $idGasto = $itemParametro['0']['id'];\r\n //debug($itemParametro);die;\r\n\r\n $items = $this->Gasto->find('all', array(\r\n 'recursive' => 0,\r\n 'conditions' => array('Gasto.numero' => $numero)\r\n ));\r\n //debug($numeroPedido);die;\r\n $parametros = $this->Parametro->find('first', array(\r\n 'recursive' => -1,\r\n 'conditions' => array('Parametro.gasto_id' => $idGasto)\r\n ));\r\n\r\n $this->set(compact('items', 'parametros'));\r\n\r\n// debug($gastoFinal);\r\n// debug($items);\r\n }", "title": "" }, { "docid": "9ad0fee39f83efea3a028eb46d7a6e93", "score": "0.5739747", "text": "public function create(){\n $contador = Contador::findOrFail(Utils::$TIPOS_REGISTRAR);\n $contador->increment('contador',1);\n\n\n return view('vistas.tipos.create', [\n 'contador' => $contador,\n ]);\n }", "title": "" }, { "docid": "bcf1f876659c48a215e3cc3b9208d316", "score": "0.57367885", "text": "function insertarDefProyecto(){\n\t\t$this->procedimiento='sp.ft_def_proyecto_ime';\n\t\t$this->transaccion='SP_DEFPROY_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('fecha_inicio_teorico','fecha_inicio_teorico','date');\n\t\t$this->setParametro('descripcion','descripcion','text');\n\t\t$this->setParametro('fecha_fin_teorico','fecha_fin_teorico','date');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('id_proyecto','id_proyecto','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "title": "" } ]
3ec3966d886fd5de295bf1b41ef3212f
Add additional CSS tag (import other CSS than those by default, ei. the views of modules)
[ { "docid": "3a2817eb575856db3cdb49397c2a774d", "score": "0.6438152", "text": "public function addStyle($cssTag);", "title": "" } ]
[ { "docid": "95b314fb777fa2e87bab5f50bc1b76ac", "score": "0.71677643", "text": "private function addCssAndJs() {\n\t\t$css = '<link rel=\"stylesheet\" type=\"text/css\" href=\"' .\n\t\t\tt3lib_extMgm::siteRelPath($this->extKey) . 'res/tx_' . $this->extKey . '_style.css\" />';\n\t\tif($GLOBALS['TSFE']->additionalHeaderData[$this->prefixId]){\n\t\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] .= $css;\n\t\t} else {\n\t\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] = $css;\n\t\t}\n\t\t$GLOBALS['TSFE']->additionalHeaderData[$this->prefixId] .= '<script src=\"' . t3lib_extMgm::siteRelPath($this->extKey) . '/pi1/js/tx_' . $this->extKey . '_pi1.js\" /></script>';\n\t}", "title": "" }, { "docid": "4fc5d7dad8ab15ffffe6ff476f51e923", "score": "0.70976853", "text": "public function addCSS()\n {\n // $this->addToVar('cssCode', $this->addResource('/twbs/bootstrap/dist/css/bootstrap.min', 'css'));\n // $this->addToVar('cssCode', $this->addResource('/css/alxarafe', 'css'));\n }", "title": "" }, { "docid": "9f33ef69fc3fd0ec8f085ed709744b79", "score": "0.6823835", "text": "public function insert_inline_css() {\n }", "title": "" }, { "docid": "9f33ef69fc3fd0ec8f085ed709744b79", "score": "0.6823835", "text": "public function insert_inline_css() {\n }", "title": "" }, { "docid": "dce2b4929fb8348b77c4cc40f2b9b318", "score": "0.6679019", "text": "function _simpletip_include_css() {\n $context = sfContext::getInstance();\n $response = $context->getResponse();\n \n $response->addStylesheet('/trSimpleTipPlugin/css/simpletip.css');\n}", "title": "" }, { "docid": "c549b657eeb4c365dbc9fa1b73633eb1", "score": "0.6674719", "text": "protected function addCssFiles(): void\n {\n $this->design->addCss(\n PH7_LAYOUT,\n PH7_TPL . PH7_TPL_NAME . PH7_SH . PH7_CSS . 'tabs.css,' . PH7_SYS . PH7_MOD . $this->registry->module . PH7_SH . PH7_TPL . PH7_TPL_MOD_NAME . PH7_SH . PH7_CSS . 'general.css'\n );\n }", "title": "" }, { "docid": "7e453cb15663676601fc6f3c39886788", "score": "0.6630123", "text": "public function addCSS() {\r\n\t\techo '<link href=\"'.$this->plugin_url.'/zdgstyle_widget.php\" rel=\"stylesheet\" type=\"text/css\">'.\"\\n\";\r\n\t}", "title": "" }, { "docid": "14d652e7342a060e70cf7d2a891447c6", "score": "0.65980816", "text": "function phorum_mod_announcements_css_register($data)\n{\n $data['register'][] = array(\n \"module\" => \"announcements\",\n \"where\" => \"after\",\n \"source\" => \"template(announcements::css)\"\n );\n return $data;\n}", "title": "" }, { "docid": "7364331ab74770a4c4e068162c9f852e", "score": "0.65395683", "text": "public function hookHeader()\n {\n $this->context->controller->addCSS($this->_path.'/views/css/dbcontactinfo.css');\n }", "title": "" }, { "docid": "9c7bc32a2569e58e779927e87ad4f47a", "score": "0.65108275", "text": "function LiangLee_inc_css($params ,$cssname) {\n if (isset($params,$cssname)) {\n $path = \"mod/\".$params.\"/\";\n echo \"<link rel=\\\"stylesheet\\\" href=\\\"\".elgg_get_site_url().$path.$cssname.\"\\\" type=\\\"text/css\\\" />\\n\";\n\t } else {\n\t if (elgg_is_admin_logged_in()) {\n register_error(elgg_echo('lianglee:cant:load:css'));\n } else {\n register_error(elgg_echo('lianglee:cant:load:css:code'));\t\n }\n\n }\n}", "title": "" }, { "docid": "b10265b7111d1f61f0d6107e357045a2", "score": "0.6509214", "text": "function append_custom_css() {\n\n\t\tbf_add_style_file( self::get_css_version(), array( $this, 'get_final_css' ) );\n\n\t\tif ( bf_is_doing_ajax( 'fetch-mce-view-shortcode' ) ) {\n\t\t\tbf_enqueue_tinymce_style( 'extra', self::get_css_version() );\n\t\t}\n\n\t\t// clear memory\n\t\t$this->final_css = '';\n\t}", "title": "" }, { "docid": "059901aa0f4be99c60865b4c786d9f91", "score": "0.6504541", "text": "public function hookHeader()\n {\n $this->context->controller->addCSS(\n $this->_path . '/views/css/front.css'\n );\n }", "title": "" }, { "docid": "3a926fd3618d05d3347a7c3610438313", "score": "0.65012133", "text": "public function addCssJs()\n\t{\n\t}", "title": "" }, { "docid": "d85a89ed0e222324e9952fe4531acbff", "score": "0.6471067", "text": "public function hookHeader() {\r\n $this->context->controller->addCSS($this->_path . 'style.css');\r\n $this->context->controller->addJS($this->_path . 'script.js');\r\n }", "title": "" }, { "docid": "5f6f0c67d8b3cd1a90e4d1109a4761ec", "score": "0.6470702", "text": "private function _browser_css()\n\t{\n\t\tee()->cp->add_to_head(ee()->view->head_link('css/file_browser.css'));\n\t}", "title": "" }, { "docid": "d8ed5a2cbedc5e20e8a07b6ffc0514ad", "score": "0.6463728", "text": "public function loadAdditionalStyle()\n {\n if ($this->additionalStyle) {\n $this->addStyle($this->additionalStyle);\n return \"<link rel='stylesheet' href='{$this->additionalStyle}' type='text/css'/>\\n\";\n }\n }", "title": "" }, { "docid": "6809427c9e3c11dfe190a437cfee2d70", "score": "0.64472693", "text": "private function addManageAssets()\n {\n AssetManager::addAsset('customer-color-css', 'backend/plugins/customer/assets/css/customer-color.css');\n\n AssetPipeline::requireCss('customer-color-css');\n }", "title": "" }, { "docid": "29ea0bba7d89d7866c2c8982d3e804f3", "score": "0.64403313", "text": "private function set_modules_css() {\n\t\t$this->modules_css = Kirki_Modules_CSS::get_instance();\n\t}", "title": "" }, { "docid": "37799eb95bb5838a08975be6785085bc", "score": "0.6432935", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n link_custom_css('/search.css');\n}", "title": "" }, { "docid": "7ad6b4f74141ef2f8bd16d3dffa3eb81", "score": "0.6419417", "text": "function add_css() {\r\n print \"<style>\\n /* Styles added by \" . $this->pluginName . \" Plugin */\\n\";\r\n\r\n if ($this->options['logo_url']) : ?>\r\nh1 a {background: url(<?php echo $this->options['logo_url'];?>) no-repeat center;}\r\n <?php endif;\r\n\r\n if ($this->options['form_title']) : ?>\r\n.lc_form_title {<?php print $this->options['form_title_style']; ?>}\r\n <?php endif;\r\n\r\n if ($this->options['form_text']) : ?>\r\n.lc_form_text {<?php print $this->options['form_text_style']; ?>}\r\n <?php endif;\r\n\r\n print '</style>';\r\n }", "title": "" }, { "docid": "6a155ce543695e070258821571819d64", "score": "0.64085156", "text": "public function add_css() {\n\t\twp_register_style( 'font-awesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.3.0/css/font-awesome.min.css' );\n\t\twp_register_style( 'wp-to-top', plugins_url( 'wp-to-top/css/wp-to-top.css' ) );\n\n\t\twp_enqueue_style( 'font-awesome' );\n\t\twp_enqueue_style( 'wp-to-top' );\n\n\t\t// custom css from the settings\n\t\trequire_once ( dirname( __DIR__ ) . '/views/css.php' );\n\t\twp_add_inline_style( 'wp-to-top', $custom_css );\n\t}", "title": "" }, { "docid": "4fa3c1792ed512b3fd009fad862d2bae", "score": "0.6407226", "text": "protected function init()\n {\n $this->addCSS('example');\n }", "title": "" }, { "docid": "bbb0cc66e0202b15296f3ad442c9ae80", "score": "0.6382592", "text": "function add_CSS( $file )\n\t{\n\t\tglobal $Cl_root_path4template;\n\t\t\n\t\t$this->CSS_list[] = '<link rel=\"stylesheet\" href=\"' . $Cl_root_path4template . $file . '\" type=\"text/css\" />';\n\t}", "title": "" }, { "docid": "a8ed1c69a32e7d8ddc341f6dace7553a", "score": "0.635364", "text": "function addCss($css){\r\n\t\techo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.$css.'\">';\r\n\t}", "title": "" }, { "docid": "ea3a1c313b2a5431f172d1af0e6bdd49", "score": "0.6331159", "text": "function ivan_vc_custom_css() {\n\tglobal $ivan_custom_css;\n\techo '<style>' . $ivan_custom_css . '</style>';\n}", "title": "" }, { "docid": "04394b2442da1daa789c1604d4783d8b", "score": "0.63045347", "text": "function addCSSFiles()\n\t{\n\t\t$this->AddCSSFile(\"include/zoombox/zoombox.css\");\n\t}", "title": "" }, { "docid": "f4aa091b1193cefd850b6edb7b0f8828", "score": "0.6301895", "text": "function addCSS( $css = '' ) {\r\n\t\tglobal $live_site, $option;\r\n\r\n\t\tif( !$css ) {\r\n\t\t\t$css = 'help';\r\n\t\t}\r\n\r\n\t\t$html = '<link href=\"' . $live_site\r\n\t\t. '/administrator/components/' . $option . '/help/'\r\n\t\t. $css . '.css\" rel=\"stylesheet\" type=\"text/css\" media=\"all\" />';\r\n\r\n\t\tif( CustomQuickIcons::_CheckCMSVersion() ) {\r\n\t\t\t$doc =& JFactory::getDocument();\r\n\t\t\t$doc->addStyleSheet( $live_site . '/administrator/components/' . $option . '/help/' . $css . '.css' );\r\n\t\t}else{\r\n\t\t\techo $html;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "09581b89c9be920cf6564df834e0bcb7", "score": "0.62907505", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n}", "title": "" }, { "docid": "09581b89c9be920cf6564df834e0bcb7", "score": "0.62907505", "text": "function add_css()\n{\n link_custom_css('/info-page.css');\n}", "title": "" }, { "docid": "b2bf4d9a5476ad76cbd0e7dae4a0ac7b", "score": "0.6217233", "text": "function addCss($file,$base='css/',$version='')\n{\n global $global;\n\n if($base == false)\n $base ='css/';\n\n $file=str_replace(\".css\",\"\",$file);\n if($version != false)\n $file.='.css?v='.$version;\n else\n $file.='.css';\n\n $html='<link href=\"'.$base.$file.'\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\" />'.\"\\n\";\n echo $html;\n}", "title": "" }, { "docid": "654cb9f7413b00872bc13b8b3fbdf9ee", "score": "0.6197831", "text": "public function hookBackOfficeHeader()\n {\n $this->context->controller->addCSS($this->_path . 'views/css/back.css');\n }", "title": "" }, { "docid": "d4362033d634a383e2365b5676761c2d", "score": "0.6190105", "text": "public function appendCssUrl($url) {\r\n $this->appendToHead(<<<HTML\r\n <link rel=\"stylesheet\" type=\"text/css\" href=\"{$url}\">\r\n\r\nHTML\r\n) ;\r\n }", "title": "" }, { "docid": "41276dc768e15d47d496c93270a378aa", "score": "0.610769", "text": "public function dynamic_css() {\n\t\tinclude_once( ICONIC_WDS_PATH . \"assets/frontend/css/user.css.php\" );\n\t}", "title": "" }, { "docid": "5f1f5a74023d895c2289c617551497b7", "score": "0.61027074", "text": "public function global_custom_css() {\n\n\t\t// just when custom css requested\n\t\tif ( empty( $_GET['better_framework_css'] ) OR intval( $_GET['better_framework_css'] ) != 1 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->display();\n\n\t\texit;\n\t}", "title": "" }, { "docid": "8e1e295d460ae24752edf0532774e771", "score": "0.60939157", "text": "public function add_css(){\n\n\t\tif ($this->use['css'] == 1){\n\t\t\twp_enqueue_style( 'banner-aquit', $this->plugin_url.'plugin/jquery.cycle.css', null, null);\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "d749af6014780780261829203322195f", "score": "0.60654026", "text": "function include_admin_css() {\n\t\tglobal $pagenow;\n\t\t\n\t\t$found = false;\n\t\t\n if (($pagenow == 'edit.php' || $pagenow == 'post-new.php') && isset($_GET['post_type']) && $_GET['post_type'] == 'view-template') {\n\t\t\t$found = true;\n\t\t}\n\t\tif ($pagenow == 'post.php') {\n\t\t\tglobal $post;\n if ($post->post_type == 'view-template') {\n\t\t\t\t$found = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n if ($found) {\n\t\t\t$link_tag = '<link rel=\"stylesheet\" href=\"'. WPV_URL . '/res/css/wpv-views.css?v='.WPV_VERSION.'\" type=\"text/css\" media=\"all\" />';\n echo $link_tag;\n }\n }", "title": "" }, { "docid": "0c01dc313d1807c6af539ff19b15c57f", "score": "0.60616326", "text": "public function hookHeader()\n {\n if ((bool)$this->isSeven === false) {\n $custom_css = _PS_MODULE_DIR_.'/'.$this->name.'/views/css/custom.css';\n $custom_js = _PS_MODULE_DIR_.'/'.$this->name.'/views/js/custom.js';\n if (file_exists($custom_css)) {\n $this->context->controller->addCSS($this->_path.'/views/css/custom.css');\n }\n if (file_exists($custom_js)) {\n $this->context->controller->addJS($this->_path.'/views/js/custom.js');\n }\n }\n $custom_css_links = explode(PHP_EOL, Configuration::get('EVERPSCSS_LINKS'));\n if ($custom_css_links && count($custom_css_links) > 0) {\n foreach ($custom_css_links as $key => $css_link) {\n if (empty($css_link)) {\n continue;\n }\n if ((bool)$this->isSeven === false) {\n $this->context->controller->addCSS($css_link);\n } else {\n $this->context->controller->registerStylesheet(\n 'everpscss-'.$key,\n $css_link,\n ['server' => 'remote', 'position' => 'bottom', 'priority' => 80]\n );\n }\n }\n }\n $custom_js_links = explode(PHP_EOL, Configuration::get('EVERPSJS_LINKS'));\n if ($custom_js_links && count($custom_js_links) > 0) {\n foreach ($custom_js_links as $key => $js_link) {\n if (empty($js_link)) {\n continue;\n }\n if ((bool)$this->isSeven === false) {\n $this->context->controller->addJS($js_link);\n } else {\n $this->context->controller->registerJavascript(\n 'everpscss-'.$key,\n $js_link,\n ['server' => 'remote', 'position' => 'bottom', 'priority' => 80]\n );\n }\n }\n }\n }", "title": "" }, { "docid": "165edf9b0559550c1daeff153abb11f6", "score": "0.6016303", "text": "function DCP_add_CSS() {\n\t$url = plugins_url('assets/css/style.css', __FILE__);\n\techo \"<link rel='stylesheet' type='text/css' href='$url'/> \\n\";\n}", "title": "" }, { "docid": "0fc22ff374685138856919b464bdf1eb", "score": "0.60133284", "text": "function css_adition(){\n\t\twp_register_style('wiki-headers-extending',plugins_url('/',__FILE__).'css/headers-extending.css');\n\t\twp_enqueue_style('wiki-headers-extending');\t\t\n\t\t\n\t}", "title": "" }, { "docid": "6f856b61f1fb793f8ddf3ff7efdaf35d", "score": "0.60082895", "text": "public static function admin_custom_css()\n {\n ?>\n <style>\n\t .elementor-editor-active #g-navigation.headroom { display: none; }\n </style>\n <?php\n }", "title": "" }, { "docid": "0f88e86855e3211b3248b5bb7cedc528", "score": "0.59992564", "text": "protected function registerCoreCss()\n {\n \tYii::app()->clientScript->registerCssFile($this->getAssetsUrl() . '/css/profile.css');\n }", "title": "" }, { "docid": "6443899c17125725c5e259b1f75f7f3f", "score": "0.5994404", "text": "function content_add_my_stylesheet(){\n\t\tglobal $ecpt_base_dir;\n\t\t wp_register_style( 'content_add_my_stylesheet',$ecpt_base_dir.'includes/tinymce/css/style.css' );\n\t}", "title": "" }, { "docid": "cf34a74b9df98b05f1e5d11e7f2ea85a", "score": "0.5988165", "text": "public static function header_output()\r\n {\r\n $css = '<style type=\"text/css\">' . PHP_EOL;\r\n // Add below line for EVERY CSS selector.\r\n //$css .= self::generate_css( 'SELECTOR', 'STYLE', 'MOD_NAME', 'PREFIX', 'POSTFIX').PHP_EOL;\r\n $css .= '</style>' . PHP_EOL;\r\n }", "title": "" }, { "docid": "e28d1d944f326a0589b54ad2b12dc4c9", "score": "0.598255", "text": "public function add_pro_css() {\n\t\t$this->template_part( 'pro-style' );\n\t}", "title": "" }, { "docid": "abcadf0fd01627bd81a8d9841fa6eae0", "score": "0.5979502", "text": "function knacc_add_custom_css() {\n\n\t$custom_css = get_field('custom_css', 'options');\n\n\tif ($custom_css) {\n\t\twp_add_inline_style('show-tell-style', $custom_css);\n\t}\n}", "title": "" }, { "docid": "a36ca08b64024992e2c58b334d37ed1d", "score": "0.5970807", "text": "function elgg_register_css($name, $url, $priority = null) {\n\treturn elgg_register_external_file('css', $name, $url, 'head', $priority);\n}", "title": "" }, { "docid": "175443c86c6b9a913f31562945c44130", "score": "0.5970675", "text": "function moments_qodef_print_custom_css() {\n\t\t$custom_css = moments_qodef_options()->getOptionValue( 'custom_css' );\n\n\t\tif ( $custom_css !== '' ) {\n\t\t\twp_add_inline_style( 'moments-qodef-modules', $custom_css );\n\t\t}\n\t}", "title": "" }, { "docid": "8aed41dd11fb161fdf40d4057f52d58b", "score": "0.59671223", "text": "public function builder_additional_styles() { ?>\n\n <style id=\"cv-builder-cv_image-module\">\n .cv-module-cv_image .cv-module-preview {\n text-align: center;\n }\n </style>\n\n <?php }", "title": "" }, { "docid": "4b6c11a442f042aaaf595351df1ade9f", "score": "0.5965094", "text": "function mombo_header_scripts_css() {\t\n\tob_start();\n\tget_template_part('/inc/frontend/schema');\t\n\t$custom_css_code = ob_get_clean(); \n\twp_add_inline_style( 'mombo-main-style', $custom_css_code );\n}", "title": "" }, { "docid": "54c45caee671f7fa14a470fd907ac846", "score": "0.59638834", "text": "public function hookHeader()\n {\n \n if($this->context->controller->php_self == 'suppliermap'){\n $this->context->controller->addCSS($this->_path.'views/css/bootstrap.min.css');\n $this->context->controller->addJS($this->_path.'views/js/pagination.min.js');\n $this->context->controller->addJS($this->_path.'views/js/front.js');\n $this->context->controller->addCSS($this->_path.'views/css/front.css');\n }\n elseif($this->context->controller->php_self == 'index'){\n $this->context->controller->addJS($this->_path.'views/js/home.js');\n $this->context->controller->addCSS($this->_path.'views/css/home.css');\n }\n }", "title": "" }, { "docid": "0e44090085465085ba9b22d763abe4f6", "score": "0.593878", "text": "public function add_modulecssfile($cssfile, $from = \"\")\n\t{\n\t\tif (strcmp($from, \"\") == 0) \t\n\t\t\t$from = $this->modulename;\n\t\telse\n\t\t\t$from = ucfirst($from);\n\t\t$this->cssfilelist[\"web/bymodule/\".$from.\"/css/\".basename($cssfile)] = \"web/bymodule/\".$from.\"/css/\".basename($cssfile);\t\t\n\t\t$this->handler->add_cssfile($cssfile, $from);\n\t}", "title": "" }, { "docid": "3b6c049d022c7c4a70f31ee17f5ecbfb", "score": "0.592611", "text": "public function AppendCSS($css) {\n $this->_css.=$css;\n }", "title": "" }, { "docid": "bdd99ebb72b2e317b213026aedfa1b6e", "score": "0.5924382", "text": "function addCSSFiles()\n\t{\n\t\t$this->pageObject->AddCSSFile(\"jquery.signaturepad.css\");\n\t}", "title": "" }, { "docid": "d0cebf0c8e7f6942e512db7c245f6a5b", "score": "0.5907155", "text": "function contacts_insert_head_css($flux) {\n\t$flux .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.find_in_path('contacts.css').'\" media=\"all\" />';\n\treturn $flux;\n}", "title": "" }, { "docid": "0a25a8a704073f47792d9881f9c1a736", "score": "0.59060395", "text": "public function addCss($path, $local=null, $filter=null, $attributes=null){ }", "title": "" }, { "docid": "8ea4ba9f3548fd6f92d0c1225f981c6a", "score": "0.5898404", "text": "function addCssModulo($css, $ruta = true)\r\n {\r\n $modulo = $this->modulo;\r\n (Helpers\\Cadenas::guionCase($modulo) == 'jadmin') ? $modulo = \"Framework\" : $modulo = \"Aplicacion/Modulos/\" . $modulo;\r\n\r\n if ($ruta === TRUE) {\r\n if ($this->_esJadmin and !$this->_esApp) {\r\n $ruta = '/Framework/Jadmin/Modulos/' . ucwords(strtolower($modulo)) . '/htdocs/css/';\r\n } else {\r\n $ruta = '/Aplicacion/Modulos/' . ucwords(strtolower($modulo)) . '/htdocs/css/';\r\n }\r\n }\r\n if (!is_array($css)) {\r\n $js = explode(' ', $css);\r\n }\r\n\r\n if (is_array($css)) {\r\n\r\n foreach ($css as $key => $archivo) {\r\n\r\n if (array_key_exists(strtolower($this->modulo), $this->css)) {\r\n $this->css[strtolower($this->modulo)][] = $ruta . $archivo;\r\n } else {\r\n if ($this->_esJadmin and array_key_exists('jadmin', $this->css)) {\r\n $this->css['jadmin'][] = $ruta . $archivo;\r\n }\r\n $this->css[] = $ruta . $archivo;\r\n }\r\n }\r\n\r\n }\r\n\r\n }", "title": "" }, { "docid": "2b754be6914379390ef9a964d489da75", "score": "0.5897284", "text": "public function addCSS($script = \"\")\n {\n if (!in_array($script, $this->css)) {\n $this->css[] = $script;\n }\n }", "title": "" }, { "docid": "bf046485ca4d292f99b1ddd18d8b3604", "score": "0.5888958", "text": "public function hookBackOfficeHeader()\n {\n if (Tools::getValue('configure') == $this->name) {\n $this->context->controller->addCSS($this->_path.'views/css/back.css');\n }\n }", "title": "" }, { "docid": "f84f6f82c246951244a81ed3db3be56f", "score": "0.5879306", "text": "function admin_css()\r\n{\r\n}", "title": "" }, { "docid": "3b515a011baaf8ed6e48ceaf4654dec4", "score": "0.58718455", "text": "function control_panel__add_to_head()\n\t{\n\t\tif (in_array(URL::getCurrent(), array('/publish', '/member'))) {\n\t\t\treturn $this->css->link('fieldtamer.css');\n\t\t}\n\t}", "title": "" }, { "docid": "cc433cf7edb7deab943d090e60dfa639", "score": "0.58699447", "text": "public function append($css)\n {\n $this->css .= $css;\n }", "title": "" }, { "docid": "5ec6f2a4770d17f0de97d1e38aaf5820", "score": "0.586978", "text": "public static function module_css($stylesheets = array(), $attr = array(), $group = NULL, $raw = false)\n\t{\n\t\t//grab the active request\n $active = \\Request::active();\n return static::_set_assets('modules/'.$active->module.DS, 'css', $stylesheets, $attr, $group, $raw);\n\t}", "title": "" }, { "docid": "f4ccc1b7b04093ca571f3faa38da9f9a", "score": "0.586165", "text": "public function init() {\n parent::init();\n\t\tPageContext::addStyle(\"admin_style.css\");\n }", "title": "" }, { "docid": "d00dea28f9850f2c1eaa8eab0b63b311", "score": "0.5860923", "text": "function add_style ($path, $media='all') {\n\t\tif(isset($path)) {\n\t\t\t$this->__style[] = '<link rel=\"stylesheet\" media=\"'.$media.'\" href=\"'.$path.'\" type=\"text/css\">';\n\t\t} else {\n\t\t\t$this->__style[] = '<style type=\"text/css\">'.$media.'</style>';\n\t\t}\n\t}", "title": "" }, { "docid": "e39f28defb59fcb928e9535be01c4e4c", "score": "0.58501154", "text": "function use_css ($css_file) {\n\techo '<link rel=\"stylesheet\" href=\"' . path_to_asset ('css', $css_file, TRUE) . '\" />';\n}", "title": "" }, { "docid": "7aa75838472cd9c8f371e226a3f1a2fa", "score": "0.58470875", "text": "public function add_dynamic_stylesheet() {\n $mce_css = get_bloginfo('url') . '?custom_styles_trigger=1';\n wp_register_style('custom_styles_css', $mce_css);\n wp_enqueue_style('custom_styles_css');\n }", "title": "" }, { "docid": "8ab37cd2002c0cf55b9aa6270bc67b3d", "score": "0.5836438", "text": "public function addCSS(&$params, \\TYPO3\\CMS\\Core\\Page\\PageRenderer $pageRenderer) {\n\n\n \t$objectManager = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Extbase\\\\Object\\\\ObjectManager');\n \t$themeConfigurationRepo = $objectManager->get('Interfrog\\\\IfThemeconfiguration\\\\Domain\\\\Repository\\\\ThemeConfigurationRepository');\n\n \t$query = $themeConfigurationRepo->createQuery();\n\t\t$query->logicalOr(\n\t\t\t$query->equals('pid', $GLOBALS['TSFE']->rootLine[0]['uid']),\n\t\t\t$query->equals('pid', $GLOBALS['TSFE']->id)\n\t\t);\n\t\t$themes = $query->execute();\n\n\t\tforeach ($themes as $theme) {\n \t\t$pageRenderer->addCssFile($theme->getCssfile());\n\t\t}\n\t}", "title": "" }, { "docid": "c30b043eaa1a8b472598d3ea7e5b6624", "score": "0.58362013", "text": "function addHeaderCode() {\n\t\t\t\techo '<link rel=\"stylesheet\" type = \"text/css\" href=\"' . get_bloginfo('wpurl') . '/wp-content/plugins/random-links/css/random-links.css\"/>';\n\t\t\t\techo '<link rel=\"stylesheet\" type = \"text/css\" href=\"' . get_bloginfo('wpurl') . '/wp-content/plugins/random-links/css/socrates-pretty-style.css\"/>';\n\t\t\t}", "title": "" }, { "docid": "d1264f3780264fa1ab33777cad9f8c50", "score": "0.5830936", "text": "function customPageHeader(){\n?>\n<!-- Add any CSS or JS files here -->\n <link rel=\"stylesheet\" href=\"./css/styles.css\" />\n<?php }", "title": "" }, { "docid": "98c10323450503ce97365d58b54832bf", "score": "0.5824973", "text": "public function addCSS($path)\n {\n $this->stylesheets[] = \"../management/$path\";\n return $this;\n }", "title": "" }, { "docid": "c128daf2df1a778dc9354af765ec2739", "score": "0.58229077", "text": "function mm_frontend_style() {\n\tglobal $use_mm_styles;\n\tif( $use_mm_styles ) {\n\t\t?>\n\t\t<link rel='stylesheet' id='mojo-frontent-css' href='<?php echo MM_ASSETS_URL . 'css/front-end.css'; ?>' type='text/css' media='all' />\n\t\t<?php\n\t}\n}", "title": "" }, { "docid": "fbecfa1bf31dcafbbf7d1f5b06f89f81", "score": "0.5812962", "text": "protected function renderHeadContent(): void\n {\n ?>\n <style>\n <?php\n require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'admin.css';\n ?>\n </style>\n <?php\n // Render the custom HEAD content.\n }", "title": "" }, { "docid": "3e7e07bf992c7f014eb6a7f70a13d0e4", "score": "0.5804152", "text": "function importCSS() {\n echo '<link rel=\"stylesheet\" href=\"css/reset.css\" />';\n echo '<link rel=\"stylesheet\" href=\"css/style.css\" />';\n }", "title": "" }, { "docid": "22302a14990ed5f7be7466f4858c82b0", "score": "0.5797831", "text": "function elgg_load_css($name) {\n\telgg_load_external_file('css', $name);\n}", "title": "" }, { "docid": "b2c45de86726eaa1d45c88e2e983f778", "score": "0.57942975", "text": "function addLinkTags() {?>\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"vatle.css\" title=\"Normal style\" /><?php\n}", "title": "" }, { "docid": "1356bba95cea85b02c16296801a6d93b", "score": "0.57808685", "text": "public function addStyles()\n {\n wp_enqueue_style(\n \t'UserAccessManagerAdmin', \n UAM_URLPATH . \"css/uamAdmin.css\", \n false, \n '1.0',\n 'screen'\n );\n \n wp_enqueue_style(\n \t'UserAccessManagerLoginForm', \n UAM_URLPATH . \"css/uamLoginForm.css\", \n false, \n '1.0',\n 'screen'\n );\n }", "title": "" }, { "docid": "1661f0cbd606a66ef6167b88061152ee", "score": "0.57622576", "text": "function insert_css_admin_head() {\r\n\r\n // Ajout du css dans le Header\r\n wp_register_style('form-contact-angular-css-admin', esc_url( plugins_url('webroot/style/form-contact-admin.css', __FILE__ )));\r\n wp_enqueue_style('form-contact-angular-css-admin');\r\n\r\n}", "title": "" }, { "docid": "fec50dac5492ed991e2388404dd16473", "score": "0.5743065", "text": "public function addScriptsAndStyles()\n {\n\n $this->wire('config')->styles->add(\"https://vjs.zencdn.net/5.19.2/video-js.css\");\n $this->wire('config')->scripts->add(\"https://vjs.zencdn.net/5.19.2/video.js\");\n if ($this->wire('user')->admin_theme != 'AdminThemeUikit') {\n $this->wire('config')->styles->add($this->wire('config')->urls->{$this->className} . 'assets/nouikit.css');\n }\n }", "title": "" }, { "docid": "361c6a06f28ce06a1191d12aed3c4f9f", "score": "0.5741369", "text": "public static function addCss($css) {\n if (in_array($css, static::$csss)) {\n return;\n }\n static::$csss[] = $css;\n }", "title": "" }, { "docid": "d3c986990d8ed1c8511b9229fbbeb675", "score": "0.5737398", "text": "function shipping_address_add_head_components()\n {\n if ('1' == get_option('shipping_address_enabled')) {\n $CI = &get_instance();\n echo '<link href=\"'.module_dir_url('shipping_address', 'assets/css/shipping_address.css').'?v='.$CI->app_scripts->core_version().'\" rel=\"stylesheet\" type=\"text/css\" />';\n }\n }", "title": "" }, { "docid": "fc59857654f300d2859514f22d4aad84", "score": "0.57369983", "text": "function header(){\n\n\t\techo dcsnt_custom_css();\n\t\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "ce36f0c6038aeb858399f16ae7961f48", "score": "0.5730488", "text": "public function add_styles()\r\n\t{\r\n\t\tglobal $pagenow, $typenow, $plugin_page;\r\n\r\n\t\tif (\r\n\t\t\t(in_array($pagenow, array('post.php', 'post-new.php')) && $typenow == $this->_screen)\r\n\t\t\t|| ($pagenow == 'admin.php' && $plugin_page == $this->_screen)\r\n\t\t) {\r\n\t\t\tICF_Loader::register_css();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "03322833f5adf2af8041cf6b8e22683c", "score": "0.57261574", "text": "private function css_codes() {\n\t\t\t?>\n\t\t\t<style>\n\n\t\t\t</style>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "9e4571df7f89c87920133ee2eaec6bd9", "score": "0.57259226", "text": "public function add_css($css)\n {\n $this->css[$css] = $css;\n }", "title": "" }, { "docid": "1dd70a8d93d2c63580fe6cab77bf11a9", "score": "0.57247007", "text": "public function inLiveEditorRenderCSS()\n {\n if (defined('OP_LIVEEDITOR') && OP_SCRIPT_DEBUG === '') {\n wp_enqueue_style(OP_SN . '-addon-slider', OPPP_BASE_URL . 'css/elements/op_slider_admin' . OP_SCRIPT_DEBUG . '.css', array(), OPPP_VERSION, 'all');\n wp_enqueue_style(OP_SN . '-flexslider', OPPP_BASE_URL . 'css/elements/flexslider' . OP_SCRIPT_DEBUG . '.css', array(), OPPP_VERSION, 'all');\n wp_enqueue_style(OP_SN . '-flexslider-custom', OPPP_BASE_URL . 'css/elements/flexslider-custom' . OP_SCRIPT_DEBUG . '.css', array(), OPPP_VERSION, 'all');\n }\n }", "title": "" }, { "docid": "b616316fb2c4bcb4956768afdeea4968", "score": "0.57156724", "text": "function cssFile($params) {\n // This stops styles inadvertently clashing with the main site.\n if (strpos($_SERVER['REQUEST_URI'], '/plugins/plugincreationwizard/') === 0) {\n echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.$this->getThemePath().'/css/style.css\" />';\n }\n }", "title": "" }, { "docid": "25cc31d24e3b061b54e1d1e62c46a2a6", "score": "0.5714523", "text": "public function on_vc_base_register_admin_css(){\r\n wp_register_style( 'mcw_ue_admin_css', plugins_url('admin/mcw_userelements_vc.css', __FILE__), array(), '1.0.0' );\r\n }", "title": "" }, { "docid": "24b55c7ce07bd1c63efc16d3c828609c", "score": "0.5698564", "text": "public function requiredCSS()\n\t{\n\t\t//update css\n\t\treturn [\"/Static/main.css\", \"/Static/friendslist.css\"];\n\t}", "title": "" }, { "docid": "c5248d6e4fb7ae5aa789d1e6e2f6b75e", "score": "0.569796", "text": "protected function tagStylesheet($attrs,$view) {\n if($attrs->collect == 'true') {\n if (Settings::get(Settings::DEBUG,false) && Request::get('__nominify',false))\n return '';\n \n $ctrl = Pimple::instance()->getControllerInstance();\n $skipLayout = 0;\n if ($ctrl && $ctrl->getSkipLayout()) {\n $skipLayout = 1;\n }\n \n Dir::ensure(Pimple::instance()->getSiteDir().'cache/css/');\n $cacheFile = Pimple::instance()->getSiteDir().'cache/css/counter.tmp';\n if (File::exists($cacheFile))\n $stamp = file_get_contents($cacheFile);\n else {\n $stamp = time();\n file_put_contents($cacheFile,$stamp);\n }\n return sprintf('<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" />',Url::makeLink('pimple','css',array('view'=> Pimple::instance()->getViewFile(),'stamp'=>$stamp,'skipLayout'=>$skipLayout))).\"\\n\";\n }\n\n\t\tif ($attrs->local == 'false') {\n\t\t\t$base = Settings::get(Pimple::URL);\n if ($view != null)\n $view->addCssFile(Pimple::instance()->getBaseDir().'www/'.$attrs->path);\n\t\t} else {\n if ($view != null)\n $view->addCssFile(Pimple::instance()->getSiteDir().$attrs->path);\n\t\t\t$base = Url::basePath();\n\t\t}\n\n $url = $base.$attrs->path;\n if ($attrs->inline != 'true') {\n if ($view == null || Settings::get(Settings::DEBUG,false) && Request::get('__nominify',false)) {\n return sprintf('<link href=\"%s\" rel=\"stylesheet\" type=\"text/css\" />',$url);\n } \n return '';\n }\n\n $path = Dir::normalize(BASEDIR).$attrs->path;\n $css = file_get_contents($path);\n \n $css = str_replace('url(../',\"url($base\",$css);\n return sprintf('<style type=\"text/css\">%s</style>',$css);\n\n\t}", "title": "" }, { "docid": "c9a6a1b91194050757d55a20189bd03a", "score": "0.5696835", "text": "function mailchimpSF_main_css() {\n require_once(MCSF_DIR . '/views/css/frontend.php');\n}", "title": "" }, { "docid": "6a7ccd529b243c8f73b9da651d439f59", "score": "0.5695314", "text": "private function add_head_elements()\n {\n $this->mvc->head->enable_jquery();\n $this->mvc->head->enable_jquery_ui();\n\n $this->mvc->head->add_jsfile(MIDGARDMVC_STATIC_URL . '/midgardmvc_ui_forms/js/jquery.ui.datetime.min.js');\n $this->mvc->head->add_jsfile(MIDGARDMVC_STATIC_URL . '/midgardmvc_ui_forms/js/init.js');\n\n $this->mvc->head->add_link\n (\n array\n (\n 'rel' => 'stylesheet',\n 'type' => 'text/css',\n 'href' => MIDGARDMVC_STATIC_URL . '/midgardmvc_ui_forms/css/jquery.ui.datetime.css'\n )\n );\n }", "title": "" }, { "docid": "4ad19c6f1a07a0879deeb0fc9b72348a", "score": "0.56906325", "text": "function tp_contact_info_do_css() {\n\t?>\n\t<link href=\"<?php echo get_template_directory_uri(); ?>/assets/css/admin.css\" type=\"text/css\" rel=\"stylesheet\" />\n\t<?php\n}", "title": "" }, { "docid": "00f3b447e9ed7d2ce5e2507d3bf4ae8b", "score": "0.5688477", "text": "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "title": "" }, { "docid": "00f3b447e9ed7d2ce5e2507d3bf4ae8b", "score": "0.5688477", "text": "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "title": "" }, { "docid": "00f3b447e9ed7d2ce5e2507d3bf4ae8b", "score": "0.5688477", "text": "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "title": "" }, { "docid": "00f3b447e9ed7d2ce5e2507d3bf4ae8b", "score": "0.5688477", "text": "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "title": "" }, { "docid": "675a0ddb0689579a9922529e5c0512f5", "score": "0.56877625", "text": "protected function loadCss($path)\n {\n $this->page->addCss($path);\n }", "title": "" }, { "docid": "415a8240fecba527b849eba72ad8b7ca", "score": "0.56813514", "text": "function add_css()\r\n\t{\r\n\t\twp_register_style('annonces_css_main', ANNONCES_CSS_URL . 'annonce.css', '', ANNONCE_PLUGIN_VERSION);\r\n\t\twp_enqueue_style('annonces_css_main');\r\n\t\twp_register_style('annonces_css_fileuploader', ANNONCES_CSS_URL . 'fileuploader.css', '', ANNONCE_PLUGIN_VERSION);\r\n\t\twp_enqueue_style('annonces_css_fileuploader');\r\n\t}", "title": "" }, { "docid": "0a86044e30b7369cc5fbf29a834c2579", "score": "0.5675867", "text": "function reg_css($script){\n $i=global_counter('_SCRIPT_COUNTER');\n $cs=Yii::app()->getClientScript();\n $cs->registerCSS(\"registered_script_${i}\", $script, 'screen'); \n }", "title": "" }, { "docid": "c5023e2d3faded19e230d06bc6317915", "score": "0.56711566", "text": "function accordion_add_css(){\n if (!is_admin()) {\n wp_enqueue_style( 'accordion_style');\n }\n\t}", "title": "" } ]
d70b972a33097528bcb0f22e04a30906
Returns the number of data models in the current page. This is equivalent to `count($provider>getModels())`. When [[getPagination|pagination]] is false, this is the same as [[getTotalCount|totalCount]].
[ { "docid": "75d8001f9c0eb108af668c96e4156379", "score": "0.0", "text": "public function getCount();", "title": "" } ]
[ { "docid": "1f0da27925094a6486560ea85da4b634", "score": "0.7750802", "text": "public function getCount()\n\t{\n\t\treturn count($this->getModels());\n\t}", "title": "" }, { "docid": "5fb6d17fc4ab18d89a0b6091c5f8e230", "score": "0.71910024", "text": "public function count()\n\t{\n\t\t$total = 0;\n\t\t\n\t\tforeach ($this->models AS $model)\n\t\t{\n\t\t\t$total += $model->count();\n\t\t}\n\t\t\n\t\treturn $total;\n\t}", "title": "" }, { "docid": "c3ec45124cda24ce4eb940bebe0a1a86", "score": "0.71895707", "text": "public function count()\n {\n return $this->getModel()->get()->count();\n }", "title": "" }, { "docid": "c726a2d7a97f1a915729e4d7b38809f9", "score": "0.7148795", "text": "public function count()\n {\n return $this->model->get()->count();\n }", "title": "" }, { "docid": "ecf9908b975bcd45e52ae44a1a40d4f8", "score": "0.70716476", "text": "public function count()\n {\n return $this->model->count();\n }", "title": "" }, { "docid": "a72598ee4166956fee79ba2301ec9edf", "score": "0.70145714", "text": "public function count()\n {\n return $this->model->query()->get()->count();\n }", "title": "" }, { "docid": "9d67876bf00f079c52ed802cf785e5fe", "score": "0.7014435", "text": "public function count(): int\n {\n return $this->getModel()->count();\n }", "title": "" }, { "docid": "cd0893f4e41c108581441c23ee282df9", "score": "0.6975631", "text": "public function count(){\n return $this->getModel()->count();\n }", "title": "" }, { "docid": "f9aa6995d73c47a54787f44367966a2e", "score": "0.69369245", "text": "public function getCount()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "27a76a25aa7d3c13d6244515dc763b12", "score": "0.6896603", "text": "protected function fetchCount() {\n return $this->_model->count();\n }", "title": "" }, { "docid": "ec270818fc44d13cbea582a7c91932ee", "score": "0.6888546", "text": "protected function getCount()\r\n {\r\n $countElementId = $this->getCountElementId();\r\n $dataSource = $this->getDataSource();\r\n\r\n if (is_numeric(Request::get($countElementId)) && $this->getCurrentPage() != 0)\r\n {\r\n $count = Request::get($countElementId);\r\n }\r\n else if (!$dataSource->getLimit() || $dataSource->getLimit() == 0)\r\n {\r\n $count = count($dataSource->getData());\r\n }\r\n else\r\n {\r\n $count = $dataSource->getCount();\r\n }\r\n\r\n return $count;\r\n }", "title": "" }, { "docid": "6d604043823fc4a1e809e1a3fcd82459", "score": "0.68702173", "text": "public function getCount() {\n return count($this->entities);\n }", "title": "" }, { "docid": "a35ad951e4b46ce5b801570c27a79b37", "score": "0.68666404", "text": "public static function getCount()\n {\n return static::find()->count();\n }", "title": "" }, { "docid": "a35ad951e4b46ce5b801570c27a79b37", "score": "0.68666404", "text": "public static function getCount()\n {\n return static::find()->count();\n }", "title": "" }, { "docid": "22bbaf2a53f772e81b24a23139194bda", "score": "0.6834719", "text": "public function getUsageCountPaginate();", "title": "" }, { "docid": "c0838ab2d9a61a7027c475cf73c5c770", "score": "0.68243307", "text": "public function getCount()\n\t{\n\t\treturn count($this->_objects);\n\t}", "title": "" }, { "docid": "75d9317bf7a6c48ffdd48cb0e6c106fe", "score": "0.6804748", "text": "function count()\n {\n if (is_null($this->_count))\n {\n $backend = $this->_manager->_orm->_backend;\n if (!$backend)\n {\n throw new Minim_Orm_Exception(\"No backend set\");\n }\n $this->_count = $backend->count_dataobjects($this);\n }\n return $this->_count;\n }", "title": "" }, { "docid": "e36d40634db098764f590a74f8adebc7", "score": "0.67861843", "text": "public function getCount() {\n return count($this->_data);\n }", "title": "" }, { "docid": "39c261570b5110bc1a85a415e609bd90", "score": "0.6756171", "text": "public function count() {\n return $this->data->count;\n }", "title": "" }, { "docid": "f6ee0b1c5c63a61ec9d78823ad2e6861", "score": "0.6753596", "text": "public function Count() {\n return \\count($this->data);\n }", "title": "" }, { "docid": "aa697f6a76ddc21c3c83558720a4b465", "score": "0.67434967", "text": "public function count()\n {\n return $this->numPages;\n }", "title": "" }, { "docid": "8c93fecc2e8b29134316d53ae77f1972", "score": "0.6728391", "text": "public function count()\n {\n if ($this->count === null) {\n $this->count = count(new Paginator($this->query, $this->fetchCollection));\n }\n\n return $this->count;\n }", "title": "" }, { "docid": "8b4607b8b01f190ceae74dc87ed70e03", "score": "0.67237955", "text": "public function getCount()\n\t{\n\t\t$num = $this->getListing($this->maxLimit);\n\t\treturn count($num);\n\t}", "title": "" }, { "docid": "5a2a72f26598dfa995b18f8c7fb13da2", "score": "0.6696497", "text": "public function count()\n {\n return $this->get()->count();\n }", "title": "" }, { "docid": "f35efc6a338e76a8e901363e4850a9ab", "score": "0.6694043", "text": "public static function count(): int\n {\n return count((new static())->getModelFiles());\n }", "title": "" }, { "docid": "b3cb4df888d2404d3b51df34d0b5eb6c", "score": "0.6686091", "text": "public function getCount() {\n\t\treturn $this->find( 'count' );\n\t}", "title": "" }, { "docid": "5fa36990af48e935f6bb9ed81c8d8f3a", "score": "0.66837686", "text": "public function count()\r\n\t{\r\n\t\treturn $this->pageCount;\r\n\t}", "title": "" }, { "docid": "9a719fdcc36b4eed7d23e9c63dd44e7a", "score": "0.6660894", "text": "public function count()\n {\n return count($this->all());\n }", "title": "" }, { "docid": "1096dfb7a01e985dd0ca5095a7434591", "score": "0.6620085", "text": "public function count() {\n return count($this->data);\n }", "title": "" }, { "docid": "1096dfb7a01e985dd0ca5095a7434591", "score": "0.6620085", "text": "public function count() {\n return count($this->data);\n }", "title": "" }, { "docid": "018ce42e6886c8f0257830e42f1ee832", "score": "0.6611392", "text": "public function getCount() {\n return $this->db->fetchColumn('SELECT COUNT(page_id) FROM pages');\n }", "title": "" }, { "docid": "d10cb8b318aeea79f9907ca5c9acff7c", "score": "0.66113436", "text": "public function count()\n {\n return count($this->getAll());\n }", "title": "" }, { "docid": "50170d9c11326df58b33df2e8461a881", "score": "0.659573", "text": "public function getNumber()\n\t{\n\t\t$total = $this->model->count();\n return $total;\n\t}", "title": "" }, { "docid": "62d286abbf614bf0ccf02e7419622a7f", "score": "0.65862674", "text": "public function getPageCount() {\n return $this->pageCount;\n }", "title": "" }, { "docid": "8c99bfdbe214e5d86164465cffbde040", "score": "0.657607", "text": "public function count() {\r\n\t\treturn count($this->data);\r\n\t}", "title": "" }, { "docid": "2ab83a0535098b5271593c6f6f4f7c6b", "score": "0.6575624", "text": "public function count() {\r\n if (is_null($this->result)) {\r\n $this->fetchData();\r\n }\r\n return count($this->result);\r\n }", "title": "" }, { "docid": "120dadac97fbe10be28a2e44b28ada9c", "score": "0.65715885", "text": "public function getPageCount();", "title": "" }, { "docid": "ed4750e7542a5e95029c5b01642c2e32", "score": "0.6568643", "text": "public function count()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "ed4750e7542a5e95029c5b01642c2e32", "score": "0.6568643", "text": "public function count()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "ed4750e7542a5e95029c5b01642c2e32", "score": "0.6568643", "text": "public function count()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "ed4750e7542a5e95029c5b01642c2e32", "score": "0.6568643", "text": "public function count()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "fb6e6723ca1e8b07fc65accc46634822", "score": "0.6568204", "text": "public function count()\n {\n $products = (new Magento())->api('products')\n ->all($this->pageSize, $this->currentPage)\n ->json();\n\n return $products['total_count'];\n }", "title": "" }, { "docid": "8df0f2cda208fa5c2deb63013c89de74", "score": "0.6566788", "text": "public function getPageCount()\n {\n return $this->pageCount;\n }", "title": "" }, { "docid": "abc9419ecba04344db782f1d3262e09e", "score": "0.65644467", "text": "public function count()\n {\n if (!isset($this->count)) {\n $this->get();\n }\n\n return $this->count;\n }", "title": "" }, { "docid": "4b36c4d1c8f8422804f1c02d9d9db41e", "score": "0.6561551", "text": "public function count()\n {\n return count($this->entities);\n }", "title": "" }, { "docid": "4b36c4d1c8f8422804f1c02d9d9db41e", "score": "0.6561551", "text": "public function count()\n {\n return count($this->entities);\n }", "title": "" }, { "docid": "f3154811d6179667990b6fe11fec5378", "score": "0.655256", "text": "public function count()\n {\n return count($this->_entities);\n }", "title": "" }, { "docid": "bb0d1420db81c45187543f1a6d4cfc9e", "score": "0.65523165", "text": "public function count ()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "dc2435d3c429f31b07f024fbe475c69c", "score": "0.6546951", "text": "public function count() {\n\t\treturn count($this->data);\n\t}", "title": "" }, { "docid": "dc2435d3c429f31b07f024fbe475c69c", "score": "0.6546951", "text": "public function count() {\n\t\treturn count($this->data);\n\t}", "title": "" }, { "docid": "438190ea3e87577891b0a24c928a54c6", "score": "0.6543714", "text": "public function count() {\n return $this->numResults;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "cfd5ad3ea7d5a51791523bc254838732", "score": "0.65391177", "text": "public function getCount()\n {\n return $this->count;\n }", "title": "" }, { "docid": "82dfa98427ebf487b5797ecc1e8bea3f", "score": "0.65373755", "text": "public function count() {\n return $this->_getCollection()->getSize();\n }", "title": "" }, { "docid": "538a63653391dd819745f2f83744bd42", "score": "0.6535971", "text": "public function count()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "1e3015461a4331df953ce303634d00e9", "score": "0.65307707", "text": "public function count()\r\n {\r\n return count($this->data);\r\n }", "title": "" }, { "docid": "3e16fea4971845c079e7355c79db4ece", "score": "0.6520137", "text": "public function count()\n\t{\n\t\tif(craft()->neo->isPreviewMode() || $this->isUsingMemoized())\n\t\t{\n\t\t\treturn count($this->find());\n\t\t}\n\n\t\treturn parent::count();\n\t}", "title": "" }, { "docid": "a32aacd33c3bdd83a6074745bbf9e13b", "score": "0.6510778", "text": "public function getCount() {\n return $this->count;\n }", "title": "" }, { "docid": "65d454da31573df99305cd12ab3b9004", "score": "0.64901435", "text": "public function getCount()\n\t{\n\t\treturn $this->count;\n\t}", "title": "" }, { "docid": "0241375db48bb5b847a699340cc5e699", "score": "0.6486921", "text": "public function count()\n {\n return $this->getNumberResults();\n }", "title": "" }, { "docid": "d6c843ceffec86d29d69537b3363c0fe", "score": "0.6482943", "text": "public function count()\n {\n return $this->collection->count();\n }", "title": "" }, { "docid": "a2c27a7e53456ae2d024f67cfb8335d0", "score": "0.6479896", "text": "public function count() {\n\t\t// TODO: Implement count() method.\n\t\treturn count($this->data);\n\t}", "title": "" }, { "docid": "a91c2a80894baf8ed463f1fd05004275", "score": "0.6472805", "text": "public function getCount()\n {\n if (!$this->getData('count')) {\n $this->setData('count', 3);\n }\n\n return $this->getData('count');\n }", "title": "" }, { "docid": "286bbc7a32cb7d7527d588e23ea32c8d", "score": "0.6460953", "text": "public function count()\n\t{\n\t\treturn count($this->get());\n\t}", "title": "" }, { "docid": "f52f89b675ea865c136cf0dbb0edda26", "score": "0.6456085", "text": "public function count()\n {\n return count($this->data);\n }", "title": "" }, { "docid": "5605ac945f30fed0292c4b2254cd9bc3", "score": "0.6445043", "text": "public function count()\n {\n return $this->getTotalCount();\n }", "title": "" }, { "docid": "e312afaf13de344b9c4811865ac2f628", "score": "0.6436233", "text": "public function count() {\t\treturn $this->fetchAll()->count();\n\t}", "title": "" }, { "docid": "13a261b326eb3033499f817819240cc4", "score": "0.64332974", "text": "public function count()\r\n {\r\n $this->_where();\r\n return count($this->_datas);\r\n }", "title": "" }, { "docid": "ebf9165d53327a33d756ca204997c85e", "score": "0.6426893", "text": "public function count() : int\n {\n return count($this->all());\n }", "title": "" }, { "docid": "ebf9165d53327a33d756ca204997c85e", "score": "0.6426893", "text": "public function count() : int\n {\n return count($this->all());\n }", "title": "" }, { "docid": "6ae168ecdf9255e6e14f6dd03248502c", "score": "0.6425657", "text": "public function count() : int{\n return count($this->all());\n }", "title": "" }, { "docid": "452aa1c67a3a9de34f8976f37b54d94e", "score": "0.6422126", "text": "function count( ) {\r\n $sql = $this->all( );\r\n \r\n $dao = CRM_Core_DAO::executeQuery( $sql,\r\n CRM_Core_DAO::$_nullArray );\r\n return $dao->N;\r\n }", "title": "" }, { "docid": "3519540827e05862bb0f38c63c2f4873", "score": "0.6413332", "text": "public function get_nb_pages() {\n try {\n parent::db_connect();\n $sql = \"SELECT count(*) FROM posts WHERE posted = 1\";\n $this->stmt = $this->pdo->query($sql);\n $nb_posts = $this->stmt->fetchAll();\n $nb_posts = (int)$nb_posts[0][\"count(*)\"];\n parent::db_drop_connection();\n return (ceil($nb_posts / 6));\n }\n catch (Exception $e) {\n throw new Exception(\"Error while counting the number of pages in post model \" . $e->getMessage());\n }\n }", "title": "" }, { "docid": "3b13f5fddb81daa07bd092b8ec50f527", "score": "0.6405965", "text": "public function count()\n {\n return $this->countItems();\n }", "title": "" }, { "docid": "ec1ca45c2f00c4782bb29f914947d8f2", "score": "0.64055085", "text": "public function action_get_count()\n\t{\n\t\tif ($this->_model_id)\n\t\t\tthrow HTTP_Exception::factory(405)->allowed(array());\n\n\t\t$this->body = array('count' => $this->_run_query_filter()->_model->count_all());\n\t}", "title": "" }, { "docid": "8a8096f02b16a177be81b3c7ebe7ca49", "score": "0.6401809", "text": "public function getNumberOfPages()\n {\n return ceil(count($this->data) / $this->itemsPerPage);\n }", "title": "" }, { "docid": "d18ef1f0776c1790647068a8d9f533d3", "score": "0.6396703", "text": "public function count()\n {\n return count($this->_data);\n }", "title": "" }, { "docid": "d18ef1f0776c1790647068a8d9f533d3", "score": "0.6396703", "text": "public function count()\n {\n return count($this->_data);\n }", "title": "" }, { "docid": "d26804699bed0a16ee2abdd138f62871", "score": "0.6394289", "text": "public function count() {\n\t\t$this->hydrate();\n\t\treturn count($this->documents);\n\t}", "title": "" }, { "docid": "76936b71570bd265e78ed072aa2e4c84", "score": "0.63897294", "text": "public function count() {\n return $this->getCount();\n }", "title": "" }, { "docid": "15ead9749964c7491ee58b014e5dcb32", "score": "0.6387169", "text": "public function count()\n {\n return count($this->records);\n }", "title": "" }, { "docid": "b84a4a6e4112e76a5c9934244dfcaf65", "score": "0.637955", "text": "function countData(){\n\t\t$this->pagination->total = $this->listCount();\n\t\t$this->pagination->from = $this->page * $this->limit + 1;\n\t\t$this->pagination->to = $this->page * $this->limit + $this->count;\n\t\tif($this->limit != \"\" && $this->limit > 0 && $this->pagination->total > 0)\n\t\t\t$this->pagination->pages = (int)ceil($this->pagination->total / $this->limit);\n\t\telse\n\t\t\t$this->pagination->pages = 0;\n\t}", "title": "" }, { "docid": "78a8298fc217ef78114d72415cdc9726", "score": "0.6374148", "text": "function count( ) {\n $sql = $this->all( );\n \n $dao = CRM_Core_DAO::executeQuery( $sql,\n CRM_Core_DAO::$_nullArray );\n return $dao->N;\n }", "title": "" }, { "docid": "5d6697cef854d2fa7441a115459765fa", "score": "0.6372118", "text": "public function getNumberOfPagesFetched()\n {\n return $this->fetchCount;\n }", "title": "" }, { "docid": "e8ccb540470c2f05d6cc3c1237a3427e", "score": "0.6368348", "text": "function countAll() {\n\t\t$model = $this->getModel();\n\t\tif (is_object($model)) {\n\t\t\t$ret_val = $model->performCountAll($this);\n\t\t\treturn $ret_val;\n\t\t}\n\t\treturn 0; \n\t}", "title": "" }, { "docid": "f2a1cff1b4f41dec6816e3a32f22d053", "score": "0.63611805", "text": "public function count()\n\t{\n\t\treturn $this->results->num_rows;\n\t}", "title": "" }, { "docid": "090b897894fb0f26cdae1f9575e7c4e2", "score": "0.63444066", "text": "public function count()\n\t{\n\t\treturn count($this->_data);\n\t}", "title": "" }, { "docid": "5f3185452b7bd37cc9e1cde978d84779", "score": "0.63431984", "text": "public function countAction()\r\n {\r\n // i.e. which model. This comes from the controller name\r\n $model = controllerToModel(get_called_class());\r\n\r\n $data['count'] = $model::fetchCount();\r\n\r\n $this->initResponse();\r\n $this->setPayload($data);\r\n\r\n return $this->render();\r\n }", "title": "" }, { "docid": "40738e39d2dcfdfbc6811d6dab48cdc1", "score": "0.6341474", "text": "public function count(): int\n {\n $data = $this->fetchData();\n return count($data);\n }", "title": "" }, { "docid": "3dc31f78ab31ba551785efda05eaec5b", "score": "0.6340701", "text": "public function count()\n {\n return $this->items()->count();\n }", "title": "" }, { "docid": "8d89f11e97d6c4f80dc55f3506f821bd", "score": "0.6338997", "text": "public function getCount() {\n\t\treturn $this->findBasicAll()->count(Article::ID_COLUMN);\n\t}", "title": "" }, { "docid": "1a0a01666a4f49bd839a2e3e78abfe0d", "score": "0.6336997", "text": "public function getCount() {\n return $this->_count;\n }", "title": "" } ]
43cb08a43d8285977c22c780514dc68b
Liste der Gruppen called by mv.php (2x), back_get_form.php
[ { "docid": "566a6f919bfe4573dd3c042eb43d5f52", "score": "0.5661138", "text": "function get_form_group_list($formid = \"\")\n\t{\n\t\tif (empty($formid)) $formid = $this->checked->mv_id;\n\t\tif (!empty($this->cms->tbname['papoo_mvcform_group'])\n\t\t\t&& !empty($this->cms->tbname['papoo_mvcform_group_lang'])) {\n\t\t\t// Gruppen auslesen\n\t\t\t$sql = sprintf(\"SELECT *\n\t\tFROM %s, %s\n\t\tWHERE mvcform_group_form_id = '%d'\n\t\tAND\tmvcform_group_lang_id = mvcform_group_id\n\t\tAND mvcform_group_lang_lang = '%d'\n\t\tAND mvcform_group_lang_meta = mvcform_group_form_meta_id\n\t\tAND mvcform_group_form_meta_id = '%d'\n\t\tGROUP BY mvcform_group_id\n\t\tORDER BY mvcform_group_order_id\",\n\t\t\t\t$this->cms->tbname['papoo_mvcform_group'],\n\t\t\t\t$this->cms->tbname['papoo_mvcform_group_lang'],\n\t\t\t\t$this->db->escape($formid),\n\t\t\t\t$this->db->escape($this->cms->lang_back_content_id),\n\t\t\t\t$this->db->escape($this->meta_gruppe)\n\t\t\t);\n\t\t\t$result_groups = $this->db->get_results($sql, ARRAY_A);\n\t\t}\n\t\t// Wenn eine exitiert, dann k�nnen auch Felder angelegt werden\n\t\tif (count($result_groups) > 0) $this->content->template['gruppeok'] = \"ok\";\n\t\t// Ans Template\n\t\t$this->content->template['glist'] = $result_groups;\n\t\t// F�r interne Weiterverarbeitung\n\t\t$this->result_groups = $result_groups;\n\t}", "title": "" } ]
[ { "docid": "24b9b764fe253f7a3ac5d556e1a2f098", "score": "0.6290805", "text": "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->_grupoModel->getGrupo();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "title": "" }, { "docid": "bdb47220cdd28c03648f6323b1e7d257", "score": "0.6220929", "text": "function member_organizer_flist($status=''){\n\tglobal $user;\n \n $select = db_select('users', 'u')->extend('GloolsPagerDefault');\n $select->fields('u', array('uid', 'name', 'mail', 'picture'));\n $select->fields('o', array('otype', 'verify', 'status', 'level'));\n $select->rightJoin('users_organizer', 'o', 'o.uid=u.uid');\n $select->condition('u.status', 1);\n \n $rows = $select->execute()->fetchAllAssoc('uid');\n if (empty($rows)) {\n return 'There is no organizer registered.';\n }\n \n $libSnm = Lib_Glools_Load::load('glools/snm', 'lib');\n \n \n $libSnm->setFormProperties(\n array('#submit'=>array('member_organizer_flist_submit'))\n );\n \n $libSnm->setFeatures(\n array(\n 'filters' => array('data' => '', 'options' => array('name'=>\"hello,world\")), \n 'operations' => array('options'=>array('operationHooks'=>'materialRepositry_operations')),\n 'nodes' => array('data'=>$rows, 'options'=>array()),\n 'pager' => array()\n )\n );\n \n return $libSnm->getForm();\n}", "title": "" }, { "docid": "ed7c28e3aa28cff77d3f7a8152138aae", "score": "0.6143268", "text": "function get_form_group_field_list($formid = \"\")\n\t{\n\t\t// Liste der Gruppen rausholen\n\t\t$this->get_form_group_list($formid);\n\t\t$groupar = $this->result_groups;\n\t\t$this->content->template['gruppen_anzahl'] = count($groupar);\n\t\t$i = 0;\n\t\t$sql = sprintf(\"SELECT max(mvcform_id)\n\t FROM %s\",\n\t\t\t$this->cms->tbname['papoo_mvcform']\n\t\t);\n\t\t$max_buffer = $this->db->get_var($sql);\n\t\t// F�r diese Gruppen durchgehen\n\t\tif ((!empty($this->result_groups))) {\n\t\t\t$sql = sprintf(\"SELECT mv_art FROM %s\n\t\tWHERE mv_id = '%d'\",\n\t\t\t\t$this->cms->tbname['papoo_mv'],\n\t\t\t\t$this->db->escape($this->checked->mv_id)\n\t\t\t);\n\t\t\t$this->content->template['mv_art'] = $this->db->get_var($sql);\n\t\t\tforeach ($this->result_groups as $group) {\n\t\t\t\t// Alle Felder der jeweiligen Gruppe rausholen\n\t\t\t\t$sql = sprintf(\"SELECT DISTINCT *\n\t\t FROM %s, %s\n\t\t WHERE mvcform_group_id = '%d'\n\t\t AND mvcform_lang_meta_id = '%d'\n\t\t AND mvcform_lang_meta_id = mvcform_meta_id\n\t\t AND mvcform_id = mvcform_lang_id\n\t\t AND mvcform_lang_lang = '%d'\n\t\t GROUP BY mvcform_id\n\t\t ORDER BY mvcform_order_id DESC\",\n\t\t\t\t\t$this->cms->tbname['papoo_mvcform_lang'],\n\t\t\t\t\t$this->cms->tbname['papoo_mvcform'],\n\t\t\t\t\t$this->db->escape($group['mvcform_group_id']),\n\t\t\t\t\t$this->db->escape($this->meta_gruppe),\n\t\t\t\t\t$this->db->escape($this->cms->lang_back_content_id)\n\t\t\t\t);\n\t\t\t\t$result = $this->db->get_results($sql, ARRAY_A);\n\t\t\t\t$groupar[$i]['felder'] = $result;\n\t\t\t\t// damit das Javascript f�r die H�kchen auch weiss welche Formularfelder IDs es pro Gruppe ansprechen soll\n\t\t\t\t$max_id = 1;\n\t\t\t\t$min_id = $max_buffer;\n\t\t\t\tif (!empty($result)) {\n\t\t\t\t\tforeach ($result as $row) {\n\t\t\t\t\t\tif ($row['mvcform_id'] < $min_id) $min_id = $row['mvcform_id'];\n\t\t\t\t\t\tif ($row['mvcform_id'] > $max_id) $max_id = $row['mvcform_id'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$groupar[$i]['ids_anfang'] = $min_id;\n\t\t\t\t$groupar[$i]['ids_ende'] = $max_id;\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t$sql = sprintf(\"SELECT *\n\t FROM %s, %s\n\t WHERE mvcform_form_id = '%d'\n\t AND mvcform_meta_id = '%d'\n\t AND mvcform_no_group = '1'\n\t AND mvcform_id = mvcform_lang_id\n\t AND mvcform_lang_lang = '%d'\n\t AND mvcform_meta_id = mvcform_lang_meta_id\n\t GROUP BY mvcform_id\",\n\t\t\t$this->cms->tbname['papoo_mvcform_lang'],\n\t\t\t$this->cms->tbname['papoo_mvcform'],\n\t\t\t$this->db->escape($this->checked->mv_id),\n\t\t\t$this->db->escape($this->meta_gruppe),\n\t\t\t$this->db->escape($this->cms->lang_back_content_id)\n\t\t);\n\t\t$result = $this->db->get_results($sql, ARRAY_A);\n\t\tif ((!empty($result))) {\n\t\t\t$groupar[$i + 1]['felder'] = $result;\n\t\t\t$groupar[$i + 1]['mvcform_group_text'] = \"Keine Gruppe / No group\";\n\t\t\t$groupar[$i + 1]['mvcform_group_id'] = \"xx\";\n\t\t}\n\t\t$this->content->template['gfliste'] = $groupar;\n\t\t// niedrigste Gruppenid f�r diese Verwaltung ans Template weitergeben, f�rs javascript\n\t\t$sql = sprintf(\"SELECT MIN(mvcform_group_id)\n\t FROM %s\n\t WHERE mvcform_form_id = '%d'\n\t AND mvcform_meta_id = '%d'\",\n\t\t\t$this->cms->tbname['papoo_mvcform'],\n\t\t\t$this->db->escape($this->checked->mv_id),\n\t\t\t$this->db->escape($this->meta_gruppe)\n\t\t);\n\t\t$min_group = $this->db->get_var($sql);\n\t\tif (empty($min_group)) $min_group = 1;\n\t\t// niedrigste Feld ID in der Verwaltung\n\t\t$sql = sprintf(\"SELECT MIN(mvcform_id)\n\t FROM %s\n\t WHERE mvcform_form_id = '%d'\n\t AND mvcform_meta_id = '%d'\",\n\t\t\t$this->cms->tbname['papoo_mvcform'],\n\t\t\t$this->db->escape($this->checked->mv_id),\n\t\t\t$this->db->escape($this->meta_gruppe)\n\t\t);\n\t\t$min_feld = $this->db->get_var($sql);\n\t\t// alle Felder IDs ans Template, da Javascript zu bl�d ist, falls eine L�cke in den Ids existiert, weil schonmal ein Feld gel�scht wurde, gleiches Porb mit gruppen\n\t\t$sql = sprintf(\"SELECT mvcform_id\n\t FROM %s\n\t WHERE mvcform_form_id = '%d'\n\t AND mvcform_meta_id = '%d'\",\n\t\t\t$this->cms->tbname['papoo_mvcform'],\n\t\t\t$this->db->escape($this->checked->mv_id),\n\t\t\t$this->db->escape($this->meta_gruppe)\n\t\t);\n\t\t$felder_ids = $this->db->get_results($sql, ARRAY_A);\n\t\t$sql = sprintf(\"SELECT DISTINCT(mvcform_group_id)\n\t FROM %s\n\t WHERE mvcform_form_id = '%d'\n\t AND mvcform_meta_id = '%d'\",\n\t\t\t$this->cms->tbname['papoo_mvcform'],\n\t\t\t$this->db->escape($this->checked->mv_id),\n\t\t\t$this->db->escape($this->meta_gruppe)\n\t\t);\n\t\t$group_ids = $this->db->get_results($sql, ARRAY_A);\n\t\t$this->content->template['feld_anfang_alle'] = $min_feld;\n\t\t$this->content->template['gruppen_anfang'] = $min_group;\n\t\t$this->content->template['felder_ids'] = $felder_ids;\n\t\t$this->content->template['group_ids'] = $group_ids;\n\t}", "title": "" }, { "docid": "f7fa4df291fd4fac08049488f0c3092c", "score": "0.6128807", "text": "public function getList() {\n \t\treturn view(\"Client::Gpage.list\");\n \t}", "title": "" }, { "docid": "8120059bf5dd2c93b5fc8f3f2a64ac9b", "score": "0.611934", "text": "function Listing($formvars = array()) {\n // RECHERCHE\n $form = new BackForm(\"# Commande\", \"text\", \"c.commande_id\");\n $form->setVar(\"compare\", \"EQUAL\");\n $this->addForm($form);\n\n $form = new BackForm(\"# Cmd Parent\", \"text\", \"cmd_par_id\");\n $form->setVar(\"compare\", \"SPEC\");\n $this->addForm($form);\n\n $form = new BackForm(\"# Confirmation d'achat\", \"text\", \"c.commande_facture_numero\");\n $form->setVar(\"compare\", \"EQUAL\");\n $this->addForm($form);\n\n $form = new BackForm(\"# Client\", \"text\", \"c.client_id\");\n $form->setVar(\"compare\", \"EQUAL\");\n $this->addForm($form);\n\n $form = new BackForm(\"Nom Client\", \"text\", \"c.client_nom\");\n $this->addForm($form);\n\n $form = new BackForm(\"Statut Commande\", \"multi_statut\", \"c.commande_statut_id\", array('1', '2', '3', '5', '97', '98', '102'));\n $form->setVar(\"compare\", \"EQUAL\");\n $this->addForm($form);\n\n $form = new BackForm(\"Mode Paiement\", \"select\", \"c.paiement_id\");\n $form->addOption(\"\", \"---\");\n $form->addOptionSQL(array(\"SELECT paiement_id, paiement_nom_nom FROM paiement_nom WHERE langue_id = '\" . LANGUE . \"' ORDER BY paiement_nom_nom\"));\n $this->addForm($form);\n\n $form = new BackForm(\"Date Commande\", \"between\", \"c.commande_date_ajout\");\n $this->addForm($form);\n\n $form = new BackForm(\"Date Confirmation d'achat\", \"between\", \"c.commande_facture_date\");\n $this->addForm($form);\n\n $form = new BackForm(\"Boutique\", \"select\", \"c.boutique_id\");\n $form->addOption(\"\", \"---\");\n $form->addOptionSQL(array(\"SELECT boutique_id, boutique_nom FROM boutique ORDER BY boutique_nom\"));\n $this->addForm($form);\n\n $form = new BackForm(\"# Commande Parent ID\", \"text\", \"c.commande_parent_id\");\n $form->setVar(\"compare\", \"EQUAL\");\n $this->addForm($form);\n\n $form = new BackForm(\"Expedition\", \"select\", \"c.commande_expedition_id\");\n $form->addOption(\"\", \"---\");\n $form->addOptionSQL(array(\"SELECT commande_expedition_id, commande_expedition_nom FROM commande_expedition\"));\n $this->addForm($form);\n\n $form = new BackForm(\"Nom Produit\", \"text\", \"cp.produit_nom\");\n $this->addForm($form);\n\n $form = new BackForm(\"#ID CMD FRS\", \"text\", \"c.commande_fournisseur_id\");\n $this->addForm($form);\n\n //-- RECHERCHE\n // SQL\n $sql = \"SELECT c.commande_id\";\n $sql.=\", c.commande_id\";\n $sql.=\", c.commande_parent_id\";\n $sql.=\", c.commande_date_ajout\";\n $sql.=\", btq.boutique_nom\";\n $sql.=\", CONCAT(c.client_nom,' (#',c.client_id,')<br/><i>',cl.client_commentaire,'</i>', cb.client_beneficiaire_ref)\";\n //$sql.=\", CONCAT('<p style=\\\"text-align:center\\\"><img src=\\\"/back/styles/images/', IF(c.commande_confirme = 0, 'rouge.png', 'vert.png'), '\\\" /></p>')\";\n $sql.=\", csn.commande_statut_nom_nom\";\n //$sql.=\", CONCAT(commande_statut_nom_nom,'<br/>',(SELECT IF(COUNT(commande_paiement_id)>1,GROUP_CONCAT('<span class=\\\"paiement',commande_paiement_statut_id,'\\\">',commande_paiement_nom,' - ',ROUND(commande_paiement_montant,2),'&euro;</span>' SEPARATOR '<br/>'),'') FROM commande_paiement WHERE commande_id = c.commande_id))\";\n //$sql.=\", IF(p.paiement_id = 1 AND cref.tpe_reference_id,CONCAT(paiement_image,'|',UNCOMPRESS(cref.tpe_reference_retour_info)),paiement_image)\";\n\n// $sql.=\", p.paiement_image\";\n// $sql.=\", CONCAT(c.commande_livraison_nom,'<br/>',c.livraison_pays,' (',c.livraison_pays_code,')')\";\n $sql.=\", c.commande_livraison_nom\";\n $sql.=\", commande_livraison_delai\";\n $sql.=\", commande_livraison_colis\";\n $sql.=\", commande_livraison_info\";\n $sql.=\", c.commande_expedition_id\";\n $sql.=\", c.commande_fournisseur_id\";\n\n $sql.=\", CONCAT(cp.produit_nom,'<br/><br/>Qte : ',SUM(cp.produit_quantite))\";\n $sql.=\", CONCAT(cp.produit_ref_frs,'<br/><br/>',f.fournisseur_nom)\";\n\n $sql.=\", cp.produit_achat\";\n $sql.=\", pro.produit_frais_port\";\n $sql.=\", c.commande_total_HT\";\n //$sql.=\", IF(cp.produit_achat > 0, ROUND((((pro.produit_frais_port + cp.produit_prix) - cp.produit_achat) / cp.produit_achat) *100 ,2),'N/A')\";\n $sql.=\", IF(cp.produit_achat > 0, ROUND((((cp.produit_prix - pro.produit_frais_port) - cp.produit_achat) / (cp.produit_prix - pro.produit_frais_port)) *100 ,2),'N/A')\";\n $sql.=\",''\";\n $sql.=\", CONCAT(\\\"<a href='\" . SITE_URL . \"bon_commande.php?commande_id=\\\",c.commande_id,\\\"&client_id=\\\",c.client_id,\\\"'><img src='/back/styles/images/pdf.gif' alt='Bon de commande' border='0' /></a>\\\")\";\n //$sql.=\", CONCAT(\\\"<a href='\" . SITE_URL . \"bon_livraison.php?commande_id=\\\",c.commande_id,\\\"&client_id=\\\",c.client_id,\\\"'><img src='/back/styles/images/pdf.gif' alt='Bon de commande' border='0' /></a>\\\")\";\n $sql.=\", CONCAT(\\\"<a href='\" . SITE_URL . \"/back/html/commande/export/bon_commande/?commande_id=\\\",c.commande_id,\\\"'><img src='/back/styles/images/pdf.gif' alt='Bon de commande' border='0' /></a>\\\")\";\n $sql.=\" FROM (commande c)\";\n $sql.=\" LEFT JOIN client cl ON cl.client_id = c.client_id\";\n $sql.=\" LEFT JOIN client_beneficiaire cb ON cb.client_id = cl.client_id\";\n $sql.=\" LEFT JOIN commande_expedition ce ON ce.commande_expedition_id = c.commande_expedition_id\";\n $sql.=\" LEFT JOIN commande_produit cp ON (cp.commande_id = c.commande_id)\";\n $sql.=\" LEFT JOIN produit pro ON (pro.produit_id = cp.produit_id)\";\n $sql.=\" LEFT JOIN fournisseur f ON (f.fournisseur_id = pro.fournisseur_id)\";\n $sql.=\" LEFT JOIN commande_statut cs ON (cs.commande_statut_id = c.commande_statut_id)\";\n $sql.=\" LEFT JOIN paiement p ON (p.paiement_id = c.paiement_id)\";\n $sql.=\" LEFT JOIN tpe_reference cref ON (cref.commande_id = c.commande_id)\";\n $sql.=\" LEFT JOIN commande_statut_nom csn ON (csn.commande_statut_id = cs.commande_statut_id AND csn.langue_id='1')\";\n $sql.=\" LEFT JOIN boutique btq ON (c.boutique_id = btq.boutique_id)\";\n\n $sql.=\" WHERE c.client_id = cl.client_id\";\n $sql.=\" AND (c.commande_parent_id IS NOT NULL OR DATE(c.commande_date_ajout) < '2019-02-12')\";\n if (!empty($formvars['client']))\n $sql.=\" AND c.client_id = '\" . $formvars['client'] . \"'\";\n\n if (!empty($formvars['annonceur']))\n $sql.=\" AND c.client_id = '\" . $formvars['annonceur'] . \"'\";\n\n if (!empty($_GET['cmd_par_id'])) {\n $sql.=\" AND c.commande_parent_id = '\" . $_GET['cmd_par_id'] . \"'\";\n }\n\n\n\n $this->request = $sql;\n //-- SQL\n // LABELS\n $label = new BackLabel(\"ID\");\n $this->addLabel($label);\n $label = new BackLabel(\"ID ORI\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"DATE\", 'date');\n $label->setVar('option', array(\"%d/%m/%Y - %H\\h%i\"));\n $this->addLabel($label);\n\n $label = new BackLabel(\"BOUTIQUE\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"CLIENT\");\n $this->addLabel($label);\n\n// $label = new BackLabel(\"CLIENT EMAIL\", \"mail\");\n// $this->addLabel($label);\n//\n// $label = new BackLabel(\"CLIENT TEL\");\n// $this->addLabel($label);\n\n /*$label = new BackLabel(\"CONFIRMEE\");\n $this->addLabel($label);*/\n \n $label = new BackLabel(\"STATUT\");\n $this->addLabel($label);\n\n// $label = new BackLabel(\"Mode de paiement\", 'image');\n// $this->addLabel($label);\n\n $label = new BackLabel(\"LIVRAISON\", \"livraison\");\n $label->setVar('option', '%ID%');\n $this->addLabel($label);\n\n $label = new BackLabel(\"DELAIS (en jours)\", \"eip\");\n $label->setVar('option', array(\"update_delais\"));\n $this->addLabel($label);\n\n $label = new BackLabel(\"NUM COLIS\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"COMMENTAIRE\", \"eip\");\n $label->setVar('option', array(\"update_commentaire\"));\n $this->addLabel($label);\n\n $label = new BackLabel(\"EXPEDITION\" , \"expedition\");\n $label->setVar('option', '%ID%');\n $this->addLabel($label);\n\n $label = new BackLabel(\"CMD FRS\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"PRODUIT COMMANDE\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"FOURNISSEUR\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"PRIX ACHAT HT\", \"eip\");\n $label->setVar('option', array(\"update_produit_achat\"));\n $this->addLabel($label);\n\n $label = new BackLabel(\"FDP HT\", \"devise\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"TOTAL HT\", \"devise\");\n $this->addLabel($label);\n\n $label = new BackLabel(\"% MARGE\");\n $this->addLabel($label);\n\n\n\n $label = new BackLabel(\"DETAILS\", 'action');\n $label->setVar('url', \"/back/html/commande_export/custom/details/\");\n $label->setVar('texte', '<img src=\"/back/styles/images/comment.gif\" alt=\"popupajax\"/>');\n $this->addLabel($label);\n\n $label = new BackLabel(\"Bon de commande\", \"pdf\", \"BC\");\n $this->addLabel($label);\n \n $label = new BackLabel(\"Bon de livraison\", \"pdf\", \"BL/BP\");\n $this->addLabel($label);\n\n// $label = new BackLabel(\"Confirmation d'achat\", \"pdf\", \"CA\");\n// $this->addLabel($label);\n//\n// $label = new BackLabel(\"REF.\");\n// $this->addLabel($label);\n\n //-- LABELS\n\n return $this->displayList($formvars['type']);\n }", "title": "" }, { "docid": "5ba178b5458536f89dcdbca32f5d8bd2", "score": "0.60982007", "text": "function _graphes_recherche_form($form,$form_state){\r\n\r\n $form['choix'] = array(\r\n '#type' => 'fieldset',\r\n '#collapsible' => FALSE,\r\n '#collapsed' => FALSE,\r\n );\r\n\r\n $form['choix']['choix_navigation'] = array(\r\n '#title' => t('Choisir votre type de navigation!'),\r\n '#type' => 'radios',\r\n '#options' => array(\r\n 'graphe_projet' => t('Navigation par projet'),\r\n 'graphe_critere' => t('Navigation par critères : Thèmes, domaines et unités'),\r\n ),\r\n '#default_value' => 'graphe_projet',\r\n );\r\n\r\n $form['recherche'] = array(\r\n '#type' => 'fieldset',\r\n '#collapsible' => FALSE,\r\n '#collapsed' => FALSE,\r\n '#states' => array(\r\n 'invisible' => array(\r\n ':input[name=\"choix_navigation\"]' => array('value' => 'graphe_critere'),\r\n ),\r\n ),\r\n );\r\n\r\n $form['recherche']['recherche_texte'] = array(\r\n '#type' => 'textfield',\r\n '#autocomplete_path' => 'projets_autocomplete',\r\n );\r\n\r\n $form['recherche']['projets_noeuds'] = array(\r\n '#type' => 'checkbox',\r\n '#title' => 'Afficher les neuds de projets',\r\n );\r\n\r\n\r\n $form['critere'] = array(\r\n '#type' => 'fieldset',\r\n '#collapsible' => FALSE,\r\n '#collapsed' => FALSE,\r\n '#states' => array(\r\n 'visible' => array(\r\n ':input[name=\"choix_navigation\"]' => array('value' => 'graphe_critere'),\r\n ),\r\n ), \r\n );\r\n // Liste des thèmes ============================================\r\n $form['critere']['themes'] = array(\r\n '#type' => 'fieldset',\r\n '#title' => t('Thèmes'),\r\n '#collapsible' => TRUE,\r\n '#collapsed' => TRUE, \r\n );\r\n\r\n $header_theme = array(\r\n 'Nom' => array('data' => t('Nom'),'field' => 't.THE_NOM'), \r\n );\r\n\r\n $form['critere']['themes']['liste_themes'] = array( \r\n '#type' => 'tableselect', \r\n '#header' => $header_theme, \r\n '#options' => themes_rows($header_theme), \r\n '#empty' => t('Table vide.'), \r\n );\r\n\r\n // Liste des domaines ==========================================\r\n $form['critere']['domaines'] = array(\r\n '#type' => 'fieldset',\r\n '#title' => t('Domaines'),\r\n '#collapsible' => TRUE,\r\n '#collapsed' => TRUE, \r\n );\r\n\r\n $header_domaine = array(\r\n 'Nom' => array('data' => t('Nom'),'field' => 'd.DOM_NOM'), \r\n );\r\n\r\n $form['critere']['domaines']['liste_domaines'] = array( \r\n '#type' => 'tableselect',\r\n '#header' => $header_domaine,\r\n '#options'=> domaines_rows($header_domaine), \r\n '#empty' => t('Table vide.'),\r\n );\r\n\r\n // Liste des unité ==========================================\r\n $form['critere']['unites'] = array(\r\n '#type' => 'fieldset',\r\n '#title' => t('Unités'),\r\n '#collapsible' => TRUE,\r\n '#collapsed' => TRUE, \r\n );\r\n\r\n $header_unite = array(\r\n 'Nom' => array('data' => t('Nom'),'field' => 'u.UNI_NOM'), \r\n );\r\n\r\n $form['critere']['unites']['liste_unites'] = array( \r\n '#type' => 'tableselect',\r\n '#header' => $header_unite,\r\n '#options'=> unites_rows($header_unite), \r\n '#empty' => t('Table vide.'),\r\n );\r\n\r\n // Bouton d'affichqge ==========================================\r\n $form['afficher_ajax'] = array(\r\n '#type' => 'submit',\r\n '#value' => 'Afficher',\r\n '#ajax' => array(\r\n 'callback' => 'graphes_recherche_form_submit',\r\n ),\r\n ); \r\n\r\n\r\n $form['inner-details'] = array(\r\n '#markup' => '<div id=\"inner-details\"></div>',\r\n );\r\n\r\n $form['#prefix'] = _graphes_recherche_form_prefix();\r\n $form['#suffix'] = _graphes_recherche_form_suffix();\r\n\r\n return $form;\r\n}", "title": "" }, { "docid": "962d68933486ff30f6ba2cf137b4e60a", "score": "0.6082507", "text": "function &get_form_list(){\n\t$form_list = array();\n\t\n\t$sql_str = \"SELECT \"\n\t\t\t\t\t. \"form_id, \" \n\t\t\t\t\t. \"form_name \"\n\t\t\t\t. \"FROM \" \n\t\t\t\t\t. \"tng_form \";\n\t\t\t\t\t\n\t$dbconn =& new DBConn();\n\t$dbconn->connect();\n\t$result = pg_query($dbconn->conn, $sql_str);\n\t\n\tif(!$result){\n\t\techo \"An error occurred while executing the query \" . pg_last_error($dbconn->conn);\n\t\t$dbconn->disconnect();\n\t\treturn NULL;\n\t}\n\t// create a blank entry\n\t$form_list['Select a Form'] = -1;\n\t\n\t$n_forms = pg_num_rows($result);\n\t// populate user_list array\n\t// as name-value pairs\n\t// i.e. the user name is the name, and the\n\t// user id is the value\n\tfor($i = 0; $i < $n_forms; $i++)\n\t\t$form_list[pg_fetch_result($result, $i, 'form_name')] = \n\t\t\t\t\t\t\t\t\t\t\t\tpg_fetch_result($result, $i, 'form_id');\n\t$dbconn->disconnect();\n\treturn $form_list;\n}", "title": "" }, { "docid": "cc9ae39bf49741a00695f20a724b90e3", "score": "0.6058431", "text": "public static function formLists() \n {\n return self::find(Auth::user()->id)->user_account->account->formLists;\n }", "title": "" }, { "docid": "3fd4ac849701bf1737ffaa3db4b249c7", "score": "0.5995799", "text": "function topspin_cck_existing_imports_list() {\n \n return drupal_get_form('');\n}", "title": "" }, { "docid": "11a30fc12ce44981654d65a1400e6056", "score": "0.5972711", "text": "public function liste(){\n $laVue = new VueListeGroupes();\n $this->vue = $laVue;\n // On récupère un tableau composé d'objets de type Groupe lus dans la BDD\n Bdd::connecter();\n $laVue->setLesGroupesAvecNbAttributions($this->getTabGroupesAvecNbAttributions());\n parent::controlerVueAutorisee();\n $this->vue->setTitre(\"Festival - Groupe\");\n $this->vue->afficher();\n }", "title": "" }, { "docid": "4740a63059376687af271e42ad7d65f5", "score": "0.58902484", "text": "function haw_mautic_gravity_form_list( $result, $form_type ) {\n\tif ( $form_type == HAW_MAUTIC_GRAVITY_FORM ) {\n\t\t$forms = RGFormsModel::get_forms( null, 'title' );\n\t\tforeach ( $forms as $form ) {\n\t\t\t$result[] = array( 'id' => $form->id, 'label' => $form->title );\n\t\t}\n\t}\n\treturn $result;\n}", "title": "" }, { "docid": "ef605bee2da290ab42f2ea3395ea8edf", "score": "0.5888705", "text": "function initListForm() { }", "title": "" }, { "docid": "a3b418a7c65b12c616ebc2e8236f22b4", "score": "0.585383", "text": "public function verGruposController(){\n\t\t$respuesta = Datos::vistaGrupoModel();\n\t\tif($respuesta){\n\t\t\tforeach ($respuesta as $fila) {\n\t\t\t\techo '<option value=\"'.$fila[\"id_grupo\"].'\">'.$fila[\"nombre_grupo\"].'</option>';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3347a6abc72278cdd25843df6e19dcff", "score": "0.58118683", "text": "public function muestraGrupos(){\n\t\t$objeto = new modelo();\n\t\t$data[\"titulo\"] = \"Grupos\";\n\t\t$data[\"objeto\"] = $objeto->getGrupos();\n\t\t$data[\"pagina\"] = $objeto->getPaginacionGrupos();\n\n\t\t//mandando información del modelo a la vista\n\t\trequire_once \"vista/admin/adm_grupos.php\";\n\t}", "title": "" }, { "docid": "2d7ec287e2c77a803c6f92b99ddbf894", "score": "0.57979476", "text": "function getFormPagePropertys()\n\t{\n\t\t$html = '';\n\t\t$sub_task = JRequest::getVar( 'sub_task', 'edit');\n\t\t$lang = &JFactory::getLanguage();\n\t\t//$modelMenu = $this->modelMenu;\n\n\t\tif(isset($this->menuItem->request['option']))\n\t\t{\n\t\t\t//$lang->load($this->menuItem->request['option'], JPATH_ADMINISTRATOR);\n\t\t\t$lang->load($this->menuItem->request['option'], JPATH_ADMINISTRATOR, null, false, false) || $lang->load($this->menuItem->request['option'], JPATH_ADMINISTRATOR, $lang->getDefault(), false, false);\n\t\t}\n\t\t$menu_item_name = $this->menuItem->title; //must change tothe ???\n\t\t$menu_item_description = $this->form->getInput('type');\n\t\t$menu_item_parent_id = $this->form->getInput('parent_id');\n\t\t\n\t\t$buttonLinkMenutype = '';\n\t\t$buttonLinkMenutype .= '<div>';\n\t\t\t//here we can set an select type to change se type?\n\t\t\t$buttonLinkMenutype .= $menu_item_description;\n\t\t$buttonLinkMenutype .= '</div>';\n\t\t$this->getLists();\n\t\t$html .= '<script language=\"JavaScript\" type=\"text/javascript\">';\n\t\t\t$html .= '<!--';\n\t\t\t$html .= 'function popupPageBrowser(url)';\n\t\t\t$html .= '{';\n\t\t\t\t$html .= 'var winl = (screen.width - 400) / 2;';\n\t\t\t\t$html .= 'var wint = (screen.height - 400) / 2;';\n\t\t\t\t$html .= \"winprops = 'height=400,width=400,top='+wint+',left='+winl+',scrollbars=yes,resizable';\";\n\t\t\t\t$html .= \"linkValue = document.getElementById('link').value;\";\n\t\t\t\t$html .= 'linkValue = escape(linkValue);';\n\t\t\t\t$html .= \"urlString = url+'&url='+linkValue;\";\n\t\t\t\t$html .= \"win = window.open(urlString, 'pages', winprops);\";\n\t\t\t\t$html .= 'if (parseInt(navigator.appVersion) >= 4)';\n\t\t\t\t$html .= '{';\n\t\t\t\t\t$html .= 'win.window.focus();';\n\t\t\t\t$html .= '}';\n\t\t\t$html .= '}';\n\t\t\t$html .= '-->';\n\t\t$html .= '</script>';\n\n\t\tif($this->menuItem && $this->menuItemsType)\n\t\t{\n\t\t\t$menuItemsType = $this->menuItemsType;\n\t\t\t$image = false;\n\t\t\t$imageNew = false;\n\t\t\t$imageEdit = false;\n\t\t\t$imageBulletNew = '';\n\t\t\t$imageBulletEdit = '';\n\t\t\tif(isset($menuItemsType->icons->default->imageUrl))\n\t\t\t{\n\t\t\t\t$image = $menuItemsType->icons->default->imageUrl;\n\t\t\t}\n\t\t\tif(isset($menuItemsType->icons->new->imageUrl))\n\t\t\t{\n\t\t\t\t$imageNew = $menuItemsType->icons->new->imageUrl;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$imageNew = $image;\n\t\t\t\t$imageBulletNew = PagesAndItemsHelper::getDirIcons().'base/bullets/icon-16-bullet_new.png';\n\t\t\t}\n\t\t\tif(isset($menuItemsType->icons->edit->imageUrl))\n\t\t\t{\n\t\t\t\t$imageEdit = $menuItemsType->icons->edit->imageUrl;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$imageEdit = $image;\n\t\t\t\t$imageBulletEdit = PagesAndItemsHelper::getDirIcons().'base/bullets/icon-16-bullet_edit.png';\n\t\t\t}\n\t\t\tif($sub_task=='new')\n\t\t\t{\n\t\t\t\tif(!$imageBulletNew && $imageNew)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageNew,JText::_('COM_PAGESANDITEMS_NEW_PAGE'));\n\t\t\t\t}\n\t\t\t\telseif($imageBulletNew && $imageNew)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageNew,JText::_('COM_PAGESANDITEMS_NEW_PAGE'),$imageBulletNew);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu_edit.png',JText::_('COM_PAGESANDITEMS_NEW_PAGE'));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(!$imageBulletEdit && $imageEdit)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageEdit,JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )');\n\t\t\t\t}\n\t\t\t\telseif($imageBulletEdit && $imageEdit)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageEdit,JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )',$imageBulletEdit);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu_edit.png',JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif($sub_task=='new')\n\t\t\t{\n\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu.png',JText::_('COM_PAGESANDITEMS_NEW_PAGE').' ( '.$menu_item_name.' )');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu_edit.png',JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )');\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t$html .='<table class=\"piadminform xadminform\" width=\"98%\">';\n\t\t$html .= '<thead class=\"piheader\">';\n\t\t\t$html .='<tr>';\n\t\t\t\t$html .='<th>'; // class=\"piheader\">'; // style=\"background: none repeat scroll 0 0 #F0F0F0;border-bottom: 1px solid #999999;\">';\n\t\t\t\t\t$html .= $imageDisplay;\n\n\t\t\t\t$html .='</th>';\n\t\t\t$html .='</tr>';\n\t\t\t$html .= '</thead>';\n\t\t\t$html .= '<tbody>';\n\t\t\t$html .='<tr>';\n\t\t\t\t$html .='<td>';\n\t\t\t\t\t\tJHtml::_('behavior.tooltip');\n\t\t\t\t\t\tJHtml::_('behavior.formvalidation');\n\t\t\t\t\t\tJHTML::_('behavior.modal');\n\n\t\t\t\t\t\t$html .='<!-- $this->lists->display-> -->';\n\t\t\t\t\t\t$html .='<div class=\"width-60 fltlft\">';\n\t\t\t\t\t\t\t$html .='<fieldset class=\"adminform\">';\n\t\t\t\t\t\t\t\t$html .='<legend>'.JText::_('COM_MENUS_ITEM_DETAILS').'</legend>';\n\n\t\t\t\t\t\t\t\t\t$html .='<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t//do not display when new\n\t\t\t\t\t\t\t\t\t\tif($this->menuItem->id){\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li '.$this->lists->display->id.'>'.$this->form->getLabel('id');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('id').'</li>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('type', 'type', 'pimenutype');\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('type');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('type').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('title');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('title').'</li>';\n\n\t\t\t\t\t\t\t\t\t\tif ($this->menuItem->type =='url'):\n\t\t\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('link','readonly','false');\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('link');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('link').'</li>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('alias');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('alias').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('note');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('note').'</li>';\n\n\t\t\t\t\t\t\t\t\t\tif ($this->menuItem->type !=='url'):\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('link');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('link').'</li>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('published');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('published').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('access');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('access').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('menutype');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('menutype').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('parent_id');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('parent_id').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('browserNav');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('browserNav').'</li>';\n\n\t\t\t\t\t\t\t\t\t\tif ($this->menuItem->type == 'component') :\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('home');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('home').'</li>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('language');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('language').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('template_style_id');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('template_style_id').'</li>';\n\n\t\t\t\t\t\t\t\t$html .='</ul>';\n\t\t\t\t\t\t\t$html .='</fieldset>';\n\t\t\t\t\t\t$html .='</div>';\n\n\t\t\t\t\t\t$html .= '<!-- Menu Item Parameters Section content-->';\n\t\t\t\t\t\t$html .= '<div class=\"width-40 fltrt\">'; //width-100 fltlft\">';\n\t\t\t\t\t\t\t$html .= JHtml::_('sliders.start','menu-sliders-'.$this->menuItem->id);\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\tms:\n\t\t\t\t\t\t\t\t\tcheck here for pagetype == 'content_article'\n\t\t\t\t\t\t\t\t\tso we must not add an article here\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\tif($this->pageType == 'content_article')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('id', 'required', false,'request');\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\tms:\n\t\t\t\t\t\t\t\t\tcheck here for pagetype == 'content_category_blog' and sub_tak == 'new'\n\t\t\t\t\t\t\t\t\tso we can make an new category\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\tif(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('id', 'required', false,'request');\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('id', 'type', 'Picategory','request');\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$fieldSets = $this->form->getFieldsets('request');\n\t\t\t\t\t\t\t\tif (!empty($fieldSets))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$fieldSet = array_shift($fieldSets);\n\t\t\t\t\t\t\t\t\t$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$fieldSet->name.'_FIELDSET_LABEL';\n\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_($label), 'request-options');\n\t\t\t\t\t\t\t\t\t\tif (isset($fieldSet->description) && trim($fieldSet->description)) :\n\t\t\t\t\t\t\t\t\t\t\t//$html .= '<p class=\"tip\">'.$this->escape(JText::_($fieldSet->description)).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<p class=\"tip\">'.JText::_($fieldSet->description).'</p>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset class=\"panelform\">';\n\t\t\t\t\t\t\t\t\t\t\t$hidden_fields = '';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tforeach ($this->form->getFieldset('request') as $field)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (!$field->hidden)\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\t\tif(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new' && strtolower($field->type) == 'picategory')\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new' && strtolower($field->type) == 'category')\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<table>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<input type=\"radio\" name=\"create_new_category\" value=\"0\" id=\"create_new_category_0\" />';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//the checked part will be configurable in the pagetype config\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<input type=\"radio\" name=\"create_new_category\" value=\"1\" id=\"create_new_category_1\" checked=\"checked\" />';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td colspan=\"2\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<label class=\"hasTip\" for=\"create_new_category_1\" title=\"';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '::';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY_TIP');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</label>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</table>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\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\telse\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\t\t$hidden_fields.= $field->input;\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}\n\t\t\t\t\t\t\t\t\t\t\t$html .= '</ul>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= $hidden_fields;\n\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$fieldSets = $this->form->getFieldsets('params');\n\t\t\t\t\t\t\t\t\tforeach ($fieldSets as $name => $fieldSet)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$name.'_FIELDSET_LABEL';\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_($label), $name.'-options');\n\t\t\t\t\t\t\t\t\t\t\tif (isset($fieldSet->description) && trim($fieldSet->description))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t//$html .= '<p class=\"tip\">'.$this->escape(JText::_($fieldSet->description)).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<p class=\"tip\">'.JText::_($fieldSet->description).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset class=\"panelform\">';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\tforeach ($this->form->getFieldset($name) as $field)\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\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\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\t$html .= '</ul>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$html .= '<div class=\"clr\"></div>';\n\t\t\t\t\t\t\t\t\tif (!empty($this->modules))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_('COM_MENUS_ITEM_MODULE_ASSIGNMENT'), 'module-options');\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<table class=\"adminlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<thead>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<th class=\"left\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_HEADING_ASSIGN_MODULE');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_HEADING_DISPLAY');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</thead>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tbody>';\n\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ($this->modules as $i => &$module)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr class=\"row<?php echo $i % 2;?>\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$link = 'index.php?option=com_modules&amp;client_id=0&amp;task=module.edit&amp;id='. $module->id.'&amp;tmpl=component&amp;view=module&amp;layout=modal' ;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<a class=\"modal\" href=\"'. $link.'\" rel=\"{handler: \\'iframe\\', size: {x: 900, y: 550}}\" title=\"'.JText::_('COM_MENUS_EDIT_MODULE_SETTINGS').'\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$html .= JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $this->escape($module->title), $this->escape($module->access_title), $this->escape($module->position));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $module->title, $module->access_title, $module->position);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .='</a>';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td class=\"center\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (is_null($module->menuid))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('JNONE');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telseif ($module->menuid != 0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_MODULE_SHOW_VARIES');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('JALL');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tbody>';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</table>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.end');\n\t\t\t\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"task\" value=\"\" />';\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('component_id');\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('form.token');\n\t\t\t\t\t\t\t\t\t$html .= '</div>';\n\t\t\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" id=\"fieldtype\" name=\"fieldtype\" value=\"\" />';\n\t\t\t\t\t\t\t\t$html .= '<!-- END Menu Item Parameters Section-->';\n\t\t\t\t\t\t//\t$html .= '</td>';\n\t\t\t\t\t\t//$html .= '</tr>';\n\t\t\t\t\t\t\t\t$html .= '<!-- Manager Section-->';\n\t\t\t\t\t\t\t\t$pageId = JRequest::getVar('pageId', null);\n\t\t\t\t\t\t\t\t//if($pageId)\n\t\t\t\t\t\t\t\t//{\n\t\t\t\t\t\t\t\t\t$new_or_edit = (JRequest::getVar('sub_task','edit') == 'new') ? 0 : 1;\n\t\t\t\t\t\t\t\t\t$managerOtherItemEdit = new JObject();\n\t\t\t\t\t\t\t\t\t$managerOtherItemEdit->text = '';\n\n\t\t\t\t\t\t\t\t\t$params = null;\n\t\t\t\t\t\t\t\t\t$dispatcher = &JDispatcher::getInstance();\n\t\t\t\t\t\t\t\t\t//$dispatcher->trigger('onGetParams',array(&$params, $item_type));\n\t\t\t\t\t\t\t\t\t$path = JPATH_COMPONENT_ADMINISTRATOR;//realpath(dirname(__FILE__).DS.'..'.DS.'..'.DS.'..');\n\t\t\t\t\t\t\t\t\trequire_once($path.DS.'includes'.DS.'extensions'.DS.'managerhelper.php');\n\t\t\t\t\t\t\t\t\t$extensions = ExtensionManagerHelper::importExtension(null,null, true,null,true);\n\t\t\t\t\t\t\t\t\t$dispatcher->trigger('onManagerOtherItemEdit', array (&$managerOtherItemEdit,'menu',$pageId,$params,$new_or_edit));\n\t\t\t\t\t\t\t\t\tif($managerOtherItemEdit->text != '')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= '<div class=\"width-100 fltrt\">'; //width-100 fltlft\">';\n\t\t\t\t\t\t\t\t\t\t$html .= $managerOtherItemEdit->text;\n\t\t\t\t\t\t\t\t\t$html .= '</div>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//}\n\n\n\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$html .='<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"paramlist\" width=\"98%\" >';\n\t\t\t\t\t\t$html .= $this->lists->add->bottom;\n\t\t\t\t\t\t$html .= '</table>';\n\n\t\t\t\t\t\t$html .= $this->menuItem->linkfield;\n\t\t\t\t\t\t//replace with\n\t\t\t\t\t\t$html .= $this->lists->pageType->html;\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"id\" value=\"'.$this->menuItem->id.'\" />';\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"component_id\" value=\"'.$this->menuItem->component_id.'\" />';\n\n\t\t\t\t\t\t$html .= $this->form->getInput('component_id');\n\t\t\t\t\t\t$html .= JHtml::_('form.token');\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" id=\"fieldtype\" name=\"fieldtype\" value=\"\" />';\n\t\t\t\t\t\t//$html .= '<input type=\"hidden\" id=\"pageType\" name=\"pageType\" value=\"'.$this->pageType.'\" />';\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"type\" value=\"'.$this->menuItem->type.'\" />';\n\t\t\t\t$html .= '</td>';\n\t\t\t$html .= '</tr>';\n\t\t\t$html .= '</tbody>';\n\t\t$html .= '</table>';\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "bb8d8e13a1f34424b177b7ac72bf8939", "score": "0.579263", "text": "function chargeForm($form,$label,$titre,$ids)\n \t{\n\n \t\t//$liste = $this->getAll();\n\t\t$liste = $this->getByIds($ids);\n \t\t//$array[0] = \"\";\n \t\tfor ($i = 0; $i < count($liste); $i++)\n \t{\n \t\t$j = $liste[$i]->id;\n \t\t$array[$j] = $liste[$i]->name;\n \t}\n \t\t$s = & $form->createElement('select',$label,$titre);\n \t\t$s->loadArray($array);\n \t\treturn $s;\n \t}", "title": "" }, { "docid": "4b60982b8b32072d49edc0c989e8ff65", "score": "0.57886964", "text": "function listgalerie($set){\n\t\t$buffer=\"\";\n\t\t$restype=mysql_query(\"SELECT * FROM type_photo WHERE parent='0' ORDER BY type\");\n\t\t$select=\"\";\n\t\t$buffer.=\"\n\t\t\t<select name='listgalerie' class='listpagecat'>\n\t\t\t\t<option value=\\\"ALL\\\"> Selectionnez une galerie\";\n\t\t\t\t$ul=\"\";\n\t\t\t\twhile ($row = mysql_fetch_array($restype))\n\t\t\t\t{\n\t\t\t\t\t$buffer.=listparentgalerie($row,$ul,$set);\n\t\t\t\t}\n\t\t\t\t$buffer.=\"\n\t\t\t</select>\";\n\n\t\treturn($buffer);\n\t}", "title": "" }, { "docid": "6a9e73c0c2b49dd75d274f8e1cd02e59", "score": "0.57529384", "text": "function set_group_list() {\r\n if (isset($_POST['selected_school'])) {\r\n\t\t$info = get_dropdown_groups($_POST['selected_school']);\r\n\t\t$list = to_dropdown($info, false);\r\n\t}\r\n\techo $list;\r\n\r\n\tdie();\r\n}", "title": "" }, { "docid": "98d32e3b70f25d9902e9c858ca4bfe85", "score": "0.57463527", "text": "function renderList()\n {\n $filter = $this->getFilter();\n $headpage = $this->getHeadpage();\n $filter->setComboBoxOptions(\"RELEASE\",$this->getReleaseList());\n\n if(isset($_POST['RELEASE'])){\n $this->fai_release = get_post('RELEASE');\n }\n $headpage->setBase($this->fai_release);\n $headpage->update();\n $smarty = get_smarty();\n $smarty->assign(\"fai_release\", $this->fai_release);\n $smarty->assign(\"fai_base\", $this->fai_base);\n $r = $this->config->search(\"faiManagement\", \"POSTREMOVE\",array('menu','tabs','hooks'));\n $c = $this->config->search(\"faiManagement\", \"POSTCREATE\",array('menu','tabs','hooks'));\n $smarty->assign(\"allow_create\", $c);\n $smarty->assign(\"allow_remove\", $r);\n $display = $headpage->render();\n return($this->getHeader().$display);\n }", "title": "" }, { "docid": "378e3ace76f3056f91b6331547feb39f", "score": "0.57419604", "text": "function _linklist_makeList() {\n\tglobal $member, $oPluginAdmin;\n\t\n\t$flg_admin = $member->isAdmin();\n\t$arr_grp = $oPluginAdmin->plugin->arr_grp;\n\tforeach ($arr_grp as $grp) {\n\t\t\t_linklist_showGroup($grp);\n\t\t\t_linklist_showLink($grp->id);\n\t}\n}", "title": "" }, { "docid": "a9bcf8109378436f84028aca7bffee93", "score": "0.573679", "text": "private function showUploadForm()\n\t{\n\t\tfunctions::output_var('galerieUpload', functions::Selector('modgalerie', 'name'));\n\t\tfunctions::output_var('uploadLink',functions::GetLink(array('sub' => $_GET['sub'], 'action' => 'upload')));\n\t}", "title": "" }, { "docid": "cb2dba66bd0806354895ac0b7774d70c", "score": "0.5732923", "text": "function get_option_list() {\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "3cf3cfc16ffc2c1527c3c5158de41f34", "score": "0.57277626", "text": "public function listAdmin() {\n\t\t$html = '';\n\t\t$this->menuInside = '';\n\t\t$objectNames = File::scanDirectoryObjectsBase(); \n\t\t$html .= $this->listObjects($objectNames, 'formPermissionBase');\n\t\t$objectNames = File::scanDirectoryObjectsApp(); \n\t\t$html .= $this->listObjects($objectNames, 'formPermissionApp');\n\t\treturn '<div class=\"formPermissions\">\n\t\t\t\t\t'.Form::createForm($html, array('action'=>url('Permission/insert', true), 'submit'=>__('save'))).'\n\t\t\t\t</div>';\n\t}", "title": "" }, { "docid": "81bd61ebdf630e7d1cb010d0b36828f2", "score": "0.56890583", "text": "function listSearchForm()\r\n{\r\n\tglobal $db;\r\n\tglobal $rmode;\r\n\tglobal $report;\r\n\tglobal $row;\r\n\tglobal $col;\r\n\t\r\n\t$repq = '';\r\n\tif($rmode) $repq = '&report=' . $report . '&row=' . $row . '&col=' . $col;\r\n\t\r\n\t$out = '<form method=\"post\" action=\"search_simple.php\" class=\"lisep\" style=\"float:right;z-index:100\">'\r\n\t\t\t. '<fieldset><legend>Load saved search</legend>';\r\n\t$query = 'SELECT id,name,user FROM saved_searches WHERE user=' . $db->user->id . ' OR user IS NULL ORDER BY user';\r\n\t$res = mysql_query($query) or die('Bad SQL query getting saved search list');\r\n\t$num_rows = mysql_num_rows($res);\r\n\tif($num_rows>0)\r\n\t$out.='<ul>';\r\n\twhile($ss = mysql_fetch_assoc($res))\r\n\t{\r\n\t\t$global = $ss['user'] === NULL;\r\n\t\t$adm = $db->user->userlevel != 'user';\r\n\t\t$out .= '<li' . ($global ? ' class=\"global\"' : '') . '><a href=\"search_simple.php?load=' . $ss['id'] . $repq\r\n\t\t\t\t. '\">' . htmlspecialchars($ss['name'])\r\n\t\t\t\t. ( (!$global || ($global && $adm))\r\n\t\t\t\t\t\t\t\t ? ' <img src=\"images/edit.png\" width=\"14\" height=\"14\" border=\"0\" alt=\"edit\"/>'\r\n\t\t\t\t\t\t\t\t : '')\r\n\t\t\t\t. ' </a> &nbsp; '\r\n\t\t\t\t. ( (!$global || ($global && $adm))\r\n\t\t\t\t\t\t? '<input type=\"image\" src=\"images/not.png\" name=\"delsch[' . $ss['id'] . ']\" alt=\"delete\" title=\"delete\"/>'\r\n\t\t\t\t\t\t: '')\r\n\t\t\t\t. '</li>';\r\n\r\n\t}\r\n\tif($num_rows>0)\r\n\t$out.='</ul>';\t\r\n\t$out .= '</fieldset></form>';\r\n\treturn $out;\r\n}", "title": "" }, { "docid": "1e5dc6972ccb15d3ba1e54aa8d3d71aa", "score": "0.5681177", "text": "function OLDJ15J16getFormPagePropertys()\n\t{\n\t\t$html = '';\n\t\t$sub_task = JRequest::getVar( 'sub_task', 'edit');\n\t\t$lang = &JFactory::getLanguage();\n\t\t$menu_item = $this->menu_item;\n\n\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t{\n\t\t\t$menu_item_component = $menu_item->getComponent();\n\t\t\t$lang->load($menu_item_component->option, JPATH_ADMINISTRATOR);\n\t\t\t$menu_item_urlparams\t\t= $menu_item->getUrlParams();\n\t\t\t$menu_item_params\t\t\t= $menu_item->getStateParams();\n\t\t\t$menu_item_systemparams\t\t= $menu_item->getSystemParams();\n\t\t\t$menu_item_advancedparams\t= $menu_item->getAdvancedParams();\n\t\t\t$menu_item_componentparams\t= $menu_item->getComponentParams();\n\n\t\t\t$menu_item_name\t\t\t= $menu_item->getStateName();\n\t\t\t$menu_item_description\t\t= $menu_item->getStateDescription();\n\n\t\t\t$menu_menuTypes \t\t\t= MenusHelper::getMenuTypeList();\n\t\t\t$menu_components\t\t\t= MenusHelper::getComponentList();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(isset($this->menuItem->request['option']))\n\t\t\t//$lang->load($this->menuItem->request['option'], JPATH_ADMINISTRATOR);\n\t\t\t$lang->load($this->menuItem->request['option'], JPATH_ADMINISTRATOR, null, false, false) || $lang->load($this->menuItem->request['option'], JPATH_ADMINISTRATOR, $lang->getDefault(), false, false);\n\t\t\t$menu_item_name = $this->menuItem->title; //must change tothe ???\n\t\t\t$menu_item_description = $this->form->getInput('type');\n\t\t\t$menu_item_parent_id = $this->form->getInput('parent_id');\n\n\t\t\t/*\n\n\t\t\t\t\t\t\t<li><?php echo $this->form->getLabel('type'); ?>\n\t\t\t\t<?php echo $this->form->getInput('type'); ?></li>\n\n\t\t\t\t<li><?php echo $this->form->getLabel('title'); ?>\n\t\t\t\t<?php echo $this->form->getInput('title'); ?></li>\n\n\t\t\t\t<?php if ($this->item->type =='url'): ?>\n\t\t\t\t\t<?php $this->form->setFieldAttribute('link','readonly','false');?>\n\t\t\t\t\t<li><?php echo $this->form->getLabel('link'); ?>\n\t\t\t\t\t<?php echo $this->form->getInput('link'); ?></li>\n\t\t\t\t<?php endif ?>\n\n\n\t\t\t//$menu_item_component \t\t= $menu_item->getComponent();\n\n\n\n\t\t\t$menu_item_urlparams\t\t= $menu_item->getUrlParams();\n\t\t\t$menu_item_params\t\t\t= $menu_item->getStateParams();\n\t\t\t$menu_item_systemparams\t\t= $menu_item->getSystemParams();\n\t\t\t$menu_item_advancedparams\t= $menu_item->getAdvancedParams();\n\t\t\t$menu_item_componentparams\t= $menu_item->getComponentParams();\n\n\t\t\t$menu_item_name\t\t\t\t= $menu_item->getStateName();\n\t\t\t$menu_item_description\t\t= $menu_item->getStateDescription();\n\n\t\t\t$menu_menuTypes \t\t\t= MenusHelper::getMenuTypes();\n\t\t\t$menu_components\t\t\t= MenusHelper::getComponentList();\n\n\n\n\n\n\t\t\t*/\n\t\t\t//$menu_item = $this->menuItem; //menuItemsType;\n\t\t\t//\n\t\t\t//$lang->load($menu_item_component->option, JPATH_ADMINISTRATOR);\n\t\t\t//$menu_item_description = ''; //$menu_item->description;\n\t\t}\n\t\t$buttonLinkMenutype = '';\n\t\t$buttonLinkMenutype .= '<div>';\n\t\t\t//here we can set an select type to change se type?\n\t\t\t$buttonLinkMenutype .= $menu_item_description;\n\t\t$buttonLinkMenutype .= '</div>';\n\t\t$this->getLists();\n\t\t//TODO $this->getPageTypeHtml\n\t\t$html .= '<script language=\"JavaScript\" type=\"text/javascript\">';\n\t\t\t$html .= '<!--';\n\t\t\t$html .= 'function popupPageBrowser(url)';\n\t\t\t$html .= '{';\n\t\t\t\t$html .= 'var winl = (screen.width - 400) / 2;';\n\t\t\t\t$html .= 'var wint = (screen.height - 400) / 2;';\n\t\t\t\t$html .= \"winprops = 'height=400,width=400,top='+wint+',left='+winl+',scrollbars=yes,resizable';\";\n\t\t\t\t$html .= \"linkValue = document.getElementById('link').value;\";\n\t\t\t\t$html .= 'linkValue = escape(linkValue);';\n\t\t\t\t$html .= \"urlString = url+'&url='+linkValue;\";\n\t\t\t\t$html .= \"win = window.open(urlString, 'pages', winprops);\";\n\t\t\t\t$html .= 'if (parseInt(navigator.appVersion) >= 4)';\n\t\t\t\t$html .= '{';\n\t\t\t\t\t$html .= 'win.window.focus();';\n\t\t\t\t$html .= '}';\n\t\t\t$html .= '}';\n\t\t\t$html .= '-->';\n\t\t$html .= '</script>';\n\n\t\t//if($this->menuItem && $this->menuItemsTypes)\n\t\tif($this->menuItem && $this->menuItemsType)\n\t\t{\n\t\t\t$menuItemsType = $this->menuItemsType;\n\t\t\t$image = false;\n\t\t\t$imageNew = false;\n\t\t\t$imageEdit = false;\n\t\t\t$imageBulletNew = '';\n\t\t\t$imageBulletEdit = '';\n\t\t\tif(isset($menuItemsType->icons->default->imageUrl))\n\t\t\t{\n\t\t\t\t$image = $menuItemsType->icons->default->imageUrl;\n\t\t\t}\n\t\t\tif(isset($menuItemsType->icons->new->imageUrl))\n\t\t\t{\n\t\t\t\t$imageNew = $menuItemsType->icons->new->imageUrl;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$imageNew = $image;\n\t\t\t\t$imageBulletNew = PagesAndItemsHelper::getDirIcons().'base/bullets/icon-16-bullet_new.png';\n\t\t\t}\n\t\t\tif(isset($menuItemsType->icons->edit->imageUrl))\n\t\t\t{\n\t\t\t\t$imageEdit = $menuItemsType->icons->edit->imageUrl;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$imageEdit = $image;\n\t\t\t\t$imageBulletEdit = PagesAndItemsHelper::getDirIcons().'base/bullets/icon-16-bullet_edit.png';\n\t\t\t}\n\t\t\tif($sub_task=='new')\n\t\t\t{\n\t\t\t\tif(!$imageBulletNew && $imageNew)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageNew,JText::_('COM_PAGESANDITEMS_NEW_PAGE')); //.' ( '.$menu_item_name.' )');\n\t\t\t\t}\n\t\t\t\telseif($imageBulletNew && $imageNew)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageNew,JText::_('COM_PAGESANDITEMS_NEW_PAGE'),$imageBulletNew); //.' ( '.$menu_item_name.' )',$imageBulletEdit);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//$imageDisplay ='<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-menu.png\" alt=\"\" style=\"vertical-align: middle;\" />&nbsp;';\n\t\t\t\t\t//$imageDisplay .= JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )';\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu_edit.png',JText::_('COM_PAGESANDITEMS_NEW_PAGE')); //.' ( '.$menu_item_name.' )');\n\t\t\t\t}\n\t\t\t\t/*\n\t\t\t\tif($imageNew)\n\t\t\t\t{\n\t\t\t\t\t$bevore = '';\n\t\t\t\t\t$after = '';\n\t\t\t\t\t//COMMENT TODO only test for add bullets to image\n\t\t\t\t\tif($imageBulletNew !='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$bevore = '<div>';\n\t\t\t\t\t\t\t$imageBulletNew = '<img src=\"'.$imageBulletNew.'\" alt=\"\" style=\"float: left;left: 0;position: absolute;vertical-align: middle;z-index: 101;\" />&nbsp;';\n\t\t\t\t\t\t$after = '</div>';\n\t\t\t\t\t}\n\t\t\t\t\t$imageDisplay = $bevore;\n\t\t\t\t\t//echo '<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-menu.png\" alt=\"\" style=\"vertical-align: middle;float: left;\" />&nbsp;';\n\t\t\t\t\t$imageDisplay .= '<div style=\"margin-left: 4px;float: left;left: 0;position: relative;vertical-align: middle;\">';\n\t\t\t\t\t\t$imageDisplay .= '<img src=\"'.$imageNew.'\" alt=\"\" style=\"vertical-align: middle;position: relative;\" />&nbsp;';\n\n\n\t\t\t\t\t\t$imageDisplay .= $imageBulletNew;\n\t\t\t\t\t$imageDisplay .= '</div>';\n\t\t\t\t\t//$imageDisplay .= JText::_('COM_PAGESANDITEMS_NEW_PAGE').' ( '.$menu_item_name.' )';\n\t\t\t\t\t$imageDisplay .= JText::_('COM_PAGESANDITEMS_NEW_PAGE');\n\t\t\t\t\t$imageDisplay .= $after;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay ='<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-menu.png\" alt=\"\" style=\"vertical-align: middle;\" />&nbsp;';\n\t\t\t\t\t//$imageDisplay .= JText::_('COM_PAGESANDITEMS_NEW_PAGE').' ( '.$menu_item_name.' )';\n\t\t\t\t\t$imageDisplay .= JText::_('COM_PAGESANDITEMS_NEW_PAGE');\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/*\n\t\t\t\tif($imageEdit)\n\t\t\t\t{\n\t\t\t\t\t$bevore = '';\n\t\t\t\t\t$after = '';\n\t\t\t\t\t//COMMENT TODO only test for add bullets to image\n\t\t\t\t\tif($imageBulletEdit !='')\n\t\t\t\t\t{\n\t\t\t\t\t\t$bevore = '<div>';\n\t\t\t\t\t\t\t$imageBulletEdit = '<img src=\"'.$imageBulletEdit.'\" alt=\"\" style=\"float: left;left: 0;position: absolute;vertical-align: middle;z-index: 101;\" />&nbsp;';\n\t\t\t\t\t\t$after = '</div>';\n\t\t\t\t\t}\n\t\t\t\t\t$imageDisplay = $bevore;\n\t\t\t\t\t//echo '<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-menu.png\" alt=\"\" style=\"vertical-align: middle;float: left;\" />&nbsp;';\n\t\t\t\t\t$imageDisplay .= '<div style=\"margin-left: 4px;float: left;left: 0;position: relative;vertical-align: middle;\">';\n\n\t\t\t\t\t\t$imgClass = explode(\"class:\",$imageEdit);\n\t\t\t\t\t\tif(count($imgClass) && count($imgClass) == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//we have an class\n\t\t\t\t\t\t\t$imageDisplay .= '<a ';\n\t\t\t\t\t\t\t$imageDisplay .= 'class=\"icon '.$imgClass[1].'\" ';\n\t\t\t\t\t\t\t$imageDisplay .= 'alt=\"\" >&nbsp;';\n\t\t\t\t\t\t\t$imageDisplay .= '<span>&nbsp;';\n\t\t\t\t\t\t\t$imageDisplay .= '</span>';\n\t\t\t\t\t\t\t$imageDisplay .= '</a>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\n\t\t\t\t\t\t$imageDisplay .= '<img src=\"'.$imageEdit.'\" alt=\"\" style=\"vertical-align: middle;position: relative;\" />&nbsp;';\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$imageDisplay .= $imageBulletEdit;\n\t\t\t\t\t$imageDisplay .= '</div>';\n\t\t\t\t\t//echo JText::_('COM_PAGESANDITEMS_UNDERLYING_PAGES');\n\t\t\t\t\t$imageDisplay .= JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )';\n\t\t\t\t\t$imageDisplay .= $after;\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t\tif(!$imageBulletEdit && $imageEdit)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageEdit,JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )');\n\t\t\t\t}\n\t\t\t\telseif($imageBulletEdit && $imageEdit)\n\t\t\t\t{\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle($imageEdit,JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )',$imageBulletEdit);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//$imageDisplay ='<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-menu.png\" alt=\"\" style=\"vertical-align: middle;\" />&nbsp;';\n\t\t\t\t\t//$imageDisplay .= JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )';\n\t\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu_edit.png',JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif($sub_task=='new')\n\t\t\t{\n\t\t\t\t//$imageDisplay ='<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-menu.png\" alt=\"\" style=\"vertical-align: middle;\" />&nbsp;';\n\t\t\t\t//$imageDisplay .= JText::_('COM_PAGESANDITEMS_NEW_PAGE').' ( '.$menu_item_name.' )';\n\t\t\t\t//todo icon-16-menu_new\n\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu.png',JText::_('COM_PAGESANDITEMS_NEW_PAGE').' ( '.$menu_item_name.' )');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//$imageDisplay ='<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-menu.png\" alt=\"\" style=\"vertical-align: middle;\" />&nbsp;';\n\t\t\t\t//$imageDisplay .= JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )';\n\t\t\t\t$imageDisplay = PagesAndItemsHelper::getThImageTitle(PagesAndItemsHelper::getDirIcons().'icon-16-menu_edit.png',JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES').' ( '.$menu_item_name.' )');\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t$html .= PagesAndItemsHelper::getThImageTitle($image,JText::_('COM_PAGESANDITEMS_ITEMS_ON_PAGE'));\n\t\t\n\t\t\n\t\t*/\n\n\t\t$html .='<table class=\"piadminform xadminform\" width=\"98%\">';\n\t\t\t$html .= '<thead class=\"piheader\">';\n\t\t\t$html .='<tr>';\n\t\t\t\t$html .='<th>'; // class=\"piheader\">'; // style=\"background: none repeat scroll 0 0 #F0F0F0;border-bottom: 1px solid #999999;\">';\n\t\t\t\t\t //TODO image from pageType if exist\n\t\t\t\t\t/*\n\t\t\t\t\tif($sub_task=='new')\n\t\t\t\t\t{\n\t\t\t\t\t\techo '<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-category.png\" alt=\"\" style=\"vertical-align: middle;\" />&nbsp;';\n\t\t\t\t\t\techo JText::_('COM_PAGESANDITEMS_NEW_PAGE');\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\techo '<img src=\"'.PagesAndItemsHelper::getDirIcons().'icon-16-category.png\" alt=\"\" style=\"vertical-align: middle;\" />&nbsp;'; //TODO image from this->menuItem->pageType\n\t\t\t\t\t\techo JText::_('COM_PAGESANDITEMS_PAGE_PROPERTIES');\n\t\t\t\t\t}\n\t\t\t\t\t*/\n\t\t\t\t\t//echo ' ( '.$menu_item_name.' )';\n\t\t\t\t\t$html .= $imageDisplay;\n\n\t\t\t\t$html .='</th>';\n\t\t\t$html .='</tr>';\n\t\t\t$html .= '</thead>';\n\t\t\t$html .= '<tbody>';\n\t\t\t$html .='<tr>';\n\t\t\t\t$html .='<td>';\n\t\t\t\t/*\n\t\t\t\tok different J1.5 and J1.6\n\t\t\t\t*/\n\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t{\n\t\t\t\t\t$html .='<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"paramlist\" width=\"98%\"'.$this->lists->hideAll.' >';\n\n\t\t\t\t\t$html .='<!-- $this->lists->display-> -->';\n\n\t\t\t\t\t$html .='<tr id=\"menu_item_id\"'.$this->lists->display->id.' >';\n\t\t\t\t\t\t$html .='<td class=\"key\" width=\"20%\" align=\"right\">';\n\t\t\t\t\t\t\t$html .= JText::_( 'ID' ).': ';\n\t\t\t\t\t\t$html .='</td>';\n\t\t\t\t\t\tif ($this->menuItem->id)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$html .='<td width=\"80%\">';\n\t\t\t\t\t\t\t\t$html .='<strong>'.$this->menuItem->id.'</strong>';\n\t\t\t\t\t\t\t$html .='</td>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$html .= $this->lists->add->top;\n\t\t\t\t\t$html .='</tr>';\n\n\t\t\t\t\t$html .='<tr id=\"menu_item_title\"'.$this->lists->display->title.' >';\n\t\t\t\t\t\t$html .='<td class=\"key\" align=\"right\">';\n\t\t\t\t\t\t\t$html .= JText::_( 'Title' ).': ';\n\t\t\t\t\t\t$html .='</td>';\n\t\t\t\t\t\t$html .='<td>';\n\t\t\t\t\t\t\t$html .='<input class=\"inputbox\" type=\"text\" name=\"name\" size=\"150\" maxlength=\"255\" value=\"'.$this->menuItem->name.'\" />';\n\t\t\t\t\t\t$html .='</td>';\n\t\t\t\t\t$html .='</tr>';\n\n\t\t\t\t\t$html .='<tr id=\"menu_item_alias\">';\n\t\t\t\t\t\t$html .='<td class=\"key\" align=\"right\">';\n\t\t\t\t\t\t\t$html .= JText::_( 'Alias' ).': ';\n\t\t\t\t\t\t$html .='</td>';\n\t\t\t\t\t\t$html .='<td>';\n\t\t\t\t\t\t\t$html .='<input class=\"inputbox\" type=\"text\" name=\"alias\" size=\"150\" maxlength=\"255\" value=\"'.$this->menuItem->alias.'\" />';\n\t\t\t\t\t\t$html .='</td>';\n\t\t\t\t\t$html .='</tr>';\n\n\t\t\t\t\t$html .='<tr id=\"menu_item_link\">';\n\t\t\t\t\t\t$html .='<td class=\"key\" align=\"right\">';\n\t\t\t\t\t\t\t$html .= JText::_( 'Link' ).': ';\n\t\t\t\t\t\t$html .='</td>';\n\t\t\t\t\t\t$html .='<td>';\n\t\t\t\t\t\t\t//$html .='<input class=\"inputbox\" type=\"text\" name=\"link\" size=\"150\" maxlength=\"255\" value=\"'.$this->menuItem->link.'\" $html .= $this->lists->disabled->link.' />';\n\t\t\t\t\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($this->menuItem->type =='url')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t//$html .='<input class=\"inputbox\" type=\"text\" name=\"link\" size=\"150\" maxlength=\"255\" value=\"'.$this->menuItem->link.'\" $html .= $this->lists->disabled->link.' />';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\n\t\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\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($this->menuItem->type =='url')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('link','readonly','false');\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/*<li><?php echo $this->form->getLabel('link'); ?>*/\n\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('link');\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= '<tr style=\"display: none;visibility: hidden;\">';\n\t\t\t\t\t\t\t$html .= '<td class=\"key\" align=\"right\">';\n\t\t\t\t\t\t\t\t$html .= JText::_( 'Display in' ).': ';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$menuTypes = MenusHelper::getMenuTypeList();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$menuTypes = MenusHelper::getMenuTypes();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$html .= JHTML::_('select.genericlist', $menuTypes, 'menutype', 'class=\"inputbox\" size=\"1\"', 'menutype', 'title', $this->menuItem->menutype );\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= '<tr style=\"display: none;visibility: hidden;\">';\n\t\t\t\t\t\t\t$html .= '<td class=\"key\" align=\"right\" valign=\"top\">';\n\t\t\t\t\t\t\t\t$html .= JText::_( 'Parent Item' ).': ';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= MenusHelper::Parent( $this->menuItem );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= $menu_item_parent_id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t$html .= '<td class=\"key\" valign=\"top\" align=\"right\">';\n\t\t\t\t\t\t\t\t$html .= JText::_( 'Published' ).': ';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t$html .= $this->lists->published;\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t$html .= '<td class=\"key\" valign=\"top\" align=\"right\">';\n\t\t\t\t\t\t\t\t$html .= JText::_('DEFAULT').' '.JText::_( 'MENU ITEM' ).': ';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t$html .= $this->lists->home; //'todo defaultPage';//$this->lists->published\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= '<tr style=\"display: none;visibility: hidden;\">';\n\t\t\t\t\t\t\t$html .= '<td class=\"key\" valign=\"top\" align=\"right\">';\n\t\t\t\t\t\t\t\t$html .= JText::_( 'Ordering' ).': ';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t$html .= JHTML::_('menu.ordering', $this->menuItem, $this->menuItem->id );\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t$html .= '<td class=\"key\" valign=\"top\" align=\"right\">';\n\t\t\t\t\t\t\t\t$html .= JText::_( 'Access Level' ).': ';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t$html .= JHTML::_('list.accesslevel', $this->menuItem );\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\tif ($this->menuItem->type != \"menulink\")\n\t\t\t\t\t\t{\n\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t$html .= '<td class=\"key\" valign=\"top\" align=\"right\">';\n\t\t\t\t\t\t\t\t$html .= JText::_( 'On Click, Open in' ).': ';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= MenusHelper::Target( $this->menuItem );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('browserNav');\n\t\t\t\t\t\t\t\t\t/*<li><?php echo $this->form->getLabel('browserNav'); ?>\n\t\t\t\t\t\t\t\t\t<?php echo\n\t\t\t\t\t\t\t\t\t$this->form->getInput('browserNav');\n\t\t\t\t\t\t\t\t\t ?></li>\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t$html .= '<td colspan=\"2\" style=\"line-height: 3px; height: 3px;\">&nbsp;';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\n\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t$html .= '<td valign=\"top\">';\n\t\t\t\t\t\t\t\t$html .= '<label>';\n\t\t\t\t\t\t\t\t\t$html .= '<span class=\"editlinktip hasTip\" title=\"'.JText::_('COM_PAGESANDITEMS_MENUTYPE_TIP').'\" >';\n\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_PAGESANDITEMS_MENUTYPE');\n\t\t\t\t\t\t\t\t\t$html .= '</span>';\n\t\t\t\t\t\t\t\t$html .= '</label>';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t//only display the menutype == $menu_item_description;\n\t\t\t\t\t\t\t\t$html .= $buttonLinkMenutype;\n\t\t\t\t\t\t\t\t//$html .= '<br>';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t$html .= '<!-- Menu Item Parameters Section-->';\n\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t$html .= '<!-- Menu Item Parameters Section blank column-->';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t$html .= '<td >';\n\t\t\t\t\t\t\t\t$html .= '<!-- Menu Item Parameters Section content-->';\n\t\t\t\t\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tjimport('joomla.html.pane');\n\t\t\t\t\t\t\t\t$pane = &JPane::getInstance('sliders', array('allowAllClose' => true));\n\t\t\t\t\t\t\t\t$html .= $pane->startPane(\"menu-pane\");\n\t\t\t\t\t\t\t\t$html .= '<div '.$this->lists->display->params.' >';\n\t\t\t\t\t\t\t\t\t$html .= $pane->startPanel(JText :: _('Parameters - Basic'), \"param-page\");\n\t\t\t\t\t\t\t\t\t$html .= $menu_item_urlparams->render('urlparams');\n\t\t\t\t\t\t\t\t\tif(count($menu_item_params->getParams('params')))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$html .= $menu_item_params->render('params');\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif(!count($menu_item_params->getNumParams('params')) && !count($menu_item_urlparams->getNumParams('urlparams')))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$html .= '<div style=\"text-align: center; padding: 5px; \">';\n\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('There are no parameters for this item');\n\t\t\t\t\t\t\t\t\t\t$html .= '</div>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$html .= $pane->endPanel();\n\n\t\t\t\t\t\t\t\t$html .= '</div>';\n\t\t\t\t\t\t\t\tif($params = $menu_item_advancedparams->render('params'))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= $pane->startPanel(JText :: _('Parameters - Advanced'), \"advanced-page\");\n\t\t\t\t\t\t\t\t\t$html .= $params;\n\t\t\t\t\t\t\t\t\t$html .= $pane->endPanel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ($menu_item_componentparams && ($params = $menu_item_componentparams->render('params')))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= $pane->startPanel(JText :: _('Parameters - Component'), \"component-page\");\n\t\t\t\t\t\t\t\t\t$html .= $params;\n\t\t\t\t\t\t\t\t\t$html .= $pane->endPanel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ($menu_item_systemparams && ($params = $menu_item_systemparams->render('params')))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= $pane->startPanel(JText :: _('Parameters - System'), \"system-page\");\n\t\t\t\t\t\t\t\t\t$html .= $params;\n\t\t\t\t\t\t\t\t\t$html .= $pane->endPanel();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$html .= $pane->endPane();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= '<div class=\"width-100 fltlft\">';\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.start','menu-sliders-'.$this->menuItem->id);\n\n\t\t\t\t\t\t\t\t\t\t\t//$html .= $this->loadTemplate('options');\n\t\t\t\t\t\t\t\t\t\t\t$fieldSets = $this->form->getFieldsets('request');\n\t\t\t\t\t\t\t\t\t\t\tif (!empty($fieldSets))\n\t\t\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t\t\t$fieldSet = array_shift($fieldSets);\n\t\t\t\t\t\t\t\t\t\t\t\t$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$fieldSet->name.'_FIELDSET_LABEL';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_($label), 'request-options');\n\t\t\t\t\t\t\t\t\t\t\t\tif (isset($fieldSet->description) && trim($fieldSet->description)) :\n\t\t\t\t\t\t\t\t\t\t\t\t\t//$html .= '<p class=\"tip\">'.$this->escape(JText::_($fieldSet->description)).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<p class=\"tip\">'.JText::_($fieldSet->description).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset class=\"panelform\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$hidden_fields = '';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ($this->form->getFieldset('request') as $field)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!$field->hidden)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$hidden_fields.= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</ul>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $hidden_fields;;\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$fieldSets = $this->form->getFieldsets('params');\n\t\t\t\t\t\t\t\t\t\t\tforeach ($fieldSets as $name => $fieldSet)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$name.'_FIELDSET_LABEL';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_($label), $name.'-options');\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (isset($fieldSet->description) && trim($fieldSet->description))\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$html .= '<p class=\"tip\">'.$this->escape(JText::_($fieldSet->description)).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<p class=\"tip\">'.JText::_($fieldSet->description).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset class=\"panelform\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ($this->form->getFieldset($name) as $field)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</ul>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<div class=\"clr\"></div>';\n\t\t\t\t\t\t\t\t\t\t\tif (!empty($this->modules))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_('COM_MENUS_ITEM_MODULE_ASSIGNMENT'), 'module-options');\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<table class=\"adminlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<thead>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<th class=\"left\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_HEADING_ASSIGN_MODULE');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_HEADING_DISPLAY');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</thead>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tbody>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ($this->modules as $i => &$module)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr class=\"row<?php echo $i % 2;?>\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$link = 'index.php?option=com_modules&amp;client_id=0&amp;task=module.edit&amp;id='. $module->id.'&amp;tmpl=component&amp;view=module&amp;layout=modal' ;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<a class=\"modal\" href=\"'. $link.'\" rel=\"{handler: \\'iframe\\', size: {x: 900, y: 550}}\" title=\"'.JText::_('COM_MENUS_EDIT_MODULE_SETTINGS').'\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $this->view->escape($module->title), $this->view->escape($module->access_title), $this->view->escape($module->position));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$html .= JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $module->title, $module->access_title, $module->position);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .='</a>';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td class=\"center\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (is_null($module->menuid))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('JNONE');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telseif ($module->menuid != 0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_MODULE_SHOW_VARIES');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('JALL');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tbody>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</table>';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$html .= $this->loadTemplate('modules');\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.end');\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"task\" value=\"\" />';\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('component_id');\n\t\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('form.token');\n\t\t\t\t\t\t\t\t\t$html .= '</div>';\n\t\t\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" id=\"fieldtype\" name=\"fieldtype\" value=\"\" />';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$html .= '<!-- END Menu Item Parameters Section-->';\n\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t$html .= $this->lists->add->bottom;\n\t\t\t\t\t\t$html .= $this->menuItem->linkfield;\n\t\t\t\t\t\t//replace with\n\t\t\t\t\t\t$html .= $this->lists->pageType->html;\n\t\t\t\t\t\t//echo $this->lists->pageTypeClass->html;\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"id\" value=\"'.$this->menuItem->id.'\" />';\n\t\t\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"componentid\" value=\"'.$this->menuItem->componentid.'\" />';\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$html .= '<input type=\"hidden\" name=\"component_id\" value=\"'.$this->menuItem->component_id.'\" />';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"type\" value=\"'.$this->menuItem->type.'\" />';\n\t\t\t\t\t$html .= '</table>';\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//J1.6\n\t\t\t\t\t\t//$html .='<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"paramlist\" width=\"98%\"'.$this->lists->hideAll.' >';\n\n\t\t\t\t\t\t//$html .= $this->lists->add->top;\n\t\t\t\t\t\tJHtml::_('behavior.tooltip');\n\t\t\t\t\t\tJHtml::_('behavior.formvalidation');\n\t\t\t\t\t\tJHTML::_('behavior.modal');\n\n\t\t\t\t\t\t//ms: need?\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t$html .='<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"paramlist\" width=\"98%\" >';\n\t\t\t\t\t\t\t$html .= $this->lists->add->top;\n\t\t\t\t\t\t$html .= '</table>';\n\t\t\t\t\t\t*/\n\n\t\t\t\t\t\t$html .='<!-- $this->lists->display-> -->';\n\t\t\t\t\t\t$html .='<div class=\"width-60 fltlft\">';\n\t\t\t\t\t\t\t$html .='<fieldset class=\"adminform\">';\n\t\t\t\t\t\t\t\t$html .='<legend>'.JText::_('COM_MENUS_ITEM_DETAILS').'</legend>';\n\n\t\t\t\t\t\t\t\t\t$html .='<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t//do not display when new\n\t\t\t\t\t\t\t\t\t\t//echo '$this->menuItem->id'.$this->menuItem->id;\n\t\t\t\t\t\t\t\t\t\tif($this->menuItem->id){\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li '.$this->lists->display->id.'>'.$this->form->getLabel('id');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('id').'</li>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//$this->form->setFieldAttribute('link','readonly','false');\n\t\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('type', 'type', 'pimenutype');\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('type');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('type').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('title');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('title').'</li>';\n\n\t\t\t\t\t\t\t\t\t\tif ($this->menuItem->type =='url'):\n\t\t\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('link','readonly','false');\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('link');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('link').'</li>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('alias');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('alias').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('note');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('note').'</li>';\n\n\t\t\t\t\t\t\t\t\t\tif ($this->menuItem->type !=='url'):\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('link');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('link').'</li>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t//JGLOBAL_STATE will not load. Would like to change this to JSTATUS\n\t\t\t\t\t\t\t\t\t\t//but in jfroms this seems not possible\n\t\t\t\t\t\t\t\t\t\t//replacement in system plugin or\n\t\t\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\t\tCOMMENT ms: this is fixed\n\t\t\t\t\t\t\t\t\t\ti have add in views/page.view.html.php\n\t\t\t\t\t\t\t\t\t\tJForm::addFormPath(JPATH_ADMINISTRATOR.DS.'components'.DS.'com_menus'.DS.'models'.DS.'forms');\n\t\t\t\t\t\t\t\t\t\tso the corect xml is loaded\n\n\t\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('published', 'label', JText::_('JSTATUS'));\n\t\t\t\t\t\t\t\t\t\t */\n\n\n\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('published');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('published').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('access');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('access').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('menutype');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('menutype').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('parent_id');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('parent_id').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('browserNav');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('browserNav').'</li>';\n\n\t\t\t\t\t\t\t\t\t\tif ($this->menuItem->type == 'component') :\n\t\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('home');\n\t\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('home').'</li>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('language');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('language').'</li>';\n\n\t\t\t\t\t\t\t\t\t\t$html .='<li>'.$this->form->getLabel('template_style_id');\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('template_style_id').'</li>';\n\n\t\t\t\t\t\t\t\t$html .='</ul>';\n\t\t\t\t\t\t\t$html .='</fieldset>';\n\t\t\t\t\t\t$html .='</div>';\n\n\t\t\t\t\t\t$html .= '<!-- Menu Item Parameters Section content-->';\n\t\t\t\t\t\t$html .= '<div class=\"width-40 fltrt\">'; //width-100 fltlft\">';\n\t\t\t\t\t\t\t$html .= JHtml::_('sliders.start','menu-sliders-'.$this->menuItem->id);\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\tms:\n\t\t\t\t\t\t\t\t\tcheck here for pagetype == 'content_article'\n\t\t\t\t\t\t\t\t\tso we must not add an article here\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\tif($this->pageType == 'content_article')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('id', 'required', false,'request');\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\tms:\n\t\t\t\t\t\t\t\t\tcheck here for pagetype == 'content_category_blog' and sub_tak == 'new'\n\t\t\t\t\t\t\t\t\tso we can make an new category\n\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\tif(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new')\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('id', 'required', false,'request');\n\n\t\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\t//$element = new JXMLElement\n\t\t\t\t\t\t\t\t\t$element = new JXMLElement('<field ></field>');\n\t\t\t\t\t\t\t\t\t<field name=\"id\" type=\"radio\"\n\t\t\t\tdescription=\"JGLOBAL_CHOOSE_CATEGORY_DESC\"\n\t\t\t\textension=\"com_content\"\n\t\t\t\tlabel=\"JGLOBAL_CHOOSE_CATEGORY_LABEL\"\n\t\t\t\trequired=\"true\"\n\t\t\t/>\n\n\n\t\t\t\t\t\t\t\t\t$this->form->setField($element, 'request')\n\t\t\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t\t//$html .= $this->loadTemplate('options');\n\t\t\t\t\t\t\t\tif(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new' )\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$this->form->setFieldAttribute('id', 'type', 'Picategory','request');\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$fieldSets = $this->form->getFieldsets('request');\n\t\t\t\t\t\t\t\tif (!empty($fieldSets))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$fieldSet = array_shift($fieldSets);\n\t\t\t\t\t\t\t\t\t$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$fieldSet->name.'_FIELDSET_LABEL';\n\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_($label), 'request-options');\n\t\t\t\t\t\t\t\t\t\tif (isset($fieldSet->description) && trim($fieldSet->description)) :\n\t\t\t\t\t\t\t\t\t\t\t//$html .= '<p class=\"tip\">'.$this->escape(JText::_($fieldSet->description)).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<p class=\"tip\">'.JText::_($fieldSet->description).'</p>';\n\t\t\t\t\t\t\t\t\t\tendif;\n\n\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset class=\"panelform\">';\n\t\t\t\t\t\t\t\t\t\t\t$hidden_fields = '';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tforeach ($this->form->getFieldset('request') as $field)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (!$field->hidden)\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\t\tif(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new' && strtolower($field->type) == 'picategory')\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if(($this->pageType == 'content_category_blog' || $this->pageType == 'content_category' || $this->pageType == 'content_categories') && $sub_task == 'new' && strtolower($field->type) == 'category')\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<table>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<input type=\"radio\" name=\"create_new_category\" value=\"0\" id=\"create_new_category_0\" />';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//the checked part will be configurable in the pagetype config\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<input type=\"radio\" name=\"create_new_category\" value=\"1\" id=\"create_new_category_1\" checked=\"checked\" />';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td colspan=\"2\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<label class=\"hasTip\" for=\"create_new_category_1\" title=\"';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '::';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY_TIP');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_PAGESANDITEMS_CREATE_NEW_CATEGORY');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</label>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</table>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t*/\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\telse\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\t\t$hidden_fields.= $field->input;\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}\n\t\t\t\t\t\t\t\t\t\t\t$html .= '</ul>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= $hidden_fields;\n\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t$fieldSets = $this->form->getFieldsets('params');\n\t\t\t\t\t\t\t\t\tforeach ($fieldSets as $name => $fieldSet)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$label = !empty($fieldSet->label) ? $fieldSet->label : 'COM_MENUS_'.$name.'_FIELDSET_LABEL';\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_($label), $name.'-options');\n\t\t\t\t\t\t\t\t\t\t\tif (isset($fieldSet->description) && trim($fieldSet->description))\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t//$html .= '<p class=\"tip\">'.$this->escape(JText::_($fieldSet->description)).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<p class=\"tip\">'.JText::_($fieldSet->description).'</p>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset class=\"panelform\">';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<ul class=\"adminformlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\tforeach ($this->form->getFieldset($name) as $field)\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\t\t$html .= '<li>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->label;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= $field->input;\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</li>';\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\t$html .= '</ul>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$html .= '<div class=\"clr\"></div>';\n\t\t\t\t\t\t\t\t\tif (!empty($this->modules))\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.panel',JText::_('COM_MENUS_ITEM_MODULE_ASSIGNMENT'), 'module-options');\n\t\t\t\t\t\t\t\t\t\t\t$html .= '<fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<table class=\"adminlist\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<thead>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<th class=\"left\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_HEADING_ASSIGN_MODULE');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_HEADING_DISPLAY');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</th>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</thead>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tbody>';\n\t\t\t\t\t\t\t\t\t\t\t\t\tforeach ($this->modules as $i => &$module)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<tr class=\"row<?php echo $i % 2;?>\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$link = 'index.php?option=com_modules&amp;client_id=0&amp;task=module.edit&amp;id='. $module->id.'&amp;tmpl=component&amp;view=module&amp;layout=modal' ;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<a class=\"modal\" href=\"'. $link.'\" rel=\"{handler: \\'iframe\\', size: {x: 900, y: 550}}\" title=\"'.JText::_('COM_MENUS_EDIT_MODULE_SETTINGS').'\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//$html .= JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $this->escape($module->title), $this->escape($module->access_title), $this->escape($module->position));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::sprintf('COM_MENUS_MODULE_ACCESS_POSITION', $module->title, $module->access_title, $module->position);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .='</a>';\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '<td class=\"center\">';\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (is_null($module->menuid))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('JNONE');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telseif ($module->menuid != 0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('COM_MENUS_MODULE_SHOW_VARIES');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= JText::_('JALL');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</td>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tr>';\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</tbody>';\n\t\t\t\t\t\t\t\t\t\t\t\t$html .= '</table>';\n\t\t\t\t\t\t\t\t\t\t\t$html .= '</fieldset>';\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('sliders.end');\n\t\t\t\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"task\" value=\"\" />';\n\t\t\t\t\t\t\t\t\t\t$html .= $this->form->getInput('component_id');\n\t\t\t\t\t\t\t\t\t\t$html .= JHtml::_('form.token');\n\t\t\t\t\t\t\t\t\t$html .= '</div>';\n\t\t\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" id=\"fieldtype\" name=\"fieldtype\" value=\"\" />';\n\t\t\t\t\t\t\t\t$html .= '<!-- END Menu Item Parameters Section-->';\n\t\t\t\t\t\t//\t$html .= '</td>';\n\t\t\t\t\t\t//$html .= '</tr>';\n\t\t\t\t\t\t\t\t$html .= '<!-- Manager Section-->';\n\t\t\t\t\t\t\t\t$pageId = JRequest::getVar('pageId', null);\n\t\t\t\t\t\t\t\t//if($pageId)\n\t\t\t\t\t\t\t\t//{\n\t\t\t\t\t\t\t\t\t$new_or_edit = (JRequest::getVar('sub_task','edit') == 'new') ? 0 : 1;\n\t\t\t\t\t\t\t\t\t$managerOtherItemEdit = new JObject();\n\t\t\t\t\t\t\t\t\t$managerOtherItemEdit->text = '';\n\n\t\t\t\t\t\t\t\t\t$params = null;\n\t\t\t\t\t\t\t\t\t$dispatcher = &JDispatcher::getInstance();\n\t\t\t\t\t\t\t\t\t//$dispatcher->trigger('onGetParams',array(&$params, $item_type));\n\t\t\t\t\t\t\t\t\t$path = JPATH_COMPONENT_ADMINISTRATOR;//realpath(dirname(__FILE__).DS.'..'.DS.'..'.DS.'..');\n\t\t\t\t\t\t\t\t\trequire_once($path.DS.'includes'.DS.'extensions'.DS.'managerhelper.php');\n\t\t\t\t\t\t\t\t\t$extensions = ExtensionManagerHelper::importExtension(null,null, true,null,true);\n\t\t\t\t\t\t\t\t\t$dispatcher->trigger('onManagerOtherItemEdit', array (&$managerOtherItemEdit,'menu',$pageId,$params,$new_or_edit));\n\t\t\t\t\t\t\t\t\tif($managerOtherItemEdit->text != '')\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t$html .= '<div class=\"width-100 fltrt\">'; //width-100 fltlft\">';\n\t\t\t\t\t\t\t\t\t\t$html .= $managerOtherItemEdit->text;\n\t\t\t\t\t\t\t\t\t$html .= '</div>';\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//}\n\n\n\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$html .='<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"paramlist\" width=\"98%\" >';\n\t\t\t\t\t\t$html .= $this->lists->add->bottom;\n\t\t\t\t\t\t$html .= '</table>';\n\n\t\t\t\t\t\t$html .= $this->menuItem->linkfield;\n\t\t\t\t\t\t//replace with\n\t\t\t\t\t\t$html .= $this->lists->pageType->html;\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"id\" value=\"'.$this->menuItem->id.'\" />';\n\t\t\t\t\t\tif(PagesAndItemsHelper::getIsJoomlaVersion('<','1.6'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"componentid\" value=\"'.$this->menuItem->componentid.'\" />';\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$html .= '<input type=\"hidden\" name=\"component_id\" value=\"'.$this->menuItem->component_id.'\" />';\n\n\t\t\t\t\t\t\t$html .= $this->form->getInput('component_id');\n\t\t\t\t\t\t\t$html .= JHtml::_('form.token');\n\t\t\t\t\t\t\t$html .= '<input type=\"hidden\" id=\"fieldtype\" name=\"fieldtype\" value=\"\" />';\n\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//$html .= '<input type=\"hidden\" id=\"pageType\" name=\"pageType\" value=\"'.$this->pageType.'\" />';\n\t\t\t\t\t\t$html .= '<input type=\"hidden\" name=\"type\" value=\"'.$this->menuItem->type.'\" />';\n\t\t\t\t\t//$html .= '</table>';\n\t\t\t\t\t\n\t\t\t\t\t//end J1.6\n\t\t\t\t\t}\n\t\t\t\t$html .= '</td>';\n\t\t\t$html .= '</tr>';\n\t\t\t$html .= '</tbody>';\n\t\t$html .= '</table>';\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "4317e6c2b3a8a39812a3391468332642", "score": "0.56795794", "text": "function get_form_data() {\n\n\n $title = db_get_single_value(\"SELECT title FROM content WHERE id =\" . $_GET['parent_id'] , 'title');\n\n // $this->list_top_text = $title;\n $this->list_top_text = '<h3>Associated with `' . $title . '` &nbsp; '\n . \"<a href='../../../admin/content_admin.php' >Back to Content List</a></h3>\";\n\n parent::get_form_data();\n\n }", "title": "" }, { "docid": "db371fbab0f1436bb414cbfccd5ef134", "score": "0.56774795", "text": "public function getForm();", "title": "" }, { "docid": "36a3cd337a28e856860c35ec7ef4fb6e", "score": "0.5672956", "text": "function guestsList()\n {\n\n $content = '';\n for ($i = 1; $i <= 25; $i++)\n {\n if ($i == $ref_id)\n {\n $sel = 'selected=\"selected\"';\n } else\n {\n $sel = '';\n }\n\n $content .= \"<option value=\" . $i . \" \" . $sel . \">\" . $i . \"</option>\\n\";\n }\n return $content;\n }", "title": "" }, { "docid": "35d4d414ecf853d7cba9f8e3aae9767f", "score": "0.566057", "text": "function nggpano_get_field_list($ngg_type, $gid=null) {\n\t\t\tglobal $wpdb;\n\t\t\t\n\t\t\tif($gid) {\n\t\t\t\t$qry = \"SELECT field.* FROM \".$wpdb->prefix.\"nggpano_fields_link AS link LEFT JOIN \".$wpdb->prefix.\"nggpano_fields AS field ON link.field_id = field.id WHERE field.ngg_type = \".$wpdb->escape($ngg_type).\" AND link.gid = '\".$wpdb->escape($gid).\"'\";\n\t\t\t}else{\n\t\t\t\t$qry = \"SELECT * FROM \".$wpdb->prefix.\"nggpano_fields WHERE ngg_type = \".$wpdb->escape($ngg_type);\n\t\t\t}\n\t\t\t$fields = $wpdb->get_results($qry);\n\t\t\treturn $fields;\n\t\t}", "title": "" }, { "docid": "59a1eb8a49680dcf17e54fcf77df8a15", "score": "0.56542", "text": "function get_spalten_namen()\n\t{\n\t\t$meta_id = $this->meta_gruppe;\n\n\t\tif (!defined(\"admin\")) {\n\t\t\tif (is_numeric($this->checked->extern_meta)) $meta_id = $this->checked->extern_meta;\n\t\t}\n\t\t// Feldname, Feldid und Feldtyp aus der Datenbank holen\n\t\t$sql = sprintf(\"SELECT *\n\t FROM %s\n\t WHERE mvcform_meta_id = '%d'\n\t AND mvcform_form_id = '%d'\n\t AND mvcform_aktiv = 1\",\n\n\t\t\t$this->cms->tbname['papoo_mvcform'],\n\n\t\t\t$this->db->escape($meta_id),\n\t\t\t$this->db->escape($this->checked->mv_id)\n\t\t);\n\t\treturn $this->db->get_results($sql, ARRAY_A);\n\t}", "title": "" }, { "docid": "9d2be1b89176d9e32702d6fc4f6bf0d0", "score": "0.5641199", "text": "function edit_screen_fields($bp){ \n $this->edit_screen_head('fields');\n\n $fields = $this->get_all_items('fields', $bp->groups->current_group->id);\n $def_set_fields = bp_get_option('bpge_def_fields');\n\n if(empty($fields)){\n $this->notices('no_fields');\n if(!empty($def_set_fields)){\n echo '<div id=\"box_import_set_fields\">\n <select name=\"import_def_set_fields\">';\n foreach($def_set_fields as $key => $set_fields_name){\n echo '<option value=\"' . $key . '\" desc=\"' . htmlspecialchars($set_fields_name['desc']) . '\" >' . $set_fields_name['name'] . '</option>';\n } \n echo '</select>\n <div class=\"import_desc\"></div>\n <span class=\"items-link\">\n <a class=\"button import_set_fields\" href=\"#\">Import</a>\n </span>\n <input id=\"approve_import\" type=\"hidden\" name=\"approve_import\" value=\"\" />\n </div>';\n }\n return false;\n }\n if(!empty($def_set_fields)){\n echo '<div id=\"box_import_set_fields\">\n <select name=\"import_def_set_fields\">';\n foreach($def_set_fields as $key => $set_fields_name){\n echo '<option value=\"' . $key . '\" desc=\"' . htmlspecialchars($set_fields_name['desc']) . '\" >' . $set_fields_name['name'] . '</option>';\n } \n echo '</select>\n <div class=\"import_desc\"></div>\n <span class=\"items-link\">\n <a class=\"button import_set_fields\" href=\"#\">Import</a>\n </span>\n <input id=\"approve_import\" type=\"hidden\" name=\"approve_import\" value=\"\" />\n </div>';\n }\n echo '<ul id=\"fields-sortable\">';\n foreach($fields as $field){\n echo '<li id=\"position_'.str_replace('_', '', $field->slug).'\" class=\"default\">\n <strong title=\"' . $field->desc . '\">' . $field->title .'</strong> &rarr; ' . $field->type . ' &rarr; ' . (($field->display == 1)?__('displayed','bpge'):__('<u>not</u> displayed','bpge')) . '\n <span class=\"items-link\">\n <a href=\"' . bp_get_group_permalink( $bp->groups->current_group ) . 'admin/'.$this->slug . '/fields-manage/?edit=' . $field->slug . '\" class=\"button\" title=\"'.__('Change its title, description etc','bpge').'\">'.__('Edit field', 'bpge').'</a>&nbsp;\n <a href=\"#\" class=\"button delete_field\" title=\"'.__('Delete this item and all its content', 'bpge').'\">'.__('Delete', 'bpge').'</a>\n </span>\n </li>';\n }\n echo '</ul>';\n }", "title": "" }, { "docid": "b60fa7f9f6963ab192b16202d8b2eb02", "score": "0.56232107", "text": "public function browse()\n {\n require_code('templates_donext');\n return do_next_manager(get_screen_title('MANAGE_CLUBS'), comcode_lang_string('DOC_CLUBS'),\n array(\n array('menu/_generic_admin/add_one', array('_SELF', array('type' => 'add'), '_SELF'), do_lang('ADD_CLUB')),\n array('menu/_generic_admin/edit_one', array('_SELF', array('type' => 'edit'), '_SELF'), do_lang('EDIT_CLUB')),\n ),\n do_lang('MANAGE_CLUBS')\n );\n }", "title": "" }, { "docid": "cc6f7ae0235e691fddcaa4ebbaf54d09", "score": "0.5617054", "text": "public function browse()\n {\n require_code('templates_donext');\n return do_next_manager(get_screen_title('COMMUNITY_BILLBOARD'), comcode_lang_string('DOC_COMMUNITY_BILLBOARD'),\n array(\n array('menu/_generic_admin/add_one', array('_SELF', array('type' => 'add'), '_SELF'), do_lang('ADD_COMMUNITY_BILLBOARD')),\n array('menu/_generic_admin/edit_one', array('_SELF', array('type' => 'edit'), '_SELF'), do_lang('EDIT_COMMUNITY_BILLBOARD')),\n ),\n do_lang('COMMUNITY_BILLBOARD')\n );\n }", "title": "" }, { "docid": "147b3e1c4e29aff3fa42261a6b09e9a2", "score": "0.56156087", "text": "function chargeForm($form,$label,$titre,$indice)\n \t{\n\n \t\t//$liste = $this->getAll();\n \t\t$liste = $this->getAllInSitu();\n \t\t \t\t \t\t\n \t\t$array[0] = \"\";\n \t\tfor ($i = 0; $i < count($liste); $i++)\n \t{\n \t\t$j = $liste[$i]->place_id;\n \t\t$array[$j] = $liste[$i]->place_name;\n \t\t//echo 'array['.$j.'] = '.$array[$j].'<br>';\n \t}\n \t\n \tif (isset($indice)){\n \t\t$boxesNames = \"['new_place_\".$indice.\"','place_alt_min_\".$indice.\"','west_bound_\".$indice.\"','east_bound_\".$indice.\"','north_bound_\".$indice.\"','south_bound_\".$indice.\"','place_alt_max_\".$indice.\"','gcmd_plat_key_\".$indice.\"']\";\n \t\t$columnsNames = \"['place_name','place_elevation_min','west_bounding_coord','east_bounding_coord','north_bounding_coord','south_bounding_coord','place_elevation_max','gcmd_plat_id']\";\n \t}else{\n \t\t$boxesNames = \"['new_place','place_alt_min','west_bound','east_bound','north_bound','south_bound','place_alt_max','gcmd_plat_key']\";\n \t\t$columnsNames = \"['place_name','place_elevation_min','west_bounding_coord','east_bounding_coord','north_bounding_coord','south_bounding_coord','place_elevation_max','gcmd_plat_id']\";\n \t}\n \t$s = & $form->createElement('select',$label,$titre,$array,array('onchange' => \"fillBoxes('\".$label.\"',\".$boxesNames.\",'place',\".$columnsNames.\");\",'style' => 'width: 200px;'));\n \n \t/*\n \t\t$s = & $form->createElement('select',$label,$titre);\n \t\t$s->loadArray($array);*/\n \t\treturn $s;\n \t}", "title": "" }, { "docid": "e365d6660d91f1d23d5882d0f8844ce6", "score": "0.56135", "text": "function create_new_listing_create_listing_form($form, &$form_state, $account, $license, $usage) {\r\n\r\n $form['#user'] = $account;\r\n $form['#limit'] = 0;\r\n\r\n if ($license == 'admin access') {\r\n $form['#limit'] = -1; // skip limit checking for user with privilege\r\n $form['info'] = array(\r\n '#type' => 'item',\r\n '#markup' => t('You are creating listing for user: <b>'.$account->name.'</b>'),\r\n );\r\n } else {\r\n $limit = $license->commerce_license_limit['und'][0]['value'];\r\n $form['#limit'] = $limit;\r\n if ($limit < 0) {\r\n $limit = t('Unlimited');\r\n }\r\n $form['info'] = array(\r\n '#type' => 'item',\r\n '#markup' => t('User name: <b>'.$account->name.'</b><br/>Current usage: <b>'.$usage.' Listing(s)</b><br/>Listing Limit: <b>'.$limit.'</b>'),\r\n );\r\n }\r\n\r\n $form['#parents'] = array(); // a required element to use 'field_default_form' function below.\r\n $form['title'] = array(\r\n '#type' => 'textfield',\r\n '#title' => t('Listing Title'),\r\n '#required' => TRUE,\r\n );\r\n\r\n foreach (field_info_instances('node', 'listing') as $field_name => $value) {\r\n\r\n if ($field_name == 'field_status') // hide status field\r\n continue;\r\n\r\n $field = field_info_field($field_name);\r\n $instance = field_info_instance('node', $field_name, 'listing');\r\n $items = array();\r\n\r\n $form[$field_name] = field_default_form('node', NULL, $field, $instance, LANGUAGE_NONE, $items, $form, $form_state);\r\n }\r\n\r\n $form += array (\r\n 'publishoption' => array(\r\n '#type' => 'select',\r\n '#options' => array(\r\n 'Save Draft',\r\n 'Publish',\r\n ),\r\n '#title' => 'Publish Option',\r\n ),\r\n 'submit' => array(\r\n '#type' => 'submit',\r\n '#value' => t('Save')\r\n ),\r\n 'cancel' => array(\r\n\t\t '#type' => 'button',\r\n\t\t '#value' => t('Cancel'),\r\n\t\t '#attributes' => array(\r\n\t\t\t 'onClick' => 'history.go(-1); event.preventDefault();'\r\n\t\t ),\r\n ),\r\n );\r\n\r\n return $form;\r\n\r\n}", "title": "" }, { "docid": "7daf2302f0197559daf85dbb364094e2", "score": "0.5610849", "text": "function listGroups($grps=\"-1\") {\nglobal $xoopsDB, $myts;\n\n$result = $xoopsDB->queryF(\"SELECT groupid, name FROM \".$xoopsDB->prefix('groups').\" ORDER BY name DESC\");\n\t\n\tif (!is_array($grps)) {\n\t\t$grps = explode(\" \", $grps);\n\t}\n\n$grouplist = \"<select name='groupid[]' size='5' multiple='multiple'>\";\n\t\n\twhile (list($groupid, $name) = $xoopsDB->fetchRow($result)) {\n\t\t$grouplist .= \"<option value='$groupid'\";\n\t\n\t\tif (@in_array($groupid , $grps) || @in_array(\"-1\", $grps)) {\n\t\t\t$grouplist .= \" selected='selected'\";\n\t\t}\n\n\t\t$grouplist .= \" />\".$myts->makeTboxData4Show($name).\"</option>\";\n\t}\n$grouplist .= \"</select>\";\necho $grouplist;\n}", "title": "" }, { "docid": "6bc6d65da574f7971bbeb0c09cb45f01", "score": "0.5610413", "text": "public function rebuild() {\n\n if (!$this->Access->check('Debug')) {\n $this->redirect($this->referer());\n return;\n }\n\n $this->Permissions->dumpAll();\n $this->Permissions->initAll();\n $this->Permissions->syncAll();\n\n $this->view('list.inc');\n }", "title": "" }, { "docid": "2846ba6e6dac0574ebba10e61ad44e40", "score": "0.5608887", "text": "function recsys_wb_select_project_form() {\n $nid = 0;\n $title = \"No title\";\n if ($node = menu_get_object()) {\n $nid = $node->nid;\n $title = $node->title;\n }\n $form['select_project_members'] = array(\n '#title' => \"Group members (comma separated):\",\n '#description' => \"Format: Name Lastname (E-Mail adderess)\",\n '#type' => 'textfield',\n '#required' => TRUE,\n '#size' => 25,\n );\n $form['select_project_group'] = array(\n '#title' => \"Group ID:\",\n '#description' => \"Your group number\",\n '#type' => 'textfield',\n '#required' => TRUE,\n '#element_validate' => array('_validate_numeric'),\n '#size' => 5,\n );\n $form['select_project_project_id'] = array(\n '#title' => t('ID'),\n '#value' => $nid,\n '#type' => 'hidden',\n );\n $form['select_project_project_title'] = array(\n '#title' => t('Title'),\n '#value' => $title,\n '#type' => 'hidden',\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Submit'),\n );\n return $form;\n}", "title": "" }, { "docid": "08fde490a31869667442777579334703", "score": "0.5605843", "text": "abstract public static function get_settings_field_list();", "title": "" }, { "docid": "96d0e6771870491e9ed39804e663c85f", "score": "0.5602454", "text": "protected function actionList() {\n $strReturn = \"\";\n\n $this->setParam(\"formaction\", getLinkPortalHref($this->getParam(\"page\"), \"\", \"sendForm\"));\n $arrParams = $this->getAllParams();\n foreach($arrParams as $strKey => $strValue) {\n $arrParams[$strKey] = htmlspecialchars($strValue, ENT_QUOTES, \"UTF-8\", false);\n }\n\n //any errors to print?\n if(count($this->arrError) > 0) {\n $strError = \"\";\n //Collect errors\n $strTemplateErrorID = $this->objTemplate->readTemplate(\"/element_form/\" . $this->arrElementData[\"formular_template\"], \"errorrow\");\n foreach($this->arrError as $strOneError) {\n $strError .= $this->fillTemplate(array(\"error\" => $strOneError), $strTemplateErrorID);\n }\n //and the complete form\n $strTemplateErrorFormid = $this->objTemplate->readTemplate(\"/element_form/\" . $this->arrElementData[\"formular_template\"], \"errors\");\n $arrParams[\"formular_fehler\"] = $this->fillTemplate(array(\"liste_fehler\" => $strError), $strTemplateErrorFormid);\n }\n //and the form itself\n $strTemplateformId = $this->objTemplate->readTemplate(\"/element_form/\" . $this->arrElementData[\"formular_template\"], \"contactform\");\n //get actions\n\n $strReturn .= $this->fillTemplate($arrParams, $strTemplateformId);\n return $strReturn;\n }", "title": "" }, { "docid": "a4e006fb853bb19a915b5ae5e2cfa99b", "score": "0.5584924", "text": "abstract public function getGroupList();", "title": "" }, { "docid": "2f33b91b76244c08de075b181ab00145", "score": "0.55759835", "text": "public function getGruposController()\n\t{\n\t\t$todasCategorias = Datos::getGruposModel(\"grupos\");\n\t\t\n\t\tforeach($todasCategorias as $row => $item)\n\t\t{\n\t\techo '\n\t\t\t\t<option value=\"'.$item[\"nombre\"].'\"> '.\n\t\t\t\t\t$item[\"nombre\"].'\n\t\t\t\t</option> \n\t\t\t';\n\t\t}\n\t}", "title": "" }, { "docid": "10bf8162b7cf91373bbbb6bf0fd773bc", "score": "0.55699396", "text": "private function GalleriesList()\n\t{\tob_start();\n\t\tif ($galleries = $this->GetGalleries())\n\t\t{\techo '<ul class=\"coursemmList\">';\n\t\t\tforeach ($galleries as $gid=>$gallery_row)\n\t\t\t{\techo '<li class=\"mmitem_', $gid, '\"><a onclick=\"GalleryAdd(', $this->page->id, ',', $gid, ');\">', $this->InputSafeString($gallery_row['title']), '</a></li>';\n\t\t\t}\n\t\t\techo '<ul>';\n\t\t//\t$this->VarDump($galleries);\n\t\t} else\n\t\t{\techo 'no galleries available';\n\t\t}\n\t\treturn ob_get_clean();\n\t}", "title": "" }, { "docid": "3f8c6c67bb1371ea30dcf26bf11a53ae", "score": "0.55682755", "text": "public function hook_register_show_form(){return;}", "title": "" }, { "docid": "236d1fff0bc69e5cbb3eee9afdb03707", "score": "0.5545852", "text": "public function verGruposAController(){\n\t\t$respuesta = Datos::vistaGrupoModel();\n\t\tif($respuesta){\n\t\t\techo '<option value=\"\" selected>Seleccione un grupo</option>';\n\t\t\tforeach ($respuesta as $fila) {\n\t\t\t\techo '<option value=\"'.$fila[\"id_grupo\"].'\">'.$fila[\"nombre_grupo\"].'</option>';\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "602885ed81596fe46634c9f6548ced05", "score": "0.5542883", "text": "function output_full_list($admin = false)\n{\n\tglobal $formdata;\n\n\t$query = \"SELECT beboer_for, beboer_etter, beboer_id AS id\n\t\t\t\tFROM bs_beboer \";\n\n\tif(empty($formdata[\"sorts\"]) )\n\t{\n\t\t/* Default is alphabetical by surname\n\t\t------------------------------------------------------ */\n\t\t$sort_last = \"checked='checked' \";\n\t\t$sort_query = \"ORDER BY beboer_etter, beboer_for\";\n\t}\n\telse\n\t{\n\t\tif(!strcmp($formdata[\"sorts\"], \"last\"))\n\t\t{\n\t\t\t/* SORT BY LAST NAME */\n\n\t\t\t$sort_last = \"checked='checked' \";\n\t\t\t$query .= \"ORDER BY beboer_etter, beboer_for\";\n\t\t}\n\t\telseif(!strcmp($formdata[\"sorts\"], \"first\"))\n\t\t{\n\t\t\t/* SORT BY FIRST NAME */\n\n\t\t\t$sort_first = \"checked='checked' \";\n\t\t\t$query .= \"ORDER BY beboer_for, beboer_etter\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* SORT BY DATE */\n\n\t\t\t$sort_date = \"checked='checked' \";\n\n\t\t\t$query = \"SELECT DISTINCT dugnad_id AS id\n\t\t\t\t\t\t\tFROM bs_dugnad\n\t\t\t\t\t\t\tORDER BY dugnad_dato\";\n\t\t}\n\t}\n\n\tif($admin)\n\t{\n\n\t\t/* ADDING HEADER FOR ADMIN OF DUGNADSLISTE\n\t\t---------------------------------------------------- */\n\n\t\t$hidden = \"<input type='hidden' name='do' value='admin' />\n\t\t\t\t\t\t\t<input type='hidden' name='admin' value='Dugnadsliste' />\";\n\n\t\t$list_title = \"Administrering av dugnadsliste\";\n\n\t\t$admin_buttons = \"<div class='row_explained'><div class='name'><input type='reset' class='check_space' value='Nullstille endringer' /></div><div class='when_narrow'><input type='submit' class='check_space' value='Oppdater dugnadslisten' /></div></div>\";\n\t}\n\telse\n\t{\n\t\t/* SHOWING LIST FOR STATIC DUGNADSLISTE\n\t\t---------------------------------------------------- */\n\n\t\t$hidden = \"<input type='hidden' name='do' value='Se dugnadslisten uten passord' />\";\n\t\t$list_title = \"Fullstendig dugnadsliste\";\n\t}\n\n\t$content = \"<h1>\". $list_title .\"</h1>\";\n\t$content .= \"<form method='post' action='index.php'>\n\n\t\". $hidden .\"\n\n\t<p>\n\t\t<input type='radio' name='sorts' value='last' \". $sort_last .\"/> Sorter etter etternavn\n\t\t<input type='radio' class='check_space' name='sorts' value='first' \". $sort_first .\"/> Sorter etter fornavn\n\t\t<input type='radio' class='check_space' name='sorts' value='date' \". $sort_date .\"/> Sorter listen etter dato\n\t\t<input type='submit' class='check_space' value='Oppdater visning' /></form>\n\t</p>\n\n\t\t<form method='post' action='index.php'>\". $hidden .\"\n\t\t\\n\";\n\n\n\t/* CREATING THE ITEM LINES\n\t---------------------------------------------------------------------- */\n\n\tif(empty($sort_date) )\n\t{\n\t\t/* Sort by name, do not group items:\n\t\t-------------------------------------------------------- */\n\t\t$c = 0;\n\t\t$result = @run_query($query . $sort_query);\n\n\t\t$content .= \"<div class='row_explained'><div class='name'>\". ($admin == 1 ? \"Slett \" : null) .\"Beboer</div><div class='when_narrow'>Tildelte dugnader</div><div class='note'>Notater</div><div class='spacer'>&nbsp;</div></div>\";\n\n\t\twhile($row = @mysql_fetch_array($result) )\n\t\t{\n\t\t\t$content .= \"\\n\\n\". show_person($row[\"id\"], $c++, $admin) .\"\\n\";\n\t\t}\n\t}\n\telse\n\t{\n\t\t/* GROUPING ITEMS by date\n\t\t-------------------------------------------------------- */\n\t\t$result = @run_query($query);\n\n\t\twhile($row = @mysql_fetch_array($result) )\n\t\t{\n\t\t\tif(!$admin)\n\t\t\t{\n\t\t\t\t$content .= show_day($row[\"id\"], $admin);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$content .= admin_show_day($row[\"id\"]);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $content . $admin_buttons . \"</form>\";\n}", "title": "" }, { "docid": "5b3f72f5db4ba0e822c0d34e14163bd4", "score": "0.5540259", "text": "function getForm()\n {\n\n $configuration = Zend_Registry::get('configuration');\n if (!isset($configuration['modules']['domains']['installedVersion'])) {\n $this->view->noDomainsModule = true;\n } else {\n $this->view->registrars = array();\n\n $count = 0;\n $showWarning = true;\n $pluginGateway = new PluginGateway();\n $query = \"SELECT package.pricing FROM package, promotion WHERE package.planid = promotion.id AND promotion.type=3\";\n $result = $this->db->query($query);\n $addedTLD = array();\n while ($row = $result->fetch()) {\n\n // Unserialize the TLD's\n $tldPricing = @unserialize($row['pricing']);\n\n // Loop the pricing\n if (@is_array($tldPricing['pricedata'])) {\n foreach ($tldPricing['pricedata'] AS $key) {\n //determine if I have settings defined before hand\n if (isset($key['registrar']) && strlen($key['registrar']) != 0) {\n $plugin = $pluginGateway->getPluginByName(\"registrars\", $key['registrar']);\n //check to see if this plugin supports import functionality\n if (($plugin instanceof ICanImportDomains) && !@$addedTLD[$key['registrar']]) {\n $this->view->registrars[] = $key['registrar'];\n $count++;\n $addedTLD[@$key['registrar']] = 1;\n }\n }\n }\n }\n }\n\n if ($count > 0) {\n $this->view->registrarDropdown = true;\n //$this->tpl->parse('view', 'registrarDropdown');\n } else {\n $this->view->noRegistrarsText = $this->user->lang('You must first %sconfigure a registrar plugin%s and then assign TLDs to that plugin via the Domain Pricing tab for a %sdomains registration product%s.', '<a href=\"index.php?fuse=admin&controller=settings&view=plugins&settings=plugins_registrars&type=Registrars\">', '</a>', '<a href=\"index.php?fuse=admin&view=products&controller=products\">', '</a>');\n $this->view->noRegistrars = true;\n $showWarning = false;\n }\n\n if ($showWarning) {\n $this->view->hasRegistrars = true;\n }\n\n return $this->view->render('PluginDomainsregistrar.phtml');\n }\n }", "title": "" }, { "docid": "2b821844ce56cc2b049112a6e5e7ae17", "score": "0.55306315", "text": "function module_list($parameters){\r\n\t\t$display_tab = $this->check_parameters($parameters,\"display_tab\");\r\n\t\t$sql = \"select * from sitemap_data where sitemap_client=$this->client_identifier\";\r\n\t\t$result = $this->call_command(\"DB_QUERY\",Array($sql));\r\n\t\t$out =\"\";\r\n\t\t$menu_locations = Array();\r\n\t\t$identifier=-1;\r\n\t\t$display=1;\r\n\t\t$sitemap_showhidden =0;\r\n \twhile($r = $this->call_command(\"DB_FETCH_ARRAY\",Array($result))){\r\n\t\t\t$identifier\t\t\t\t\t\t\t\t= $r[\"sitemap_identifier\"];\r\n\t\t\t$display\t\t\t\t\t\t\t\t= $r[\"sitemap_display_options\"];\r\n\t\t\t$sitemap_showhidden\t\t\t\t\t\t= $r[\"sitemap_showhidden\"];\r\n\t\t}\r\n\t\t$this->call_command(\"DB_FREE\",Array($result));\r\n\t\t$menu_locations\t= $this->call_command(\"LAYOUT_LIST_MENU_OPTIONS\",Array($this->call_command(\"LAYOUT_MENU_TO_OBJECT_LIST\",\r\n\t\t\t\tArray(\r\n\t\t\t\t\t\"module\"\t\t=> $this->webContainer,\r\n\t\t\t\t\t\"identifier\"\t=> $identifier\r\n\t\t\t\t)\r\n\t\t\t)));\r\n//\t\t$xsl_display_options\r\n\t\t$out = \"<module name=\\\"\".$this->module_name.\"\\\" display=\\\"form\\\">\";\r\n\t\t\t$out .= \"<page_options>\";\r\n\t\t\t$out .= \"<header><![CDATA[\".LOCALE_SITEMAP_MANAGEMENT.\"]]></header>\";\r\n//\t\t\t\t$out .= $this->call_command(\"XMLTAG_GENERATE_XML_BUTTON\",Array(\"PREVIEW\",\"PAGE_PREVIEW\",ENTRY_PREVIEW));\r\n\t\t\t$out .= \"</page_options>\";\t\t\t\r\n\t\t\t$form_restriction_list = $this->call_command(\"SFORM_FORM_RESTRICTIONS\",Array(\"name\"=>\"LOCALE_PAGE_FORM\"));\r\n\t\t\t$out .= \"<form name=\\\"user_form\\\" method=\\\"post\\\" label=\\\"\".LOCALE_SITEMAP_MANAGEMENT.\"\\\">\";\r\n\t\t\t$out .= \"\t<input type=\\\"hidden\\\" name=\\\"identifier\\\"><![CDATA[$identifier]]></input>\";\r\n\t\t\t$out .= \"\t<input type=\\\"hidden\\\" name=\\\"command\\\"><![CDATA[\".$this->module_command.\"SAVE]]></input>\";\r\n\t\t\t$out .= \"<page_sections>\r\n\t\t\t\";\r\n\t\t\t$out .= \"\t<section label=\\\"\".LOCALE_SETUP.\"\\\"\";\r\n\t\t\tif ($display_tab==\"content\"){\r\n\t\t\t\t$out .= \" selected='true'\";\r\n\t\t\t}\r\n\t\t\t$out .= \">\";\r\n\t\t\t/*\r\n\t\t\t-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\r\n\t\t\t- Display menu locations\r\n\t\t\t-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\r\n\t\t\t*/\r\n\t\t\t$out .= \t\t\t\"<select name='menu_locations' label=\\\"\".LOCALE_CHOOSE_MENU_LOCATION.\"\\\"><option value='-1'>\".LOCALE_NOT_CURRENTLY_ON_SITE.\"</option>$menu_locations</select>\";\r\n\t\t\t$out .= \t\t\t\"<select name='display_option' label=\\\"\".LOCALE_CHOOSE_DISPLAY_OPTION.\"\\\">\";\r\n\t\t\t$max = count($this->xsl_display_options);\r\n\t\t\tfor($index=0;$index<$max;$index++){\r\n\t\t\t\tif ($this->xsl_display_options[$index][0] == $display){\r\n\t\t\t\t\t$out .= \"<option value='\" . $this->xsl_display_options[$index][0] . \"' selected='true'>\".$this->xsl_display_options[$index][2].\"</option>\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$out .= \"<option value='\" . $this->xsl_display_options[$index][0] . \"' >\".$this->xsl_display_options[$index][2].\"</option>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$out .=\"\t\t\t</select>\";\r\n\t\t\t$out .=\"<select name='sitemap_showhidden' label=\\\"\".LOCALE_CHOOSE_SHOW_HIDDEN.\"\\\">\";\r\n\t\t\t$out .=\t\t\"<option value='0'\";\r\n\t\t\tif ($sitemap_showhidden==0) {\r\n\t\t\t\t$out .=\" selected='true'\";\r\n\t\t\t}\r\n\t\t\t$out .=\">\".LOCALE_NO.\"</option>\";\r\n\t\t\t$out .=\t\t\"<option value='1'\";\r\n\t\t\tif ($sitemap_showhidden==1) {\r\n\t\t\t\t$out .=\" selected='true'\";\r\n\t\t\t}\r\n\t\t\t$out .=\">\".LOCALE_YES.\"</option>\";\r\n\t\t\t$out .=\"\t\t\t</select>\";\r\n\t\t\t$out .=\t\"\t\t</section>\";\r\n\t\t\t\r\n\t\t\t$out .= \"\t</page_sections>\";\r\n\t\t\t$out .= \"\t<input iconify=\\\"SAVE\\\" type=\\\"submit\\\" value=\\\"\".SAVE_DATA.\"\\\"/>\";\r\n\t\t\t$out .= \"</form>\";\r\n\t\t$out .= \"</module>\";\r\n\t\treturn $out;\r\n\t}", "title": "" }, { "docid": "8b42a5693c0e6a0dae18650c7d93e68a", "score": "0.5530057", "text": "function show_user_list()\n\t{\n\t\t$this->checked->page = $this->checked->page ? $this->checked->page : 1;\n\t\t$_SESSION['plugin_mv']['page'] = $this->checked->page;\n\t\t$this->content->template['fertig'] = $this->checked->fertig; // MSG Satz wurde gel�scht/gespeichert\n\t\t// Check, ob es S�tze gibt\n\t\t$sql = sprintf(\"SELECT COUNT(mv_content_id) FROM %s\",\n\n\t\t\t$this->cms->tbname['papoo_mv']\n\t\t\t. \"_content_\"\n\t\t\t. $this->db->escape($this->checked->mv_id)\n\t\t\t. \"_search_\"\n\t\t\t. $this->cms->lang_back_content_id\n\t\t);\n\t\t$result = $this->db->get_var($sql);\n\t\tif (!empty($result)) {\n\t\t\t$hit = \"\";\n\t\t\t$back_or_front = \"mvcform_list\";\n\t\t\trequire_once(PAPOO_ABS_PFAD . '/plugins/mv/lib/print_treffer_table.php');\n\t\t\t#$this->print_treffer_table($result, \"\", \"mvcform_list\");\n\t\t} else $this->content->template['message'] = \"no_content\";\n\t}", "title": "" }, { "docid": "c7a1b39d100add51b5b8eaef15b4b081", "score": "0.5524459", "text": "function mm_ui_user_list_form($mmtids) {\n if (!user_access('access user profiles'))\n return '';\n\n $title = t('User Search');\n drupal_set_title($title);\n $content = drupal_get_form('mm_ui_user_list');\n return \"<div class=\\\"node\\\">\n<h2>$title</h2>\n<div class=\\\"content\\\"><p>$content</p></div>\n</div>\";\n}", "title": "" }, { "docid": "cb2640f19491807058bfa5092c4067a8", "score": "0.5521453", "text": "public function showManagerList(): void\n {\n echo '<form action=\"'. rex_url::currentBackendPage() .'\" method=\"post\">';\n echo '<section class=\"rex-page-section\">';\n echo '<div class=\"panel panel-default\">';\n echo '<header class=\"panel-heading\"><div class=\"panel-title\">'. rex_i18n::msg('d2u_helper_meta_templates') .'</div></header>';\n\n echo '<table class=\"table table-striped table-hover\">';\n\n echo '<thead>';\n echo '<tr>';\n echo '<th class=\"rex-table-id\">'. rex_i18n::msg('d2u_helper_d2u_id') .'</th>';\n echo '<th>'. rex_i18n::msg('d2u_helper_templates_d2u_template_name') .'</th>';\n echo '<th>'. rex_i18n::msg('version') .'</th>';\n echo '<th>'. rex_i18n::msg('d2u_helper_templates_paired_rex_template') .'</th>';\n echo '<th>'. rex_i18n::msg('d2u_helper_autoupdate') .'</th>';\n echo '<th>'. rex_i18n::msg('module_functions') .'</th>';\n echo '</tr>';\n echo '</thead>';\n\n echo '<tbody>';\n\n // Redaxo templates\n $rex_templates = self::getRexTemplates();\n $unpaired_rex_templates = self::getRexTemplates(true);\n\n foreach ($this->d2u_templates as $template) {\n echo '<tr>';\n echo '<td>'. $template->getD2UId() .'</td>';\n echo '<td>'. $template->getName() .'</td>';\n echo '<td>'. $template->getRevision() .'</td>';\n // Redaxo templates\n echo '<td>';\n if (0 === $template->getRedaxoId()) {\n $templates_select = new rex_select();\n $templates_select->addOption(rex_i18n::msg('d2u_helper_templates_pair_new'), 0);\n $templates_select->addArrayOptions($unpaired_rex_templates);\n $templates_select->setName('pair_'. $template->getD2UId());\n $templates_select->setAttribute('class', 'form-control');\n $templates_select->setSelected(0);\n echo $templates_select->get();\n } else {\n echo '<a href=\"'. rex_url::currentBackendPage(['function' => 'unlink', 'd2u_template_id' => $template->getD2UId()]) .'\" title=\"'. rex_i18n::msg('d2u_helper_modules_pair_unlink') .'\"><i class=\"rex-icon fa-chain-broken\"></i> ';\n echo $rex_templates[$template->getRedaxoId()];\n echo '</a>';\n }\n echo '</td>';\n // Autoupdate\n echo '<td>';\n if ($template->isInstalled()) {\n $message = $template->isAutoupdateActivated() ? rex_i18n::msg('package_deactivate') : rex_i18n::msg('package_activate');\n $icon = $template->isAutoupdateActivated() ? 'rex-icon-package-is-activated' : 'rex-icon-package-not-activated';\n echo '<a href=\"'. rex_url::currentBackendPage(['function' => 'autoupdate', 'd2u_template_id' => $template->getD2UId()]) .'\"><i class=\"rex-icon '. $icon .'\"></i> '. $message .' </a>';\n }\n echo '</td>';\n // Action\n echo '<td class=\"rex-table-action\"><button type=\"submit\" name=\"d2u_template_id\" class=\"btn btn-save\" value=\"'. $template->getD2UId() .'\">';\n if (!$template->isInstalled()) {\n echo '<i class=\"rex-icon rex-icon-package-not-installed\"></i> '.rex_i18n::msg('package_install');\n } elseif ($template->isUpdateNeeded()) {\n echo '<i class=\"rex-icon rex-icon-package-is-installed\"></i> '.rex_i18n::msg('update');\n } else {\n echo '<i class=\"rex-icon rex-icon-package-is-activated\"></i> '.rex_i18n::msg('package_reinstall');\n }\n echo '</button></td>';\n echo '</tr>';\n }\n echo '</tbody>';\n\n echo '</table>';\n\n echo '</div>';\n echo '</section>';\n echo '</form>';\n }", "title": "" }, { "docid": "eb6091bd6f389e7fcd23f295cc276201", "score": "0.5521404", "text": "function audiotheme_gigs_manage_screen() {\n\t$post_type_object = get_post_type_object( 'audiotheme_gig' );\n\n\t$gigs_list_table = new Audiotheme_Gigs_List_Table();\n\t$gigs_list_table->prepare_items();\n\n\trequire( AUDIOTHEME_DIR . 'modules/gigs/admin/views/list-gigs.php' );\n}", "title": "" }, { "docid": "446e920a57710beee28a750a66cc9f80", "score": "0.5517695", "text": "public function form();", "title": "" }, { "docid": "391b768b75a94fbeb1d23e8c9f74e13c", "score": "0.5503393", "text": "public function gform_api_map()\n {\n die('need implementation');\n }", "title": "" }, { "docid": "99e763c0edfd73fe3bd533a977168dcc", "score": "0.5498762", "text": "function displayForm() {\n\t\t\n\t\tforeach ($this->makeForm() as $mf){\n\t\t\techo $mf;\n\t\t}\n\t}", "title": "" }, { "docid": "3b94d1d10a13f07aaba4ce5ee02b14d5", "score": "0.5498678", "text": "function DisplayForm($rule_group_nome, $rule_group_label, $rule_group_fields, $rule_group_sc_free_group_by_use, $rule_group_sc_free_group_by_openmode, $rule_group_sc_free_group_by_hide_help_line)\n {\n global $nm_template, $nm_browser;\n\n\t\t$this->displayPageDependency();\n\t\t\n\t\t$arr_rule_group = $this->GetRuleGroup($rule_group_nome);\n\t\t$arr_list_flds = array();\n\n\t\t//se existir, fica o do banco, se nao, pega o do submit\n\t\tif (!isset($arr_rule_group['nome']))\n\t\t{\n\t\t\t$arr_rule_group['nome'] = $rule_group_nome;\n\t\t\t$arr_rule_group['label'] = $rule_group_label;\n\t\t\t$arr_rule_group['list_fld'] = $rule_group_fields;\n\t\t\t$arr_rule_group['sc_free_group_by_use'] = $rule_group_sc_free_group_by_use;\n\t\t\t$arr_rule_group['sc_free_group_by_openmode'] = $rule_group_sc_free_group_by_openmode;\n\t\t\t$arr_rule_group['sc_free_group_by_hide_help_line'] = $rule_group_sc_free_group_by_hide_help_line;\n\t\t}\n\n\t\t$arr_fields_app = $_SESSION['nm_session']['menu_tree_fld_app'];\n\t\t$arr_fld_tp_sql = array();\n\t\t$arr_fld_value = array();\n\t\t$arr_fld_value['sel'] = $arr_rule_group['list_fld'];\n\t\t$arr_fld_value['des'] = array();\n\n\t\tksort($arr_fields_app);\n\t\tforeach ($arr_fields_app as $int_fld_type => $arr_fld_list)\n {\t\t\n\t\t foreach ($arr_fld_list as $arr_fld_data)\n {\n\t\t\t\tif($arr_fld_data['Categ'] == NM_FLD_CAT_TABLE)\n\t\t\t\t{\n\t\t\t\t\t$arr_fld_tp_sql[$arr_fld_data['Seq']] = strtoupper($arr_fld_data['Tipo_Sql']);\n\t\t\t\t\tif(\n\t\t\t\t\t\t(!isset($arr_fld_value['sel'][ $arr_fld_data['Seq'] ]) || $arr_fld_data['Campo'] != $arr_fld_value['sel'][ $arr_fld_data['Seq'] ]['field']) &&\n\t\t\t\t\t\t!in_array(strtoupper($arr_fld_data['Tipo']), array('EMBUTIDA', 'SUBSELECT', 'IMAGEM', 'FORM_IMAGE_HTML', 'CARTAO', 'IMAGEM', 'ARQUIVO', 'DOCUMENTO_DB', 'DOCUMENTO', 'BAR_CODE', 'QRCODE'))\n\t\t\t\t\t )\n\t\t\t\t\t{\n\t\t\t\t\t\t$arr_fld_value['des']['.' . $arr_fld_data['Seq']] = '.' . $arr_fld_data['Campo'];\n\t\t\t\t\t}\n\t\t\t\t}\n }\n }\n\n\t\t//para o tpl body_form_ext_cons_flds_group\n\t\t//se passa por nmPageApp\n\t\t/* fico por causa da v3 */\n $arr_data['class'] = \"nmLineV3\";\n /* fim fico por causa da v3 */\n $arr_data['cod'] = $_SESSION['nm_session']['app']['cod'];\n $arr_data['title'] = nm_get_text_lang(\"['text']['sel_flds_rule_group']\");\n $arr_data['desc'] = \"\";\n $arr_data['error'] = \"\";\n $arr_data['file_ok'] = TRUE;\n $arr_data['link_icon'] = '';\n $arr_data['name'] = \"new_rule_group\";\n $arr_data['on_change'] = '';\n $arr_data['on_click'] = '';\n $arr_data['tr_style'] = '';\n $arr_data['tr_display'] = '';\n $arr_data['tr_obs'] = '';\n $arr_data['use_modified'] = TRUE;\n\t\t$arr_data['value'] = $arr_fld_value;\n\t\t$arr_data['height_div'] = 240;\n\t\t$arr_data['allow_move'] = 1;\n\t\t$arr_data['ctl_pos'] = 1;\n\t\t$arr_data['ctl_stat'] = 1;\n\t\t$arr_data['ctl_edit'] = 1;\n\t\t$arr_data['arr_fld_tp_sql'] = $arr_fld_tp_sql;\n\t\t$nm_template->SetVar('field_data', $arr_data);\n\t\t//fim para o tpl body_form_ext_cons_flds_group\n\n $nm_template->SetVar('arr_rule_group', $arr_rule_group);\n $nm_template->Display('body_rule_group');\n\n /* Status do menu */\n $nm_template->SetVar('toolbar_object', 'parent.parent');\n $nm_template->SetVar('toolbar_grpcod', $_SESSION['nm_session']['user']['cod_grp']);\n $nm_template->SetVar('toolbar_appcod', $_SESSION['nm_session']['app']['cod']);\n $nm_template->SetVar('toolbar_appfriendly_name', $_SESSION['nm_session']['app']['friendly_name']);\n $nm_template->SetVar('toolbar_apptyp', $_SESSION['nm_session']['app']['type']);\n $nm_template->SetVar('toolbar_appseq', '');\n $nm_template->SetVar('toolbar_appcal', '');\n $nm_template->SetVar('toolbar_other' , '');\n $nm_template->SetVar('toolbar_rlo' , $rule_group_nome);\n $nm_template->SetVar('toolbar_atz_fld' , 'app');\n\t\t$nm_template->Display('body_toolbar_data');\n\n }", "title": "" }, { "docid": "40f3d51c8fc959edce6c0ec98409e6e7", "score": "0.54966074", "text": "function menu_create_form() {\n $frm = new DbForm();\n $menu = new Menu();\n $menus = $menu->fetchAll();\n\t\tif(count($menus)>0){\n $items = array();\n $items[] = 'Main Menu=0';\n foreach ($menus as $pid_opt) {\n $items[] = ucwords($pid_opt['label']) . '=' . $pid_opt['id'];\n }\n $frm->pid_options = implode(';', $items);\n return $frm->build(\"menu_create_form\", $frm); \n }else{\n natural_set_message('Could load Menu at this time', 'error');\n }\n}", "title": "" }, { "docid": "31ae60fa0648dce7b88b93e38a0f6146", "score": "0.54961854", "text": "function rellenarGrupos(){\n\t$sql = \"SELECT * FROM USU_GRUPO UG, GRUPO G WHERE (UG.login = '$this->login' AND\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUG.IdGrupo = G.IdGrupo)\";\n\n\n\t$result = $this->mysqli->query($sql);\n\t/*\n\twhile($row = mysqli_num_rows($result)){\n\t\t$lista[$row['IdGrupo']] =$row['NombreGrupo'];\n\t}*/\n\treturn $result;\n}", "title": "" }, { "docid": "a3aaded12973af611b05a899419284db", "score": "0.5485101", "text": "public function form()\n {\n $billingService = BOL_BillingService::getInstance();\n $adapter = new BILLINGBRAINTREE_CLASS_BraintreeAdapter($billingService);\n\n // load the form\n $form = new BILLINGBRAINTREE_CLASS_BillingForm($adapter);\n\n // convert the form to an array for rendering purposes\n $this->assign('fields', $form->oxwallControllerInterest());\n }", "title": "" }, { "docid": "90069b4afcb157a2a827f5a9ca8388d9", "score": "0.5485014", "text": "public function index()\n\t{\n\n\t\tView::share('title', 'Listado de Grupos');\n\n\t\t$input = array_merge(Input::only(Config::get('panel::app.orderBy'), Config::get('panel::app.orderDir')));\n\n\t\t$order[Config::get('panel::app.orderBy')] = ! is_null($input[Config::get('panel::app.orderBy')]) ? $input[Config::get('panel::app.orderBy')] : 'name';\n\t\t$order[Config::get('panel::app.orderDir')] = ! is_null($input[Config::get('panel::app.orderDir')]) ? $input[Config::get('panel::app.orderDir')] : 'asc';\n\n\t\t//recogemos los grupos, aquí no paginaremos, ya que no va a ser algo corriente tener 200 grupos\n\t\t$items = $this->grupo->findAllBy($order);\n\n\t\tView::share('items', $items);\n\t\treturn View::make('panel::grupos.index')\n\t\t\t\t\t\t\t\t\t->with('currentUrl', \\URL::current())\n\t\t\t\t\t\t\t\t\t->with('params', $order);\n\t}", "title": "" }, { "docid": "6fe7cbba3028b66b6cb8bb683ad684d4", "score": "0.5484673", "text": "public abstract function getAdminForm ();", "title": "" }, { "docid": "79ad7ebbde0cad2af3c2becbd440dc9d", "score": "0.5482406", "text": "public function listing();", "title": "" }, { "docid": "efa5687f90beb1e8fec4c0bcd2907f8a", "score": "0.5468563", "text": "function user_list_fields_callback($form, $form_state) {\r\n $_GET[\"q\"] = \"visualscience\"; //Magic!\r\n return $form['users']['list'];\r\n}", "title": "" }, { "docid": "45684c6b01f28604ec869a2540fff4c8", "score": "0.5467847", "text": "abstract public function getSubscribedFormName();", "title": "" }, { "docid": "8473e5605a588eabe3f5e2779f6b4d95", "score": "0.54666287", "text": "public function ShowForm()\n {\n return $this->Order()->Items();\n }", "title": "" }, { "docid": "2ad6910ec0155880b7336fbcdd072697", "score": "0.5461711", "text": "function _GetFrm(){\n\t\t// Cargo desde el formulario\n\t\t$this->Registro['id_link'] = $_POST['ID_LINK'];\n\t\t$this->Registro['titulo'] = $_POST['TITULO'];\n\t\t$this->Registro['url'] = trim($_POST['URL']);\n\t}", "title": "" }, { "docid": "18156e02efa778ee56fb0d613fe97fd0", "score": "0.5461362", "text": "function skinr_ui_list($form, &$form_state) {\n if (isset($form_state['values']['operation']) && $form_state['values']['operation'] == 'delete') {\n return skinr_ui_multiple_delete_confirm($form, $form_state, array_filter($form_state['values']['skins']));\n }\n $form['filter'] = skinr_ui_filter_form();\n $form['#submit'][] = 'skinr_ui_filter_form_submit';\n $form['admin'] = skinr_ui_admin_skins();\n \n drupal_add_css(drupal_get_path('module', 'skinr') . '/css/skinr_ui.css');\n\n return $form;\n}", "title": "" }, { "docid": "8e9521d114ba5423cef0923e289832ab", "score": "0.54585725", "text": "public function get_fields() {\n\n\t\t$fields = array(\n\t\t\tarray(\n\t\t\t\t'type' => 'tab',\n\t\t\t\t'name' => __( 'Google+', 'publisher' ),\n\t\t\t\t'id' => 'google_plus',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Type', 'publisher' ),\n\t\t\t\t'id' => 'type',\n\t\t\t\t//\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'profile' => __( 'Profile', 'publisher' ),\n\t\t\t\t\t'page' => __( 'Page', 'publisher' ),\n\t\t\t\t\t'community' => __( 'Community', 'publisher' ),\n\t\t\t\t),\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Google+ Page URL', 'publisher' ),\n\t\t\t\t'type' => 'text',\n\t\t\t\t'id' => 'url',\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'type' => 'tab',\n\t\t\t\t'name' => __( 'Style', 'publisher' ),\n\t\t\t\t'id' => 'style',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Color Scheme', 'publisher' ),\n\t\t\t\t'id' => 'scheme',\n\t\t\t\t//\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'light' => __( 'Light', 'publisher' ),\n\t\t\t\t\t'dark' => __( 'Dark', 'publisher' ),\n\t\t\t\t),\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Width', 'publisher' ),\n\t\t\t\t'type' => 'text',\n\t\t\t\t'id' => 'width',\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Layout', 'publisher' ),\n\t\t\t\t'id' => 'layout',\n\t\t\t\t//\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'portrait' => __( 'Portrait', 'publisher' ),\n\t\t\t\t\t'landscape' => __( 'Landscape', 'publisher' ),\n\t\t\t\t),\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Cover', 'publisher' ),\n\t\t\t\t'id' => 'cover',\n\t\t\t\t//\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'show' => __( 'Show', 'publisher' ),\n\t\t\t\t\t'hide' => __( 'Hide', 'publisher' ),\n\t\t\t\t),\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Tagline', 'publisher' ),\n\t\t\t\t'id' => 'tagline',\n\t\t\t\t//\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'show' => __( 'Show', 'publisher' ),\n\t\t\t\t\t'hide' => __( 'Hide', 'publisher' ),\n\t\t\t\t),\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Language', 'publisher' ),\n\t\t\t\t'id' => 'lang',\n\t\t\t\t//\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'af' => __( 'Afrikaans', 'publisher' ),\n\t\t\t\t\t'am' => __( 'Amharic', 'publisher' ),\n\t\t\t\t\t'ar' => __( 'Arabic', 'publisher' ),\n\t\t\t\t\t'eu' => __( 'Basque', 'publisher' ),\n\t\t\t\t\t'bn' => __( 'Bengali', 'publisher' ),\n\t\t\t\t\t'bg' => __( 'Bulgarian', 'publisher' ),\n\t\t\t\t\t'ca' => __( 'Catalan', 'publisher' ),\n\t\t\t\t\t'zh-HK' => __( 'Chinese (Hong Kong)', 'publisher' ),\n\t\t\t\t\t'zh-CN' => __( 'Chinese (Simplified)', 'publisher' ),\n\t\t\t\t\t'zh-TW' => __( 'Chinese (Traditional)', 'publisher' ),\n\t\t\t\t\t'hr' => __( 'Croatian', 'publisher' ),\n\t\t\t\t\t'cs' => __( 'Czech', 'publisher' ),\n\t\t\t\t\t'da' => __( 'Danish', 'publisher' ),\n\t\t\t\t\t'nl' => __( 'Dutch', 'publisher' ),\n\t\t\t\t\t'en-GB' => __( 'English (UK)', 'publisher' ),\n\t\t\t\t\t'en-US' => __( 'English (US)', 'publisher' ),\n\t\t\t\t\t'et' => __( 'Estonian', 'publisher' ),\n\t\t\t\t\t'fil' => __( 'Filipino', 'publisher' ),\n\t\t\t\t\t'fi' => __( 'Finnish', 'publisher' ),\n\t\t\t\t\t'fr' => __( 'French', 'publisher' ),\n\t\t\t\t\t'fr-CA' => __( 'French (Canadian)', 'publisher' ),\n\t\t\t\t\t'gl' => __( 'Galician', 'publisher' ),\n\t\t\t\t\t'de' => __( 'German', 'publisher' ),\n\t\t\t\t\t'el' => __( 'Greek', 'publisher' ),\n\t\t\t\t\t'gu' => __( 'Gujarati', 'publisher' ),\n\t\t\t\t\t'iw' => __( 'Hebrew', 'publisher' ),\n\t\t\t\t\t'hi' => __( 'Hindi', 'publisher' ),\n\t\t\t\t\t'hu' => __( 'Hungarian', 'publisher' ),\n\t\t\t\t\t'is' => __( 'Icelandic', 'publisher' ),\n\t\t\t\t\t'id' => __( 'Indonesian', 'publisher' ),\n\t\t\t\t\t'it' => __( 'Italian', 'publisher' ),\n\t\t\t\t\t'ja' => __( 'Japanese', 'publisher' ),\n\t\t\t\t\t'kn' => __( 'Kannada', 'publisher' ),\n\t\t\t\t\t'ko' => __( 'Korean', 'publisher' ),\n\t\t\t\t\t'lv' => __( 'Latvian', 'publisher' ),\n\t\t\t\t\t'lt' => __( 'Lithuanian', 'publisher' ),\n\t\t\t\t\t'ms' => __( 'Malay', 'publisher' ),\n\t\t\t\t\t'ml' => __( 'Malayalam', 'publisher' ),\n\t\t\t\t\t'mr' => __( 'Marathi', 'publisher' ),\n\t\t\t\t\t'no' => __( 'Norwegian', 'publisher' ),\n\t\t\t\t\t'fa' => __( 'Persian', 'publisher' ),\n\t\t\t\t\t'pl' => __( 'Polish', 'publisher' ),\n\t\t\t\t\t'pt-BR' => __( 'Portuguese (Brazil)', 'publisher' ),\n\t\t\t\t\t'pt-PT' => __( 'Portuguese (Portugal)', 'publisher' ),\n\t\t\t\t\t'ro' => __( 'Romanian', 'publisher' ),\n\t\t\t\t\t'ru' => __( 'Russian', 'publisher' ),\n\t\t\t\t\t'sr' => __( 'Serbian', 'publisher' ),\n\t\t\t\t\t'sk' => __( 'Slovak', 'publisher' ),\n\t\t\t\t\t'sl' => __( 'Slovenian', 'publisher' ),\n\t\t\t\t\t'es' => __( 'Spanish', 'publisher' ),\n\t\t\t\t\t'es-419' => __( 'Spanish (Latin America)', 'publisher' ),\n\t\t\t\t\t'sw' => __( 'Swahili', 'publisher' ),\n\t\t\t\t\t'sv' => __( 'Swedish', 'publisher' ),\n\t\t\t\t\t'ta' => __( 'Tamil', 'publisher' ),\n\t\t\t\t\t'te' => __( 'Telugu', 'publisher' ),\n\t\t\t\t\t'th' => __( 'Thai', 'publisher' ),\n\t\t\t\t\t'tr' => __( 'Turkish', 'publisher' ),\n\t\t\t\t\t'uk' => __( 'Ukrainian', 'publisher' ),\n\t\t\t\t\t'ur' => __( 'Urdu', 'publisher' ),\n\t\t\t\t\t'vi' => __( 'Vietnamese', 'publisher' ),\n\t\t\t\t\t'zu' => __( 'Zulu', 'publisher' ),\n\t\t\t\t),\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t),\n\t\t);\n\n\n\t\t/**\n\t\t * Retrieve heading fields from outside (our themes are defining them)\n\t\t */\n\t\t{\n\t\t\t$heading_fields = apply_filters( 'better-framework/shortcodes/heading-fields', array(), $this->id );\n\n\t\t\tif ( $heading_fields ) {\n\t\t\t\t$fields = array_merge( $fields, $heading_fields );\n\t\t\t}\n\t\t}\n\n\n\t\t/**\n\t\t * Retrieve design fields from outside (our themes are defining them)\n\t\t */\n\t\t{\n\t\t\t$design_fields = apply_filters( 'better-framework/shortcodes/design-fields', array(), $this->id );\n\n\t\t\tif ( $design_fields ) {\n\t\t\t\t$fields = array_merge( $fields, $design_fields );\n\t\t\t}\n\t\t}\n\n\t\tbf_array_insert_after(\n\t\t\t'bs-show-phone',\n\t\t\t$fields,\n\t\t\t'bs-text-color-scheme',\n\t\t\tarray(\n\t\t\t\t'name' => __( 'Block Text Color Scheme', 'publisher' ),\n\t\t\t\t'id' => 'bs-text-color-scheme',\n\t\t\t\t//\n\t\t\t\t'type' => 'select',\n\t\t\t\t'options' => array(\n\t\t\t\t\t'' => __( '-- Default --', 'publisher' ),\n\t\t\t\t\t'light' => __( 'White Color Texts', 'publisher' ),\n\t\t\t\t),\n\t\t\t\t//\n\t\t\t\t'vc_admin_label' => false,\n\t\t\t)\n\t\t);\n\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "7b61c9c252068b4895571e5ac166ffca", "score": "0.545817", "text": "function filecabinet_admin_form_build(&$form_state = NULL) {\n //orgright_debug_msg('filecabinet','Fn: filecabinet_admin_form_build',5);\n $form = array();\n // Check to see whether this is a new form, or a rebuild\n $form_state['storage']['new_form'] = TRUE;\n if (isset($form_state['values'])) {\n // The form has been submitted for edit or delete of a value\n $form_state['storage']['new_form'] = FALSE;\n }\n if ($form_state['storage']['new_form']) {\n // This is a new form request\n // Specify a fieldset for default drawer owner\n $form['default_owner'] = array(\n '#type' => 'fieldset',\n '#title' => t('Default Drawer Owner'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $drawer_default_owner = filecabinet_get_default_owner_name();\n $form['default_owner']['default_owner_name'] = array(\n '#type' => 'textfield',\n '#title' => t('User name'),\n '#description' => t('Select the name of the user to be the default drawer owner'),\n '#default_value' => $drawer_default_owner,\n '#maxlength' => 64,\n '#size' => 40,\n '#required' => TRUE,\n '#weight' => 1,\n '#autocomplete_path' => 'filecabinet/autocomplete/owners',\n );\n $form['default_owner']['default_owner_submit'] = array(\n '#type' => 'submit',\n '#value' => t('Set default owner'),\n '#weight' => 2,\n );\n // Specify a fieldset for default values for mail capture\n $form['mail_capture'] = array(\n '#type' => 'fieldset',\n '#title' => t('Default Email Capture Values'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $mail_default_folder = filecabinet_get_default_mail_folder();\n $form['mail_capture']['default_mail_folder'] = array(\n '#type' => 'textfield',\n '#title' => t('Mail folder'),\n '#description' => t('Select the folder to hold captured email documents'),\n '#default_value' => $mail_default_folder,\n '#maxlength' => 64,\n '#size' => 40,\n '#required' => TRUE,\n '#weight' => 1,\n '#autocomplete_path' => 'filecabinet/autocomplete/folders',\n );\n $mail_default_member = filecabinet_get_default_mail_member();\n $form['mail_capture']['default_mail_member'] = array(\n '#type' => 'textfield',\n '#title' => t('Mail member'),\n '#description' => t('Select the default member to own captured email documents'),\n '#default_value' => $mail_default_member,\n '#maxlength' => 64,\n '#size' => 40,\n '#required' => TRUE,\n '#weight' => 2,\n '#autocomplete_path' => 'membership/autocomplete/members',\n );\n $document_type_list = filecabinet_get_document_types();\n $form['mail_capture']['default_mail_doctype'] = array(\n '#type' => 'select',\n '#title' => t('Default type'),\n '#description' => t('Select the default type of captured email documents'),\n '#default_value' => filecabinet_get_default_mail_doctype(),\n '#options' => $document_type_list,\n '#required' => TRUE,\n '#weight' => 3,\n );\n $document_status_list = filecabinet_get_document_statuses();\n $form['mail_capture']['default_mail_docstatus'] = array(\n '#type' => 'select',\n '#title' => t('Default status'),\n '#description' => t('Select the default status of captured email documents'),\n '#default_value' => filecabinet_get_default_mail_docstatus(),\n '#options' => $document_status_list,\n '#required' => TRUE,\n '#weight' => 4,\n );\n $form['mail_capture']['default_mail_submit'] = array(\n '#type' => 'submit',\n '#value' => t('Set default values'),\n '#weight' => 5,\n );\n // Specify a fieldset for drawer status values\n $form['drawer_statuses'] = array(\n '#type' => 'fieldset',\n '#title' => t('Drawer Status Values'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $drawer_status_list = filecabinet_get_drawer_statuses();\n $form['drawer_statuses']['drawer_status_list'] = array(\n '#type' => 'radios',\n '#title' => t('Current drawer status values'),\n '#description' => t('Select a value to edit or delete'),\n '#options' => $drawer_status_list,\n '#weight' => 1,\n );\n $form['drawer_statuses']['drawer_status_edit'] = array(\n '#type' => 'submit',\n '#value' => t('Edit drawer status'),\n '#weight' => 2,\n );\n $form['drawer_statuses']['drawer_status_delete'] = array(\n '#type' => 'submit',\n '#value' => t('Delete drawer status'),\n '#weight' => 3,\n );\n $form['drawer_statuses']['drawer_status_new'] = array(\n '#type' => 'textfield',\n '#title' => t('Drawer status value'),\n '#description' => t('Specify a new status value to add'),\n '#default_value' => '',\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => FALSE,\n '#weight' => 4,\n );\n $form['drawer_statuses']['drawer_status_add'] = array(\n '#type' => 'submit',\n '#value' => t('Add drawer status'),\n '#weight' => 5,\n );\n // Specify a fieldset for folder status values\n $form['folder_statuses'] = array(\n '#type' => 'fieldset',\n '#title' => t('Folder Status Values'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $folder_status_list = filecabinet_get_folder_statuses();\n $form['folder_statuses']['folder_status_list'] = array(\n '#type' => 'radios',\n '#title' => t('Current folder status values'),\n '#description' => t('Select a value to edit or delete'),\n '#options' => $folder_status_list,\n '#weight' => 1,\n );\n $form['folder_statuses']['folder_status_edit'] = array(\n '#type' => 'submit',\n '#value' => t('Edit folder status'),\n '#weight' => 2,\n );\n $form['folder_statuses']['folder_status_delete'] = array(\n '#type' => 'submit',\n '#value' => t('Delete folder status'),\n '#weight' => 3,\n );\n $form['folder_statuses']['folder_status_new'] = array(\n '#type' => 'textfield',\n '#title' => t('Folder status value'),\n '#description' => t('Specify a new status value to add'),\n '#default_value' => '',\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => FALSE,\n '#weight' => 4,\n );\n $form['folder_statuses']['folder_status_add'] = array(\n '#type' => 'submit',\n '#value' => t('Add folder status'),\n '#weight' => 5,\n );\n // Specify a fieldset for document status values\n $form['document_statuses'] = array(\n '#type' => 'fieldset',\n '#title' => t('Document Status Values'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $document_status_list = filecabinet_get_document_statuses();\n $form['document_statuses']['document_status_list'] = array(\n '#type' => 'radios',\n '#title' => t('Current document status values'),\n '#description' => t('Select a value to edit or delete'),\n '#options' => $document_status_list,\n '#weight' => 1,\n );\n $form['document_statuses']['document_status_edit'] = array(\n '#type' => 'submit',\n '#value' => t('Edit document status'),\n '#weight' => 2,\n );\n $form['document_statuses']['document_status_delete'] = array(\n '#type' => 'submit',\n '#value' => t('Delete document status'),\n '#weight' => 3,\n );\n $form['document_statuses']['document_status_new'] = array(\n '#type' => 'textfield',\n '#title' => t('Document status value'),\n '#description' => t('Specify a new status value to add'),\n '#default_value' => '',\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => FALSE,\n '#weight' => 4,\n );\n $form['document_statuses']['document_status_add'] = array(\n '#type' => 'submit',\n '#value' => t('Add document status'),\n '#weight' => 5,\n );\n // Now specify the Document Types fieldset\n $form['document_types'] = array(\n '#type' => 'fieldset',\n '#title' => t('Document Types'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $document_type_list = filecabinet_get_document_types();\n $form['document_types']['document_type_list'] = array(\n '#type' => 'radios',\n '#title' => t('Current document types'),\n '#description' => t('Select a type to edit or delete'),\n '#options' => $document_type_list,\n '#weight' => 1,\n );\n $form['document_types']['document_type_edit'] = array(\n '#type' => 'submit',\n '#value' => t('Edit document type'),\n '#weight' => 2,\n );\n $form['document_types']['document_type_delete'] = array(\n '#type' => 'submit',\n '#value' => t('Delete document type'),\n '#weight' => 3,\n );\n $form['document_types']['document_type_new'] = array(\n '#type' => 'textfield',\n '#title' => t('Document type'),\n '#description' => t('Specify a new document type to add'),\n '#default_value' => '',\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => FALSE,\n '#weight' => 4,\n );\n $form['document_types']['document_type_add'] = array(\n '#type' => 'submit',\n '#value' => t('Add document type'),\n '#weight' => 5,\n );\n // Now specify the doclinks node type fieldset\n $form['doclink_nodetypes'] = array(\n '#type' => 'fieldset',\n '#title' => t('Document Link Targets'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n // get a list of all current node types\n $nodetypes_name_list = node_get_types('names');\n // but don't allow the document type to be a doclink target\n unset($nodetypes_name_list['document']);\n $doclink_nodetype_list = filecabinet_get_doclink_nodetypes();\n $form['doclink_nodetypes']['doclink_nodetype_list'] = array(\n '#type' => 'checkboxes',\n '#title' => t('Current document link targets'),\n '#description' => t('Select content types permitted to have linked documents'),\n '#default_value' => $doclink_nodetype_list,\n '#options' => $nodetypes_name_list,\n '#weight' => 1,\n );\n $form['doclink_nodetypes']['doclink_nodetype_submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save list'),\n '#weight' => 2,\n );\n // Now specify the Doclink Types fieldset\n $form['doclink_linktypes'] = array(\n '#type' => 'fieldset',\n '#title' => t('Document Link Types'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $doclink_linktype_list = filecabinet_get_doclink_linktypes();\n $form['doclink_linktypes']['doclink_linktype_list'] = array(\n '#type' => 'radios',\n '#title' => t('Current document link types'),\n '#description' => t('Select a type to edit or delete'),\n '#options' => $doclink_linktype_list,\n '#weight' => 1,\n );\n $form['doclink_linktypes']['doclink_linktype_edit'] = array(\n '#type' => 'submit',\n '#value' => t('Edit link type'),\n '#weight' => 2,\n );\n $form['doclink_linktypes']['doclink_linktype_delete'] = array(\n '#type' => 'submit',\n '#value' => t('Delete link type'),\n '#weight' => 3,\n );\n $form['doclink_linktypes']['doclink_linktype_new'] = array(\n '#type' => 'textfield',\n '#title' => t('Document link type'),\n '#description' => t('Specify a new link type to add'),\n '#default_value' => '',\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => FALSE,\n '#weight' => 4,\n );\n $form['doclink_linktypes']['doclink_linktype_add'] = array(\n '#type' => 'submit',\n '#value' => t('Add link type'),\n '#weight' => 5,\n );\n // Specify a fieldset for the upload file settings\n $form['upload_settings'] = array(\n '#type' => 'fieldset',\n '#title' => t('Upload File Settings'),\n '#collapsible' => TRUE,\n '#collapsed' => TRUE,\n );\n $form['upload_settings']['upload_extensions'] = array(\n '#type' => 'textfield',\n '#title' => t('Valid file extensions'),\n '#description' => t('Specify the file extensions that will be allowed for uploads in a space separated list'),\n '#default_value' => filecabinet_get_upload_extensions(),\n '#maxlength' => 64,\n '#size' => 40,\n '#required' => TRUE,\n '#weight' => 1,\n );\n $form['upload_settings']['upload_filesize'] = array(\n '#type' => 'textfield',\n '#title' => t('Maximum file size'),\n '#description' => t('Specify the maximum size allowed for indivudual uploaded file (MB)'),\n '#default_value' => filecabinet_get_upload_filesize(),\n '#maxlength' => 64,\n '#size' => 40,\n '#required' => TRUE,\n '#weight' => 2,\n );\n $form['upload_settings']['upload_usersize'] = array(\n '#type' => 'textfield',\n '#title' => t('Maximum user storage'),\n '#description' => t('Specify the maximum space allowed for uploaded files by an indivudual user (MB)'),\n '#default_value' => filecabinet_get_upload_usersize(),\n '#maxlength' => 64,\n '#size' => 40,\n '#required' => TRUE,\n '#weight' => 3,\n );\n $form['upload_settings']['upload_resolution'] = array(\n '#type' => 'textfield',\n '#title' => t('Maximum image resolution'),\n '#description' => t('Specify the maximum resolution allowed for an uploaded image as WIDTHxHEIGHT. Set to 0 for no restriction.'),\n '#default_value' => filecabinet_get_upload_resolution(),\n '#maxlength' => 64,\n '#size' => 40,\n '#required' => TRUE,\n '#weight' => 4,\n );\n $form['upload_settings']['upload_settings_submit'] = array(\n '#type' => 'submit',\n '#value' => t('Set values'),\n '#weight' => 5,\n );\n }\n else {\n // This is a form rebuild\n if (isset($form_state['storage']['this_drawer_status'])) {\n // Are either editing or deleting a drawer status\n $drawer_status_list = filecabinet_get_drawer_statuses();\n $drawer_status_value = $drawer_status_list[$form_state['storage']['this_drawer_status']];\n //orgright_debug_msg('admin','admin form rebuild, drawer_status='.$drawer_status_value,7);\n if ($form_state['storage']['operation'] == 'edit_drawer_status') {\n $form['drawer_status'] = array(\n '#type' => 'textfield',\n '#title' => t('Drawer status'),\n '#description' => t('Edit status value'),\n '#default_value' => $drawer_status_value,\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => TRUE,\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save changes'),\n '#weight' => 2,\n );\n }\n else {\n $form['drawer_status'] = array(\n '#type' => 'markup',\n '#prefix' => '<div class=\"highlight\">',\n '#value' => $drawer_status_value,\n '#suffix' => '</div>',\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Confirm deletion'),\n '#weight' => 2,\n );\n }\n }\n elseif (isset($form_state['storage']['this_folder_status'])) {\n // Are either editing or deleting a folder status\n $folder_status_list = filecabinet_get_folder_statuses();\n $folder_status_value = $folder_status_list[$form_state['storage']['this_folder_status']];\n //orgright_debug_msg('admin','admin form rebuild, folder_status='.$folder_status_value,7);\n if ($form_state['storage']['operation'] == 'edit_folder_status') {\n $form['folder_status'] = array(\n '#type' => 'textfield',\n '#title' => t('folder status'),\n '#description' => t('Edit status value'),\n '#default_value' => $folder_status_value,\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => TRUE,\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save changes'),\n '#weight' => 2,\n );\n }\n else {\n $form['folder_status'] = array(\n '#type' => 'markup',\n '#prefix' => '<div class=\"highlight\">',\n '#value' => $folder_status_value,\n '#suffix' => '</div>',\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Confirm deletion'),\n '#weight' => 2,\n );\n }\n }\n if (isset($form_state['storage']['this_document_status'])) {\n // Are either editing or deleting a document status\n $document_status_list = filecabinet_get_document_statuses();\n $document_status_value = $document_status_list[$form_state['storage']['this_document_status']];\n //orgright_debug_msg('admin','admin form rebuild, document_status='.$document_status_value,7);\n if ($form_state['storage']['operation'] == 'edit_document_status') {\n $form['document_status'] = array(\n '#type' => 'textfield',\n '#title' => t('document status'),\n '#description' => t('Edit status value'),\n '#default_value' => $document_status_value,\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => TRUE,\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save changes'),\n '#weight' => 2,\n );\n }\n else {\n $form['document_status'] = array(\n '#type' => 'markup',\n '#prefix' => '<div class=\"highlight\">',\n '#value' => $document_status_value,\n '#suffix' => '</div>',\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Confirm deletion'),\n '#weight' => 2,\n );\n }\n }\n elseif (isset($form_state['storage']['this_document_type'])) {\n // Are either editing or deleting a document type\n $document_type_list = filecabinet_get_document_types();\n $document_type_value = $document_type_list[$form_state['storage']['this_document_type']];\n //orgright_debug_msg('admin','admin form rebuild, document type='.$document_type_value,7);\n if ($form_state['storage']['operation'] == 'edit_document_type') {\n $form['document_type'] = array(\n '#type' => 'textfield',\n '#title' => t('Document type'),\n '#description' => t('Edit document type'),\n '#default_value' => $document_type_value,\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => TRUE,\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save changes'),\n '#weight' => 2,\n );\n }\n else {\n $form['document_type'] = array(\n '#type' => 'markup',\n '#prefix' => '<div class=\"highlight\">',\n '#value' => $document_type_value,\n '#suffix' => '</div>',\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Confirm deletion'),\n '#weight' => 2,\n );\n }\n }\n elseif (isset($form_state['storage']['this_doclink_linktype'])) {\n // Are either editing or deleting a doclink type\n $doclink_linktype_list = filecabinet_get_doclink_linktypes();\n $doclink_linktype_value = $doclink_linktype_list[$form_state['storage']['this_doclink_linktype']];\n //orgright_debug_msg('admin','admin form rebuild, doclink type='.$doclink_linktype_value,7);\n if ($form_state['storage']['operation'] == 'edit_doclink_linktype') {\n $form['doclink_linktype'] = array(\n '#type' => 'textfield',\n '#title' => t('Document link type'),\n '#description' => t('Edit link type'),\n '#default_value' => $doclink_linktype_value,\n '#maxlength' => 16,\n '#size' => 16,\n '#required' => TRUE,\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Save changes'),\n '#weight' => 2,\n );\n }\n else {\n $form['document_type'] = array(\n '#type' => 'markup',\n '#prefix' => '<div class=\"highlight\">',\n '#value' => $doclink_linktype_value,\n '#suffix' => '</div>',\n '#weight' => 1,\n );\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Confirm deletion'),\n '#weight' => 2,\n );\n }\n }\n else {\n //orgright_debug_msg('filecabinet','ERROR - unknown admin form rebuild requested',3);\n }\n }\n $form['#validate'] = array('filecabinet_form_validate');\n $form['#submit'] = array('filecabinet_form_submit');\n //return system_settings_form($form);\n return $form;\n}", "title": "" }, { "docid": "f727d05587fea1f906b88e4b7d0078b9", "score": "0.5456453", "text": "public function newForm() \n {\n $this->tplVars = $this->tplVars + [\n 'page_title' => $this->pageTitle\n ];\n \n \n if(isset($this->pid)){\n \n \n if($this->pid>0 && $this->pid>0){\n \n $this->tplVars = $this->tplVars + [\n 'pid' => $this->pid\n ];\n \n $this->tplVars = $this->tplVars + [\n 'tid' => $this->tid\n ];\n }\n \n \n }\n \n \n \n //afficher la liste des rayons\n \\Renderer::showAdmin(strtolower($this->pageCrud).\"/add\",$this->tplVars);\n\n \n }", "title": "" }, { "docid": "56c4fe15b802817e40b5f3e0ef9f59a6", "score": "0.54554564", "text": "function make_form_front($formdata)\n\t{\n\t\t// Flag setzen, damit die make_feld Funktionen auch wissen, dass sie das Pflichtfeld-H�kchen vom Frontend checken sollen\n\t\t$this->mv_back_or_front = \"front\";\n\t\t$groupar = $this->result_groups; // Gruppen (Fieldsets)\n\t\t$i = $index = 0;\n\t\t//Meta ID festlegen\n\t\t$meta_id = $this->meta_gruppe;\n\t\tif (!defined(\"admin\") and is_numeric($this->checked->extern_meta)) $meta_id = $this->checked->extern_meta;\n\t\t// F�r diese Gruppen durchgehen\n\t\tif ((!empty($this->result_groups))) {\n\t\t\tforeach ($this->result_groups as $group) {\n\t\t\t\t$this->feldarray = array();\n\t\t\t\t// Alle Felder der jeweiligen Gruppe rausholen\n\t\t\t\t$sql = sprintf(\"SELECT * FROM %s, %s\n\t\t WHERE mvcform_group_id = '%d'\n\t\t AND mvcform_id = mvcform_lang_id\n\t\t AND mvcform_lang_lang = '%d'\n\t\t AND mvcform_meta_id = mvcform_lang_meta_id\n\t\t AND mvcform_meta_id = '%d'\n\t\t AND mvcform_aktiv = '1'\n\t\t GROUP BY mvcform_id\n\t\t ORDER BY mvcform_order_id DESC\",\n\t\t\t\t\t$this->cms->tbname['papoo_mvcform_lang'],\n\t\t\t\t\t$this->cms->tbname['papoo_mvcform'],\n\t\t\t\t\t$this->db->escape($group['mvcform_group_id']),\n\t\t\t\t\t$this->db->escape($this->cms->lang_id),\n\t\t\t\t\t$this->db->escape($meta_id)\n\t\t\t\t);\n\t\t\t\t$result = $this->db->get_results($sql, ARRAY_A);\n\t\t\t\tif (!empty($result)) {\n\t\t\t\t\t$this->content->template['gfliste'][$i][$index]['mvcform_group_text'] = $group['mvcform_group_text']; // Gruppenname\n\t\t\t\t\t//Felder Rechte rausholen\n\t\t\t\t\t$this->get_field_rights_schreibrechte();\n\t\t\t\t\tforeach ($result as $fld) {\n\t\t\t\t\t\t$die_aktuelle_id = $fld['mvcform_id'];\n\t\t\t\t\t\tif (is_numeric($die_aktuelle_id)) {\n\t\t\t\t\t\t\tif (!in_array($die_aktuelle_id, $this->felder_schreib_rechte_aktuelle_gruppe)) {\n\t\t\t\t\t\t\t\t$value = \"\";\n\t\t\t\t\t\t\t\tcontinue; //Keine Leserechte - dann abbrechen\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// B�se HTML rausflitschen\n\t\t\t\t\t\t$this->checked->$fld = $this->html2txt($this->checked->$fld);\n\t\t\t\t\t\t// Anf�hrungszeichen kodieren\n\t\t\t\t\t\t$this->checked->$fld = $this->diverse->encode_quote($this->checked->$fld);\n\t\t\t\t\t\t// weil Felder gleiche Namen haben k�nnen, den Name mit der ID versehen\n\t\t\t\t\t\t$fld['mvcform_name'] .= \"_\" . $fld['mvcform_id'];\n\t\t\t\t\t\t$feld = $fld;\n\t\t\t\t\t\t$cfeld = \"\"; // sicherheitshalber\n\t\t\t\t\t\trequire(PAPOO_ABS_PFAD . '/plugins/mv/lib/make_feld.php');\n\t\t\t\t\t\t#$this->make_feld_front($fld);\n\t\t\t\t\t\t$this->content->template['gfliste'][$i][$index]['mvcform_name_id'] = $fld['mvcform_name']; // Feldname CSS\n\t\t\t\t\t\t$this->content->template['gfliste'][$i][$index]['html'] = $cfeld; // Feld HTML\n\t\t\t\t\t\t$index++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t$this->tiny_elements = substr($this->tiny_elements, 0, -1);\n\t\t$this->content->template['show_tiny'] = $this->show_tiny;\n\t\t$this->content->template['tiny_elements'] = $this->tiny_elements;\n\t}", "title": "" }, { "docid": "333aac47155f4bca94cc6c73ca77b7b4", "score": "0.5448177", "text": "function picklist ($varname, $formname) {\n\t\t$query = \"SELECT * FROM \".$this->table_name.\" \".\n//RPL\t\t\t\"WHERE pntphy='\".$GLOBALS['this_user']->user_phy.\"' \".\n\t\t\t\"ORDER BY pntname\";\n\t\t$result = $GLOBALS['sql']->query($query);\n\t\t\n\t\t$add = \"<input type=\\\"BUTTON\\\" onClick=\\\"pntPopup=window.open(\".\n\t\t\"'\".$this->page_name.\"?module=\".get_class($this).\"&varname=\".\n\t\turlencode($varname).\"&action=addform&formname=\".\n\t\turlencode($formname).\"', 'pntPopup'); \".\n\t\t\"pntPopup.opener=self; return true\\\" VALUE=\\\"\".__(\"Add\").\"\\\"/>\\n\";\n\n\t\t// Make sure there are templates already\n\t\tif (!$GLOBALS['sql']->results($result)) {\n\t\t\treturn $add;\n\t\t}\n\n\t\t// Add the \"edit\" button\n\t\t$add .= \"<input type=\\\"BUTTON\\\" onClick=\\\"pntPopup=window.open(\".\n\t\t\"'\".$this->page_name.\"?module=\".get_class($this).\"&varname=\".\n\t\turlencode($varname).\"&action=modform&formname=\".\n\t\turlencode($formname).\"&id='+document.\".$formname.\".\".$varname.\n\t\t\".value, 'pntPopup'); \".\n\t\t\"pntPopup.opener=self; return true\\\" VALUE=\\\"\".__(\"Edit\").\"\\\"/>\\n\";\n\n\t\t// Loop them into \"options\"\n\t\t$options = array();\n\t\twhile ($r = $GLOBALS['sql']->fetch_array($result)) {\n\t\t\t$options[prepare($r['pntname'])] = $r['id'];\n\t\t}\n\t\t\n\t\treturn html_form::select_widget(\n\t\t\t$varname,\n\t\t\t$options\n\t\t).\" \".\n\t\t\"<input TYPE=\\\"SUBMIT\\\" VALUE=\\\"\".__(\"Use\").\"\\\" \".\n\t\t\"onClick=\\\"this.form.\".$varname.\"_used.value = '1'; this.form.submit(); \".\n\t\t\"return true;\\\"/> \".\n\t\t$add;\n\t}", "title": "" }, { "docid": "f3c05fb799cf917e665cfea7fa5f84c0", "score": "0.5447814", "text": "function gallery_object_list($siteObj, $options='') {\n global $__header;\n $obj_type = $options['obj_type']; \n $search = $options['search'];\n $base_link = $options['base_link'];\n $auth_edit = $options['auth_edit'];\n $no_list = $options['no_list']; \n $obj_subtype = $options['obj_subtype'];\n $link_only = $options['link_only'];\n $object_only = $options['object_only'];\n $show_link = isset($options['show_link']) ? $options['show_link'] : true; \n \n $viewer = pick_first($_GET['viewer'], $options['viewer'], $_SESSION['gallery_viewer'], 'html');\n $format = pick_first($_GET['format'], $options['format'], $_SESSION['gallery_format'], 'list');\n if($link_only || $object_only) {\n $format = 'json';\n // echo(\"format = $format\"); \n // dump($options);\n }\n \n //dump($options);\n if(in_array($viewer, array('galleria', 'fancybox'))) {\n //return \"gh: viewer=$viewer\".dump($options, true);\n return site_gallery($siteObj, $options);\n } \n if(!in_array($format, array('icons', 'compact', 'list', 'json', 'image'))) $format = $options['format'] = 'list';\n\n if($viewer== 'html' && in_array($format, array('icons', 'compact', 'list')) && !$options['no_session']) { // don't mess with session variables (format/viewer) when called from site_gallery\n $_SESSION['gallery_format'] = $format;\n $_SESSION['gallery_viewer'] = $viewer;\n }\n\n //echo(\"<br>gol: viewer=$viewer format=$format<br>\");\n \n // the context of this list\n if($parent_obj_type = $options['parent_obj_type'] ?: $search['parent_type']) {\n $parent_id = $options['parent_id'] ?: $options['id'];\n $parent_obj_subtype = $options['parent_obj_subtype'];\n $parentObj = $options['parent_obj'];\n if(!$parentObj && $parent_id) $parentObj = get_object($parent_obj_type, $parent_id);\n }\n \n if(!$obj_type) return \"gallery_object_list: no object type\";\n if(isset($options['objects'])) { // list of objects\n $objects = $options['objects'];\n //echo(\"There are \".count($objects).\" $obj_type\".html_break());\n } elseif($search) {\n //dump($search);\n $objects = find_objects($obj_type, $search, $options);\n //dump($objects);\n } else {\n $errors[] = \"gallery_object_list: no objects or search\";\n }\n\n $result_id = $options['store_result'];\n if($obj_type && $objects && $result_id) { // store in data tag for retrieval later (used for paging in explorer)\n $output .= gallery_store_result($site_id, $result_id, $objects, $obj_type, $obj_subtype);\n }\n \n /*\n $rating = feedback_stars($imageObj->title, $imageObj->rating ?: 10, $imageObj->rating_count ?: 10, array('stars_only' => true));\n $rating = '';\n $rating = feedback_stars($imageObj->title, $imageObj->rating ?: 10, $imageObj->rating_count ?: 10, array('stars_only' => true));\n $rating = '';\n $rating = feedback_stars($imageObj->title, $imageObj->rating ?: 10, $imageObj->rating_count ?: 10);\n $rating = '';\n */\n //die(\"gh ot=$obj_type\".dump($options, true));\n\n switch($obj_type) {\n case 'user':\n $role = $options['role'];\n if(!$role) $errors[] = \"gallery_object_list: no user role\";\n $count_type = $role == USER_ROLE_ARTIST ? 'project' : 'exhibition';\n\n //dump($imageObjSearch);\n $pageSearch = array('object_type' => 'user', 'object_subtype' => $role);\n $edit_fields = '\"first_name\", \"last_name\", \"display_name\", \"city\", \"country\", \"photo\"';\n $edit_obj_type = 'user_profile';\n break;\n case 'gallery':\n $pageSearch = array('object_type' => 'gallery');\n $count_type = 'image';\n $edit_fields = '\"title\", \"description\", \"image\", \"media\"';\n if($auth_edit && !$options['trash'] && $parent_obj_type == 'user' && $parentObj) {\n $artist_id = $parentObj->id;\n $handler_options = array('handler' => 'new_media_handler', 'handler_operation' => 'new-gallery-folder', 'target' => 'ajax_messages');\n $buttons[] = html_link(\"#\", html_i('', \"fa fa-folder\").\" \".phrase('new', CAPITALIZE).' '.phrase('folder'), array('data-options' => json_encode($handler_options), 'class' => 'btn btn-success add_object', 'data-form_class' => 'fieldset_left_wide', 'data-obj_type' => \"gallery\", 'data-fields' => '[\"site_id\", \"user_id\", \"type\", \"title\", \"description\", \"title_image\"]', 'data-data' => '{\"site_id\": \"'.$siteObj->id.'\", \"user_id\": \"'.$artist_id.'\"}'));\n }\n break;\n case 'media_collection':\n $pageSearch = array('object_type' => 'media_collection', 'object_subtype' => $obj->type ?: $options['type']);\n $count_type = 'image';\n if($auth_edit && $obj_subtype) {\n $collection_type = $obj_subtype;\n $collection_type_name = get_object('media_collection_type', $obj_subtype, 'name');\n\n $artist_id = $parentObj->id;\n $art_link = html_link(gallery_vault_link($siteObj, $parentObj->id), \"your vault\");\n $help_text = \"To add images to your $collection_type_name, go to $art_link, add a folder with some images, and publish it to a project for others to see.\";\n\n $handler_options = array('handler' => 'new_media_handler', 'handler_operation' => 'new-media-collection', 'target' => 'ajax_messages', 'dialog_title' => phrase('new', CAPITALIZE).' '.$collection_type_name, 'obj_type' => 'media_collection');\n $buttons[] = html_link(\"#\", html_i('', \"fontello icon-picture\").\" \".phrase('new', CAPITALIZE).' '.phrase($collection_type_name), array('data-options' => json_encode($handler_options), 'class' => 'btn btn-success margin_bottom add_object', 'data-form_class' => 'fieldset_left_wide', 'data-obj_type' => \"media_collection\", 'data-fields' => '[\"site_id\", \"user_id\", \"type\", \"title\", \"description\", \"title_image\"]', 'data-data' => '{\"site_id\": \"'.$siteObj->id.'\", \"type\": \"'.$collection_type.'\", \"user_id\": \"'.$artist_id.'\"}'));\n }\n \n break;\n case 'media_collection_map':\n $pageSearch = array('object_type' => 'media_collection', 'object_subtype' => $obj->type ?: $options['type']);\n $count_type = 'image'; \n switch($parent_obj_type) {\n case 'media_collection':\n if($parent_obj_subtype) {\n $collection_type = get_object('media_collection_type', $parent_obj_subtype, 'name');\n switch($parent_obj_subtype) {\n case MEDIA_COLLECTION_TYPE_PROJECT: \n $art_link = html_link(gallery_vault_link($siteObj, $parentObj->user_id), \"browse your vault\");\n break;\n default:\n $art_link = html_link(gallery_artist_link($siteObj), \"browse the artists\");\n break;\n }\n $help_text = \"To add images to your $collection_type, $art_link, check the checkbox next to images you want to add, then use the menu on top and choose 'Add to'\";\n }\n break;\n default:\n break; \n }\n break;\n case 'media':\n $pageSearch = array('object_type' => 'media');\n $count_type = '';\n $edit_fields = '\"name\", \"short_description\", \"comment\", \"user_filename\"'; \n break;\n default: \n $errors[] = \"gallery_object_list: unsuported object type $obj_type\"; \n }\n\n // add quick upload button\n //echo(\"auth=$auth_edit pot=$parent_obj_type pid=$parent_id<br>\");\n if($auth_edit && $parent_obj_type == 'gallery' && $parent_id && !$options['trash']) {\n $galleryObj = $parentObj;\n $gallery_id = $parent_id;\n \n $class_attrs = get_object_attributes('gallery', false);\n $upload_options = $class_attrs['media'][ATT_LENGTH];\n \n $fld = 'media';\n $val = $galleryObj->$fld;\n \n $mediaData['user_id'] = $galleryObj->user_id; // means that images are stored in separate directory per user\n $mediaData['parent_id'] = $gallery_id;\n $mediaData['parent_type'] = 'gallery';\n $mediaData['parent_field'] = $fld;\n\n $upload_options['media_data'] = $mediaData;\n $upload_options['data-value_list'] = $val;\n $upload_options['show_file_list'] = false;\n $upload_options['title'] = \"Click or drag to upload media\";\n $upload_options['handler'] = 'new_media_handler';\n $upload_options['handler_options'] = $options;\n\n //dump($upload_options);\n $uploader = jquery_file_uploader(\"gallery-$gallery_id-$fld\", $val, $upload_options);\n }\n \n if(!$objects) {\n if($format == 'json' || $object_only || $link_only) return array();\n $output .= $title.html_h3('['.phrase('empty', CAPITALIZE).']', 'content_subtitle');\n if($auth_edit && $help_text) $output .= $help_text;\n //$output .= $uploader;\n //return $output;\n }\n \n $base_link = $base_link ?: $options['base_link'] ?: site_page_link($siteObj, PAGE_GALLERY, array('search' => $pageSearch)); // e.g. '/art/project/'\n\n if($errors) {\n echo(implode(html_break(), $errors));\n dump($options);\n return;\n \n }\n\n $html = true;\n switch($format) {\n case 'json':\n $html = false;\n break;\n case 'icons':\n $container_class = 'icon_list';\n break;\n case 'compact':\n $container_class = 'compact_list box-drop-shadow';\n break;\n case 'list':\n $item_class = 'border-bottom-light relative';\n $container_class = 'gallery_list box-drop-shadow';\n break;\n default:\n break;\n } \n if($auth_edit) {\n $container_class .= ' sortable';\n $containerOptions['data-obj_type'] = $obj_type == 'user' ? 'user_profile' : $obj_type;\n }\n \n $jsonObjs = array();\n $artistJson = NULL;\n $profileObjs = array();\n $items = array();\n \n //dump($options);\n \n $i=0;\n $options['count'] = count($objects);\n $options['edit_fields'] = $edit_fields;\n $link = array();\n //dump($options);\n foreach($objects as $obj) {\n $id = $obj->id;\n $item_id = $id;\n $prefix = 'media-item-';\n\n $options['object'] = $obj;\n $options['index'] = $i;\n \n // parent info is used by navigation (back button) in fancybox/galleria\n if($obj_type == 'media_collection_map') {\n $parent['obj_type'] = 'media_collection';\n $parent['id'] = $obj->media_collection_id;\n } else {\n $parent['obj_type'] = $obj_type;\n $parent['id'] = $id;\n }\n \n $options['parent'] = $parent;\n $imageObj_search_field = $obj_type == 'user' ? 'user_id' : 'id'; // get rid of this hack\n $iid = $obj->$imageObj_search_field;\n\n // $titleSearch = $obj_type == 'media_collection_map' ? array('obj_type' => 'media', 'id' => $obj->media_id) : array('obj_type' => $obj_type, 'id' => $iid); \n $titleSearch = array('obj_type' => $obj_type, 'id' => $iid); \n \n //dump($titleSearch);dump($options);\n //echo(\"gti: base_link = $options[base_link]<br>\"); \n $imageObj = $options['imageObj'] = gallery_title_image($siteObj, $titleSearch, $options); \n //dump($imageObj);echo(\"format=$format\");die();\n\n //$links[] = $imageObj->link;\n if(!$show_link) unset($imageObj->link);\n if($format == 'json') $jsonObjs[] = $imageObj;\n else $items[$item_id] = gallery_object_list_item($siteObj, $obj_type, $iid, $options);\n \n $i++;\n }\n //dump($links);\n \n if($jsonObjs) {\n //dump($jsonObjs);\n //mydie(\"returning \".count($jsonObjs).\" json objects\");\n return $jsonObjs;\n }\n \n // begin output\n $output .= $title;\n \n // $edit_button = $auth_edit ? html_div(inline_edit_link_old('media', 'gallery', 0), 'ie_edit_link') : '';\n // if($edit_button) $output = html_div($edit_button.$output, 'relative');\n\n switch($format) {\n case 'json':\n if($jsonObjs) $script = \"var data=\".json_encode($jsonObjs).\"\\n\";\n if($artistJson) $script .= \"var artists=\".json_encode($artistJson).\"\\n\";\n $output .= html_div('', $container_class, array('id' => $container_id, 'width' => $w, 'height' => $h)); // place holder for viewer\n break;\n\n default: // html, list\n if($container_id) $containerOptions['id'] = $container_id;\n if(!$no_list) {\n $containerOptions['item_class'] = $item_class;\n $containerOptions['item_prefix'] = $prefix;\n }\n if(count($buttons)) $output .= html_div(implode(\"\\n\", $buttons), 'margin_bottom'); \n //echo(\"cc=$container_class\");\n $output .= $no_list ? html_div(implode(\"\\n\", $items), $container_class, $containerOptions) : html_ul($items, $options['list_class'] ?: $container_class, $containerOptions);\n $output .= $uploader;\n //$output .= html_ul($items, $container_class, array('id' => $container_id, 'item_class' => $item_class));\n //$output .= html_div('', 'clear_float');\n break;\n }\n\n //$debug = \"format=$format auth=$auth_edit uploader=$uploader pot=$parent_obj_type pid=$parent_id\";\n $debug = '';\n return $debug.$output;\n \n return $output;\n}", "title": "" }, { "docid": "dec21bb0546e63f262d784f6058d0b8e", "score": "0.54452336", "text": "private function getListe() {\n $l = $this->data[0];\n $action = $this->container->router->pathFor('modifliste');\n $action2 = $this->container->router->pathFor('modifitem');\n $action3 = $this->container->router->pathFor('modifimage');\n $action4 = $this->container->router->pathFor('suppItem');\n\n if(!isset($_COOKIE['createur'])) {\n if($l->expiration > date('Y-m-j')) {\n setcookie('createur'.$l->no, serialize($l->no), time()+3600*24*30*12);\n }\n }else\n {\n if($l->expiration < date('Y-m-j')) {\n unset($_COOKIE['createur'.$l->no]);\n }\n }\n if(!is_null($l->token))\n {\n $lienconsultation = $this->container->router->pathFor('affichageliste', ['id'=>$l->token]);\n $participant = \"<p>Lien de consultation pour les participants: <a href=\".$lienconsultation.\">ici</a></p>\";\n }else\n {\n $actionvalider = $this->container->router->pathFor('validerliste');\n $participant = <<<END\n<form method=\"post\" action=\"$actionvalider\" id=\"formvalider\">\n <input type=\"hidden\" name=\"id\" value=\"$l->no\" />\n <button type=\"submit\">Valider la liste</button>\n</form>\nEND;\n\n }\n if(is_null($l))\n {\n return \"<h2>Liste Inexistante</h2>\";\n }\n $retour = <<<END\n<h2>Liste n°$l->no</h2>\n<h3>Espace Createur</h3>\n<p>Nom: $l->titre</p>\n<p>Description: $l->description</p>\n<p>Expiration: $l->expiration</p>\n<p>Propriétaire: $l->user_id</p>\n<ul>\n <p>Items: </p>\nEND;\n $items = $l->items;\n foreach($items as $var=>$val)\n {\n if(isset($_COOKIE['createur'.$l->no])) {\n if(is_null($val->reservation)) {\n $reserver = \"Non réservé \";\n\n }else{\n $reserver = \"Réservé\";\n }\n }else\n {\n if(is_null($val->reservation)) {\n $reserver = \"Non réservé <form method='GET' action = $action4 ><input type='hidden' name='id' value='$val->id' /><button type='submit'>Supprimer item</button></form>\";\n }else{\n $reserver = 'Réservé par '.$val->reservation.' Message: '.$val->message;\n }\n }\n $retour .= '<li>'.$val->id.' '.$val->nom.' '.$val->desc.' '.$val->tarif.'€ '.$reserver.'</li>';\n }\n $retour .= \"</ul>\";\n if($l->public == 1) {\n $public = \"Liste publique\";\n }else\n {\n $public = \"Liste privée\";\n }\n $retour .= <<<END\n<form method=\"POST\" action=\"$action\" id=\"formmodif\">\n <input type=\"hidden\" name=\"id\" value=\"$l->no\" />\n\t<label>Nouveau nom:<br> <input type=\"text\" name=\"nom\" value=\"$l->titre\"/></label><br>\n\t<label>Nouvelle Description: <br><input type=\"text\" name=\"description\" value=\"$l->description\"/></label><br>\n\t<label>Changer l'état de la liste: <input type=\"checkbox\" name=\"public\" value=\"1\"> (Etat actuel: $public) </label><br>\n\t<button type=\"submit\">Enregistrer la liste</button>\n</form>\t\n\n<form method=\"POST\" action=\"$action2\" id=\"formitem\">\n <h3>Ajouter/Modifier un item</h3>\n <label>En cas de modification, entrez le numéro de l'item à modifier (l'item doit appartenir à votre liste)<br></label>\n <input type=\"hidden\" name=\"id\" value=\"$l->no\" />\n <label>Identifiant item:<br> <input type=\"number\" name=\"iditem\"/></label><br>\n <label>Nom:<br> <input type=\"text\" name=\"nomitem\"/></label><br>\n <label>Description:<br> <input type=\"text\" name=\"description\"/></label><br>\n <label>Url site:<br> <input type=\"text\" name=\"urlitem\"/></label><br>\n <label>Tarif:<br> <input type=\"number\" name=\"tarifitem\"/></label><br>\n <label>Image:<br> <input type=\"text\" name=\"urlimgitem\"/></label><br> \n <button type=\"submit\">Enregistrer item</button>\n</form>\n<form method=\"POST\" action=\"$action3\">\n <h3>Modifier/Supprimer une image d'un item</h3>\n <label>Identifiant item:<br> <input type=\"number\" name=\"iditem\"/></label><br>\n <label>Image:<br> <input type=\"text\" name=\"imgitem\"/></label><br>\n <label>Url site:<br> <input type=\"text\" name=\"urlitem\"/></label><br> \n <button type=\"submit\">Modifier une image</button>\n</form>\n$participant\n\nEND;\n\n return $retour;\n }", "title": "" }, { "docid": "9c01f22f77f3cd254b0a50ae98253332", "score": "0.5434104", "text": "function SetupListOptions() {\n\t\tglobal $Security, $Language;\n\n\t\t// Add group option item\n\t\t$item = &$this->ListOptions->Add($this->ListOptions->GroupOptionName);\n\t\t$item->Body = \"\";\n\t\t$item->OnLeft = TRUE;\n\t\t$item->Visible = FALSE;\n\n\t\t// \"edit\"\n\t\t$item = &$this->ListOptions->Add(\"edit\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->CanEdit();\n\t\t$item->OnLeft = TRUE;\n\n\t\t// \"detail_vw_bill_ranap_detail_visitekonsul_dokter\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_visitekonsul_dokter\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_visitekonsul_dokter') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_visitekonsul_dokter_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_visitekonsul_dokter_grid\"] = new cvw_bill_ranap_detail_visitekonsul_dokter_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_konsul_dokter\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_konsul_dokter\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_konsul_dokter') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_konsul_dokter_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_konsul_dokter_grid\"] = new cvw_bill_ranap_detail_konsul_dokter_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_tmno\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_tmno\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_tmno') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_tmno_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_tmno_grid\"] = new cvw_bill_ranap_detail_tmno_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_tindakan_perawat\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_tindakan_perawat\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_tindakan_perawat') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_tindakan_perawat_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_tindakan_perawat_grid\"] = new cvw_bill_ranap_detail_tindakan_perawat_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_visite_gizi\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_visite_gizi\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_visite_gizi') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_visite_gizi_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_visite_gizi_grid\"] = new cvw_bill_ranap_detail_visite_gizi_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_visite_farmasi\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_visite_farmasi\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_visite_farmasi') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_visite_farmasi_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_visite_farmasi_grid\"] = new cvw_bill_ranap_detail_visite_farmasi_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_tindakan_penunjang\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_tindakan_penunjang\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_tindakan_penunjang') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_tindakan_penunjang_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_tindakan_penunjang_grid\"] = new cvw_bill_ranap_detail_tindakan_penunjang_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_konsul_vct\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_konsul_vct\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_konsul_vct') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_konsul_vct_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_konsul_vct_grid\"] = new cvw_bill_ranap_detail_konsul_vct_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_pelayanan_los\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_pelayanan_los\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_pelayanan_los') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_pelayanan_los_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_pelayanan_los_grid\"] = new cvw_bill_ranap_detail_pelayanan_los_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_tindakan_lain\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_tindakan_lain\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_tindakan_lain') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_tindakan_lain_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_tindakan_lain_grid\"] = new cvw_bill_ranap_detail_tindakan_lain_grid;\n\n\t\t// \"detail_vw_bill_ranap_detail_tindakan_kebidanan\"\n\t\t$item = &$this->ListOptions->Add(\"detail_vw_bill_ranap_detail_tindakan_kebidanan\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->Visible = $Security->AllowList(CurrentProjectID() . 'vw_bill_ranap_detail_tindakan_kebidanan') && !$this->ShowMultipleDetails;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\tif (!isset($GLOBALS[\"vw_bill_ranap_detail_tindakan_kebidanan_grid\"])) $GLOBALS[\"vw_bill_ranap_detail_tindakan_kebidanan_grid\"] = new cvw_bill_ranap_detail_tindakan_kebidanan_grid;\n\n\t\t// Multiple details\n\t\tif ($this->ShowMultipleDetails) {\n\t\t\t$item = &$this->ListOptions->Add(\"details\");\n\t\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t\t$item->Visible = $this->ShowMultipleDetails;\n\t\t\t$item->OnLeft = TRUE;\n\t\t\t$item->ShowInButtonGroup = FALSE;\n\t\t}\n\n\t\t// Set up detail pages\n\t\t$pages = new cSubPages();\n\t\t$pages->Add(\"vw_bill_ranap_detail_visitekonsul_dokter\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_konsul_dokter\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_tmno\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_tindakan_perawat\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_visite_gizi\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_visite_farmasi\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_tindakan_penunjang\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_konsul_vct\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_pelayanan_los\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_tindakan_lain\");\n\t\t$pages->Add(\"vw_bill_ranap_detail_tindakan_kebidanan\");\n\t\t$this->DetailPages = $pages;\n\n\t\t// List actions\n\t\t$item = &$this->ListOptions->Add(\"listactions\");\n\t\t$item->CssStyle = \"white-space: nowrap;\";\n\t\t$item->OnLeft = TRUE;\n\t\t$item->Visible = FALSE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\t\t$item->ShowInDropDown = FALSE;\n\n\t\t// \"checkbox\"\n\t\t$item = &$this->ListOptions->Add(\"checkbox\");\n\t\t$item->Visible = FALSE;\n\t\t$item->OnLeft = TRUE;\n\t\t$item->Header = \"<div class=\\\"checkbox\\\"><label><input class=\\\"magic-checkbox\\\" type=\\\"checkbox\\\" name=\\\"key\\\" id=\\\"key\\\" onclick=\\\"ew_SelectAllKey(this);\\\"><span></span></label></div>\";\n\t\t$item->MoveTo(0);\n\t\t$item->ShowInDropDown = FALSE;\n\t\t$item->ShowInButtonGroup = FALSE;\n\n\t\t// Drop down button for ListOptions\n\t\t$this->ListOptions->UseImageAndText = TRUE;\n\t\t$this->ListOptions->UseDropDownButton = FALSE;\n\t\t$this->ListOptions->DropDownButtonPhrase = $Language->Phrase(\"ButtonListOptions\");\n\t\t$this->ListOptions->UseButtonGroup = TRUE;\n\t\tif ($this->ListOptions->UseButtonGroup && ew_IsMobile())\n\t\t\t$this->ListOptions->UseDropDownButton = TRUE;\n\t\t$this->ListOptions->ButtonClass = \"btn-sm\"; // Class for button group\n\n\t\t// Call ListOptions_Load event\n\t\t$this->ListOptions_Load();\n\t\t$this->SetupListOptionsExt();\n\t\t$item = &$this->ListOptions->GetItem($this->ListOptions->GroupOptionName);\n\t\t$item->Visible = $this->ListOptions->GroupOptionVisible();\n\t}", "title": "" }, { "docid": "5b05f8e156aeaf39d4acb2619dc7cfb1", "score": "0.5432764", "text": "function show_list()\n\t{\n\t\tglobal $g_db;\n\n\t\t$tmp = $g_db->get_array(\"SELECT $this->c_name AS o_name FROM $this->s_table WHERE $this->c_value='$this->value'\");\n\n\t\treturn isset($tmp['o_name']) ? $tmp['o_name'] : '';\n\t}", "title": "" }, { "docid": "9f28605f892652a618f391036d037e99", "score": "0.54309964", "text": "public function getList()\n {\n $this->setContent((new Group($this->mysql()))->renderTable('groupAdmin'));\n }", "title": "" }, { "docid": "95cd4425dd3a38b3db62f7173ac0db2c", "score": "0.5430716", "text": "function project24_admin_form($form) {\n $form['project24_selected_nodes'] = array(\n \"#type\" => \"select\",\n '#multiple' => TRUE,\n \"#title\" => t(\"Select your node.\"),\n \"#default_value\" => variable_get(\"project24_selected_nodes\", true),\n \"#options\" => project24_get_all_nodes(),\n );\n\n return system_settings_form($form);\n}", "title": "" }, { "docid": "30d6002c2ecdf07ae200b07500ff15a6", "score": "0.5425499", "text": "function get_genre_form(){\n return $this->genre->form->fieldtype;\n }", "title": "" }, { "docid": "a2969a91f92f4d7e9c15b787cb5d1c10", "score": "0.54249793", "text": "function go_org_list() {\n\n\tif(!has_user_permission(__FUNCTION__)) return; \n\n\tglobal $ROW, $TEMPLATE;\n\tLOG_MSG('INFO',\"go_org_list(): START GET=\".print_r($_GET,true));\n\n if ( !is_superuser() ) {\n add_msg('ERROR','Sorry! You do not have sufficient privileges');\n return;\n }\n\n\t// Do we have a search string?\n\t// Get all the args from $_GET\n\t$name=get_arg($_GET,\"name\");\n\t$logo=get_arg($_GET,\"logo\");\n\tLOG_MSG('DEBUG',\"do_org_list(): Got args\");\n\n\t// Validate parameters as normal strings \n\tif (\n\t\t!validate(\"Name\",$name,0,200,\"varchar\") ||\n\t\t!validate(\"logo\",$logo,0,100,\"varchar\") ){\n\t\tLOG_MSG('ERROR',\"do_org_list(): Validate args failed!\");\n\t\treturn;\n\t}\n\tLOG_MSG('DEBUG',\"do_org_list(): Validated args\");\n\n\t// Rebuild search string for future pages\n\t$search_str=\"\n\t\tname=$name&\n\t\tlogo=$logo\";\n\n\n\t$ROW=db_org_select(\n\t\t\"\",\n\t\t\t$name,\n\t\t\t$logo);\n\tif ( $ROW[0]['STATUS'] != \"OK\" ) {\n\t\tadd_msg(\"ERROR\",\"There was an error loading the orgs. Please try again later. <br/>\");\n\t\treturn;\n\t}\n\n\n\t// PAGE & URL Details\n\t$page_arr=get_page_params($ROW[0][\"NROWS\"]);\n\t$url=\"index.php?mod=admin&ent=org&go=list&$search_str\";\n\t$search_url='';\n\t$order_url='';\n\t$ordert_url='';\n\t$page_url='&page='.get_arg($page_arr,'page');\n\n\n\t// No rows found\n\tif ( !get_arg($ROW[0],'IS_SEARCH') && get_arg($page_arr,'page_row_count') <= 0 ) {\n\t\tadd_msg(\"NOTICE\",\"No orgs found! <br />Click on <strong>Add org</strong> to create a one.<br />\"); \n\t}\n\n\tif ( isset( $TEMPLATE ) ) { $template=$TEMPLATE; } else { $template=TEMPLATE_DIR.\"list.html\"; } \n\tinclude($template); \n\n\tLOG_MSG('INFO',\"go_org_list(): END\");\n}", "title": "" }, { "docid": "f7a789763eef3c5b1b74b1236d83bf69", "score": "0.54205716", "text": "function gettree() {\n\t\techo \"<div class=\\\"actions\\\">\n\t\t\t<input type=\\\"button\\\" name=\\\"save\\\" value=\\\"\"._t('TreeSelectorField.SAVE', 'save').\"\\\" />\n\t\t\t<input type=\\\"button\\\" name=\\\"cancel\\\" value=\\\"\"._t('TreeSelectorField.CANCEL', 'cancel').\"\\\" />\n\t\t</div>\";\n\t\t\n\n\t\t$obj = singleton($this->sourceObject);\n\t\t$obj->markPartialTree(10);\n\t\t\n\t\t$eval = '\"<li id=\\\"selector-' . $this->name . '-$child->ID\\\" class=\\\"$child->class closed\" . ($child->isExpanded() ? \"\" : \" unexpanded\") . \"\\\"><a>\" . $child->Title . \"</a>\"';\n\t\techo $obj->getChildrenAsUL(\"class=\\\"tree\\\"\", $eval, null, true);\n\n\t}", "title": "" }, { "docid": "2a7aa97d26734cb78bd885524b3e6dbb", "score": "0.5406606", "text": "function edit_group_fields(){\n global $bp;\n \n $fields = $this->get_all_items('fields', $bp->groups->current_group->id);\n \n if (empty($fields))\n return false;\n \n foreach( $fields as $field ){\n $field->value = groups_get_groupmeta($bp->groups->current_group->id, $field->slug);\n $req = false;\n if ( $field->required == 1 ) $req = '* ';\n echo '<label for=\"' . $field->slug . '\">' . $req . $field->title . '</label>';\n switch($field->type){\n case 'text':\n echo '<input id=\"' . $field->slug . '\" name=\"bpge-' . $field->slug . '\" type=\"text\" value=\"' . $field->value . '\" />';\n break;\n case 'textarea':\n echo '<textarea id=\"' . $field->slug . '\" name=\"bpge-' . $field->slug . '\">' . $field->value . '</textarea>';\n break;\n case 'select':\n echo '<select id=\"' . $field->slug . '\" name=\"bpge-' . $field->slug . '\">';\n echo '<option ' . ($field->value == $option ? 'selected=\"selected\"' : '') .' value=\"\">-------</option>';\n foreach($field->options as $option){\n echo '<option ' . ($field->value == $option ? 'selected=\"selected\"' : '') .' value=\"' . $option . '\">' . $option . '</option>';\n }\n echo '</select>';\n break;\n case 'checkbox':\n foreach($field->options as $option){\n echo '<input ' . ( in_array($option, (array)$field->value) ? 'checked=\"checked\"' : '') .' type=\"' . $field->type . '\" name=\"bpge-' . $field->slug . '[]\" value=\"' . $option . '\"> ' . $option . '<br />';\n }\n break;\n case 'radio':\n echo '<span id=\"bpge-' . $field->slug . '\">';\n foreach($field->options as $option){\n echo '<input ' . ($field->value == $option ? 'checked=\"checked\"' : '') .' type=\"' . $field->type . '\" name=\"bpge-' . $field->slug . '\" value=\"' . $option . '\"> ' . $option . '<br />';\n }\n echo '</span>';\n if ($req) \n echo '<a class=\"clear-value\" href=\"javascript:clear( \\'bpge-' . $field->slug . '\\' );\">'. __( 'Clear', 'bpge' ) .'</a>';\n break;\n case 'datebox':\n echo '<input id=\"' . $field->slug . '\" class=\"datebox\" name=\"bpge-' . $field->slug . '\" type=\"text\" value=\"' . $field->value . '\" />';\n break; \n }\n if ( ! empty($field->desc) ) echo '<p class=\"description\">' . $field->desc . '</p>';\n $req = false;\n }\n do_action('bpge_group_fields_edit', $this, $fields);\n }", "title": "" }, { "docid": "5f3ce60bd828b300854a0278639aa48d", "score": "0.5406395", "text": "function selection_ul($current = NULL, $labels = NULL, ...$fields)\n{\n $form[] = '<ul>';\n // $form [] = '<li><input type=\"hidden\" id=\"link\" name=\"page\" value=\"' . $link .'\"></li>';\n for ($i = 0; $i < count($fields); $i ++) {\n $field = $fields[$i];\n $name = key($field);\n $l = $labels[$i] ? $labels[$i] : $name;\n $form[] = '<li><label for=\"' . $name . '\">' . $l . '</label>';\n $form[] = '<select id=\"' . $name . '\" name=\"' . $name . '\">';\n $form[] = '<option value=\"' . NULL . '\">Alle</option>';\n foreach ($field[$name] as $val) {\n $sel = $current[$name] === $val ? \"selected\" : NULL;\n $form[] = '<option value=\"' . $val . '\" ' . $sel . '>' . $val . '</option>';\n }\n $form[] = '</select></li>';\n }\n $form[] = '<li><input type=\"submit\" id=\"choose\" value=\"Auswahl\"></li>';\n $form[] = '</ul>';\n echo implode(\"\\n\", $form);\n}", "title": "" }, { "docid": "ec4f65578cf47f7dacb65a8fad0c8fdc", "score": "0.5405397", "text": "function _find_list() {\r\n\t\treturn $this->Categorynewsshop->generatetreelist(null, null, null, '__');\r\n\t}", "title": "" }, { "docid": "61f4f541bd051f59ef895600b71cb993", "score": "0.5404731", "text": "private function GetPreviewList() {\n if (!$this->IsNullOrEmpty($this->_operation)) {\n if ($this->_operation == \"drop\" && !$this->IsNullOrEmpty($this->_offer)) {\n $this->DropOffer($this->_offer);\n }\n }\n\t\t$list = $this->getOfferList();\n\t\tforeach ($list as &$offers) {\n\t\t\tif ($offers['updatedBy'] > 0) {\n\t\t\t\t$emp = $this->getEmployeeById($offers['updatedBy']);\n\t\t\t\t$offers['empName'] = $emp['firstname'] . \" \" . $emp['lastname'];\n\t\t\t} else {\n\t\t\t\t$offers['empName'] = \"&nbsp;\";\n\t\t\t}\n\t\t}\n $max_id = $this->GetLastId();\n $this->smarty->assign(\"_window\", 1);\n $this->smarty->assign(\"_max_id\", $max_id);\n\t\t$this->smarty->assign('pogModuleTitle', 'PDF Order Generator - Configurator');\n\t\t$this->smarty->assign(array('lst' => $list));\n \n $this->AssignedRequireds();\n }", "title": "" }, { "docid": "a094dd0d02abc9ec2b01213aa4d24ac5", "score": "0.5403603", "text": "function html_adminPage() {\n $data = $this->db->getAllProductNames();\n $string = \"<div class='admin'><h2>Edit an Item</h2><form action='admin.php' method='post'><select name='product'>\";\n foreach($data as $val) {\n $string .= \"<option value='{$val}'>{$val}</option>\";\n }\n $string .= \"</select><input type='submit' value='Edit'/></form>\";\n return $string;\n }", "title": "" }, { "docid": "fc223c5b00d9a997168cd2f26a38367f", "score": "0.5397461", "text": "function druck_option_werte()\n\t{\n\t\t// holt alle multi, select,radio und check Felder f�r diese Verwaltung und Metaebene aus der Datenbank\n\t\t$sql = sprintf(\"SELECT * FROM %s\n\t WHERE mvcform_meta_id = '1'\n\t AND mvcform_form_id = '1'\n\t AND (mvcform_type = 'select'\n\t OR mvcform_type ='multiselect'\n\t OR mvcform_type = 'check'\n\t OR mvcform_type = 'radio')\n\t ORDER by mvcform_id\",\n\t\t\t$this->cms->tbname['papoo_mvcform']\n\t\t);\n\t\t$felder = $this->db->get_results($sql, ARRAY_A);\n\t\tif (!empty($felder)) {\n\t\t\t$out = \"<h2>Ausgabe der Feldwerte f&uuml;r die Feldtypen select/multiselect/check/radio</h2>\";\n\t\t\t// loope alle Felder durch\n\t\t\tforeach ($felder as $feld) {\n\t\t\t\t// holt alle m�glichen Auswahlwerte f�r dieses Feld aus der Datenbank\n\t\t\t\t$sql = sprintf(\"SELECT content FROM %s\n\t\t WHERE lang_id = 1\",\n\t\t\t\t\t$this->cms->tbname['papoo_mv']\n\t\t\t\t\t. \"_content_1_lang_\"\n\t\t\t\t\t. $this->db->escape($feld['mvcform_id'])\n\t\t\t\t);\n\t\t\t\t$content = $this->db->get_results($sql, ARRAY_A);\n\t\t\t\t// Feldname in Bold\n\t\t\t\t$out .= \"<strong>Feldname: \"\n\t\t\t\t\t. $feld['mvcform_name']\n\t\t\t\t\t. \"_\"\n\t\t\t\t\t. $feld['mvcform_id']\n\t\t\t\t\t. '</strong><ol style=\"margin-top:0\">';\n\t\t\t\tif (!empty($content)) {\n\t\t\t\t\t// Feldoptionen auflisten\n\t\t\t\t\t$i = 1;\n\t\t\t\t\tforeach ($content as $wert) {\n\t\t\t\t\t\t$out .= \"<li> \"\n\t\t\t\t\t\t\t. $wert['content']\n\t\t\t\t\t\t\t. \"</li>\";\n\t\t\t\t\t\t#$i++;\n\t\t\t\t\t}\n\t\t\t\t\t$out .= \"</ol>\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Liste ans Template weitergeben\n\t\t$this->content->template['mv_out'] = $out;\n\t}", "title": "" }, { "docid": "39aea3625ad1cac6110641421a3b8cdd", "score": "0.5396173", "text": "function output_vedlikehold_list()\n{\n\tglobal $formdata;\n\n\t$query = \"SELECT DISTINCT beboer_id AS id, beboer_for, beboer_etter\n\t\t\t\tFROM bs_beboer, bs_deltager\n\t\t\t\tWHERE deltager_beboer = beboer_id\n\t\t\t\t\tAND deltager_dugnad = '-2'\";\n\n\tif(empty($formdata[\"sorts\"]) || !strcmp($formdata[\"sorts\"], \"last\") )\n\t{\n\t\t/* SORT BY LAST NAME */\n\n\t\t$sort_last = \"checked='checked' \";\n\t\t$query .= \"ORDER BY beboer_etter, beboer_for\";\n\t}\n\telse\n\t{\n\t\t/* SORT BY FIRST NAME */\n\n\t\t$sort_first = \"checked='checked' \";\n\t\t$query .= \"ORDER BY beboer_for, beboer_etter\";\n\t}\n\n\t$hidden = \"<input type='hidden' name='do' value='admin' />\n\t\t\t\t\t\t<input type='hidden' name='admin' value='Dagdugnad' />\";\n\n\t$list_title = \"Dagdugnad\";\n\n\t$admin_buttons = \"<div class='dagdugnad_beboerselect'>Velg ny beboer som skal ha dagdugnad: \". get_vedlikehold_beboer_select() .\" <input type='submit' class='check_space' value='Oppdater Dagdugnadslisten' /></div>\";\n\n\t$content = \"<h1>\". $list_title .\"</h1>\n\t\t\t\t<p>\n\t\t\t\t\tDu kan tilf&oslash;ye en dagdugnad ved &aring; velge beboeren fra listen under.\n\t\t\t\t\t<b>Hvis du tildeler en dagdugnad</b>, er det viktig at du ber beboeren velge hvilken av de ordin&aelig;re dugnadene\n\t\t\t\t\tsom skal slettes. <b>N&aring;r en dagdugnad er utf&oslash;rt</b>, er det ogs&aring; viktig at du merker\n\t\t\t\t\tdagdugnaden som utf&oslash;rt.\n\t\t\t\t</p>\n\t\t\t\t\";\n\t$content .= \"<form method='post' action='index.php'>\n\n\t\". $hidden .\"\n\n\t<p>\n\t\t<input type='radio' name='sorts' value='last' \". $sort_last .\"/> Sorter etter etternavn\n\t\t<input type='radio' class='check_space' name='sorts' value='first' \". $sort_first .\"/> Sorter etter fornavn\n\t\t<input type='submit' class='check_space' name='update' value='Oppdater visning' />\n\t\t<input type='submit' class='check_space' name='act' value='Vis dugnadskalenderen' /></form>\n\t</p>\n\n\t\t<form method='post' action='index.php'>\". $hidden .\"\n\t\t\\n\";\n\n\n\t/* CREATING THE ITEM LINES\n\t---------------------------------------------------------------------- */\n\n\t$c = 0;\n\t$result = @run_query($query . $sort_query);\n\n\t$content .= \"<div class='row_explained'><div class='name_narrow'>Beboerens navn</div><div class='when_narrow'>Dugnadstatus</div><div class='note'>Notater</div><div class='spacer'>&nbsp;</div></div>\";\n\n\tif(@mysql_num_rows($result) > 0)\n\t{\n\t\twhile($row = @mysql_fetch_array($result) )\n\t\t{\n\t\t\t$content .= \"\\n\\n\". show_vedlikehold_person($row[\"id\"], $c++);\n\t\t}\n\t}\n\telse\n\t{\n\t\t$content .= \"<p>Ingen beboere er satt opp med dagdugnad.</p>\";\n\t}\n\n\tlist($antall, $dato) = count_dugnad_barn();\n\n\treturn $content . $admin_buttons . \"</form>\n\t<h1>Ordin&aelig;r helgedugnad</h1>\n\t<p>F&oslash;rstkommende helg har \". $antall .\" beboere ordin&aelig;r dugnad (\". $dato .\")\". (isset($formdata[\"showkids\"]) ? \".<br /><a href='index.php?do=admin&admin=Dagdugnad'>Skjul dugnadsdeltagerne.</a></p>\". get_all_barn() : \".<br /><a href='index.php?do=admin&admin=Dagdugnad&showkids=true'>Vis alle dugnadsdeltagerne.</a></p>\");\n}", "title": "" }, { "docid": "04c7aea86840811332187ca4d7778ae5", "score": "0.53917843", "text": "function output_ryddevakt_list()\n{\n\tglobal $formdata;\n\n\t$query = \"SELECT DISTINCT beboer_id AS id, beboer_for, beboer_etter\n\t\t\t\tFROM bs_beboer, bs_deltager\n\t\t\t\tWHERE deltager_beboer = beboer_id\n\t\t\t\t\tAND deltager_dugnad = '-2'\";\n\n\tif(empty($formdata[\"sorts\"]) || !strcmp($formdata[\"sorts\"], \"last\") )\n\t{\n\t\t/* SORT BY LAST NAME */\n\n\t\t$sort_last = \"checked='checked' \";\n\t\t$query .= \"ORDER BY beboer_etter, beboer_for\";\n\t}\n\telse\n\t{\n\t\t/* SORT BY FIRST NAME */\n\n\t\t$sort_first = \"checked='checked' \";\n\t\t$query .= \"ORDER BY beboer_for, beboer_etter\";\n\t}\n\n\t$hidden = \"<input type='hidden' name='do' value='admin' />\n\t\t\t\t\t\t<input type='hidden' name='admin' value='Dagdugnad' />\";\n\n\t$list_title = \"Dagdugnad\";\n\n\t$admin_buttons = \"<div class='row_explained'>\". get_vedlikehold_beboer_select() .\" <input type='submit' class='check_space' value='Oppdater Dagdugnad' /></div>\";\n\n\t$content = \"<h1>\". $list_title .\"</h1>\n\t\t\t\t<p>\n\t\t\t\t\tDu kan tilf&oslash;ye en dagdugnad ved &aring; velge beboeren fra listen under.\n\t\t\t\t\t<b>Hvis du tildeler en dagdugnad</b>, er det viktig at du ber beboeren velge hvilken av de ordin&aelig;re dugnadene\n\t\t\t\t\tsom skal slettes. <b>N&aring;r en dagdugnad er utf&oslash;rt</b>, er det ogs&aring; viktig at du merker\n\t\t\t\t\tdagdugnaden som utf&oslash;rt.\n\t\t\t\t</p>\n\t\t\t\t\";\n\t$content .= \"<form method='post' action='index.php'>\n\n\t\". $hidden .\"\n\n\t<p>\n\t\t<input type='radio' name='sorts' value='last' \". $sort_last .\"/> Sorter etter etternavn\n\t\t<input type='radio' class='check_space' name='sorts' value='first' \". $sort_first .\"/> Sorter etter fornavn\n\t\t<input type='submit' class='check_space' name='update' value='Oppdater visning' />\n\t\t<input type='submit' class='check_space' name='act' value='Vis dugnadskalenderen' /></form>\n\t</p>\n\n\t\t<form method='post' action='index.php'>\". $hidden .\"\n\t\t\\n\";\n\n\n\t/* CREATING THE ITEM LINES\n\t---------------------------------------------------------------------- */\n\n\t$c = 0;\n\t$result = @run_query($query . $sort_query);\n\n\t$content .= \"<div class='row_explained'><div class='name_narrow'>Beboerens navn</div><div class='when_narrow'>Dugnadstatus</div><div class='note'>Notater</div><div class='spacer'>&nbsp;</div></div>\";\n\n\twhile($row = @mysql_fetch_array($result) )\n\t{\n\t\t$content .= \"\\n\\n\". show_vedlikehold_person($row[\"id\"], $c++);\n\t}\n\n\tlist($antall, $dato) = count_dugnad_barn();\n\n\treturn $content . $admin_buttons . \"</form>\n\t<h1>Vanlig dugnad</h1>\n\t<p>\". $antall .\" beboere har ordin&aelig;r dugnad \". $dato .\".</p>\";\n}", "title": "" }, { "docid": "930d9a0b37ce67ab488bbbf02df3ace5", "score": "0.5388414", "text": "function view() {\n $this->vista->addJS('jquery.fancybox','jquery.dataTable','jquery.pnotify');\n $this->vista->addCSS('jquery.fancybox','jquery.pnotify');\n if(is_blank($this->params['cod_grupo'])) {\n $this->vista->mostrar('form_consultarGrupo');\n }else {\n $cod_grupo = $this->params['cod_grupo'];\n $estudiantes = TGrupo::inscritos($cod_grupo);\n $this->vista->set(array('estudiantes'=>$estudiantes,'cod_grupo'=>$cod_grupo));\n $this->vista->mostrar('view');\n }\n\n }", "title": "" }, { "docid": "f1d1c1fabf2facf2be7b4ce13a0076cf", "score": "0.5383972", "text": "function wmf_list_fields() {\n\tif ( ! wmf_using_template( [ 'page-list', 'page-report', 'page-report-section', 'page-data' ] ) ) {\n\t\treturn;\n\t}\n\n\t$list = new Fieldmanager_Group(\n\t\tarray(\n\t\t\t'name' => 'list',\n\t\t\t'limit' => 0,\n\t\t\t'sortable' => true,\n\t\t\t'add_more_label' => __( 'Add A List Section', 'shiro-admin' ),\n\t\t\t'extra_elements' => 1,\n\t\t\t'children' => array(\n\t\t\t\t'title' => new Fieldmanager_TextField( __( 'Section Title', 'shiro-admin' ) ),\n\t\t\t\t'description' => new Fieldmanager_RichTextArea( __( 'Section Description', 'shiro-admin' ) ),\n\t\t\t\t'links' => new Fieldmanager_Group(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'label' => __( 'List of Links', 'shiro-admin' ),\n\t\t\t\t\t\t'limit' => 0,\n\t\t\t\t\t\t'sortable' => true,\n\t\t\t\t\t\t'extra_elements' => 0,\n\t\t\t\t\t\t'add_more_label' => __( 'Add A List Item', 'shiro-admin' ),\n\t\t\t\t\t\t'children' => array(\n\t\t\t\t\t\t\t'title' => new Fieldmanager_TextField( __( 'List Item Title', 'shiro-admin' ) ),\n\t\t\t\t\t\t\t'image' => new Fieldmanager_Media( __( 'Featured Image', 'shiro-admin' ) ),\n\t\t\t\t\t\t\t'subhead' => new Fieldmanager_Textarea( __( 'List Item Subheading', 'shiro-admin' ) ),\n\t\t\t\t\t\t\t'description' => new Fieldmanager_RichTextArea( __( 'List Item Description', 'shiro-admin' ) ),\n\t\t\t\t\t\t\t'link' => new Fieldmanager_Link( __( 'List Item Link', 'shiro-admin' ) ),\n\t\t\t\t\t\t\t'offsite' => new Fieldmanager_Checkbox( __( 'Show Off Site Link Icon', 'shiro-admin' ) ),\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);\n\n\t$list->add_meta_box( __( 'List', 'shiro-admin' ), 'page' );\n}", "title": "" }, { "docid": "62edf2d3113b9fcb091e6850b72809ac", "score": "0.5382491", "text": "function SetupListOptions() {\r\n\t\tglobal $Security, $Language, $master_transaksi2;\r\n\r\n\t\t// \"detail_rekeningju\"\r\n\t\t$item =& $this->ListOptions->Add(\"detail_rekeningju\");\r\n\t\t$item->CssStyle = \"white-space: nowrap;\";\r\n\t\t$item->Visible = $Security->AllowList('rekeningju');\r\n\t\t$item->OnLeft = TRUE;\r\n\r\n\t\t// Call ListOptions_Load event\r\n\t\t$this->ListOptions_Load();\r\n\t}", "title": "" }, { "docid": "89812215592cc886f8ecdd79d7a533a2", "score": "0.5379454", "text": "function getInfosRub($_Rub)\r\n{\r\n\r\n\t$rq = \"SELECT\r\n \t\t\tn.id__nav, tr._nav, n.url_page\r\n \t\t FROM \r\n \t\t \t_nav n \t\t \t\r\n \t\t INNER JOIN\r\n \t\t \ttrad__nav tr on n.id__nav = tr.id___nav \t\t \t\r\n \t\t WHERE \r\n \t\t \tn.id__nav = $_Rub\r\n \t\t /*AND \r\n \t\t \tselected = 1 */\r\n \t\t AND \r\n \t\t \ttr.id__langue = \".$_SESSION['ses_langue'].\"\r\n \t\t ORDER BY ordre\r\n \t\t \";\t\t\r\n\t//\ttt($rq);\r\n\t$rs = set_query($rq);\r\n\twhile($row = mysql_fetch_array($rs))\r\n\t{\r\n\t\t$id_itemN3 = $row[id__nav];\r\n\t\t$libelle_N3 = $row[_nav];\r\n\t}\r\n\t$item_menu_pro_n1 = array(\"url_lien_item_n1\" => get_url_nav($id_itemN3), \"libelle_lien_item_n1\" => $libelle_N3);\r\n\treturn $item_menu_pro_n1;\r\n}", "title": "" }, { "docid": "fed09a9471963a43af2d9923192dd31c", "score": "0.5376797", "text": "function ur_get_all_user_registration_form( $post_count = -1 ) {\n\t$args = array(\n\t\t'status' => 'publish',\n\t\t'numberposts' => $post_count,\n\t\t'order' => 'ASC',\n\t);\n\t$posts_array = UR()->form->get_form( '', $args );\n\t$all_forms = array();\n\n\tforeach ( $posts_array as $post ) {\n\t\t$all_forms[ $post->ID ] = $post->post_title;\n\t}\n\n\treturn $all_forms;\n}", "title": "" }, { "docid": "86925516debb346b1d09f5077865d65f", "score": "0.5376604", "text": "function phot_arch_spbu_form_add_object_callback($form, $form_state) {\n return $form['names_fieldset'];\n}", "title": "" }, { "docid": "0594432573c43130122c7a770ac7ab6c", "score": "0.5376573", "text": "function show_list()\r\n\t{\r\n\t\tglobal $IN, $INFO, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;\r\n\t\t$ibforums = Ibf::app();\r\n\r\n\t\t$ADMIN->page_title = \"Moderator Control Overview\";\r\n\t\t$ADMIN->page_detail = \"This section allows you to edit, remove and add new moderators to your forums\";\r\n\r\n\t\t$ADMIN->html .= $SKIN->start_form(array(\r\n\t\t 1 => array('code', 'add'),\r\n\t\t 2 => array('act', 'mod'),\r\n\t\t ));\r\n\r\n\t\t$SKIN->td_header[] = array(\"Add\", \"5%\");\r\n\t\t$SKIN->td_header[] = array(\"Forum Name\", \"40%\");\r\n\t\t$SKIN->td_header[] = array(\"Current Moderators\", \"55%\");\r\n\r\n\t\t$ADMIN->html .= $SKIN->start_table(\"Your Categories and Forums\");\r\n\r\n\t\t//------------------------------------\r\n\r\n\t\t$cats = array();\r\n\t\t$forums = array();\r\n\t\t$mods = array();\r\n\t\t$children = array();\r\n\r\n\t\t$stmt = $ibforums->db->query(\r\n\t\t\t\"SELECT *\r\n\t\t\tFROM ibf_categories\r\n\t\t\tWHERE id > 0\r\n\t\t\tORDER BY position ASC\"\r\n\t\t);\r\n\t\twhile ($r = $stmt->fetch())\r\n\t\t{\r\n\t\t\t$cats[$r['id']] = $r;\r\n\t\t}\r\n\r\n\t\t$stmt = $ibforums->db->query(\r\n\t\t\t\"SELECT *\r\n\t\t\tFROM ibf_forums\r\n\t\t\tORDER BY position ASC\"\r\n\t\t);\r\n\t\twhile ($r = $stmt->fetch())\r\n\t\t{\r\n\r\n\t\t\tif ($r['parent_id'] > 0)\r\n\t\t\t{\r\n\t\t\t\t$children[$r['parent_id']][] = $r;\r\n\t\t\t} else\r\n\t\t\t{\r\n\t\t\t\t$forums[] = $r;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t$stmt = $ibforums->db->query(\r\n\t\t\t\"SELECT *\r\n\t\t\tFROM ibf_moderators\"\r\n\t\t);\r\n\t\twhile ($r = $stmt->fetch())\r\n\t\t{\r\n\t\t\t$mods[] = $r;\r\n\t\t}\r\n\r\n\t\t//------------------------------------\r\n\r\n\t\t$last_cat_id = -1;\r\n\r\n\t\tforeach ($cats as $c)\r\n\t\t{\r\n\r\n\t\t\t$ADMIN->html .= $SKIN->add_td_row(array(\r\n\t\t\t '&nbsp;',\r\n\t\t\t \"<a href='{$ADMIN->base_url}&act=cat&code=doeditform&c={$c['id']}'>\" . $c['name'] . \"</a>\",\r\n\t\t\t '&nbsp;',\r\n\t\t\t ), 'pformstrip');\r\n\t\t\t$last_cat_id = $c['id'];\r\n\r\n\t\t\tforeach ($forums as $r)\r\n\t\t\t{\r\n\r\n\t\t\t\tif ($r['category'] == $last_cat_id)\r\n\t\t\t\t{\r\n\t\t\t\t\t$mod_string = \"\";\r\n\r\n\t\t\t\t\tforeach ($mods as $phpid => $data)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif ($data['forum_id'] == $r['id'])\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif ($data['is_group'] == 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$mod_string .= \"<tr>\r\n\t\t\t\t\t\t\t\t\t\t\t <td width='60%'>Group: {$data['group_name']}</td>\r\n\t\t\t\t\t\t\t\t\t\t\t <td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=remove&mid={$data['mid']}'>Remove</a></td>\r\n\t\t\t\t\t\t\t\t\t\t\t <td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=edit&mid={$data['mid']}'>Edit</a></td>\r\n\t\t\t\t\t\t\t\t\t\t</tr>\";\r\n\t\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$mod_string .= \"<tr>\r\n\t\t\t\t\t\t\t\t\t\t\t <td width='60%'>{$data['member_name']}</td>\r\n\t\t\t\t\t\t\t\t\t\t\t <td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=remove&mid={$data['mid']}'>Remove</a></td>\r\n\t\t\t\t\t\t\t\t\t\t\t <td width='20%'><a href='{$ADMIN->base_url}&act=mod&code=edit&mid={$data['mid']}'>Edit</a></td>\r\n\t\t\t\t\t\t\t\t\t\t</tr>\";\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\r\n\t\t\t\t\tif ($mod_string != \"\")\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$these_mods = \"<table>\" . $mod_string . \"</table>\";\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$these_mods = \"<center><i>Unmoderated</i></center>\";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif ($r['subwrap'] == 1 and $r['sub_can_post'] != 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$ADMIN->html .= $SKIN->add_td_row(array(\r\n\t\t\t\t\t\t \"<center><input type='checkbox' name='add_{$r['id']}' value='1'></center>\",\r\n\t\t\t\t\t\t \" - <b>\" . $r['name'] . \"</b>\",\r\n\t\t\t\t\t\t $these_mods\r\n\t\t\t\t\t\t ),\r\n\r\n\t\t\t\t\t\t\t\"subforum\");\r\n\t\t\t\t\t} else\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$css = $r['subwrap'] == 1\r\n\t\t\t\t\t\t\t? 'subforum'\r\n\t\t\t\t\t\t\t: '';\r\n\r\n\t\t\t\t\t\t$ADMIN->html .= $SKIN->add_td_row(array(\r\n\t\t\t\t\t\t \"<center><input type='checkbox' name='add_{$r['id']}' value='1'></center>\",\r\n\t\t\t\t\t\t \"<b>\" . $r['name'] . \"</b>\",\r\n\t\t\t\t\t\t $these_mods\r\n\t\t\t\t\t\t ),\r\n\r\n\t\t\t\t\t\t\t$css);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$this->subforums_addtorow($children, $r['id'], 0, $mods);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$ADMIN->html .= $SKIN->add_td_basic(\"<b>Type of moderator to add:</b> &nbsp;\" . $SKIN->form_dropdown(\"mod_type\", array(\r\n\t\t 0 => array(\r\n\t\t\t 'member',\r\n\t\t\t 'Single Member'\r\n\t\t ),\r\n\t\t 1 => array(\r\n\t\t\t 'group',\r\n\t\t\t 'Member Group'\r\n\t\t )\r\n\t\t )), \"center\");\r\n\r\n\t\t$ADMIN->html .= $SKIN->end_form(\"Add a moderator to the selected forums\");\r\n\r\n\t\t$ADMIN->html .= $SKIN->end_table();\r\n\r\n\t\t$ADMIN->output();\r\n\r\n\t}", "title": "" }, { "docid": "c64974033bd55615a0d4319cb2b55754", "score": "0.5372918", "text": "function make_admin_lists(){\n\t\t$all_of_the_zombies = $this->get_names();\n\t\t\t\t\techo '<ul>';\n\t\t\t\t\tforeach($all_of_the_zombies as $zombie){\n\t\t\t\t\t\techo '<li>';\n\t\t\t\t\t\techo '<a href=\"index.php?id='.$zombie['zombie_id'].\n\t\t\t\t\t\t\t\t'\">'.$zombie['name'].'</a>';\n\t\t\t\t\t\techo '</li>';}\n\t\t\t\t\techo '</ul>';\t\t\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "3c17f96d3762121dece506a4e1cb3780", "score": "0.5366488", "text": "function fot_menu_gump() {\n\t\t/* Widget settings. */\n\t\t$widget_ops = array( 'classname' => 'widget-fot-menu', 'description' => 'Вывод блока снизу в категориях', 'gump' );\n\n\t\t/* Widget control settings. */\n\t\t$control_ops = array( 'id_base' => 'fot_menu_gump' );\n\n\t\t/* Create the widget. */\n\t\t$this->WP_Widget( 'fot_menu_gump', 'Вывод блока снизу (gump)', $widget_ops, $control_ops );\n\t}", "title": "" }, { "docid": "1c2cc9c1138300813e884aa1402f5a52", "score": "0.5363389", "text": "private function actionGroupList()\n\t{\n\t\t$groups= $this->DB->getAllAssoc(\"select * from fg_menu_group order by NAME\");\n\t\t$smarty = FgSmarty::getInstance();\n\n\t\t$smarty->assign('items',$groups);\n\t\t$this->showContent = $smarty->fetch(self::RAUM.'Event_Menu_Admin_Group_List.tpl');\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "987f8035fa081d937faf716264dff77e", "score": "0.5362492", "text": "function fill_in_additional_list_fields(){\n if(!empty($this->field_defs['parent_name']) && empty($this->parent_name)){\n $this->fill_in_additional_parent_fields();\n }\n }", "title": "" } ]
900664eb4e8ffaae0fe6edb7a41df64c
Adds a module name to the list of upgradeable modules, for reporting
[ { "docid": "7d904e59afdee204337e774e6bf7d548", "score": "0.6767843", "text": "protected function addUpgradeModule($module)\n {\n if (empty($this->upgradeModules[$module])) {\n $this->upgradeModules[$module] = $module;\n }\n }", "title": "" } ]
[ { "docid": "0ce8d14a280c4981e6ec63076e3b7af9", "score": "0.67988235", "text": "function upgrade_module_1_1_0($module)\n{\n /*\n * Do everything you want right there,\n * You could add a column in one of your module's tables\n */\n\n return true;\n}", "title": "" }, { "docid": "7cf3d827a915088ca158a52475f21e17", "score": "0.6730787", "text": "public function registerModuleName( $module )\n {\n $this->availaibleModules[] = $module;\n }", "title": "" }, { "docid": "20353c5e93f89603356347b2048c2e71", "score": "0.635423", "text": "private function registerAdditionalModules()\n\t{\n\t\t// Register them here in the future.\n\t}", "title": "" }, { "docid": "29d273404d6142bb71574dcd5bc5991f", "score": "0.5945304", "text": "function bug516_2(): void\n {\n $module_handler = \\Drupal::moduleHandler();\n $enabled_modules = $module_handler->getModuleList();\n\n foreach (array_keys($enabled_modules) as $module) {\n $module_handler->loadInclude($module, 'install');\n }\n }", "title": "" }, { "docid": "91624ac2e85d08b9305d92edf0961c16", "score": "0.58555645", "text": "public function addModule( $module )\n {\n if ( !in_array( $module, $this->modules ) ) {\n $this->modules[] = $module;\n $this->files = array();\n }\n }", "title": "" }, { "docid": "87782cfcb902cbefd93640fec14701fc", "score": "0.58555573", "text": "private function add_hooks_and_filters() {\n add_filter( 'slp_version_report_' . $this->addon->short_slug , array( $this , 'show_activated_modules' ) );\n }", "title": "" }, { "docid": "98794d6f846cb7591096e9d69dd81864", "score": "0.5848525", "text": "public function add(){\n echo \"Add a module !\\n\";\n }", "title": "" }, { "docid": "a81f70b873f66d742cab657bad95cdb6", "score": "0.58264756", "text": "function module_upgrade () {\n \n // Make sure core is installed\n if (!module_core_installed()) {\n error_register('Please run the install script');\n return false;\n }\n foreach (module_list() as $module) {\n \n // Get current schema and code revisions\n $old_revision = module_get_schema_revision($module);\n $new_revision = module_get_code_revision($module);\n \n // Upgrade the module to the current revision\n $installer = $module . '_install';\n if (function_exists($installer)) {\n call_user_func($installer, $old_revision);\n }\n \n // Update the revision number in the database\n module_set_schema_revision($module, $new_revision);\n }\n return true;\n}", "title": "" }, { "docid": "6fdac1b645d48b6f373c1fc0699f211b", "score": "0.5803114", "text": "public function addModule($module) {\n\t\tif($module instanceof AModules) {\n\t\t\tforeach(array_keys($this->modules) as $function) {\n\t\t\t\tif(method_exists($module, $function))\n\t\t\t\t\tarray_push($this->modules[$function], $module);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b29b02b98435ff339c5925f27a8710e2", "score": "0.57756495", "text": "function ensure_openldap_module_loaded($module_name)\n\t{\n\t\tglobal $ldap_server,$openldap_module_path,$openldap_backend_module;\n\n\t\tif(!isset($openldap_module_path))\n\t\t\t$openldap_module_path = \"/usr/lib/ldap\";\n\n\t\t$search_resource = @ldap_list($ldap_server->connection,\"cn=config\",\n\t\t\t\"(&(objectClass=olcModuleList)(olcModuleLoad=\" . $module_name . \"))\",array(\"*\",\"+\"));\n\n\t\tif(ldap_count_entries($ldap_server->connection,$search_resource)==0)\n\t\t{\n\t\t\t$module_object_name = $module_name;\n\n\t\t\t// Add modules to existing \"module{0}\" object by default.\n\t\t\t//\n\t\t\t// An alternative approach would be append backend modules to \"module{0}\",\n\t\t\t// create separate objects for other module types. This approach seems to\n\t\t\t// cause stability problems as of OpenLDAP 2.4. To try it anyway, replace\n\t\t\t// the following line with:\n\t\t\t//\n\t\t\t// $add_value_to_module0=array_key_exists($module_name,$openldap_backend_module);\n\n\t\t\t$add_value_to_module0=true;\n\n\t\t\t// auditlog overlay should be created after all databases except back_monitor\n\t\t\tif($module_name == \"auditlog\")\n\t\t\t{\n\t\t\t\t$add_value_to_module0=false;\n\t\t\t\t$module_object_name = \"~auditlog\";\n\t\t\t}\n\n\t\t\t// create monitor database after other objects\n\t\t\tif($module_name==\"back_monitor\")\n\t\t\t{\n\t\t\t\t$add_value_to_module0=false;\n\t\t\t\t$module_object_name=\"~~back_monitor\";\n\t\t\t}\n\n\t\t\tif($add_value_to_module0)\n\t\t\t{\n\t\t\t\t// find first olcModuleList object (numbered 0)\n\n\t\t\t\t$search_resource = @ldap_list($ldap_server->connection,\"cn=config\",\n\t\t\t\t\t\"(&(objectClass=olcModuleList)(cn=*{0}))\",array(\"dn\"));\n\n\t\t\t\tif(ldap_count_entries($ldap_server->connection,$search_resource)==0)\n\t\t\t\t{\n\t\t\t\t\t// no module{0} object exists - create new instead\n\t\t\t\t\t$add_value_to_module0=false;\n\t\t\t\t\t$module_object_name=\"module\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$entry = ldap_get_entries($ldap_server->connection,$search_resource);\n\t\t\t\t\t$dn=$entry[0][\"dn\"];\n\n\t\t\t\t\t$module_entry=array(\"olcModuleLoad\"=>array($module_name));\n\n\t\t\t\t\t$result = @ldap_mod_add($ldap_server->connection,$dn,$module_entry);\n\n\t\t if(!$result)\n\t\t\t\t\t\tshow_error_message(sprintf(\"Unable to add '%s' to module list '%s': %s\"\n\t\t\t\t\t\t\t,\"<code>\" . $module_name . \"</code>\",\"<code>\" . $dn . \"</code>\",\n\t\t\t\t\t\t\tldap_error($ldap_server->connection)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!$add_value_to_module0)\n\t\t\t{\n\t\t\t\t$module_entry = array(\n\t\t\t\t\t\"objectclass\"=>\"olcModuleList\",\n\t\t\t\t\t\"dn\"=>\"olcDatabase=module{xxx},cn=config\",\n\t\t\t\t\t\"olcModulePath\"=>$openldap_module_path,\n\t\t\t\t\t\"olcModuleLoad\"=>array($module_name)\n\t\t\t\t\t);\n\n\t\t\t\t$this->assign_ordered_sequence_rdn($module_entry,\n\t\t\t\t\t\"olcModuleList\",$module_object_name . \"{%d}\");\n\n\t\t\t\t$dn = $module_entry[\"dn\"];\n\t\t\t\tunset($module_entry[\"dn\"]);\n\n\t $result = @ldap_add($ldap_server->connection,$dn,$module_entry);\n\n\t if(!$result)\n\t\t\t\t\tshow_error_message(\"Failed to create module list object: \"\n\t\t\t\t\t\t. ldap_error($ldap_server->connection));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1bf1de33c92cc0a53c6dfae9e207c0be", "score": "0.57711846", "text": "abstract protected function get_module_names();", "title": "" }, { "docid": "b001ad8f7551d2ef15cdcb04063d74cf", "score": "0.5753098", "text": "public function installModule()\n {\n // Check you module requirements, throw an Exception\n\n // Make directories for images, caches, logs, etc.\n\n // Install database tables\n $this->db->execute($this->getDatabaseMigrationSQL('up/model1'));\n\n // Register hooks\n $this->module->registerHook([\n 'DisplayHeader',\n 'ActionAdminLanguagesControllerStatusBefore',\n 'ActionAdminMetaControllerUpdate_optionsBefore',\n 'ActionAdminMetaSave',\n 'ActionAttributeDelete',\n 'ActionAttributeGroupDelete',\n 'ActionAttributeGroupSave',\n 'ActionAttributePostProcess',\n 'ActionAttributeSave',\n 'ActionCarrierProcess',\n 'ActionCarrierUpdate',\n 'ActionCartSave',\n 'ActionCategoryAdd',\n 'ActionCategoryDelete',\n 'ActionCategoryUpdate',\n 'ActionCustomerAccountAdd',\n 'ActionFeatureDelete',\n 'ActionFeatureSave',\n 'ActionFeatureValueDelete',\n 'ActionFeatureValueSave',\n 'ActionHtaccessCreate',\n 'ActionObjectCategoryDeleteAfter',\n 'ActionObjectCategoryUpdateAfter',\n 'ActionObjectCmsDeleteAfter',\n 'ActionObjectCmsUpdateAfter',\n 'ActionObjectManufacturerDeleteAfter',\n 'ActionObjectManufacturerUpdateAfter',\n 'ActionObjectProductDeleteAfter',\n 'ActionObjectProductUpdateAfter',\n 'ActionObjectSupplierDeleteAfter',\n 'ActionObjectSupplierUpdateAfter',\n 'ActionOrderDetail',\n 'ActionOrderReturn',\n 'ActionOrderSlipAdd',\n 'ActionOrderStatusPostUpdate',\n 'ActionOrderStatusUpdate',\n 'ActionPaymentCCAdd',\n 'ActionProductAdd',\n 'ActionProductAttributeDelete',\n 'ActionProductAttributeUpdate',\n 'ActionProductCancel',\n 'ActionProductDelete',\n 'ActionProductListOverride',\n 'ActionProductOutOfStock',\n 'ActionProductSave',\n 'ActionProductUpdate',\n 'ActionShopDataDuplication',\n 'ActionTaxManager',\n 'ActionUpdateQuantity',\n 'ActionValidateOrder',\n 'ActionWatermark',\n 'DisplayAdminCustomers',\n 'DisplayAdminOrder',\n 'DisplayAdminStatsGraphEngine',\n 'DisplayAdminStatsGridEngine',\n 'DisplayAdminStatsModules',\n 'DisplayAttributeForm',\n 'DisplayAttributeGroupForm',\n 'DisplayAttributeGroupPostProcess',\n 'DisplayBackOfficeFooter',\n 'DisplayBackOfficeHeader',\n 'DisplayBackOfficeHome',\n 'DisplayBackOfficeTop',\n 'DisplayCarrierList',\n 'DisplayFeatureForm',\n 'DisplayFeaturePostProcess',\n 'DisplayFeatureValueForm',\n 'DisplayFeatureValuePostProcess',\n 'ActionPaymentConfirmation',\n 'ActionSearch',\n 'DisplayBeforeCarrier',\n 'DisplayBeforePayment',\n 'DisplayCustomerAccount',\n 'DisplayCustomerAccountForm',\n 'ActionAuthentication',\n 'ActionBeforeAuthentication',\n 'ActionBeforeSubmitAccount',\n 'DisplayCustomerAccountFormTop',\n 'DisplayFooter',\n 'DisplayFooterProduct',\n 'DisplayHome',\n 'DisplayInvoice',\n 'DisplayLeftColumn',\n 'DisplayLeftColumnProduct',\n 'DisplayMobileTopSiteMap',\n 'DisplayMyAccountBlock',\n 'DisplayMyAccountBlockfooter',\n 'DisplayOrderConfirmation',\n 'DisplayOrderDetail',\n 'DisplayPDFInvoice',\n 'DisplayPayment',\n 'DisplayPaymentReturn',\n 'DisplayPaymentTop',\n 'DisplayProductButtons',\n 'DisplayProductComparison',\n 'DisplayProductTab',\n 'DisplayProductTabContent',\n 'DisplayRightColumn',\n 'DisplayRightColumnProduct',\n 'DisplayShoppingCart',\n 'DisplayShoppingCartFooter',\n 'DisplayTop',\n ]);\n\n // Install admin controllers\n $this->installAdminController('AdminMyModuleConfiguration', 'MyModule Configuration');\n }", "title": "" }, { "docid": "c546c1d5166f7e918da74fb2a134d23f", "score": "0.56938916", "text": "private function registerLocalModules()\n\t{\n\t\t$modules_array = apply_filters('baseline_content_modules', $this->config->getModulesConfig());\n\t\tforeach($modules_array as $module_class_name) {\n\t\t\t$this->validateAndRegisterModule($module_class_name);\n\t\t}\n\t}", "title": "" }, { "docid": "388c703f8ef1c44c0cb584a51f8b2d87", "score": "0.5625657", "text": "public function updateModuleFile() {\n\t\t$module = Yii::app()->db->createCommand(\"SELECT * FROM {$this->_moduleTableName} WHERE enabled=1\")->queryAll();\n\n\t\tif(count($module) > 0) {\n\t\t\t$config = \"<?php \\n\";\n\t\t\t$config .= \"return array(\\n\\t'modules' => array(\\n\";\n\t\t\t$i = 1;\n\t\t\tforeach($module as $val) {\n\t\t\t\tif($i !== count($module))\n\t\t\t\t\t$config .= \"\\t\\t'\" . $val['name'] . \"',\\n\";\n\t\t\t\telse\n\t\t\t\t\t$config .= \"\\t\\t'\" . $val['name'] . \"'\\n\";\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t$config .= \"\\t),\\n);\";\n\n\t\t}else {\n\t\t\t$config = \"<?php \\n\";\n\t\t\t$config .= \"return array(\\n\\t'modules' => array(\\n\";\n\t\t\t$config .= \"\\t),\\n);\";\n\t\t}\n\n\t\t$fileHandle = @fopen(Yii::getPathOfAlias('application.config').'/module_addon.php', 'w');\n\t\t@fwrite($fileHandle, $config, strlen($config));\n\t\t@fclose($fileHandle);\n\t}", "title": "" }, { "docid": "41b5a55a6b45b32eb9abc15bc2724a67", "score": "0.5581649", "text": "public function set_module_name($name) {\n\t\t$this->my_module_name = $name;\n\t}", "title": "" }, { "docid": "fbc38197f807956310ca35eb83304214", "score": "0.5579146", "text": "function mymcshop_install_additional_modules() {\n\n $modules = array(\n 'mymcshop_commerce',\n 'mymcshop_product',\n 'mymcshop_migrate',\n );\n $selected_extras = variable_get('mymcshop_selected_extras', array());\n if (!empty($selected_extras['menus'])) {\n $modules[] = 'mymcshop_menu';\n }\n if (!empty($selected_extras['forum'])) {\n $modules[] = 'mymcshop_forum';\n }\n if (!empty($selected_extras['ga'])) {\n $modules[] = 'googleanalytics';\n }\n \n $install_localization = variable_get('mymcshop_localization', FALSE);\n if ($install_localization) {\n $modules[] = 'locale';\n $modules[] = 'i18n';\n $modules[] = 'l10n_update';\n $modules[] = 'l10n_client';\n }\n\n $store_country = variable_get('mymcshop_store_country', 'US');\n \n // Enable Commerce Alipay Checkout for China.\n if (in_array($store_country, array('ZH','TW','CN'))) {\n $modules[] = 'commerce_alipay';\n }\n\n // Resolve the dependencies now, so that module_enable() doesn't need\n // to do it later for each individual module (which kills performance).\n $files = system_rebuild_module_data();\n $modules_sorted = array();\n foreach ($modules as $module) {\n if ($files[$module]->requires) {\n // Create a list of dependencies that haven't been installed yet.\n $dependencies = array_keys($files[$module]->requires);\n $dependencies = array_filter($dependencies, '_mymcshop_filter_dependencies');\n // Add them to the module list.\n $modules = array_merge($modules, $dependencies);\n }\n }\n $modules = array_unique($modules);\n foreach ($modules as $module) {\n $modules_sorted[$module] = $files[$module]->sort;\n }\n arsort($modules_sorted);\n\n $operations = array();\n // Enable and set as default the correct theme.\n $theme = 'powermc';\n $operations[] = array('_mymcshop_enable_theme', array($theme));\n // Enable the selected modules.\n foreach ($modules_sorted as $module => $weight) {\n $operations[] = array('_mymcshop_enable_module', array($module, $files[$module]->info['name']));\n }\n if ($install_localization) {\n $operations[] = array('_mymcshop_setup_localization', array(t('Configured localization.')));\n }\n $operations[] = array('_mymcshop_flush_caches', array(t('Flushed caches.')));\n\n $batch = array(\n 'title' => t('Installing additional functionality'),\n 'operations' => $operations,\n 'file' => drupal_get_path('profile', 'mymcshop') . '/mymcshop.install_callbacks.inc',\n );\n\n return $batch;\n}", "title": "" }, { "docid": "4fa6de75a3baddc299252900f857e21e", "score": "0.5550993", "text": "function hook_modules_enabled($modules) {\n if (in_array('lousy_module', $modules)) {\n drupal_set_message(t('mymodule is not compatible with lousy_module'), 'error');\n mymodule_disable_functionality();\n }\n}", "title": "" }, { "docid": "49930ed7032a4d4d22cbd4688f43e2e3", "score": "0.55437034", "text": "function l2p_add_sample_module_module($modules) {\r\n\t/*\r\n\t\tReplace 'sample_module.php' with the name of this file\r\n\t\tReplace 'samplemodule.com' with the host of the website this module will parse\r\n\t\tReplace 'l2p_sample_module_callback' with the name of the callback function declared below\r\n\t\tReplace 'l2p_create_sample_module_cpt' with the name of the create CPT function declared at the bottom of this file\r\n\t\tReplace 'sample_module' with how you would like the name of the module to be displayed to the user, but no spaces since this is also used in sql option names\r\n\t\tIf the module can update(ie. the final else statement in the callback function is filled out), change false to true\r\n\t*/\r\n $modules[\"sample_module.php\"] = array('host'=>'samplemodule.com','callback'=>'l2p_sample_module_callback', 'create_cpt'=>'l2p_create_sample_module_cpt', 'quick_name'=>'sample_module','can_update'=>false);\r\n return $modules;\r\n}", "title": "" }, { "docid": "271f6d4e61fbe8cf1ef7f5de7dd5858f", "score": "0.5514574", "text": "function modules_upgrade($oldversion)\n{\n // Upgrade dependent on old version number\n switch($oldversion) {\n\t // version 2.0 was supplied with PN .7x\n case 2.0:\n\t\t\tpnModSetVar('Modules', 'itemsperpage', 25);\n\t\t\t// unlike a new install we'll assume that we need legacy support on\n\t\t\tpnConfigSetVar('loadlegacy', 1);\n\t\t\tbreak;\n\t}\n\n // Update successful\n return true;\n}", "title": "" }, { "docid": "0e07b24fdd37a61ace464ce15a1820e5", "score": "0.54864085", "text": "public function install(array $module_list, $enable_dependencies = TRUE);", "title": "" }, { "docid": "d1264b64ab4d19bc5b018e9d24b8755f", "score": "0.5485928", "text": "function upgrade_all()\n {\n }", "title": "" }, { "docid": "23a22861a400e486d65f216e1738213e", "score": "0.5436968", "text": "static function admin_modules_update_list () {\n\t\t$Config = Config::instance();\n\t\t/**\n\t\t * List of currently presented modules in file system\n\t\t */\n\t\t$modules_in_fs = get_files_list(MODULES, false, 'd');\n\t\t$modules_list = array_fill_keys(\n\t\t\t$modules_in_fs,\n\t\t\t[\n\t\t\t\t'active' => -1,\n\t\t\t\t'db' => [],\n\t\t\t\t'storage' => []\n\t\t\t]\n\t\t);\n\t\t/**\n\t\t * Already known modules\n\t\t */\n\t\t$modules = &$Config->components['modules'];\n\t\t$known_modules = array_keys($modules);\n\t\tif ($modules_in_fs != $known_modules) {\n\t\t\t/**\n\t\t\t * Delete permissions of modules that are mot present anymore\n\t\t\t */\n\t\t\tforeach ($known_modules as $module) {\n\t\t\t\tif (!isset($modules_list[$module])) {\n\t\t\t\t\tstatic::delete_permissions_for_module($module);\n\t\t\t\t}\n\t\t\t}\n\t\t\tunset($module);\n\t\t}\n\t\tunset($modules_in_fs, $known_modules);\n\t\t$modules = array_merge($modules_list, array_intersect_key($modules, $modules_list));\n\t\tksort($modules, SORT_STRING | SORT_FLAG_CASE);\n\t\tstatic::admin_modules_save();\n\t\tstatic::admin_modules_cleanup();\n\t}", "title": "" }, { "docid": "da5b9701eb017a7a9cfbd1d4afaf3b05", "score": "0.54247415", "text": "public function updateModuleList()\n {\n if ($this->modulebase == \"\") {\n throw new \\InvalidArgumentException(\"Module base must not be empty!\");\n }\n\n $this->finder->directories()->in($this->modulebase)->depth('== 0');\n \n $modules = array();\n\n foreach ($this->finder as $file) {\n if (file_exists($file->getRealpath() . \"/routes.php\")) {\n $modules[] = $file->getFilename();\n }\n }\n\n if (is_writeable(dirname($this->storage))) {\n file_put_contents(\n $this->storage,\n json_encode($modules)\n );\n }\n\n return true;\n }", "title": "" }, { "docid": "592340792be0c7eec144bfd86b937765", "score": "0.541988", "text": "public function onPostInstall() {\n $moduleName = 'siteevent';\n $db = $this->getDb();\n $select = new Zend_Db_Select($db);\n $select\n ->from('engine4_core_modules')\n ->where('name = ?', 'sitemobile')\n ->where('enabled = ?', 1);\n $is_sitemobile_object = $select->query()->fetchObject();\n if (!empty($is_sitemobile_object)) {\n $db->query(\"INSERT IGNORE INTO `engine4_sitemobile_modules` (`name`, `visibility`) VALUES\n('$moduleName','1')\");\n $select = new Zend_Db_Select($db);\n $select\n ->from('engine4_sitemobile_modules')\n ->where('name = ?', $moduleName)\n ->where('integrated = ?', 0);\n $is_sitemobile_object = $select->query()->fetchObject();\n if ($is_sitemobile_object) {\n $actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\n $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();\n if ($controllerName == 'manage' && $actionName == 'install') {\n $view = new Zend_View();\n $baseUrl = (!empty($_ENV[\"HTTPS\"]) && 'on' == strtolower($_ENV[\"HTTPS\"]) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('install/', '', $view->url(array(), 'default', true));\n $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n $redirector->gotoUrl($baseUrl . 'admin/sitemobile/module/enable-mobile/enable_mobile/1/name/' . $moduleName . '/integrated/0/redirect/install');\n }\n }\n }\n //END - SITEMOBILE CODE TO CALL MY.SQL ON POST INSTALL\n //WORK FOR THE WORD CHANGES IN THE ADVANCED EVENT PLUGIN .CSV FILE.\n $actionName = Zend_Controller_Front::getInstance()->getRequest()->getActionName();\n $controllerName = Zend_Controller_Front::getInstance()->getRequest()->getControllerName();\n if ($controllerName == 'manage' && ($actionName == 'install' || $actionName == 'query')) {\n $view = new Zend_View();\n $baseUrl = (!empty($_ENV[\"HTTPS\"]) && 'on' == strtolower($_ENV[\"HTTPS\"]) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . str_replace('install/', '', $view->url(array(), 'default', true));\n $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');\n if ($actionName == 'install') {\n $redirector->gotoUrl($baseUrl . 'admin/siteevent/settings/language/redirect/install');\n } else {\n $redirector->gotoUrl($baseUrl . 'admin/siteevent/settings/language/redirect/query');\n }\n }\n }", "title": "" }, { "docid": "eee5d956e8735db99dc562e0d0d054ae", "score": "0.54118305", "text": "public function install()\r\n {\r\n //----------------------------------------\r\n // EXP_MODULES\r\n //----------------------------------------\r\n $module = ee('Model')->make('Module');\r\n $module->module_name = ucfirst($this->module_name);\r\n $module->module_version = $this->version;\r\n $module->has_cp_backend = 'y';\r\n $module->has_publish_fields = 'n';\r\n $module->save();\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER\r\n //----------------------------------------\r\n $tagger = array(\r\n 'tag_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'tag_name' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'site_id' => array('type' => 'TINYINT', 'unsigned' => true, 'default' => 1),\r\n 'author_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'entry_date' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'edit_date' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'hits' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'total_entries' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('tag_id', true);\r\n ee()->dbforge->add_key('tag_name');\r\n ee()->dbforge->create_table('tagger', true);\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER_LINKS\r\n //----------------------------------------\r\n $tagger = array(\r\n 'rel_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'site_id' => array('type' => 'TINYINT', 'unsigned' => true, 'default' => 1),\r\n 'entry_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'channel_id' => array('type' => 'SMALLINT', 'unsigned' => true, 'default' => 0),\r\n 'field_id' => array('type' => 'MEDIUMINT', 'unsigned' => true, 'default' => 0),\r\n// 'item_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'tag_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'author_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n 'type' => array('type' => 'SMALLINT', 'unsigned' => true, 'default' => 1),\r\n 'tag_order' => array('type' => 'SMALLINT', 'unsigned' => true, 'default' => 0),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('rel_id', true);\r\n ee()->dbforge->add_key('tag_id');\r\n ee()->dbforge->add_key('entry_id');\r\n ee()->dbforge->create_table('tagger_links', true);\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER_GROUPS\r\n //----------------------------------------\r\n $tagger = array(\r\n 'group_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'group_title' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'group_name' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'group_desc' => array('type' => 'VARCHAR', 'constraint' => 255),\r\n 'parent_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'site_id' => array('type' => 'TINYINT', 'unsigned' => true, 'default' => 1),\r\n '`order`' => array('type' => 'MEDIUMINT', 'unsigned' => true, 'default' => 1),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('group_id', true);\r\n ee()->dbforge->create_table('tagger_groups', true);\r\n\r\n //----------------------------------------\r\n // EXP_TAGGER_GROUPS_ENTRIES\r\n //----------------------------------------\r\n $tagger = array(\r\n 'rel_id' => array('type' => 'INT', 'unsigned' => true, 'auto_increment' => true),\r\n 'tag_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n 'group_id' => array('type' => 'INT', 'unsigned' => true, 'default' => 0),\r\n '`order`' => array('type' => 'INT', 'unsigned' => true, 'default' => 1),\r\n );\r\n\r\n ee()->dbforge->add_field($tagger);\r\n ee()->dbforge->add_key('rel_id', true);\r\n ee()->dbforge->add_key('group_id');\r\n ee()->dbforge->add_key('tag_id');\r\n ee()->dbforge->create_table('tagger_groups_entries', true);\r\n\r\n //----------------------------------------\r\n // EXP_ACTIONS\r\n //----------------------------------------\r\n $action = ee('Model')->make('Action');\r\n $action->class = ucfirst($this->module_name);\r\n $action->method = $this->module_name . '_router';\r\n $action->csrf_exempt = 0;\r\n $action->save();\r\n\r\n //----------------------------------------\r\n // EXP_MODULES\r\n // The settings column, Ellislab should have put this one in long ago.\r\n // No need for a seperate preferences table for each module.\r\n //----------------------------------------\r\n if (ee()->db->field_exists('settings', 'modules') == false) {\r\n ee()->dbforge->add_column('modules', array('settings' => array('type' => 'TEXT') ) );\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "c10791982096b2bfc30c66ed96d4ca60", "score": "0.5398242", "text": "public function install()\n\t{\n\t\t$data = array(\n\t\t\t'module_name' => $this->module_name,\n\t\t\t'module_version' => $this->version,\n\t\t\t'has_cp_backend' => 'y',\n\t\t\t'has_publish_fields' => 'n'\n\t\t);\n\n\t\t$this->EE->db->insert('modules', $data);\n\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "36a2d83e7754f09f085e645e13432f9a", "score": "0.53969866", "text": "function upgrade_101()\n {\n }", "title": "" }, { "docid": "4cefe3045b6b00088b02aedc4b56e88f", "score": "0.53954875", "text": "public function install($moduleName) {\n\t\t$model = new ComModules;\n\t\t$result = ComModules::model()->find(array(\n\t\t\t'condition' => 'name = :name AND enabled=0',\n\t\t\t'params' => array(\n\t\t\t\t':name' => $moduleName,\n\t\t\t),\n\t\t));\n\n\t\tif($result !== null) {\n\t\t\treturn false;\n\t\t}else {\n\t\t\t$desc = Yii::app()->getModule($moduleName)->description;\n\t\t\t$active = Yii::app()->getModule($moduleName)->active;\n\t\t\t$hookName = Yii::app()->getModule($moduleName)->defaultHook;\n\t\t\t$idHook = $this->getIdHookByName($hookName);\n\n\t\t\tYii::app()->db->createCommand('INSERT INTO module(nama, deskripsi, aktif) VALUES(:nama, :desc, :aktif)')->\n\t\t\texecute(array(\n\t\t\t\t':nama' => $moduleName, ':desc' => $desc, ':aktif' => $active\n\t\t\t));\n\n\t\t\t$moduleToHook = new ModuleToHook;\n\t\t\t$moduleToHook->id_module = $result->id_module;\n\t\t\t$moduleToHook->id_hook = $idHook;\n\t\t\t$moduleToHook->position = 0;\n\n\t\t\tif($moduleToHook->save(false))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "1d5cd92300289fabbd8809e94ea41e27", "score": "0.5375091", "text": "public function installKeTabel() {\n\t\t$countModulesFile = count($this->getModulesDirOnDisk());\n\t\t$toBeInstalled = array();\n\n\t\tif($countModulesFile > $this->getTotalModuleFromDb()) {\n\t\t\t$cacheModule = file(Yii::getPathOfAlias('application.config').'/cache_module.php');\n\t\t\t$installedModule = $this->getModulesDirOnDisk();\n\t\t\t$toBeInstalled = array();\n\t\t\t$caches = array();\n\t\t\tforeach($cacheModule as $val) {\n\t\t\t\t$caches[] = trim(strtolower($val));\n\t\t\t}\n\n\t\t\t// Cari nama modul yang belum masuk database.\n\t\t\tif(count($cacheModule) == 0 || count($cacheModule) < 1) {\n\t\t\t\tif($installedModule) {\n\t\t\t\t\tforeach($installedModule as $val) {\n\t\t\t\t\t\t$toBeInstalled[] = $val;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}else {\n\t\t\t\tif($installedModule) {\n\t\t\t\t\tforeach($installedModule as $val) {\n\t\t\t\t\t\t$val = trim($val);\n\t\t\t\t\t\tif(!in_array(strtolower($val), $caches)) {\n\t\t\t\t\t\t\t$toBeInstalled[] = $val;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$sql = \"INSERT INTO {$this->_moduleTableName}(id, name, enabled) VALUES\";\n\t\t\t$id = $this->getIdMax('id', 'swt_com_modules');\n\t\t\tfor($i = 0; $i < count($toBeInstalled); $i++) {\n\t\t\t\tif(isset(Yii::app()->getModule($toBeInstalled[$i])->active))\n\t\t\t\t\t$active = Yii::app()->getModule($toBeInstalled[$i])->active;\n\t\t\t\telse\n\t\t\t\t\t$active = 0;\n\n\t\t\t\t$desc = Yii::app()->getModule($toBeInstalled[$i])->description;\n\n\t\t\t\tif($i == (count($toBeInstalled) - 1)) {\n\t\t\t\t\t$sql .= '(' . $id . ', \"' . $toBeInstalled[$i] . '\", ' . $active . ')';\n\t\t\t\t}else\n\t\t\t\t\t$sql .= '(' . $id . ', \"' . $toBeInstalled[$i] . '\", ' . $active . '),';\n\n\t\t\t\t$id++;\n\t\t\t}\n\n\t\t\t//Check if module already inserted to table.\n\t\t\t$conn = Yii::app()->db;\n\n\t\t\tif(count($toBeInstalled) > 0) {\n\t\t\t\t$result = $conn->createCommand($sql)->execute();\n\t\t\t\tif($result)\n\t\t\t\t\treturn true;\n\t\t\t\telse\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f85cfd2183543069a8c1659a2b48e9eb", "score": "0.53651154", "text": "public function testModuleListChange() {\n // Set a value in the cache to prove caches are cleared.\n \\Drupal::service('cache.default')->set(__CLASS__, 'Test');\n\n // Ensure that modules are installed and uninstalled as expected prior to\n // running updates.\n $extension_config = $this->config('core.extension')->get();\n $this->assertArrayHasKey('page_cache', $extension_config['module']);\n $this->assertArrayNotHasKey('module_test', $extension_config['module']);\n\n $module_list = \\Drupal::moduleHandler()->getModuleList();\n $this->assertArrayHasKey('page_cache', $module_list);\n $this->assertArrayNotHasKey('module_test', $module_list);\n\n $namespaces = \\Drupal::getContainer()->getParameter('container.namespaces');\n $this->assertArrayHasKey('Drupal\\page_cache', $namespaces);\n $this->assertArrayNotHasKey('Drupal\\module_test', $namespaces);\n\n // Increment the schema version so that update_test_schema_update_8003()\n // runs.\n \\Drupal::state()->set('update_test_schema_version', 8003);\n $this->runUpdates();\n\n // Ensure that test running environment has been updated with the changes to\n // the module list.\n $extension_config = $this->config('core.extension')->get();\n $this->assertArrayNotHasKey('page_cache', $extension_config['module']);\n $this->assertArrayHasKey('module_test', $extension_config['module']);\n\n $module_list = \\Drupal::moduleHandler()->getModuleList();\n $this->assertArrayNotHasKey('page_cache', $module_list);\n $this->assertArrayHasKey('module_test', $module_list);\n\n $namespaces = \\Drupal::getContainer()->getParameter('container.namespaces');\n $this->assertArrayNotHasKey('Drupal\\page_cache', $namespaces);\n $this->assertArrayHasKey('Drupal\\module_test', $namespaces);\n\n // Ensure the test runners cache has been cleared.\n $this->assertFalse(\\Drupal::service('cache.default')->get(__CLASS__));\n }", "title": "" }, { "docid": "c71f4d7d9ca49a60793ba5707ed87ef1", "score": "0.536399", "text": "public function setModuleName($module);", "title": "" }, { "docid": "c822df7ed314cf2ea8008dc8c00fc932", "score": "0.5353874", "text": "public function setModuleUsage()\n {\n foreach ($this->result as $moduleName => $moduleInfo) {\n $this->result[$moduleName]['InUse'] = 2;\n $this->determineDataObjectUsage($moduleName, $moduleInfo);\n $this->determineDataExtensionUsage($moduleName, $moduleInfo);\n }\n }", "title": "" }, { "docid": "69573e79c9480d090cdcd43632db7bc9", "score": "0.5339156", "text": "function moduleInstall()\n {\n return new Object();\n }", "title": "" }, { "docid": "b60fefd1046046a0a8b2713587671c8e", "score": "0.53389704", "text": "function jetpack_modify_available_modules( $modules ) {\n\n\t$modules_to_disable = [\n\t\t'after-the-deadline',\n\t\t'carousel',\n\t\t'comment-likes',\n\t\t'comments',\n\t\t'contact-form',\n\t\t'custom-content-types',\n\t\t'enhanced-distribution',\n\t\t'google-analytics',\n\t\t'gravatar-hovercards',\n\t\t'infinite-scroll',\n\t\t'json-api',\n\t\t'latex',\n\t\t'lazy-images',\n\t\t'likes',\n\t\t'markdown',\n\t\t'masterbar',\n\t\t'minileven',\n\t\t'notes',\n\t\t'post-by-email',\n\t\t'protect',\n\t\t'publicize',\n\t\t'pwa',\n\t\t'search',\n\t\t'seo-tools',\n\t\t'shortcodes',\n\t\t'shortlinks',\n\t\t'sitemaps',\n\t\t'subscriptions',\n\t\t'tiled-gallery',\n\t\t'videopress',\n\t\t'widget-visibility',\n\t\t'widgets',\n\t\t'wordads',\n\t];\n\n\tforeach ( $modules_to_disable as $module ) {\n\t\tif ( isset( $modules[ $module ] ) ) {\n\t\t\tunset( $modules[ $module ] );\n\t\t}\n\t}\n\n\treturn $modules;\n}", "title": "" }, { "docid": "3cbde0c538759c0685c2fb2389e8076a", "score": "0.5335072", "text": "private function checkForUpdates()\n\n\t{\n\n\t\tif (version_compare(_PS_VERSION_, '1.5', '<') && self::isInstalled($this->name))\n\n\t\t\tforeach (array('1.4.8', '1.4.11') as $version)\n\n\t\t\t{\n\n\t\t\t\t$file = dirname(__FILE__).'/upgrade/install-'.$version.'.php';\n\n\t\t\t\tif (Configuration::get('SKYBANK_AIM') < $version && file_exists($file))\n\n\t\t\t\t{\n\n\t\t\t\t\tinclude_once($file);\n\n\t\t\t\t\tcall_user_func('upgrade_module_'.str_replace('.', '_', $version), $this);\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t}", "title": "" }, { "docid": "b4a315cf4fdc81d8d4fe76ea7d84940a", "score": "0.53231317", "text": "function export_manager__upgrade($old_version, $new_version)\n{\n global $g_table_prefix;\n\n $old_version_info = ft_get_version_info($old_version);\n $new_version_info = ft_get_version_info($new_version);\n\n if ($old_version_info[\"release_date\"] < 20090908)\n {\n @mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_groups TYPE=MyISAM\");\n @mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_groups ENGINE=MyISAM\");\n @mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_group_clients TYPE=MyISAM\");\n @mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_group_clients ENGINE=MyISAM\");\n @mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_types TYPE=MyISAM\");\n @mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_types ENGINE=MyISAM\");\n }\n\n if ($old_version_info[\"release_date\"] < 20110525)\n {\n mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_groups ADD form_view_mapping ENUM('all', 'except', 'only') NOT NULL DEFAULT all AFTER access_type\");\n mysql_query(\"ALTER TABLE {$g_table_prefix}module_export_groups ADD forms_and_views MEDIUMTEXT NULL AFTER form_view_mapping\");\n }\n}", "title": "" }, { "docid": "21276c44975473ab3a98fe25386a7293", "score": "0.5318026", "text": "public function onInstall(){\n\t\t#EN: Here you can add any code that you want to run when your module is installed\n\t}", "title": "" }, { "docid": "c61623601f404d91c02b4cd5656d03a2", "score": "0.5307564", "text": "public function installed( $name )\n\t{\n\t\tif( ! is_array($name) )\n\t\t{\n\t\t\t$name = [$name];\n\t\t}\n\n\t\tif( ! count($name) )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach( $name as $module_name )\n\t\t{\n\t\t\tif( is_numeric($module_name) )\n\t\t\t{\n\t\t\t\tif( !$this->offsetExists($module_name) )\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if( $this->getId($module_name) === false )\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "b61cdd55dcc24a19d17a0efe8134cdab", "score": "0.529246", "text": "public static function addModuleScripts($array) {\n\t\t//Update to check each script and ensure it's not in the list already\n\t\tself::$moduleScripts = array_merge(self::$moduleScripts, $array);\n\t}", "title": "" }, { "docid": "4c532b8e84953d9f07003e99a40e7c16", "score": "0.5291657", "text": "function wine_run_upgrades() {\n\t$path = elgg_get_plugins_path() . 'wine/upgrades/';\n\t$files = elgg_get_upgrade_files($path);\n\tforeach ($files as $file) {\n\t\tinclude \"$path{$file}\";\n\t}\n}", "title": "" }, { "docid": "ac619bd585ef66b90fb74f464f45550a", "score": "0.52909756", "text": "function updateModules() {\n $modules_table = TABLE_PREFIX . 'modules';\n\n try {\n DB::execute(\"ALTER TABLE $modules_table ADD is_enabled tinyint(1) NOT NULL DEFAULT '0' AFTER position\");\n DB::execute(\"ALTER TABLE $modules_table DROP is_system\");\n } catch(Exception $e) {\n return $e->getMessage();\n } // try\n\n return true;\n }", "title": "" }, { "docid": "4cd8df1e19a0a9a1c8ecca406a84e3da", "score": "0.52687037", "text": "function atkModule($name=\"\")\n {\n $this->m_name = $name;\n }", "title": "" }, { "docid": "2af8c9388d4f4f614d2ebc605103e336", "score": "0.52669615", "text": "public function installModules()\n\t{\n\t$mainframe =& JFactory::getApplication();\n// \t$lang = JFactory::getLanguage(); \n// $languages = JLanguageHelper::getLanguages('lang_code');\n $db =& JFactory::getDBO();\n $query = $db->getQuery(true);\n $type = \"language\";\n $query->select('a.element');\n $query->from('#__extensions AS a');\n $type = $db->Quote($type);\n\t$query->where('(a.type = '.$type.')');\n\t$query->group('a.element');\n $db->setQuery($query);\n $langlist = $db->loadObjectList();\n \n echo 'Copy Administration Modules language(s) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>';\n\t\t$src=JPATH_ADMINISTRATOR.DS.'components'.DS.'com_joomleague'.DS.'modules';\n\t\t$dest=JPATH_ADMINISTRATOR.DS.'modules';\n\t\t$modules = JFolder::folders($src);\n\t\t\n \t\tforeach ( $langlist as $key )\n {\n echo 'Copy Administration Modules language( '.$key->element.' ) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>'; \n foreach ($modules as $module)\n\t\t{\n\t\tif ( JFolder::exists($src.DS.$module.DS.'language'.DS.$key->element) )\n\t\t{\n\t\t\tJFolder::copy($src.DS.$module.DS.'language'.DS.$key->element, JPATH_ADMINISTRATOR.DS.'language'.DS.$key->element, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success -> '.$module.' - '.$key->element).'</span><br />';\n }\n }\n\t\t}\n\n\t\t//echo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n\t\techo 'Copy Administration Module(s)';\n\t\tJFolder::copy($src, $dest, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n//\t\techo 'Copy Site Module(s) language(s) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a>';\n\t\t$src=JPATH_SITE.DS.'components'.DS.'com_joomleague'.DS.'modules';\n\t\t$dest=JPATH_SITE.DS.'modules';\n\t\t$modules = JFolder::folders($src);\n\t\t\n\t\tforeach ( $langlist as $key )\n {\n echo 'Copy Site Module(s) language( '.$key->element.' ) provided by <a href=\"https://opentranslators.transifex.com/projects/p/joomleague/\">Transifex</a><br>';\n foreach ($modules as $module)\n\t\t{\n\t\tif ( JFolder::exists($src.DS.$module.DS.'language'.DS.$key->element) )\n\t\t{\n\t\t\tJFolder::copy($src.DS.$module.DS.'language'.DS.$key->element, JPATH_SITE.DS.'language'.DS.$key->element, '', true);\n echo ' - <span style=\"color:green\">'.JText::_('Success -> '.$module.' - '.$key->element).'</span><br />';\n\t\t}\n }\n\t\t}\n\n\t\t//echo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n\t\techo 'Copy Site Module(s)';\n\t\tJFolder::copy($src, $dest, '', true);\n\t\techo ' - <span style=\"color:green\">'.JText::_('Success').'</span><br />';\n \n /*\n $title = 'JL2 diddipoeler GitHub Commits Module';\n\t\t$tblModules = JTable::getInstance('module');\n\t\t$tblModules->load(array('title'=>$title));\n\t\t$tblModules->title\t\t\t= $title;\n\t\t$tblModules->module\t\t\t= 'mod_joomleague_github';\n\t\t$tblModules->position \t\t= 'cpanel';\n\t\t$tblModules->published \t\t= 1;\n\t\t$tblModules->client_id \t\t= 1;\n\t\t$tblModules->ordering \t\t= 1;\n\t\t$tblModules->access \t\t= 3;\n\t\t$tblModules->language \t\t= '*';\n\t\t$tblModules->publish_up\t\t= '2000-00-00 00:00:00';\n\t\t$tblModules->params \t\t= '{\"username\":\"diddipoeler\",\"repo\":\"joomleague-2-komplettpaket\",\"count\":15,\"relativeTime\":\"1\",\"layout\":\"_:default\",\"moduleclass_sfx\":\"\",\"cache\":\"1\",\"cache_time\":\"900\",\"cachemode\":\"static\"}';\n\n\t\tif (!$tblModules->store()) {\n\t\t\techo $tblModules->getError().'<br />';\n\t\t}\n\t\t$db = JFactory::getDBO();\n\t\t$query = 'INSERT INTO #__modules_menu (moduleid,menuid) VALUES ('.$tblModules->id.',0)';\n\t\t$db->setQuery($query);\n\t\tif (!$db->query())\n\t\t{\n\t\t\t//echo $db->getErrorMsg().'<br />';\n\t\t}\n\t\n\t\t// Initialise variables\n\t\t$conf = JFactory::getConfig();\n\t\t$dispatcher = JDispatcher::getInstance();\n\n\t\t$options = array(\n\t\t\t'defaultgroup' => ($tblModules->module) ? $tblModules->module : (isset($this->option) ? $this->option : JRequest::getCmd('option')),\n\t\t\t'cachebase' => ($tblModules->client_id) ? JPATH_ADMINISTRATOR . '/cache' : $conf->get('cache_path', JPATH_SITE . '/cache'));\n\n\t\t$cache = JCache::getInstance('callback', $options);\n\t\t$cache->clean();\n\n\t\t// Trigger the onContentCleanCache event.\n\t\t$dispatcher->trigger('onContentCleanCache', $options);\n */\n \n \n \n\t}", "title": "" }, { "docid": "c158caf9b9e7b55260e175711e762f19", "score": "0.525354", "text": "public function upgrade () {\r\n }", "title": "" }, { "docid": "17e2c16ad271a96ea41c26518fc9ef6a", "score": "0.52517843", "text": "function icms_module_update_career($module) {\r\n\t$icmsDatabaseUpdater = icms_db_legacy_Factory::getDatabaseUpdater();\r\n\t$icmsDatabaseUpdater -> moduleUpgrade($module);\r\n return TRUE;\r\n}", "title": "" }, { "docid": "2f8c4ecf8857e59527664ba4cbc66647", "score": "0.52408373", "text": "function finalizeModuleUpgrade() {\n $modules_table = TABLE_PREFIX . 'modules';\n $config_options_table = TABLE_PREFIX . 'config_options';\n\n try {\n\n // Remove merged modules\n DB::execute(\"DELETE FROM $modules_table WHERE name IN (?)\", array('incoming_mail', 'milestones', 'mobile_access', 'resources'));\n\n // Update incoming mail related settings\n DB::execute(\"UPDATE $config_options_table SET module = ? WHERE module = ?\", 'system', 'incoming_mail');\n\n // Uninstall backup module\n DB::execute(\"DELETE FROM $modules_table WHERE name = ?\", 'backup');\n DB::execute(\"DELETE FROM $config_options_table WHERE module = ?\", 'backup');\n\n // Enable only first party modules\n DB::execute(\"DELETE FROM $modules_table WHERE name NOT IN (?)\", array('system', 'discussions', 'milestones', 'files', 'todo', 'calendar', 'notebooks', 'tasks', 'tracking', 'project_exporter', 'status', 'documents', 'source', 'invoicing'));\n DB::execute(\"UPDATE $modules_table SET is_enabled = ?\", true);\n } catch(Exception $e) {\n return $e->getMessage();\n } // try\n\n return true;\n }", "title": "" }, { "docid": "111bc78c52226f249c3f0f0f8c845803", "score": "0.5231515", "text": "function hook_modules_installed($modules) {\n if (in_array('lousy_module', $modules)) {\n variable_set('lousy_module_conflicting_variable', FALSE);\n }\n}", "title": "" }, { "docid": "d5172bfaf5077fe0c665e5f390d52073", "score": "0.5225498", "text": "public function setModules()\n\t{\n \t//Zend_Registry::set('modules', $modules->getList());\n\t}", "title": "" }, { "docid": "2835e5693c553f33957dfe4db2ece40f", "score": "0.52253866", "text": "public function createModuleInstalls() {\n $strReturn = \"\";\n $strInstallLog = \"\";\n\n $objManager = new class_module_packagemanager_manager();\n\n //module-installs to loop?\n if(isset($_POST[\"moduleInstallBox\"]) && is_array($_POST[\"moduleInstallBox\"])) {\n $arrModulesToInstall = $_POST[\"moduleInstallBox\"];\n foreach($arrModulesToInstall as $strOneModule => $strValue) {\n\n //search the matching modules\n foreach($this->arrMetadata as $objOneMetadata) {\n if($strOneModule == \"installer_\".$objOneMetadata->getStrTitle()) {\n $objHandler = $objManager->getPackageManagerForPath($objOneMetadata->getStrPath());\n $strInstallLog .= $objHandler->installOrUpdate();\n }\n }\n\n }\n\n }\n\n class_objectfactory::getInstance()->flushCache();\n class_carrier::getInstance()->getObjDB()->flushQueryCache();\n class_module_system_module::flushCache();\n $this->loadInstaller();\n\n\n $this->strLogfile = $strInstallLog;\n $strReturn .= $this->getLang(\"installer_modules_found\");\n\n $strRows = \"\";\n $strTemplateID = $this->objTemplates->readTemplate(\"/core/module_installer/installer.tpl\", \"installer_modules_row\", true);\n $strTemplateIDInstallable = $this->objTemplates->readTemplate(\"/core/module_installer/installer.tpl\", \"installer_modules_row_installable\", true);\n\n //Loading each installer\n\n foreach($this->arrMetadata as $objOneMetadata) {\n\n //skip samplecontent\n if($objOneMetadata->getStrTitle() == \"samplecontent\")\n continue;\n\n $objHandler = $objManager->getPackageManagerForPath($objOneMetadata->getStrPath());\n\n $arrTemplate = array();\n $arrTemplate[\"module_name\"] = $objHandler->getObjMetadata()->getStrTitle();\n $arrTemplate[\"module_nameShort\"] = $objHandler->getObjMetadata()->getStrTitle();\n $arrTemplate[\"module_version\"] = $objHandler->getObjMetadata()->getStrVersion();\n\n //generate the hint\n $arrTemplate[\"module_hint\"] = \"\";\n\n if($objHandler->getVersionInstalled() !== null) {\n $arrTemplate[\"module_hint\"] .= $this->getLang(\"installer_versioninstalled\", \"system\").$objHandler->getVersionInstalled().\"<br />\";\n }\n\n //check missing modules\n $arrModules = $objHandler->getObjMetadata()->getArrRequiredModules();\n foreach($arrModules as $strOneModule => $strVersion) {\n if(trim($strOneModule) != \"\" && class_module_system_module::getModuleByName(trim($strOneModule)) === null) {\n\n //check if a corresponding module is available\n $objPackagemanager = new class_module_packagemanager_manager();\n $objPackage = $objPackagemanager->getPackage($strOneModule);\n\n if($objPackage === null || $objPackage->getBitProvidesInstaller() || version_compare($strVersion, $objPackage->getStrVersion(), \">\")) {\n $arrTemplate[\"module_hint\"] .= $this->getLang(\"installer_systemversion_needed\", \"system\").$strOneModule.\" >= \".$strVersion.\"<br />\";\n }\n\n }\n\n else if(version_compare($strVersion, class_module_system_module::getModuleByName(trim($strOneModule))->getStrVersion(), \">\")) {\n $arrTemplate[\"module_hint\"] .= $this->getLang(\"installer_systemversion_needed\", \"system\").$strOneModule.\" >= \".$strVersion.\"<br />\";\n }\n }\n\n\n\n\n if($objHandler->isInstallable()) {\n $strRows .= $this->objTemplates->fillTemplate($arrTemplate, $strTemplateIDInstallable);\n }\n else {\n $strRows .= $this->objTemplates->fillTemplate($arrTemplate, $strTemplateID);\n }\n\n }\n\n //wrap in form\n $strTemplateID = $this->objTemplates->readTemplate(\"/core/module_installer/installer.tpl\", \"installer_modules_form\", true);\n $strReturn .= $this->objTemplates->fillTemplate(array(\"module_rows\" => $strRows), $strTemplateID);\n\n $this->strOutput .= $strReturn;\n $this->strBackwardLink = $this->getBackwardLink(_webpath_.\"/installer.php?step=modeSelect\");\n $this->strForwardLink = $this->getForwardLink(_webpath_.\"/installer.php?step=samplecontent\");\n }", "title": "" }, { "docid": "c548079741cf8fe8e0aa4e09cee74ac4", "score": "0.5223468", "text": "final public function setModuleName($modulename)\n {\n $this->_moduleName = $modulename;\n }", "title": "" }, { "docid": "e89e3c2f446bafca4df24a7cace0ef1b", "score": "0.5218001", "text": "public function testInstalledIncompatibleModule() {\n $incompatible_modules_message = 'There are errors with some installed modules. Visit the status report page for more information.';\n $path = \\Drupal::getContainer()->getParameter('site.path') . \"/modules/changing_module\";\n mkdir($path, 0777, TRUE);\n $file_path = \"$path/changing_module.info.yml\";\n $info = [\n 'name' => 'Module that changes',\n 'type' => 'module',\n ];\n $compatible_info = $info + ['core_version_requirement' => '*'];\n\n file_put_contents($file_path, Yaml::encode($compatible_info));\n $edit = ['modules[changing_module][enable]' => 'changing_module'];\n $this->drupalGet('admin/modules');\n $this->submitForm($edit, 'Install');\n $this->assertSession()->pageTextContains('Module Module that changes has been enabled.');\n\n $incompatible_updates = [\n [\n 'core_version_requirement' => '^1',\n ],\n [\n 'core' => '8.x',\n ],\n ];\n foreach ($incompatible_updates as $incompatible_update) {\n $incompatible_info = $info + $incompatible_update;\n file_put_contents($file_path, Yaml::encode($incompatible_info));\n $this->drupalGet('admin/modules');\n $this->assertSession()->pageTextContains($incompatible_modules_message);\n\n file_put_contents($file_path, Yaml::encode($compatible_info));\n $this->drupalGet('admin/modules');\n $this->assertSession()->pageTextNotContains($incompatible_modules_message);\n }\n // Uninstall the module and ensure that incompatible modules message is not\n // displayed for modules that are not installed.\n $edit = ['uninstall[changing_module]' => 'changing_module'];\n $this->drupalGet('admin/modules/uninstall');\n $this->submitForm($edit, 'Uninstall');\n $this->submitForm([], 'Uninstall');\n $this->assertSession()->pageTextContains('The selected modules have been uninstalled.');\n foreach ($incompatible_updates as $incompatible_update) {\n $incompatible_info = $info + $incompatible_update;\n file_put_contents($file_path, Yaml::encode($incompatible_info));\n $this->drupalGet('admin/modules');\n $this->assertSession()->pageTextNotContains($incompatible_modules_message);\n }\n }", "title": "" }, { "docid": "bee3ffc52e5c18a3d54a334609ffc212", "score": "0.521217", "text": "function upgrade_module_0_9_7($module) {\n\t\tConfiguration::deleteByName('PAYPLUG_ORDER_STATE_REFUND');\n\n\t\tPayplug::updateConfiguration('PAYPLUG_SANDBOX', '0');\n\n\t\t$install = new InstallPayplug();\n\t\t$install->createOrderState();\n\n\t\t$module->registerHook('header');\n\n\t\t$install->installPayplugLock();\n\n\t\treturn true; // Return true if success.\n\t}", "title": "" }, { "docid": "2c9b4111a203a7e0cca157198b3a60bc", "score": "0.5204325", "text": "public function register_modules() {\n\n\t\t/**\n\t\t * Filter the available lockout modules.\n\t\t *\n\t\t * @param array $lockout_modules Each lockout module should be an array containing 'type', 'reason' and\n\t\t * 'period' options. The type is a unique string referring to the type of lockout.\n\t\t * 'reason' is a human readable label describing the reason for the lockout.\n\t\t * 'period' is the number of days to check for lockouts to decide if the host\n\t\t * should be permanently banned. Additionally, the 'user' and 'host' options instruct\n\t\t * security to wait for that many temporary lockout events to occur before executing\n\t\t * the lockout.\n\t\t */\n\t\t$this->lockout_modules = apply_filters( 'itsec_lockout_modules', $this->lockout_modules );\n\t}", "title": "" }, { "docid": "1be4831467f1e2fbb638498a962a5fde", "score": "0.51979476", "text": "public function module_methods(){\n\t\treturn $modules_name = array(\n\t\t\t\t'l' => 'List',\n\t\t\t\t'a' => 'Add',\n\t\t\t\t'e' => 'Edit',\n\t\t\t\t'd' => 'Delete'\n\t\t\t);\n\t}", "title": "" }, { "docid": "1be4831467f1e2fbb638498a962a5fde", "score": "0.51979476", "text": "public function module_methods(){\n\t\treturn $modules_name = array(\n\t\t\t\t'l' => 'List',\n\t\t\t\t'a' => 'Add',\n\t\t\t\t'e' => 'Edit',\n\t\t\t\t'd' => 'Delete'\n\t\t\t);\n\t}", "title": "" }, { "docid": "dfe4662ff09b4e728f8d957d103ca698", "score": "0.5197555", "text": "protected function installExtraModules(array $module_list) {\n /** @var \\Drupal\\Core\\Extension\\ModuleInstallerInterface $installer */\n $installer = $this->container->get('module_installer');\n $installer->install($module_list);\n\n $this->container->get('router.builder')->rebuildIfNeeded();\n }", "title": "" }, { "docid": "79d67c00ce9f3fe7e7e647260a81305a", "score": "0.51962364", "text": "protected function setEngineModules()\n {\n $mods = ModulesModel::getEnabled();\n if ($mods) {\n foreach ($mods as $module) {\n $this->setModules(array($module->name => array(\n 'access' => $module->access\n )\n ));\n }\n }\n }", "title": "" }, { "docid": "c6c4fffea756d7e66dd6b75d6f7b1c39", "score": "0.51828754", "text": "public static function addRequiredExtension($name, $recheck = true)\n\t{\n\t\tself::$config['requiredExtensions'][] = $name;\n\n\t\tif($recheck)\n\t\t{\n\t\t\tself::checkRequiredExtensions();\n\t\t}\n\t}", "title": "" }, { "docid": "c6ed69765f0c77e924daa63d03ce703d", "score": "0.517311", "text": "public function upgrade();", "title": "" }, { "docid": "cc72cdcd3ccb34831d617510c6f405ee", "score": "0.5170282", "text": "public static function registerModule($array) {\n\t\tself::$registeredModules = array_merge(self::$registeredModules, $array);\n\t}", "title": "" }, { "docid": "e78ef5db806b07b106f43f097823b328", "score": "0.5169982", "text": "function hook_update_dependencies() {\n // Indicate that the mymodule_update_7000() function provided by this module\n // must run after the another_module_update_7002() function provided by the\n // 'another_module' module.\n $dependencies['mymodule'][7000] = array(\n 'another_module' => 7002,\n );\n // Indicate that the mymodule_update_7001() function provided by this module\n // must run before the yet_another_module_update_7004() function provided by\n // the 'yet_another_module' module. (Note that declaring dependencies in this\n // direction should be done only in rare situations, since it can lead to the\n // following problem: If a site has already run the yet_another_module\n // module's database updates before it updates its codebase to pick up the\n // newest mymodule code, then the dependency declared here will be ignored.)\n $dependencies['yet_another_module'][7004] = array(\n 'mymodule' => 7001,\n );\n return $dependencies;\n}", "title": "" }, { "docid": "403e7e745b7f2787f807ac1af0c702bd", "score": "0.51696146", "text": "public function enable()\n {\n $this->setEnabled(1);\n $this->app['events']->fire('module.enabled', [$this]);\n }", "title": "" }, { "docid": "642bc10311fb4d181219e1d08224abb4", "score": "0.51570475", "text": "function monitorable_modules() {\n global $DB;\n\n return array(\n 'assign' => array(\n 'defaultTime' => 'duedate',\n 'actions' => array(\n 'submitted' => \"SELECT id\n FROM {assign_submission}\n WHERE assignment = :eventid\n AND userid = :userid\n AND status = 'submitted'\",\n 'marked' => \"SELECT g.rawgrade\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'assign'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n 'passed' => \"SELECT g.finalgrade, i.gradepass\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'assign'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n ),\n 'defaultAction' => 'submitted'\n ),\n 'assignment' => array(\n 'defaultTime' => 'timedue',\n 'actions' => array(\n 'submitted' => \"SELECT id\n FROM {assignment_submissions}\n WHERE assignment = :eventid\n AND userid = :userid\n AND (\n numfiles >= 1\n OR {$DB->sql_compare_text('data2')} <> ''\n )\",\n 'marked' => \"SELECT g.rawgrade\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'assignment'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n 'passed' => \"SELECT g.finalgrade, i.gradepass\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'assignment'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n ),\n 'defaultAction' => 'submitted'\n ),\n 'bigbluebuttonbn' => array(\n 'defaultTime' => 'timedue',\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'bigbluebuttonbn'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_bigbluebuttonbn'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'recordingsbn' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'recordingsbn'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_recordingsbn'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'book' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'book'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_book'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'certificate' => array(\n 'actions' => array(\n 'awarded' => \"SELECT id\n FROM {certificate_issues}\n WHERE certificateid = :eventid\n AND userid = :userid\"\n ),\n 'defaultAction' => 'awarded'\n ),\n 'chat' => array(\n 'actions' => array(\n 'posted_to' => \"SELECT id\n FROM {chat_messages}\n WHERE chatid = :eventid\n AND userid = :userid\"\n ),\n 'defaultAction' => 'posted_to'\n ),\n 'choice' => array(\n 'defaultTime' => 'timeclose',\n 'actions' => array(\n 'answered' => \"SELECT id\n FROM {choice_answers}\n WHERE choiceid = :eventid\n AND userid = :userid\"\n ),\n 'defaultAction' => 'answered'\n ),\n 'data' => array(\n 'defaultTime' => 'timeviewto',\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'data'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_data'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'feedback' => array(\n 'defaultTime' => 'timeclose',\n 'actions' => array(\n 'responded_to' => \"SELECT id\n FROM {feedback_completed}\n WHERE feedback = :eventid\n AND userid = :userid\"\n ),\n 'defaultAction' => 'responded_to'\n ),\n 'resource' => array( // AKA file.\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'resource'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_resource'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'flashcardtrainer' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'flashcardtrainer'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_flashcardtrainer'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'folder' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'folder'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_folder'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'forum' => array(\n 'defaultTime' => 'assesstimefinish',\n 'actions' => array(\n 'posted_to' => \"SELECT id\n FROM {forum_posts}\n WHERE userid = :userid AND discussion IN (\n SELECT id\n FROM {forum_discussions}\n WHERE forum = :eventid\n )\"\n ),\n 'defaultAction' => 'posted_to'\n ),\n 'glossary' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'glossary'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_glossary'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'hotpot' => array(\n 'defaultTime' => 'timeclose',\n 'actions' => array(\n 'attempted' => \"SELECT id\n FROM {hotpot_attempts}\n WHERE hotpotid = :eventid\n AND userid = :userid\",\n 'finished' => \"SELECT id\n FROM {hotpot_attempts}\n WHERE hotpotid = :eventid\n AND userid = :userid\n AND timefinish <> 0\",\n ),\n 'defaultAction' => 'finished'\n ),\n 'hsuforum' => array(\n 'defaultTime' => 'assesstimefinish',\n 'actions' => array(\n 'posted_to' => \"SELECT id\n FROM {hsuforum_posts}\n WHERE userid = :userid AND discussion IN (\n SELECT id\n FROM {hsuforum_discussions}\n WHERE forum = :eventid\n )\"\n ),\n 'defaultAction' => 'posted_to'\n ),\n 'imscp' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'imscp'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_imscp'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'journal' => array(\n 'actions' => array(\n 'posted_to' => \"SELECT id\n FROM {journal_entries}\n WHERE journal = :eventid\n AND userid = :userid\"\n ),\n 'defaultAction' => 'posted_to'\n ),\n 'lesson' => array(\n 'defaultTime' => 'deadline',\n 'actions' => array(\n 'attempted' => \"SELECT id\n FROM {lesson_attempts}\n WHERE lessonid = :eventid\n AND userid = :userid\n UNION ALL\n SELECT id\n FROM {lesson_branch}\n WHERE lessonid = :eventid1\n AND userid = :userid1\",\n 'graded' => \"SELECT g.rawgrade\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'lesson'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n ),\n 'defaultAction' => 'attempted'\n ),\n 'page' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'page'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_page'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'questionnaire' => array(\n 'defaultTime' => 'closedate',\n 'actions' => array(\n 'attempted' => \"SELECT id\n FROM {questionnaire_attempts}\n WHERE qid = :eventid\n AND userid = :userid\",\n 'finished' => \"SELECT id\n FROM {questionnaire_response}\n WHERE complete = 'y'\n AND username = :userid\n AND survey_id = :eventid\",\n ),\n 'defaultAction' => 'finished'\n ),\n 'quiz' => array(\n 'defaultTime' => 'timeclose',\n 'actions' => array(\n 'attempted' => \"SELECT id\n FROM {quiz_attempts}\n WHERE quiz = :eventid\n AND userid = :userid\",\n 'finished' => \"SELECT id\n FROM {quiz_attempts}\n WHERE quiz = :eventid\n AND userid = :userid\n AND timefinish <> 0\",\n 'graded' => \"SELECT g.rawgrade\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'quiz'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n 'passed' => \"SELECT g.finalgrade, i.gradepass\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'quiz'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n ),\n 'defaultAction' => 'finished'\n ),\n 'scorm' => array(\n 'actions' => array(\n 'attempted' => \"SELECT id\n FROM {scorm_scoes_track}\n WHERE scormid = :eventid\n AND userid = :userid\",\n 'completed' => \"SELECT id\n FROM {scorm_scoes_track}\n WHERE scormid = :eventid\n AND userid = :userid\n AND element = 'cmi.core.lesson_status'\n AND {$DB->sql_compare_text('value')} = 'completed'\",\n 'passedscorm' => \"SELECT id\n FROM {scorm_scoes_track}\n WHERE scormid = :eventid\n AND userid = :userid\n AND element = 'cmi.core.lesson_status'\n AND {$DB->sql_compare_text('value')} = 'passed'\"\n ),\n 'defaultAction' => 'attempted'\n ),\n 'turnitintool' => array(\n 'defaultTime' => 'defaultdtdue',\n 'actions' => array(\n 'submitted' => \"SELECT id\n FROM {turnitintool_submissions}\n WHERE turnitintoolid = :eventid\n AND userid = :userid\n AND submission_score IS NOT NULL\"\n ),\n 'defaultAction' => 'submitted'\n ),\n 'url' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'url'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_url'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'wiki' => array(\n 'actions' => array(\n 'viewed' => array (\n 'logstore_legacy' => \"SELECT id\n FROM {log}\n WHERE course = :courseid\n AND module = 'wiki'\n AND action = 'view'\n AND cmid = :cmid\n AND userid = :userid\",\n 'sql_internal_reader' => \"SELECT id\n FROM {log}\n WHERE courseid = :courseid\n AND component = 'mod_wiki'\n AND action = 'viewed'\n AND objectid = :eventid\n AND userid = :userid\",\n ),\n ),\n 'defaultAction' => 'viewed'\n ),\n 'workshop' => array(\n 'defaultTime' => 'assessmentend',\n 'actions' => array(\n 'submitted' => \"SELECT id\n FROM {workshop_submissions}\n WHERE workshopid = :eventid\n AND authorid = :userid\",\n 'assessed' => \"SELECT s.id\n FROM {workshop_assessments} a, {workshop_submissions} s\n WHERE s.workshopid = :eventid\n AND s.id = a.submissionid\n AND a.reviewerid = :userid\n AND a.grade IS NOT NULL\",\n 'graded' => \"SELECT g.rawgrade\n FROM {grade_grades} g, {grade_items} i\n WHERE i.itemmodule = 'workshop'\n AND i.iteminstance = :eventid\n AND i.id = g.itemid\n AND g.userid = :userid\n AND (g.finalgrade IS NOT NULL OR g.excluded <> 0)\",\n ),\n 'defaultAction' => 'submitted'\n ),\n );\n}", "title": "" }, { "docid": "9643b4890fea3a343ae02cd37e2ab056", "score": "0.51513064", "text": "function spaces_form_system_modules_alter(&$form, &$form_state) {\n $form['#submit'][] = 'spaces_form_system_modules_submit';\n}", "title": "" }, { "docid": "22103315677b0468f456804c13410ff6", "score": "0.5150739", "text": "public function upgrade() {\r\n }", "title": "" }, { "docid": "c2512806891775e20efe33ffa6dd1d94", "score": "0.5147973", "text": "function sed_mafiran_add_modules( $modules ){\n\n global $sed_pb_modules;\n\n $module_name = \"themes/mafiran/site-editor/modules/posts/posts.php\";\n $modules[$module_name] = $sed_pb_modules->get_module_data(get_stylesheet_directory() . '/site-editor/modules/posts/posts.php', true, true);\n\n $module_name = \"themes/mafiran/site-editor/modules/mafiran-products/mafiran-products.php\";\n $modules[$module_name] = $sed_pb_modules->get_module_data(get_stylesheet_directory() . '/site-editor/modules/mafiran-products/mafiran-products.php', true, true);\n \n return $modules;\n\n}", "title": "" }, { "docid": "c432b8b2fb04a5587c52dadf3a3c62eb", "score": "0.5145132", "text": "public function upgrade()\n {\n }", "title": "" }, { "docid": "aa94578036551297b8d3228278111b9b", "score": "0.51414895", "text": "public function renameModule($name, $newName);", "title": "" }, { "docid": "df3ceeb338c847fca78e34bc09a13d49", "score": "0.5135515", "text": "public function installAction()\n {\n $directory = _get('directory', 'regexp', array(\n 'regexp' => '/^[a-z0-9_]+$/i')\n );\n $name = _get('name', 'regexp', array('regexp' => '/^[a-z0-9_]+$/i'))\n ?: $directory;\n $title = _get('title');\n\n $result = false;\n $error = '';\n $message = '';\n $details = array();\n\n if (empty($directory) && $name) {\n $directory = $name;\n }\n\n if (!$directory) {\n $error = __('Directory is not specified.');\n }\n if (!$error) {\n $meta = Pi::service('module')->loadMeta($directory, 'meta');\n if (!$meta) {\n $error = sprintf(\n __('Meta data are not loaded for \"%s\".'),\n $directory\n );\n }\n }\n if (!$error) {\n $installed = Pi::registry('module')->read($name)\n ? true : false;\n if (!$installed) {\n $installedModules = $this->installedModules();\n if (in_array($directory, $installedModules)\n && empty($meta['clonable'])\n ) {\n $installed = false;\n }\n }\n if ($installed) {\n $error = __('The module has already been installed.');\n }\n }\n if (!$error) {\n $args = array(\n 'directory' => $directory,\n 'title' => $title ?: $meta['title'],\n );\n\n $installer = new ModuleInstaller;\n $result = $installer->install($name, $args);\n $details = $installer->getResult();\n }\n if ($result) {\n $message = sprintf(\n __('Module \"%s\" is installed successfully.'),\n $name ?: $directory\n );\n } elseif ($directory) {\n $message = sprintf(\n __('Module \"%s\" is not installed.'),\n $name ?: $directory\n );\n } else {\n $message = __('Module is not installed.');\n }\n\n $data = array(\n 'title' => __('Module installation'),\n 'result' => $result,\n 'error' => $error,\n 'message' => $message,\n 'details' => $details,\n 'url' => $this->url('', array('action' => 'available')),\n );\n $this->view()->assign($data);\n $this->view()->setTemplate('module-operation');\n }", "title": "" }, { "docid": "5b75400e1b3a4b1331eadd7745d84bb0", "score": "0.5124293", "text": "function qa_register_core_modules()\n{\n\tqa_register_module('filter', 'plugins/qa-filter-basic.php', 'qa_filter_basic', '');\n\tqa_register_module('editor', 'plugins/qa-editor-basic.php', 'qa_editor_basic', '');\n\tqa_register_module('viewer', 'plugins/qa-viewer-basic.php', 'qa_viewer_basic', '');\n\tqa_register_module('event', 'plugins/qa-event-limits.php', 'qa_event_limits', 'Q2A Event Limits');\n\tqa_register_module('event', 'plugins/qa-event-notify.php', 'qa_event_notify', 'Q2A Event Notify');\n\tqa_register_module('event', 'plugins/qa-event-updates.php', 'qa_event_updates', 'Q2A Event Updates');\n\tqa_register_module('search', 'plugins/qa-search-basic.php', 'qa_search_basic', '');\n\tqa_register_module('widget', 'plugins/qa-widget-activity-count.php', 'qa_activity_count', 'Activity Count');\n\tqa_register_module('widget', 'plugins/qa-widget-ask-box.php', 'qa_ask_box', 'Ask Box');\n\tqa_register_module('widget', 'plugins/qa-widget-related-qs.php', 'qa_related_qs', 'Related Questions');\n\tqa_register_module('widget', 'plugins/qa-widget-category-list.php', 'qa_category_list', 'Categories');\n}", "title": "" }, { "docid": "3535c63a6bcb2af0986006515f571034", "score": "0.51182693", "text": "public function moduleExists($name) {\n }", "title": "" }, { "docid": "e32003ae938166617fbe5e16ba8de789", "score": "0.51147527", "text": "public function availableAction()\n {\n $modules = array();\n //$modulesInstalled = $this->installedModules();\n $iterator = new \\DirectoryIterator(Pi::path('module'));\n foreach ($iterator as $fileinfo) {\n if (!$fileinfo->isDir() || $fileinfo->isDot()) {\n continue;\n }\n $directory = $fileinfo->getFilename();\n if (preg_match('/[^a-z0-9_]/i', $directory)) {\n continue;\n }\n $meta = Pi::service('module')->loadMeta($directory, 'meta');\n if (empty($meta)) {\n continue;\n }\n $author = Pi::service('module')->loadMeta($directory, 'author');\n //$clonable = isset($meta['clonable']) ? $meta['clonable'] : false;\n //$meta['installed'] = in_array($directory, $modulesInstalled);\n $meta['installed'] = Pi::registry('module')\n ->read($directory) ? true : false;\n if (empty($meta['clonable']) && $meta['installed']) {\n continue;\n }\n $meta['logo'] = !empty($meta['logo'])\n ? Pi::url('script/browse.php') . '?'\n . sprintf('module/%s/asset/%s', $directory, $meta['logo'])\n : Pi::url('static/image/module.png');\n $modules[$directory] = array(\n 'meta' => $meta,\n 'author' => $author,\n );\n }\n\n $this->view()->assign('modules', $modules);\n $this->view()->assign('title', __('Modules ready for installation'));\n }", "title": "" }, { "docid": "10b359624c5320b47100291d337fd4eb", "score": "0.51135314", "text": "private function registerSystemFunction() : void\n\t{\n\t\tforeach($this -> modulesList as $module)\n\t\t{\n\t\t\tif(!$module -> is_systemFunction)\n\t\t\t\tcontinue;\n\n\t\t\tswitch($module -> module_type) \n\t\t\t{\n\t\t\t\tcase 'core' :\tinclude_once CMS_SERVER_ROOT.DIR_CORE.DIR_MODULES. $module -> module_location .'/'. $module -> module_controller .'.php';\n\n\t\t\t\t\t\t\t\t$moduleConfig \t= file_get_contents( CMS_SERVER_ROOT.DIR_CORE.DIR_MODULES. $module -> module_location .'/module.json');\n\t\t\t\t\t\t\t\t$moduleConfig \t= ($moduleConfig !== false ? json_decode($moduleConfig) : [] );\t\n\n\t\t\t\t\t\t\t\t$pModulesInstall = new CModulesInstall;\n\t\t\t\t\t\t\t\t$moduleData = $pModulesInstall -> getModuleData($moduleConfig, $module -> module_location, $module -> module_type);\n\n\t\t\t\t\t\t\t\tif($moduleData === false)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcmsLog::add('CModules::registerSystemFunction -- Unable to retrieve modul info for module-ID '. $module -> module_id, true);\n\t\t\t\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$moduleData = json_decode(json_encode($moduleData));\n\n\t\t\t\t\t\t\t\t$moduleInfo = (object)$moduleData;\n\t\t\t\t\t\t\t\t$moduleInfo -> user_rights = $this -> m_pUserRights -> getModuleRights($module -> module_id);\n\t\t\t\t\t\t\t\t\n\t\t\t\tcase 'mantle' : include_once CMS_SERVER_ROOT.DIR_MANTLE.DIR_MODULES. $module -> module_location .'/'. $module -> module_controller .'.php';\n\n\t\t\t\t\t\t\t\t$moduleConfig \t= file_get_contents( CMS_SERVER_ROOT.DIR_MANTLE.DIR_MODULES. $module -> module_location .'/module.json');\n\t\t\t\t\t\t\t\t$moduleConfig \t= ($moduleConfig !== false ? json_decode($moduleConfig) : [] );\t\n\n\t\t\t\t\t\t\t\t$pModulesInstall = new CModulesInstall;\n\t\t\t\t\t\t\t\t$moduleData = $pModulesInstall -> getModuleData($moduleConfig, $module -> module_location, $module -> module_type);\n\n\t\t\t\t\t\t\t\tif($moduleData === false)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcmsLog::add('CModules::registerSystemFunction -- Unable to retrieve modul info for module-ID '. $module -> module_id, true);\n\t\t\t\t\t\t\t\t\tcontinue 2;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t$moduleData = json_decode(json_encode($moduleData));\n\n\t\t\t\t\t\t\t\t$moduleInfo = (object)$moduleData;\n\t\t\t\t\t\t\t\t$moduleInfo -> user_rights = $this -> m_pUserRights -> getModuleRights($module -> module_id);\n\n\n\n\n\n\n\n\n\n\n\t\t\t}\n\n\t\t\tif(!empty($moduleInfo))\n\t\t\t{\n\t\t\t\t$empty = new stdClass;\n\n\t\t\t\t$moduleInstance = new $module -> module_controller($module, $empty);\n\n\t\t\t\tif(!method_exists($moduleInstance, 'registerSystemFunction'))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t$moduleInstance -> registerSystemFunction(cmsSystemModules::instance());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6bec57c3fc7b3c4184ececd4e7d7846e", "score": "0.51125634", "text": "public static function install($name,$ignoreDependentModule=false){\n\t\t\n\t\t\n\t\tGO::debug(\"install($name,$ignoreDependentModule)\");\n\t\t\n\t\tif(!($module = Module::model()->findByName($name))){\n\t\t\t$module = new Module();\n\t\t\t$module->name=$name;\n\t\t\t\t\t\t\n\t\t\t$dependencies = $module->moduleManager->getDependencies();\t\n\t\t\t\n\t\t\tforeach($dependencies as $dependency){\n\t\t\t\tif($ignoreDependentModule!==$dependency){\n\t\t\t\t\tself::install($dependency, $name);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(!$module->save())\n\t\t\t\tthrow new \\GO\\Base\\Exception\\Save();\n\t\t}else\n\t\t{\n\t\t\tif(!$module->enabled){\n\t\t\t\t$module->enabled=true;\n\t\t\t\t\n\t\t\t\t$dependencies = $module->moduleManager->getDependencies();\t\n\t\t\t\t\n\t\t\t\tGO::debug($dependencies);\n\t\t\t\n\t\t\t\tforeach($dependencies as $dependency){\n\t\t\t\t\tif($ignoreDependentModule!==$dependency){\n\t\t\t\t\t\tself::install($dependency, $name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$module->save();\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\t\n\t\treturn $module;\n\t}", "title": "" }, { "docid": "0190358f7c7957562c9265b45acc51e5", "score": "0.51077217", "text": "protected function createMenuEntriesForTbeModulesExt() {}", "title": "" }, { "docid": "0190358f7c7957562c9265b45acc51e5", "score": "0.51077217", "text": "protected function createMenuEntriesForTbeModulesExt() {}", "title": "" }, { "docid": "73850ed5710143f3b1041775515c6ec1", "score": "0.5107664", "text": "public function getModule($name);", "title": "" }, { "docid": "4619f5d3b00f078d700a2258b0f01ba3", "score": "0.5107175", "text": "public function upgrade()\n {\n include \"ModuleInstall/extensions.php\";\n $this->extensions = $extensions;\n // Set the upgrade file list\n $this->logUpgradeStatus('Setting upgrade file list...');\n $this->setFilesToUpgrade();\n\n // Traverse the files and start parsing and moving\n $this->logUpgradeStatus('Beginning metadata upgrade process...');\n foreach ($this->files as $file) {\n // Get the appropriate upgrade class name for this view type\n $class = $this->getUpgraderClass($file['viewtype']);\n if ($class) {\n if (!class_exists($class, false)) {\n $classfile = $class . '.php';\n require_once $classfile;\n }\n\n $upgrader = new $class($this, $file);\n\n // If the upgrade worked for this file, add it to the remove stack\n $this->logUpgradeStatus(\"Delegating upgrade to $class for {$file['fullpath']}...\");\n if ($upgrader->upgrade()) {\n if (!empty($upgrader->deleteOld) && !in_array($file['fullpath'], self::$filesForRemoval)) {\n self::$filesForRemoval[] = $file['fullpath'];\n }\n } else {\n $this->registerFailure($file);\n }\n $this->logUpgradeStatus(\"{$class} :: upgrade() complete...\");\n }\n }\n $this->logUpgradeStatus('Metadata upgrade process complete.');\n\n $this->logUpgradeStatus('Mobile/portal metadata upgrade process complete.');\n\n foreach ($this->getModulesList() as $module) {\n // if this is not a BWC module remove the old subpaneldefs layout\n if(!isModuleBWC($module)) {\n self::$filesForRemoval[] = \"modules/{$module}/metadata/subpaneldefs.php\";\n }\n\n // make sure team_name is not on the layout in case it doesn't exist in the module\n // (even if defined in template's layout)\n $sm = StudioModuleFactory::getStudioModule($module);\n $fields = $sm->getFields();\n if (is_array($fields) && !isset($fields['team_name'])) {\n $sm->removeFieldFromLayouts('team_name');\n }\n }\n\n // Add the rest of the OOTB module wireless metadata files to the stack\n $this->cleanupLegacyFiles();\n }", "title": "" }, { "docid": "bc46aad8ba83425a545f83b71a00fbcc", "score": "0.5106466", "text": "public function addModule(IModule $module)\n {\n $module->init($this);\n }", "title": "" }, { "docid": "f408ea89bfd82af1cb4f899f76c6112b", "score": "0.5094926", "text": "public function upgrade() {\n $this->installIndex();\n $this->installController();\n $this->installSkinnyUser();\n $this->installBaseModel();\n $this->installException();\n $this->installSkinnyActions();\n $this->installDbController();\n}", "title": "" }, { "docid": "54e6716a8caf8ccefdf72589e9e6bb1d", "score": "0.5091099", "text": "public function setDefaultModule($moduleName){ }", "title": "" }, { "docid": "6036eea1e8cb00366be07b4215253df7", "score": "0.5086513", "text": "function coder_upgrade_upgrade_begin_alter($item) {\n// return; // TODO Temporary\n// cdp(\"inside \" . __FUNCTION__);\n global $upgrade_menu_registry;\n if (!$upgrade_menu_registry) {\n $upgrade_menu_registry = array();\n }\n /*\n * TODO Should we:\n * - write the core cache to a file (and commit the file?)\n * - make an admin settings page button to generate this cache (and any others we need)\n * - check for existence of cache if core upgrades are being run\n */\n coder_upgrade_cache_theme_registry();\n coder_upgrade_cache_info_hooks($item);\n cdp($upgrade_menu_registry);\n}", "title": "" }, { "docid": "8ddfcf9799cfe8e68ef541f78c4eb101", "score": "0.50690764", "text": "function upgrade_110()\n {\n }", "title": "" }, { "docid": "9c17c22d3d613ff1287bab04cae9aab6", "score": "0.50688726", "text": "static function moduleInstall($modName){\r\n\t\t$m = self::getInstance($modName);\r\n\t\treturn method_exists($m,'install') ? $m->install() : true;\r\n\t}", "title": "" }, { "docid": "d01ea3804d49c132e3a950d58b4615dd", "score": "0.5064748", "text": "public function hasModule($name);", "title": "" }, { "docid": "0d19728baef709787e9149d5fef3c7df", "score": "0.5063374", "text": "function hook_modules_disabled($modules) {\n if (in_array('lousy_module', $modules)) {\n mymodule_enable_functionality();\n }\n}", "title": "" }, { "docid": "56640d2ef680def73022c028f60a8424", "score": "0.50615007", "text": "function do_core_upgrade($reinstall = \\false)\n {\n }", "title": "" }, { "docid": "1d74201b6c1e0c00931829a1ddfb3265", "score": "0.5057913", "text": "public abstract function upgrade();", "title": "" }, { "docid": "f20fc0551920b7f4084db2e2672120a5", "score": "0.50525284", "text": "function lg_addon_update_register_addon($addons)\n\t{\n\t\tglobal $EXT;\n\t\t// -- Check if we're not the only one using this hook\n\t\tif($EXT->last_call !== FALSE)\n\t\t\t$addons = $EXT->last_call;\n\n\t\t// add a new addon\n\t\t// the key must match the id attribute in the source xml\n\t\t// the value must be the addons current version\n\t\tif($this->settings['check_for_updates'] == 'y')\n\t\t{\n\t\t\t$addons[LG_ASN_addon_id] = $this->version;\n\t\t}\n\n\t\treturn $addons;\n\t}", "title": "" }, { "docid": "65cacb5a567ce23516ba8d9e655c6a96", "score": "0.5050209", "text": "public function module_name(){\n\t\treturn $modules_name = array(\n\t\t\t\t'dashboard' => 'Dashboard',\n\t\t\t\t'addcustomer' => 'Addcustomer',\n\t\t\t\t'add_zone' => 'Zone Names',\n\t\t\t\t'addpaymentcustomer' => 'Meter Customer Bills',\n\t\t\t\t'amountrate' => 'Per Unit Value',\n\t\t\t\t'feesplaning' => 'Monthly Fees Plans',\n\t\t\t\t'paymentmonthlycustomer' => 'Monthly Customer Bills',\n\t\t\t\t'metersearch' => 'Meter Customer Search',\n\t\t\t\t'monthlysearch' => 'Monthly Customer Search',\n\t\t\t\t'generatemetercustomer_search' => 'Both Type of Customers',\n\t\t\t\t'income_reportsearch' => 'Income Reports Search',\n\t\t\t\t'paidsearch' => 'Paid Search',\n\t\t\t\t'unpaidsearch' => 'Un-Paid Search',\n\t\t\t\t'addemployee' => 'Add Employee',\n\t\t\t\t'payrols' => 'Payrols',\n\t\t\t\t'payrolssearch' => 'Payrols search',\n\t\t\t\t'addexpenses' => 'Add Expenses',\n\t\t\t\t'bsearch' => 'Balance Sheet Search',\n\t\t\t\t'addassets' => 'Add Assetss',\n\t\t\t\t'technicalproblems' => 'Technical Problems',\n\t\t\t\t'technicalsearch' => 'Technical Problems View',\n\t\t\t\t'web_settings' => 'Admin Address',\n\t\t\t\t'admin' => 'Admin',\n\t\t\t\t\n\t\t\t\t);\n\t}", "title": "" }, { "docid": "a117cc2e2c0caf644b97bd02802f5a1e", "score": "0.5049898", "text": "public static function installModule() {\n $result = array();\n $uninstalled = lC_Templates_modules_Admin::install($_GET['module']);\n if ($uninstalled) {\n $result['rpcStatus'] = RPC_STATUS_SUCCESS;\n }\n\n echo json_encode($result);\n }", "title": "" }, { "docid": "6366af8d4a61de22b07ead1bfd29b352", "score": "0.5045825", "text": "function podlove_setup_modules()\n{\n add_option('podlove_active_modules', []);\n\n // set default modules\n $default_modules = [\n 'logging',\n 'podlove_web_player',\n 'open_graph',\n // 'asset_validation',\n 'oembed',\n // 'feed_validation',\n 'import_export',\n 'subscribe_button',\n 'automatic_numbering'\n ];\n\n foreach ($default_modules as $module) {\n \\Podlove\\Modules\\Base::activate($module);\n }\n}", "title": "" }, { "docid": "8917fcd41a0177e63d4811cf7cadddd6", "score": "0.504506", "text": "public function refreshModules ()\n\t{\n\n\t\t$modules = array();\n\n\t\tif ( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'account' ][ 'allSet' ] && $this->hasAuthorised() )\n\t\t{\n\t\t\tif ( isset( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'allowance' ][ 'discoversLimit' ] ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'discover';\n\t\t\t}\n\t\t\tif ( isset( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'allowance' ][ 'campaignsLimit' ] ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'campaign';\n\t\t\t}\n\t\t\tglobal $freeCompanyModules;\n\t\t\tforeach ( $freeCompanyModules as $mod )\n\t\t\t{\n\t\t\t\t$modules[] = $mod;\n\t\t\t}\n\t\t\t$companyModules = $this->company->getModules();\n\t\t\tforeach ( $companyModules as $mod => $status )\n\t\t\t{\n\t\t\t\tif ( in_array( $mod, array(\n\t\t\t\t\t\t'admin',\n\t\t\t\t\t\t'reseller' ) ) )\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$modules[] = $mod;\n\t\t\t}\n\t\t}\n\t\tif ( $_SESSION[ __oSESSION_USER_PARAM__ ][ 'representative' ] )\n\t\t{\n\t\t\tif ( $this->company->hasAccessTo( 'admin' ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'admin';\n\t\t\t}\n\t\t\tif ( $this->company->hasAccessTo( 'reseller' ) )\n\t\t\t{\n\t\t\t\t$modules[] = 'reseller';\n\t\t\t}\n\t\t}\n\n\t\t$this->userInfo[ 'modules' ] = $modules;\n\n\t\treturn $modules;\n\t}", "title": "" }, { "docid": "275bcad656903e64b35bfaf7d89430a9", "score": "0.5028185", "text": "public static function onApiMainModuleManager( ApiModuleManager $moduleManager ) {\n\t\tif ( ExtensionRegistry::getInstance()->isLoaded( 'Flow' ) ) {\n\t\t\t$moduleManager->addModule(\n\t\t\t\t'flowthank',\n\t\t\t\t'action',\n\t\t\t\t[\n\t\t\t\t\t\"class\" => ApiFlowThank::class,\n\t\t\t\t\t\"services\" => [\n\t\t\t\t\t\t\"PermissionManager\",\n\t\t\t\t\t\t\"ThanksLogStore\"\n\t\t\t\t\t]\n\t\t\t\t]\n\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "b6bbfd3d8f9fb49be44abdab695ea686", "score": "0.5025363", "text": "function hook_module_implements_alter(&$implementations, $hook) {\n if ($hook == 'rdf_mapping') {\n // Move my_module_rdf_mapping() to the end of the list. module_implements()\n // iterates through $implementations with a foreach loop which PHP iterates\n // in the order that the items were added, so to move an item to the end of\n // the array, we remove it and then add it.\n $group = $implementations['my_module'];\n unset($implementations['my_module']);\n $implementations['my_module'] = $group;\n }\n}", "title": "" }, { "docid": "c863c1e0685f6e6db495f73200866ca1", "score": "0.5023519", "text": "private function registrar_version_manager(){\n // run the migration class if current version is greater than old installed version.\n if(Helper::current_version() > Helper::old_version()){\n // load the update and related migration classes\n // new ElementsKit_Version_Manager();\n }\n }", "title": "" }, { "docid": "dba0bb31170d0269d28d333f54a73f0a", "score": "0.4997602", "text": "function upgrade_100()\n {\n }", "title": "" }, { "docid": "bc8bf83e546dc9cb124ec3392973fb5c", "score": "0.49933672", "text": "private function setModule()\n {\n if ( $this->module ) {\n return;\n }\n \n $default = 'index';\n \n\t\tif ( $this->guid == null ) {\n\t\t\t$this->module = $default;\n return;\n\t\t}\n\t\t\n\t\tif ( array_key_exists( $this->guid, $this->modules ) ) {\n\t\t\t$this->module = $this->guid;\n return;\n\t\t}\n\t\t\n\t\t$this->module = 'default';\n }", "title": "" }, { "docid": "5ef6fcd69e088630c8a62cd00729ca53", "score": "0.49922633", "text": "protected function readModules()\n {\n foreach ($this->moduleList as $vendorName => &$modulesArray) {\n $directoryIterator = new \\DirectoryIterator(\n $this->getAppCodeAbsolutePath() . DIRECTORY_SEPARATOR . $vendorName\n );\n foreach ($directoryIterator as $element) {\n if ($element->isDir()\n && $this->isBaseNameValid($element->getBasename())\n ) {\n $modulesArray[] = $element->getBasename();\n }\n }\n }\n }", "title": "" }, { "docid": "b4c938f23119ff97c85d17943b0801bb", "score": "0.49916422", "text": "function pur_member_utilities_module_install()\n\t{\n\t\tglobal $DB, $PMU;\n\t\t\n\t\t$sql[] = \"INSERT INTO exp_modules (\n\t\t\t\t\t\t\t\t\t\t\t\tmodule_id,\n\t\t\t\t\t\t\t\t\t\t\t\tmodule_name,\n\t\t\t\t\t\t\t\t\t\t\t\tmodule_version,\n\t\t\t\t\t\t\t\t\t\t\t\thas_cp_backend\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t\t\t\t\t\t(\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\t'Pur_member_utilities',\n\t\t\t\t\t\t\t\t\t\t\t\t'$this->version',\n\t\t\t\t\t\t\t\t\t\t\t\t'y'\n\t\t\t\t\t\t\t\t\t\t\t)\";\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t$sql[] = \"INSERT INTO exp_actions (action_id, class, method) VALUES ('', 'Pur_member_utilities_CP', 'get_member_data')\";\n\t\t\n\t\t$sql[] = \"CREATE TABLE IF NOT EXISTS `exp_pur_member_utilities_settings` (\n\t\t\t`id` INT(6) UNSIGNED NOT NULL,\n\t\t\t`settings` TEXT NOT NULL,\n\t\t\tPRIMARY KEY(`id`));\";\n\n\t\t$sql[] = \"INSERT INTO exp_pur_member_utilities_settings (id, settings) VALUES (1, '{}')\";\n\t\t\t\t\t\t\t\t\t\t\t\n\t\tforeach($sql AS $query)\n\t\t{\n\t\t\t$DB->query($query);\n\t\t}\n\t\t\n\t\t$query = $DB->query(\"SELECT COUNT(*) AS count FROM exp_extensions WHERE class = 'Pur_member_utilities_ext'\");\n\t\t\n\t\tif ($query->row['count'] == 0)\n\t\t{\n\t\t\t$PMU->activate_extension(TRUE);\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "title": "" } ]
4e55bc55297e2025c11689b68f735d53
Tears down the fixture, for example, closes a network connection. This method is called after a test is executed.
[ { "docid": "f05d9bd87ccc2599a1910e63d9aa68e2", "score": "0.0", "text": "protected function tearDown() {}", "title": "" } ]
[ { "docid": "1b93e29bbabc4e10565394d39ced240e", "score": "0.8001033", "text": "protected function tearDown()\n\t{\n\t\tunset($this->_fixture);\n\t}", "title": "" }, { "docid": "3979f9bc2f3faffef69eae1ef2f71c35", "score": "0.7953179", "text": "public function tearDown()\n {\n unset($this->fixtureToTeardown);\n }", "title": "" }, { "docid": "7558947b43d86abc109441109e81afc7", "score": "0.77712476", "text": "public final function teardown()\n {\n // Clean up any database fixtures every time around\n gosTest_Fixture_Controller::reset();\n\n $this->teardownExtension();\n\n restore_error_handler();\n }", "title": "" }, { "docid": "b59e669301ff793c79dca466fdd6f961", "score": "0.7397339", "text": "public static function tearDownAfterClass()\n {\n self::$classLevelFixtureToTeardown = null;\n }", "title": "" }, { "docid": "472c550f7c83b267bd6e056a2aea8dd4", "score": "0.72997785", "text": "protected function tearDown(): void\n {\n unset($this->responseFactory);\n unset($this->fixture);\n parent::tearDown();\n }", "title": "" }, { "docid": "6ebff9218039626e5f44493212aaffe1", "score": "0.72709084", "text": "public static function tear_down_after_test() {\n\t\tif (isset(self::$curl_handle) && is_resource(self::$curl_handle)) {\n\t\t\tcurl_close(self::$curl_handle);\n\t\t}\n\n\t\tparent::tear_down_after_test();\n\t}", "title": "" }, { "docid": "0830d38975570c5037228f662c05947a", "score": "0.7254889", "text": "protected function tearDown()\n {\n unset($this->datasource);\n }", "title": "" }, { "docid": "029a533ff60898d581f088586b830ddc", "score": "0.72541815", "text": "protected function tear_down()\n {\n $this->removeTestEnvironment();\n }", "title": "" }, { "docid": "38cb666f6b70283c3d88d9fb841fadc0", "score": "0.72393274", "text": "public function tearDown() {\n\t\tm::close();\n\t}", "title": "" }, { "docid": "613b7a3dc82e2e83f1499d10c9bd0250", "score": "0.7212517", "text": "public function tearDown()\n {\n $this->testClient->publish('>>>> TEST FINISHED', $this->getFullName());\n\n $this->testClient->flushdb();\n }", "title": "" }, { "docid": "5c2bdfee2664be7e68f97b6de7e95353", "score": "0.71860623", "text": "public function teardown()\n {\n }", "title": "" }, { "docid": "2ac3b5f45fb585cac3884f506c3ba0ed", "score": "0.71778595", "text": "protected function tearDown(): void\n {\n if ($this->ci) {\n foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {\n call_user_func($callback);\n }\n\n // Close DB connection. Can cause \"Too many connections\" error otherwise\n $this->ci->db->getDatabaseManager()->disconnect();\n }\n\n $this->setUpHasRun = false;\n\n $this->afterApplicationCreatedCallbacks = [];\n $this->beforeApplicationDestroyedCallbacks = [];\n }", "title": "" }, { "docid": "c542caa831a18d735afb3a82ac9b79af", "score": "0.7177173", "text": "public function tearDown() {\n // Remove the Guzzle Client and release the resources.\n $this->http = null;\n }", "title": "" }, { "docid": "aef221f3bf0dfd24057cd20b7664879a", "score": "0.7119696", "text": "public function tearDown()\n\t{\n\t\tm::close();\n\t}", "title": "" }, { "docid": "aef221f3bf0dfd24057cd20b7664879a", "score": "0.7119696", "text": "public function tearDown()\n\t{\n\t\tm::close();\n\t}", "title": "" }, { "docid": "aef221f3bf0dfd24057cd20b7664879a", "score": "0.7119696", "text": "public function tearDown()\n\t{\n\t\tm::close();\n\t}", "title": "" }, { "docid": "aef221f3bf0dfd24057cd20b7664879a", "score": "0.7119696", "text": "public function tearDown()\n\t{\n\t\tm::close();\n\t}", "title": "" }, { "docid": "9dafa5dd8c335145b9483c563dbdbc90", "score": "0.7081522", "text": "public static function tear_down_after_test() {\n\t\tTypeProviderHelper::cleanUp();\n\t}", "title": "" }, { "docid": "e99ce5e03a49d209ab3ad232eada55d7", "score": "0.7076699", "text": "protected function tearDown()\r\n {\r\n DirectoryManager::recursiveRemoveDir('data/tests');\r\n }", "title": "" }, { "docid": "4a9158ee8142e854338f6e0f33a07038", "score": "0.7050779", "text": "protected function tearDown(): void\n {\n Helper::removeDirectory(TESTS_TMP_PATH);\n\n StreamWrapper::unregister();\n }", "title": "" }, { "docid": "e17bb293f82353d2eea3fb4af2d1607b", "score": "0.70498997", "text": "public function teardown()\n {\n $this->cleanUpAllFiles();\n }", "title": "" }, { "docid": "0800bd15e0a45877453b078b01721f2b", "score": "0.70496726", "text": "public function tearDown()\n {\n unset($this->stub);\n m::close();\n }", "title": "" }, { "docid": "2bbd5903a7258097c7341c02b1b5516e", "score": "0.7021807", "text": "public function tearDown()\n\t{\n\t\t$this->beforeApplicationDestroyed(function () {\n\t\t\tDB::disconnect();\n\t\t});\n\t\n\t\t\tparent::tearDown();\n\t\t\t// \t\tMockery::close();\n\t}", "title": "" }, { "docid": "2bbd5903a7258097c7341c02b1b5516e", "score": "0.7021807", "text": "public function tearDown()\n\t{\n\t\t$this->beforeApplicationDestroyed(function () {\n\t\t\tDB::disconnect();\n\t\t});\n\t\n\t\t\tparent::tearDown();\n\t\t\t// \t\tMockery::close();\n\t}", "title": "" }, { "docid": "2bbd5903a7258097c7341c02b1b5516e", "score": "0.7021807", "text": "public function tearDown()\n\t{\n\t\t$this->beforeApplicationDestroyed(function () {\n\t\t\tDB::disconnect();\n\t\t});\n\t\n\t\t\tparent::tearDown();\n\t\t\t// \t\tMockery::close();\n\t}", "title": "" }, { "docid": "89bac72f7fe7f8e968fdb38bfd6dcf77", "score": "0.7003449", "text": "public function tearDown()\n {\n // Clean this test environment\n $this->clean();\n }", "title": "" }, { "docid": "fe1de1b114870a5db4740298cdbcbf5d", "score": "0.7002852", "text": "protected function tearDown()\n {\n $this->uitDatabank = null;\n parent::tearDown();\n }", "title": "" }, { "docid": "708e95238498c8ba2991bb407575e3c6", "score": "0.70023555", "text": "protected function tearDown()\n {\n if (NULL !== $this->object)\n $this->object->close();\n }", "title": "" }, { "docid": "7fae55d5493739e491920fa2174c4bee", "score": "0.69904065", "text": "protected function tearDown()\n {\n $this->_end();\n }", "title": "" }, { "docid": "32613a2705d821903acac42e1f543b86", "score": "0.69900304", "text": "public function teardown()\n {\n parent::teardown();\n }", "title": "" }, { "docid": "32613a2705d821903acac42e1f543b86", "score": "0.69900304", "text": "public function teardown()\n {\n parent::teardown();\n }", "title": "" }, { "docid": "c633e436abf54703ed144f6c411525f7", "score": "0.6984196", "text": "protected function tearDown()\n\t{\n\t\tunset($this->options, $this->client, $this->response, $this->object);\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "0dcea4142540c172d6d18aa8115cc868", "score": "0.69825697", "text": "protected function tearDown()\n {\n $this->backend = null;\n\n // Collect garbages manually to free up connections.\n gc_collect_cycles();\n }", "title": "" }, { "docid": "1a781b6c85138ff7dc4f8743f566cb10", "score": "0.69796723", "text": "protected function doTearDown(): void\n {\n }", "title": "" }, { "docid": "496e985c37a705a0a01ae09663922022", "score": "0.6956488", "text": "public function teardown() {\n m::close();\n }", "title": "" }, { "docid": "496e985c37a705a0a01ae09663922022", "score": "0.6956488", "text": "public function teardown() {\n m::close();\n }", "title": "" }, { "docid": "2252f9d2077e84e3410940a1259ce62b", "score": "0.69472766", "text": "public function tearDown() {\n\t\tTest::tearDown();\n\n\t\t// then\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "c19b8fa25bc6cd4a2c56daaf55eb510e", "score": "0.6933643", "text": "public function tearDown()\n\t{\n\t\tunset($this->target);\n\t}", "title": "" }, { "docid": "4fa350f7c953da049adde5c5e80236ed", "score": "0.69270647", "text": "public function tearDown()\n {\n Facade::clearResolvedInstances();\n\n m::close();\n }", "title": "" }, { "docid": "71aec3f0f34748df1814bdf4df7f11ba", "score": "0.6899217", "text": "protected function tearDown(): void\n\t{\n\t\t$this->cache = null;\n\t}", "title": "" }, { "docid": "d9781566f11d32022040aa3537f1c5ef", "score": "0.68892854", "text": "public function tearDown()\n {\n m::close();\n }", "title": "" }, { "docid": "d9781566f11d32022040aa3537f1c5ef", "score": "0.68892854", "text": "public function tearDown()\n {\n m::close();\n }", "title": "" }, { "docid": "d9781566f11d32022040aa3537f1c5ef", "score": "0.68892854", "text": "public function tearDown()\n {\n m::close();\n }", "title": "" }, { "docid": "d9781566f11d32022040aa3537f1c5ef", "score": "0.68892854", "text": "public function tearDown()\n {\n m::close();\n }", "title": "" }, { "docid": "d9781566f11d32022040aa3537f1c5ef", "score": "0.68892854", "text": "public function tearDown()\n {\n m::close();\n }", "title": "" }, { "docid": "d9781566f11d32022040aa3537f1c5ef", "score": "0.68892854", "text": "public function tearDown()\n {\n m::close();\n }", "title": "" }, { "docid": "32c31291f139fb49c73d6dbd71d0c4a1", "score": "0.68855673", "text": "public function tearDown() : void\n\t{\n\t\t$this->driver->quit();\n\t}", "title": "" }, { "docid": "9a5008c37d0a183acc0c9dbb3e029970", "score": "0.6882208", "text": "public function tearDown()\n\t{\n\t\tunset($this->stub);\n\t}", "title": "" }, { "docid": "c8319a639a988a878313c538b3a8ff31", "score": "0.68632305", "text": "protected function tearDown(): void\n {\n unset($this->app);\n m::close();\n }", "title": "" }, { "docid": "ca8b522e0da15fd97281bdf27a0360ac", "score": "0.6858708", "text": "protected function tearDown()\n {\n $this->storage = null;\n $this->remoteAddress = null;\n }", "title": "" }, { "docid": "65427d299abd6054e781b472bbf2a70e", "score": "0.6857888", "text": "protected function tear_down()\n {\n }", "title": "" }, { "docid": "b98a24b9a0e25cacdfc1e1755673e5c9", "score": "0.68532234", "text": "protected function tearDown()\n {\n if ($this->app) {\n foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {\n call_user_func($callback);\n }\n\n $this->app = null;\n $this->ci = null;\n }\n\n $this->setUpHasRun = false;\n\n $this->afterApplicationCreatedCallbacks = [];\n $this->beforeApplicationDestroyedCallbacks = [];\n }", "title": "" }, { "docid": "0b00900948853130ea934aa9ac600692", "score": "0.68462354", "text": "protected function tearDown()\r\n {\r\n parent::tearDown();\r\n\r\n $this->em->close();\r\n $this->em = null;//avoid memory meaks\r\n }", "title": "" }, { "docid": "0e9862a6f5b327477d906b6466f1a876", "score": "0.6840563", "text": "public function tearDown() {\n\t\tparent::tearDown();\n\t\tunset($this->Socket, $this->RequestSocket);\n\t}", "title": "" }, { "docid": "9633cc89da8dce4f22a33238ab23ebc2", "score": "0.68376416", "text": "protected function tearDown() {\n// fclose($this->handle); // don't close the handle so tests can pass the object among themselves.\n }", "title": "" }, { "docid": "49cf888ce965672bb048da6d1f9a3124", "score": "0.6821471", "text": "public function tearDown()\n {\n unset($this->app);\n m::close();\n }", "title": "" }, { "docid": "102ccf3b999da0ecc598e3319b9e3d05", "score": "0.68185055", "text": "protected function tearDown() {\r\n\t\tunset($this->hook);\r\n\t\tunset($this->tsfe);\r\n\t\tunset($this->typo3DbBackend);\r\n\t}", "title": "" }, { "docid": "1d4288ffca3f0cf4add74db50477ae55", "score": "0.6814022", "text": "protected function tearDown() {\n\t\t// TODO Auto-generated unitTest::tearDown()\n\t\t$this->XingeApp = null;\n\t\t\n\t\tparent::tearDown ();\n\t}", "title": "" }, { "docid": "6c94d2717bbfa7fb1b88398267f8beac", "score": "0.681066", "text": "protected function tearDown(): void\n {\n $this->config = null;\n $this->container = null;\n $this->instance = null;\n }", "title": "" }, { "docid": "0aed66887982372911dbcfed916273de", "score": "0.68086404", "text": "protected function tearDown()\r\n {\r\n $this->MainServerFactory = null;\r\n parent::tearDown();\r\n }", "title": "" }, { "docid": "c113aaf7b8f1692868a61f592e744ec0", "score": "0.6808355", "text": "public function tearDown(): void\n\t{\n\t\tMockery::close();\n\t}", "title": "" }, { "docid": "ff5f23afc586abd32f6032eea9cf15ad", "score": "0.6807195", "text": "protected function tearDown()\n\t{\n\t\t// TODO Auto-generated SenditTest::tearDown()\n\t\t$this->Sendit = null;\n\t\t\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "79f334574ee277361de4408032faa779", "score": "0.68071187", "text": "protected function tearDown()\n {\n unset($this->app);\n\n m::close();\n }", "title": "" }, { "docid": "1bb4890cfb369d766746b03e94992fd0", "score": "0.68035203", "text": "public function tearDown() {\n\t\tMockery::close();\n\t}", "title": "" }, { "docid": "333a8d983e78b013942ca567406366c3", "score": "0.67942375", "text": "public function tearDown() {\n $this->grid = null;\n $this->mongo = null;\n $this->driver = null;\n }", "title": "" }, { "docid": "02d9f9977b6d7bcbc60266893a267de7", "score": "0.6793509", "text": "function tearDown() {\n\t\tparent::tearDown(); // TODO: Change the autogenerated stub\n\n\t\tm::close();\n\t}", "title": "" }, { "docid": "c15dcbb9f85b4e34a1b07bcb17875097", "score": "0.679151", "text": "public function endTest() {\n\t\tunset($this->Article);\n\t\tunset($this->User);\n\t\tunset($this->Tag);\n\n\t\tClassRegistry::flush();\n\t}", "title": "" }, { "docid": "2f9784baafc8d7777dd1c8244839b13a", "score": "0.67906415", "text": "public function tearDown() : void\n\t{\n\t\t$this->_helpers->restore_environment();\n\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "f9e0b6a4c1022e919535c3e8c0cfb8ba", "score": "0.67874247", "text": "protected function teardown()\n {\n // empty default implementation\n }", "title": "" }, { "docid": "ea8d99cabec18a16ed9d725e5c925766", "score": "0.6785356", "text": "public function teardown()\r\n\t{\r\n\t\t//remove test favorite tuple\r\n\t\tdeleteTestFavorite(-1, 1);\r\n\t\tdeleteTestFavorite(-1, 2);\r\n\t}", "title": "" }, { "docid": "b57826992a09a4c794865c2de32fb00b", "score": "0.6782655", "text": "protected function tearDown()\n {\n parent::tearDown();\n if (is_resource($this->handle)) {\n curl_close($this->handle);\n }\n }", "title": "" }, { "docid": "9b9078ca906cd7924a15318b64867eb2", "score": "0.6779139", "text": "public static function tearDownAfterClass() {\n self::$CI->mongo_db->dropDb('aw_datacollection_test');\n }", "title": "" }, { "docid": "0cabed8cae013f19a1e79c1b2ce2ecec", "score": "0.6776553", "text": "public function tearDown()\n {\n unset($this->stub);\n }", "title": "" }, { "docid": "0148f213a93c330011111f405857d6f9", "score": "0.6765352", "text": "public function tearDown() {\n\t\tparent::tearDown();\n\n\t\t$this->resetPersistenceBackend();\n\t}", "title": "" }, { "docid": "228d354d4ac91b75f0d6cebc38d382c7", "score": "0.67603457", "text": "protected function tearDown()\n {\n unset($this->pdo);\n unset($this->statement);\n }", "title": "" }, { "docid": "aa6860a0bfaf7367f4af033a61e5adcf", "score": "0.6760156", "text": "protected function tearDown() {\n\t}", "title": "" }, { "docid": "aa6860a0bfaf7367f4af033a61e5adcf", "score": "0.6760156", "text": "protected function tearDown() {\n\t}", "title": "" }, { "docid": "aa6860a0bfaf7367f4af033a61e5adcf", "score": "0.6760156", "text": "protected function tearDown() {\n\t}", "title": "" }, { "docid": "caa28084535d10d120fed46a549073f5", "score": "0.67588", "text": "public function tearDown(): void\n {\n m::close();\n }", "title": "" }, { "docid": "caa28084535d10d120fed46a549073f5", "score": "0.67588", "text": "public function tearDown(): void\n {\n m::close();\n }", "title": "" }, { "docid": "c28ad8841eb4dd293742837f891be5ed", "score": "0.67573637", "text": "protected function tearDown()\r\n {\r\n $application = new Application(self::$kernel);\r\n $application->setAutoExit(false);\r\n\r\n $options = array('command' => 'doctrine:database:drop', '--force' => true);\r\n $application->run(new ArrayInput($options));\r\n\r\n parent::tearDown();\r\n\r\n $this->em->close();\r\n $this->em = null;\r\n }", "title": "" }, { "docid": "6d9e22396e514b7de938b834fc7e7c33", "score": "0.6755587", "text": "protected function tearDown()\n {\n Client::deleteAll();\n }", "title": "" }, { "docid": "cd5f9feafe6d80016f142ebef05facf4", "score": "0.67546093", "text": "protected function tearDown()\n {\n parent::tearDown();\n if (!is_null($this->em)) {\n $this->em->getConnection()->close();\n }\n }", "title": "" }, { "docid": "cf5a4bc4115c21dfde7d89d7ec4f7e49", "score": "0.6752816", "text": "protected function tearDown(): void\n {\n m::close();\n }", "title": "" }, { "docid": "cf5a4bc4115c21dfde7d89d7ec4f7e49", "score": "0.6752816", "text": "protected function tearDown(): void\n {\n m::close();\n }", "title": "" }, { "docid": "cf5a4bc4115c21dfde7d89d7ec4f7e49", "score": "0.6752816", "text": "protected function tearDown(): void\n {\n m::close();\n }", "title": "" }, { "docid": "cf5a4bc4115c21dfde7d89d7ec4f7e49", "score": "0.6752816", "text": "protected function tearDown(): void\n {\n m::close();\n }", "title": "" }, { "docid": "d04084d3f1650267b11d6ef24a0f8e25", "score": "0.67523074", "text": "protected function afterSetUp()\n {\n // Clean this test environment\n $this->clean();\n }", "title": "" }, { "docid": "81fa85796b8278ae2f545a30f4b7fa16", "score": "0.6751073", "text": "protected function tearDown()\n {\n $this->destroyApplication();\n }", "title": "" }, { "docid": "d0bb913f7ef29535aa79e9c2732095aa", "score": "0.6750854", "text": "public static function tearDownAfterClass()\n {\n $res = shell_exec('tests/bin/teardown-data');\n }", "title": "" }, { "docid": "57ea18392631f8be6b8db5dc7d74d064", "score": "0.6748385", "text": "protected function tearDown()\n\t{\n\t\tparent::tearDown();\n\t\tEnUser::release();\n\t\tRPCContext::getInstance()->resetSession();\n\t\tRPCContext::getInstance()->unsetSession('global.uid');\n\t}", "title": "" }, { "docid": "3d49f108dece55be147660ef6ce81e7b", "score": "0.6747535", "text": "protected function tearDown()\n\t{\n\t\tparent::tearDown ();\n\t\tEnUser::release();\n\t\tRPCContext::getInstance()->resetSession();\n\t\tRPCContext::getInstance()->unsetSession('global.uid');\n\t}", "title": "" }, { "docid": "f1ffa1107773b73c93145a1c02100859", "score": "0.6746505", "text": "public function tearDown() {\n\t}", "title": "" }, { "docid": "f1ffa1107773b73c93145a1c02100859", "score": "0.6746505", "text": "public function tearDown() {\n\t}", "title": "" }, { "docid": "cd0fe450506b8dcb7dfe42a4aaee7d9f", "score": "0.67440385", "text": "public function tearDown() {\n\n\t}", "title": "" }, { "docid": "7320416c2e7d08757f6952fb2013b7eb", "score": "0.67435503", "text": "protected function tearDown() {\n\t\tConfig::getInstance()->clear();\n\t\tparent::tearDown();\n\t}", "title": "" }, { "docid": "51cd6608b41a185736684192f68cb945", "score": "0.674048", "text": "protected function tearDown() {\r\n\t\t$this->testObject = null;\r\n\t\tparent::tearDown ();\r\n\t}", "title": "" }, { "docid": "c855a1ddc37b89b1b85d43d154ec84fb", "score": "0.6735195", "text": "protected function tearDown() : void\n {\n m::close();\n }", "title": "" }, { "docid": "048c1e0fecc614a593e5241c70eedf5f", "score": "0.67295533", "text": "protected function tearDown()\n {\n $this->cleanDatabase();\n $this->dropDatabase();\n $this->switchToTypo3Database();\n }", "title": "" }, { "docid": "9ff8db6589c60cf145d7aca5c286d748", "score": "0.67239237", "text": "protected function tearDown()\n\t{\n\t\t$this->object->delete();\n\t\t$this->object = null;\n\t}", "title": "" }, { "docid": "cead97c4b1560e9db1e2fda69729423b", "score": "0.6719777", "text": "protected function tearDown() {\n\n\t}", "title": "" } ]
81e1a98217bd61fcb131eddaf5d96678
Returns an array of fields the table can be sorted by
[ { "docid": "038842c9f41148fbdabbe45bd840c262", "score": "0.6833061", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t\t'a.title' => JText::_('COM_COOLTOURAMAN_HOLIDAYS_TITLE'),\n\t\t\t\t'a.day' => JText::_('COM_COOLTOURAMAN_DAY'),\n\t\t\t\t'a.month' => JText::_('COM_COOLTOURAMAN_MONTH'),\n\t\t\t\t'a.year' => JText::_('COM_COOLTOURAMAN_YEAR')\n\t\t);\n\t}", "title": "" } ]
[ { "docid": "5e3a9e3973bd291a8b542b3603c3d7b1", "score": "0.8378384", "text": "public function getSortedFields(): array;", "title": "" }, { "docid": "d6067fd6eb9636e9621d863ba6b267eb", "score": "0.8320876", "text": "public function getAvailableSortingFields(): array;", "title": "" }, { "docid": "41b703032506ae106760bb15c2c11320", "score": "0.8062185", "text": "public function getSortFields() {}", "title": "" }, { "docid": "95357d20d5386664c9fbf80f1520e8d4", "score": "0.74206686", "text": "public function getSortableFields();", "title": "" }, { "docid": "767695d13e5c089868b8ee200afa431b", "score": "0.7358966", "text": "public static function sortableFields()\n {\n return ['id', 'title'];\n }", "title": "" }, { "docid": "594200ca6fae3dc2a493e12ba70a82a8", "score": "0.73078066", "text": "public function getSortableFields() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "4853eff4bd0daabad22ed2ae240d17f7", "score": "0.72508836", "text": "public function fields(): array\n {\n $fields = [];\n\n foreach ($this->schema->getFields() as $name => $field) {\n $fields[$name] = Bakery::getType('Order');\n }\n\n foreach ($this->schema->getRelations() as $relation => $field) {\n $fieldType = Type::getNamedType($field['type']);\n\n if ($fieldType instanceof UnionType) {\n continue;\n }\n\n $fields[$relation] = Bakery::getType($fieldType->name.'OrderBy');\n }\n\n return $fields;\n }", "title": "" }, { "docid": "82e135ebd8123890e7c14a5b70ae0a16", "score": "0.721778", "text": "public function getGroupSortFields() {}", "title": "" }, { "docid": "98734a82e45db1112e5c5e845101db00", "score": "0.71999246", "text": "public function get_sortable_columns()\n {\n return array(\n 'first_name' => array('first_name', false),\n 'last_name' => array('last_name', false),\n 'email' => array('email', false)\n );\n }", "title": "" }, { "docid": "e5997b155e8898ce363e469e32fe06f5", "score": "0.7151928", "text": "protected function fields_order()\n\t{\n\t\treturn array_keys( $this->_fields );\n\t}", "title": "" }, { "docid": "eb30e3e23fddf1722b3608b2407a7b9e", "score": "0.71029323", "text": "public function getAllowedSortFields()\n {\n return array_keys($this->getSlugToListHeaderMap());\n }", "title": "" }, { "docid": "58c1f44ea01ab6c15849a6dfbf5e5567", "score": "0.7054784", "text": "protected function getSortableFields()\n {\n return array('id' => true, 'name' => true);\n }", "title": "" }, { "docid": "ae461ee5a8b6b499cc68f94f01f6c980", "score": "0.70506257", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t'firstname' => JText::_('com_vpetrenko_FIRSTNAME'),\n\t\t\t'lastname' => JText::_('com_vpetrenko_LASTNAME'),\n\t\t\t'group' => JText::_('com_vpetrenko_GROUP'),\n\t\t\t'address' => JText::_('com_vpetrenko_ADDRESS'),\n\t\t\t'hobby' => JText::_('com_vpetrenko_HOBBY'),\n\t\t\t'published' => JText::_('com_vpetrenko_PUBLISHED'),\n\t\t\t'id' => JText::_('com_vpetrenko_ID')\n\t\t);\n\t}", "title": "" }, { "docid": "273f9d9fab74f89ebcd017ea376d7598", "score": "0.70412767", "text": "public function get_sortable_columns() {\n\t\t$sort = array(\n\t\t\t'order_id' => array( 'order_id', false ),\n\t\t\t'vendor_name' => array( 'vendor_name', false ),\n\t\t\t'commission_status' => array( 'commission_status', false ),\n\t\t);\n\n\t\treturn $sort;\n\t}", "title": "" }, { "docid": "8be2d559a4aaaac81aab571498514b84", "score": "0.703065", "text": "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys($dal_info[$this->m_TableName]);\n\t}", "title": "" }, { "docid": "44634a489bcc582486c9976fe66258fc", "score": "0.70031446", "text": "public function getFields(): array\n {\n return $this->tableFields;\n }", "title": "" }, { "docid": "c04008dd99fb6aadfc51fd12a3d7196b", "score": "0.69720006", "text": "public static function getOrderFields()\n {\n return [];\n }", "title": "" }, { "docid": "6aed8e1604aead4028bab7698f96ccdf", "score": "0.6967389", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t'a.id' => JText::_('JGRID_HEADING_ID'),\n\t\t\t'a.user_id' => JText::_('COM_HIERARCHY_HIERARCHYS_USER_ID'),\n\t\t\t'a.subuser_id' => JText::_('COM_HIERARCHY_HIERARCHYS_SUBUSER_ID')\n\t\t);\n\t}", "title": "" }, { "docid": "247a4b67a5421e8437404605a1cc97a5", "score": "0.6955317", "text": "private function get_fields(){\r\n $sql = \"SHOW COLUMNS FROM \".$this->table;\r\n\r\n $result = $this->query( $sql );\r\n\r\n while ( $row = $this->fetch_data( $result ) ) {\r\n $fields[] = $row['Field'];\r\n }\r\n\r\n return $fields;\r\n }", "title": "" }, { "docid": "d1d394ef34483c4cff1895af806a1859", "score": "0.6952404", "text": "public function get_sortable_columns() {\n\t\treturn array();\n\n\t \treturn $sortable = array(\n\t 'id' => 'id',\n\t 'Name' => 'Name',\n\t 'Contact' => 'Contact',\n\t 'Email' => 'Email',\n\t );\n\t}", "title": "" }, { "docid": "2e12678e230c85e9782d01e1bb668783", "score": "0.69503266", "text": "protected function get_fieldlist() : array {\n global $DB;\n\n if (null === $this->fields) {\n $fields = [];\n foreach (array_keys($DB->get_columns($this->tablename)) as $fieldname) {\n $fields[\"{$this->fieldprefix}{$fieldname}\"] = $fieldname;\n }\n\n $this->fields = $fields;\n }\n\n return $this->fields;\n }", "title": "" }, { "docid": "08411273983ec68a356536c173484898", "score": "0.69251484", "text": "public function getAllFields()\n {\n $fields = array_keys($this->describeTable());\n $fields = array_merge(self::getAdditionalColumns(), $fields);\n return $fields;\n }", "title": "" }, { "docid": "3397fa3e66c4e000de2ca85458bb19f9", "score": "0.6917331", "text": "function getFields() {\n/* \t\treturn array_keys($this->table->fields); */\n\t\treturn $this->fields;\n\t}", "title": "" }, { "docid": "84ba1fae756bd1ba0e202547eba944f3", "score": "0.6901481", "text": "public function tableFields(){\n\t\treturn [\n\t\t\t\t'id'=>\"Id\",\n\t\t\t\t'heading'=>'Heading',\n\t\t\t\t'type'=>'Type',\n\t\t\t\t'category'=>'Category',\n\t\t\t\t'date'=>'Date',\n\t\t\t\t'status'=>'Stauts'\n\t\t\t\t];\n\t}", "title": "" }, { "docid": "5f400a33e120ee2790016139393dd634", "score": "0.6883175", "text": "function get_sortable_columns() {\n $sortable_columns = array(\n 'id_prize' => array('id_prize', false),\n 'name_prize' => array('name_prize', false),\n 'date_current' => array('date_current', false),\n );\n\n return $sortable_columns;\n }", "title": "" }, { "docid": "ab5ee440bbd0309caddf8496f81ebceb", "score": "0.68821263", "text": "public function getAllTableFields() {\n return[\n 'id',\n 'user_name',\n 'amount',\n 'to_address',\n 'response',\n 'status',\n 'created_at',\n 'updated_at'\n ];\n }", "title": "" }, { "docid": "53f805923522072d2a0b349bd68dd279", "score": "0.6877495", "text": "protected function get_sortable_columns() {\n\t\treturn [\n\t\t\t'first_name' => array( 'first_name', 'desc' ),\n\t\t\t'last_name' => array( 'last_name', 'desc' ),\n\t\t\t'email' => array( 'email', 'desc' ),\n\t\t];\n\t}", "title": "" }, { "docid": "bd45eca1a5162289268239b72ed6690e", "score": "0.6843031", "text": "public function get_sortable_columns()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'ID' => array('ID', false),\n\t\t\t\t'NAME' => array('NAME', false),\n\t\t\t\t'EMAIL' => array('EMAIL', false),\n\t\t\t\t'PHONE' => array('PHONE', false),\n\t\t\t\t'ADDRESS' => array('ADDRESS', false),\n\t\t\t\t);\n\t\t}", "title": "" }, { "docid": "76d69cd7448a32575dcac396f6c67ad8", "score": "0.68308043", "text": "public static function availableFields(): array\n {\n return ['product.sortPriority', 'item.name'];\n }", "title": "" }, { "docid": "51c1b33ee96f2ca9dfa7a6fc6793c2e1", "score": "0.68170846", "text": "public function get_table_fields() {\r\n\t\treturn $this->delegate->get_table_fields();\r\n\t}", "title": "" }, { "docid": "17ee3f7a42fe0ecb9121e56847ec83d4", "score": "0.681182", "text": "public function get_sortable_columns(){ \n return array(\n 'name' => array('name', false),\n 'address' => array('address', false),\n 'city' => array('city', false)\n );\n }", "title": "" }, { "docid": "93587abe77fb555350ff5e967c0049a6", "score": "0.679868", "text": "public function get_sortable_columns() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "e2c167686490fb765f90fc044162f605", "score": "0.67868024", "text": "public function get_sortable_columns()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'ID' => array('ID', false),\n\t\t\t\t'TITLE' => array('TITLE', false),\n\t\t\t\t'QUOTE DETAIL' => array('QUOTE DETAIL', false),\n\t\t\t\t'USER' => array('USER', false),\n\t\t\t\t'PHONE' => array('PHONE', false),\n\t\t\t\t'EMAIL ADDRESS' => array('EMAIL ADDRESS', false),\n\t\t\t\t);\n\t\t}", "title": "" }, { "docid": "8d2a1a031522c2f54fa7d1e765ff866d", "score": "0.67799395", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t'a.id' => JText::_('JGRID_HEADING_ID'),\n\t\t\t'a.name' => JText::_('COM_SCHOOL_SUBJECT_NAME'),\n\t\t\t'a.ordering' => JText::_('JGRID_HEADING_ORDERING'),\n\t\t\t'a.state' => JText::_('JSTATUS'),\n\t\t);\n\t}", "title": "" }, { "docid": "4c1bfceb9788c409711bd6183e411da1", "score": "0.6776874", "text": "public function get_sortable_columns() {\r\n return array();\r\n }", "title": "" }, { "docid": "c41c37891eead91ebfe9a9f3e9d98758", "score": "0.67592204", "text": "public function get_sortable_columns() {\n\t\treturn array(\n\t\t\t'name' => array( 'name', true ), // sorted by name by default\n\t\t\t'locale' => array( 'locale', false ),\n\t\t\t'slug' => array( 'slug', false ),\n\t\t\t'term_group' => array( 'term_group', false ),\n\t\t\t'count' => array( 'count', false ),\n\t\t);\n\t}", "title": "" }, { "docid": "e8946c634701ccc64251b9070a80839c", "score": "0.6741618", "text": "public function get_sortable_columns() {\n\t\t$sortable_columns = array(\n\t\t\t'name' => array( 'username', true ),\n\t\t\t'user_email' => array( 'email', false )\n\t\t);\n\n\t\treturn $sortable_columns;\n\t}", "title": "" }, { "docid": "d86fbe3ac1dc2c6cc5f41a42a7dd48ac", "score": "0.67338663", "text": "function get_sortable_columns() {\n\t\t$sortable_columns = array(\n\t\t\t'ID' => array( 'ID', false ), // true means it's already sorted\n\t\t\t// 'item_id' => array('item_id',false),\n\t\t\t// 'date' => array('date',false)\n\t\t);\n\t\treturn $sortable_columns;\n\t}", "title": "" }, { "docid": "247d54df7363f264e64eb274ece0fcdf", "score": "0.6728865", "text": "public function getExpandSortFields() {}", "title": "" }, { "docid": "76871441c76afece792b3af7ded47759", "score": "0.67191195", "text": "public function get_sortable_columns() {\n $sortable_columns = array(\n 'date' => array( 'date', true ),\n 'timeStart' => array( 'timeStart', false ),\n 'timeEnd' => array( 'timeEnd', false ),\n 'employeeId' => array( 'employeeId', false ),\n 'carId' => array( 'carId', false )\n );\n\n return $sortable_columns;\n }", "title": "" }, { "docid": "d2788d0db845ae60b6932907fa32247f", "score": "0.671384", "text": "function getFields() {\n\t\t$columns = $this->table->getColumns();\n\t\t$table_options = $this->table->getOptions();\n\n\t\t// Remove columns for nested sets. Theses fields may be different for different types\n\t\t// of tree implementations.\n\t\tif (isset($table_options['treeImpl']) && 'NestedSet' == $table_options['treeImpl']) {\n\t\t\tunset(\n\t\t\t\t$columns[$table_options['treeOptions']['rootColumnName']],\n\t\t\t\t$columns['lft'],\n\t\t\t\t$columns['rgt'],\n\t\t\t\t$columns['level']\n\t\t\t);\n\t\t}\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "ef246a4a9db7e4c0b1a8933167eaf0be", "score": "0.6712293", "text": "public function getAllFields()\n {\n $result = $this->__get_table_fields_description();\n\n $field_list = array();\n foreach ($result as $row)\n {\n $field_list[$row[\"Field\"]][\"type\"]= $row[\"Type\"];\n }\n\n return $field_list;\n }", "title": "" }, { "docid": "ed110ff55019d88e0d35e2e1d782b300", "score": "0.6709005", "text": "public function fields()\n\t{\n\t\t$fields = array_diff_key(\n\t\t\tparent::fields(), \n\t\t\tarray_flip([\n\t\t\t\t'created_at',\n\t\t\t\t'created_by',\n\t\t\t\t'updated_at',\n\t\t\t\t'updated_by',\n\t\t\t])\n\t\t);\n\t\t\t\t\t\t\t\t\t\t\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "8e9b176daea49ee269c77c0fff75cc20", "score": "0.6708066", "text": "protected function get_sortable_columns() {\n\t\t$sortable_columns = array (\n\t\t\t'ID' \t\t=> array( 'ID', true ),\n\t\t\t'date'\t\t=> 'date',\n\t\t\t'country'\t=> 'country',\n\t\t\t'state'\t\t=> 'state',\n\t\t\t'city'\t\t=> 'city',\n\t\t);\n\t\treturn $sortable_columns;\n\t}", "title": "" }, { "docid": "6e3ec81f9ffdbbdb7d89cd740340fc12", "score": "0.66766673", "text": "function getFields() {\n\t\t$database = database::db();\n\t\t$res = $database->query('SHOW COLUMNS FROM '.$this->table);\n\t\t$fields = array ();\n\t\twhile ($row = @ mysql_fetch_object($res)) {\n\t\t\t$fields[$row->Field] = $row->Type;\n\t\t}\n\t\t@mysql_free_result($res);\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "bea7155da8bda84e92ea15bbb19da1e6", "score": "0.66737807", "text": "public function getTableFields()\n {\n $fields = new ArrayList();\n foreach (self::config()->get('table_fields') as $field) {\n $data = new ArrayData([\n 'Header' => _t(__CLASS__ . \".$field\", $field),\n 'Value' => $this->{$field}\n ]);\n\n $fields->add($data);\n }\n return $fields;\n }", "title": "" }, { "docid": "8175c0d1f9a1fe2c1ae556fb3c5daf45", "score": "0.6672345", "text": "public function get_sortable_columns() {\n\t\t$sortable_columns = array(\n\t\t\t'event' => array( 'type', false ),\n\t\t\t'date' => array( 'date', false ),\n\t\t\t'user_id' => array( 'user_id', false )\n\t\t);\n\n\t\treturn $sortable_columns;\n\t}", "title": "" }, { "docid": "2297b5510a355e3868dbd27cbe01d541", "score": "0.66698235", "text": "public function getFields()\n {\n if (empty($this->fields)) {\n $this->fields = $this->db->getTableFields($this->fullTable, true);\n }\n return $this->fields;\n }", "title": "" }, { "docid": "1c807ca4ccd1997e7cd3d09b0516c22e", "score": "0.6650701", "text": "public function getFieldColumns();", "title": "" }, { "docid": "d57ddb5c8e90ab15a7e3511ece085f20", "score": "0.664664", "text": "public static function sortTable()\n {\n $args = func_get_args();\n $data = array_shift($args);\n foreach ($args as $n => $field) {\n if (is_string($field)) {\n $tmp = array();\n foreach ($data as $key => $row)\n $tmp[$key] = $row[$field];\n $args[$n] = $tmp;\n }\n }\n $args[] = &$data;\n call_user_func_array('array_multisort', $args);\n return array_pop($args);\n }", "title": "" }, { "docid": "769d5d5b2de1dd955d971e0bfad1779b", "score": "0.6643213", "text": "protected function getFields()\n {\n //not used. please see query for more details.\n return array(\n 'validationid AS id',\n 'id',\n 'type',\n 'view_type',\n 'fix_user_id',\n 'osm_id',\n 'osm_type',\n 'title',\n 'fixmessage',\n 'falsepositive',\n 'question',\n 'bug_question',\n 'latitude',\n 'longitude',\n 'upratings',\n 'downratings',\n 'required_votes',\n 'geom',\n 'txt1',\n 'txt2',\n 'txt3',\n 'txt4',\n 'txt5'\n );\n }", "title": "" }, { "docid": "848dc50b9dae6f0a1fde02656380a3e3", "score": "0.66345763", "text": "function get_sortable_columns() {\r\n return array(\r\n // Description: column_name => array( 'display_name', true[asc] | false[desc] ).\r\n 'mail_id' \t\t=> array( 'mail_id', false ),\r\n 'timestamp' \t=> array( 'timestamp', true ),\r\n 'host' \t => array( 'host', true ),\r\n 'receiver' \t\t=> array( 'receiver', true ),\r\n 'subject' \t\t=> array( 'subject', true ),\r\n 'headers' \t\t=> array( 'headers', true ),\r\n 'plugin_version'=> array( 'plugin_version', true ),\r\n );\r\n }", "title": "" }, { "docid": "725670a0dd3885f06a8a3b116dbcc7de", "score": "0.66302013", "text": "function listTableFields($table_name) {\n $rows = $this->execute(\"SELECT COLUMN_NAME as Field FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = '$table_name'\");\n if(is_foreachable($rows)) {\n $result = array();\n foreach($rows as $row) {\n $result[] = $row['Field'];\n } // foreach\n return $result;\n } // if\n \n return array();\n }", "title": "" }, { "docid": "dcfa67034ad8557566d7132eccecc374", "score": "0.6629956", "text": "public function get_sortable_columns() {\r\n\t\t\r\n\t\treturn array(\r\n\t\t\t'date'\t\t\t=> array( 'post_modified_gmt', true ),\r\n\t\t\t'submitter' \t=> array( 'submitter', false ),\r\n\t\t\t'title'\t\t\t=> array( 'title', false ),\r\n\t\t\t'correlationid'\t=> array( 'post_title', false )\r\n\t\t);\r\n\t}", "title": "" }, { "docid": "76f4dd3cf03e9938dd64d8c9c87133ee", "score": "0.66258943", "text": "public function get_sortable_columns() {\n\t\treturn array(\n\t\t\t'title' => array( 'title', true ),\n\t\t\t'sales' => array( 'sales', false ),\n\t\t\t'earnings' => array( 'earnings', false ),\n\t\t);\n\t}", "title": "" }, { "docid": "1f814e408b4abb9663f075f3918dc436", "score": "0.66199666", "text": "public static function getSortableColumns();", "title": "" }, { "docid": "6af3fb08c24fd3d8a77cdfbf941a5c51", "score": "0.6587114", "text": "public function get_sortable_columns() {\n\t\t$sortable_columns = array();\n\t\tif ( ! $this->is_related ) {\n\t\t\t$sortable_columns['title'] = array( 'title', false );\n\t\t\t$sortable_columns['post_date'] = array( 'post_date', false );\n\t\t}\n\n\t\treturn $sortable_columns;\n\t}", "title": "" }, { "docid": "d0f6880cad0168dab95d7489d9802e42", "score": "0.65800923", "text": "protected function get_sortable_columns() {\n\t\treturn array(\n\t\t\t'title' => array( 'title', false ),\n\t\t\t'author' => array( 'author', false ),\n\t\t\t'date' => array( 'date', false ),\n\t\t);\n\t}", "title": "" }, { "docid": "fbb9231f75c18ed0f98cd932ceaa502f", "score": "0.65705377", "text": "public function getFields(): array\n {\n $fields = [];\n\n foreach ($this->getNeeds() as $need) {\n $fields[] = $need['table'].'.'.$need['field'];\n }\n\n return \\array_unique($fields);\n }", "title": "" }, { "docid": "f86acb04e6eb4e27e1ad222f3f93f372", "score": "0.6564602", "text": "public function getOrderFiled() {\n\t\t$result = [];\n\t\t$orderField = $this->_getOrderField();\n\t\tif (empty($orderField)) {\n\t\t\treturn $result;\n\t\t}\n\n\t\t$result[$this->alias . '.' . $orderField] = 'asc';\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "d6c25af46fd965ea5fee538d7b594088", "score": "0.6562637", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t'a.date' => JText::_('COM_PHOCAGUESTBOOK_DATE'),\n\t\t\t'ordering' => JText::_('JGRID_HEADING_ORDERING'),\n\t\t\t'category_title' => JText::_('COM_PHOCAGUESTBOOK_FIELD_GUESTBOOK_LABEL'),\n\t\t\t'a.published' => JText::_('COM_PHOCAGUESTBOOK_PUBLISHED'),\n\t\t\t'a.title' => JText::_('COM_PHOCAGUESTBOOK_SUBJECT'),\n\t\t\t'a.language' => JText::_('JGRID_HEADING_LANGUAGE'),\n\t\t\t'a.id' => JText::_('JGRID_HEADING_ID')\n\t\t);\n\t}", "title": "" }, { "docid": "764fabd1f57d2df1aefd3067d18dd43a", "score": "0.65615374", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t'a.ordering' => JText::_('JGRID_HEADING_ORDERING'),\n\t\t\t'a.published' => JText::_('JSTATUS'),\n\t\t\t'a.document_number' => JText::_('JSTATUS'),\n\t\t\t'a.official_number' => JText::_('JSTATUS'),\n\t\t\t'a.name' => JText::_('JGLOBAL_TITLE'),\n\t\t\t'category_title' => JText::_('JCATEGORY'),\n\t\t\t'a.access' => JText::_('JGRID_HEADING_ACCESS'),\n\t\t\t'a.language' => JText::_('JGRID_HEADING_LANGUAGE'),\n\t\t\t'a.id' => JText::_('JGRID_HEADING_ID')\n\t\t);\n\t}", "title": "" }, { "docid": "acf0cc8816fb38a5b75acd05a54a28b4", "score": "0.6555289", "text": "abstract protected function getTableDataFields() : array;", "title": "" }, { "docid": "5e36218f4511fdd814e3c351f295fc54", "score": "0.6553584", "text": "protected function _getColumns()\n {\n $q = $this->pdo()->query(\"DESCRIBE $this->table;\")->fetchAll();\n return array_column($q, 'Field');\n }", "title": "" }, { "docid": "a7c95ec307eb30ee90aa1db2ca060236", "score": "0.65514743", "text": "function get_sortable_columns() {\r\n $sortable_columns = array(\r\n 'user_id' => array('user_id',true), //true means its already sorted\r\n 'blog_title' => array('blog_title',true), //true means its already sorted\r\n 'blog_rank_alexa' => array('blog_rank_alexa',false),\r\n 'blog_rank_techno' => array('blog_rank_techno',false),\r\n 'blog_rank_page' => array('blog_rank_page',false),\r\n 'blog_status' => array('blog_status',false)\r\n );\r\n return $sortable_columns;\r\n }", "title": "" }, { "docid": "e00f30386486f8569b32bc9bf36aace7", "score": "0.655077", "text": "public function get_sortable_columns() {\n\n\t\t \treturn $sortable = array(\n\t\t \t'name'\t=> 'name'\n\t\t \t);\n\n\t\t}", "title": "" }, { "docid": "38060e656531bcb9a2c25ef05f7f0009", "score": "0.6550168", "text": "public function get_sortable_columns()\n {\n }", "title": "" }, { "docid": "8ac0b26e528151987503d95e0d543979", "score": "0.6537346", "text": "public function get_sortable_columns() {\n\t\t$sortable_columns = array(\n\t\t\t'date' => array( 'class_date', false )\n\t\t);\n\n\t\treturn $sortable_columns;\n\t}", "title": "" }, { "docid": "3d1910e0d1fceb06b7d9626b16bceebe", "score": "0.65293145", "text": "protected function listFields() {\n // Default to the first 5 non-key fields in the data model\n return array_slice(array_keys($this->getModel()),1,5,true);\n }", "title": "" }, { "docid": "1789c92986d7cf3bac4e07524d4c0f30", "score": "0.65287095", "text": "public function get_sortable_columns() {\n $sortable_columns = array(\n \"display_name\" => array( \"display_name\", true ),\n );\n return $sortable_columns;\n }", "title": "" }, { "docid": "dd49db49c0290996d48e921340554872", "score": "0.651673", "text": "function get_fields_from_table($tablename) {\n // TODO Please convert this statement to the D7 database API syntax.\n $qry = db_query(\"SHOW COLUMNS FROM $tablename\");\n while ($row = db_fetch_object($qry)) {\n $fields[] = $row->Field;\n }\n return $fields;\n}", "title": "" }, { "docid": "d2c19238bd4561c733253d4bd8efeecb", "score": "0.6490469", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t'title' => JText::_('JGLOBAL_TITLE'),\n\t\t\t'zwbi.date' => JText::_('JDATE'),\n\t\t\t'zwbi.status_id' => JText::_('JSTATUS'),\n\t\t);\n\t}", "title": "" }, { "docid": "a022b1b50a8330b6d01d3fbbdc400956", "score": "0.64824754", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t\t'a.ordering' => JText::_('JGRID_HEADING_ORDERING'),\n\t\t\t\t'a.state' => JText::_('JSTATUS'),\n\t\t\t\t'a.title' => JText::_('JGLOBAL_TITLE'),\n\t\t\t\t'access_level' => JText::_('JGRID_HEADING_ACCESS'),\n\t\t\t\t'a.created_by' => JText::_('JAUTHOR'),\n\t\t\t\t'language' => JText::_('JGRID_HEADING_LANGUAGE'),\n\t\t\t\t'a.created' => JText::_('JDATE'),\n\t\t\t\t'a.id' => JText::_('JGRID_HEADING_ID'),\n\t\t\t\t'a.featured' => JText::_('JFEATURED')\n\t\t);\n\t}", "title": "" }, { "docid": "9d12ea19972d8f9e2b677c73e78ca067", "score": "0.64810264", "text": "protected function getSortFields() {\n\t\treturn array(\n\t\t\t'ordering' => JText::_('JGRID_HEADING_ORDERING'),\n\t\t\t'state' => JText::_('JSTATUS'),\n\t\t\t'title' => JText::_('COM_GALS_HEADING_TITLE'),\n\t\t\t'language' => JText::_('JGRID_HEADING_LANGUAGE'),\n\t\t\t'id' => JText::_('JGRID_HEADING_ID')\n\t\t);\n\t}", "title": "" }, { "docid": "4c67f9043eaf029551927ec7e87e401b", "score": "0.6479053", "text": "public function listFields($table)\n\t{\n\t\t$query = Db::query('SHOW FULL COLUMNS FROM '.$this->quoteIdentifier($table), Db::SELECT)->asAssoc();\n\n\t\t$result = $query->execute($this);\n\n\t\t$return = array();\n\n\t\tforeach ($result as $r)\n\t\t{\n\t\t\t$type = $r['Type'];\n\n\t\t\tif (strpos($type, ' '))\n\t\t\t{\n\t\t\t\tlist($type, $extra) = explode(' ', $type, 2);\n\t\t\t}\n\n\t\t\tif ($pos = strpos($type, '('))\n\t\t\t{\n\t\t\t\t$field['type'] = substr($type, 0, $pos);\n\t\t\t\t$field['constraint'] = substr($type, $pos + 1, -1);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$field['constraint'] = null;\n\t\t\t}\n\n\t\t\t$field['extra'] = isset($extra) ? $extra : null;\n\n\t\t\t$field['name'] = $r['Field'];\n\t\t\t$field['default'] = $r['Default'];\n\t\t\t$field['null'] = $r['Null'] !== 'No';\n\t\t\t$field['privileges'] = explode(',', $r['Privileges']);\n\t\t\t$field['key'] = $r['Key'];\n\t\t\t$field['comments'] = $r['Comment'];\n\t\t\t$field['collation'] = $r['Collation'];\n\n\t\t\tif($r['Extra'] === 'auto_increment')\n\t\t\t{\n\t\t\t\t$field['auto_increment'] = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$field['auto_increment'] = false;\n\t\t\t}\n\n\t\t\t$return[$field['name']] = $field;\n\t\t}\n\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "ebe253b693e7ef1dd85c64473f1a1cf9", "score": "0.64757377", "text": "public function get_sortable_columns() {\n\t\t$sortable_columns = array(\n\t\t\t//'base_template_id' => array( 'base_template_id', true ),\n\t\t\t//'list_ids' => array( 'list_ids', true ),\n\t\t\t//'status' => array( 'status', true )\n\t\t\t'name' => array( 'name', true ),\n\t\t\t'type' => array( 'type', true ),\n\t\t\t'created_at' => array( 'created_at', true )\n\t\t);\n\n\t\treturn $sortable_columns;\n\t}", "title": "" }, { "docid": "bd63055651c0d7c856d0aebfed3a9a27", "score": "0.6473684", "text": "private function _buildQueryOrderBy(){\n //Array of allowable order fields\n $mainframe = JFactory::getApplication('site');\n $params = $mainframe->getParams('com_jresearch');\n $columns = array();\n\n // Read those from configuration\n $filter_order = $params->get('projects_default_sorting', 'start_date');\n $filter_order_Dir = $params->get('projects_order', 'ASC');\n\n //Validate order direction\n if($filter_order_Dir != 'ASC' && $filter_order_Dir != 'DESC')\n $filter_order_Dir = 'ASC';\n\n $columns[] = $filter_order.' '.$filter_order_Dir;\n\n return $columns;\n }", "title": "" }, { "docid": "0bbb1692bfeba85de3eaebc39140389f", "score": "0.6471845", "text": "public function get_sortable_columns() {\r\r\n\t\t$sortable_columns = array(\r\r\n\t\t\t'Id'=> array( 'Id', true ),\r\r\n\t\t\t'SeasonName'=> array( 'season_name', true ),\r\r\n\t\t\t'TourName'=> array( 'tours.post_title', true ),\r\r\n\t\t\t'StartDate'=> array( 'start_date', true ),\r\r\n\t\t\t'EndDate'=> array( 'end_date', true ),\r\r\n\t\t\t'DurationDays'=> array( 'duration_days', true ),\r\r\n\t\t\t'Price'=> array( 'price', true ),\r\r\n\t\t\t'MaxPeople'=> array( 'max_people', true ),\r\r\n\t\t);\r\r\n\t\treturn $sortable_columns;\r\r\n\t}", "title": "" }, { "docid": "c5b04f5dcaa41a4e46c551b4e1e79240", "score": "0.6465878", "text": "function _getOrderBy() {\n\n // to sort by any number of columns\n\n\t\t$sortcolumn = \"\";\n\n\t\t$sortorder = '';\n\n\t\tif( is_array($this->sortBy) ) {\n\n foreach($this->sortBy as $key=>$value) {\n\n $sortcolumn = $key;\n\n $sortorder = $value;\n\n break;\n\n }\n\n }\n\n\n\n return array($sortcolumn, $sortorder);\n\n }", "title": "" }, { "docid": "a5df15c5199e495f2a4ee31ca1082633", "score": "0.6444876", "text": "public function get_sortable_columns() {\r\n return $sortable = array(\r\n 'Title' => array('Title', false),\r\n 'Topic' => array('Topic', false),\r\n 'AllowAnnonymous' => array('AllowAnnonymous', false),\r\n 'AllowMultiple' => array('AllowMultiple', false)\r\n );\r\n }", "title": "" }, { "docid": "4ed8cd7e07e064bc9f46bee8c97a5567", "score": "0.6432553", "text": "public function getSortFields()\n\t\t{\n\t\t\treturn array(\n\t\t\t\t'a.mf_name' => JText::_('JGLOBAL_TITLE')\n\t\t\t);\n\t\t}", "title": "" }, { "docid": "62cc78c6a53109f8aaebd178e26e23e5", "score": "0.64282084", "text": "public function getAllFields();", "title": "" }, { "docid": "3d0ad8787ed53e20751aa2b702115c2f", "score": "0.64272386", "text": "function getSearchableFields() {\n\t\tif (!$this->isSearchable()) return;\n\t\treturn $this->table->getTemplate('Doctrine_Template_Searchable')->getPlugin()->getOption('fields');\n\t}", "title": "" }, { "docid": "607ee735fd842173be6d1fd33130507f", "score": "0.64234364", "text": "protected function getSortFields()\n {\n return array('f.ordering' => JText::_('JGRID_HEADING_ORDERING'),\n 'a.state' => JText::_('JSTATUS'),\n 'f.title' => JText::_('COM_TZ_PORTFOLIO_HEADING_TITLE'),\n 'groupname' => JText::_('COM_TZ_PORTFOLIO_HEADING_GROUP'),\n 'f.type' => JText::_('COM_TZ_PORTFOLIO_HEADING_TYPE'),\n 'f.published' => JText::_('JSTATUS'),\n 'f.id' => JText::_('JGRID_HEADING_ID'));\n }", "title": "" }, { "docid": "ee58352aa0e203c05c3691a1a47d4228", "score": "0.64180225", "text": "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys( $dal_info[ $this->infoKey ] );\n\t}", "title": "" }, { "docid": "eb6febbc83d250f2dcd140f1bb843a74", "score": "0.64172924", "text": "private function getFields($tablename)\n\t{\n\t\treturn array_keys($this->_db->getTableColumns($tablename));\n\t}", "title": "" }, { "docid": "e9c8f16724e072e3d6760c0d3e89d9d3", "score": "0.6414828", "text": "public static function listFields(){\n\t\treturn [ \n\t\t\t\"permission_id\",\n\t\t\t\"model_type\",\n\t\t\t\"model_id\" \n\t\t];\n\t}", "title": "" }, { "docid": "19c7fc0307e2bdd87771d9a7a5dd83c0", "score": "0.64130735", "text": "function GetFields($table){\n\t\t$r = @mysql_query(\"SHOW COLUMNS FROM \".$table);\n\t\tif(@mysql_num_rows($r)>0){\n\t\t\twhile($row = @mysql_fetch_assoc($r)){\n\t\t\t\t$fields[$row['Field']] = $row;\n\t\t\t}\n\t\t}\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "e2331bb075986c73d11e10f26357d225", "score": "0.64060616", "text": "public function get_db_fields(){\n\t\tglobal $db;\n\t\t$table_name = static::TABLE_NAME;\n\t\t$result = $db->query(\"SHOW COLUMNS FROM {$table_name}\");\n\t\t$num = $result->num_rows ;//$db->num_rows($result);\n\t\tif (!$result) {\n\t\t\t\texit;\n\t\t\t}\n\t\t\t\t$columns = array();\n\t\t\t\tif ($num > 0) {\n\t\t\t\twhile ($row = $result->fetch_array()) {\n\t\t\t\t\t//foreach($row as $k){\n\t\t\t\t\t\t//$columns[] = $k;\n\t\t\t\t\t\tif(property_exists($this,$row[0])){\n\t\t\t\t\t\t\t$columns[] = $row[0];\n\t\t\t\t\t\t}\n\t\t\t\t\t//}\n\t\t\t\t}\n\t\t}\n\t\treturn $columns;\n\t}", "title": "" }, { "docid": "96f245c24e17779f62efa377caaf29ea", "score": "0.63996667", "text": "public function fetchFields($table=null)\n\t{\n\t\t$table = $table == null ? $this->table_name : $table;\n\t\tif(isset($this->table_wise_columns[$table]) === false) {\n\t\t\t$sql = \"SHOW columns FROM \".$table;\n\t\t\t//fetch all coloumn name\n\t\t\t$all_fields = DB::select($sql);\n\t\t\t$all_fields = $all_fields ? $all_fields : []\t;\n\t\t\t$this->table_wise_columns[$table]\t=\t$all_fields;\n\t\t\treturn $all_fields;\n\t\t} else {\n\t\t\treturn $this->table_wise_columns[$table];\n\t\t}\n\t}", "title": "" }, { "docid": "beecc78f1c941125c926fc6f57af9ecd", "score": "0.6395283", "text": "public static function getFields()\n {\n $db = new PHPWS_DB('demographics');\n $columns = $db->getTableColumns();\n return $columns;\n }", "title": "" }, { "docid": "88548f25eaad980f0b924e08f92f163c", "score": "0.6393708", "text": "public function & getFields()\r\n\t{\r\n\t\t$result = @mysql_query(\"SHOW COLUMNS FROM \".$this->table_name );\r\n\t\tif ($result === false) \r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\t$this->fields = array();\r\n\t\t\r\n\t\tif (@mysql_num_rows($result) > 0) \r\n\t\t{\r\n\t\t while ($row = @mysql_fetch_assoc($result)) \r\n\t\t\t\t$this->fields[] = $row;\t\r\n\t\t}\r\n\t\t@mysql_free_result($result);\t\t\r\n\t\treturn $this->fields;\t\r\n\t}", "title": "" }, { "docid": "8fb574665cf6ab1e8ba5392194cfbd8d", "score": "0.63884735", "text": "public function get_columns() {\n\t\treturn array(\n\t\t\t'group_id' => '%d',\n\t\t\t'owner_id' => '%d',\n\t\t\t'name' => '%s',\n\t\t\t'description' => '%s',\n\t\t\t'member_count' => '%d',\n\t\t\t'seats' => '%d',\n\t\t\t'fixed_billing' => '%d',\n\t\t\t'date_created' => '%s',\n\t\t\t'expiration'\t=> '%s',\n\t\t\t'access_level'\t=> '%d'\n\t\t);\n\t}", "title": "" }, { "docid": "a18903381f41a6f0a8d8862d25b1a6ac", "score": "0.6369982", "text": "private function getListOfFields() {\n $listFields = array();\n $userFields = user_load(0);\n return array_keys(get_object_vars($userFields));\n }", "title": "" }, { "docid": "2eb98acb791247f915c1f21b90f2dcb9", "score": "0.6369745", "text": "protected function getSortFields()\n\t{\n\t\treturn array(\n\t\t\t'a.ordering' => JText::_('JGRID_HEADING_ORDERING'),\n\t\t\t'a.state' => JText::_('JSTATUS'),\n\t\t\t'a.title' => JText::_('JGLOBAL_TITLE'),\n\t\t\t'category_title' => JText::_('JCATEGORY'),\n\t\t\t'project_title' => JText::_('COM_FORM2CONTENT_PROJECT'),\n\t\t\t'a.access' => JText::_('JGRID_HEADING_ACCESS'),\n\t\t\t'u.name' => JText::_('JAUTHOR'),\n\t\t\t'l.title' => JText::_('JGRID_HEADING_LANGUAGE'),\n\t\t\t'a.created' => JText::_('COM_FORM2CONTENT_CREATED'),\n\t\t\t'a.modified' => JText::_('COM_FORM2CONTENT_MODIFIED'),\n\t\t\t'a.id' => JText::_('JGRID_HEADING_ID')\n\t\t);\n\t}", "title": "" }, { "docid": "6133d397378589b8aed6a230dd7937d0", "score": "0.63680214", "text": "public function listFields($table)\n\t{\n\t\t$query = Db::query('SELECT * FROM information_schema.columns WHERE table_name = '.$this->quote($table), Db::SELECT)\n\t\t\t->asAssoc();\n\n\t\t$result = $query->execute($this);\n\n\t\treturn array_map(function($r){\n\t\t\treturn reset($r);\n\t\t}, $result);\n\t}", "title": "" }, { "docid": "0dd9f62ffa023df7011f50f414b17ac2", "score": "0.6350252", "text": "public function getAllFields()\n {\n return [];\n }", "title": "" }, { "docid": "7e58a403baa7d56ff2292896c8f9a966", "score": "0.63479525", "text": "function get_sortable_columns() {\n $sortable_columns = array(\n 'date_published' \t=> array('date_published',false), //true means its already sorted\n 'listing_title' => array('listing_title',false),\n 'status' => array('status',false),\n 'fba_inv_age_90' => array('fba_inv_age_90',false),\n 'fba_inv_age_180' => array('fba_inv_age_180',false),\n 'fba_inv_age_270' => array('fba_inv_age_270',false),\n 'fba_inv_age_365' => array('fba_inv_age_365',false),\n 'fba_inv_age_365_plus' => array('fba_inv_age_365_plus',false),\n 'fba_fee_ltsf_12' => array('fba_fee_ltsf_12',false),\n 'quantity' => array('quantity',false),\n 'price' => array('price',false),\n );\n\n if ( ! isset($_REQUEST['fba_status']) ) {\n unset( $sortable_columns['quantity'] );\n }\n\n return $sortable_columns;\n }", "title": "" }, { "docid": "edcfeb4585535fb655a4c0bf52245dfa", "score": "0.6345724", "text": "public function getColumns()\n {\n global $wpdb;\n\n $fields = $wpdb->get_results(\"SHOW COLUMNS FROM $this->table_name\");\n $my_fields = array();\n foreach ($fields as $field) {\n if ($field->Type == \"bignint(20)\" || $field->Type == \"tinyint(1)\" || $field->Type == \"tinyint(3)\") {\n $my_fields[$field->Field] = \"%d\";\n } else {\n $my_fields[$field->Field] = \"%s\";\n }\n }\n return $my_fields;\n }", "title": "" }, { "docid": "edcfeb4585535fb655a4c0bf52245dfa", "score": "0.6345724", "text": "public function getColumns()\n {\n global $wpdb;\n\n $fields = $wpdb->get_results(\"SHOW COLUMNS FROM $this->table_name\");\n $my_fields = array();\n foreach ($fields as $field) {\n if ($field->Type == \"bignint(20)\" || $field->Type == \"tinyint(1)\" || $field->Type == \"tinyint(3)\") {\n $my_fields[$field->Field] = \"%d\";\n } else {\n $my_fields[$field->Field] = \"%s\";\n }\n }\n return $my_fields;\n }", "title": "" } ]
3da68d29affcb3d12362222f619f7cb4
Change the current user password
[ { "docid": "733c0dbf6d52549cf797f20efaf53739", "score": "0.0", "text": "public function changePassword(){\n $params = array(\n 'id' => 'update-password-form',\n 'fieldsets' => array(\n 'form' => array(\n new PasswordInput(array(\n 'name' => 'current-password',\n 'label' => Lang::get($this->_plugin . '.update-password-current-password-label'),\n 'required' => true,\n 'pattern' => PasswordInput::LEAK_PATTERN\n )),\n\n new PasswordInput(array(\n 'name' => 'new-password',\n 'required' => true,\n 'label' => Lang::get($this->_plugin . '.update-password-new-password-label'),\n )),\n\n new PasswordInput(array(\n 'name' => 'password-confirm',\n 'required' => true,\n 'label' => Lang::get($this->_plugin . '.update-password-new-password-confirm-label'),\n 'compare' => 'new-password'\n ))\n ),\n\n '_submits' => array(\n new SubmitInput(array(\n 'name' => 'valid',\n 'value' => Lang::get($this->_plugin . '.valid-button'),\n )),\n\n new ButtonInput(array(\n 'name' => 'cancel',\n 'value' => Lang::get($this->_plugin . '.cancel-button'),\n 'onclick' => 'app.dialog(\"close\")'\n ))\n ),\n\n ),\n 'onsuccess' => 'app.dialog(\"close\")'\n );\n\n $form = new Form($params);\n\n if(!$form->submitted()) {\n return View::make(Theme::getSelected()->getView(\"dialogbox.tpl\"), array(\n 'title' => Lang::get($this->_plugin . '.update-password-title'),\n 'icon' => 'lock',\n 'page' => $form\n ));\n }\n else{\n if($form->check()) {\n $me = App::session()->getUser();\n if(!$me->checkPassword($form->getData('current-password'))) {\n return $form->response(Form::STATUS_ERROR, Lang::get($this->_plugin . '.update-password-bad-current-password'));\n }\n try{\n $me->set('password', Crypto::hashPassword($form->getData('new-password')));\n $me->save();\n\n return $form->response(Form::STATUS_SUCCESS, Lang::get($this->_plugin . '.update-password-success'));\n }\n catch(Exception $e){\n return $form->response(Form::STATUS_ERROR, DEBUG_MODE ? $e->getMessage() : Lang::get($this->_plugin . '.update-password-error'));\n }\n\n }\n }\n\n }", "title": "" } ]
[ { "docid": "15e6862740c91afb0cc0de26ae217636", "score": "0.82370245", "text": "public function changePassword() {}", "title": "" }, { "docid": "0eb011423d58d23fd50149567c70583d", "score": "0.8181419", "text": "public function change_password() {\n\t\t$flash = Flash::Instance();\n\t\tif(!$this->is_post) {\n\t\t\tsendTo();\n\t\t}\n\t\t$changer = new PasswordChanger();\n\t\t$success = $changer->changePassword(CurrentlyLoggedInUser::Instance(), $this->_data);\n\t\tsendTo('preferences','index','tactile');\n\t}", "title": "" }, { "docid": "ab48feef25d41a96aaeaa2a06372d63e", "score": "0.800877", "text": "public function changePassword ($userID, $password);", "title": "" }, { "docid": "2e07bad7d3d515ce0c0a50f3c13edccc", "score": "0.79825044", "text": "public function change_password() {\r\n \r\n // Encrypt password\r\n $password = $this->encrypt($this->credentials['password']);\r\n \r\n // Change user password.\r\n $changed = $this->CI->user_model->change_user_password($this->credentials['user_id'], \r\n array( \r\n 'password' => $password)\r\n );\r\n if(!$changed) {\r\n return DEFAULT_ERROR;\r\n }\r\n \r\n $this->CI->user_model->invalidate_reset_link($this->credentials['user_id']);\r\n return DEFAULT_SUCCESS;\r\n \r\n }", "title": "" }, { "docid": "6a6728cc0862bcd306bfbc0119ce23c3", "score": "0.796317", "text": "public function setActiveUserPassword() {\n\t\t\n\t\t// authorize call\n\t\t$this->authorize(Permissions::USERS_SET_OWN_PASSWORD);\n\t\t\t\t\t\t\t\t\n\t\t// get reference to active user\n\t\t$activeUser = $this->getCtx()->getUser();\n\t\t\n\t\t// get ref to managers needed\n\t\t$userManager = $this->getCtx()->getUserManager();\n\t\t$userManager->setUserPassword($activeUser, $this->input->post('password'));\n\n\t\t// prepare view data\n\t\t$data[\"component\"] = \"components/component_other_notification.php\";\n\t\t$data[\"component_title\"] = \"Change Password\";\n\t\t$data[\"component_message\"] = \"<p>Your password has been changed.</p><p>The change will take effect at the time of your next login.</p>\";\n\t\t$data[\"component_mode\"] = \"info\";\n\t\t$data[\"component_target\"] = \"/\";\n\t\t\n\t\t// render view\n\t\t$this->renderView($data);\n\t\t\n\t}", "title": "" }, { "docid": "dab5a38e6509282326eb2ea65d10f05c", "score": "0.79297906", "text": "public function changepw() {\n $this->password = UserIdentity::saltPassword($this->password, $this->salt);\n $this->scenario = 'changepw';\n return $this->save();\n }", "title": "" }, { "docid": "1b6abd08d054a01d7f98f19ee02f161b", "score": "0.7897952", "text": "public function changepassword() {\n $data['parent'] = \"password\";\n $data['error'] = \"\";\n $data['message'] = \"\";\n $this->template->load('default', 'auth/changepassword', $data);\n }", "title": "" }, { "docid": "64e3bf84873e4ddfa88678b9490829dd", "score": "0.77731663", "text": "protected function change_password() {\n\t\t$this->requireUser();\n\t\tif ( !isset($_POST[\"change_password\"]) ) {\n\t\t\t$this->checkForErrors();\n\t\t\t$this->smarty->display(\"user/change_password.tpl\");\n\t\t\treturn;\n\t\t}\n\t\t$this->user->set(\"password\", $this->user->encrypt($_POST[\"password\"]));\n\t\t$this->user->set(\"password_confirm\", $this->user->encrypt($_POST[\"password_confirm\"]));\t\t\t\n\t\ttry {\n\t\t\t$this->user->save();\n\t\t\t$this->redirect(\"user.php\");\n\t\t} catch (InvalidDataException $exception) {\n\t\t\t$this->setError($this->user->getError());\n\t\t\t$this->redirect(\"user.php?action=change_password\");\n\t\t}\n\t}", "title": "" }, { "docid": "17fd7194d265973ff817167fb8d76bed", "score": "0.7730497", "text": "public function update()\n\t{\n\t\t$this->_user->password = $this->_encrypter->encrypt($this->newpassword);\n\t\t$this->_user->save();\n\t}", "title": "" }, { "docid": "72b4032e5ae3613c12866178ce311f07", "score": "0.77014583", "text": "public function change_password() {\n $this->layout = '';\n CakeLog::write('info', 'In UserController,change_password()');\n $this->loadModel('User');\n $sessionEmail = CakeSession::read('session_email');\n $userInfo = $this->User->find('first', array(\n 'conditions' => array('User.txt_email' => $sessionEmail)));\n $this->set('userInfo', $userInfo);\n }", "title": "" }, { "docid": "c06c75baaf6658e29950e7a63d71d962", "score": "0.76592183", "text": "public function changepassword()\n {\n $tid = Input::get('row_id');\n $password = Input::get('password_teacher');\n $user = User::find(Student::find($tid)->user_id);\n $user->password = Hash::make($password);\n $user->save();\n }", "title": "" }, { "docid": "27de8338604f618d462800a9eb3a5c2b", "score": "0.76334965", "text": "public function changePassword()\n {\n if (!UserUtil::isLoggedIn()) {\n return LogUtil::registerPermissionError();\n }\n\n $changepassword = $this->getVar('changepassword', 1);\n if ($changepassword <> 1) {\n return System::redirect('Users', 'user', 'main');\n }\n\n $this->view->add_core_data();\n\n // Return the output that has been generated by this function\n return $this->view->fetch('users_user_changepassword.tpl');\n }", "title": "" }, { "docid": "3399bb0c9557fbe758b4c2bd7558f696", "score": "0.7598903", "text": "private function changePassword($new_password){\n\t\t\t\t\n\t\t\t\t$this->updateValue('password',$new_password);\n\t\t\t\t\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "c9587a32dc8bbacc025f5a5ce978f30c", "score": "0.7580219", "text": "public function changePassword() {\n if ($this->request->is(array('post', 'put'))) {\n if ($this->User->save($this->request->data)) {\n $this->setFlash('Password changed Successfully.', AppController::$SUCCESS);\n return $this->redirect(array('action' => 'index'));\n } else {\n $this->setFlash(AppController::$errorMessage, AppController::$DANGER);\n }\n } else {\n $options = array('conditions' => array('User.' . $this->User->primaryKey => $this->Auth->user('id')));\n $this->request->data = $this->User->find('first', $options);\n //removing existing password from request, not to be displayed on UI\n $this->request->data['User']['secret'] = '';\n }\n }", "title": "" }, { "docid": "75587164eeff42e4e378fde5bfbb438c", "score": "0.75610846", "text": "public function updatePassword()\n {\n if (!UserUtil::isLoggedIn()) {\n return LogUtil::registerPermissionError();\n }\n\n if (!SecurityUtil::confirmAuthKey('Users')) {\n return LogUtil::registerAuthidError(ModUtil::url('Users', 'user', 'changePassword'));\n }\n\n $uservars = $this->getVars();\n if ($uservars['changepassword'] <> 1) {\n return System::redirect('Users', 'user', 'main');\n }\n\n $currentPassword = FormUtil::getPassedValue('oldpassword', '', 'POST');\n $newPassword = FormUtil::getPassedValue('newpassword', '', 'POST');\n $newPasswordAgain = FormUtil::getPassedValue('newpasswordconfirm', '', 'POST');\n $newPasswordReminder= FormUtil::getPassedValue('passreminder', '', 'POST');\n\n $userObj = UserUtil::getVars(UserUtil::getVar('uid'), true);\n\n if (empty($currentPassword) || !UserUtil::passwordsMatch($currentPassword, $userObj['pass'])) {\n return LogUtil::registerError($this->__('Sorry! The current password you entered is not correct. Please correct your entry and try again.'),\n null, ModUtil::url('Users', 'user', 'changePassword'));\n }\n\n $passwordErrors = ModUtil::apiFunc('Users', 'registration', 'getPasswordErrors', array(\n 'uname' => $userObj['uname'],\n 'pass' => $newPassword,\n 'passagain' => $newPasswordAgain,\n 'passreminder' => $newPasswordReminder\n ));\n\n if (!empty($passwordErrors)) {\n foreach ($passwordErrors as $field => $errorList) {\n foreach ($errorList as $errorMessage) {\n LogUtil::registerError($errorMessage);\n }\n }\n return System::redirect(ModUtil::url('Users', 'user', 'changePassword'));\n }\n\n // set the new password\n if (UserUtil::setPassword($newPassword)) {\n if (!UserUtil::setVar('passreminder', $newPasswordReminder)) {\n LogUtil::registerError($this->__('Warning! Your new password was saved, however there was a problem saving your new password reminder.'));\n }\n } else {\n LogUtil::registerError($this->__('Sorry! There was a problem saving your new password.'));\n return System::redirect(ModUtil::url('Users', 'user', 'main'));\n }\n\n // Force reload of user vars\n $userObj = UserUtil::getVars(UserUtil::getVar('uid'), true);\n\n LogUtil::registerStatus($this->__('Done! Saved your new password.'));\n return System::redirect(ModUtil::url('Users', 'user', 'main'));\n }", "title": "" }, { "docid": "017261aa9ba85ed0bb7a85eec38ef557", "score": "0.75223756", "text": "public function setPassword() {\n if (!empty($this->data[$this->alias]['password'])) {\n //Anytime a password is submitted, create a new salt value for that user\n $userSalt = Random::makeSalt();\n $userStringHash = StringHash::password($this->data[$this->alias]['password'], $userSalt);\n $this->data[$this->alias]['hash'] = $userStringHash;\n $this->data[$this->alias]['salt'] = $userSalt;\n }\n }", "title": "" }, { "docid": "fe9915cbdc5d91f885777a1fbc945808", "score": "0.7520827", "text": "public function testSetPassword()\n {\n $user = $this->testAddUser();\n\n $this->_backend->setPassword($user, Tinebase_Record_Abstract::generateUID());\n \n $testUser = $this->_backend->getUserById($user, 'Tinebase_Model_FullUser');\n \n $this->assertNotEquals($user->accountLastPasswordChange, $testUser->accountLastPasswordChange);\n }", "title": "" }, { "docid": "362e02c3ce7ef05ae5ef68ddea983907", "score": "0.75072587", "text": "public function changePassword()\n {\n if (!oxRegistry::getSession()->checkSessionChallenge()) {\n return;\n }\n\n $oUser = $this->getUser();\n if (!$oUser) {\n return;\n }\n\n $sOldPass = oxRegistry::getConfig()->getRequestParameter('password_old', true);\n $sNewPass = oxRegistry::getConfig()->getRequestParameter('password_new', true);\n $sConfPass = oxRegistry::getConfig()->getRequestParameter('password_new_confirm', true);\n\n /** @var oxInputValidator $oInputValidator */\n $oInputValidator = oxRegistry::get('oxInputValidator');\n if (($oExcp = $oInputValidator->checkPassword($oUser, $sNewPass, $sConfPass, true))) {\n switch ($oExcp->getMessage()) {\n case 'ERROR_MESSAGE_INPUT_EMPTYPASS':\n case 'ERROR_MESSAGE_PASSWORD_TOO_SHORT':\n return oxRegistry::get(\"oxUtilsView\")->addErrorToDisplay(\n 'ERROR_MESSAGE_PASSWORD_TOO_SHORT',\n false,\n true\n );\n default:\n return oxRegistry::get(\"oxUtilsView\")->addErrorToDisplay(\n 'ERROR_MESSAGE_PASSWORD_DO_NOT_MATCH',\n false,\n true\n );\n }\n }\n\n if (!$sOldPass || !$oUser->isSamePassword($sOldPass)) {\n /** @var oxUtilsView $oUtilsView */\n $oUtilsView = oxRegistry::get(\"oxUtilsView\");\n\n return $oUtilsView->addErrorToDisplay('ERROR_MESSAGE_CURRENT_PASSWORD_INVALID', false, true);\n }\n\n // testing passed - changing password\n $oUser->setPassword($sNewPass);\n if ($oUser->save()) {\n $this->_blPasswordChanged = true;\n // deleting user autologin cookies.\n oxRegistry::get(\"oxUtilsServer\")->deleteUserCookie($this->getConfig()->getShopId());\n }\n }", "title": "" }, { "docid": "bad4fddac32aee4394f88d812dd5d031", "score": "0.7498803", "text": "public function changePassword()\n\t{\n\t\t$this->auth();\n\t\t$this->load->view('admin/change-password');\n\t}", "title": "" }, { "docid": "1186f04e9a476fdf9323d403f3f6e764", "score": "0.7443077", "text": "public function updatePassword()\n\t{\n\t\tinclude \"connection.php\";\n\t\t\n\t\t$updatePassword = $connection->prepare(\"update users set password = ? where userName = ?\");\n\t\t$updatePassword->bind_param(\"ss\", $password, $userName);\n\t\t\n\t\t$password = $this->getPassword();\n\t\t$userName = $this->getUserName();\n\t\t\n\t\t$updatePassword->execute();\n\t\t$updatePassword->free_result();\n\t}", "title": "" }, { "docid": "f512865a9af5ea657c9eed04110ec9e4", "score": "0.74416435", "text": "function SetPassword($pass)\n\t{\n\t\tDB::Execute(\"UPDATE {P}UserSettings SET usrPasshash=SHA1(CONCAT(usrID,'{$pass}'))\");\n\t}", "title": "" }, { "docid": "232747e573668651cd6c495e2172f075", "score": "0.74287707", "text": "public function password_update()\n\t{\n\t\t$this->custom_model->check_login_session();\n\n\t\tprint $data = $this->admin->password_update();\n\t}", "title": "" }, { "docid": "b24d19adb538b4282dff62b307058fef", "score": "0.7423767", "text": "public function changePassword()\n {\n $id = $this->session->id;\n $data['agents'] = $this->App_model->get_onces($id, 'tb_doc_assets', 'id_asset');\n\n $data['title'] = \"Modification du mot de passe utilisateur\";\n $this->load->view('includes/header', $data);\n $this->load->view('app/profil/change_password', $data);\n $this->load->view('includes/footer', $data);\n }", "title": "" }, { "docid": "f8fd7b46813c84dde752b884f7c9fa00", "score": "0.74110544", "text": "public function setUserPassword($password) { $this->user_password = $password; }", "title": "" }, { "docid": "dcc3870b001875f03f0c61be96f9214a", "score": "0.7410553", "text": "public function updatePassword()\n {\n $user = Sentry::getUser();\n\n $input = Input::all();\n\n $rules = array( \n 'current_password' => 'required', \n 'new_password' => 'required|confirmed|min:6', \n );\n\n $validator = Validator::make($input, $rules);\n\n if (!$validator->passes())\n {\n return Redirect::route('account.editPassword')\n ->withErrors($validator);\n }\n\n if(!$user->checkPassword(Input::get('current_password')))\n {\n return Redirect::route('account.editPassword')\n ->withMessage('The password you provided was not valid. Try again.');\n }\n\n $user = Sentry::getUser();\n $user->password = Input::get('new_password');\n $user->save();\n\n return Redirect::route('home')\n ->withInfo('Your password was changed successfully.');\n }", "title": "" }, { "docid": "abd542deab9ee642737061fb04469c69", "score": "0.74095607", "text": "public function ChangePassword(String $username, String $password);", "title": "" }, { "docid": "5f57c140bbab0de1e899e4ea09b6ab7e", "score": "0.7404625", "text": "public function setPassword()\n {\n }", "title": "" }, { "docid": "54a2b8fb646ea77fa773b9fde1f94f59", "score": "0.7397694", "text": "public function updatePassword($pass)\r\n\t{\r\n\t\t$secure_pass = generateHash($pass);\r\n\t\t$query = UcUsersQuery::create()->findById($this->user_id);\t\r\n\t\t$user = $query[0];\r\n\t\t$user->setPassword($secure_pass);\r\n\t\t$user->save();\r\n\t}", "title": "" }, { "docid": "a705d8afa919875c8871fd4f9936be35", "score": "0.7396836", "text": "function setPassword( $password ) {\n\t\t$dbw = wfGetDB( DB_MASTER );\n\t\t$success = $dbw->update( $this->tablename,\n\t\t\t\tarray( 'user_password' => User::oldCrypt( $password, $this->data->user_id ) ),\n\t\t\t\tarray( 'user_id' => $this->data->user_id,\n\t\t\t\t\t'user_wiki' => $this->data->user_wiki ),\n\t\t\t\t'GlobalAuth::setPassword' );\n\t\treturn $success;\n\t}", "title": "" }, { "docid": "7c3290a31b217d1ce36bc4bb1fac8ea2", "score": "0.738771", "text": "public function setUserPassword($password);", "title": "" }, { "docid": "2e3ef29c2cdbf094f92eb6360fbf3ca3", "score": "0.737678", "text": "public function updatePassword(UserInterface $user);", "title": "" }, { "docid": "6bdb0361b402f0cc7fc8664d1a0e9740", "score": "0.736942", "text": "public function edit_user_password()\n {\n $this->timeControl();\n $new_password = password_hash($this->input->post(\"new_password\"), PASSWORD_DEFAULT);\n\n $query = $this->user_data->get_user_details($_SESSION['username']);\n if ($new_password != $query['password']) {\n $this->user_data->change_password($_SESSION['username'], $new_password);\n session_destroy();\n $this->load->view('message/success_change_password');\n } else {\n $this->load->view('message/failure_edit_password');\n }\n\n\n }", "title": "" }, { "docid": "af55464c427ae40304d0e64976feaed3", "score": "0.73252046", "text": "public function setpasswordAction() {\n\t\ttry{\n\t\t\t\n\t\t\t$this->_helper->layout->setLayout($this->session->emptylayout);\n\t\t\t\n\t\t\t$config = Zend_Registry::get('config');\n\t\t\t\n $this->view->reusepassword = $config->user->reusepassword;\n\t\t\t$fields = $this->_getAllParams();\n\t\t\t\n\t\t\tif(isset($fields['signup']) && isset($fields['new_password'])) {\n\t\t\t\tif($this->users->savechangepassword($fields)){\n\t\t\t\t\t$this->_redirect('admin/index/logout');\n\t\t\t\t} else {\n\t\t\t\t\t//$this->_redirect('usermanagement/index/success');\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch(Exception $e) {\n\t\t\tApplication_Model_Logging::lwrite($e->getMessage());\n\t\t\tthrow new Exception($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "65e4844fbea090527dd1bd85059294d0", "score": "0.73225653", "text": "function change_password(){\n Configure::write(\"debug\",2);\n $this->layout = \"external\"; // Layout for external pages (i.e. not in experiment)\n $this->set(\"active_header_item\", \"Account\");\n $this -> set('title_for_layout', \"Change password\");\n\n $user_id\t\t= parent::check_user();\n //retrieve information about the user\n $user_email\t\t= $this->Authentication->find(\"first\",array(\"fields\"=>array(\"email\"),\"conditions\"=>array(\"user_id\"=>$user_id)));\n $user_email\t= $user_email['Authentication']['email'];\n\n if($_POST){\n if(array_key_exists(\"new_password1\",$_POST) && array_key_exists(\"new_password2\",$_POST)){\n\t$pass1 = $_POST['new_password1'];\n\t$pass2 = $_POST['new_password2'];\n\tif($pass1!=$pass2){$this->set(\"error\",\"Passwords are not the same\");return;}\n\tif(strlen($pass1) < 8){$this->set(\"error\",\"Passwords need to consist of 8 or more characters\");return;}\n\n\t//checks done, create hash-version of the new password\n\t$hashed_pass\t= hash(\"sha256\",$pass1);\n\t$this->Authentication->updateAll(array(\"password\"=>\"'\".$hashed_pass.\"'\"),array(\"user_id\"=>$user_id));\n\t//send email to user with password information\n\t$this->TrapidUtils->send_registration_email($user_email,$pass1,true);\n\n\t$this->Cookie->destroy();\n \t$this->redirect(\"/\");\n }\n }\n\n }", "title": "" }, { "docid": "c43c58536291977a985deeab669d033b", "score": "0.7318163", "text": "public function setPassword($password) {}", "title": "" }, { "docid": "3e45f5e40bea4edc0368771981b71903", "score": "0.73060447", "text": "public function changePass()\n {\n\n $mdp = $this->request->getParameter( 'pass' );\n $verifPass = $this->request->getParameter( 'verifPass' );\n\n if ($mdp !== false && $verifPass !== false) {\n if ($mdp === $verifPass) {\n if (preg_match( \"#^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*\\W)(?!.*[<>]).{8,30}$#\", $mdp )) {\n $this->user->updateMdp( $mdp, $this->request->getSession()->getAttribut( 'idUser' ) );\n $this->rediriger( \"admin\", \"index\" );\n $this->request->getSession()->setFlash( 'Le mot de passe a été modifié' );\n } else {\n\n $this->request->getSession()->setFlash( 'mots de passe non autorisé' );\n }\n\n } else {\n $this->request->getSession()->setFlash( 'Les mots de passe ne sont pas identiques' );\n }\n } else {\n $this->request->getSession()->setFlash( 'Action non autorisée' );\n }\n $this->rediriger( \"admin\", \"index\" );\n\n\n }", "title": "" }, { "docid": "96296d25bc0ca25e589b77b18c08cdf4", "score": "0.73010945", "text": "public function setExistingPassword($password);", "title": "" }, { "docid": "f86dd6411e2e40a3802912678aa39c09", "score": "0.72752476", "text": "public function admin_changePassword(){\r\n\t\t$this->layout='admin';\r\n\t\t$this->set(\"expand_menu_links\",\"admins\");\r\n\t\tApp::import('Model', 'User');\r\n\t\t$this->User = & new User();\r\n\t\t$adminId = $this->Session->read(\"AdminId\");\r\n\t\tif(!empty($this->data)){ \r\n\t\t // create hash string of old password\r\n\t\t\t$hashstring = $this->Common->CreateHashString(trim($this->data['User']['old_password']));\r\n\t\t\t// match enter old password with database password\r\n\t\t\t$userExists = $this->User->findById($adminId);\r\n\t\t\tif($hashstring == $userExists['User']['password']){\r\n\t\t\t\t// create hash string of new password\r\n\t\t\t\t$newpassword = $this->Common->CreateHashString(trim($this->data['User']['password']));\r\n\t\t\t\t$this->User->id = $adminId;\r\n\t\t\t\t$this->data['User']['password'] = $newpassword;\r\n\t\t\t\t$this->User->save($this->data);\r\n\t\t\t\t$this->Session->setFlash(PASWORD_CHANGE);\r\n\t\t\t\t$this->redirect(array('controller'=>'users','action'=>'home'));\r\n\t\t\t}else{\r\n\t\t\t\t$this->Session->setFlash(OLD_PASSWOD_NOT_MATCH);\r\n\t\t\t}\r\n\t\t }\r\n\t }", "title": "" }, { "docid": "6c88fbb7d37e1cc4524958a38c3c7434", "score": "0.72747797", "text": "private function _wpResetPassword() {\n $db = $this->_getDBConnection();\n $password = $this->getNewPassword();\n $query = \"UPDATE wp_users SET user_pass = MD5('\" . $password . \"') WHERE user_login ='\" . $this->SITE_CONFIG[ 'wp_users' ][ 'user_login' ] . \"' LIMIT 1\";\n $result = $db->exec( $query );\n\n $this->SITE_CONFIG[ 'wp_users' ][ 'user_pass' ] = $password;\n }", "title": "" }, { "docid": "b08f43da235aec11e73d00239ad41365", "score": "0.72720444", "text": "function password()\n {\n if(!isset($_SESSION['active_user']))\n redirect_to(make_url(\"users\"));\n\n $usr = instance_model('users');\n $user = $usr->get_user_by_id($_SESSION['active_user']['id']);\n\n if($user == array())\n throw new no_such_user_exception();\n\n if(!isset($_POST['Submit']))\n {\n // Display main\n $view = instance_view(\"settings_password\");\n $view = $view->parse_to_variable(array());\n }\n else\n {\n $form_vals = $_POST;\n\n // Varify old password\n $selected_user = $usr->verify_user($user[0]['User_name'], $form_vals[0]);\n\n if($selected_user === false)\n new_flash('Old password is incorrect', 1);\n\n // Validate new password\n if(mb_strlen($form_vals[1], 'utf8') < 6)\n new_flash('New password too short, min 6 charicters', 1);\n\n else if(sha1($form_vals[1]) != sha1($form_vals[2]))\n new_flash('Passwords do not match', 1);\n\n if(count(get_errors()) == 0)\n {\n // Everything was vald, save updated password\n $usr->update_password(\n $user[0]['ID'],\n $form_vals[1]);\n\n redirect_to(make_url('settings', 'password'));\n }\n else\n {\n // Something was invalid, redisplay main\n $view = instance_view(\"settings_password\");\n $view = $view->parse_to_variable(array());\n }\n }\n\n // Display sidebar\n $sb_view = instance_view(\"settings_sidebar\");\n $sb_view = $sb_view->parse_to_variable(array(\n 'uid' => $_SESSION['active_user']['id'],\n 'uname' => $_SESSION['active_user']['name']));\n\n $this->set_template_paramiters(\n array('main_content' => $view,\n 'sidebar' => $sb_view));\n }", "title": "" }, { "docid": "4f70cf655a999cf697fb459d3ff64604", "score": "0.7270466", "text": "public function changePass($password) {\n $purifier = new CHtmlPurifier();\n $password = md5($purifier->purify($password));\n\n $user = Yii::app()->user->id;\n $command = Yii::app()->db->createCommand('UPDATE ' . $this->tableName() . ' SET password=:password WHERE username=:user');\n $command->bindParam(\":user\", $user, PDO::PARAM_STR);\n $command->bindParam(\":password\", $password, PDO::PARAM_STR);\n $command->execute();\n }", "title": "" }, { "docid": "be5dfd4614435b616d3d08b8b29c1738", "score": "0.7270201", "text": "public function changePassword()\n {\n if (!$this->isRestore()) {\n $this->addError('error', Yii::t('activeuser_general', 'User not request restore procedure'));\n return false;\n }\n if ($this->isRestoreTokenExpired()) {\n $this->addError('token', Yii::t('activeuser_general', 'You token was expired'));\n return false;\n }\n if (empty($this->password) && !$this->module->generatePassOnRestore) {\n $this->addError('password', Yii::t('activeuser_general', 'Password cannot be blank'));\n return false;\n }\n $this->status = self::STATUS_ACTIVE;\n $this->newPassword();\n return true;\n }", "title": "" }, { "docid": "a4618568571d3d5c80694218daa7f7a6", "score": "0.7259107", "text": "public function updatePassAction()\n {\n $passNew = isset($_POST['passNew']) ? $_POST['passNew'] : NULL;\n\n $settings = new SettingsData();\n $settings->updatePassword($passNew);\n }", "title": "" }, { "docid": "116c6a263d48cda26d4e08cbf07c7a1e", "score": "0.7251984", "text": "public function userPasswordUpdate()\n {\n $password = Hash::make($this->request->input(\"new_password\"));\n $updateArray = [\n \"password\" => $password\n ];\n $whereArray = [\n [\"user_id\", '=', $this->request->input(\"user_id\")]\n ];\n $this->usersModel->setTableName(\"users\");\n $this->usersModel->setInsertUpdateData($updateArray);\n $this->usersModel->setWhere($whereArray);\n $this->usersModel->updateData();\n }", "title": "" }, { "docid": "5ab7e500a511ca0d63e1ded93e82dba2", "score": "0.72498536", "text": "public function updatePassword() //mise à jour du mot de passe\n {\n\n abort_if(Auth::id() == \"1\",403);\n\n request()->validate([\n 'current'=>'required|password',\n 'password'=>'required|between:9,20|confirmed',\n ]);\n\n $user = auth()->user();\n\n $user->password = bcrypt(request('password'));\n\n $user->save();\n\n $success = 'Mot de passe mis à jour.';\n return back()->withSuccess($success);\n }", "title": "" }, { "docid": "c094021b6a7795dad6d9dd4569734c5c", "score": "0.7241283", "text": "function setUserPassword($user) {\r\n\t\t# converteer het password naar een pass hash\r\n\t\t$user['passhash'] = $this->passToHash($user['newpassword1']);\r\n\t\t\r\n\t\t$this->_db->setUserPassword($user);\r\n\t}", "title": "" }, { "docid": "e7013162e6d72e143433459af7e6ebdd", "score": "0.7234594", "text": "public function changepasswordAction() {\n\t\ttry{\t\t\t\n\t\t\t$config = Zend_Registry::get('config');\n $this->view->reusepassword = $config->user->reusepassword;\n $this->view->title = Title_Change_password;\n \n\t\t\t$fields = $this->_getAllParams();\n\t\t\tif(isset($fields['signup']) && isset($fields['new_password'])) {\n\t\t\tif($this->users->savechangepassword($fields)){\n\t\t\t\t$this->_redirect('admin/index/logout');\n\t\t\t} else {\n\t\t\t\t//$this->_redirect('usermanagement/index/changepassword');\n\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch(Exception $e) {\n\t\t\tApplication_Model_Logging::lwrite($e->getMessage());\n\t\t\tthrow new Exception($e->getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "cc48de2366c2cb8e04b43f018ae3bef3", "score": "0.7226708", "text": "public function modifyPassword()\n {\n helper(['pass']);\n\n $fields = ['id', 'old_pass', 'new_pass'];\n\n $json = $this->request->getJSON();\n if ($json) {\n $data = [\n $fields[0] => $json->username,\n $fields[1] => $json->old_pass,\n $fields[2] => $json->new_pass\n ];\n } else {\n $input = $this->request->getRawInput();\n $data = [\n $fields[0] => $input['username'],\n $fields[1] => $input['old_pass'],\n $fields[2] => $input['new_pass']\n ];\n }\n // empty parameters check\n if (strlen($data['id']) < 0 || $data['id'] == null) {\n return $this->failValidationErrors(\"Username must be defined!\");\n }\n if (strlen($data['old_pass']) < 0 || $data['old_pass'] == null) {\n return $this->failValidationErrors(\"Old Password must be defined!\");\n }\n if (strlen($data['new_pass']) < 0 || $data['new_pass'] == null) {\n return $this->failValidationErrors(\"New Password must be defined!\");\n }\n\n // verify that the data exists\n $result = $this->builder->getWhere([\n 'id' => $data['id']\n ])->getRow();\n \n if (!$result) {\n return $this->failNotFound(\"Username is not recognized: \" . $data['id']);\n } else {\n if (!pass_check($data['old_pass'], $result->password)) {\n return $this->failUnauthorized(\"Wrong password!\");\n } else {\n if (strlen($data['new_pass']) > 72) {\n return $this->failValidationErrors(\"Username must be no longer than 72 characters!\");\n } else {\n $new_pass = pass_create($data['new_pass']);\n $this->builder->update(\n ['password' => $new_pass],\n ['id' => $data['id']]\n );\n return $this->respondUpdated(\"Password has been modified successfully!\");\n }\n }\n }\n }", "title": "" }, { "docid": "7138a277260a24c3f4844add9f9bbee7", "score": "0.7225294", "text": "public function setPassword($password, $old = 0)\r\n {\r\n if($old === 0)\r\n $password = sha1($password);\r\n \r\n $this->password = $password;\r\n }", "title": "" }, { "docid": "2174b404706ff715cb57ea4adfc5266a", "score": "0.7222361", "text": "function ChangePassword($pass)\n {\n $request = \" UPDATE ee_user SET PassWord='\".md5($pass).\"' \";\n $request .= \" WHERE Id=\". $this->IdEntite ;\n\n $this->Core->Db->Execute($request);\n }", "title": "" }, { "docid": "e84bba6a4cdabf87b6dc955d11e5e2f1", "score": "0.7215017", "text": "public function updatePassword(){\n $r = Admin::find(1);\n $r->password=Hash::make('123');\n $r->save();\n }", "title": "" }, { "docid": "81c7725dd7f87f1f0139f2226e6bb77b", "score": "0.7210081", "text": "public function changePassword()\r\n\t{\r\n\t\tDebugLogger::write(\"Password will be changed from now.\");\r\n\t\r\n\t\t$result = array();\r\n\t\r\n\t\t// encode password using MD5\r\n\t\t$modifiedPassword = (md5($this->_user->getPassword() . USER_PASSWORD_SALT_WORD));\r\n\t\r\n\t\t// DB connect\r\n\t\t$db_connection = GalaxyDbConnector::getConnection();\r\n\t\r\n\t\tif ($db_connection == null) {\r\n\t\t\tErrorLogger::write(\"DB connect failed.\");\r\n\t\t\treturn OutputUtil::getErrorOutput(array(SRV_SYSTEM_ERROR_NONE));\r\n\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\t// prepare SQL statement\r\n\t\t$stmt = $db_connection->prepare(CHANGE_PASSWORD_QUERY);\r\n\t\t$stmt->bindValue(\":PCREQUESTCODE\", $this->_user->getPcrequestcode(), PDO::PARAM_STR);\r\n\t\t$stmt->bindValue(\":PASSWORD\",\t $modifiedPassword,\t\t\t\tPDO::PARAM_STR);\r\n\t\r\n\t\t// execute SQL\r\n\t\ttry {\r\n\t\t\t$stmt->execute();\r\n\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\tErrorLogger::write(\"Exception has thrown DB insertion.\", $e);\r\n\t\t\treturn OutputUtil::getErrorOutput(array(SRV_SYSTEM_ERROR_NONE));\r\n\t\t}\r\n\t\r\n\t\tDebugLogger::write(\"DB insertion succeeded.\");\r\n\t\r\n\t\t// close prepared statement\r\n\t\t$stmt = null;\r\n\t\r\n\t\treturn OutputUtil::getSuccessOutput();\r\n\t}", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.72003967", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.72003967", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.72003967", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.72003967", "text": "public function setPassword($password);", "title": "" }, { "docid": "cd2c446823c671854369172ffa2959b0", "score": "0.72003967", "text": "public function setPassword($password);", "title": "" }, { "docid": "1580d610e671e76f3b0a0a8b2919a3e4", "score": "0.7199557", "text": "public function changePassword() {\n CakeLog::write('info', 'In UserController,changePassword()');\n $this->loadModel('User'); \n $userId = trim($this->request->data['user_id']);\n $password = trim($this->request->data['password']);\n $cpassword = trim($this->request->data['c_password']);\n $encrypted_password = base64_encode($password);\n if ($password == $cpassword) {\n if ($this->User->updateAll(array('txt_pswd' => \"'$encrypted_password'\"), array('nbr_user_id' => $userId))) {\n $this->Session->write('pcmessage', 'Password successfully changed.');\n CakeLog::write('info', 'Password successfully changed.');\n $this->redirect('../User/change_password');\n } else {\n $this->Session->write('pcmessage', 'Password not changed.');\n CakeLog::write('info', 'Password not changed.');\n $this->redirect('../User/change_password');\n }\n } else {\n $this->Session->write('pcmessage', 'Password and Confirm pasword is different');\n CakeLog::write('info', 'Password and Confirm pasword is different.');\n $this->redirect('../User/change_password');\n }\n }", "title": "" }, { "docid": "bf075466f47ea54782c923b0f334ada3", "score": "0.7197102", "text": "function setPassword($password){\n\t\t\t$userId =Security::escape($this->id);\n\t\t\t$hash = Security::escape(password_hash($password, PASSWORD_DEFAULT));\n\t\t\tself::$mysqli->queryDML(\"UPDATE utente SET pass = '$hash' WHERE id = $userId\");\n\t\t\t$this->pwd = $hash;\n\t\t}", "title": "" }, { "docid": "925ca2645f8e6653b12ced6db9a45b01", "score": "0.719421", "text": "function setUserPassword($user_password) {\n // TODO: Must be encrypted\n $this->user_password = $user_password;\n }", "title": "" }, { "docid": "b1988598a299c2caa5fe419dbfcb2471", "score": "0.7188818", "text": "public function update_userpassword(){\t\r\n\t\r\n\t\tif( $this->request->is('post') ){\r\n\t\r\n\t\t\t$Member = $this->Member->findById( $_POST['memberid'] );\r\n\t\t\t\r\n\t\t\t$oldpasswd = $_POST['oldpassword'];\r\n\t\t\t$newpasswd = $_POST['newpassword'];\r\n\t\t\t\r\n\t\t\t$h_oldpasswd = AuthComponent::password( $oldpaswd );\r\n\t\t\t\r\n\t\t\tif( $h_oldpasswd == $Member['Member']['password'] ){\r\n\t\t\t\r\n\t\t\t\t$h_newpasswd = AuthComponent::password( $newpasswd );\r\n\t\t\t\t$Member['Member']['password'] = $h_newpasswd;\r\n\t\t\t\t\r\n\t\t\t\tif( $this->Member->save( $Member ) ){\r\n\t\t\t\t\r\n\t\t\t\t\techo json_encode( array('result' => 1, 'message' => 'password update successful!') );\r\n\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\r\n\t\t\t\t\techo json_encode( array('result' => 0, 'message' => 'problem saving new password!') );\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\r\n\t\t\t\techo json_encode( array('result' => 0, 'message' => 'old password not correct!') );\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t\techo json_encode( array('result' => 0) );\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\r\n\t}", "title": "" }, { "docid": "c7065637f8957e80dd6b270f906b09d5", "score": "0.7187138", "text": "public function changePassword()\n {\n $user = \\Sentinel::findById(\\Request::get('id'));\n\n if (\\Reminder::complete($user, \\Request::get('code'), \\Request::get('password'))) {\n $this->success('passwords.reset');\n return $this->json();\n } else {\n return $this->abort('passwords.fail');\n }\n }", "title": "" }, { "docid": "9a7a6bf9d85c861b0ec6138a6e8ddd5c", "score": "0.71823204", "text": "public function setPassword($x) { $this->password = $x; }", "title": "" }, { "docid": "9c71cc1e292faf00f137420d7a12a537", "score": "0.71788806", "text": "function wp_set_password( $password, $user_id ) {\n\tglobal $wpdb;\n\n\t$hash = wp_hash_password( $password );\n\t$wpdb->update($wpdb->users, array('user_pass' => $hash, 'user_activation_key' => ''), array('ID' => $user_id) );\n\n\twp_cache_delete($user_id, 'users');\n}", "title": "" }, { "docid": "1eb1859a7430833706b954422a3502eb", "score": "0.7176322", "text": "function changePassword($data) {\n\t\t$selPassword =\n\t\t\t\"UPDATE users\n\t\t\t\tSET password = \\\"\" . sha1($data['NewPassword'].SALT) . \"\\\" WHERE id = \" . $data['UserId'];\n\t\t$resPassword = $this->fireQuery($selPassword);\n\n\t\t// If everything goes well, return 1\n\t\tif ($resPassword) {\n\t\t\treturn 1;\n\t\t\n\t\t// Otherwise return 0\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}", "title": "" }, { "docid": "0a9772c4dd6e3436e90bfa922e73ae44", "score": "0.7159112", "text": "public function editPasswordProcess() {\n\t\t$user = User::loadById($_GET['userid']);\n\n\t\tif ($user->get('password')==$_POST['oldpassword']) {\n\t\t\t$user->set('password',$_POST['password']);\n\t\t\t$user->save();\n\t\t\t$this->viewAccount();\n\t\t} else {\n\t\t\t$pageName = 'Edit Password';\n\n\t\t\tinclude_once SYSTEM_PATH.'/view/header.tpl';\n\n\t\t\techo '<h3 id=\"resign_text\" > Error: Your Current Password is incorrect </h3>\n\t\t\t\t\t\t<br><br>';\n\n\t\t\t$this->editPassword();\n\t\t}\n\t}", "title": "" }, { "docid": "43900561d8de8e2a02e21204e2350d91", "score": "0.71479464", "text": "public function change_password() {\n $this->viewBuilder()->layout('admin');\n $this->loadModel('Users');\n if ($this->request->is('post')) {\n $userId = $this->request->session()->read('Auth.Admin.id');\n\n $user = $this->Users->get($userId);\n $oldPassword = $user['password'];\n $newPassword = $this->request->data['new_password'];\n $confirmPassword = $this->request->data['password'];\n $verify = password_verify($this->request->data['password'], $oldPassword);\n\n if ($newPassword != $confirmPassword) {\n $this->Flash->error(__('New password and confirm password does not match.'));\n return $this->redirect(['action'=>'change_password']);\n } elseif ($verify == 1) {\n $this->Flash->error(__('Old password and new password can not be same.'));\n return $this->redirect(['action'=>'change_password']);\n } else {\n $user = $this->Users->patchEntity($user, ['password'=>$this->request->data['password']]);\n $this->Users->save($user);\n $this->Flash->success(__('Password is Successfully updated.'));\n return $this->redirect(['action'=>'index']);\n }\n }\n }", "title": "" }, { "docid": "c32be1e9ec2cb66f7672d1c8da33b07a", "score": "0.7147155", "text": "function setPassword($pwd)\n\t{\n $this->password = $pwd;\n }", "title": "" }, { "docid": "c4266607a96e6117b94c8bb9e2cb6e50", "score": "0.7134543", "text": "private function passwd() {\n\t\t$username = mysql_real_escape_string($this->in('Username: '));\n\n\t\t$id = $this->Administrator->find('first', array(\n\t\t\t'conditions' => array('username' => $username),\n\t\t\t'fields' => array('id')\n\t\t));\n\n\t\tif(isset($id['Administrator']['id'])) {\n\t\t\t$id = $id['Administrator']['id'];\n\n\t\t\twhile(empty($new)) {\n\t\t\t\t$new = mysql_real_escape_string($this->in('New Password: '));\n\t\t\t\tif(empty($new))\n\t\t\t\t\t$this->out('Password cannot be empty!');\n\t\t\t}\n\n\t\t\t$confirm = mysql_real_escape_string($this->in('Confirm Password: '));\n\t\t\tif($new === $confirm) {\n\t\t\t\t$hash = mysql_real_escape_string(Security::hash($new, null, Configure::read('Security.salt')));\n\t\t\t\t$query = \"UPDATE administrators SET `password`='$hash' WHERE `id`='$id'\";\n\t\t\t\t$this->Administrator->query($query);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->out(\"Administrator '$username' not found.\");\n\t\t}\n\t}", "title": "" }, { "docid": "fa7193243b9ee4c08d83a3ed829a6088", "score": "0.71190214", "text": "public function change_password(Users_Model $parent, $password)\r\n\t{\r\n\t\t$this->password = $password;\r\n\t}", "title": "" }, { "docid": "e4cf71b0e22394cb96b83e2a5802f19a", "score": "0.7118619", "text": "function passwordAction() {\n $q = $this->q;\n $_token = defaultHelper::page_hash_get('api,user,list');\n if ($q['_token'] == $_token && $q['id']) {\n _factory('sitemin_api_model_user')->setpassword($q);\n }\n die('done');\n }", "title": "" }, { "docid": "e8fed00b978a261f048d572daeb6b4d9", "score": "0.7115174", "text": "public function change_password()\n\t{\n\t\t$user_id = request()->id;\n\t\t$password = request()->password;\n\t\t$user = User::find($user_id);\n\t\t$user->password = bcrypt($password);\n\t\t$user->save();\n\t\tif (Auth::guard('restaurant')->attempt(['email' => $user->email, 'password' => $password, 'type' => 1])) {\n\t\t\t$data = auth()->guard('restaurant')->user();\n\t\t\treturn json_encode(['success' => 'true', 'data' => $data]);\n\t\t}\n\t\treturn json_encode(['success' => 'none', 'data' => '']);\n\t}", "title": "" }, { "docid": "9389d4bbd1cfe76f716d92c08a06e2a0", "score": "0.7112073", "text": "public function getNewPassword();", "title": "" }, { "docid": "71307284ce1999a21358a0ee0228d7c6", "score": "0.70964104", "text": "function sso_change_user_pass( $param ){\n\t\tglobal $sso;\n\t\t\t\n\t\t$res = $sso->ChangePassword( $param );\n\t\t//return $res;\n\t\t\n\t\tif( FALSE === $res )\t\t\n\t\t\treturn FALSE;\n\t\t\t\n\t\tif ( (bool) $res -> success ){\n\t\t\t\n\t\t\treturn TRUE;\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\treturn $res->error_text;\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7a0033a2501dd9434f3cb047e99f1e0f", "score": "0.7092548", "text": "function changePass()\n{\n\tglobal $lang, $Account;\n\t$newpass = trim($_POST['password']);\n\tif(strlen($newpass)>3)\n\t{\n\t\tif($Account->setPassword($_GET['id'], $newpass) == TRUE)\n\t\t{\n\t\t\toutput_message('success','<b>Password set successfully! Please wait while your redirected...</b>\n\t\t\t<meta http-equiv=refresh content=\"3;url=?p=admin&sub=users&id='.$_GET['id'].'\">');\n\t\t}\n\t\telse\n\t\t{\n\t\t\toutput_message('error', '<b>Change Password Failed!');\n\t\t}\n\t}\n\telse\n\t{\n\t\toutput_message('error','<b>'.$lang['change_pass_short'].'</b>\n\t\t<meta http-equiv=refresh content=\"3;url=?p=admin&sub=users&id='.$_GET['id'].'\">');\n\t}\n}", "title": "" }, { "docid": "c200cd2141af35d4a1267619e46e547e", "score": "0.70903856", "text": "public function set_password($password) {\n $encrypted_password = crypt($password, '$6$rounds=5000$' . md5(time() . rand(0, 99999)) . '$');\n\n BeeHub_DB::execute( 'UPDATE `beehub_users` SET `password`=? WHERE `user_name`=?',\n 'ss', $encrypted_password, $this->name);\n\n $this->password = $encrypted_password;\n }", "title": "" }, { "docid": "8eb4a2b9d2775c4d178c856083416475", "score": "0.7084361", "text": "public function modifyPassword()\n {\n $user = Auth::user();\n\n return view('admin.user.modify', $user);\n }", "title": "" }, { "docid": "d5054a8ba4afc5cb73f92d6e517ab21c", "score": "0.706737", "text": "function setPassword(){\n \n\t\t$this->auth->restrict();\n\t\t\n $pw = $this->input->post('passw1');\n \n\t\t$this->user->user_id = $this->session->userdata('uid');\n\t\t$this->user->password = $pw;\n\t\t$this->user->active = '1';\n\t\t$this->user->save(TRUE);\n\t\t\n redirect('/increaseintellect/home');\n }", "title": "" }, { "docid": "791fbb9da376500d1eaaa8ea73b3b2cb", "score": "0.70664036", "text": "public function setUsers_pass($password)\n {\n $this->Users_pass = Yii::$app->security->generatePasswordHash($password);\n }", "title": "" }, { "docid": "ea1d0066acc900589581750938b1c737", "score": "0.7053603", "text": "public function changePassword()\n\t{\t\t\n\t\treturn view('changePassword');\n\t}", "title": "" }, { "docid": "36fea04c02ccd24c5d7a65de19b87824", "score": "0.70442176", "text": "public function changePassword(){\n return view('dashboard.user.change_password');\n }", "title": "" }, { "docid": "dc9e5f7a4deca6aaf4e576b03d69be7d", "score": "0.70386744", "text": "public function setPassword(string $password) : void;", "title": "" }, { "docid": "da2e1b5b59bfa316af4acd5cad0198dd", "score": "0.7037153", "text": "public function setPassword($pw)\n {\n $this->passwordHash=\\yii\\helpers\\Security::generatePasswordHash($pw);\n $this->save();\n }", "title": "" }, { "docid": "91750008356c6f9e8b428ea91b3633b1", "score": "0.7023641", "text": "public function change_password()\n\t{ \n\n\t\t$data['form_name'] = \"Change Password\";\n\t\t$data['form_name1'] = \"Change Pin Password\";\n\t\t$this->load->view('common/header');\n\t\t$this->load->view('common/user_menu',$this->data);\n\t\t$this->load->view('user/view_change_password',$data);\n\t\t$this->load->view('common/footer');\n\t}", "title": "" }, { "docid": "a783cd87937fc25d7d9d2597fc74fc84", "score": "0.7023124", "text": "public function changePasswordAction()\n {\n $form = new \\Shop\\Forms\\ChangePasswordForm();\n\n if ($this->request->isPost()) {\n\n if (!$form->isValid($this->request->getPost())) {\n\n foreach ($form->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n } else {\n\n $user = $this->auth->getUser();\n\n $user->password = $this->security->hash($this->request->getPost('password'));\n $user->mustChangePassword = 'N';\n\n $passwordChange = new \\Shop\\Models\\PasswordChanges();\n $passwordChange->user = $user;\n $passwordChange->ipAddress = $this->request->getClientAddress();\n $passwordChange->userAgent = $this->request->getUserAgent();\n\n if (!$passwordChange->save()) {\n $this->flash->error($passwordChange->getMessages());\n } else {\n\n $this->flashSession->success('Пароль был успешно изменен.');\n\n $this->tag->resetInput();\n return $this->response->redirect(\"profile/index\");\n }\n\n }\n\n }\n\n $this->view->form = $form;\n $this->view->auth = $this->identity;\n $this->view->breadcrumbs = array('Общая информация' => '/profile/index', 'Сменить пароль');\n }", "title": "" }, { "docid": "e44ca456b726f03f42a997194181e391", "score": "0.7023121", "text": "public function setUserPassword ( $userId, $password ) {\n //$user = $this->getUserById($userId, true);\n $newUser = new User();\n $newUser->set('password', password_hash($password, PASSWORD_DEFAULT));\n //echo $newUser->get('password');\n $this->updateUser($userId, $newUser);\n }", "title": "" }, { "docid": "760d2b2c4191102b2ff2ef1d7e2864b6", "score": "0.7018725", "text": "public function setRandomPass()\n {\n $newPass = Strings::randomPassword(8);\n $passHash = password_hash($newPass, PASSWORD_DEFAULT);\n if (!$this->params) {\n $this->getRecord();\n }\n\n $query = 'UPDATE users SET password = \\'' . $passHash . '\\' WHERE id = ' . $this->id;\n if ($res = $this->DB->query($query)) {\n $this->uncacheRecord();\n return $newPass;\n }\n return false;\n }", "title": "" }, { "docid": "6fe95737444299225e8ecd9e61104cdb", "score": "0.69937354", "text": "public function setPassword($pass) {\n\t\tif (Validate::password($pass)) {\n\t\t\t$reset_key = Auth::getNewResetKey();\n\t\t\t$pass = Auth::hash($pass);\n\t\t\ttry {\n\t\t\t\t$pdo = DB::getHandle();\n\t\t\t\t$stmt = $pdo->prepare(\"UPDATE users SET pass = :pass, reset_key = :resetkey WHERE pid = :pid\");\n\t\t\t\t$stmt->bindParam(\":pass\", $pass);\n\t\t\t\t$stmt->bindParam(\":resetkey\", $reset_key);\n\t\t\t\t$stmt->bindParam(\":pid\", $this->pid);\n\t\t\t\t$stmt->execute();\n\t\t\t} catch (PDOException $e) {\n\t\t\t\tthrow new Exception(\"Unable to save password.\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new InvalidArgumentException(\"Invalid password supplied as argument.\");\n\t\t}\n\t}", "title": "" }, { "docid": "a4efd24cd7cde78c1ea5d2c049edf090", "score": "0.6993323", "text": "public function changePassword(NewPasswordRequest $request){\n $authenticatedUser = Auth::guard('sanctum')->user();\n // take instance from user to handle with property of password inside it\n $user = User::find($authenticatedUser->id);\n // check if new password equal old password\n if(Hash::check($request->password, $user->password)){\n return $this->returnErrorMessage('You Have Entered Your Old Password');\n }\n $user->password = Hash::make($request->password);\n $user->save(); // save new password in db\n $user->token = $request->header('Authorization');\n return $this->returnData(compact('user'),'password changed successfully');\n }", "title": "" }, { "docid": "5e8b1f9cb70d96a2a6af28d999b715f1", "score": "0.699245", "text": "public function update_pass()\n {\n }", "title": "" }, { "docid": "93a677b479497f6100a2173d9b4aa37d", "score": "0.69923186", "text": "public function changePassword($newpassword) {\n //Check for the same password must be finished prior to this (This has no checks!)\n $new_password = password_hash($newpassword, PASSWORD_DEFAULT);\n $stmt = $this->db->prepare(\"UPDATE Users SET User_Password=:password where User_Username=:username AND User_Status='active'\");\n $stmt->bindParam(':username', $_SESSION['username']);\n $stmt->bindParam(':password', $new_password);\n $stmt->execute();\n $this->savelog($_SESSION['username'], 'changed password');\n }", "title": "" }, { "docid": "a07f9bbb07558bfcbb6d29cd8074fbc9", "score": "0.6987857", "text": "public function changepassword()\n {\n //\n\t\t$user = Auth::user();\n\t\tif(empty($user->id))\n {\n return redirect('auth/login');\n }\n\t\t$footerfix = 'footerfix';\n\t\treturn view('web/changepassword',compact('user','footerfix'));\n }", "title": "" }, { "docid": "2f5443b1eb6623cc8bb3d28316822eee", "score": "0.6978649", "text": "public function update_password($password) {\n\t\tglobal $db;\n\t\t$password = $db->quote(sha1($password));\n\t\t$sql = \"UPDATE `{$db->table('users')}` SET `password` = $password, `force_pass_change` = 0 WHERE `id` = {$this->_user['id']}\";\n\t\t$db->query($sql);\n\t}", "title": "" }, { "docid": "0024d889c591715cb576f78e9c58cdf5", "score": "0.6972472", "text": "function editPassword() {\n $data = array(\n 'password' => md5($this->input->post('password'))\n );\n $user_id = $_POST['user_id'];\n\n $this->db->where('user_id', $user_id);\n $this->db->update('user', $data);\n }", "title": "" }, { "docid": "91f4cdb23d5e0e58a47e2650d5bfef1f", "score": "0.6968474", "text": "public function changePassword(Request $request){\n // Fetch current user\n $user = Auth::user();\n \n // Validate the passwords\n $this->validate(request(), [\n 'current_password' => 'required|current_password',\n 'new_password' => 'required|string|min:6|confirmed',\n ]);\n \n // Hash the new password\n $password = Hash::make(request()->input('new_password'));\n \n // Insert new password into user table based on fetched id\n DB::table('users')\n ->where('id', $user->id)\n ->update(['password' => $password]);\n \n // Redirect user back to account page for feedback\n return redirect('account')->with('success', 'Password changed!');\n }", "title": "" }, { "docid": "8fef01ee0dbec3b435af0f863f48180a", "score": "0.69656783", "text": "public function action_changepassword()\n\t{\n if (!$this->user)\n {\n Request::current()->redirect('user/login');\n\t\t\treturn;\n }\n\t\t\n\t\t$action = $this->request->action();\n\t\t$this->template->content = View::factory('user/password')\n\t\t\t->set('values', $_POST)\n ->bind('errors', $errors)\n ->bind('message', $message)\n\t\t\t->bind('action', $action);\n\t\t\t\n if (HTTP_Request::POST == $this->request->method()) \n {\n\t\t\t$password = Arr::get($_POST, 'password');\n\t\t\tif ($password == '')\n\t\t\t{\n\t\t\t\t$message = ('There were errors, please see form below.');\n\t\t\t\t$errors = array('password' => 'Password can\\'t be empty.');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (Arr::get($_POST, 'newpassword') != Arr::get($_POST, 'newpasswordconfirm'))\n\t\t\t{\n\t\t\t\t$message = ('There were errors, please see form below.');\n\t\t\t\t$errors = array('newpasswordconfirm' => 'The password fields did not match.');\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t$hash_password = $this->user->oldhash_password($password);\n\t\t\tif ($this->user->password == $hash_password)\n\t\t\t{\n\t\t\t\t$this->user->password = Arr::get($_POST, 'newpassword');\n\t\t\t\t\t\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$this->user->save(); \n\t\t\t\t \techo'<script>'.\n\t\t\t\t\t\t'alert (\"'.__('Update complete').'\"); '.\n\t\t\t\t\t\t'window.location = \"'.url::base().'user/setting/\"'.\n\t\t\t\t\t\t'</script>';\n\t\t\t\t\t\t \n\t\t\t\t} catch (ORM_Validation_Exception $e) {\n\t\t\t\t\t// Set failure message\n\t\t\t\t\t$message = 'There were errors, please see form below.';\n\t\t\t\t\t// Set errors using custom messages\n\t\t\t\t\t$errors = $e->errors('models');\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$message = 'Incorrect Password';\n\t\t\t}\n }\t\t\n\t}", "title": "" }, { "docid": "7fc7242ef6e18fa8656fea39b8f5d40d", "score": "0.6952685", "text": "function changePwdState($changeUser)\n{\n $newpassw = substr(md5(rand()),0,6);\n $hash = password_hash($newpassw, PASSWORD_DEFAULT);\n execute(\"UPDATE users SET firstconnect= :firstconnect, password = :hash WHERE id= :id\", ['firstconnect' => 1, 'id' => $changeUser, 'hash' => $hash]);\n return $newpassw;\n}", "title": "" }, { "docid": "35d8603f2d19491ce1de1da33f6dd20e", "score": "0.6952282", "text": "public function setPassword(string $newPassword): void\n {\n //hash provided password\n $this->password = $this->passwordUtility->hash($newPassword);\n }", "title": "" }, { "docid": "2462da26462b9d478568241ec47ef3ef", "score": "0.6943422", "text": "public function change() {\n\t\tif (!$this->user->loggedIn) {\n\t\t\tself::redirect_to('user#login');\n\t\t}\n\n\t\t$err = '';\n\n\t\tif (isset($_POST['submit'])) {\n\t\t\tif ($_POST['newpass'] !== $_POST['newpass2']) {\n\t\t\t\t$err = \"New passwords must match :)\";\n\t\t\t} elseif (empty($_POST['newpass'])) {\n\t\t\t\t$err = \"New password cannot be empty :)\";\n\t\t\t} elseif (!preg_match_all('$\\S*(?=\\S{8,})(?=\\S*[a-z])(?=\\S*[A-Z])(?=\\S*[\\d])\\S*$', $_POST['newpass'])) {\n\t\t\t\t$err = \"New password must contain at least 8 characters, uppercase and lowercase letters, as well as numbers :)\";\n\t\t\t} elseif (!password_verify($_POST['oldpass'], $this->user->get('password'))) {\n\t\t\t\t$err = \"Current password is not correct :(\";\n\t\t\t} else {\n\t\t\t\t$this->user->set('password', password_hash($_POST['newpass'], PASSWORD_BCRYPT));\n\t\t\t\t$this->user->update();\n\t\t\t\t$this->user->set('Password', $_POST['newpass']);\n\t\t\t\t$this->user->login();\n\t\t\t\tself::redirect_to('user#profile', array('changed'));\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t$view = new View('user#change', 'Change Password');\n\t\t$view->set('user', $this->user);\n\t\t$view->set('err', $err);\n\t\t$view->render();\n\t}", "title": "" }, { "docid": "11f4cf8290d0d2c13a18a4e18fb005fd", "score": "0.6939074", "text": "public function setPassword($user, $server, $password);", "title": "" }, { "docid": "984fb87b9c9bb31bd046dad460b5f66a", "score": "0.6936321", "text": "function actionPasswordReset( $user, $new_pass ) {\n}", "title": "" } ]
b3e4dc170d15159321caa8df0bf72616
Shows the html markup of the control.
[ { "docid": "369209f91e21a308368cf2774853a1ab", "score": "0.0", "text": "public function html( ) {\n require_once OPANDA_SR_PLUGIN_DIR. '/includes/style-manager.class.php'; \n \n $name = $this->getNameOnForm();\n $items = $this->getItemsStyle();\n $value = $this->getValue();\n\n $get_profiles = OnpSL_StyleManager::getStyles( $value[0] );\n if( !isset( $get_profiles[$value[1]] ) ) $value[1] = null;\n \n $googleFonts = array(); \n if( empty($value[1]) ) $value[1] = 'default';\n \n ?>\n <select class=\"form-control profile-dropdown\" id=\"<?php echo $name[0]; ?>\" name=\"<?php echo $name[0]; ?>\"/>\n <?php foreach($items as $item) {\n $selected = ( $item['value'] == $value[0] ) ? 'selected=\"selected\"' : '';\n ?>\n <option value=\"<?php echo $item['value'] ?>\" <?php echo $selected ?>>\n <?php echo $item['title'] ?>\n </option>\n <?php } ?>\n </select>\n <select class=\"form-control profile-dropdown\" id=\"<?php echo $name[1]; ?>\" name=\"<?php echo $name[1]; ?>\"/>\n <?php foreach($get_profiles as $key => $p_item) { \n \n $selected = '';\n if ( ( $key == $value[1] ) ) {\n $selected = 'selected=\"selected\"';\n $googleFonts = OnpSL_StyleManager::getGoogleFonts( $value[0], $key );\n }\n \n ?>\n <option value=\"<?php echo $key; ?>\" <?php echo $selected ?>>\n <?php echo $p_item['profile_title']; ?>\n </option>\n <?php } ?>\n </select> \n <button <?php if( empty($value[1]) || $value[1] === 'default' ): ?>style=\"display:none;\" <?php endif; ?>class=\"onpSL-profile-edit-button\"></button>\n <button class=\"onpSL-profile-add-button\"></button>\n <div class=\"clearfix\"></div>\n <?php\n \n if ( !empty( $googleFonts ) ) {\n ?>\n <script>\n if ( !window.bizpanda ) window.bizpanda = {};\n window.bizpanda.previewGoogleFonts = <?php echo json_encode( $googleFonts ); ?>;\n </script>\n <?php\n }\n }", "title": "" } ]
[ { "docid": "5ae11b5b5dacf8a3ad9dae0424a5a37d", "score": "0.7283608", "text": "public function getControlHtml()\n {\n if ($this->hasDataBinder()) {\n $this->callDataBinder();\n }\n $strHtml = $this->renderNav();\n $strHtml .= $this->renderPanels();\n\n if ($this->hasDataBinder()) {\n $this->removeAllItems();\n }\n\n return $strHtml;\n }", "title": "" }, { "docid": "823fe5e992fe4f839ebb5ec502b6a9b4", "score": "0.71788055", "text": "public function html() {\n\n\t\tif ( $this->has_data_delegate() ) {\n\t\t\t$this->args['options'] = $this->get_delegate_data();\n\t\t}\n\n\t\t$this->output_field();\n\n\t\t$this->output_script();\n\n\t}", "title": "" }, { "docid": "eb7a52dd15e5258c998068d3d55fbc17", "score": "0.7096114", "text": "public function render_content() {\n\n\t \techo '<br />';\n\t echo '<span class=\"customize-control-title\">' . esc_html( $this->label ) . '</span>';\n\t echo '<p class=\"description\">' . $this->description . '</p>';\n\t echo '<hr />';\n\n\t }", "title": "" }, { "docid": "0694c87098e57e41be1c536705cefa0a", "score": "0.705215", "text": "protected function showHtml()\n {\n }", "title": "" }, { "docid": "e0be237ec546633d2ad196f46513b7e2", "score": "0.7040972", "text": "public function render_content() {\r\n\t\t?>\r\n\t <span class=\"customize-control-title\">\r\n\t\t\t<?php echo esc_html($this->label); ?>\r\n\t\t</span>\r\n\r\n\t\t<?php if ($this->description) {?>\r\n\t\t\t<span class=\"description customize-control-description\">\r\n\t\t\t<?php echo wp_kses_post($this->description); ?>\r\n\t\t\t</span>\r\n\t\t<?php }\r\n\r\n\t\techo $this->create_plugin_install_button($this->slug);\r\n\t}", "title": "" }, { "docid": "83fcebb569dde21bbcad12a8953eba6c", "score": "0.70323914", "text": "protected function render_content() {\n\t\t\t?>\n\t\t\t\t<label>\n\t\t\t\t\t<span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n\n\t\t\t\t\t<?php\n\t\t\t\t\tif ( isset( $this->description ) && $this->description ) {\n\t\t\t\t\t\t?>\n\t\t\t\t\t\t<span class=\"description customize-control-description\"><?php echo esc_html( $this->description ); ?></span>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t}\n\t\t\t\t\t?>\n\n\t\t\t\t\t<input type=\"text\" <?php $this->link(); ?> value=\"<?php echo esc_attr( $this->value() ); ?>\"/>\n\t\t\t\t</label>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "c4db8ac5d796fb892c031507ae5648a5", "score": "0.6975921", "text": "public function render_content() {\n\t\t$extra_class = isset( $this->choices ) && $this->choices == 'top' ? ' zeen-control-title-top' : '';\n\t\techo '<label>';\n\n\t\t\tif ( isset( $this->label ) && '' !== $this->label ) {\n\t\t\t\techo '<span class=\"zeen-control-title' . esc_attr( $extra_class ) . '\">' . sanitize_text_field( $this->label ) . '</span>';\n\t\t\t}\n\t\t\tif ( isset( $this->description ) && '' !== $this->description ) {\n\t\t\t\techo '<span class=\"description zeen-control-description\">' . sanitize_text_field( $this->description ) . '</span>';\n\t\t\t}\n\n\t\techo '</label>';\n\t}", "title": "" }, { "docid": "29b5504978535a2c683d7922c470d14e", "score": "0.6944032", "text": "public function render_content() { ?>\n\t\t<label>\n\t\t\t<span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n\t\t\t<?php $settings = array(\n\t\t\t\t'textarea_name'\t=> $this->id,\n\t\t\t\t'media_buttons'\t=> false,\n\t\t\t\t'teeny'\t\t\t=> true,\n\t\t\t);\n\t\t\twp_editor($this->value(), $this->id, $settings ); ?>\n\t\t</label>\n\t<?php\n\t}", "title": "" }, { "docid": "beca4d36b3cbb3e1b08144547ee6832b", "score": "0.6923578", "text": "public function render_content() {\n\t\t?>\n\t\t<label>\n\t\t\t<span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n\t\t\t<textarea rows=\"<?php echo absint( $this->rows ); ?>\" <?php $this->link(); ?> style=\"width: 98%\"><?php echo esc_textarea( $this->value() ); ?></textarea>\n\t\t</label>\n\t\t<?php\n\t}", "title": "" }, { "docid": "9365a82707054c54a6d9f20dda379835", "score": "0.68640244", "text": "function show()\r\n \t{\r\n \tprint $this->getHtml();\r\n \t}", "title": "" }, { "docid": "5d7593fd24dd4153a04be95003d770bb", "score": "0.68420607", "text": "public function render_content() {\n\t\t\t?>\n\t\t\t<div class=\"tinymce-control\">\n\t\t\t\t<span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n\t\t\t\t<?php if ( ! empty( $this->description ) ) { ?>\n\t\t\t\t\t<span class=\"customize-control-description\"><?php echo esc_html( $this->description ); ?></span>\n\t\t\t\t<?php } ?>\n\t\t\t\t<textarea id=\"<?php echo esc_attr( $this->id ); ?>\" class=\"customize-control-tinymce-editor\" <?php $this->link(); ?>><?php echo esc_attr( $this->value() ); ?></textarea>\n\t\t\t</div>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "735059f4a03fc1bbc0790de8d7a6cea5", "score": "0.6766992", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '80px'])\n ->parameters($this->getShowParameters());\n }", "title": "" }, { "docid": "8df532e66c47fbfcd64d5927cdacacfc", "score": "0.676318", "text": "public function html()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "165de92ab5b84cf8983c321a5d5feaa4", "score": "0.67379636", "text": "public function render_content() {\n\tif ( empty( $this->choices ) )\n\treturn;\n\n\t$setting = $this->choices;\n\n\t?>\n\t<label>\n\t\t<div class=\"customize-control-<?php echo esc_html( $this->type ); ?> \">\n\t \t<span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n\t\t\t<label>\n\t\t\t\t<div class=\"wide-slider-range\" data-max=\"<?php echo esc_attr( $setting['max'] );?>\" data-min=\"<?php echo esc_attr( $setting['min'] );?>\" data-step=\"<?php echo esc_attr( $setting['step'] );?>\"></div>\n\t\t\t\t<input type=\"text\" class=\"wide-slider-range-input\" name=\"wide_<?php echo esc_attr( $this->type ); ?>\" value=\"<?php echo esc_attr( intval($this->value()) ); ?>\" data-id=\"<?php echo esc_attr($this->id); ?>\" />\n\t\t\t</label>\n\t\t</div>\n\t</label>\n\t<?php }", "title": "" }, { "docid": "1d33e41e324d303f81568dd8ec4abf7a", "score": "0.6661473", "text": "public function getControlHtml()\n {\n $strValue = $this->getDefaultValue();\n return '<input type=\"hidden\" id=\"' . $this->get('id') . '\" value=\"' . $strValue . '\">';\n }", "title": "" }, { "docid": "3c56058c40a76a4281e20abf756a8f9b", "score": "0.66412336", "text": "public function html() {\n\t\t?>\n\n\t\t<input <?php $this->id_attr(); ?> <?php $this->boolean_attr(); ?> <?php $this->class_attr(); ?> type=\"checkbox\" <?php $this->name_attr(); ?> value=\"1\" <?php checked( $this->get_value() ); ?> />\n\t\t<label <?php $this->for_attr(); ?>><?php echo esc_html( $this->title ); ?></label>\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "f8f67d16e7fcfac9d10ea55575d8c4cd", "score": "0.6636486", "text": "public function render_content() { ?>\n <label>\n <span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n <?php\n $settings = array(\n 'media_buttons' => false,\n 'quicktags' => false\n );\n $this->filter_editor_setting_link();\n wp_editor($this->value(), $this->id, $settings );\n ?>\n </label>\n <?php\n do_action('admin_footer');\n do_action('admin_print_footer_scripts');\n }", "title": "" }, { "docid": "1225ea6f9b516e984d2f9df50c7d1802", "score": "0.6632291", "text": "public function get_control_render();", "title": "" }, { "docid": "12eb6d9360e3e07d59459526ff503aee", "score": "0.6626983", "text": "function html() {\n\t\t\n\t\t// load view\n\t\tacf_get_view($this->view, $this->data);\n\t\t\n\t}", "title": "" }, { "docid": "66f50b042e3bbf2e753d6ffd226ad945", "score": "0.6626736", "text": "public function display() {\n\t\t?>\n\n\t\t<div class=\"field-item\" data-class=\"<?php echo esc_attr( get_class( $this ) ); ?>\" style=\"display: none; <?php echo esc_attr( $this->args['style'] ); ?>\">\n\n\t\t\t<?php $this->html(); ?>\n\n\t\t</div>\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "81d7af69f33abd679e257bcd6ff4a0f8", "score": "0.660404", "text": "public function show()\n {\n // add content to the tag\n $this->tag->add($this->value);\n \n \n // show the tag\n $this->tag->show();\n }", "title": "" }, { "docid": "10be75aaa8ef45f2a700f71b6437b1e6", "score": "0.6597512", "text": "public function html() {\n\t\t?>\n\n\t\t<input type=\"hidden\" <?php $this->id_attr(); ?> <?php $this->boolean_attr(); ?> <?php $this->class_attr(); ?> <?php $this->name_attr(); ?> value=\"<?php echo esc_attr( $this->get_value() ); ?>\" />\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "b4fc41b837c669b19230e0a2ead1e4ec", "score": "0.65950036", "text": "public function as_html()\n {\n return $this->render();\n }", "title": "" }, { "docid": "73bed69747563d227941b2551d7f6989", "score": "0.6562733", "text": "public function RenderControl () {\n\t\tif ($this->minCount !== NULL) \n\t\t\t$this->SetControlAttr('data-min-count', $this->minCount);\n\t\tif ($this->maxCount !== NULL) \n\t\t\t$this->SetControlAttr('data-max-count', $this->maxCount);\n\t\tif ($this->minSize !== NULL) \n\t\t\t$this->SetControlAttr('data-min-size', $this->minSize);\n\t\tif ($this->maxSize !== NULL) \n\t\t\t$this->SetControlAttr('data-max-size', $this->maxSize);\n\t\t$attrsStrItems = [\n\t\t\t$this->RenderControlAttrsWithFieldVars([\n\t\t\t\t'accept',\n\t\t\t\t'capture',\n\t\t\t])\n\t\t];\n\t\tif ($this->multiple)\n\t\t\t$attrsStrItems[] = 'multiple=\"multiple\"';\n\t\tif (!$this->form->GetFormTagRenderingStatus())\n\t\t\t$attrsStrItems[] = 'form=\"' . $this->form->GetId() . '\"';\n\t\t$formViewClass = $this->form->GetViewClass();\n\t\t/** @var \\stdClass $templates */\n\t\t$templates = static::$templates;\n\t\t$result = $formViewClass::Format($templates->control, [\n\t\t\t'id'\t\t=> $this->id,\n\t\t\t'name'\t\t=> $this->name . ($this->multiple ? '[]' : ''),\n\t\t\t'type'\t\t=> $this->type,\n\t\t\t'value'\t\t=> '',\n\t\t\t'attrs'\t\t=> count($attrsStrItems) > 0 ? ' ' . implode(' ', $attrsStrItems) : '',\n\t\t]);\n\t\treturn $this->renderControlWrapper($result);\n\t}", "title": "" }, { "docid": "0b6bee716dfa6421e1b4ed40b6b752c7", "score": "0.6542344", "text": "public function render()\n {\n\n $iconEdit = $this->icon('control/edit.png', 'Edit');\n\n $this->setUp();\n\n $html = '';\n\n $html .= '<button class=\"wgt-button\" >'.$iconEdit.'</button>';\n $html .= '<button class=\"wgt-button\" >'.$iconEdit.'</button>';\n $html .= '<button class=\"wgt-button\" >'.$iconEdit.'</button>';\n $html .= '<button class=\"wgt-button\" >'.$iconEdit.'</button>';\n $html .= '<button class=\"wgt-button\" >'.$iconEdit.'</button>';\n\n return $html;\n\n }", "title": "" }, { "docid": "b16cfa976de3cdaedce297a229f7de33", "score": "0.65401447", "text": "protected function render() {\n\t\t$id = 'customize-control-' . str_replace( array( '[', ']' ), array( '-', '' ), $this->id );\n\t\t$class = 'customize-control has-switchers customize-control-' . $this->type;\n\t\t?><li id=\"<?php echo esc_attr( $id ); ?>\" class=\"<?php echo esc_attr( $class ); ?>\">\n\t\t<?php $this->render_content(); ?>\n\t\t</li>\n\t\t<?php\n\t}", "title": "" }, { "docid": "e3d52b9c9627980e785fe9c29b043930", "score": "0.6513845", "text": "public function render_content() {\n ?>\n <label>\n <span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n <input type=\"text\" value=\"<?php echo esc_attr( $this->value() ); ?>\" <?php $this->link(); ?> />\n </label>\n <?php\n // The input's value gets set by JS. Don't fill it.\n ?>\n <label>\n <span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n <div class=\"customize-control-content\">\n <form><input type=\"text\" <?= $default_attr ?> value=\"<?= $this_default ?>\" /></form>\n\n <div class=\"colorpicker\"></div>\n </div>\n </label>\n <?php\n }", "title": "" }, { "docid": "8236fdbea6f1247cf651852a96a0a798", "score": "0.6512682", "text": "public function render_content() {\n\t\tswitch ( $this->type ) {\n\t\t\tdefault:\n\t\t\tcase 'text' :\n\t\t\t\techo '<p class=\"description\">' . stag_allowed_tags( $this->description ) . '</p>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'heading':\n\t\t\t\techo '<span class=\"customize-control-title\">' . stag_allowed_tags( $this->label ) . '</span>';\n\t\t\t\tbreak;\n\n\t\t\tcase 'line' :\n\t\t\t\techo '<hr />';\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "6c8731cc6db9cb44b6ceac870412fce4", "score": "0.6508346", "text": "public function render_content() {\n?>\n\t <label>\n\t <span class=\"customize-control-title\"><?php echo esc_html($this->label); ?></span>\n<?php\n\t $settings = array('media_buttons' => true, 'drag_drop_upload' => true);\n\t $this->filter_editor_setting_link();\n\t wp_editor($this->value(), $this->id, $settings);\n?>\n\t </label>\n<?php\n do_action('admin_footer');\n do_action('admin_print_footer_scripts');\n }", "title": "" }, { "docid": "7846436efbaf3a8ca4ae89ae5e7255ed", "score": "0.6500659", "text": "function display_view()\n {\n // iterate over all widgets so that they can add their piece to the form\n foreach ($this->widgets as $name => $widget) {\n echo '<div class=\"title\" style=\"font-weight: bold;\">' . $this->_translate($this->_schema->fields[$name]['title']) . \"</div>\\n\";\n echo '<div class=\"value\" style=\"margin-left: 5em;\">';\n echo $widget->render_content();\n echo \"</div>\\n\";\n }\n }", "title": "" }, { "docid": "d6a35a6012c94a9bf843b042f850675d", "score": "0.6484038", "text": "public function render() {\n\t\techo $this->toHtml();\n\t}", "title": "" }, { "docid": "a1fea70a262583f8b3bec7ffd09ed8ae", "score": "0.6474924", "text": "public function html() {\n\t}", "title": "" }, { "docid": "e48af871b1694f03d9af87b7a9036801", "score": "0.64672816", "text": "public function markup() {\n\n\t\t// Prepare markup.\n\t\t$html = $this->get_description();\n\n\t\t$html .= sprintf(\n\t\t\t'<span class=\"%s\">%s %s %s</span>',\n\t\t\tesc_attr( $this->get_container_classes() ),\n\t\t\tisset( $this->inputs['text'] ) ? $this->inputs['text']->markup() : '',\n\t\t\tisset( $this->inputs['select'] ) ? $this->inputs['select']->markup() : '',\n\t\t\t$this->get_error_icon()\n\t\t);\n\n\t\treturn $html;\n\n\t}", "title": "" }, { "docid": "f2f2bed735cb696ba60b9a22b2ab190b", "score": "0.64621615", "text": "public function getHTML()\n\t{\n\t\treturn '<div class=\"field\">'.$this->getLabelHTML().$this->getInputHTML().'</div>';\n\t}", "title": "" }, { "docid": "98dfc0150114a0b4cc4611d3e5a98dab", "score": "0.6454326", "text": "public function render_content() {\n\tif ( empty( $this->choices ) ) {\n\t\treturn;\n\t}\n\t$this_val = $this->value(); ?>\n\t\t<label>\n\t\t\t<span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n\t\t\t<?php if ( '' != $this->description ) { ?>\n\t\t\t\t<span class=\"description customize-control-description\"><?php echo $this->description; ?></span>\n\t\t\t<?php } ?>\n\t\t\t<select <?php $this->link(); ?> multiple=\"multiple\" style=\"height:120px;\">\n\t\t\t\t<?php foreach ( $this->choices as $value => $label ) {\n\t\t\t\t\t$selected = ( in_array( $value, $this_val ) ) ? selected( 1, 1, false ) : '';\n\t\t\t\t\techo '<option value=\"' . esc_attr( $value ) . '\"' . $selected . '>' . $label . '</option>';\n\t\t\t\t} ?>\n\t\t\t</select>\n\t\t</label>\n\t<?php }", "title": "" }, { "docid": "69eac922dc95d94bd4f5673706941c4c", "score": "0.6450294", "text": "protected function output() {\n\t\t\techo $this->before();\n\t\t\t$label = ( false !== $this->has( 'label' ) ) ? $this->data( 'label' ) : $this->value();\n\t\t\techo '<button ' . $this->attributes() . ' >' . $label . '</button>';\n\t\t\techo $this->after();\n\t\t}", "title": "" }, { "docid": "256d72e0942dd6d0a561dbdaffb3afcf", "score": "0.6448507", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '150px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "b6feb56bd829e70e8048ed225e1b8308", "score": "0.6439597", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "b6feb56bd829e70e8048ed225e1b8308", "score": "0.6439597", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "b6feb56bd829e70e8048ed225e1b8308", "score": "0.6439597", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "b6feb56bd829e70e8048ed225e1b8308", "score": "0.6439597", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "b6feb56bd829e70e8048ed225e1b8308", "score": "0.6439597", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "b6feb56bd829e70e8048ed225e1b8308", "score": "0.6439597", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "ec45c7bccc2f780df6106647c3dbd036", "score": "0.6438741", "text": "public function getHtml(){\r\n echo $this->contentHtml;\r\n }", "title": "" }, { "docid": "98a3a3b98ccdc17b96ac72b7eb333434", "score": "0.64376587", "text": "public function renderControls()\r\n {\r\n $href = \"#{$this->options['id']}\";\r\n \r\n $class = isset( $this->controlOptions[ 'class' ]) ? ' ' . $this->controlOptions[ 'class' ] : '';\r\n \r\n // Left control\r\n $symbol = isset( $this->controlOptions[ 'leftArrow' ]) ? $this->controlOptions[ 'leftArrow' ] : 'angle-left';\r\n \r\n $html = $this->renderButton( $href, \"left{$class}\", $symbol, 'prev', 'Previous' );\r\n \r\n // Right control\r\n $symbol = isset( $this->controlOptions[ 'rightArrow' ]) ? $this->controlOptions[ 'rightArrow' ] : 'angle-right';\r\n \r\n $html .= $this->renderButton( $href, \"right{$class}\", $symbol, 'next', 'Next' );\r\n \r\n return $html;\r\n }", "title": "" }, { "docid": "e456bb40a2f1a5a6fd5cfb60f93d753e", "score": "0.6431727", "text": "function paint()\n {\n echo $this->toHTML();\n }", "title": "" }, { "docid": "d9eb51b86d3cd6fa24b58908eeab02d3", "score": "0.6431401", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '80px','printable' => false])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "25a7776fc46f16b2b95b29058c7e254a", "score": "0.6430125", "text": "public function render()\n {\n return '<div class=\"widget\">' . $this->_content . '</div>';\n }", "title": "" }, { "docid": "7f984d827d5979b19c033a255bbd37ea", "score": "0.64253515", "text": "public function render_content() {\n\n\t\tswitch ( $this->type ) {\n\n\t\t\tcase 'content' :\n\n\t\t\t\tif ( ! empty( $this->label ) ) : ?>\n\t\t\t\t\t<span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n\t\t\t\t<?php endif;\n\n\t\t\t\tif ( ! empty( $this->description ) ) : ?>\n\t\t\t\t\t<span class=\"description customize-control-description\"><?php echo wp_kses_post( $this->description ); ?></span>\n\t\t\t\t<?php endif;\n\n\t\t\t\tif ( ! empty( $this->sublabel ) ) : ?>\n\t\t\t\t\t<span class=\"description customize-control-sublabel\"><?php echo wp_kses_post( $this->sublabel ); ?></span>\n\t\t\t\t<?php endif;\n\n\t\t\t\tif ( ! empty( $this->content ) ) : ?>\n\t\t\t\t\t<span class=\"hoot-customize-control-content-text\"><?php echo wp_kses_post( $this->content ); ?></span>\n\t\t\t\t<?php endif;\n\n\t\t\t\tbreak;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "0d9c6c2b25337360032de3543b909c57", "score": "0.64161086", "text": "public function render_content() {\n\t\t?>\n\t\t<label class=\"customize-toogle-label\">\n\t\t\t<div style=\"display:flex;flex-direction: row;justify-content: flex-start;\">\n\t\t\t\t<span class=\"customize-control-title\" style=\"flex: 2 0 0; vertical-align: middle;\"><?php echo esc_html( $this->label ); ?></span>\n\t\t\t\t<input id=\"cb<?php echo esc_attr($this->instance_number); ?>\" type=\"checkbox\" class=\"tgl tgl-<?php echo $this->type; ?>\" value=\"<?php echo esc_attr( $this->value() ); ?>\"\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\tesc_attr($this->link());\n\t\t\t\t\t\t\t\t\t\tchecked( $this->value() );\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t />\n\t\t\t\t <label for=\"cb<?php echo esc_attr($this->instance_number); ?>\" class=\" tgl-btn\"></label>\n\t\t\t</div>\n\t\t\t<?php if ( ! empty( $this->description ) ) : ?>\n\t\t\t<span class=\"description customize-control-description\"><?php echo wp_kses_post($this->description); ?></span>\n\t\t\t<?php endif; ?>\n\t\t</label>\n\t\t<?php\n\t}", "title": "" }, { "docid": "15693bb2d78751d7bb1f15f9e2e220b2", "score": "0.64112025", "text": "public function html() {\n }", "title": "" }, { "docid": "d1d9fc51dc1f8fa7af4aba9a7bb62725", "score": "0.640452", "text": "public function getControlHtml()\n {\n if ( $this->get('id') == 'days' && $this->get('cssclass') == 'bike-rentals' ) {\n $this->_arrProperties['value'] = \"1\";\n }\n $this->set( 'width', '50px' );\n return parent::getControlHtml();\n }", "title": "" }, { "docid": "859ee52fa657050943cc43f86658a3da", "score": "0.64011985", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '110px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "b58e83face0f3f3ef76ca07d3be8cb37", "score": "0.6398643", "text": "public function render_control_templates()\n {\n }", "title": "" }, { "docid": "10074dbf7e43a363c41ece42b192c02b", "score": "0.6381942", "text": "public function html()\n\t{\n\t\treturn $this->form->html();\n\t}", "title": "" }, { "docid": "4d275e0e0a20f64393eb9fbc255993eb", "score": "0.6371213", "text": "public function render()\n {\n \treturn $this->buildMarkup();\n }", "title": "" }, { "docid": "4760fb4a006ea174d2ebf84d67fd4bcb", "score": "0.63656455", "text": "public function render_content()\n {\n if(!empty($this->fonts))\n {\n ?>\n <label>\n <span class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></span>\n <select <?php $this->link(); ?>>\n <?php\n foreach ( $this->fonts as $k => $v )\n {\n printf('<option value=\"%s\" %s>%s</option>', $v->family, selected($this->value(), $v->family, false), $v->family);\n }\n ?>\n </select>\n </label>\n <?php\n }\n }", "title": "" }, { "docid": "296346de2c5170adbc72fb36bb2862ea", "score": "0.63642967", "text": "public function render()\n\t{\n\n\t\t$tags\t=\tarray(\n\n\t\t\t\"{{case_key}}\"\t\t\t\t=>\t$this->case_key,\n\t\t\t\"{{code}}\"\t\t\t\t\t=>\t$this->policy_code,\n\t\t\t\"{{company_id}}\"\t\t\t=>\t$this->company_id,\n\t\t\t\"{{text_string}}\"\t\t\t=>\t$this->text_string,\n\t\t\t\"{{logo}}\"\t\t\t\t\t=>\t$this->logo,\n\t\t\t\"{{accept}}\"\t\t\t\t=>\t$this->accept,\n\n\n\t\t);\n\n\t\t$this->appendTags($tags);\n\n\t\t# ultimately show the page\n\t\tparent::render();\n\n\n\t}", "title": "" }, { "docid": "c30522ee606a4f555d5db86a8e5af9aa", "score": "0.63624847", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['printable' => false,])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "24287014a7c9956add18ad41858abc29", "score": "0.6355446", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction([\n 'title' => trans('labels.general.actions'),\n 'width' => '80px',\n 'printable' => false,\n 'exportable' => false,\n ])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "6d8d6cfa8c813b7ce238a589474252bc", "score": "0.63524646", "text": "public function html(): string {\n\t\t$classNames = $this->classNames();\n\t\t$this->addClassName(\"hidden_widget\");\n\t\t$ret = \"<input type=\\\"hidden\\\" \" . $this->emitAttributes() . \" />\";\n\t\t$this->setClassNames($classNames);\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "b85be02e80f940d72935b672130aa384", "score": "0.63136756", "text": "public function toHtml() {\n\t\t\n// \t\tif ($this->label->getFor() === null) {\n// \t\t\t$id = $this->input->getId();\n// \t\t\tif ($id === null) {\n// \t\t\t\t$id = \"mouf_html_widgets_\".$this->input->getType().\"field_\".self::$LASTID;\n// \t\t\t\t$this->jqueryFileUploadWidget->setI\n// \t\t\t\t$this->label->setFor($id);\n// \t\t\t\tself::$LASTID++;\n// \t\t\t}\n// \t\t\telse {\n// \t\t\t\t$this->label->setFor($this->input->getId());\n// \t\t\t}\n// \t\t}\n\t\t\n\t\t$this->toHtmlParent();\n\t}", "title": "" }, { "docid": "9e98b103b51ec74b57b38f2e8d247ca5", "score": "0.6313448", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n ->addAction(['width' => '130px']);\n\n }", "title": "" }, { "docid": "0521fe525d16223f70f1f889f7d06252", "score": "0.6299613", "text": "public function render_content() {\n\t\t\t$input_id = '_customize-input-' . $this->id;\n\t\t\t$description_id = '_customize-description-' . $this->id;\n\t\t\t$describedby_attr = ( ! empty( $this->description ) ) ? ' aria-describedby=\"' . esc_attr( $description_id ) . '\" ' : '';\n\t\t\t?>\n\n\t\t\t<?php if ( ! empty( $this->label ) ) : ?>\n\t\t\t\t<label for=\"<?php echo esc_attr( $input_id ); ?>\" class=\"customize-control-title\"><?php echo esc_html( $this->label ); ?></label>\n\t\t\t<?php endif; ?>\n\t\t\t<?php if ( ! empty( $this->description ) ) : ?>\n\t\t\t\t<span id=\"<?php echo esc_attr( $description_id ); ?>\" class=\"description customize-control-description\"><?php echo esc_html( $this->description ); ?></span>\n\t\t\t<?php endif; ?>\n\n\t\t\t<?php\n\t\t\t$dropdown_name = '_customize-dropdown-pages-' . $this->id;\n\t\t\t$show_option_none = __( '&mdash; Select &mdash;' );\n\t\t\t$option_none_value = '0';\n\t\t\t$dropdown = wp_dropdown_pages(\n\t\t\t\tarray(\n\t\t\t\t\t'name' => esc_attr( $dropdown_name ),\n\t\t\t\t\t'echo' => 0,\n\t\t\t\t\t'show_option_none' => esc_html( $show_option_none ),\n\t\t\t\t\t'option_none_value' => esc_attr( $option_none_value ),\n\t\t\t\t\t'selected' => esc_attr( $this->value() ),\n\t\t\t\t\t'post_status' => 'private',\n\t\t\t\t)\n\t\t\t);\n\n\t\t\tif ( empty( $dropdown ) ) {\n\t\t\t\t$dropdown = sprintf( '<select id=\"%1$s\" name=\"%1$s\">', esc_attr( $dropdown_name ) );\n\t\t\t\t$dropdown .= sprintf( '<option value=\"%1$s\">%2$s</option>', esc_attr( $option_none_value ), esc_html( $show_option_none ) );\n\t\t\t\t$dropdown .= '</select>';\n\t\t\t}\n\n\t\t\t// Hackily add in the data link parameter.\n\t\t\techo str_replace( '<select', '<select ' . $this->get_link() . ' id=\"' . esc_attr( $input_id ) . '\" ' . $describedby_attr, $dropdown ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped\n\t\t\t?>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "f73c6a6d947b57bdfce5102fd9b17017", "score": "0.629492", "text": "public function _echo() {\n echo $this->html;\n }", "title": "" }, { "docid": "8c509650abe79a07a39e94aa217e946e", "score": "0.62807804", "text": "public function EchoHtml()\n {\n if (($this->m_aData[self::PROPERTY_SUPPRESS_TOOLTIP]) || !($this->m_aData[self::PROPERTY_HAS_TOOLTIP]))\n echo htmlspecialchars( $this->m_sResult );\n else\n {\n $sHelpID = \"hlp\" . $this->m_aData[self::PROPERTY_ID];\n \n echo '<a id=\"', $sHelpID , '\" name=\"', $sHelpID , '\" class=\"', $this->m_aData[self::PROPERTY_TOOLTIP_CSS_CLASS] , '\" href=\"#', $sHelpID , '\" >' , htmlspecialchars( $this->m_sResult ) , '<span>' ,\n $this->m_sToolTipPackageSizeLine , $this->m_sToolTipQuantityIntervalLine, $this->m_sToolTipAvailableItems , '</span></a>';\n }\n }", "title": "" }, { "docid": "a395e4348e5d666e5cb507dca1b0032a", "score": "0.62774235", "text": "public function html() {\n\n\t\tif ( $this->has_data_delegate() ) {\n\t\t\t$this->args['options'] = $this->get_delegate_data();\n\t\t} ?>\n\n\t\t<?php foreach ( $this->args['options'] as $key => $value ) : ?>\n\n\t\t\t<input <?php $this->id_attr( 'item-' . $key ); ?> <?php $this->boolean_attr(); ?> <?php $this->class_attr(); ?> type=\"radio\" <?php $this->name_attr(); ?> value=\"<?php echo esc_attr( $key ); ?>\" <?php checked( $key, $this->get_value() ); ?> />\n\t\t\t<label <?php $this->for_attr( 'item-' . $key ); ?> style=\"margin-right: 20px;\">\n\t\t\t\t<?php echo esc_html( $value ); ?>\n\t\t\t</label>\n\n\t\t<?php endforeach; ?>\n\n\t\t<?php\n\t}", "title": "" }, { "docid": "a84fdc618a0e8855ea6083df1649b596", "score": "0.627461", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "a84fdc618a0e8855ea6083df1649b596", "score": "0.627461", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "a84fdc618a0e8855ea6083df1649b596", "score": "0.627461", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "8ad0e564ab8b3b5d548fe5172e42f206", "score": "0.62737703", "text": "public function getHtml(){\n\t\trequire_once(DIR_WIDGET.'module/views/module.php');\n\t\t$oView = new widgetModuleView($this->wname);\n\t\t//return the code\n\t\treturn $oView->getView($this->data);\t\n\t\t}", "title": "" }, { "docid": "12806110aea2ee9e92f9c234a251a822", "score": "0.62726533", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->ajax('')\n// ->addAction(['width' => '75px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "75b4f027898752d28d91b0dc44f9ee41", "score": "0.6270114", "text": "public function render()\n {\n print '<div class=\"wrap\">';\n print \"<h2>{$this->_title}</h2>\";\n print '<form action=\"' . admin_url('options.php') . '\" method=\"POST\">';\n settings_fields($this->_key);\n do_settings_sections($this->_key);\n submit_button();\n print '</form>';\n print '</div>';\n }", "title": "" }, { "docid": "d2d96346a55a598df9e4deb6d4cf30ca", "score": "0.6267958", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '8%']);\n //->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "62b86c68ed42ec09408513f16f36caba", "score": "0.6254723", "text": "protected function html() {\n\t\treturn $this->html_placeholder();\n\t}", "title": "" }, { "docid": "bb2dc04a9c6008675f0b655f22d4f091", "score": "0.62538624", "text": "public function render_content() {\n\t\t\tif ( empty( $this->choices ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$name = '_customize-radio-' . $this->id;\n\t\t\t?>\n\t\t\t<span class=\"customize-control-title\">\n\t\t\t\t<?php echo esc_attr( $this->label ); ?>\n\t\t\t\t<?php if ( ! empty( $this->description ) ) : ?>\n\t\t\t\t\t<span class=\"description customize-control-description\"><?php echo esc_html( $this->description ); ?></span>\n\t\t\t\t<?php endif; ?>\n\t\t\t</span>\n\t\t\t<div id=\"input_<?php echo $this->id; ?>\" class=\"image\">\n\t\t\t\t<?php foreach ( $this->choices as $value => $label ) : ?>\n\t\t\t\t\t<input class=\"image-select\" type=\"radio\" value=\"<?php echo esc_attr( $value ); ?>\" id=\"<?php echo $this->id . $value; ?>\" name=\"<?php echo esc_attr( $name ); ?>\" <?php $this->link(); checked( $this->value(), $value ); ?>>\n\t\t\t\t\t\t<label for=\"<?php echo $this->id . $value; ?>\">\n\t\t\t\t\t\t\t<img src=\"<?php echo esc_html( $label ); ?>\" alt=\"<?php echo esc_attr( $value ); ?>\" title=\"<?php echo esc_attr( $value ); ?>\">\n\t\t\t\t\t\t</label>\n\t\t\t\t\t</input>\n\t\t\t\t<?php endforeach; ?>\n\t\t\t</div>\n\t\t\t<script>jQuery(document).ready(function($) { $( '[id=\"input_<?php echo $this->id; ?>\"]' ).buttonset(); });</script>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "03c033311cf1e8aa1771e617d3832d94", "score": "0.6237743", "text": "public function render_content() {\n\t\t\t?>\n\t\t\t<label>\n\t\t\t\t<span class=\"customize-control-title\">\n\t\t\t\t\t<?php echo esc_attr( $this->label ); ?>\n\t\t\t\t\t<?php if ( ! empty( $this->description ) ) : ?>\n\t\t\t\t\t\t<i class=\"dashicons dashicons-editor-help\" style=\"vertical-align: text-bottom; position: relative;\">\n\t\t\t\t\t\t\t<span class=\"mte-tooltip\"><?php echo wp_kses_post( $this->description ); ?></span>\n\t\t\t\t\t\t</i>\n\t\t\t\t\t<?php endif; ?>\n\t\t\t\t</span>\n\t\t\t\t<input disabled type=\"hidden\" id=\"selectors_<?php echo $this->id ?>\" value=\"<?php echo $this->set_selectors(); ?>\"/>\n\t\t\t\t<input disabled type=\"hidden\" class=\"epsilon-typography-input\" id=\"hidden_input_<?php echo $this->id; ?>\" value=\"<?php echo esc_attr( $this->value() ); ?>\" <?php $this->link(); ?>/>\n\t\t\t</label>\n\n\t\t\t<?php\n\t\t\t$inputs = $this->get_values( $this->id );\n\t\t\t$fonts = $this->google_fonts();\n\t\t\t?>\n\n\t\t\t<div class=\"epsilon-typography-container\" data-unique-id=\"<?php echo $this->id ?>\">\n\t\t\t\t<?php if ( in_array( 'font-family', $this->choices ) ) : ?>\n\t\t\t\t\t<div class=\"epsilon-typography-font-family\">\n\t\t\t\t\t\t<label for=\"<?php echo $this->id; ?>-font-family\"><?php echo __( 'Font Family', 'epsilon-framework' ); ?></label>\n\t\t\t\t\t\t<select id=\"<?php echo $this->id; ?>-font-family\" class=\"epsilon-typography-input\">\n\t\t\t\t\t\t\t<option value=\"default_font\"><?php echo __( 'Theme default', 'epsilon-framework' ); ?></option>\n\t\t\t\t\t\t\t<?php foreach ( $fonts as $font => $properties ) { ?>\n\t\t\t\t\t\t\t\t<option <?php echo $inputs['font-family'] === $properties->family ? 'selected' : ''; ?>\n\t\t\t\t\t\t\t\t\tvalue=\"<?php echo $properties->family ?>\"><?php echo $properties->family ?></option>\n\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php if ( in_array( 'font-weight', $this->choices ) ) : ?><?php\n\t\t\t\t\t$defaults = array( 'Select font', 'Theme default', 'initial' );\n\t\t\t\t\t?>\n\t\t\t\t\t<div class=\"epsilon-typography-font-weight\">\n\t\t\t\t\t\t<label for=\"<?php echo $this->id; ?>-font-weight\"><?php echo __( 'Font Weight', 'epsilon-framework' ); ?></label>\n\t\t\t\t\t\t<select id=\"<?php echo $this->id; ?>-font-weight\" class=\"epsilon-typography-input\">\n\t\t\t\t\t\t\t<option value=\"initial\"><?php echo __( 'Theme default', 'epsilon-framework' ); ?></option>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\tif ( ! in_array( $inputs['font-family'], $defaults ) ) {\n\t\t\t\t\t\t\t\tforeach ( $fonts->{$inputs['font-family']}->variants as $variant ) { ?>\n\t\t\t\t\t\t\t\t\t<option value=\"<?php echo esc_attr( $variant ) ?>\" <?php echo $inputs['font-weight'] === $variant ? 'selected' : '' ?>><?php echo esc_html( $variant ) ?></option>\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</select>\n\t\t\t\t\t</div>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php if ( in_array( 'font-style', $this->choices ) ) : ?>\n\t\t\t\t\t<div class=\"epsilon-typography-font-style\">\n\t\t\t\t\t\t<label for=\"<?php echo $this->id; ?>-font-style\"><?php echo __( 'Font Style', 'epsilon-framework' ); ?></label>\n\t\t\t\t\t\t<select id=\"<?php echo $this->id; ?>-font-style\" class=\"epsilon-typography-input\">\n\t\t\t\t\t\t\t<option value=\"initial\"><?php echo __( 'Theme default', 'epsilon-framework' ); ?></option>\n\t\t\t\t\t\t\t<option <?php echo 'normal' === $inputs['font-style'] ? 'selected' : ''; ?>\n\t\t\t\t\t\t\t\tvalue=\"normal\"><?php echo __( 'Normal', 'epsilon-framework' ); ?>\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t\t<option <?php echo 'italic' === $inputs['font-style'] ? 'selected' : ''; ?>\n\t\t\t\t\t\t\t\tvalue=\"italic\"><?php echo __( 'Italic', 'epsilon-framework' ); ?>\n\t\t\t\t\t\t\t</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php if ( in_array( 'font-size', $this->choices ) ) : ?>\n\t\t\t\t\t<div class=\"epsilon-typography-font-size epsilon-number-field\">\n\t\t\t\t\t\t<label for=\"<?php echo $this->id; ?>-font-size\"><?php echo __( 'Font Size', 'epsilon-framework' ); ?></label>\n\t\t\t\t\t\t<input class=\"epsilon-typography-input\" id=\"<?php echo $this->id; ?>-font-size\" value=\"<?php echo $inputs['font-size'] ?>\" type=\"number\" min=\"0\" step=\"any\"/>\n\t\t\t\t\t\t<span class=\"unit <?php echo (int) $inputs['font-size'] > 99 ? 'go-right' : '' ?>\">px</span>\n\t\t\t\t\t</div>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<?php if ( in_array( 'line-height', $this->choices ) ) : ?>\n\t\t\t\t\t<div class=\"epsilon-typography-line-height epsilon-number-field\">\n\t\t\t\t\t\t<label for=\"<?php echo $this->id; ?>-line-height\"><?php echo __( 'Line Height', 'epsilon-framework' ); ?></label>\n\t\t\t\t\t\t<input class=\"epsilon-typography-input\" id=\"<?php echo $this->id; ?>-line-height\" value=\"<?php echo $inputs['line-height'] ?>\" type=\"number\" min=\"0\" step=\"any\"/>\n\t\t\t\t\t\t<span class=\"unit <?php echo (int) $inputs['line-height'] > 99 ? 'go-right' : '' ?>\">px</span>\n\t\t\t\t\t</div>\n\t\t\t\t<?php endif; ?>\n\t\t\t\t<a href=\"#\" class=\"epsilon-typography-default\"><?php echo __( 'Reset to default', 'epsilon-framework' ) ?></a>\n\t\t\t</div>\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "2bf16a4fc1b90462b802987c96fbf4d3", "score": "0.62303823", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '180px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "5e0b9fcc18c0fa8b97486c74b74f5782", "score": "0.622959", "text": "public function render_content() {\n\t\t\t\tif ( $this->label ) {\n\t\t\t\t\techo '<h2 class=\"admin-custom-h2\">' . wp_kses_post( $this->label ) . '</h2>';\n\t\t\t\t}\n\t\t\t\tif ( $this->custom_title_sub ) {\n\t\t\t\t\techo '<h3 class=\"admin-custom-h3\">' . wp_kses_post( $this->custom_title_sub ) . '</h3>';\n\t\t\t\t}\n\t\t\t\tif ( $this->custom_html ) {\n\t\t\t\t\techo '<div>' . wp_kses_post( $this->custom_html ) . '</div>';\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "d75a1bf81e110c2cbfdf8ac0e51dfae5", "score": "0.6227691", "text": "public function render() {\n echo $this->build();\n }", "title": "" }, { "docid": "440bbc2fee3093f50945b541f4096b4d", "score": "0.620981", "text": "public function output_widget_control_templates()\n {\n }", "title": "" }, { "docid": "b5a745a1ef8f1a60c9a3fc72c3842e38", "score": "0.62044483", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n ->addAction(['width' => '100px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "9dc2e62feccbf496cf6814c855aff068", "score": "0.62005895", "text": "public function render_content() {\n\t\t\t\tif ( $this->label ) {\n\t\t\t\t\t// echo '<h2 class=\"admin-custom-h2\">' . wp_kses_post( $this->label ) . '</h2>';\n\t\t\t\t\techo '<h2 class=\"admin-custom-h2\">' . wp_kses_post( $this->label ) . '</h2>';\n\t\t\t\t}\n\t\t\t\tif ( $this->custom_title_sub ) {\n\t\t\t\t\techo '<h3 class=\"admin-custom-h3\">' . wp_kses_post( $this->custom_title_sub ) . '</h3>';\n\t\t\t\t}\n\t\t\t\tif ( $this->custom_html ) {\n\t\t\t\t\techo '<div>' . wp_kses_post( $this->custom_html ) . '</div>';\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "d67773011a1964fc9bea3db8ab10e1b8", "score": "0.6193915", "text": "public function render_content() {\n\t\t\t\t$dropdown = wp_dropdown_pages(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => '_customize-dropdown-pages-' . $this->id,\n\t\t\t\t\t\t\t'echo' => 0,\n\t\t\t\t\t\t\t'show_option_none' => __( '&mdash; Select &mdash;' ),\n\t\t\t\t\t\t\t'option_none_value' => '0',\n\t\t\t\t\t\t\t'selected' => $this->value(),\n\t\t\t\t\t\t\t'post_type'\t\t\t=> 'sally',\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\n\t\t\t\t\t// Hackily add in the data link parameter.\n\t\t\t\t\t$dropdown = str_replace( '<select', '<select ' . $this->get_link(), $dropdown );\n\t\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<label class=\"customize-control-select\"><span class=\"customize-control-title\">%s</span> %s</label>',\n\t\t\t\t\t\t$this->label,\n\t\t\t\t\t\t$dropdown\n\t\t\t\t\t);\n\t\t}", "title": "" }, { "docid": "b3dd62515dd0d94b464de543b3855671", "score": "0.618471", "text": "public function html()\n {\n $html = '';\n if ($this->label && $this->label instanceof Label) {\n $html .= $this->label->htmlStart();\n }\n $html .= \"<textarea name='{$this->name}' id='{$this->id}' class='{$this->class}'>{$this->value}</textarea>\";\n if ($this->label && $this->label instanceof Label) {\n $html .= $this->label->htmlEnd();\n }\n return $html;\n }", "title": "" }, { "docid": "5ffff24a239091ce07b5399f37fee204", "score": "0.618411", "text": "public function criarHtml()\n {\n print \"<label>{$this->nome}</label>\";\n }", "title": "" }, { "docid": "e6b478c374e7f89998df471762cff804", "score": "0.61791235", "text": "public function render_content() {\n\n //var_dump($this->value());\n\n $defaultValue = '#RRGGBB';\n $defaultValueAttr = '';\n\n\n if( '' != $this->value()){\n if(is_string( $this->value() )){\n if('#' !== substr($this->value(), 0,1)){\n $defaultValue = '#' . $this->value();\n }else{\n $defaultValue = $this->value();\n }\n $defaultValueAttr = ' value=' . $defaultValue;\n }\n }else if( '' != $this->setting->default){\n $defaultValue = $this->setting->default;\n $defaultValueAttr = ' data-default-color=' . $defaultValue;\n }\n\n\n\n\n if(!empty($this->label)){\n echo '<span class=\"customize-control-title\">'.$this->label.'</span>';\n }\n if(!empty($this->description)){\n echo '<span class=\"customize-control-title\">'.$this->description.'</span>';\n }\n\n echo '<div class=\"customize-control-content\">';\n echo '<label><span class=\"screen-reader-text\">'.$this->label.'</span>';\n\n echo '<input class=\"color-picker-hex color-picker\" type=\"text\" maxlength=\"7\" placeholder=\"#RRGGBB\" data-alpha=\"true\"' .$defaultValueAttr. ' />';\n\n echo '</label>';\n echo '</div>';\n\n\n }", "title": "" }, { "docid": "d338b6750be91a33163818bbb9381f09", "score": "0.6169187", "text": "function display() {\n if ( WPDKForm::isNonceVerify( $this->key ) ) {\n $this->update();\n } ?>\n <form class=\"wpdk-settings-view-<?php echo $this->key ?> wpdk-form\" action=\"\" method=\"post\">\n <?php WPDKForm::nonceWithKey( $this->key ) ?>\n\n <p><?php echo $this->introduction ?></p>\n\n <?php\n if( method_exists( $this, 'content' ) ) {\n $this->content();\n } else {\n WPDKForm::htmlForm( $this->fields() );\n }\n ?>\n\n <?php WPDKUI::buttonsUpdateReset() ?>\n </form><?php\n\n }", "title": "" }, { "docid": "d8ae3cdea7a85c9b8797dc0fa59b03f9", "score": "0.61656415", "text": "public function toHTML()\n {\n }", "title": "" }, { "docid": "d8ae3cdea7a85c9b8797dc0fa59b03f9", "score": "0.61656415", "text": "public function toHTML()\n {\n }", "title": "" }, { "docid": "ac06ec2155d42bf201abe57289c8693e", "score": "0.6163843", "text": "public function getFieldControlHtml(): string\n {\n return $this->getFieldControl()['html'] ?? '';\n }", "title": "" }, { "docid": "62eb8308977209e54e77ddacef511d55", "score": "0.61628634", "text": "public function html()\n {\n return $this->builder()\n ->columns($this->getColumns())\n ->minifiedAjax()\n// ->addAction(['width' => '80px'])\n ->parameters($this->getBuilderParameters());\n }", "title": "" }, { "docid": "318697fa0a75c5963dfccbbae53c8b6d", "score": "0.6155994", "text": "public function render()\n\t{\n\t\techo $this->getHtml();\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "cc1bec08f7d5c15d5215d9c3b7fcacbb", "score": "0.61526227", "text": "public function render_content() {\n\t\t\t\t$dropdown = wp_dropdown_pages(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'name' => '_customize-dropdown-pages-' . $this->id,\n\t\t\t\t\t\t\t'echo' => 0,\n\t\t\t\t\t\t\t'show_option_none' => __( '&mdash; Select &mdash;' ),\n\t\t\t\t\t\t\t'option_none_value' => '0',\n\t\t\t\t\t\t\t'selected' => $this->value(),\n\t\t\t\t\t\t\t'post_type'\t\t\t=> 'kiddo',\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\n\t\t\t\t\t// Hackily add in the data link parameter.\n\t\t\t\t\t$dropdown = str_replace( '<select', '<select ' . $this->get_link(), $dropdown );\n\t\n\t\t\t\t\tprintf(\n\t\t\t\t\t\t'<label class=\"customize-control-select\"><span class=\"customize-control-title\">%s</span> %s</label>',\n\t\t\t\t\t\t$this->label,\n\t\t\t\t\t\t$dropdown\n\t\t\t\t\t);\n\t\t}", "title": "" }, { "docid": "01a0718940958e8725509baba74adb68", "score": "0.61509824", "text": "public function renderControls() {\n\t\tif (!is_array($this->controls) || !count($this->controls)) {\n\t\t\treturn ;\n\t\t}\n\t\tprint CHtml::openTag(\"td\", [\n\t\t\t\"align\" => \"middle\"\n\t\t]);\n\t\t$this->widget(\"ControlMenu\", [\n\t\t\t\"controls\" => $this->controls,\n\t\t\t\"mode\" => $this->controlMode\n\t\t]);\n\t\tprint CHtml::closeTag(\"td\");\n\t}", "title": "" }, { "docid": "de1bf0c643c9e7617b6aa17d6f52d421", "score": "0.614391", "text": "public function render()\n\t{\n\t\t$tpl = $this->createTemplate();\n\t\t$tpl->setFile(__DIR__ . \"/control.latte\");\n\t\t$tpl->css = $this->getCss();\n\t\t$tpl->js = $this->getJs();\n\t\t$tpl->render();\n\t}", "title": "" }, { "docid": "c409cc0aa5de7175b27af9c40868caad", "score": "0.61406296", "text": "public function display() {\r\n\t\t\t$this->render();\r\n\t\t}", "title": "" }, { "docid": "ce486fbfa3cc25a537bb70370f8c306f", "score": "0.6133721", "text": "public function doRender(){\r\n\t\treturn\r\n\t\t\t ((!$this->inline) ? '<div class=\"'.self::WRAPCLASS.'\">' : '')\r\n\t\t\t\t.'<label'.(($this->for != '') ? ' for=\"'.$this->for.'\"' : '').'>'\r\n\t\t\t\t\t.HtmlFormTools::auto_htmlspecialchars($this->caption, $this->needsUtf8Safety())\r\n\t\t\t\t.'</label>'\r\n\t\t\t.((!$this->inline) ? '</div>' : '')\r\n\t\t;\r\n\t}", "title": "" }, { "docid": "77d7e3591a7ed2f6844beb741ace3ce5", "score": "0.61324435", "text": "function setup_Form_html()\n\t\t\t{\n\t\t\t\t$this->form_html = mnml_optioncomponent_checkbox( $this->name ) . '<label for=\"'.$this->name.'\">' . $this->label . '</label>';\n\t\t\t}", "title": "" }, { "docid": "c71cc2a2b440a6f4f9ec5abd13aa442e", "score": "0.6126783", "text": "public function render() {\n\t\treturn $this->applyJavaScript() . $this->generateLabel();\n\t}", "title": "" }, { "docid": "bef233d5d4b7d5a0381cb349e927c2d6", "score": "0.61254174", "text": "protected function render() {\n\t\t// Get settings\n\t\t$settings = $this->get_settings_for_display();\n\n\t\t// Set inline editing\n\t\t$this->add_inline_editing_attributes( 'text', 'basic' );\n\n\t\t// Set render attributes\n\t\t$this->add_render_attribute( 'text', 'class', $settings['text_size'] );\n\n\t\t// Render component\n\t\trender(\"components.text\", [\n\t\t\t'data' => [\n\t\t\t\t'text' => $settings['text'],\n\t\t\t\t'el' => $settings['html_tag'],\n\t\t\t\t'text_attr' => preg_replace('/class =\\\\\"[^\\\\\"]*\\\\\"/', '', $this->get_render_attribute_string('text')),\n\t\t\t],\n\t\t\t'classes' => [\n\t\t\t\t'comp' => $this->get_render_attributes( 'text' )['class']\n\t\t\t]\n\t\t]);\n\t}", "title": "" } ]
0cfcb4cc7c2de1a44776879f81f1e23e
Create new navigation property to deviceCompliancePolicies for deviceManagement
[ { "docid": "e34ebfa321064b4fdce7d5b17c84ed6e", "score": "0.0", "text": "public function toPostRequestInformation(DeviceCompliancePolicy $body, ?DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): RequestInformation {\n $requestInfo = new RequestInformation();\n $requestInfo->urlTemplate = $this->urlTemplate;\n $requestInfo->pathParameters = $this->pathParameters;\n $requestInfo->httpMethod = HttpMethod::POST;\n $requestInfo->addHeader('Accept', \"application/json\");\n if ($requestConfiguration !== null) {\n $requestInfo->addHeaders($requestConfiguration->headers);\n $requestInfo->addRequestOptions(...$requestConfiguration->options);\n }\n $requestInfo->setContentFromParsable($this->requestAdapter, \"application/json\", $body);\n return $requestInfo;\n }", "title": "" } ]
[ { "docid": "d07a2fd5a5631b56318cd413b4a5c715", "score": "0.6013122", "text": "public function deviceCompliancePolicies(): DeviceCompliancePoliciesRequestBuilder {\n return new DeviceCompliancePoliciesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "28432a24a3e60d260f66a833ad1caefe", "score": "0.48430058", "text": "public function compliancePolicies(): CompliancePoliciesRequestBuilder {\n return new CompliancePoliciesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "2959986f4be3d3f15f6d6b9462c5ebcf", "score": "0.47287634", "text": "public function get(?DeviceCompliancePoliciesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {\n $requestInfo = $this->toGetRequestInformation($requestConfiguration);\n try {\n $errorMappings = [\n '4XX' => [ODataError::class, 'createFromDiscriminatorValue'],\n '5XX' => [ODataError::class, 'createFromDiscriminatorValue'],\n ];\n return $this->requestAdapter->sendAsync($requestInfo, [DeviceCompliancePolicyCollectionResponse::class, 'createFromDiscriminatorValue'], $errorMappings);\n } catch(Exception $ex) {\n return new RejectedPromise($ex);\n }\n }", "title": "" }, { "docid": "00e2d0bdabd2f031fcb6716c989051ff", "score": "0.47202256", "text": "public function post(DeviceCompliancePolicy $body, ?DeviceCompliancePoliciesRequestBuilderPostRequestConfiguration $requestConfiguration = null): Promise {\n $requestInfo = $this->toPostRequestInformation($body, $requestConfiguration);\n try {\n $errorMappings = [\n '4XX' => [ODataError::class, 'createFromDiscriminatorValue'],\n '5XX' => [ODataError::class, 'createFromDiscriminatorValue'],\n ];\n return $this->requestAdapter->sendAsync($requestInfo, [DeviceCompliancePolicy::class, 'createFromDiscriminatorValue'], $errorMappings);\n } catch(Exception $ex) {\n return new RejectedPromise($ex);\n }\n }", "title": "" }, { "docid": "32e54a07789ebfac43e362e9461db5b6", "score": "0.47046947", "text": "public function setDeviceCompliancePolicyId(?string $value): void {\n $this->getBackingStore()->set('deviceCompliancePolicyId', $value);\n }", "title": "" }, { "docid": "8b909a533df1464a4f56864b3e53fd3b", "score": "0.45589033", "text": "public function oldProductSpecification()\n {\n return $this->hasMany(ProductSpecification::class, 'products_id', 'id')->whereNull('specifications__id')->whereNull('specification_values__id');\n }", "title": "" }, { "docid": "b5b83355c0662b33ebaa3cfe90fcb97f", "score": "0.44816735", "text": "public function availabilities()\n {\n return $this->hasMany('App\\Models\\ProctorAvailability');\n }", "title": "" }, { "docid": "0788a37b99f19fd468d17a031f4237e3", "score": "0.44681445", "text": "public function getCustomPolicies()\n {\n return $this->customPolicies;\n }", "title": "" }, { "docid": "cd5566703e2367668d273ec6e19144d7", "score": "0.4439748", "text": "protected function syncAvailability()\n {\n $this->availability = [\n 'channels' => $this->channels->mapWithKeys(function ($channel) {\n $productChannel = $this->product->channels->first(fn ($assoc) => $assoc->id == $channel->id);\n\n return [\n $channel->id => [\n 'channel_id' => $channel->id,\n 'starts_at' => $productChannel ? $productChannel->pivot->starts_at : null,\n 'ends_at' => $productChannel ? $productChannel->pivot->ends_at : null,\n 'enabled' => $productChannel ? $productChannel->pivot->enabled : false,\n 'scheduling' => false,\n ],\n ];\n }),\n 'customerGroups' => $this->customerGroups->mapWithKeys(function ($group) {\n $productGroup = $this->product->customerGroups->where('id', $group->id)->first();\n\n $pivot = $productGroup->pivot ?? null;\n\n $status = 'hidden';\n\n if ($pivot) {\n if ($pivot->purchasable) {\n $status = 'purchasable';\n } elseif (! $pivot->visible && ! $pivot->enabled) {\n $status = 'hidden';\n } elseif ($pivot->visible) {\n $status = 'visible';\n }\n }\n\n return [\n $group->id => [\n 'customer_group_id' => $group->id,\n 'scheduling' => false,\n 'status' => $status,\n 'starts_at' => $pivot->starts_at ?? null,\n 'ends_at' => $pivot->ends_at ?? null,\n ],\n ];\n }),\n ];\n }", "title": "" }, { "docid": "6dcdbcf61657106ae93347a013aaa8d8", "score": "0.44197607", "text": "public function productSpecification()\n {\n return $this->hasMany(ProductSpecification::class, 'products_id', 'id')->whereNotNull('specifications__id')->whereNotNull('specification_values__id')\n ->select('products_id', '_id', 'value', 'specifications__id', 'specification_values__id')->with('specification', 'specificationValue');\n }", "title": "" }, { "docid": "fe841ed754ec72f2b82f871fe47b7045", "score": "0.43569487", "text": "public function getDeviceComplianceRequired()\n {\n if (array_key_exists(\"deviceComplianceRequired\", $this->_propDict)) {\n return $this->_propDict[\"deviceComplianceRequired\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "214a31766de7ab49d88c73e5a1a0786f", "score": "0.4351637", "text": "public static function policyScope()\n {\n return Product::whereIn('category_id', Category::policyScope()->pluck('id')->all());\n }", "title": "" }, { "docid": "617cca9da881c85215a3eedcbd19d6b1", "score": "0.42679924", "text": "public function setDeviceCompliancePolicyName(?string $value): void {\n $this->getBackingStore()->set('deviceCompliancePolicyName', $value);\n }", "title": "" }, { "docid": "669452efcf57c3addd11fcb7d94a0a89", "score": "0.42614913", "text": "protected function getComplianceAttribute()\n {\n return null;\n }", "title": "" }, { "docid": "f4573b02b8ee93b9cf47c374f0475c9a", "score": "0.42580444", "text": "public function byDeviceCompliancePolicyId(string $deviceCompliancePolicyId): DeviceCompliancePolicyItemRequestBuilder {\n $urlTplParams = $this->pathParameters;\n $urlTplParams['deviceCompliancePolicy%2Did'] = $deviceCompliancePolicyId;\n return new DeviceCompliancePolicyItemRequestBuilder($urlTplParams, $this->requestAdapter);\n }", "title": "" }, { "docid": "4cf2d823a565212f0fcbd7537a6f8d09", "score": "0.42502433", "text": "function set_capabilities() {\n global $wpp_capabilities;\n\n //* Get Administrator role for adding custom capabilities */\n $role = get_role( 'administrator' );\n\n //* General WPP capabilities */\n $wpp_capabilities = array(\n //* Manage WPP Properties Capabilities */\n 'edit_wpp_properties' => sprintf(__( 'View %s', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n\n 'edit_wpp_property' => sprintf(__( 'Add/Edit %s', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n 'delete_wpp_property' => sprintf(__( 'Delete %s', ud_get_wp_property()->domain ), WPP_F::property_label()),\n\n 'publish_wpp_properties' => sprintf(__( 'Publish %s', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n\n //* WPP others property capability */\n 'edit_others_wpp_properties' => sprintf(__( 'Edit Others %s', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n 'delete_others_wpp_properties' => sprintf(__( 'Delete Others %s', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n //* WPP private property capability */\n 'edit_private_wpp_properties' => sprintf(__( 'Edit Private %s', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n 'delete_private_wpp_properties' => sprintf(__( 'Delete Private %s', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n\n //* WPP make featured capability */\n 'manage_wpp_make_featured' => sprintf(__( 'Allow to mark %s as featured', ud_get_wp_property()->domain ), WPP_F::property_label('plural')),\n //* WPP Settings capability */\n 'manage_wpp_settings' => __( 'Manage Settings', ud_get_wp_property()->domain ),\n //* WPP Taxonomies capability */\n 'manage_wpp_categories' => __( 'Manage Taxonomies', ud_get_wp_property()->domain ),\n );\n\n //* Adds Premium Feature Capabilities */\n $wpp_capabilities = apply_filters( 'wpp_capabilities', $wpp_capabilities );\n\n if( !is_object( $role ) ) {\n return;\n }\n\n $is_cap_added = false;\n foreach( $wpp_capabilities as $cap => $value ) {\n if( empty( $role->capabilities[ $cap ] ) ) {\n $role->add_cap( $cap );\n $is_cap_added = true;\n }\n if($cap == 'edit_wpp_property' && empty($role->capabilities[ 'create_wpp_properties' ])){\n $role->add_cap( 'create_wpp_properties' );\n }\n elseif($cap == 'delete_wpp_property' && empty($role->capabilities[ 'delete_wpp_properties' ])){\n $role->add_cap( 'delete_wpp_properties' );\n }\n }\n\n // If current user with admin privileges\n // And we just set new caps for admin role\n // We re-set the current user with new caps\n // Issue: https://github.com/wp-property/wp-property/issues/413\n if ( $is_cap_added && current_user_can( 'manage_options' ) ) {\n global $current_user;\n $user_id = get_current_user_id();\n $current_user = null;\n WPP_F::debug( 'Update current user with new caps' );\n wp_set_current_user($user_id);\n }\n\n }", "title": "" }, { "docid": "1ee2c6caefd346fe16d75bb12c8057b4", "score": "0.42472512", "text": "public function specification()\n {\n return $this->hasMany(ProductSpecification::class, 'products_id', 'id')\n ->select('products_id', '_id', 'value', 'specifications__id', 'specification_values__id');\n }", "title": "" }, { "docid": "cb2214d73b84fc9df4be22e6e43e0789", "score": "0.42358607", "text": "public function withUrl(string $rawUrl): DeviceCompliancePoliciesRequestBuilder {\n return new DeviceCompliancePoliciesRequestBuilder($rawUrl, $this->requestAdapter);\n }", "title": "" }, { "docid": "8a6bf91ced3282dc7d987f5c005d5ce7", "score": "0.42228976", "text": "public function applicabilities()\n {\n return $this->belongsToMany('App\\Models\\MasterApplicabilities', 'master_license_applicabilities', 'master_license_id', 'master_applicability_id')->withTimestamps();\n }", "title": "" }, { "docid": "91556256659e8e80bda1079c9b6f403e", "score": "0.42075434", "text": "public function testUpdatePreventionPolicies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "18b152926fb522452e201a6e8b54150f", "score": "0.4206499", "text": "public function getPolicies();", "title": "" }, { "docid": "16478657e90d8e97fdfe6694831481d8", "score": "0.4178988", "text": "function getAuthorizationPolicy(&$request, $args, $roleAssignments) {\n\t\t// FIXME: Need to authorize review round, see #6200.\n\t\t// Get the review round from the request\n\t\t$round = $request->getUserVar('round');\n\t\t$this->setRound((int)$request->getUserVar('round'));\n\n\t\treturn parent::getAuthorizationPolicy($request, $args, $roleAssignments);\n\t}", "title": "" }, { "docid": "ab8956f523c36737f9db37dfaa0db655", "score": "0.416499", "text": "public function getWdacSupplementalPolicies(): ?array {\n $val = $this->getBackingStore()->get('wdacSupplementalPolicies');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, WindowsDefenderApplicationControlSupplementalPolicy::class);\n /** @var array<WindowsDefenderApplicationControlSupplementalPolicy>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'wdacSupplementalPolicies'\");\n }", "title": "" }, { "docid": "f9c46711af43e022ce09407be5e87333", "score": "0.41560006", "text": "public function setDeviceComplianceRequired($val)\n {\n $this->_propDict[\"deviceComplianceRequired\"] = boolval($val);\n return $this;\n }", "title": "" }, { "docid": "8fb0b366994ba227b3627164b5be875b", "score": "0.41553378", "text": "private function CreaMenuPolicy()\n\t{\n\t\t$this->AcquireMenuAreaPolicy();\n\t \n\t\tforeach ( $this->menuPolicy['area'] as $key=>$value ) \n\t {\n\t\t if ($value==M_PAR) \n\t\t {\n\t\t $this->AcquireMenuSubAreaPolicy($key);\n\t\t\t}\n\t\t}\t\t\t\t\n\t\t\n\t foreach ( $this->menuPolicy['subArea'] as $key=>$value ) //Arera=>SubArea\n\t foreach ( $value as $key2=>$value2 ) //For each subarea\n\t\t { \t\t \n\t\t\t if ($value2 == M_PAR) \n\t\t\t {\n\t\t\t\t $this->AcquireMenuApplicationPolicy($key, $key2);\n\t\t\t }\n\t\t }\n\t}", "title": "" }, { "docid": "4b91d9daa6ee8bdd72421a67962c165c", "score": "0.41360694", "text": "public function setManagedDevices($val)\n {\n $this->_propDict[\"managedDevices\"] = $val;\n return $this;\n }", "title": "" }, { "docid": "eacb71301f431d38591e8f5106bf95c7", "score": "0.4135328", "text": "public function createPolicy(array $data){\n\t\t// create policy\n\t\t$policy = $this->policies->create($data);\n\t\t// notify customer of policy creation\n\t\t$this->notifier->notify($data, 'policy creation');\n\n\t\treturn $policy;\n\t}", "title": "" }, { "docid": "2bf526bd3f8b0aaeb162141f3eb22d63", "score": "0.412898", "text": "public function setWdacSupplementalPolicies(?array $value): void {\n $this->getBackingStore()->set('wdacSupplementalPolicies', $value);\n }", "title": "" }, { "docid": "7c96562fc2d5639adfb27359ae6605dd", "score": "0.4093345", "text": "private function setupPolicy()\n {\n\n // Check if instantiated with policy\n if (isset($this->policy) && $this->policy !== null) { \n Di::set(ArmorPolicy::class, $this->policy);\n return;\n }\n\n // Check container\n if (Di::has(ArmorPolicy::class)) { \n $this->policy = Di::get(ArmorPolicy::class);\n return;\n }\n\n // Build new config\n $options = Di::get('armor.default_policy') ?? [];\n $this->policy = Di::makeset(ArmorPolicy::class, $options);\n }", "title": "" }, { "docid": "cbe8bc9e1f73c527b5d4cbf911a806d2", "score": "0.4091987", "text": "public function roleRestrictionPermissions()\n {\n return $this->hasOne('App\\PermissionModule\\RoleRestrictionPermission', 'role_id', 'role_id');\n }", "title": "" }, { "docid": "b04b190207f3c886ed7a04eb85227f0b", "score": "0.40727383", "text": "protected function _addPrivacyColumn()\n {\n if( $this->_databaseOperationType != 'upgrade' || version_compare('4.9.3', $this->_currentVersion, '<=') ) {\n return $this;\n }\n\n $db = $this->getDb();\n $sql = \"ALTER TABLE `engine4_product_products` ADD `view_privacy` VARCHAR(24) NOT NULL DEFAULT 'owner' AFTER `draft`\";\n try {\n $db->query($sql);\n } catch( Exception $e ) {\n return $this->_error('Query failed with error: ' . $e->getMessage());\n }\n\n // populate `view_privacy` column\n $select = new Zend_Db_Select($db);\n\n try {\n $select\n ->from('engine4_authorization_allow', array('resource_id' => 'resource_id', 'privacy_values' => new Zend_Db_Expr('GROUP_CONCAT(DISTINCT role)')))\n ->where('resource_type = ?', 'product')\n ->where('action = ?', 'view')\n ->group('resource_id');\n\n $privacyList = $select->query()->fetchAll();\n } catch( Exception $e ) {\n return $this->_error('Query failed with error: ' . $e->getMessage());\n }\n\n foreach( $privacyList as $privacy ) {\n $viewPrivacy = 'owner';\n $privacyVal = explode(\",\", $privacy['privacy_values']);\n if( in_array('everyone', $privacyVal) ) {\n $viewPrivacy = 'everyone';\n } elseif( in_array('registered', $privacyVal) ) {\n $viewPrivacy = 'registered';\n } elseif( in_array('owner_network', $privacyVal) ) {\n $viewPrivacy = 'owner_network';\n } elseif( in_array('owner_member_member', $privacyVal) ) {\n $viewPrivacy = 'owner_member_member';\n } elseif( in_array('owner_member', $privacyVal) ) {\n $viewPrivacy = 'owner_member';\n }\n\n $db->update('engine4_product_products',array(\n 'view_privacy' => $viewPrivacy,\n ), array(\n 'product_id = ?' => $privacy['resource_id'],\n ));\n }\n\n return $this;\n }", "title": "" }, { "docid": "93cbb759a9b8c66327e1a1b3da71ab75", "score": "0.4068148", "text": "public function policies(): array\n {\n return [];\n }", "title": "" }, { "docid": "d92b04b8f65f4e6a7cddf82f68b4da23", "score": "0.40580532", "text": "public function getPolicies()\r\n {\r\n return $this->policies;\r\n }", "title": "" }, { "docid": "d32768b94cb9bd300cda17e445ceec91", "score": "0.40520212", "text": "public function requirements()\n { \n return $this->hasMany('App\\ProjectRequirement')->whereIn('exclusion', [ null, false ])->orderBy('id', 'asc');\n }", "title": "" }, { "docid": "8c6e12a22eb9002797596ecb3651d8b0", "score": "0.4051994", "text": "public static function createFromDiscriminatorValue(ParseNode $parseNode): DeviceManagementConfigurationSettingApplicability {\n $mappingValueNode = $parseNode->getChildNode(\"@odata.type\");\n if ($mappingValueNode !== null) {\n $mappingValue = $mappingValueNode->getStringValue();\n switch ($mappingValue) {\n case '#microsoft.graph.deviceManagementConfigurationApplicationSettingApplicability': return new DeviceManagementConfigurationApplicationSettingApplicability();\n case '#microsoft.graph.deviceManagementConfigurationExchangeOnlineSettingApplicability': return new DeviceManagementConfigurationExchangeOnlineSettingApplicability();\n case '#microsoft.graph.deviceManagementConfigurationWindowsSettingApplicability': return new DeviceManagementConfigurationWindowsSettingApplicability();\n }\n }\n return new DeviceManagementConfigurationSettingApplicability();\n }", "title": "" }, { "docid": "73a25a45f5eaf30f3bb4a8c06caa178b", "score": "0.40377414", "text": "public function device()\n {\n return $this->hasMany('App\\Device');\n }", "title": "" }, { "docid": "cafd33fd6d5ec7b736aa4fe6a9ae20ce", "score": "0.40255198", "text": "public static function createFromDiscriminatorValue(ParseNode $parseNode): DeviceAppManagement {\n return new DeviceAppManagement();\n }", "title": "" }, { "docid": "e5b609d6101f9b8432911b8fb253a4e9", "score": "0.402077", "text": "public static function policies()\n {\n /** @var \\Illuminate\\Auth\\Access\\Gate $instance */\n return $instance->policies();\n }", "title": "" }, { "docid": "a73916abb995c7a5a144187565ba69cb", "score": "0.40168986", "text": "public function getPolicies()\n {\n return $this->helper->getPolicies();\n }", "title": "" }, { "docid": "4d525f97e2455c8daebd811be54dbea6", "score": "0.40166092", "text": "public function devices () {\n return $this->hasMany('App\\Device');\n }", "title": "" }, { "docid": "99200b03fe85970fba3bdeecb5013149", "score": "0.40115505", "text": "public function product_compatibles(): HasMany\n {\n return $this->hasMany(ProductCompatible::class, 'product_id', 'id');\n }", "title": "" }, { "docid": "2ff4ce9b7ceda52f4661a6d12ddd59f1", "score": "0.40025204", "text": "public function getManagedAppPolicies(): ?array {\n $val = $this->getBackingStore()->get('managedAppPolicies');\n if (is_array($val) || is_null($val)) {\n TypeUtils::validateCollectionValues($val, ManagedAppPolicy::class);\n /** @var array<ManagedAppPolicy>|null $val */\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'managedAppPolicies'\");\n }", "title": "" }, { "docid": "aa7cec0f6fe22717058372f4b10b32a0", "score": "0.39831057", "text": "public function getPolicies()\n {\n return $this->policies;\n }", "title": "" }, { "docid": "379c5497cd04257a5cabec71e9c9d614", "score": "0.3981029", "text": "public function device() {\n\t\treturn $this->hasMany('App\\Device');\n\t}", "title": "" }, { "docid": "69800d90dd80a683115dbd182fd42738", "score": "0.39742815", "text": "public static function getPolicyRules ()\n\t{\n\t\treturn Registry::get ('MVC_POLICY');\n\t}", "title": "" }, { "docid": "eeef67a3eaf3b9726c86cbf0445d2b12", "score": "0.3973774", "text": "protected function addProductRestrictions()\n {\n $success = array();\n Db::getInstance()->execute('INSERT INTO `' . _DB_PREFIX_ . 'cart_rule_product_rule_group` (`id_cart_rule`, `quantity`)\n VALUES (' . (int) $this->id . ', 1)');\n $id_product_rule_group = Db::getInstance()->Insert_ID();\n if ($id_product_rule_group) {\n Db::getInstance()->execute('INSERT INTO `' . _DB_PREFIX_ . 'cart_rule_product_rule` (`id_product_rule_group`, `type`)\n VALUES (' . (int) $id_product_rule_group . ', \"products\")');\n $id_product_rule = Db::getInstance()->Insert_ID();\n if ($id_product_rule) {\n $values = array('(' . (int) $id_product_rule . ',' . (int) $this->product->id . ')');\n $success[] = Db::getInstance()->execute('INSERT INTO `' . _DB_PREFIX_ . 'cart_rule_product_rule_value` (`id_product_rule`, `id_item`) VALUES ' . implode(',', $values));\n if ($this->multi_adding == 1) {\n /* Add discount for other main product have the same this accessory*/\n $id_products = $this->getIdProductsHaveSameAccessory();\n if (!empty($id_products)) {\n $multi_adding_values = array();\n foreach ($id_products as $id_product) {\n $multi_adding_values[] = '(' . (int) $id_product_rule . ',' . (int) $id_product['id_product'] . ')';\n }\n if (!empty($multi_adding_values)) {\n $success[] = Db::getInstance()->execute('INSERT INTO `' . _DB_PREFIX_ . 'cart_rule_product_rule_value` (`id_product_rule`, `id_item`) VALUES ' . implode(',', $multi_adding_values));\n }\n }\n }\n }\n }\n return array_sum($success) >= count($success);\n }", "title": "" }, { "docid": "c6b7acc851d9ecd0904c31db8fb074e9", "score": "0.39557567", "text": "public function getManagedDevices()\n {\n if (array_key_exists(\"managedDevices\", $this->_propDict)) {\n return $this->_propDict[\"managedDevices\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "9612d81044579a6408481c6c0421c92d", "score": "0.39485973", "text": "public function policy()\n {\n return $this->belongsTo(Policy::class);\n }", "title": "" }, { "docid": "59e893ef1bab7225289f43fde850a0ff", "score": "0.39471918", "text": "function createPolicy() {\n\t\tthrow new CmisNotImplementedException(\"createPolicy\");\n\t}", "title": "" }, { "docid": "f2c960543b27f127dfca4b8d7091451a", "score": "0.39430556", "text": "public function getAllPolicies();", "title": "" }, { "docid": "fe7a198abcb498f9871e1ce080092391", "score": "0.39265025", "text": "public function permissions()\n {\n return $this->belongsToMany(Permission::class, 'permission_department');\n }", "title": "" }, { "docid": "f2177ca9dd15e07176a376cd8ef28f12", "score": "0.39261958", "text": "public function platform()\n {\n return $this->belongsTo(ApplicationPlatform::class);\n }", "title": "" }, { "docid": "6f8d953e9847bfc011d0ec2ad9711a18", "score": "0.39188373", "text": "public function platforms()\n {\n return $this->hasMany(Platform::class);\n }", "title": "" }, { "docid": "4b09862e31182e5c75b661c68a5265e4", "score": "0.39107722", "text": "public function testBulkExtendedPolicies() {\n $object1 = $this->buildObject(PhabricatorPolicies::POLICY_USER)\n ->setPHID('PHID-TEST-1');\n $object2 = $this->buildObject(PhabricatorPolicies::POLICY_USER)\n ->setPHID('PHID-TEST-2');\n $object3 = $this->buildObject(PhabricatorPolicies::POLICY_USER)\n ->setPHID('PHID-TEST-3');\n\n $extended = $this->buildObject(PhabricatorPolicies::POLICY_ADMIN)\n ->setPHID('PHID-TEST-999');\n\n $object1->setExtendedPolicies(\n array(\n PhabricatorPolicyCapability::CAN_VIEW => array(\n array(\n $extended,\n array(\n PhabricatorPolicyCapability::CAN_VIEW,\n PhabricatorPolicyCapability::CAN_EDIT,\n ),\n ),\n ),\n ));\n\n $object2->setExtendedPolicies(\n array(\n PhabricatorPolicyCapability::CAN_VIEW => array(\n array($extended, PhabricatorPolicyCapability::CAN_VIEW),\n ),\n ));\n\n $object3->setExtendedPolicies(\n array(\n PhabricatorPolicyCapability::CAN_VIEW => array(\n array(\n $extended,\n array(\n PhabricatorPolicyCapability::CAN_VIEW,\n PhabricatorPolicyCapability::CAN_EDIT,\n ),\n ),\n ),\n ));\n\n $user = $this->buildUser('user');\n\n $visible = id(new PhabricatorPolicyFilter())\n ->setViewer($user)\n ->requireCapabilities(\n array(\n PhabricatorPolicyCapability::CAN_VIEW,\n ))\n ->apply(\n array(\n $object1,\n $object2,\n $object3,\n ));\n\n $this->assertEqual(array(), $visible);\n }", "title": "" }, { "docid": "cc21eae255f87dc5889f2888e42f2085", "score": "0.39028212", "text": "public function platforms() {\n return $this->belongsToMany(Platform::class);\n }", "title": "" }, { "docid": "bfebebb28f992aff69fd30d9b408e693", "score": "0.39026687", "text": "public function getCompliantDeviceCount()\n {\n if (array_key_exists(\"compliantDeviceCount\", $this->_propDict)) {\n return $this->_propDict[\"compliantDeviceCount\"];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "5247ed25c407795cc948a52b18a5ec55", "score": "0.38859335", "text": "protected function dynamic_properties()\n {\n return [\n '_variant' => [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__APPLICATION_VARIANT__VARIANT',\n C__PROPERTY__INFO__DESCRIPTION => 'The assigned variant for the application assignment'\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n $this,\n 'dynamic_property_collected_variants'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__LIST => false\n ]\n ],\n '_assigned_database_schema' => [\n C__PROPERTY__INFO => [\n C__PROPERTY__INFO__TITLE => 'LC__CMDB__CATS__DATABASE_SCHEMA',\n C__PROPERTY__INFO__DESCRIPTION => 'The assigned database schema for the application'\n ],\n C__PROPERTY__DATA => [\n C__PROPERTY__DATA__FIELD => 'isys_catg_application_list__isys_catg_relation_list__id',\n C__PROPERTY__DATA__REFERENCES => [\n 'isys_cats_database_access_list',\n 'isys_cats_database_access_list__id'\n ]\n ],\n C__PROPERTY__PROVIDES => [\n C__PROPERTY__PROVIDES__REPORT => true,\n C__PROPERTY__PROVIDES__LIST => false,\n ],\n C__PROPERTY__FORMAT => [\n C__PROPERTY__FORMAT__CALLBACK => [\n $this,\n 'dynamic_property_assigned_database_schema'\n ]\n ]\n ]\n ];\n }", "title": "" }, { "docid": "9538159d89f9f8cf47756b214b790808", "score": "0.38851255", "text": "public function policies()\n {\n return $this->policies;\n }", "title": "" }, { "docid": "9538159d89f9f8cf47756b214b790808", "score": "0.38851255", "text": "public function policies()\n {\n return $this->policies;\n }", "title": "" }, { "docid": "60eb222fc2428baf82c2eb36ef811341", "score": "0.38805255", "text": "public function registerPolicies()\n {\n foreach ($this->policies as $key => $value) {\n Gate::policy($key, $value);\n }\n }", "title": "" }, { "docid": "60eb222fc2428baf82c2eb36ef811341", "score": "0.38805255", "text": "public function registerPolicies()\n {\n foreach ($this->policies as $key => $value) {\n Gate::policy($key, $value);\n }\n }", "title": "" }, { "docid": "8e59b9a8e194993a54eb8979c5431e15", "score": "0.38796902", "text": "public function __construct() {\n parent::__construct();\n $this->setOdataType('#microsoft.graph.deviceManagementEnumConstraint');\n }", "title": "" }, { "docid": "d9841c1ac683df174e2a073bd5bc6fb5", "score": "0.38778841", "text": "public function createMenuPolicy()\n {\t\t\n\t\t$this->__fillUserInformation();\n\t\t\n\t\t$this->userRoles = $this->_getUserRoles();\n\t\t\n\t\t$this->checkUserPrivMenu(CT_AREA);\n \t\t\n\t\tforeach ( $this->menuPolicy[CT_AREA] as $key=>$value ){\n\t\t\tif ($value==CT_PP_PARTIAL_ACCESS) { $this->checkUserPrivMenu(CT_SUBAREA, $key); }\n\t\t} \n\n foreach ( $this->menuPolicy[CT_SUBAREA] as $key=>$value ){\n\t\t\tforeach ( $value as $key2=>$value2 ){ \n\t\t\t\tif ($value2==CT_PP_PARTIAL_ACCESS) { $this->checkUserPrivMenu(CT_APPLICATION, $key, $key2); }\n\t\t\t}\n } \n\t\t$granted_links_info = array();\n\t\n\t\t// Get information about relation between sys_structapplication AND sys_menurows\n\t\t$where = '';\n\t\t$_tmp_arr = array();\n\t\tforeach($this->menuPolicy[CT_AREA] as $k=>$v){\n\t\t\tif($v != CT_PP_BLOCK_ACCESS)\n\t\t\t\tarray_push($_tmp_arr, $k);\n\t\t}\n\t\t\n\t\tif($_tmp_arr){\n\t\t\t$where\t= ' WHERE sys_structapplication.idArea IN ('.implode(', ', $_tmp_arr).') ';\n\t\t} else {\n\t\t\t// TODO Add message for user about situation.\n\t\t\tSHIN_Core::$_libs['auth']->logout(); \n\t\t\tredirect(shinfw_base_url().'/acces_denied', 'refresh');\n\t\t}\n\t\t\n\t\t$order_by\t= ' ORDER BY idMenu, idPanel, idGrp, position ASC';\n\t\t\n\t\t\n\t\t$sql = 'SELECT\n\t\t\t\t\tsys_menurows.idMenu,\n\t\t\t\t\tsys_menurows.idPanel,\n\t\t\t\t\tsys_menurows.idGrp,\n\t\t\t\t\tsys_structapplication.idArea,\n\t\t\t\t\tsys_structapplication.idSubArea,\n\t\t\t\t\tsys_menurows.idApplication,\n\t\t\t\t\tsys_structapplication.application,\n\t\t\t\t\tsys_structapplication.idModule,\n\t\t\t\t\tsys_structapplication.file,\n\t\t\t\t\tsys_menurows.newPage,\n\t\t\t\t\tsys_menurows.type,\n\t\t\t\t\tsys_menurows.position,\n\t\t\t\t\tsys_menurows.active\n\t\t\t\tFROM\n\t\t\t\t\tsys_menurows \n\t\t\t\tINNER JOIN sys_structapplication ON sys_structapplication.idApplication = sys_menurows.idApplication'. $where.$order_by;\n\t\t$query = SHIN_Core::$_db[SHIN_Core::$_shdb->sys_database]->query($sql);\n\t\t\n\t\t$_application_folder = '';\n\t\t\n\t\t$this->_fillMenuInformation();\n\t\t$this->_fillMenuGrpInformation();\n\t\t\n\t\tforeach ($query->result_array() as $row)\n\t\t{\n\t\t\t$granted=false;\n\t\t\t\t\t\t\t\t\t\n\t\t\tif (($this->menuPolicy[CT_AREA][$row['idArea']]==CT_PP_FULL_ACCESS)||($this->menuPolicy[CT_AREA][$row['idArea']]==CT_PP_RONLY_ACCESS)) {\n\t\t\t\t$granted=true;\n\t\t\t} else {\n\t\t\t\tif ($this->menuPolicy[CT_AREA][$row['idArea']] != CT_PP_BLOCK_ACCESS) {\t\t\t\n if (isset($this->menuPolicy[CT_SUBAREA][$row['idArea']][$row['idSubArea']])){\n\t\t\t\t\tif (($this->menuPolicy[CT_SUBAREA][$row['idArea']][$row['idSubArea']]==CT_PP_FULL_ACCESS)||($this->menuPolicy[CT_SUBAREA][$row['idArea']][$row['idSubArea']]==CT_PP_RONLY_ACCESS)) { $granted=true; } \n else {\n\t\t\t\t\t\tif ($this->menuPolicy[CT_SUBAREA][$row['idArea']][$row['idSubArea']]!=CT_PP_BLOCK_ACCESS) {\n\t\t\t\t\t\t\tif(isset($this->menuPolicy[CT_APPLICATION][$row['idApplication']])){\n\t\t\t\t\t\t\t\tif (($this->menuPolicy[CT_APPLICATION][$row['idApplication']]==CT_PP_FULL_ACCESS)||($this->menuPolicy[CT_APPLICATION][$row['idApplication']]==CT_PP_RONLY_ACCESS)) $granted=true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n }\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tif($granted)\n\t\t\t{\n\t\t\t\tforeach($this->sys_menu_information as $item)\n\t\t\t\t{\n\t\t\t\t\tif($item['idMenu'] == $row['idMenu'] && $item['idPanel'] == $row['idPanel']){\n\t\t\t\t\t\t$_application_folder = $item['app_folder_name'];\n\t\t\t\t\t\t$panel_raw = $item['panel_header'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Try to load from new APPLICATION FOLDER NAME 1 file with menu information.//\n\t\t\t\t$this->_isMenuLangFileExists($_application_folder);\n\t\t\t\t////////////////////////////////////////////////////////////////////////////////\n\t\t\t\t\n\t\t\t\t$panel_name = SHIN_Core::$_language->line($panel_raw);\n\t\t\t\t\n\t\t\t\t// fetch group name ///////////\n\t\t\t\tforeach($this->sys_menugrp_information as $item)\n\t\t\t\t{\n\t\t\t\t\tif($item['idPanel'] == $row['idPanel'] && $item['idGrp'] == $row['idGrp']){\n\t\t\t\t\t\t$group_name = $item['title'];\n\t\t\t\t\t\t$_group_name = SHIN_Core::$_language->line($group_name);\n\t\t\t\t\t\tif(!$_group_name){$_group_name = $group_name;}\n\t\t\t\t\t\t$group_ico = $item['ico'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t///////////////////////////////\n\t\n\t\t\t\t$granted_links_info[$panel_name][$_group_name]['ico'] = $group_ico;\n\t\t\t\t$row['application'] = SHIN_Core::$_language->line($row['application']);\n\t\t\t\t\n\t\t\t\t$granted_links_info[$panel_name][$_group_name][$row['idApplication']] = $row;\n\t\t\t} \t\t\t\n\t\t}\t\t\t\t\n\t\t$query->free_result();\n\t\t\n\t\treturn $granted_links_info; // wau! :)\n\t\t\n\t}", "title": "" }, { "docid": "e2ec6c030fa1cedec9625b4a04d39256", "score": "0.38741073", "text": "public function registerPolicies()\n {\n foreach ($this->policies() as $key => $value) {\n Gate::policy($key, $value);\n }\n }", "title": "" }, { "docid": "b9bbe8192ccc4d54df62687cf527aa8e", "score": "0.38624212", "text": "public function subscriptions(){\n return $this->hasManyThrough('App\\Lsubscription', 'App\\Product');\n }", "title": "" }, { "docid": "f3021d256a9bd323071617e589fedcfa", "score": "0.38615537", "text": "public function setManagedAppPolicies(?array $value): void {\n $this->getBackingStore()->set('managedAppPolicies', $value);\n }", "title": "" }, { "docid": "c1d189eef612a3f8d0bf9ef9204ddd3e", "score": "0.38545585", "text": "public function configurationPolicies(): ConfigurationPoliciesRequestBuilder {\n return new ConfigurationPoliciesRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" }, { "docid": "444f91aea7eadd185f67749dfd713280", "score": "0.38537875", "text": "public function management_group()\n {\n return $this->belongsTo('App\\ManagementGroup');\n }", "title": "" }, { "docid": "60ec4e679f592524dee262d6b0c2bf09", "score": "0.3851408", "text": "public function categoryOptions()\n {\n return $this->hasMany('App\\AccessbltyOpt');\n }", "title": "" }, { "docid": "81ebe807d8ad33c127c55dec2649c339", "score": "0.38487497", "text": "public function products()\n {\n return $this->hasMany(Product::class, 'organisation_id');\n }", "title": "" }, { "docid": "56784dd9b1099d25a1d4bf09a047fd91", "score": "0.38334206", "text": "public function testExtendedPolicies() {\n $object = $this->buildObject(PhabricatorPolicies::POLICY_USER)\n ->setPHID('PHID-TEST-1');\n\n $this->expectVisibility(\n $object,\n array(\n 'public' => false,\n 'user' => true,\n 'admin' => true,\n ),\n pht('No Extended Policy'));\n\n // Add a restrictive extended policy.\n $extended = $this->buildObject(PhabricatorPolicies::POLICY_ADMIN)\n ->setPHID('PHID-TEST-2');\n $object->setExtendedPolicies(\n array(\n PhabricatorPolicyCapability::CAN_VIEW => array(\n array($extended, PhabricatorPolicyCapability::CAN_VIEW),\n ),\n ));\n\n $this->expectVisibility(\n $object,\n array(\n 'public' => false,\n 'user' => false,\n 'admin' => true,\n ),\n pht('With Extended Policy'));\n\n // Depend on a different capability.\n $object->setExtendedPolicies(\n array(\n PhabricatorPolicyCapability::CAN_VIEW => array(\n array($extended, PhabricatorPolicyCapability::CAN_EDIT),\n ),\n ));\n\n $extended->setCapabilities(array(PhabricatorPolicyCapability::CAN_EDIT));\n $extended->setPolicies(\n array(\n PhabricatorPolicyCapability::CAN_EDIT =>\n PhabricatorPolicies::POLICY_NOONE,\n ));\n\n $this->expectVisibility(\n $object,\n array(\n 'public' => false,\n 'user' => false,\n 'admin' => false,\n ),\n pht('With Extended Policy + Edit'));\n }", "title": "" }, { "docid": "35e99814b2f07d6f6e4dbda8ae5aa2c6", "score": "0.38321725", "text": "public function installed_domains_jwt_key()\n {\n return $this->hasMany('\\Lasallesoftware\\Librarybackend\\Authentication\\Models\\Installed_domains_jwt_key');\n }", "title": "" }, { "docid": "84d41a1781752f23e5b3fd1e239b231f", "score": "0.38264936", "text": "public function chargingInterval(): BelongsTo\n {\n return $this->belongsTo(EquipmentCategoryChargingInterval::class);\n }", "title": "" }, { "docid": "157195decba9391ab5f481d2d8443194", "score": "0.3822676", "text": "public function technologies()\n {\n return $this->belongsToMany(Technology::class, 'pd_VerminForCropProcessing','verminId','cropProcessingId');\n }", "title": "" }, { "docid": "a5276fc0ca57c751d6dd343ab07e92e0", "score": "0.38225767", "text": "private function getNotificationDataRules()\n {\n return [\n 'required' => ['app_id'],\n 'defined' => [\n 'app_id' => 'string',\n 'app_ids' => 'array',\n 'included_segments' => 'array',\n 'excluded_segments' => 'array',\n 'filters' => 'array',\n 'include_player_ids' => 'array',\n 'include_ios_tokens' => 'array',\n 'include_wp_urls' => 'array',\n 'include_wp_wns_uris' => 'array',\n 'include_amazon_reg_ids' => 'array',\n 'include_chrome_reg_ids' => 'array',\n 'include_chrome_web_reg_ids' => 'array',\n 'include_android_reg_ids' => 'array',\n 'contents' => 'array',\n 'headings' => 'array',\n 'subtitle' => 'array',\n 'template_id' => 'string',\n 'content_available' => 'bool',\n 'mutable_content' => 'bool',\n 'data' => 'array',\n 'url' => 'string',\n 'ios_attachments' => 'array',\n 'big_picture' => 'string',\n 'adm_big_picture' => 'string',\n 'chrome_big_picture' => 'string',\n 'buttons' => 'array',\n 'web_buttons' => 'array',\n 'ios_category' => 'string',\n 'android_background_layout' => 'array',\n 'small_icon' => 'string',\n 'large_icon' => 'string',\n 'chrome_web_icon' => 'string',\n 'firefox_icon' => 'string',\n 'adm_small_icon' => 'string',\n 'adm_large_icon' => 'string',\n 'chrome_icon' => 'string',\n 'ios_sound' => 'string',\n 'android_sound' => 'string',\n 'adm_sound' => 'string',\n 'wp_sound' => 'string',\n 'wp_wns_sound' => 'string',\n 'android_led_color' => 'string',\n 'android_accent_color' => 'string',\n 'android_visibility' => [\n 'allowedTypes' => 'int',\n 'allowedValues' => [1, 0, -1],\n ],\n 'ios_badgeType' => [\n 'allowedTypes' => 'string',\n 'allowedValues' => ['None', 'SetTo', 'Increase'],\n ],\n 'ios_badgeCount' => 'string',\n 'collapse_id' => 'string',\n 'send_after' => 'string',\n 'delayed_option' => 'string',\n 'delivery_time_of_day' => 'string',\n 'ttl' => 'int',\n 'priority' => 'int',\n 'android_group' => 'string',\n 'android_group_message' => 'array',\n 'adm_group' => 'string',\n 'adm_group_message' => 'array',\n 'isIos' => 'bool',\n 'isAndroid' => 'bool',\n 'isAnyWeb' => 'bool',\n 'isChromeWeb' => 'bool',\n 'isFirefox' => 'bool',\n 'isSafari' => 'bool',\n 'isWP' => 'bool',\n 'isWP_WNS' => 'bool',\n 'isAdm' => 'bool',\n 'isChrome' => 'bool',\n ],\n ];\n }", "title": "" }, { "docid": "c6712f4745c458cc3cd58c4c07953846", "score": "0.3817841", "text": "public function device()\n {\n return $this->belongsTo('App\\Models\\Devices');\n }", "title": "" }, { "docid": "fa9941971fe07702596484cae4a764e6", "score": "0.38099867", "text": "public function vendor()\n {\n return $this->belongsToMany('App\\Vendor', 'price_rule_vendor', 'price_rule_id')->withTimestamps();\n }", "title": "" }, { "docid": "33420ec8657005199ea38437871e088b", "score": "0.38048247", "text": "public function create(array $data)\n {\n // Have to skip presenter to get a model not some data\n $temporarySkipPresenter = $this->skipPresenter;\n $this->skipPresenter(true);\n $privacyPolicyData = self::cleanInput($data);\n $privacyPolicy = parent::create($privacyPolicyData);\n $this->skipPresenter($temporarySkipPresenter);\n $this->updateRelations($privacyPolicy, $privacyPolicyData);\n $privacyPolicy->save();\n return $this->parserResult($privacyPolicy);\n }", "title": "" }, { "docid": "edddeae2904a0b5c121f6596ce391987", "score": "0.37950626", "text": "function __construct($pricingRules) {\n foreach($pricingRules as $pricingRule){\n $this->pricingRules[$pricingRule->sku] = $pricingRule;\n }\n }", "title": "" }, { "docid": "265cd4d94c3a567fa56f55b7bb2e8a38", "score": "0.37908033", "text": "public function getPermissionsCriterion($service, $function)\n {\n $permissionSets = $this->permissionResolver->hasAccess($service, $function);\n if ($permissionSets === false || $permissionSets === true) {\n return $permissionSets;\n }\n\n if (empty($permissionSets)) {\n throw new RuntimeException(\"Got an empty array of limitations from hasAccess( '{$service}', '{$function}' )\");\n }\n\n /*\n * RoleAssignment is a OR condition, so is policy, while limitations is a AND condition\n *\n * If RoleAssignment has limitation then policy OR conditions are wrapped in a AND condition with the\n * role limitation, otherwise it will be merged into RoleAssignment's OR condition.\n */\n $currentUserRef = $this->permissionResolver->getCurrentUserReference();\n $roleAssignmentOrCriteria = array();\n foreach ($permissionSets as $permissionSet) {\n // $permissionSet is a RoleAssignment, but in the form of role limitation & role policies hash\n $policyOrCriteria = array();\n /**\n * @var \\Eki\\NRW\\Component\\Base\\Engine\\Values\\User\\Policy\n */\n foreach ($permissionSet['policies'] as $policy) {\n $limitations = $policy->getLimitations();\n if ($limitations === '*' || empty($limitations)) {\n // Given policy gives full access, optimize away all role policies (but not role limitation if any)\n // This should be optimized on create/update of Roles, however we keep this here for bc with older data\n $policyOrCriteria = [];\n break;\n }\n\n $limitationsAndCriteria = array();\n foreach ($limitations as $limitation) {\n $type = $this->limitationService->getLimitationType($limitation->getIdentifier());\n $limitationsAndCriteria[] = $type->getCriterion($limitation, $currentUserRef);\n }\n\n $policyOrCriteria[] = isset($limitationsAndCriteria[1]) ?\n new LogicalAnd($limitationsAndCriteria) :\n $limitationsAndCriteria[0];\n }\n\n /**\n * Apply role limitations if there is one.\n *\n * @var \\Eki\\NRW\\Component\\Base\\Engine\\Values\\User\\Limitation[]\n */\n if ($permissionSet['limitation'] instanceof Limitation) {\n // We need to match both the limitation AND *one* of the policies, aka; roleLimit AND policies(OR)\n $type = $this->limitationService->getLimitationType($permissionSet['limitation']->getIdentifier());\n if (!empty($policyOrCriteria)) {\n $roleAssignmentOrCriteria[] = new LogicalAnd(\n array(\n $type->getCriterion($permissionSet['limitation'], $currentUserRef),\n isset($policyOrCriteria[1]) ? new LogicalOr($policyOrCriteria) : $policyOrCriteria[0],\n )\n );\n } else {\n $roleAssignmentOrCriteria[] = $type->getCriterion($permissionSet['limitation'], $currentUserRef);\n }\n } elseif (!empty($policyOrCriteria)) {\n // Otherwise merge $policyOrCriteria into $roleAssignmentOrCriteria\n // There is no role limitation, so any of the policies can globally match in the returned OR criteria\n $roleAssignmentOrCriteria = empty($roleAssignmentOrCriteria) ?\n $policyOrCriteria :\n array_merge($roleAssignmentOrCriteria, $policyOrCriteria);\n }\n }\n\n if (empty($roleAssignmentOrCriteria)) {\n return false;\n }\n\n return isset($roleAssignmentOrCriteria[1]) ?\n new LogicalOr($roleAssignmentOrCriteria) :\n $roleAssignmentOrCriteria[0];\n }", "title": "" }, { "docid": "72eb2eabdb4361f31e1ee3bbf48026b4", "score": "0.37889746", "text": "public function deploymentPlans()\n {\n return $this->hasMany('App\\Models\\DeploymentPlan');\n }", "title": "" }, { "docid": "7828a3995ef4e2df67fa2d35c172456c", "score": "0.3785056", "text": "public function getPollEligibilities()\n {\n return $this->hasMany(PollEligibility::className(), ['poll_id' => 'id']);\n }", "title": "" }, { "docid": "6d74e7c59cade3ef0a4bfa97cd45b10f", "score": "0.37789652", "text": "public function firewallRules()\n {\n return $this->belongsToMany(ServerFirewallRule::class, 'server_firewall_rule_host', 'host_id', 'rule_id');\n }", "title": "" }, { "docid": "8861de4d27291c32c43c8cd50dd06286", "score": "0.3777518", "text": "public static function createFromDiscriminatorValue(ParseNode $parseNode): WindowsDefenderApplicationControlSupplementalPolicy {\n return new WindowsDefenderApplicationControlSupplementalPolicy();\n }", "title": "" }, { "docid": "a43dbe69711de0a5ebf706ab6e3a15ef", "score": "0.37743333", "text": "public function testCreatePreventionPolicies()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "25ae0a9a656324f38077c9750667adde", "score": "0.37703222", "text": "public function productPrice(){\n return $this->hasMany(ProductPrice::class, 'productQualityId');\n }", "title": "" }, { "docid": "71dfe790320033bf9ae5dbf4b29a8200", "score": "0.37695706", "text": "public function device_vendor(){\n return $this->belongsTo('UserFrosting\\Sprinkle\\GeoSense\\Database\\Models\\DeviceVendor');\n }", "title": "" }, { "docid": "685d4a09b040186bf1c1c89e0bcaaee8", "score": "0.37690645", "text": "public function testPredefinedProfilesWritePermissionsById()\n {\n }", "title": "" }, { "docid": "f2d57a3ff7a747b51a25463668bd90d4", "score": "0.37580582", "text": "public function getEndpointPolicies()\n {\n return $this->endpoint_policies;\n }", "title": "" }, { "docid": "896e3c0688b8d647e87bf949fb57b668", "score": "0.37569955", "text": "public function certificates() {\n return $this->hasMany('App\\Certificate');\n }", "title": "" }, { "docid": "d6f2dabd9bbcaa49add1f54744898969", "score": "0.37407026", "text": "public function softwares(){\n return $this->BelongsToMany(Software::class);\n }", "title": "" }, { "docid": "70280944ff87452bb69442008dfc9129", "score": "0.37386182", "text": "public function setCompliantDeviceCount($val)\n {\n $this->_propDict[\"compliantDeviceCount\"] = intval($val);\n return $this;\n }", "title": "" }, { "docid": "1b58f1b52b91a97c70d7eeae12839476", "score": "0.37381607", "text": "public function policy()\n\t{\n\t\treturn $this->belongsTo('Policy', 'id');\n\t}", "title": "" }, { "docid": "ab219500a0516da7b055aa1c35a92275", "score": "0.37332514", "text": "function productPartRules()\n {\n }", "title": "" }, { "docid": "2d3b2f06d0567dfdccd4b15656f1eb1f", "score": "0.37309113", "text": "protected function registerPolicies()\n {\n foreach ($this->policies as $key => $value) {\n $this->registerPolicy($key, $value);\n }\n }", "title": "" }, { "docid": "d8aa1df2a6462e8e4ab99c45172d64be", "score": "0.37260026", "text": "public function optionals()\n {\n return $this->hasMany('App\\Models\\OptionalsProducts');\n }", "title": "" }, { "docid": "5ad3404d8faa5c5cf8bbc10ea3c65e02", "score": "0.37200314", "text": "public function pricings()\n {\n return $this->hasMany('App\\Pricing');\n }", "title": "" }, { "docid": "eea0e2a65d0af2ed762bff49a726d45d", "score": "0.3719379", "text": "public function rules()\n {\n $this->setModel(Product::class);\n $rules = parent::rules();\n\n if ($this->isUpdate() || $this->isStore()) {\n $rules = array_merge($rules, [\n 'name' => 'required|max:191',\n 'price' => 'required',\n 'categories' => 'required'\n ]);\n\n }\n\n if ($this->isStore()) {\n\n $rules = $this->downloadableStoreRules($rules);\n $rules = array_merge($rules, [\n 'slug' => 'max:191|unique:ecommerce_products,slug'\n ]);\n $rules = array_merge($rules, []);\n }\n\n if ($this->isUpdate()) {\n $product = $this->route('product');\n\n $rules = $this->downloadableUpdateRules($rules, $product);\n\n $rules = array_merge($rules, [\n 'slug' => 'max:191|unique:ecommerce_products,slug,' . $product->id,\n ]);\n $rules = array_merge($rules, []);\n }\n\n\n\n return $rules;\n }", "title": "" }, { "docid": "9504152cce2bfe32ad232f390445a53c", "score": "0.3716202", "text": "public function properties()\n {\n return $this->belongsTo(\\App\\Models\\Property::class, 'feature_property_id', 'property_id');\n }", "title": "" }, { "docid": "039f8707fdc49c684a3ac68666842308", "score": "0.37113997", "text": "public function supportformations()\n {\n return $this->hasMany('App\\Supportformation');\n }", "title": "" }, { "docid": "0db1cc12883b82ffa437fc7250c54105", "score": "0.37078166", "text": "public function UserDevicePairingClaim(string $pairingCode): GraphQLOperationMutation\n {\n return $this->prepareExecution(\n Globals::OAUTH_ACCESS_AS_AGENT_USER,\n Globals::OAUTH_SCOPE_USER,\n Globals::GRAPHQL_OPERATION_TYPE_MUTATION,\n 'UserDevicePairingClaim',\n ['pairing_code' => ['value' => $pairingCode, 'type' => 'string']],\n ['id', 'name', 'uuid', 'created_at']\n );\n }", "title": "" } ]
fb30ab5680d32db45d6f743cf13ab418
Tests provided suite specifications.
[ { "docid": "44d5108117fe06ddf4d57e11d2c16251", "score": "0.0", "text": "public function test(Environment $env, SpecificationIterator $iterator, $skip)\n {\n return $this->baseTester->test($env, $iterator, $skip);\n }", "title": "" } ]
[ { "docid": "b85b1b357ad149f6430e05699b32d397", "score": "0.66316855", "text": "public function supportsSuite(Suite $suite);", "title": "" }, { "docid": "e878e63ac76806044276c6020d875df9", "score": "0.66018254", "text": "public function test()\n {\n foreach (['unit', 'cli', 'functional', 'acceptance'] as $suite) {\n if ($this->hasContent(\"tests/{$suite}\")) {\n $method = 'test' . ucfirst($suite);\n $this->{$method}();\n }\n }\n }", "title": "" }, { "docid": "c40aa2600f4eaf8dfab3e329229e649d", "score": "0.6420114", "text": "public static function suite() {\n\n\t\t$suite = new PHPUnit_Framework_TestSuite('All Recon App related class tests');\n\t\t\n\t\t$pluginTestPath = array('Plugin', 'Elastic', 'Test', 'Case');\n\n\t\t/* Datasource */\n\t\t$suite->addTestFile(APP . implode(DS, array_merge($pluginTestPath, array('Model', 'DataSource', 'ElasticSourceTest.php'))));\n\n\t\t/* Behaviors */\n\t\t$suite->addTestFile(APP . implode(DS, array_merge($pluginTestPath, array('Model', 'Behavior', 'IndexableBehaviorTest.php'))));\n\t\t\n\t\treturn $suite;\n\t}", "title": "" }, { "docid": "47d5be6480ee7a9a8f4e7550c0fb0c8f", "score": "0.64027625", "text": "public function start_test_suite( $suite ) {}", "title": "" }, { "docid": "f8ad0a755b6c1a0d32f0e495f02e2a58", "score": "0.6320285", "text": "public function run_tests()\n {\n }", "title": "" }, { "docid": "2444e83ed71dcc48a3750c91f326551b", "score": "0.628769", "text": "private function initSuites(): void\n {\n if (is_array($this->suitesName)) {\n foreach ($this->suitesName as $suiteName) {\n $this->loadedSuites[$suiteName] = $this->createFullSuite($suiteName, $this->configuration->getPath());\n }\n } else {\n foreach ($this->files as $path) {\n try {\n $parser = new Parser($path);\n if (($class = $parser->getClass()) !== null) {\n $suite = $this->createSuite($path, $class);\n if (count($suite->getFunctions()) > 0) {\n $this->loadedSuites[$path] = $suite;\n }\n }\n } catch (NoClassInFileException $e) {\n continue;\n }\n }\n }\n }", "title": "" }, { "docid": "4917f80bc717edbeabc12e39d830ff90", "score": "0.627419", "text": "public function run_tests() {\n\t\tforeach ( $this->groups as $group ) {\n\t\t\tforeach ( $this->tests as $test ) {\n\t\t\t\t$this->run_test( $this->num_tests, $test, $group );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3544ede7f1e32096a48f02aecb9c1edf", "score": "0.62445563", "text": "public function AllTests() {\n $this->TestSuite('All tests');\n }", "title": "" }, { "docid": "1a6dd22d5111ac4a4c9f40d9804cef96", "score": "0.6230901", "text": "public static function suite()\n {\n $suite = new PHPUnit_Framework_TestSuite();\n $suite->addTest(Collections_List_AllTests::suite());\n\n // Start remaining tests...\n $suite->addTestSuite('Collections_TypedArrayTest');\n return $suite;\n }", "title": "" }, { "docid": "8ce618dab7bebd133fa5fcbdbf38fb09", "score": "0.62083614", "text": "public static function suite()\n {\n $suite = new PHPUnit_Framework_TestSuite();\n $suite->addTestSuite('HTTP_OAuthProviderTest');\n $suite->addTestSuite('HTTP_OAuthProvider_ConsumerTest');\n $suite->addTestSuite('HTTP_OAuthProvider_RequestTest');\n $suite->addTestSuite('HTTP_OAuthProvider_SignatureTest');\n $suite->addTestSuite('HTTP_OAuthProvider_Signature_HMAC_SHA1Test');\n $suite->addTestSuite('HTTP_OAuthProvider_Signature_RSA_SHA1Test');\n $suite->addTestSuite('HTTP_OAuthProvider_Store_CacheLiteTest');\n $suite->addTestSuite('HTTP_OAuthProvider_Store_MemcacheTest');\n $suite->addTestSuite('HTTP_OAuthProvider_Store_MemcachedTest');\n $suite->addTestSuite('HTTP_OAuthProvider_Store_StaticTest');\n return $suite;\n }", "title": "" }, { "docid": "3762d3de45cce3ac0fe647b02f33e30a", "score": "0.6161729", "text": "public function test(array $suiteNames): CollectionBuilder {\n return $this->getTaskPhpunitRun($suiteNames);\n }", "title": "" }, { "docid": "469a23202387931b1e539ce4f3732842", "score": "0.6156402", "text": "public function setupSuite(Suite $suite);", "title": "" }, { "docid": "ece1ed0fd027f66327d48aae08342b7a", "score": "0.6129811", "text": "function doTests()\n {\n // The mother of all interop tests.\n $dowsdl = array(0, 1);\n foreach ($this->tests as $test) {\n $this->currentTest = $test;\n foreach ($dowsdl as $usewsdl) {\n $this->useWSDL = $usewsdl;\n foreach ($this->paramTypes as $ptype) {\n // Skip a pointless test.\n if ($usewsdl && $ptype == 'soapval') {\n break;\n }\n if (stristr($this->currentTest, 'Round 3') && !$usewsdl) {\n break;\n }\n $this->paramType = $ptype;\n $this->doTest();\n }\n }\n }\n }", "title": "" }, { "docid": "06a56543cb54d009629fec394bac594e", "score": "0.6126557", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "title": "" }, { "docid": "06a56543cb54d009629fec394bac594e", "score": "0.6126557", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "title": "" }, { "docid": "06a56543cb54d009629fec394bac594e", "score": "0.6126557", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "title": "" }, { "docid": "06a56543cb54d009629fec394bac594e", "score": "0.6126557", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "title": "" }, { "docid": "06a56543cb54d009629fec394bac594e", "score": "0.6126557", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "title": "" }, { "docid": "06a56543cb54d009629fec394bac594e", "score": "0.6126557", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n \t\tPHPUnit_TextUI_TestRunner::run( $suite);\n \t}", "title": "" }, { "docid": "96448936cebae6742708c7633001f8e7", "score": "0.60942584", "text": "function runtests() {\n\t\t// This is blank, just here when I need it.\n\t}", "title": "" }, { "docid": "c9548b6a8358bdeb1d2635e2e20082f1", "score": "0.60699403", "text": "function doTests() {\n // the mother of all interop tests\n $dowsdl = array(0,1);\n foreach($this->tests as $test) {\n $this->currentTest = $test;\n foreach($dowsdl as $usewsdl) {\n $this->useWSDL = $usewsdl;\n foreach($this->paramTypes as $ptype) {\n // skip a pointless test\n if ($usewsdl && $ptype == 'soapval') break;\n $this->paramType = $ptype;\n $this->doTest();\n }\n }\n }\n }", "title": "" }, { "docid": "8db0db0d1fc756774b0ab1e219fe2e69", "score": "0.6064073", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite(__CLASS__);\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "title": "" }, { "docid": "8db0db0d1fc756774b0ab1e219fe2e69", "score": "0.6064073", "text": "static function main() {\n\t\t$suite = new PHPUnit_Framework_TestSuite(__CLASS__);\n\t\t$result = PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "title": "" }, { "docid": "3a2c492fb200c8fc2c7dd0d1a0ed4727", "score": "0.6040614", "text": "static function main() {\n $suite = new PHPUnit_Framework_TestSuite( __CLASS__);\n PHPUnit_TextUI_TestRunner::run( $suite);\n }", "title": "" }, { "docid": "7e82f4d72f8d2fcba40f59e1ea106282", "score": "0.60237074", "text": "public function testCheckIfOverviewContainsSuite()\n {\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->see('TestSuite1')\n ->assertViewHas('testSuites');\n\n }", "title": "" }, { "docid": "016f8d4c4fa04afdaddc1a4ee94fb882", "score": "0.60043997", "text": "public static function get_tests()\n {\n }", "title": "" }, { "docid": "c4f5628f64c20ddc1981431003d63b8c", "score": "0.59940624", "text": "static public function suite() {\n return Dev_Unit::load_with_prefix(\n 'Test.Log.', 'LevelCase', 'ContextCase', 'HandlerBuilderCase',\n 'DispatcherCase', 'HandlerBaseCase', 'StreamHandlerCase',\n 'FileHandlerCase', 'SyslogHandlerCase', 'FirePHPHandlerCase'\n );\n }", "title": "" }, { "docid": "3024932ef93298bdd8cb48ad26d6aab9", "score": "0.5986736", "text": "function loadSuite($names=null)\n{\n global $_tests;\n $result = array();\n foreach ($_tests as $package) {\n if (!$names) {\n $selected = $package['files'];\n } else {\n $selected = selectTests($package, $names);\n }\n $result = array_merge($result, loadTests($package['dir'], $selected));\n }\n\n return $result;\n}", "title": "" }, { "docid": "b4a6ad81fcdb18537939e1dc684fe971", "score": "0.59811926", "text": "function generalTest()\n\t{\n\t\t//TODO\n\t}", "title": "" }, { "docid": "65ee7009088cf1dc9342edc703c2927d", "score": "0.5980212", "text": "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 }", "title": "" }, { "docid": "f393a42996cda02695700f09e9c1d007", "score": "0.5954915", "text": "private function _prepareSuitesAndModules() {\n $suites = [];\n $modules = [];\n foreach ($this->_files as $file) {\n $suite = $file->getSuite();\n if (!empty($suite) && !isset($suites[$suite])) {\n $suites[$suite] = true;\n }\n $module = $file->getModule();\n if (!isset($modules[$module])) {\n $modules[$module] = true;\n }\n }\n $this->_required_suites = array_keys($suites);\n $this->_required_modules = array_keys($modules);\n }", "title": "" }, { "docid": "6f27a7a0b79291cc4b8bf7e062259985", "score": "0.5953319", "text": "public static function suite()\n {\n $suite = new PHPUnit_Framework_TestSuite('PHP CodeSniffer Standards');\n $baseDir = pathinfo(getcwd().\"/Ongr\", PATHINFO_DIRNAME);\n\n \\PHP_CodeSniffer::setConfigData('installed_paths', $baseDir);\n $path = pathinfo(\\PHP_CodeSniffer::getInstalledStandardPath('Ongr'), PATHINFO_DIRNAME);\n $testsDir = $path . DIRECTORY_SEPARATOR . 'Tests' . DIRECTORY_SEPARATOR . 'Unit';\n\n $directoryIterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($testsDir));\n\n /** @var \\SplFileInfo $fileinfo */\n foreach ($directoryIterator as $file) {\n // Skip hidden and extension must be php.\n if ($file->getFilename()[0] === '.' || pathinfo($file, PATHINFO_EXTENSION) !== 'php') {\n continue;\n }\n\n $className = str_replace(\n [$baseDir . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR],\n ['', '\\\\'],\n substr($file, 0, -4)\n );\n\n $suite->addTest(new $className('getErrorList'));\n }\n\n return $suite;\n }", "title": "" }, { "docid": "6b6ede4f3461df47a967ee0c9dd75338", "score": "0.5926718", "text": "static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite(__CLASS__);\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "63b0137bb8252ddcd290c433a7fdc11e", "score": "0.5899611", "text": "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 }", "title": "" }, { "docid": "a266d2d2738949d312960b96f594bf14", "score": "0.5888494", "text": "static public function suite()\n {\n // Create an instance of a test suite\n $suite = new \\PHPUnit\\Framework\\TestSuite('Ztal');\n\n $suite->addTestSuite('Ztal\\Tests\\AutoloaderTests');\n $suite->addTestSuite('Ztal\\Tests\\Table\\Paginator\\PaginatorFirstPageOneTests');\n $suite->addTestSuite('Ztal\\Tests\\Table\\Paginator\\PaginatorFirstPageZeroTests');\n\n return $suite;\n }", "title": "" }, { "docid": "68e0722233bfa7614ed863da82b35010", "score": "0.5869855", "text": "public function getTests();", "title": "" }, { "docid": "68e0722233bfa7614ed863da82b35010", "score": "0.5869855", "text": "public function getTests();", "title": "" }, { "docid": "fe5d3b0dcc3678eea83d831e8d10e8db", "score": "0.58532816", "text": "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 }", "title": "" }, { "docid": "6394315362c2da05ac791b800263b2c7", "score": "0.58469677", "text": "public static function main()\n {\n require_once \"PHPUnit/TextUI/TestRunner.php\";\n\n $suite = new PHPUnit_Framework_TestSuite(\"Zend_Form_Element_CheckboxTest\");\n $result = PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "2558ec8c4e334f67abe55341c3bc21b6", "score": "0.58307016", "text": "public function testGetAll() {\n }", "title": "" }, { "docid": "12a865806fd6f32be282a59b88748319", "score": "0.5826444", "text": "public function provideTestCases()\n {\n return [\n ['time', ['time'], false],\n ['bar', null, true],\n ];\n }", "title": "" }, { "docid": "4c9d77bd9ec58e246a30658a7215c7a2", "score": "0.5819092", "text": "public function provideTo($suite, $arguments) {\n $empty= true;\n\n foreach ($this->classes() as $class) {\n if (Modifiers::isAbstract($class->getModifiers())) {\n continue;\n } else if ($class->isSubclassOf(TestCase::class)) {\n $suite->addTestClass($class, $arguments);\n $empty= false;\n } else if (0 === substr_compare($class->getName(), 'Test', -4)) {\n $suite->addTestClass($class, $arguments);\n $empty= false;\n }\n }\n\n if ($empty) {\n throw new IllegalArgumentException('Cannot find any test cases in '.$this->toString());\n }\n }", "title": "" }, { "docid": "d6960d716713ff326e0269a210108a29", "score": "0.5802471", "text": "public static function suite() {\n\t\t$suite = new PHPUnit_Framework_TestSuite('All Postmark Plugin Tests');\n\n\t\t$basePath = CakePlugin::path('Postmark') . DS . 'Test' . DS . 'Case' . DS;\n\n\t\t$suite->addTestFile($basePath . 'Network' . DS . 'Email' . DS . 'PostmarkTransportTest.php');\n\t\t$suite->addTestFile($basePath . 'Controller' . DS . 'PostmarkAppControllerTest.php');\n\n\t\treturn $suite;\n\t}", "title": "" }, { "docid": "3c87e514d6adf4b5d8e1ff1d883533a4", "score": "0.5793618", "text": "static public function suite() {\n return Dev_Unit::load_with_prefix('Test.Templates.HTML.Forms.', 'Case');\n }", "title": "" }, { "docid": "25b0fecdbec767916f4ba904490aedf0", "score": "0.57775646", "text": "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "title": "" }, { "docid": "1f684f015f2d62e4b2dc1c3e56768a28", "score": "0.57745427", "text": "private function config_OSF_TestsSuites()\n {\n // Get package info\n $configPath = \"{$this->osf_web_services_folder}/{$this->osf_tests_suites_folder}\";\n\n // Configure\n $this->span(\"Configuring...\", 'info');\n // Web Service paths\n $this->sed(\"REPLACEME\", \"{$this->osf_web_services_folder}/StructuredDynamics/osf\",\n \"{$configPath}/phpunit.xml\");\n $this->sed(\"\\$this-\\>osfInstanceFolder = \\\".*\\\";\", \"\\$this-\\>osfInstanceFolder = \\\"{$this->osf_web_services_folder}/{$this->osf_web_services_ns}/\\\";\",\n \"{$configPath}/Config.php\");\n $this->sed(\"\\$this-\\>endpointUrl = \\\".*/ws/\\\";\", \"\\$this-\\>endpointUrl = \\\"http://{$this->osf_web_services_domain}/ws/\\\";\",\n \"{$configPath}/Config.php\");\n $this->sed(\"\\$this-\\>endpointUri = \\\".*/wsf/ws/\\\";\", \"\\$this-\\>endpointUri = \\\"http://{$this->osf_web_services_domain}/wsf/ws/\\\";\",\n \"{$configPath}/Config.php\");\n $this->sed(\"\\$this-\\>userID = '.*/wsf/users/tests-suites';\", \"\\$this-\\>userID = 'http://{$this->osf_web_services_domain}/wsf/users/tests-suites';\",\n \"{$configPath}/Config.php\");\n $this->sed(\"\\$this-\\>adminGroup = '.*/wsf/groups/administrators';\", \"\\$this-\\>adminGroup = 'http://{$this->osf_web_services_domain}/wsf/groups/administrators';\",\n \"{$configPath}/Config.php\");\n $this->sed(\"\\$this-\\>testGroup = \\\".*/wsf/groups/unittests\\\";\", \"\\$this-\\>testGroup = \\\"http://{$this->osf_web_services_domain}/wsf/groups/unittests\\\";\",\n \"{$configPath}/Config.php\");\n $this->sed(\"\\$this-\\>testUser = \\\".*/wsf/users/unittests\\\";\", \"\\$this-\\>testUser = \\\"http://{$this->osf_web_services_domain}/wsf/users/unittests\\\";\",\n \"{$configPath}/Config.php\");\n // Web Service credentials\n $this->sed(\"\\$this-\\>applicationID = '.*';\", \"\\$this-\\>applicationID = '{$this->application_id}';\",\n \"{$configPath}/Config.php\");\n $this->sed(\"\\$this-\\>apiKey = '.*';\", \"\\$this-\\>apiKey = '{$this->api_key}';\",\n \"{$configPath}/Config.php\");\n }", "title": "" }, { "docid": "102279422caa0a5c09bf8318c8d1a0e9", "score": "0.5768809", "text": "public static function suite() {\n\t\t$plugin = preg_replace('/^All([\\w]+)Test$/', '$1', __CLASS__);\n\t\t$suite = new NetCommonsTestSuite(sprintf('All %s Plugin tests', $plugin));\n\t\t$suite->addTestDirectoryRecursive(CakePlugin::path($plugin) . 'Test' . DS . 'Case');\n\t\treturn $suite;\n\t}", "title": "" }, { "docid": "5a6f3d87d75dae8734335bd531ab45d6", "score": "0.5766446", "text": "public function testLoader()\n {\n $suiteCollection = new SuiteCollection(array(\n TestUtil::createSuite(array(\n 'subjects' => array('benchOne', 'benchTwo'),\n 'benchmarks' => array('BenchOne', 'BenchTwo'),\n 'groups' => array('one', 'two'),\n 'output_time_unit' => 'milliseconds',\n 'output_mode' => 'throughput',\n 'revs' => 5,\n 'warmup' => 2,\n 'sleep' => 9,\n 'env' => array(\n 'system' => array(\n 'os' => 'linux',\n 'memory' => 8096,\n 'distribution' => 'debian',\n ),\n 'vcs' => array(\n 'system' => 'git',\n 'branch' => 'foo',\n ),\n ),\n )),\n TestUtil::createSuite(),\n ));\n\n $this->persister->persist($suiteCollection);\n $suiteCollection = $this->loader->load(new Comparison('$in', 'run', array(1, 2)));\n\n $suites = $suiteCollection->getSuites();\n $this->assertCount(2, $suites);\n\n $suite = current($suites);\n\n // assert env information\n $envInformations = $suite->getEnvInformations();\n $this->assertCount(2, $envInformations);\n $this->assertEquals('system', $envInformations[0]->getName());\n $this->assertEquals(array(\n 'os' => 'linux',\n 'memory' => 8096,\n 'distribution' => 'debian',\n ), iterator_to_array($envInformations[0]));\n $this->assertEquals('vcs', $envInformations[1]->getName());\n\n // assert benchmarks\n $benchmarks = $suite->getBenchmarks();\n $this->assertCount(2, $benchmarks);\n $this->assertEquals('BenchOne', $benchmarks[0]->getClass());\n $this->assertEquals('BenchTwo', $benchmarks[1]->getClass());\n\n // assert subjects\n $subjects = array_values($benchmarks[0]->getSubjects());\n $this->assertCount(2, $subjects);\n $this->assertEquals('benchOne', $subjects[0]->getName());\n $this->assertEquals('benchTwo', $subjects[1]->getName());\n $subject = $subjects[0];\n $this->assertEquals(array('one', 'two'), $subject->getGroups());\n $this->assertEquals(5, $subject->getRevs());\n $this->assertEquals(2, $subject->getWarmup());\n $this->assertEquals(9, $subject->getSleep());\n $this->assertEquals('milliseconds', $subject->getOutputTimeUnit());\n $this->assertEquals('throughput', $subject->getOutputMode());\n\n // assert variants\n $variants = $subject->getVariants();\n $this->assertCount(1, $variants);\n $variant = current($variants);\n\n // assert iterations\n $iterations = $variant->getIterations();\n $this->assertCount(2, $iterations);\n $iteration = current($iterations);\n $this->assertEquals(10, $iteration->getTime());\n $this->assertEquals(200, $iteration->getMemory());\n }", "title": "" }, { "docid": "a316b14bfc532cebcd81d9c011989a2b", "score": "0.5759478", "text": "public function testSupplementaryProgramsGet()\n {\n\n }", "title": "" }, { "docid": "2ffec56f105680b1c4ebdd4b7f486fef", "score": "0.5756606", "text": "public static function main()\n {\n\t\t$suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Sales Contract Backend Tests');\n PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "title": "" }, { "docid": "1b72a636072986d8d7e7d00a87e90e2f", "score": "0.5739037", "text": "function suite($title, $fn=null) {\n $desc = new TestSuite($title, $fn);\n if (!$fn) {\n Util::set_default_filename_and_lineno($desc, debug_backtrace());\n }\n $desc->set_parent(Preview::$world->current());\n Preview::$world->push($desc);\n $desc->setup();\n Preview::$world->pop();\n return new TestAPI($desc);\n}", "title": "" }, { "docid": "93b20c548cdec1b4315c33d2fd03c8ff", "score": "0.5728966", "text": "public static function main()\n {\n\t\t$suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Felamimail Message Model Tests');\n PHPUnit_TextUI_TestRunner::run($suite);\n\t}", "title": "" }, { "docid": "d230410b0f7e63adec05c5a47d6b8f64", "score": "0.5725274", "text": "public function getActiveTestSuites();", "title": "" }, { "docid": "6e6320e89e991794d1d9cfd2bd4d36c0", "score": "0.5724746", "text": "public function testCreateTestSuite()\n {\n Artisan::call('migrate');\n $user = factory(App\\User::class)->create();\n\n $this->actingAs($user)\n ->visit('/library')\n ->seePageIs('/library')\n ->click('#newSuite')\n ->seePageIs('/library/testsuite/create')\n ->type('TestSuite1', 'name')\n ->type('someDescription', 'description')\n ->type('someGoals', 'goals')\n ->press('submit');\n\n $this->seeInDatabase('TestSuite', [\n 'Name' => 'TestSuite1',\n 'TestSuiteDocumentation' => 'someDescription',\n 'TestSuiteGoals' => 'someGoals'\n ]);\n }", "title": "" }, { "docid": "c70aa9108bf58ca7a32f156f0b6f2393", "score": "0.5723501", "text": "public static function main()\n {\n\n PHPUnit_TextUI_TestRunner::run(self::suite());\n }", "title": "" }, { "docid": "b327a0344bec1ad8046a0d8564bac2db", "score": "0.57221335", "text": "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 ActiveSync Controller Calendar Tests');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "4925df85a00d6f37dd89d854214d6926", "score": "0.57188237", "text": "public function run($args) {\n\t\tif (count($args) == 0)\n\t\t\t$args = array(\"all\");\n\t\t\n\t\t$suite = new TestSuite(\"Tikapot \" . $GLOBALS['i18n']['framework']['tests']);\t\t\n\t\tforeach ($args as $arg) {\n\t\t\tif ($arg === \"\")\n\t\t\t\tcontinue;\n\t\t\tswitch ($arg) {\n\t\t\t\tcase \"all\":\n\t\t\t\t\t$suite->addFile(home_dir . \"framework/tests.php\");\n\t\t\t\t\tglobal $app_paths;\n\t\t\t\t\tforeach ($app_paths as $app_path) {\n\t\t\t\t\t\t$this->_test_discover(home_dir . $app_path . \"/\", $suite);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"framework\":\n\t\t\t\t\t$suite->addFile(home_dir . \"framework/tests.php\");\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tglobal $app_paths;\n\t\t\t\t\tforeach ($app_paths as $app_path) {\n\t\t\t\t\t\tif ($arg == $app_path) {\n\t\t\t\t\t\t\t$this->_test_discover(home_dir . $arg . \"/\", $suite);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (file_exists(home_dir . $app_path . \"/\".$arg.\"/tests.php\"))\n\t\t\t\t\t\t\t$suite->addFile(home_dir . $app_path . \"/\".$arg.\"/tests.php\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$suite->run(new TextReporter());\n\t}", "title": "" }, { "docid": "c0c078b7038e1396bc4e41417091e0ed", "score": "0.57135254", "text": "public function testAllModelSets()\n {\n }", "title": "" }, { "docid": "36617ac7824230b4cac55d037cb1490a", "score": "0.57037795", "text": "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 }", "title": "" }, { "docid": "89838dc98d49dd28e39096dd891f2e8a", "score": "0.5691195", "text": "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Crm_Export_OdsTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "3bcbc08a74a891a469ca41a5094a8cfd", "score": "0.5684284", "text": "public static function suite()\n {\n $suite = new PHPUnit_Framework_TestSuite('UNL_UCBCN_Manager tests');\n /** Add testsuites, if there is. */\n $suite->addTestSuite('UNL_UCBCN_ManagerTest');\n $suite->addTestSuite('UNL_UCBCN_Manager_CreateEventTest');\n $suite->addTestSuite('UNL_UCBCN_Manager_EventActionsTest');\n return $suite;\n }", "title": "" }, { "docid": "10c394783a67b2458a0be11f77236d9d", "score": "0.5654365", "text": "function testCaseList() {\n\n\t}", "title": "" }, { "docid": "17d78c95785ea7354fdd4dcebf6a655d", "score": "0.56362444", "text": "public static function main()\n\t{\n\t\trequire_once 'PHPUnit/TextUI/TestRunner.php';\n\n\t\t$suite = new PHPUnit_Framework_TestSuite('MW_Common_Criteria_Plugin_T3StatusTest');\n\t\tPHPUnit_TextUI_TestRunner::run($suite);\n\t}", "title": "" }, { "docid": "37ea5de59915333e7d92c1a424396f38", "score": "0.56236225", "text": "public static function suite() {\n\t\t$suite = new CakeTestSuite('All SMSFlySource Tests');\n\t\t$basePath = App::pluginPath('SMSFlySource') . 'Test' . DS . 'Case' . DS;\n\t\t$suite->addTestDirectoryRecursive($basePath);\n\n\t\treturn $suite;\n\t}", "title": "" }, { "docid": "f167be41cdbbc1a213e4724a6ac3f6e2", "score": "0.5611556", "text": "public function testCasesWith($arguments) {\n return array($this->testClass->newInstance('run'));\n }", "title": "" }, { "docid": "e7f2fa14497674a42fe2813301beebc7", "score": "0.56078076", "text": "public function runAllTests()\n {\n foreach($this->tests as $test)\n {\n $this->runTest($test, false);\n }\n }", "title": "" }, { "docid": "3d131d1c0cdb07fef6c40142171e4f6a", "score": "0.560591", "text": "public static function suite() {\n\t\t$suite = new CakeTestSuite('All Developer plugins test');\n\t\t$plugins = App::objects('plugin', APP . 'Developer', false);\n\n\t\tforeach ($plugins as $plugin) {\n\t\t\t$path = CakePlugin::path($plugin) . 'Test' . DS . 'Case' . DS;\n\t\t\t$suite->addTestDirectoryRecursive($path);\n\t\t}\n\t\treturn $suite;\n\t}", "title": "" }, { "docid": "3e010a54d06aa704d46263d38daa256d", "score": "0.56057096", "text": "public function validTestsProvider()\n\t {\n\t\treturn array(\n\t\t\t\"generating expanded document and validating it\" => array(\"valid-01\"),\n\t\t\t\"adding one hierarchy node\" => array(\"valid-02\"),\n\t\t\t\"adding three hierarchy nodes\" => array(\"valid-03\"),\n\t\t\t\"moving hierarchy node around\" => array(\"valid-04\"),\n\t\t\t\"testing absence of mandatory attribute of one of the hierarchy nodes\" => array(\"valid-05\"),\n\t\t\t\"changing placement of one of the mandatory leaves (for example, in different choice branch)\" => array(\"valid-06\"),\n\t\t\t\"one mandatory leaf element is removed from schema\" => array(\"valid-07\"),\n\t\t\t\"three mandatory leaves are deleted from schema\" => array(\"valid-08\"),\n\t\t\t\"last-level choice is first selected\" => array(\"valid-09\"),\n\t\t\t\"last-level choice is second selected\" => array(\"valid-10\"),\n\t\t\t\"three choices in a row are wrong\" => array(\"valid-11\"),\n\t\t\t\"processing non-DOMElement nodes (for example, DOMComment)\" => array(\"valid-12\"),\n\t\t\t\"two nodes with the same name have attributes with the same name\" => array(\"valid-13\"),\n\t\t\t\"elements with the same name have similar nametrace\" => array(\"valid-14\"),\n\t\t\t\"elements with the same name have similar nametrace, also the choice change occurs\" => array(\"valid-15\"),\n\t\t\t\"one or more elements in inputelements has absolute addressing\" => array(\"valid-16\"),\n\t\t\t\"all elements in inputelements have absolute addressing\" => array(\"valid-17\"),\n\t\t\t\"schema has multiple root elements\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"valid-18\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\"schema has attribute group for one of nodes\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"valid-19\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\"inserting two hierarchy levels between two elements\" => array(\"valid-20\"),\n\t\t\t\"root element attributes are processed as regular element attributes\" => array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \"valid-21\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t\"choice adjacent to another element which contains another choice\" => array(\"valid-22\"),\n\t\t );\n\t }", "title": "" }, { "docid": "00e929d91d83d0fee266d6dce15f3dc6", "score": "0.5600652", "text": "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tinebase_CustomFieldTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "1d58b8c24c11a4b6faef561e198bebe8", "score": "0.5593542", "text": "public function __construct ()\n {\n $this->setName(__CLASS__);\n $this->addTestSuite('Auth_ManualTest');\n $this->addTestSuite('Auth_DBTest');\n }", "title": "" }, { "docid": "fefba4b27d50f19a074005db2c998459", "score": "0.559351", "text": "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tinebase_ConfigTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "55af1e1c1be3b91d72de5c6dc4751f19", "score": "0.5590055", "text": "public static function suite()\n {\n return new \\PHPUnit_Framework_TestSuite( __CLASS__ );\n }", "title": "" }, { "docid": "55af1e1c1be3b91d72de5c6dc4751f19", "score": "0.5590055", "text": "public static function suite()\n {\n return new \\PHPUnit_Framework_TestSuite( __CLASS__ );\n }", "title": "" }, { "docid": "4938266f5adc6b7e84cb991dfa89eab8", "score": "0.55845654", "text": "public function runningUnitTests()\n {\n }", "title": "" }, { "docid": "a4c12687e93f054902518ef41662df8d", "score": "0.5570823", "text": "public function testScenarioAnalysis()\n {\n }", "title": "" }, { "docid": "b168b8f90454da41139d02dce0d28ae4", "score": "0.55646944", "text": "public function __construct() {\n $this->setName('ConfigurationTestsSuite');\n echo(\"--------------------------------------------------\\n\");\n echo(\"I ConfigurationTestsSuite I\\n\");\n echo(\"--------------------------------------------------\\n\");\n\n echo(\"/ run SelfConfigurationTest ----------------------\\n\");\n $this->addTestSuite('SelfConfigurationTest');\n echo(\"\\ end SelfConfigurationTest ----------------------\\n\");\n\n echo(\"/ run ConfigurationTest --------------------------\\n\");\n $this->addTestSuite('ConfigurationTest');\n echo(\"\\ end ConfigurationTest --------------------------\\n\");\n }", "title": "" }, { "docid": "e440a3e2b13f66620f05f1dfd8d951c1", "score": "0.5563262", "text": "public function run ()\r\n\t{\r\n//\t\t$this->testCommon();\r\n\t\t$this->testShared();\r\n\t}", "title": "" }, { "docid": "9d7ce4b7abc97dcd70711b2b586810cd", "score": "0.5557043", "text": "public function __construct ()\n {\n $this->setName(__CLASS__);\n $this->addTestSuite('Q\\DB_MySQL_SQLSplitterTest');\n $this->addTestSuite('Q\\DB_MySQL_BasicTest');\n $this->addTestSuite('Q\\DB_MySQL_AdvancedTest');\n }", "title": "" }, { "docid": "08546e73d9f22516a5dfa6066c50bb63", "score": "0.55554557", "text": "public static function suite() {\n\t\t$suite = new CakeTestSuite('All MultiColumnUniqueness tests');\n\n\t\t$path = dirname(__FILE__);\n\t\t$suite->addTestDirectory($path . DS . 'Model' . DS . 'Behavior');\n\n\t\treturn $suite;\n\t}", "title": "" }, { "docid": "603b819d1922284d6e677f5967228af2", "score": "0.5555386", "text": "public function switch_OSF_TestsSuites($op = 'install', $pkgVersion = '')\n {\n // Get package info\n $pkgName = \"OSF Tests suites\";\n switch ($pkgVersion) {\n case 'dev':\n $pkgVersion = 'master';\n break;\n default:\n $pkgVersion = $this->osf_tests_suites_version;\n break;\n }\n $installPath = \"{$this->osf_web_services_folder}/{$this->osf_tests_suites_folder}\";\n\n // Check operation mode\n switch ($op) {\n case 'install':\n $this->h2(\"Installing {$pkgName} {$pkgVersion}\");\n // Check if is installed\n if (is_dir(\"{$installPath}/\")) {\n $this->span(\"The package is already installed. Consider upgrading it with the option: --upgrade-osf-tests-suites\", 'warn');\n return;\n }\n $this->install_OSF_TestsSuites($pkgVersion);\n $this->config_OSF_TestsSuites();\n break;\n case 'upgrade':\n $this->h2(\"Upgrading {$pkgName} {$pkgVersion}\");\n // Check if is not installed\n if (!is_dir(\"{$installPath}/\")) {\n $this->span(\"The package is not installed. Consider installing it with the option: --install-osf-tests-suites\", 'warn');\n return;\n }\n $this->upgrade_OSF_TestsSuites($pkgVersion);\n break;\n case 'uninstall':\n $this->h2(\"Uninstalling {$pkgName} {$pkgVersion}\");\n // Check if is not installed\n if (!is_dir(\"{$installPath}/\")) {\n $this->span(\"The package is not installed. Nothing to do.\", 'warn');\n return;\n }\n $this->uninstall_OSF_TestsSuites($pkgVersion);\n break;\n case 'configure':\n $this->h2(\"Configuring {$pkgName} {$pkgVersion}\");\n // Check if is not installed\n if (!is_dir(\"{$installPath}/\")) {\n $this->span(\"The package is not installed. Consider installing it with the option: --install-osf-tests-suites\", 'warn');\n return;\n }\n $this->config_OSF_TestsSuites($pkgVersion);\n break;\n default:\n $this->h2(\"{$pkgName} {$pkgVersion}\");\n $this->span(\"Wrong operation. Nothing to do.\", 'warn');\n return;\n break;\n }\n }", "title": "" }, { "docid": "94b490df2cf618f20818ce61fb5e636f", "score": "0.5554753", "text": "function init_test()\n\t{\n\t\tglobal $suiteCount;\n\t\tglobal $productInfo;\n\t\tglobal $paymentInfo;\n\t\tglobal $customerInfo;\n\t\t/* Help variable */\n\t\t$suiteCount = 1;\n\t\t/* Mock-Up infos */\n\t\t/* product info */\n\t\t$productInfo = new productInfo();\n\t\t$productInfo->productID = 1;\n\t\t$productInfo->buildID = 2;\n\t\t$productInfo->componentType = \"Motherboard\";\n\t\t$productInfo->manufacturer = \"ASUS\";\n\t\t$productInfo->description = \"Socket 1151 Intel Z170 Chipset\";\n\t\t$productInfo->modelNumber = \"Z170-A\";\n\t\t$productInfo->serialNumber = \"AS1234\";\n\t\t$productInfo->rebateValue = \"50\";\n\t\t$productInfo->price = \"235\";\n\t\t$productInfo->warrantyPeriod = 24;\n\t\t$productInfo->warrantyExpiry = \"March 24 2018\";\n\t\t$productInfo->invoiceDate = \"March 24 2016\";\n\t\t$productInfo->invoiceNumber = \"IVWB0001\";\n\t\t$productInfo->salesOrderNumber = \"SWB0001\";\n\t\t$productInfo->itemSKU = 3;\n\t\t/* customer info */\n\t\t$customerInfo = new customerInfo();\n\t\t$customerInfo->buildID = 1;\n\t\t$customerInfo->address = \"1 ABC Drive\";\n\t\t$customerInfo->name = \"John Smith\";\n\t\t$customerInfo->email = \"[email protected]\";\n\t\t$customerInfo->phone = \"6130001111\";\n\t\t$customerInfo->deliveryDate = '2016-03-29';\n\t\t/* Payment info */\n\t\t$paymentInfo = new paymentInfo();\n\t\t$paymentInfo->buildID = 1;\n\t\t$paymentInfo->confirmation = \"Confirmed\";\n\t\t$paymentInfo->paymentMethod = \"Visa\";\n\t\t$paymentInfo->totalValue = 100;\n\t}", "title": "" }, { "docid": "f93658bdd2b65d3ee7f4d363fb2aa767", "score": "0.55352604", "text": "public static function main() {\n PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite(__CLASS__));\n }", "title": "" }, { "docid": "f93658bdd2b65d3ee7f4d363fb2aa767", "score": "0.55352604", "text": "public static function main() {\n PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite(__CLASS__));\n }", "title": "" }, { "docid": "b1ff0171731b9512dd3a005bdb15a30f", "score": "0.5526294", "text": "public static function main()\n {\n PHPUnit_TextUI_TestRunner::run(new PHPUnit_Framework_TestSuite(__CLASS__));\n }", "title": "" }, { "docid": "d67c1520901b4a5aa2da4aa2d4e8258e", "score": "0.55243474", "text": "public function setUp(){\n $this->testCases = Files::listFilesInFolder(__DIR__.\"/../../examples/sections/components\",\"ExamplePanel.php\");\n }", "title": "" }, { "docid": "658ae11d3192266a78b1e88e9d279042", "score": "0.5522635", "text": "public static function suite() {\n $suite = new PHPUnit_Framework_TestSuite('Test de todos los modelos');\n $path = APP_TEST_CASES . DS . 'Model' . DS;\n $suite->addTestFile($path . 'BackupTest.php');\n $suite->addTestFile($path . 'CtacteTest.php');\n $suite->addTestFile($path . 'ClienteTest.php');\n $suite->addTestFile($path . 'ItemCtacteTest.php');\n $suite->addTestFile($path . 'NoticiaTest.php');\n $suite->addTestFile($path . 'ServicioBackupTest.php');\n $suite->addTestFile($path . 'ServicioBackupUsuarioTest.php');\n $suite->addTestFile($path . 'ServiciosClienteTest.php');\n $suite->addTestFile($path . 'UsuarioTest.php');\n $suite->addTestFile($path . 'FeedbackTest.php');\n return $suite;\n }", "title": "" }, { "docid": "81a018f2eaa4edfd221c76958c3e1cd4", "score": "0.5517847", "text": "public function testGetExpert()\n {\n }", "title": "" }, { "docid": "a852957f3a192911a33179e732a4fa4d", "score": "0.55105525", "text": "public function getSubSpecs();", "title": "" }, { "docid": "76c1a825c8d98f49140426e0f68c8ba3", "score": "0.55105275", "text": "public function testAcceptance()\n {\n $this->taskCodecept()\n ->suite('acceptance')\n ->run();\n }", "title": "" }, { "docid": "bf13765454b4594ae113448d259dd72c", "score": "0.54814994", "text": "protected function get_tests() {\r\n return array(\r\n \"get_requests\",\r\n \"submit_request\",\r\n \"approve_request\",\r\n \"deny_request\"\r\n );\r\n }", "title": "" }, { "docid": "8447b0ccfb2236f3ff9cf97877bd7e79", "score": "0.5463426", "text": "public function testFunctional()\n {\n $this->taskCodecept()\n ->suite('functional')\n ->run();\n }", "title": "" }, { "docid": "acdc2222588f2f40204f36860815180f", "score": "0.54615676", "text": "public static function main() {\n require_once 'PHPUnit/TextUI/TestRunner.php';\n\n $suite = new PHPUnit_Framework_TestSuite('HappyFieldTest');\n $result = PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "f09b746c682c92b3ee5efbcd247a371e", "score": "0.5447748", "text": "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 }", "title": "" }, { "docid": "d677077eef91a855692b23c2959d66bb", "score": "0.5446251", "text": "public static function main()\n {\n $suite = new TestSuite(__CLASS__);\n $result = (new resources_Runner())->run($suite);\n }", "title": "" }, { "docid": "d677077eef91a855692b23c2959d66bb", "score": "0.5446251", "text": "public static function main()\n {\n $suite = new TestSuite(__CLASS__);\n $result = (new resources_Runner())->run($suite);\n }", "title": "" }, { "docid": "67e7cf59fbad505ef623662f4e3b0b89", "score": "0.54347754", "text": "public static function main()\n {\n $suite = new PHPUnit_Framework_TestSuite('Tinebase_NotesTest');\n PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "92bc066cb4c4323812da07161a57fd3c", "score": "0.5433009", "text": "public function getTests()\n {\n return array();\n }", "title": "" }, { "docid": "b52d707ca0ceadf02530334be5c16417", "score": "0.5424176", "text": "public static function main()\n {\n require_once 'PHPUnit/TextUI/TestRunner.php';\n\n $suite = new PHPUnit_Framework_TestSuite('BlocksTest');\n $result = PHPUnit_TextUI_TestRunner::run($suite);\n }", "title": "" }, { "docid": "ced534a8636285015cdf0623f61b63cd", "score": "0.54017293", "text": "public static function suite() {\n\t\t$suite = new CakeTestSuite('All PdfGenerator Tests');\n\n\t\t$path = App::pluginPath('PdfGenerator') . 'Test' . DS . 'Case' . DS;\n\t\t$suite->addTestDirectoryRecursive($path);\n\t\treturn $suite;\n\t}", "title": "" }, { "docid": "5bcdea26ce61a58136392403265e2632", "score": "0.5391397", "text": "public function testGetRuns()\n {\n $this->assertEquals($this->command->getRuns(), array('t' => 'testCommand', 'test-report' => 'testCommand'));\n }", "title": "" }, { "docid": "dfdab3a4c833cf78247586e253958dd4", "score": "0.53895414", "text": "public function setupTest()\n {\n \n }", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "1a05bb6625381ceff1da664e4cac7ad6", "score": "0.0", "text": "public function create()\n\t{\n\t\treturn View::make('pages.user.create');\n\t}", "title": "" } ]
[ { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75663006", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "1f9733369c1aaf55c73aa4d1a8a80882", "score": "0.74566424", "text": "public function create()\n {\n\n return view('resources.create');\n\n }", "title": "" }, { "docid": "1da53c4d224bfa3bc44c0fabd927bedd", "score": "0.7455584", "text": "public function create()\n {\n return view ('rol.form_create');\n }", "title": "" }, { "docid": "4c4b7c47a2d71e26b29b9caea091a07c", "score": "0.7393118", "text": "public function showCreateForm()\n {\n $this->authorize('create', Project::class);\n\n return view('project.create', [\n 'action' => 'create',\n ]);\n }", "title": "" }, { "docid": "edabb98341a0b5aadd47c2864942b8db", "score": "0.7339739", "text": "protected function create()\n {\n $form = Form::create($this->resource);\n $model = $form->model;\n\n $model->hasAccessOrFail('create');\n\n $model->fill($this->getOldInput());\n\n $form->fields()->each(function (Field $field) use (&$model) {\n $field->setValue($model);\n });\n\n return view('crud::form.create', compact('form'));\n }", "title": "" }, { "docid": "4734584f2f8340a42973a0d555da6c67", "score": "0.7328834", "text": "public function create()\n {\n return view(\"superadmin.form\");\n }", "title": "" }, { "docid": "10d532d72b585493a6ca515a12bc3a2c", "score": "0.7321179", "text": "protected function showCreateForm()\n\t{\n\n\t\treturn Response::view('adm/IAS/create');\n\n\t}", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "6ed61a57fb61b517537e754054cffc2f", "score": "0.7257705", "text": "public function create()\n {\n return view(\"stok.form\");\n }", "title": "" }, { "docid": "d777482ca48a952bda74d0486cdad76a", "score": "0.7237927", "text": "public function create()\n {\n return \"Here is the creating form page.\";\n }", "title": "" }, { "docid": "8a257056a97a8ef04b6027c8bfb8cad1", "score": "0.723185", "text": "public function create()\n {\n\n $title = 'Add '. $this->getName();\n $form = $this->form($this->getFormClass(), [\n 'method' => 'POST',\n 'url' => route($this->getRouteFor('store')),\n ]);\n return view('.admin.form', compact('form', 'title'));\n }", "title": "" }, { "docid": "f5f050d80230f2f0b6313a13b65e7a0b", "score": "0.72228223", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n $form->add('question', 'text', array('label' => 'Ask Your Question :')); \n $form->add('answer', 'text', array('label' => 'Give an answer :'));\n $form->add('submit', 'submit', array('label' => 'Submit question'));\n\n return $this->render('FaqBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "4b9c0332c0bc5feb4fa5c4c15ff4cda0", "score": "0.722023", "text": "public function create()\n {\n $this->authorize('create', $this->getResourceModel());\n\n $class = $this->getResourceModel();\n return view($this->getResourceCreatePath(), $this->filterCreateViewData([\n 'record' => new $class(),\n ] + $this->resourceData()));\n }", "title": "" }, { "docid": "7e6cbda13a4d6999c8e363f25258eeb1", "score": "0.7208485", "text": "public function showCreateForm()\n {\n return view('user.create');\n }", "title": "" }, { "docid": "85bc1c405768493e40df217a0040f018", "score": "0.7191366", "text": "function showCreateForm(){\n return view('admin.Direktori.Pendeta.create');\n }", "title": "" }, { "docid": "9493a84894964b34fd6021b3786bcc7a", "score": "0.71894634", "text": "public function create()\n {\n return view('crops.forms.create');\n }", "title": "" }, { "docid": "68716ed8c8a7c02d13766dd274f478a3", "score": "0.718268", "text": "public function create()\n {\n return view('user_resources/create');\n }", "title": "" }, { "docid": "643073da4582f0c5ee209f1f696bb305", "score": "0.7166686", "text": "public function create()\n {\n return view('admin/records/forms/record-create-form');\n }", "title": "" }, { "docid": "ca8a62edbc9efc96246dc89065570720", "score": "0.71638685", "text": "public function newAction()\n {\n $this->loggerStdout->log('UsersController: display the creation form');\n\n\n }", "title": "" }, { "docid": "86e44150333771a80ff3634ffc76f344", "score": "0.71529675", "text": "public function create()\n {\n return view('dashboard.form.create');\n }", "title": "" }, { "docid": "75889c35cd5f200bf02a5b21774293e1", "score": "0.7137003", "text": "public function create()\n {\n $this->data['titlePage'] = trans('admin.obj_new',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconNew ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n $this->data['category'] = $this->getModelArray($this->modelCategory);\n $this->data['province'] = $this->getModelArray($this->modelProvince);\n $this->data['district'] = $this->getModelArray($this->modelDistrict);\n $this->data['ward'] = $this->getModelArray($this->modelWard);\n $this->data['direction'] = $this->getModelArray($this->modelDirection);\n\n return view(GetViewAdminResource($this->resourceView, 'create'))->with($this->data);\n }", "title": "" }, { "docid": "0a067c68f8000d9eb913daf36e5e607c", "score": "0.712034", "text": "public function create()\n {\n return view('FullForm.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "c88daeaad1f2ef73dd9534351ceea67a", "score": "0.70962554", "text": "public function newAction()\n {\n $entity = new FormEntity();\n $entity->setTemplate('keltanasTrackingBundle:Form:form.html.twig');\n $form = $this->createCreateForm($entity);\n\n return $this->render('keltanasTrackingBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.708025", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "856274cb86788ad9604003f12dd5060c", "score": "0.7073722", "text": "public function create()\n {\n return view('carusel.new');\n }", "title": "" }, { "docid": "7545e6950b9a4b4ee7a1ca28789b55aa", "score": "0.7072655", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t\t$this->view->render('signin', 'create');\n\t}", "title": "" }, { "docid": "8e0fde88926c98fb2c54ba67ab5b36a7", "score": "0.7061749", "text": "public function create()\n\t{\n\t\treturn View::make('librarians.create');\n\t}", "title": "" }, { "docid": "345c70747deda30c3482e759c25c4d12", "score": "0.706081", "text": "public function create()\n {\n return view('passenger.forms.create');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "20ab9d62fc4da5013c56daa9183bfe28", "score": "0.70571035", "text": "public function create()\n {\n return view('admin.client.form');\n }", "title": "" }, { "docid": "b7f63db5c5ecb7bba494b8a81ce69874", "score": "0.70475084", "text": "public function create(AdminResource $resource)\n {\n $form = $resource->getForm();\n\n return view('admin::resource.form', compact('form'));\n }", "title": "" }, { "docid": "8f53ed51f8136e8e32a2c0525120a50f", "score": "0.7042422", "text": "public function create()\n {\n //\n\n \n return view('student/ResourceStd');\n\n }", "title": "" }, { "docid": "f1f40cbb0cad3cf320b4c0ec09b3b428", "score": "0.7040213", "text": "public function create()\n {\n return view('form');\n\n }", "title": "" }, { "docid": "643fd44e4ced88a8aac481ced428c5ca", "score": "0.70261294", "text": "public function create()\n {\n $title = 'CRIAR REGISTRO';\n return view('forms.create',['title' => $title]);\n }", "title": "" }, { "docid": "40e93c68e66b0c86108e5ae59cc176d2", "score": "0.70215225", "text": "public function newAction()\n {\n $this->view->setVar('form', new ClientForm(null, ['edit' => false]));\n }", "title": "" }, { "docid": "8074165780da4d1be303d3e9d8c535ba", "score": "0.7012196", "text": "public function create()\n {\n return view ('owner/form');\n }", "title": "" }, { "docid": "06af90c4292c136aaaf9329cfae0b3fc", "score": "0.70115083", "text": "public function create()\r\n {\r\n //mengarahkan ke form\r\n return view('rental.form');\r\n }", "title": "" }, { "docid": "248b476c0f07013b389c79c904231f2a", "score": "0.70046955", "text": "public function create()\n {\n return view('admin.car.add');\n }", "title": "" }, { "docid": "75fb4bc6a7a5df1f1f5cd380b0cd4aec", "score": "0.7000195", "text": "public function create()\n {\n //New Property form\n return view('properties.addproperty');\n }", "title": "" }, { "docid": "c6f4cc7fdd05567403f39d82ae477eb4", "score": "0.6994647", "text": "public function create()\n\t{\n\t\treturn view('kasus.create');\n\t}", "title": "" }, { "docid": "753f9bd767a3748b9d6409cb957dc41f", "score": "0.6994326", "text": "public function createAction()\n {\n $action = $this->view->url(['action' => 'save'], 'controllers');\n $this->view->projectForm = $this->service->getFormForCreating($action);\n }", "title": "" }, { "docid": "7fdab24f12d98bab46a40db3c2f06831", "score": "0.69885707", "text": "public function create()\n\t{\n\t\treturn View::make('back_setup/ProductForm');\n\t}", "title": "" }, { "docid": "355b502cb4384aeb8c0d1322a57b7677", "score": "0.69879013", "text": "public function create()\n {\n return view ('show.create', [\n ]); \n }", "title": "" }, { "docid": "afec885a1ddf009d317c5bca27be7983", "score": "0.6985705", "text": "public function create()\n {\n\t\treturn view('admin.pages.supplier-form-create', ['page' => 'supplier']);\n }", "title": "" }, { "docid": "93cdfcc841a0d10e976bbc17fe7020ec", "score": "0.6977717", "text": "public function create()\n {\n return view('rombel.create');\n }", "title": "" }, { "docid": "eb3ba5c68f25897de6ed50346b9959f7", "score": "0.6976043", "text": "public function create()\n {\n $crud = crud_entry(new \\App\\Employee);\n\n return view('crud::scaffold.bootstrap3-form', ['crud' => $crud]);\n }", "title": "" }, { "docid": "27f66e57741013d1d7bd227b0a1ae6cc", "score": "0.6969905", "text": "public function create()\n {\n return view('radars/create');\n }", "title": "" }, { "docid": "4e37d311d6990013b0ed72549d9fd35f", "score": "0.69635546", "text": "public function create()\n {\n return view('product.form');\n }", "title": "" }, { "docid": "58119c678c7b859b3d2fcb9d4e2544e9", "score": "0.69620776", "text": "public function create()\n {\n return view('forms.girders.create');\n }", "title": "" }, { "docid": "57611366e6e3194f52047893b6a260ec", "score": "0.6958746", "text": "public function create()\n {\n \tAppGranted::grantedAccess('add', true);\n $data['module_title'] = \"Role\";\n $data['action'] = route('kantor.store');\n $data['action_type'] = \"add\";\n\n $data['breadcrumb'] = [ \n ['title' => 'Master Data','url' => '#'],\n ['title' => 'Kantor','url' => 'kantor'],\n ['title' => 'form','url' => 'form']\n ];\n\n $data['redirect'] = route(\"kantor.create\");\n \n return view('kantor::kantor_form',$data);\n }", "title": "" }, { "docid": "6e09ea0495ecf33b6615199f96a87dd9", "score": "0.6958075", "text": "public function create()\n {\n return view('inventaris.create');\n }", "title": "" }, { "docid": "cfb06a7f594e86d7fe22432b5bd18371", "score": "0.6957784", "text": "public function newAction()\n {\n $entity = new Ministro();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ParroquiaCertificadoBundle:Ministro:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "f0a4e435f6bebfce6162cc1be7c7ee0f", "score": "0.6954809", "text": "public function create()\n {\n return view('conceptos.create');\n }", "title": "" }, { "docid": "9cc1ebbeb06fe2564e0fa603d2c72f75", "score": "0.69542176", "text": "public function create()\n {\n //\n return view('product.form');\n }", "title": "" }, { "docid": "ad86bd025139be91b2df85c83f79d4bd", "score": "0.69525295", "text": "public function create()\n {\n return view('syllabus.create');\n }", "title": "" }, { "docid": "7b8c9d5cbe582eab2f28c216421a2719", "score": "0.6951232", "text": "public function create()\n {\n return view('proyek.add');\n }", "title": "" }, { "docid": "29d1eb6a37de9bf5891c3b5b4ef4fa2d", "score": "0.69450635", "text": "public function newForm()\n {\n $this->pageTitle = \"Création d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n parent::newForm();\n }", "title": "" }, { "docid": "353155b973a25b62f33cce0b6600b99c", "score": "0.693502", "text": "public function create()\n {\n $data = array(\n 'title' => 'Ingreso de un nuevo Sector',\n 'message' => 'return confirm(\"¿Esta seguro que desea guardar el sector?\")',\n 'method' => 'POST',\n );\n return view('sector.form')\n ->with('data', $data);\n }", "title": "" }, { "docid": "7c12821aa5d613a86cc8ba0cf190e6fd", "score": "0.6930994", "text": "public function create()\n {\n return view('tutores.new');\n }", "title": "" }, { "docid": "07e409b45065624d003704ab3b447aec", "score": "0.69273114", "text": "public function create()\n {\n return view('admin.product.form');\n }", "title": "" }, { "docid": "60c9cc4899b058bc51c74601c8025ebe", "score": "0.6925751", "text": "public function create()\n {\n return view('adminCreateForm');\n }", "title": "" }, { "docid": "466006539e9b1da8c7c2e06a069c4e2e", "score": "0.6921871", "text": "public function create()\n {\n return view('layout_admin.thenew.create_new');\n }", "title": "" }, { "docid": "38a6849d5b56a77b178a1fc8297c2e4e", "score": "0.69218206", "text": "public function create()\n\t{\n\t\treturn view('information.create');\n\t}", "title": "" }, { "docid": "a59dfad08f7be5f4bb5d898d16a6d3a3", "score": "0.6919321", "text": "public function newAction()\n {\n $entity = new Rector();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ColegioAdminBundle:Rector:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "4bf33424414f342096092b367153c3ff", "score": "0.6918515", "text": "public function create()\n {\n return view('webinars.create');\n }", "title": "" }, { "docid": "1b49a8bc053be1715bbf5620cf797e18", "score": "0.69184965", "text": "public function create()\n\t{\n\t\treturn View::make('product.create'); //form to create new product \n\t}", "title": "" }, { "docid": "27e5069596828984f14a92c012c1e448", "score": "0.6914329", "text": "public function newAction()\n {\n $entity = new Inicio();\n $form = $this->createForm(new InicioType(), $entity);\n\n return $this->render('SisafBundle:Inicio:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.6914271", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "51a5131df9fc2dcd5b65b5ca8aa614d0", "score": "0.69092304", "text": "public function create()\n {\n //To show the required create page when its clicked\n return view('admin.create');\n \n \n }", "title": "" }, { "docid": "4b3f5241c4a2f638b9ee19747079b7a2", "score": "0.69069797", "text": "public function create()\n {\n return view('stus.add');\n }", "title": "" }, { "docid": "ecc913c81504bfd8529f7b7feaef7080", "score": "0.69047576", "text": "public function create(){\n return view('person/form', ['action'=>'create']);\n }", "title": "" }, { "docid": "64d616e79a29573ea35b962756917c05", "score": "0.69007623", "text": "public function create()\n {\n\t\t$d['action'] = route('product.store');\n\t\treturn view('back.pages.product.form', $d);\n }", "title": "" }, { "docid": "61066352fa31a37b0f1d8bc9fd229ea9", "score": "0.6897235", "text": "public function create()\n {\n /* $this->authorize('create'); */\n return view('refugio.refugioForm');\n }", "title": "" }, { "docid": "70820d35b4d8e319baa89b6f91a3d029", "score": "0.6895603", "text": "public function newAction() {\n $entity = new Recommandation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MyAppFrontBundle:Recommandation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "619fa64afd3457bdc8d1c1a041acff47", "score": "0.68903565", "text": "public function create()\n {\n return View(\"$this->view_folder.form\", $this->data);\n }", "title": "" }, { "docid": "09fab99adf688ea100aa90694eab5889", "score": "0.6888845", "text": "public function create()\n {\n return view(\"Amenity::add\");\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "9664795bf81cca0f3e65d94f0f595082", "score": "0.6880484", "text": "public function create()\n\t{\n\t\treturn view('questao.create');\n\t}", "title": "" }, { "docid": "623f899bed6c6f380a03ffc99508b73d", "score": "0.6879059", "text": "public function newAction()\n {\n $entity = new Candidato();\n $form = $this->createForm(new CandidatoType(), $entity);\n\n return $this->render('EleicaoAdmBundle:Candidato:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a3b3bbcce8f8a6239dadc2917240252b", "score": "0.6878254", "text": "public function showForm()\n {\n return view('AdminView.create');\n }", "title": "" }, { "docid": "06fe0499ccb2038bd9c25e7ef14289e2", "score": "0.68774086", "text": "public function create()\n {\n //Return item details form\n return view('home.create');\n }", "title": "" }, { "docid": "47e62b5d5e96751bc9e8ab90f94e7ea4", "score": "0.6876466", "text": "public function create()\n {\n return view('manager.new');\n }", "title": "" }, { "docid": "3557ca31989d52aabfc94b29a8b4779e", "score": "0.6874666", "text": "public function create()\n {\n return view('hari.create');\n }", "title": "" }, { "docid": "b3998fa6dce49f97902e942f97d98ede", "score": "0.687325", "text": "public function newAction()\n {\n $entity = new Escuelas();\n $form = $this->createForm(new EscuelasType(), $entity);\n\n return $this->render('QQiRecordappBundle:Escuelas:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "9f18b1b1a35a9af23eb1d4bbdba665f8", "score": "0.68696606", "text": "public function create()\n {\n return view('admin.car_com.create');\n }", "title": "" }, { "docid": "96c76b820b73f95fa584de07ad04ad0a", "score": "0.6865675", "text": "public function create()\n {\n return view('nasabah/addnasabah');\n }", "title": "" }, { "docid": "e3cfac3178d9c5cb5ab322fa4785604c", "score": "0.6862222", "text": "public function create()\n {\n return view('Prenda.create');\n }", "title": "" }, { "docid": "f4672fc37d04d0e3bef9bc80e57323e9", "score": "0.6860329", "text": "public function create()\n {\n //\n $question= new Question();\n return view('dashboard.question.form', [\n \"question\" => $question\n ]);\n }", "title": "" }, { "docid": "451c07a3106f3c6e3d62757717bfa763", "score": "0.6860251", "text": "public function create()\n\t{\n\t\treturn view('horas.create');\n\t}", "title": "" }, { "docid": "95a4952039c4b40b058cc67fba7cd2d7", "score": "0.68573785", "text": "public function create () {\n $course = new Course();\n $btnText = __(\"Enviar curso para revisión\");\n\n return view('courses.form', compact('course', 'btnText'));\n }", "title": "" }, { "docid": "ca80651480f4bbbd35305ceefd136182", "score": "0.6853353", "text": "public function newAction()\n {\n $entity = new Alumni();\n $form = $this->createForm(new AlumniType(), $entity);\n\n return $this->renderTwig('Master/Alumni:form', array(\n 'entity' => $entity,\n 'edit_form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "d58534453dca5d05eb6bf9759a643eaa", "score": "0.68512565", "text": "public function create()\n\t{\n\t\treturn View::make('create');\n\t}", "title": "" }, { "docid": "783d7ee63b2e492087fc641fa43b1ef1", "score": "0.684831", "text": "public function create()\n\t{\n\t\treturn View::make('fornecedors.create');\n\t}", "title": "" }, { "docid": "2d13aa784138fe895746ebaa36bda96f", "score": "0.6847265", "text": "public function create()\n {\n return view('hr.create');\n }", "title": "" }, { "docid": "1406c82292b4f07e3eecfee633a3f557", "score": "0.68437195", "text": "public function create()\n {\n return view('admin.company.form', [\n 'company' => null,\n 'route' => 'admin.company.store',\n 'method' => 'POST'\n ]);\n }", "title": "" }, { "docid": "b1d677deef4bb08323db61d502e8dcee", "score": "0.6843096", "text": "public function create()\n {\n return view('backend.book.create');\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "0c68bf34c3397013af89f2aa13ba5d82", "score": "0.0", "text": "public function index()\n {\n //\n return view('in');\n }", "title": "" } ]
[ { "docid": "e5e7384bd73dca78941fcbd89a202b70", "score": "0.7997081", "text": "public function action_listing() {\n\t\t$this->_content('listing', $this->_instances(), true);\n\t}", "title": "" }, { "docid": "5843220cf684a1a73c04dea06b179c98", "score": "0.77250284", "text": "public function listAction ()\n {\n $module = $this->_request->getModuleName();\n $controller = $this->_request->getControllerName();\n\n $resourceResource = $this->_helper->modelResource('Resources');\n $resources = $resourceResource->fetchAll();\n $this->view->resources = $resources;\n }", "title": "" }, { "docid": "a9bb13ba4c87678e1ac5005171d43f4a", "score": "0.74907076", "text": "public function actionList()\n {\n $this->render('list');\n }", "title": "" }, { "docid": "8d51b677bee6c53da8e98cce79f655aa", "score": "0.7418133", "text": "public function listAction()\n {\n echo Zend_Json::encode($this->_records->queryRecords(\n $this->_request->getParams()\n ));\n }", "title": "" }, { "docid": "6eac2ccd3e0cf5d8296b9c33085d378d", "score": "0.72538555", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t$search = $this->getInput(array('name', 'status'));\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Super_Service_Resource::search($page, $perpage, $search);\r\n\t\t\r\n\t\t$this->assign('search', $search);\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->cookieParams();\r\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($search) . '&';\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\r\n\t\t$this->cookieParams();\r\n\t}", "title": "" }, { "docid": "3b1a348da533dcb6668082a3467f61de", "score": "0.7189258", "text": "public function actionList()\n {\n $this->restObj->loadModels();\n }", "title": "" }, { "docid": "2cdc01c5b6d9b929fb113d684dccaced", "score": "0.7156122", "text": "public function index()\n {\n $resource = $this->resource->all();\n\n return view('resources', compact('resource'));\n }", "title": "" }, { "docid": "717b72f905cc3eb38c16a04ff9a86ae6", "score": "0.7114549", "text": "public function index()\n {\n // $this->hasAccessOrFail('list');\n $this->setOperation('list');\n if ($this->tienePermiso('list')) {\n $this->data = array();\n $this->data['title'] = $this->getTitle() ?? mb_ucfirst($this->entity_name_plural);\n $this->data['routerAlias'] = $this->getRouterAlias();\n $this->data['contentClass'] = $this->getListContentClass();\n $this->data['heading'] = $this->getHeading() ?? $this->entity_name_plural;\n $this->data['subheading'] = '';\n $this->data['permissionName'] = $this->getPermissionName();\n $this->data['buttons_top'] = $this->getButtons()->where('stack', 'top');\n $this->data['columns'] = $this->getColumns();\n $this->data['columnOrderNum'] = $this->getColumnNumericIndex($this->getDefaultOrderColumn());\n $this->data['columnOrderName'] = $this->getDefaultOrderColumn();\n $this->data['columnOrderDire'] = $this->getDefaultOrderDirection();\n $this->data['filtros'] = $this->getfilters();\n\n // load the view from /resources/views/vendor/Cesi/crud/ if it exists, otherwise load the one in the package\n return view($this->getListView(), $this->data);\n } else {\n return view('cesi::errors.401');\n }\n }", "title": "" }, { "docid": "7246ebaf3415f94d436da4bb642e24a3", "score": "0.70818526", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t$search = $this->getInput(array('name', 'status'));\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Gou_Service_Resource::search($page, $perpage, $search);\r\n\t\t\r\n\t\t$this->assign('search', $search);\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->cookieParams();\r\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($search) . '&';\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\r\n\t\t$this->cookieParams();\r\n\t}", "title": "" }, { "docid": "7adba616fe1b0a755e693520aac54298", "score": "0.7053882", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $recipes = $em->getRepository('AppBundle:Recipe')->findAllPublic();\n\n return $this->render('recipe/list.html.twig', array(\n 'recipes' => $recipes,\n ));\n }", "title": "" }, { "docid": "3046e5391755ed0249127951b935e880", "score": "0.7045966", "text": "public function indexAction()\n {\n $filterRenderer = $this->getFilterRenderer();\n $listRenderer = $this->getListRenderer();\n\n return $this->container->get('templating')\n ->renderResponse($listRenderer->getTemplate(), array(\n 'renderer' => $listRenderer,\n 'filter' => $filterRenderer,\n 'csrf' => $this->container->get('form.csrf_provider')->generateCsrfToken('list')\n ));\n }", "title": "" }, { "docid": "0c4d22454d91d669f713e248e6cd4363", "score": "0.70392543", "text": "public function listAction()\n {\n\n // get reference to our repository\n // and get array of all DVDs\n $dvdRepository = new DvdRepository();\n $dvds = $dvdRepository->getAllDvds();\n\n // add to args array\n // ------------\n $argsArray = [\n 'dvds' => $dvds\n ];\n\n // render (draw) template\n // ------------\n $templateName = 'list';\n return $this->app['twig']->render($templateName . '.html.twig', $argsArray);\n }", "title": "" }, { "docid": "a9ac287e901f12c6cd37fe3754d96da7", "score": "0.70273596", "text": "public function index()\n {\n return $this->showAll(PeopleResource::collection(People::get()));\n }", "title": "" }, { "docid": "61981ceb471a82ebd3789f7373c04b9c", "score": "0.7009925", "text": "public function display() {\n $res = NULL;\n $params = $this->request->query;\n if (empty($params) || empty($params['cat'])) {\n $res = $this->getAllListings();\n }\n else {\n $res = $this->getListingsByCategory($params['cat'],\n $params['sort'],\n $params['ascDesc']);\n }\n $this->set(['listings' => $res]);\n }", "title": "" }, { "docid": "9c23597c81f0260d62a430388b719886", "score": "0.6998034", "text": "public function list()\n {\n try {\n\n } catch (\\Exception $e) {\n echo '<pre>';\n print_r($e->getMessage());\n echo '</pre>';\n }\n }", "title": "" }, { "docid": "271af64fc25b41beefcb0ae2bf3d06c1", "score": "0.69789684", "text": "public function index()\n {\n $this->lst();\n }", "title": "" }, { "docid": "970e35836b9768276ac32a7f819d569f", "score": "0.6969622", "text": "public function index()\n {\n return \"Here is the listing page.\";\n }", "title": "" }, { "docid": "333551ff905b0a0ba61cb4344dc527c5", "score": "0.6954035", "text": "public function index()\n\t{\n\t\t$lines = $this->repository->getPaginate(10);\n\t\t$links = str_replace('/?', '?', $lines->render());\n\n\t\treturn view($this->base.'.list', compact('lines', 'links'));\n\t}", "title": "" }, { "docid": "763c667833a58c0ab1d9b6ed41fcd7f1", "score": "0.6949768", "text": "public function actionList(){\n // input\n $t = Text::getEntityTexts($this->moduleid, $this->entityid);\n \n // process\n \n // output\n Page::setTitle(\"Consulta de \".$t->entity());\n $this->view(\"list\");\n }", "title": "" }, { "docid": "a42d2c3cb23ebb4d90fe085f81abfdf1", "score": "0.694591", "text": "public function indexAction()\n {\n $handler = $this->_createModelHandler();\n\n $url = $this->getRequest()->getRequestUri();\n $params = Rest_Serializer::decode($url, Rest_Serializer::FULL_URL_UNKNOWN);\n\n try {\n $items = $handler->getList($params);\n } catch (Rest_Model_MethodNotAllowedException $e) {\n $this->getResponse()->setHttpResponseCode(405);\n $this->getResponse()->setHeader('Allow', implode(', ', $e->getAllowedMethods()));\n $this->view->data = $e->getMessage();\n return;\n } catch (Rest_Model_BadRequestException $e) {\n $this->getResponse()->setHttpResponseCode(400);\n $this->view->data = $e->getMessage();\n return;\n } catch (Exception $e) {\n $this->getResponse()->setHttpResponseCode(500);\n // should output 500 errors conditional to APP_ENV being dev\n // should log errors no matter what environment\n return;\n }\n\n $this->view->data = $items;\n }", "title": "" }, { "docid": "f39dea430d1832d789b6e49e5d7554be", "score": "0.692712", "text": "public function index()\n {\n $categories = Category::all();\n return $this->resp->ok(eRespCode::CAT_LISTED_200_00, new CategoryResourceCollection($categories));\n }", "title": "" }, { "docid": "8c8ca6b1a9586345fa58fa75152c17eb", "score": "0.6921003", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n\t\t//GET SETTING\n $this->view->owner_photo = $this->_getParam('owner_photo', 1);\n\n //GET LISTING 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\t\t//GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n }", "title": "" }, { "docid": "75c25c496b7bb134be1dfcae86fb4091", "score": "0.6907718", "text": "function list() {\n $data = $this->handler->handleList();\n\n $page = new Page(\"List existing templates\", \"Templates\");\n $page->top();\n\n listView($data);\n\n $page->bottom();\n }", "title": "" }, { "docid": "ca758c8d004263d55a0ae58a76c94b8e", "score": "0.68839717", "text": "public function listAction()\n {\n $list = Interest::getList();\n\n return $this->render('interest/list', $list);\n }", "title": "" }, { "docid": "5c422eb9c63aaa4755881379e395025b", "score": "0.68358845", "text": "public function index() {\n\t\t\n\t\tif ($this->require_role('admin')) {\n\t\t\t$this->load->model('Resource', 'resource');\n\t\t\t$this->load->helper(array('form', 'url'));\n\t\n\t\t\t$data = array('resources' => $this->resource->all());\n\t\t\t$this->load->template('admin/resources_index', $data);\t\n\t\t}\n\t}", "title": "" }, { "docid": "faf64cfddc139b306817d316d98d7998", "score": "0.68326175", "text": "protected function listing(array $params) {\n\t\t// Check parameters\n\t\t// Get resources\n\t\t// Filter it by key (perms)\n\t\t// Returns the list\n\t}", "title": "" }, { "docid": "d273d165886af297123e8efab8c940d8", "score": "0.6827775", "text": "public function index()\n {\n $items = ItemResource::collection(Item::orderBy('sort_order')->get());\n\n return $this->success($items);\n }", "title": "" }, { "docid": "b868b6f2a3079e57b349fd81d8b7d5bd", "score": "0.6826282", "text": "public function index()\n {\n if (!$this->user->can('view-record')) {\n return $this->unauthorizedResponse([\n 'errors' => ['Ora entuk ndes']\n ]);\n }\n\n $records = Record::paginate();\n return $this->okResponse([\n 'data' => new RecordTableResourceCollection($records) \n ]);\n }", "title": "" }, { "docid": "5856416953feca05c4cf552b6d0d19f9", "score": "0.6806458", "text": "public function index()\n {\n // return all statuses as a resource ordered by status\n $statuses = Status::orderBy('status', 'asc')->get();\n\n // Return the statuses as a resource\n return StatusResource::collection($statuses);\n }", "title": "" }, { "docid": "ae6ac1129584c76c474a8718bca91c33", "score": "0.6780087", "text": "public function ListView() {\n $this->Render();\n }", "title": "" }, { "docid": "2d1d458b52819df5fe6e27c7992f0ddc", "score": "0.6779744", "text": "public function index()\n {\n $listings = Listing::latest()->paginate(20);\n return view('backend.listing.index', compact('listings'));\n }", "title": "" }, { "docid": "4c6b319e397c45d649f8fe5ba2a7bd53", "score": "0.67744184", "text": "public function index()\n {\n $model = $this->resourceModel;\n return $model::all();\n }", "title": "" }, { "docid": "b748eaa207eeee72d7887a0fc25dca4a", "score": "0.67608345", "text": "public function index() {\n\n $limit = Input::get('limit') ? : 10;\n $fullItemsBase = FullItemsBase::paginate($limit);\n return $this->respondWithPagination($fullItemsBase, $this->fullItemsBaseTransformer->transformCollection($fullItemsBase->items()));\n\n }", "title": "" }, { "docid": "aa645d4232fad0744f3db157558e1606", "score": "0.67556214", "text": "public function index()\n\t{\n\t\t\n\t\t$kiosk = Request::input('kiosk');\n\n\t\t$q = Request::input('query');\n\n\t\t$listings = Listing::search($q)\n\t\t\t->forKiosk($kiosk)\n\t\t\t->orderBy('lastName')\n\t\t\t->orderBy('company')\n\t\t\t->get([\n\t\t\t\t'listings.id',\n\t\t\t\t'firstName',\n\t\t\t\t'lastName',\n\t\t\t\t'company',\n\t\t\t\t'title',\n\t\t\t\t'listings.location',\n\t\t\t\t'address',\n\t\t\t\t'email',\n\t\t\t\t'phone',\n\t\t\t\t'description',\n\t\t\t\t'listings.image',\n\t\t\t\t'maps.image as map'\n\t\t\t]);\n\n\n\t\treturn ['listings'=>$listings];\n\t}", "title": "" }, { "docid": "5656a3bc0d701acc424777c84b33b509", "score": "0.6750781", "text": "public function index()\n {\n // If there is an Ajax request or any request wants json data\n if (request()->ajax() || request()->wantsJson()) {\n\n $sort = request()->has('sort')?request()->get('sort'):'name';\n $order = request()->has('order')?request()->get('order'):'asc';\n $search = request()->has('searchQuery')?request()->get('searchQuery'):'';\n $paginate = request()->get('paginate', 'on');\n\n list($data, $paginator) = $this->entityService->getResults($sort, $order, $search, $paginate);\n\n if (empty($data)) {\n return response([\n 'status_code' => 404,\n // 'message' => trans($this->getNotFoundKey())\n ], 404);\n }\n\n $data = $this->entityTransformer->transformCollection($data);\n\n return response([\n 'data' => $data,\n 'paginator' => $paginator,\n 'status_code' => 200\n ], 200);\n }\n\n return $this->entityList->view();\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.6742193", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "fcdd2b18e7fdb84a081f8b4808c3dd87", "score": "0.67329895", "text": "public function index() {\n $this->listar();\n }", "title": "" }, { "docid": "de6abddc6ff8899fbf9d928f85487ba7", "score": "0.6730043", "text": "public function index()\n {\n\n return PersonResource::collection(Person::latest()->paginate(10));\n\n }", "title": "" }, { "docid": "01a0ecf1244ed50cd57b8fc36e7c90c6", "score": "0.67276037", "text": "public function showEntries ()\r\n {\r\n $sampleDocument = [];\r\n $results = $this->doQuery();\r\n\r\n // extract document keys to use them in query autocompletion\r\n if (isset($results[0])) {\r\n $sampleDocument = json_decode($results[0][\"document\"], true);\r\n }\r\n\r\n return $this->render(\"collection/home.html.twig\", [\r\n \"results\" => $results['results'],\r\n \"pagination\" => $results['pagination'],\r\n \"db\" => $_REQUEST[\"db\"],\r\n \"collection\" => $_REQUEST[\"collection\"],\r\n \"autocompleteFields\" => array_keys($sampleDocument)\r\n ]);\r\n }", "title": "" }, { "docid": "d8665c5666597c18e5362e0a4d89c431", "score": "0.67268443", "text": "public function index()\n {\n //only allow get requests to this endpoint\n $this->request->allowMethod('get');\n\n //fetch user id of the logged in user\n $user_id = $this->Authentication->getIdentity()['id'];\n\n //query the database\n $lists = $this->TodoLists->find()->where(['user_id'=>$user_id])->toArray();\n\n if (count($lists) === 0) {\n return $this->respond(400, [], 'No lists in the database');\n }\n\n return $this->respond(200, $lists, 'Lists fetched from the database');\n }", "title": "" }, { "docid": "c47747da41037cffb7ca6030eb0269ad", "score": "0.6714673", "text": "public function listAll()\n {\n echo view('{name}/listAll', [\n 'rows' => $this->model->paginate(20),\n ]);\n }", "title": "" }, { "docid": "f9f637b83ec4dd52acd76b5a1b723b01", "score": "0.6714468", "text": "public function index()\n\t{\n\t\t$resources = Resource::with('user')->get();\n\t\treturn View::make('resources.index')->with('resources', $resources);\n\t}", "title": "" }, { "docid": "b3f65d348a322a4797182798d5dd2389", "score": "0.6711745", "text": "public function action_list()\n\t{\n\t\t// Load the contest id\n\t\t$contest_id = $this->request->param('contest_id');\n\n\t\t// Load the contest model\n\t\t$contest = new Model_Photo_Contest($contest_id);\n\n\t\t// Load the active contest if the ID is not set\n\t\tif ($contest_id === NULL)\n\t\t{\n\t\t\t$contest->get_active();\n\t\t}\n\n\t\t// You can only see the list if the contest has started\n\t\tif ($contest->id === NULL)\n\t\t{\n\t\t\tdie('Sorry you can\\'t view this listing yet');\n\t\t}\n\n\t\t// Lets build the filters\n\t\t$query = $this->request->query();\n\t\t$filters = array(\n\t\t\t'amount' \t=> Arr::get($query, 'amount', 9),\n\t\t\t'order_by' \t=> Arr::get($query, 'order_by', 'last_vote'),\n\t\t\t'page' \t\t=> Arr::get($query, 'page', 1),\n\t\t);\n\n\t\t// Let the view build the list\n\t\t$content = new View_Photo_Contest_List($contest, $this->auth, $filters);\n\t\t$this->_build_layout($content, $contest, array('top'));\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "6a2ce4bfb9032f960818fea7d1c1fd2f", "score": "0.6711654", "text": "function view()\n\t{\n\t\t$model\t=& $this->getModel( 'List' );\n\t\t$view =& $this->getView( 'List' );\n\t\t$view->setModel( $model, true );\n\t\t$view->display();\n\t}", "title": "" }, { "docid": "2e4e6ad1b566258d4381885b7225442d", "score": "0.66980463", "text": "public function index()\n {\n //\n $resources = Resource::all();\n return response([\n 'status' => true,\n 'resources' => $resources,\n ]);\n }", "title": "" }, { "docid": "a32ed162bac5feffa4d0d4d75f031e5f", "score": "0.66931826", "text": "public function index()\n {\n //\n\t\t$comp = Entity::paginate(10);\n\t\treturn view('entity.list')->with('user', $comp);\n }", "title": "" }, { "docid": "7a9f78e0d04bc17991354eb2a8289b5e", "score": "0.66906714", "text": "function listing(){\n\t\t// la variable $listado guarda el resultado de la funcion GetPersons\n\t\t//para luego ser enviada a la vista en el objeto _listado\n\t\t\t\t$listado = $this->_person->getPersons();\n\t\t\t\t$this->_view->_listado = $listado;\n\t\t\t\t\n\t\t\t\t$this->_view->render('listing', 'persons', '',$this->_sidebar_menu);\n\t\t\t}", "title": "" }, { "docid": "2734f9c5798c709c85e88386fda37702", "score": "0.66896355", "text": "public function index()\n {\n $students = Student::paginate(15);\n return StudentResource::collection($students);\n }", "title": "" }, { "docid": "484df5509ac351a459c94ed96dad9631", "score": "0.6678784", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Cod_Service_Type::getList($page, $perpage);\r\n\t\t\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'?'));\r\n\t}", "title": "" }, { "docid": "232eafda3e687831892df1684534abd5", "score": "0.66763496", "text": "public function index()\n {\n // Get products\n $products = Product::paginate(3);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "e6c8741b5d134655b9c2b8dd778cefb8", "score": "0.66754305", "text": "function index()\n {\n // a main page yet ;-).\n $this->listings();\n }", "title": "" }, { "docid": "0fca76630447c6e294fc2e600086d38d", "score": "0.66752857", "text": "public function indexAction()\n\t{\n\t\t$albums = Album::find();\n\n\t\t// send data to the view\n\t\t$this->view->albums = $albums;\n\n\t\t$this->view->setLayout('list');\n\t}", "title": "" }, { "docid": "65070a2f2a7d54a05f7733a8e04446da", "score": "0.6657747", "text": "public function index() {\n\n $limit = Input::get('limit') ? : 10;\n $itemsBase = Item::paginate($limit);\n return $this->respondWithPagination($itemsBase, $this->itemTransformer->transformCollection($itemsBase->items()));\n\n }", "title": "" }, { "docid": "c7007e2c86edf572b2e16d9880bffb0d", "score": "0.6656419", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_permission->get_all();\n\t\t$this->template->set('title', 'Permission List');\n\t\t$this->template->load('template', 'contents', 'permission/list', $data);\n\t}", "title": "" }, { "docid": "f4d17451160e0b6de7ae955b505d6c54", "score": "0.6638445", "text": "public function list() {\n\n\t}", "title": "" }, { "docid": "518e90338c030a6d81f610434bd500ce", "score": "0.663422", "text": "public function list()\n {\n \n }", "title": "" }, { "docid": "5e41c828cebc4cc13f7309e5c05c4bc4", "score": "0.66317695", "text": "public function index()\n {\n //\n\n $listings = Listing::all();\n\n return view('admin.listing.index', compact('listings'));\n\n }", "title": "" }, { "docid": "a0c0872e537528aa097056ee2809bd73", "score": "0.662889", "text": "public function index()\n {\n return $this->responseCollection(['title' => 'Đây là resource collection']);\n }", "title": "" }, { "docid": "c0b97bdef674a1363cd928a5e28e2df1", "score": "0.66180605", "text": "public function index()\n {\n $items = $this->itemSrv->findAll();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "5a2c942ef5f8bfbf353721a34ccb1db0", "score": "0.6603064", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t$params = $this->getInput(array('rid', 'imei'));\n\t\t$search = array();\n\t\tif ($params['rid']) $search['rid'] = $params['rid'];\n\t\tif ($params['imei']) $search['imei'] = $params['imei'];\n\t\t\n\t\tlist($total, $rids) = Gou_Service_Rid::getList($page, $perpage, $search);\n\t\t$this->assign('rids', $rids);\n\t\t$url = $this->actions['listUrl'] .'/?'. http_build_query($search) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $this->perpage, $url));\n\t\t$this->assign('search', $search);\n\t}", "title": "" }, { "docid": "d118079baa11c6896210752de43f466a", "score": "0.6598392", "text": "public function actionIndex()\n {\n $cars = Car::getAll(5);\n\n return $this->render('index', [\n\t 'cars' => $cars['cars'],\n\t 'pagination' => $cars['pagination'],\n ]);\n }", "title": "" }, { "docid": "7b0362011beee277adca7fa19bb6e265", "score": "0.6589539", "text": "public function listAction() {\n\t\t$this->view->role = Auth_Info::getUser ()->user_type;\n\t\tLog::infoLog ( 'method=' . __FUNCTION__ . ';user_id=' . Auth_Info::getUser ()->user_id . ';control_number' . ';Start action' );\n\t\t\n\t\t$page = null;\n\t\t// Doan nay phan biet POST voi GET\n\t\tif ($this->getRequest ()->isPost ()) {\n\t\t\t// Trong nay danh cho thu tuc post\n\t\t} else {\n\t\t\t// Trong nay danh cho thu tuc get\n\t\t\t\n\t\t\t// Lay ra danh sach account\n\t\t\t$select = TTestings::getInstance ()->getTestList ();\n\t\t\t$this->view->paginator = Zynas_Paginator::factoryWithOptions ( $select, $page, $this->view );\n\t\t\t// Lay ra danh sach chi tiet\n\t\t\t$select1 = TTestingdetails::getInstance ()->getListDetail ();\n\t\t\t$this->view->paginator1 = Zynas_Paginator::factoryWithOptions ( $select1, $page, $this->view );\n\t\t}\n\t\tLog::infoLog ( 'method=' . __FUNCTION__ . ';user_id=' . Auth_Info::getUser ()->user_id . ';control_number' . ';End action' );\n\t}", "title": "" }, { "docid": "58397a3ae7d676f27e069b6cd638cb54", "score": "0.65887684", "text": "public function index()\n {\n $products = Product::paginate(15);\n return ProductResource::collection($products);\n //\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.6585575", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\n }", "title": "" }, { "docid": "cf63b2e262afbf8c41ea8735174a1c1f", "score": "0.65836424", "text": "public function index()\n {\n $links = Link::all();\n return $this->showAll($links);\n }", "title": "" }, { "docid": "3d9f02ab227264eab59e37e914140bf1", "score": "0.65828973", "text": "public function index()\n {\n\n $perPage = Input::has('entries') ? Input::get('entries') : 10;\n if (Input::has('searchText'))\n return $this->respository->paginateSearch($perPage, Input::get('sort'), Input::get('searchText'));\n return $this->respository->paginate($perPage, Input::get('sort'));\n }", "title": "" }, { "docid": "1d851e06286b1c4304d70235a04c9b12", "score": "0.6582138", "text": "public function index()\n {\n\n $this->repository->skipPresenter();\n\n $perPage = request()->has('per_page') ? (int) request()->per_page : 5;\n\n if (request()->has('sort')) {\n list($sortCol, $sortDir) = explode('|', request()->sort);\n $catalogos = $this->repository->with('items')->orderBy($sortCol, $sortDir)->paginate($perPage);\n } else {\n $catalogos = $this->repository->with('items')->orderBy('id', 'asc')->paginate($perPage);\n }\n\n \n return response()->json($catalogos);\n }", "title": "" }, { "docid": "414d41e0df5b50d2fc08d8b1ff7cd984", "score": "0.65818864", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\tif ($page < 1) $page = 1;\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Resource_Service_Attribute::getList(1, $this->perpage,array('at_type'=>1,'status'=>1), array('sort'=>'DESC'));\n\t\t\r\n\t\t$this->cookieParams();\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'?'));\r\n\t}", "title": "" }, { "docid": "083677cf7d4c4336b6764e1c2e471e53", "score": "0.6575686", "text": "public function index()\n {\n return success($this->service->getList());\n }", "title": "" }, { "docid": "02f1b268574a4e41b19c995fbc856de6", "score": "0.6574009", "text": "public function index()\n {\n $items=Item::all();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "e99878c1a0eff5bcf7bf12ed5c8ef9d5", "score": "0.65716714", "text": "public function show()\n {\n return view('listing::show');\n }", "title": "" }, { "docid": "7b5e2b301434be8bca6abbff68773c36", "score": "0.6567384", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate(10));\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "46f84c15b7beced16b95caa4f1ddc7b9", "score": "0.65611297", "text": "public function listing() {\n //show a list of games\n \n //prepare a collection of all games\n $this->games = new boardgameCollection();\n //pass this to the view\n View::setTemplate('gamelisting');\n }", "title": "" }, { "docid": "ae1d3b1986302fafef3e4fcf2486c80a", "score": "0.655366", "text": "public function index()\n {\n AnonymousResourceCollection::wrap('list');// 资源列表默认返回 data 更换为 list\n\n $lists = QueryBuilder::for(ElectricChargeLog::class)\n ->defaultSort('-created_at')\n ->where('user_id', '=', auth('api')->id())\n ->paginate();\n\n return ElectricChargeLogResource::collection($lists);\n }", "title": "" }, { "docid": "2bf1a2bd26f0394c521a6010c1bf0f05", "score": "0.6550969", "text": "public function listAction()\n {\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n $this->view->page_id = $page_id = $this->_getParam('page_id');\n\n //GET PROJECT ITEM\n $this->view->sitepage = $sitepage = Engine_Api::_()->getItem('sitepage_page', $page_id);\n\n //IF THERE IS NO PAGE.\n if (empty($sitepage)) {\n return $this->_forward('requireauth', 'error', 'core');\n }\n\n Engine_Api::_()->core()->setSubject($sitepage);\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\n $this->view->initiatives = $outcomes = Engine_Api::_()->getDbtable('initiatives', 'sitepage')->getAllInitiativesByPageId($page_id);\n\n }", "title": "" }, { "docid": "b07dc2d3e33f03e6da772e77e05f7172", "score": "0.654454", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\t\t\n\t\t$params = $this->getInput(array('id', 'name'));\n\t\t\n\t\t$search = array();\n\t\tif ($params['id']) $search['id'] = $params['id'];\n\t\tif($params['name']) $search['name'] = array('LIKE', trim($params['name']));\n\t\t\n\t list($total, $suppliers) = Gou_Service_Url::getList($page, $perpage, $search);\n\t\t$this->assign('suppliers', $suppliers);\n\t\t$this->assign('search', $search);\n\t\t$this->cookieParams();\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($params) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t}", "title": "" }, { "docid": "dc0dfaf548f5417e5fb8ca63e88f4bab", "score": "0.65415925", "text": "public function indexAction()\n {\n $this->tag->setTitle(__('Devices'));\n // Available sort to choose\n $this->filter->add('in_array', function($value) {\n return in_array($value, ['client_id', 'client_id DESC', 'IP', 'IP DESC', 'lastActive', 'lastActive DESC', 'name', 'name DESC', 'status', 'status DESC', 'type', 'type DESC']) ? $value : null;\n });\n\n // Check if limit to client's devices\n if ($client = $this->request->getQuery('client', 'int', null, true)) {\n $data = Devices::find(['client_id = :client:', 'order' => $this->request->getQuery('order', 'in_array', 'id', true), 'bind' => ['client' => $client]]);\n } else {\n $data = Devices::find(['order' => $this->request->getQuery('order', 'in_array', 'id', true)]);\n }\n\n // Get devices and prepare pagination\n $paginator = new Paginator([\n \"data\" => $data,\n \"limit\" => $this->request->getQuery('limit', 'int', 20, true),\n \"page\" => $this->request->getQuery('page', 'int', 1, true)\n ]);\n\n $this->view->setVars([\n 'pagination' => $paginator->getPaginate(),\n ]);\n }", "title": "" }, { "docid": "8ea0483fd142809c831c55dd4d54c8bc", "score": "0.6534711", "text": "public function index()\n {\n return response(Entry::getAll(), 200);\n }", "title": "" }, { "docid": "e58e46ad70cfe2abf6e6334edfcf4d33", "score": "0.653384", "text": "public function index()\n {\n return ProductResource::collection($this->model->all());\n }", "title": "" }, { "docid": "c53e5e5723ef0824b3deac61a33dcd59", "score": "0.653131", "text": "public function list()\n {\n $tickets = $this->getRepo()->all();\n $this->render('tickets.php', ['tickets' => $tickets]);\n }", "title": "" }, { "docid": "48a441e4246d6b8497f81c71044cc07c", "score": "0.6530572", "text": "public function listing()\n {\n return true;\n }", "title": "" }, { "docid": "f13e9e33ef11f1b3cc6bbc86c6cf452b", "score": "0.65302867", "text": "public function index()\n\t{\n\t\t$resources = Resource::select(\n\t\t\tarray(\n\t\t\t'resources.id',\n\t\t\t'resources.name',\n\t\t\t'resources.description',\n\t\t\t'resources.thumb',\n\t\t\t'resources.url',\n\t\t\t'resources.type'\n\t\t\t)\n\t\t)->limit(999)->get();\n\n\t\t// Derive the hover thumbnail image and add it to the object\n\t\tforeach ($resources as &$resource) {\n\t\t\t$resource->hover = str_replace('th.jpg', 'hv.jpg', $resource->thumb);\n\t\t}\n\n\t\t// Make sure we have an even number of entries, which is a factor of 3\n\t\t$count = $resources->count();\n\t\t$count = (($count % 2) !== 0) ? ($count + 1): $count;\n\n\t\t$first = null;\n\t\t$useImage = 0;\n\t\twhile (($count % 3) !== 0) {\n\t\t\t$use = clone($resources->get($useImage));\n\t\t\t$use['id'] = (9999 + $useImage);\t\t// Dummy unique id\n\t\t\t$resources = $resources->merge([$use]);\n\t\t\t$count = $resources->count();\n\t\t\t$useImage++;\n\t\t}\n\n\t\treturn view('pages.home', compact('resources'));\n\t}", "title": "" }, { "docid": "f36768242b82968fc5b2a672bf3b5d40", "score": "0.65284115", "text": "public function index()\n {\n // Get books or resources\n $booksOrResources = BookOrResource::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return BookOrResourceResource::collection($booksOrResources);\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "134e2581f1e75a4912a1c302ac7bdb43", "score": "0.6523618", "text": "public function index()\n {\n $contacts = Contact::forUser(Auth::user())->orderByDesc('id')->paginate(20);\n\n return ContactListResource::collection($contacts);\n }", "title": "" }, { "docid": "ba54d9aa7546c8835b3a3ea61bb72cf7", "score": "0.6519067", "text": "public function listAction(){\r\n\r\n $filter = $this->Request()->getParam('filter', null);\r\n $sort = $this->Request()->getParam('sort', null);\r\n $page = $this->Request()->getParam('page', 1);\r\n $start = $this->Request()->getParam('start', 0);\r\n $limit = $this->Request()->getParam('limit', 20);\r\n if (empty($sort)) {\r\n $sort = array(array('property' => 'o.offerTime', 'direction' => 'DESC'));\r\n } else {\r\n $sort[0]['property'] = 'o.' . $sort[0]['property'];\r\n }\r\n $repository = Shopware()->Models()->getRepository('Shopware\\CustomModels\\Offer\\Offer');\r\n $builder = $repository->getListQuery($filter, $sort);\r\n\r\n $builder = $builder->setFirstResult($start)\r\n ->setMaxResults($limit);\r\n\r\n $query = $builder->getQuery();\r\n $query->setHydrationMode(\\Doctrine\\ORM\\Query::HYDRATE_ARRAY);\r\n\r\n $paginator = $this->getModelManager()->createPaginator($query);\r\n $total = $paginator->count();\r\n\r\n $data = $paginator->getIterator()->getArrayCopy();\r\n if(!empty($data)) {\r\n $offers = $this->processOffersData($data, false);\r\n }\r\n\r\n // sends the out put to the view of the HBox\r\n $this->View()->assign(array(\r\n 'success' => true,\r\n 'data' => $offers,\r\n 'total' => $total\r\n ));\r\n }", "title": "" }, { "docid": "dd68c5aaf62bba59eb1c118ba9877062", "score": "0.65172595", "text": "public function index()\n {\n $this->authorize('items', 'index');\n $data = $this->service->index();\n return $this->successResponse($data);\n }", "title": "" }, { "docid": "319e68416f72b5d4be9e16bfd153c873", "score": "0.6512332", "text": "public function index()\n {\n //get staff\n $staff = StaffModel::paginate(10);\n\n return StaffResource::collection($staff);\n }", "title": "" }, { "docid": "0128f4addd68bf96770aa31441d1e085", "score": "0.65060353", "text": "public function index()\n {\n //\n //return Artista::all();\n return ArtistaResource::collection(Artista::all());\n }", "title": "" }, { "docid": "2028e84eeee5da547d802b37530d47f0", "score": "0.650491", "text": "public function show()\n {\n return $this->service->getAll();\n }", "title": "" }, { "docid": "e1ee96a401d87220945c1c91f862da36", "score": "0.6501406", "text": "public function index()\n {\n $mall = Mall::orderBy('id', 'DESC')->get();\n return MallResource::collection($mall);\n }", "title": "" }, { "docid": "3373e9d4bf0613737bfacd0d8bf0cbaf", "score": "0.65009093", "text": "public function index()\n {\n $this->indexPage('list-category', 'List Category');\n }", "title": "" }, { "docid": "cda757802b45272ab522944beaaf5df2", "score": "0.6493003", "text": "public function index()\n {\n if(request('reload'))\n $articles = Article::orderBy('created_at', 'desc')->paginate(3);\n else\n $articles = Article::all()->sortByDesc('id');\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "552960c1c38f29b1dc303b574b3afc2c", "score": "0.6492177", "text": "public function indexAction() {\n //do some sanity checking\n $error = array();\n $id_User = Default_Model_Auth::getUserId();\n\n try {\n $allitems = $this->RESTModel->gets($id_User);\n } catch( Exception $exc ) {\n $error['code'] = 400;\n $error['message'] = $exc->getMessage();\n }\n\n if( count($error) > 0 )\n $this->getResponse()\n ->setBody($error['message'])\n ->setHttpResponseCode($error['code']);\n else\n $this->getResponse()\n ->setBody(json_encode($allitems))\n ->setHttpResponseCode(200);\n\n }", "title": "" }, { "docid": "26b752dd4fadfe9ae139146b6a14ba4f", "score": "0.6483919", "text": "public function listAction() {\n $this->_template = 'ItemsList';\n Route::factory()->setAction('list');\n // Filter parameters to array if need\n Filter::setFilterParameters();\n // Set filter elements sortable\n Filter::setSortElements();\n $page = !(int) Route::param('page') ? 1 : (int) Route::param('page');\n // Check for existance\n $group = DB::select()->from('catalog_tree')->where('alias', '=', Route::param('alias'))->where('status', '=', 1)->as_object()->execute()->current();\n if( !$group ) { return Config::error(); }\n // Seo\n $this->setSeoForGroup($group);\n // Add plus one to views\n DB::update('catalog_tree')->set(array('views' => (int) $group->views + 1))->where('id', '=', $group->id)->execute();\n // Get items list\n $result = Filter::getFilteredItemsList($this->limit, ($page - 1) * $this->limit, $this->sort, $this->type);\n // Generate filter add for sql queries\n $add = Filter::getSql();\n // Count of parent groups\n $count = DB::query(Database::SELECT, 'SELECT COUNT(DISTINCT catalog.id) AS count FROM catalog '.$add['join'].'WHERE catalog.parent_id = \"'.$group->id.'\" AND catalog.status = \"1\"'.$add['where'])->as_object()->execute()->current();\n if ($count) {\n $count = $count->count;\n } else {\n $count = 0;\n }\n // Generate pagination\n $pager = Pager::factory($page, $count, $this->limit)->create();\n // Render page\n $this->_content = View::tpl( array('result' => $result, 'pager' => $pager), 'Catalog/ItemsList' );\n }", "title": "" }, { "docid": "9e1f5a874e1a782bad9b3af042809146", "score": "0.64805275", "text": "public function index()\n {\n //Show listings\n $listings = Listing::orderBy('created_at', 'desc')->get();\n return view('listings.index')->with('listings', $listings);\n }", "title": "" }, { "docid": "1093dccb5201e51e58ffed50dfe8aa7c", "score": "0.6477544", "text": "public function index()\n {\n $aventura = Aventura::latest()->paginate(10);\n return AventuraResource::collection($aventura);\n }", "title": "" }, { "docid": "fd2bf2ef206a7df828f6b8610a41b3a4", "score": "0.64756256", "text": "public function index()\n {\n // Get brands\n $brand = Brand::all();\n\n // Return collection of brands as resource\n return BrandResource::collection($brand);\n }", "title": "" } ]
2f4b65f1bef027b61885179eeb1bf55c
Get the drivinglicense record associated with the person.
[ { "docid": "66e0fc6248160eb49cff5d32c93caaa1", "score": "0.0", "text": "public function person()\n {\n return $this->belongsTo('App\\Person');\n }", "title": "" } ]
[ { "docid": "761802d69356d2352f340c12b5046e62", "score": "0.6460151", "text": "public function license()\n {\n return $this->belongsTo('CityBoard\\Entities\\License');\n }", "title": "" }, { "docid": "dc9b8cdc124f0dd707b96e6a9b4ce90f", "score": "0.60140574", "text": "public function getLicense(): ?DCATControlledVocabularyEntry\n {\n return $this->license;\n }", "title": "" }, { "docid": "114892d03e8caee21d94099d44207ff3", "score": "0.590382", "text": "public function getLicense(array $params = []) {\n return $this->get(\"license\", $params)->json();\n }", "title": "" }, { "docid": "7a84fbef19f5cc0728d99fd316fbbf12", "score": "0.5783273", "text": "public function getLicense() {\n\t\treturn self::$license;\n\t}", "title": "" }, { "docid": "79712277d205f6fcd89a1cf89030e2f2", "score": "0.57268155", "text": "public function getLicence()\n {\n return $this->licence;\n }", "title": "" }, { "docid": "ad59591cf51207f4e235cb801e94e294", "score": "0.56481034", "text": "function get_license_for_item($item_id)\n{\n return get_db()->getTable('CC')->findLicenseByItem($item_id);\n}", "title": "" }, { "docid": "eaecaf323eb802cb77ecaeda1a11f5d2", "score": "0.5571006", "text": "protected function getLicence($dto)\n {\n $application = $this->getRepo('Application')->fetchById($dto->getApplication());\n\n return $application->getLicence();\n }", "title": "" }, { "docid": "8be1bcd20282bd1a702495b5f5d649f5", "score": "0.5522137", "text": "public function getLicenseAttribute()\n {\n $public_domain_horizon = getdate()['year'] - 70;\n if ($this->photographer && preg_match('/CINQPEYRES|BIDEAU/i', $this->photographer) > 0) {\n if ($this->product && (\n ($this->product->period && $this->product->period->end_year && $this->product->period->end_year < $public_domain_horizon) ||\n ($this->product->conception_year && $this->product->conception_year < $public_domain_horizon)\n )) {\n return 'LO 2.0';\n }\n }\n return null;\n }", "title": "" }, { "docid": "c1516a31acd003a2e0433f3f7d8fba4d", "score": "0.5516748", "text": "public function getLicense(): array;", "title": "" }, { "docid": "22f1dabddd23ff08bb76a5f68f3d24e9", "score": "0.5510437", "text": "public function getLicenseString(): string;", "title": "" }, { "docid": "508eb47e72f34b7289cc46e478f6fce8", "score": "0.54028416", "text": "public function get_software_license($id = '') {\n\t\tif ($id != '') {\n\t\t\t$this->db->where('id', $id);\n\t\t\treturn $this->db->get(db_prefix() . 'tp_software_license')->row();\n\t\t} else {\n\t\t\treturn $this->db->get(db_prefix() . 'tp_software_license')->result_array();\n\t\t}\n\t}", "title": "" }, { "docid": "9d7e00171ffc127ea019003454bfc4f3", "score": "0.5338266", "text": "function getPayment() {\n\t\treturn Payment::find($this->payment_unique_id);\n\t}", "title": "" }, { "docid": "88b75888af4d09aa28425aeac90fd4eb", "score": "0.5242456", "text": "public function getDriverDriverLicence(): ?string\n {\n return $this->driverDriverLicence;\n }", "title": "" }, { "docid": "072ca05940f332a8df3b90cd40a9c0c7", "score": "0.5196036", "text": "private static function get_license_details()\n {\n global $wp_filesystem;\n require_once (ABSPATH . '/wp-admin/includes/file.php');\n\n WP_Filesystem();\n\n if ($wp_filesystem->exists(self::get_license_file()))\n return json_decode($wp_filesystem->get_contents(self::get_license_file()), true);\n return array();\n }", "title": "" }, { "docid": "2c4fd8d2abd3b5f23270f0345a3fc1f8", "score": "0.5161014", "text": "public function get_wallet()\n {\n $headers = array();\n return $this->get_json(Requests::get(\n $this->get_wallet_url(),\n $headers,\n $this->get_authorisation_header($this->access_id, $this->secret_key, 'GET')));\n }", "title": "" }, { "docid": "c52b72a1a4e70ec03227207c365658f4", "score": "0.51529324", "text": "public static function licenseKey()\n\t{\n\t\t/* Get the cached value */\n\t\t$cached = NULL;\n\t\tif ( isset( \\IPS\\Data\\Store::i()->license_data ) )\n\t\t{\n\t\t\t$cached = \\IPS\\Data\\Store::i()->license_data;\n\n\t\t\t/* If it's younger than 21 days, just use that */\n\t\t\tif ( $cached['fetched'] > ( time() - 1814400 ) )\n\t\t\t{\n\t\t\t\treturn $cached['data'];\n\t\t\t}\n\t\t}\n\n\t\t/* Call the main server */\n\t\ttry\n\t\t{\n\t\t\t$response = \\IPS\\Http\\Url::ips( 'license/' . \\IPS\\Settings::i()->ipb_reg_number )->request()->get();\n\t\t\tif ( $response->httpResponseCode == 404 )\n\t\t\t{\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t\t$response = $response->decodeJson();\n\t\t}\n\t\tcatch ( \\Exception $e )\n\t\t{\n\t\t\t/* If the server is offline right now, use the cached value from above */\n\t\t\treturn $cached;\n\t\t}\n\t\t\n\t\t/* Update the license info in the store */\n\t\t\\IPS\\Data\\Store::i()->license_data\t= array( 'fetched' => time(), 'data' => $response );\n\n\t\t/* Return */\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "37870c6be3a4b0680afa131fdc382478", "score": "0.51192474", "text": "public static function get_person()\n\t{\n\t\t$person = DB::table('D_OSOBA')\n\t\t\t->where_id_domacnost(Auth::user()->id)\n\t\t\t->where_fl_aktivna('A')\n\t\t\t->where_fl_domacnost('N')\n\t\t\t->get(array('id', 't_meno_osoby', 't_priezvisko_osoby'));\n\n\t\treturn $person;\n\t}", "title": "" }, { "docid": "20a04b6501b2af162c98dd47b18fe315", "score": "0.5102255", "text": "public function get($project, $license, $optParams = array())\n {\n $params = array('project' => $project, 'license' => $license);\n $params = array_merge($params, $optParams);\n return $this->call('get', array($params), \"Google_Service_Compute_License\");\n }", "title": "" }, { "docid": "043b532fb503b637101c0acd9195b49e", "score": "0.5064702", "text": "public function get_license_page() {\n\t\treturn 'licenses';\n\t}", "title": "" }, { "docid": "bc1ff9e379db0f2b50095fdee70a677d", "score": "0.50465757", "text": "public function name()\n {\n return $this->license->getName();\n }", "title": "" }, { "docid": "ed98a5d2ed2443977ce136d619ca4937", "score": "0.50022", "text": "public function show(License $license)\n {\n $this->authorize('show', $license);\n\n return new LicenseResource($license);\n }", "title": "" }, { "docid": "24b5021c2eb0a2326decb0207653dab3", "score": "0.49884716", "text": "function get_payment() {\n\t$this->get_payments();\n\t$this->payment = reset($this->payments->records);\n\n\treturn $this->payment;\n }", "title": "" }, { "docid": "f8fb9c8e3621f81ae90030ef3ffafcba", "score": "0.497505", "text": "public function get_license() {\n\t\tif ( ( ! gu_fs()->is_not_paying() )\n\t\t\t|| ! \\WP_Dismiss_Notice::is_admin_notice_active( 'license-3' )\n\t\t) {\n\t\t\treturn;\n\t\t}\n\n\t\t?>\n\t\t<div data-dismissible=\"license-5\" class=\"notice-info notice is-dismissible\">\n\t\t\t<p>\n\t\t\t\t<?php esc_html_e( 'Please consider purchasing a Git Updater license for authenticated API requests and to support continued development.', 'git-updater' ); ?>\n\t\t\t\t<br>\n\t\t\t\t<?php esc_html_e( 'Only $19.99 for an unlimited yearly license.', 'git-updater' ); ?>\n\t\t\t\t<br><br>\n\t\t\t\t<a class=\"button primary-button regular\" href=\"https://git-updater.com/store/\"><?php esc_html_e( 'Purchase from Store', 'git-updater' ); ?></a>\n\t\t\t</p>\n\t\t</div>\n\t\t<?php\n\t}", "title": "" }, { "docid": "612136dd31b902924ff18032f15c8625", "score": "0.4932583", "text": "public function get_license_key() {\n\n\t\t$key = Options::init()->get( 'license', 'key' );\n\n\t\tif ( empty( $key ) ) {\n\t\t\t$key = '';\n\t\t}\n\n\t\treturn $key;\n\t}", "title": "" }, { "docid": "d80844bd398c04d2673aa1d92f36d1ef", "score": "0.49060765", "text": "public function getBusinessLicenceNumber()\n {\n return $this->business_licence_number;\n }", "title": "" }, { "docid": "44a281b68f6b7b87847d8f21f35a5012", "score": "0.4905283", "text": "public static function getRelationName(): Name\n {\n return new Name('license');\n }", "title": "" }, { "docid": "4ef46e8745ce5f737541ce5781699bd7", "score": "0.48924583", "text": "public static function getLicenseKey()\n\t{\n\t\t$storedBlocksInfo = static::_getStoredInfo();\n\t\treturn $storedBlocksInfo ? $storedBlocksInfo->licenseKey : null;\n\t}", "title": "" }, { "docid": "5f4d807291171e08d5c83d52d0e16e95", "score": "0.48553967", "text": "public function getParty()\n {\n $this->__load();\n return parent::getParty();\n }", "title": "" }, { "docid": "24485a9f5296fedfdebcb4cfb9c4baa7", "score": "0.48540717", "text": "public function getGlobalAgreement() {\n return $this->getAgreement($this->response);\n }", "title": "" }, { "docid": "88dbcb838f581f3e71ac9bd65d6f2056", "score": "0.48462537", "text": "public function getPayer();", "title": "" }, { "docid": "4c88925f92c9f3383ab6ae164ff0d8eb", "score": "0.48399824", "text": "public function getLicenceType()\n {\n return $this->licenceType;\n }", "title": "" }, { "docid": "6869c76095c0fb67af70cb8a789793bb", "score": "0.48398522", "text": "private function manageLicense() {\n\n\t\t$admin_table = new adminTable($this, array());\n\t\t\n\t\t$buffer = $admin_table->backOffice(\n\t\t\t'multimediaLicense', \n\t\t\tarray(\n\t\t\t\t'list_display' => array('id', 'name', 'url'),\n\t\t\t\t'filter_fields'=>array('name'), \n\t\t\t\t'list_title'=>_(\"Elenco licenze\"), \n\t\t\t\t'list_description'=>\"<p>\"._('Le seguenti licenze sono associabili ai media inseriti').\"</p>\",\n\t\t\t),\n\t\t\tarray(), \n\t\t\tarray(\n\t\t\t\t'description' => array(\n\t\t\t\t\t'widget'=>'editor', \n\t\t\t\t\t'notes'=>false, \n\t\t\t\t\t'img_preview'=>false, \n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t\t\n\t\treturn $buffer;\n\t}", "title": "" }, { "docid": "aa437c1387a324d5830512d52f44d8e9", "score": "0.48396367", "text": "public function getAccountingCustomerParty()\n {\n return $this->accountingCustomerParty;\n }", "title": "" }, { "docid": "aa437c1387a324d5830512d52f44d8e9", "score": "0.48396367", "text": "public function getAccountingCustomerParty()\n {\n return $this->accountingCustomerParty;\n }", "title": "" }, { "docid": "dff8d3f97c3d0300cbe4b641004ebac9", "score": "0.48283097", "text": "public function royaltyAgreement()\n {\n return $this->belongsTo('App\\RoyaltyAgreement');\n }", "title": "" }, { "docid": "1a629adc3c10bd0ee2c7d6fa2cddf751", "score": "0.4821592", "text": "function getRecordByUser(User $user, $paysys_id)\n {\n $cc = $this->findFirstBy(['user_id' => $user->pk(), 'paysys_id' => $paysys_id, 'invoice_id' => null]);\n \n if(empty($cc))\n {\n $cc = $this->createRecord();\n $cc->user_id = $user->pk();\n $cc->paysys_id = $paysys_id;\n }\n \n return $cc;\n }", "title": "" }, { "docid": "2ebd069884d2b48c62b6ecee1c2ff7a8", "score": "0.48137006", "text": "public function customer()\n {\n return $this->api->customer($this->customerId)->get();\n }", "title": "" }, { "docid": "dc0026e8872f3564351957cc81c77256", "score": "0.4786255", "text": "public function getParty()\n {\n return $this->party;\n }", "title": "" }, { "docid": "2efd6a5f98075134eefbd3c6b2538fe8", "score": "0.47845572", "text": "abstract public function getPayment();", "title": "" }, { "docid": "e650265b4a21e1c0ac32f44c28e59174", "score": "0.47828314", "text": "public static function getByDeveloper()\n {\n \treturn ProspectBuyer::getCurrentDeveloper()->get();\n }", "title": "" }, { "docid": "8c04eb42215945f47f09bb3f265b5bc4", "score": "0.47802758", "text": "public function getDriver()\n {\n return $this->hasOne(Driver::class, ['id' => 'driver_id']);\n }", "title": "" }, { "docid": "9783c08eb8e88732ace3452840249aad", "score": "0.47747147", "text": "public function getFkLicitacaoContratoLicitacao()\n {\n return $this->fkLicitacaoContratoLicitacao;\n }", "title": "" }, { "docid": "330ce19661e287dc53f153b4e4e8e34f", "score": "0.4772675", "text": "public function getFkLicitacaoComissao()\n {\n return $this->fkLicitacaoComissao;\n }", "title": "" }, { "docid": "12973bf9543169c3647f5b28a95323d1", "score": "0.4766635", "text": "public function query()\n {\n $query = License::query()\n ->with('category', 'label')\n ->where('client_id', $this->client);\n\n return $this->applyScopes($query);\n }", "title": "" }, { "docid": "a2d7fbe604771412e1cdb2bfd1ae9b98", "score": "0.4766186", "text": "function bibdk_saou_ajax_fetchLicensByPid($pid, $agency_id) {\n $agency_and_user_ids = bibdk_saou_get_agency_and_userids($agency_id);\n $response = open_saou_FetchLicenseByPid($pid, $agency_and_user_ids, $agency_id);\n $saou = bibdk_saou_check_saou_response($response);\n\n return bibdk_saou_get_output_by_permission($saou, $pid);\n}", "title": "" }, { "docid": "69359efcc8ffbdd901bd97e23e3d9b7e", "score": "0.47588825", "text": "public function donor()\r\n {\r\n return $this->hasOne('FSR\\Donor');\r\n }", "title": "" }, { "docid": "f08136f078a54d7fe6fd5dda9178f8d2", "score": "0.47576776", "text": "public function licenciatura(){\n return $this->belongsTo('App\\Licenciatura');\n }", "title": "" }, { "docid": "969338e1e80bc4fe21b3045c25ace416", "score": "0.47567445", "text": "public function getBankLicenceElectronic()\n {\n return $this->bank_licence_electronic;\n }", "title": "" }, { "docid": "80c5a44c8719d382c1ff043ade78e800", "score": "0.47519255", "text": "protected function _retrieve()\n {\n /** @var $customer VES_Vendors_Model_Vendor */\n $vendor = $this->_getVendorByApiKey($this->getRequest()->getParam('api'));\n if(!$vendor->getId()) {\n $this->_critical(self::RESOURCE_NOT_FOUND);\n }\n return $vendor->getData();\n }", "title": "" }, { "docid": "6538c3cb2a1703c2c343818b33ac61fd", "score": "0.47508183", "text": "public function getSingleCustomerPayment($id){\n \t\t$pay = Payment::where('customer_id', $id)->latest()->get();\n\t\treturn $pay;\n \t}", "title": "" }, { "docid": "460fe815f113295ab64c495e758e982b", "score": "0.47471175", "text": "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "title": "" }, { "docid": "460fe815f113295ab64c495e758e982b", "score": "0.47471175", "text": "public function get_licence()\n {\n return 'Licensed on the same terms as Composr';\n }", "title": "" }, { "docid": "41fac13a11abee0bb5510bd9682ab418", "score": "0.47445393", "text": "public function getDebtor()\n\t{\n\t\treturn $this->hasOne(Debtor::className(), ['id' => 'debtor_id']);\n\t}", "title": "" }, { "docid": "d1500616ee1fd62ab6d886133d6605e9", "score": "0.472164", "text": "public function infoOfLicense($licenseId)\n {\n return TfAdsBannerImage::where(['publish' => 1, 'license_id' => $licenseId, 'action' => 1])->first();\n }", "title": "" }, { "docid": "c51ebc27de2374b9f7574537c6d5da23", "score": "0.47137228", "text": "public function getLicenses(): Licenses\n {\n return $this->get('licenses');\n }", "title": "" }, { "docid": "d580f4fdc31ed3002194aa4196d4dfec", "score": "0.4707586", "text": "public function payment()\n\t{\n\t\treturn $this->hasOne(Payment::class);\n\t}", "title": "" }, { "docid": "871a2bb604c01d3777b265c9207651a8", "score": "0.4705024", "text": "public function getDoctor()\n {\n return $this->doctor;\n }", "title": "" }, { "docid": "881c76cfb8eff6d8d56d109bc99bdb59", "score": "0.4701813", "text": "public function licensing()\n {\n return view('home.licensing')->with([\n 'mplans' => Plans::where('type', 'Main')->get(), 'pplans' => Plans::where('type', 'Promo')->get(),\n 'title' => 'Licensing, regulation and registration', 'settings' => Settings::where('id', '=', '1')->first(),\n ]);\n }", "title": "" }, { "docid": "17276549ce47b0d7de73274bb9d57bfe", "score": "0.46916428", "text": "public function add_software_license($data) {\n\t\tif (!isset($data['enable_log'])) {\n\t\t\t$data['enable_log'] = 'off';\n\t\t}\n\t\t$array_custom = [];\n\t\tif (isset($data['field_name'])) {\n\t\t\tif (count($data['field_name']) > 0) {\n\t\t\t\tforeach ($data['field_name'] as $key => $value) {\n\t\t\t\t\tarray_push($array_custom, array('name' => $value, 'value' => $data['field_value'][$key]));\n\t\t\t\t}\n\t\t\t\tunset($data['field_name']);\n\t\t\t\tunset($data['field_value']);\n\t\t\t}\n\t\t}\n\n\t\tif(isset($data['relate_id']) && count($data['relate_id']) > 0){\n\t\t\t$data['relate_id'] = implode(',', $data['relate_id']);\n\t\t}\n\n\t\tif(isset($data['relate_id_project']) && count($data['relate_id_project']) > 0){\n\t\t\t$data['relate_id'] = implode(',', $data['relate_id_project']);\n\t\t\tunset($data['relate_id_project']);\n\t\t}\n\n\t\t$data['add_from'] = get_staff_user_id();\n\t\t$data['custom_field'] = json_encode($array_custom);\n\t\t$this->db->insert(db_prefix() . 'tp_software_license', $data);\n\t\t$insert_id = $this->db->insert_id();\n\t\tif($insert_id){\n\t\t\tif($data['relate_to'] == 'contract'){\n\t\t\t\tif($data['relate_id'] != ''){\n\t\t\t\t\t$this->load->model('contracts_model');\n\t\t\t\t\t$relate_id = explode(',', $data['relate_id']);\n\t\t\t\t\tforeach($relate_id as $rlid){\n\t\t\t\t\t\t$contract = $this->contracts_model->get($rlid);\n\t\t\t\t\t\tif($contract){\n\t\t\t\t\t\t\t$contact_id = get_primary_contact_user_id($contract->client);\n\t\t\t\t\t\t\t$this->db->where('id',$contact_id);\n\t\t\t\t\t\t\t$ct = $this->db->get(db_prefix().'contacts')->row();\n\t\t\t\t\t\t\tif($ct){\n\t\t\t\t\t\t\t\t$share_data = [];\n\t\t\t\t\t\t\t\t$share_data['id'] = ''; \n\t\t\t\t\t\t\t\t$share_data['share_id'] = $insert_id;\n\t\t\t\t\t\t\t\t$share_data['type'] = 'software_license';\n\t\t\t\t\t\t\t\t$share_data['client'] = $ct->email;\n\t\t\t\t\t\t\t\t$share_data['email'] = '';\n\t\t\t\t\t\t\t\t$share_data['effective_time'] = date('Y-m-d H:i:s',strtotime(\"+1 week\"));\n\t\t\t\t\t\t\t\t$share_data['read'] = 'on';\n\t\t\t\t\t\t\t\t$share_data['write'] = 'on';\n\t\t\t\t\t\t\t\t$share_data['creator'] = get_staff_user_id();\n\t\t\t\t\t\t\t\t$share_data['datecreator'] = date('Y-m-d H:i:s');\n\t\t\t\t\t\t\t\t$this->add_share($share_data);\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}elseif($data['relate_to'] == 'project'){\n\t\t\t\tif($data['relate_id'] != ''){\n\t\t\t\t\t$this->load->model('projects_model');\n\t\t\t\t\t$relate_id = explode(',', $data['relate_id']);\n\t\t\t\t\tforeach($relate_id as $rlid){\n\t\t\t\t\t\t$project = $this->projects_model->get($rlid);\n\t\t\t\t\t\tif($project){\n\t\t\t\t\t\t\t$contact_id = get_primary_contact_user_id($project->clientid);\n\t\t\t\t\t\t\t$this->db->where('id',$contact_id);\n\t\t\t\t\t\t\t$ct = $this->db->get(db_prefix().'contacts')->row();\n\t\t\t\t\t\t\tif($ct){\n\t\t\t\t\t\t\t\t$share_data = [];\n\t\t\t\t\t\t\t\t$share_data['id'] = ''; \n\t\t\t\t\t\t\t\t$share_data['share_id'] = $insert_id;\n\t\t\t\t\t\t\t\t$share_data['type'] = 'software_license';\n\t\t\t\t\t\t\t\t$share_data['client'] = $ct->email;\n\t\t\t\t\t\t\t\t$share_data['email'] = '';\n\t\t\t\t\t\t\t\t$share_data['effective_time'] = date('Y-m-d H:i:s',strtotime(\"+1 week\"));\n\t\t\t\t\t\t\t\t$share_data['read'] = 'on';\n\t\t\t\t\t\t\t\t$share_data['write'] = 'on';\n\t\t\t\t\t\t\t\t$share_data['creator'] = get_staff_user_id();\n\t\t\t\t\t\t\t\t$share_data['datecreator'] = date('Y-m-d H:i:s');\n\t\t\t\t\t\t\t\t$this->add_share($share_data);\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\n\t\t\t$this->db->where('type','category');\n\t\t\t$this->db->where('share_id', $data['mgt_id']);\n\t\t\t$cate_shared = $this->db->get(db_prefix().'tp_share')->result_array();\n\t\t\tif(count($cate_shared) > 0){\n\t\t\t\tforeach($cate_shared as $cs){\n\t\t\t\t\t$shared_data['share_id'] = $insert_id;\n\t\t\t\t\t$shared_data['type'] = 'software_license';\n\t\t\t\t\t$shared_data['client'] = $cs['client'];\n\t\t\t\t\t$shared_data['email'] = $cs['email'];\n\t\t\t\t\t$shared_data['effective_time'] = date('Y-m-d H:i:s',strtotime(\"+1 week\"));\n\t\t\t\t\t$shared_data['read'] = 'on';\n\t\t\t\t\t$shared_data['write'] = 'on';\n\t\t\t\t\t$shared_data['creator'] = get_staff_user_id();\n\t\t\t\t\t$shared_data['datecreator'] = date('Y-m-d H:i:s');\n\t\t\t\t\t$this->add_share($shared_data);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->notification_to_staff($insert_id,'software_license','create');\n\n\t\t\treturn $insert_id;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "dd76471fa7f665f219da640d6d90275d", "score": "0.46867672", "text": "function generate_cps_license($payment_id)\n\t\t{\n\t\t\t$payment_meta = edd_get_payment_meta( $payment_id );\n\t\t\t$user_info = maybe_unserialize($payment_meta['user_info']);\n\n\t\t\t$email = $payment_meta['email'];\n\t\t\t$name = $user_info['first_name'].' '.$user_info['last_name'];\n\t\t\t$transaction_id = esc_attr(edd_get_payment_transaction_id($payment_id));\n\n\t\t\t$cps_api = new copyprotectsoftwareapi();\n\n\t\t\t$cart_items = edd_get_payment_meta_cart_details( $payment_id );\n\t\t\tforeach($cart_items as $item)\n\t\t\t{\n\t\t\t\t$download_id = $item['id'];\n\t\t\t\t$license_gen_id = get_post_meta( $download_id, '_eddcps_licensegenid', true );\n\n\t\t\t\t$cps_api->generate_license($license_gen_id,$name, $email, $transaction_id);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "5cfd9e144228112a3b01968896a9a288", "score": "0.46809572", "text": "public function getLatestPayment() {\n\t\t$db = DB::Instance();\n\t\t$query = 'SELECT * FROM payment_records WHERE account_id='.$db->qstr($this->id).' AND (authorised OR pre_authed) ORDER BY created DESC LIMIT 1';\n\t\t$row = $db->GetRow($query);\n\t\tif($row!==false&&count($row)>0) {\n\t\t\t$record = new PaymentRecord();\n\t\t\t$record->_data = $row;\n\t\t\t$record->load($row['id']);\n\t\t\treturn $record;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "c8747bebc9ff7455d4f2579fd935bfa7", "score": "0.467771", "text": "public function getPayment()\n {\n return $this->payment;\n }", "title": "" }, { "docid": "c8747bebc9ff7455d4f2579fd935bfa7", "score": "0.467771", "text": "public function getPayment()\n {\n return $this->payment;\n }", "title": "" }, { "docid": "1af50341630e0122252641ce491d72ac", "score": "0.46707478", "text": "public function get_licence()\n {\n return 'BSD license';\n }", "title": "" }, { "docid": "37b1b5fd5b4d74f0efd3f5ca619cdb15", "score": "0.46640342", "text": "function getDoc()\n {\n $this->db->select('Doc_id');\n $this->db->from('Doctor');\n $query = $this->db->get();\n \n return $query->result();\n }", "title": "" }, { "docid": "d46a64b4cb4daf485403e1c23db5ec80", "score": "0.46569476", "text": "public function is_licensed() {\n\n\t\t\treturn WS_Form_Common::option_get($this->prefix . 'license_activated', false);\n\t\t}", "title": "" }, { "docid": "4fbb0447242aab7ab92369c67890c789", "score": "0.4654746", "text": "public function get_licence()\n {\n return 'Creative Commons Attribution 3.0';\n }", "title": "" }, { "docid": "3258733238baacdf0b6d4326be7c6f0b", "score": "0.4647929", "text": "public function get_legal() {\n $this->load->model('admin_terms_model');\n $legal_data = $this->admin_terms_model->getAllLegal();\n $this->r_data['message'] = 'Terms and Condition not found..!';\n if ($legal_data) {\n $this->r_data['data'] = $legal_data;\n $this->r_data['success'] = 1;\n $this->r_data['message'] = 'Terms and Condition found..!';\n }\n return $this->r_data;\n }", "title": "" }, { "docid": "1a67c15b0c477d01bd0cd463fac2d4ed", "score": "0.46396104", "text": "public function getCustomer();", "title": "" }, { "docid": "1a67c15b0c477d01bd0cd463fac2d4ed", "score": "0.46396104", "text": "public function getCustomer();", "title": "" }, { "docid": "1a67c15b0c477d01bd0cd463fac2d4ed", "score": "0.46396104", "text": "public function getCustomer();", "title": "" }, { "docid": "1d171fe5f023dba934c55a85daebf6cc", "score": "0.46369976", "text": "public function getWalletDetails(): ?DigitalWalletDetails\n {\n return $this->walletDetails;\n }", "title": "" }, { "docid": "d36556b67552a0e12f0500e5fcb1b619", "score": "0.46367732", "text": "public function getPricePerson()\n {\n return $this->price_person;\n }", "title": "" }, { "docid": "b301005d5566642617fb584c5321268d", "score": "0.46365523", "text": "public function getBusinessLicenceAddress()\n {\n return $this->business_licence_address;\n }", "title": "" }, { "docid": "ea36243e34c059a82601bcaef52c7b8a", "score": "0.46357155", "text": "public function getCustomer($renter) {\n $customerDB = $this->db->query(\"SELECT * FROM Customers WHERE socialSecurityNumber = $renter\");\n $customer = $customerDB->fetch();\n\n if (!$customerDB) die($this->db->errorInfo());\n return $customer;\n }", "title": "" }, { "docid": "4e2355fb24777043d5c9559cf2bf5c73", "score": "0.46348763", "text": "public function reservationRecord() {\t\n\n\t\t$access_token=$_SERVER['HTTP_X_WOW_TOKEN'];\n\n\t\t$userID = UserDevices::getUserDetailsByAccessToken($access_token);\n\t\tif($userID) {\n\t\t\t$arrResponse = Reservation::getReservationRecord($userID);\n\t\t}\n\t\telse {\n\t\t\t$arrResponse['status'] = Config::get('constants.API_ERROR');\n\t\t\t$arrResponse['msg'] = 'Not a valid request'; \n\t\t}\n\t\t\n\t\treturn response()->json($arrResponse,200);\n\t}", "title": "" }, { "docid": "42b07c4d64bcb864d3d06cacfed4b44b", "score": "0.46310884", "text": "public function fetchRecord($opt=0)\n\t{\n\t\t$row = $this->fetchOrdered($opt);\n\t\treturn isset($row) ? DB_Record::create($this, $row) : null;\n\t}", "title": "" }, { "docid": "ce10c65d92f0a4795662fc03391f3d53", "score": "0.46255827", "text": "public function credential()\n {\n $clientOptions = array(\n 'serverUrl' => $this->crm_address,\n 'username' => $this->crm_user,\n 'password' => $this->crm_password,\n 'authMode' => $this->crm_connection_mode\n );\n\n try {\n $clientSettings = new Settings($clientOptions);\n $client = new Client($clientSettings);\n if ($clientSettings->hasOrganizationData()) {\n return $client;\n } else {\n return false;\n }\n } catch (\\Exception $e) {\n return false;\n }\n }", "title": "" }, { "docid": "a0a4678ac46b76bcd486361303d0ed50", "score": "0.46224797", "text": "public function getPaymentDetailOfAll(){\n \t\t$pay = new Payment;\n \t\t$payEloquent = DB::table('customer_payment')\n\t\t\t\t\t\t\t->join('customers', 'customer_payment.customer_id', '=', 'customers.id')\n\t\t\t\t\t\t\t->select('customer_payment.*', 'customers.name', 'customers.phone', 'customers.username')\n\t\t\t\t\t\t\t->where(['customers.gym_id' => $this->GYM_ID, 'customer_payment.status' => 1, 'customers.is_deleted' => 1])\n\t\t\t\t\t\t\t->orderByDesc('customer_payment.created_at')\n\t\t\t\t\t\t\t->get();\n\n \t\treturn $payEloquent;\n \t}", "title": "" }, { "docid": "65f9fed94c8f2d6d6ae895d7d4ef4379", "score": "0.46190768", "text": "public function stripeCustomer()\n {\n return $this->morphOne(config('plans.models.stripeCustomer'), 'model');\n }", "title": "" }, { "docid": "62b7c028e9ab657b5922813392c8547c", "score": "0.46165928", "text": "public function getPaymentInfo();", "title": "" }, { "docid": "b461ec8bafc5469866a40f76b23272f8", "score": "0.46098775", "text": "public function getpersonaid()\n {\n return $this->personaid;\n }", "title": "" }, { "docid": "47e2d6cd101b22a4a5f8903c6ecde274", "score": "0.46097657", "text": "public function show($id) {\n $license = License::findOrFail($id);\n $company = Company::findOrFail($license->company_id);\n\n return view('licenses.show', ['license' => $license, 'company' => $company]);\n }", "title": "" }, { "docid": "417464a37d953acd49d680e99f2f595d", "score": "0.46050462", "text": "public function getPayment(){\n return Payway::all();\n }", "title": "" }, { "docid": "7340fdb71013e842dad500ef63632d3b", "score": "0.45998198", "text": "public function payment()\n {\n return $this->hasOne(Payment::class);\n }", "title": "" }, { "docid": "a3abd094fab6efad72ec916d763b42db", "score": "0.45997897", "text": "public function getProveedor(){\n\t\t$sql = \"SELECT ID_proveedor, nombre_proveedor, correo, telefono, direccion, estado FROM proveedor ORDER BY nombre_proveedor\";\n\t\t$params = array(null);\n\t\treturn Database::getRows($sql, $params);\n\t}", "title": "" }, { "docid": "eae896814144f9dec2f4d6284962dcd4", "score": "0.45769742", "text": "public function show(string $id)\n {\n $resource = License::findOrFail($id);\n\n return [\n 'success' => true,\n 'result' => $resource,\n ];\n }", "title": "" }, { "docid": "9d9a931dac5e61e6e18f0ef33ccbb3d7", "score": "0.45737225", "text": "public function payment() {\n return $this->hasOne(\n 'App\\Models\\Payment',\n 'user_id',\n 'user_id'\n );\n }", "title": "" }, { "docid": "8474383126db6e60698a7bdc26310750", "score": "0.45701814", "text": "public function activate_license() {\r\n\t\tif( isset( $_POST['edd_license_activate'] ) ) {\r\n\t\t\t// run a quick security check\r\n\t\t\tif( ! check_admin_referer( 'trp_license_nonce', 'trp_license_nonce' ) )\r\n\t\t\t\t\treturn; // get out if we didn't click the Activate button\r\n // retrieve the license from the database\r\n $license = trim( $this->get_option( 'trp_license_key' ) );\r\n\r\n // data to send in our API request\r\n $api_params = array(\r\n 'edd_action' => 'activate_license',\r\n 'license' => $license,\r\n 'item_name' => urlencode( TRP_BOR_ITEM_NAME ), // the name of our product in EDD\r\n 'url' => home_url()\r\n );\r\n\r\n // Call the custom API.\r\n $response = wp_remote_post( TRP_BOR_STORE_URL, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );\r\n\r\n // make sure the response came back okay\r\n if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {\r\n\r\n $response_error_message = $response->get_error_message();\r\n $message = ( is_wp_error( $response ) && ! empty( $response_error_message ) ) ? $response->get_error_message() : __( 'An error occurred, please try again.' );\r\n\r\n } else {\r\n\r\n $license_data = json_decode( wp_remote_retrieve_body( $response ) );\r\n\r\n if ( false === $license_data->success ) {\r\n\r\n switch( $license_data->error ) {\r\n\r\n case 'expired' :\r\n\r\n $message = sprintf(\r\n __( 'Your license key expired on %s.' ),\r\n date_i18n( get_option( 'date_format' ), strtotime( $license_data->expires, current_time( 'timestamp' ) ) )\r\n );\r\n break;\r\n\r\n case 'revoked' :\r\n\r\n $message = __( 'Your license key has been disabled.' );\r\n break;\r\n\r\n case 'missing' :\r\n\r\n $message = __( 'Invalid license.' );\r\n break;\r\n\r\n case 'invalid' :\r\n case 'site_inactive' :\r\n\r\n $message = __( 'Your license is not active for this URL.' );\r\n break;\r\n\r\n case 'item_name_mismatch' :\r\n\r\n $message = sprintf( __( 'This appears to be an invalid license key for %s.' ), TRP_BOR_ITEM_NAME );\r\n break;\r\n\r\n case 'no_activations_left':\r\n\r\n $message = __( 'Your license key has reached its activation limit.' );\r\n break;\r\n\r\n default :\r\n\r\n $message = __( 'An error occurred, please try again.' );\r\n break;\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n // Check if anything passed on a message constituting a failure\r\n if ( ! empty( $message ) ) {\r\n $base_url = admin_url( 'admin.php?page=' . 'trp_license_key' );\r\n $redirect = add_query_arg( array( 'sl_activation' => 'false', 'message' => urlencode( $message ) ), $base_url );\r\n\r\n wp_redirect( $redirect );\r\n exit();\r\n }\r\n\r\n // $license_data->license will be either \"valid\" or \"invalid\"\r\n\r\n $this->update_option( 'trp_license_status', $license_data->license );\r\n wp_redirect( $this->license_page_url() );\r\n exit();\r\n }\r\n }", "title": "" }, { "docid": "ff9b57d2d5c72e3ef372474add87053b", "score": "0.4566639", "text": "public function getRightsAgreementId()\n {\n return $this->rightsAgreementId;\n }", "title": "" }, { "docid": "78883e0081e2b92c1f8c9321f6641c73", "score": "0.45650312", "text": "public function getBusinessLicenseCode()\n {\n $value = $this->get(self::business_license_code);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "585f9121a893979c4e04ceae468ba880", "score": "0.45589918", "text": "private static function get_license_file()\n {\n $license_file = '';\n if (file_exists(plugin_dir_path(__FILE__). 'key.lic'))\n $license_file =plugin_dir_path(__FILE__). 'key.lic';\n else if ( file_exists(plugin_dir_path(__FILE__). '../key.lic') )\n {\n $license_file = plugin_dir_path(__FILE__). '../key.lic';\n }\n return $license_file;\n }", "title": "" }, { "docid": "3a4b36171a205279b87b9463d4e58c4b", "score": "0.45552114", "text": "public function show(Donor $donor)\n {\n\n return new DonorResource($donor);\n }", "title": "" }, { "docid": "1b48ba488ba687620fe016550532ce3d", "score": "0.4554528", "text": "public function getFkLicitacaoContratoCompraDireta()\n {\n return $this->fkLicitacaoContratoCompraDireta;\n }", "title": "" }, { "docid": "82a9c0ee48ee9aa7a767b3a91b1d97cf", "score": "0.45529437", "text": "public function getRouteKeyName(): string\n {\n return 'license_identifier';\n }", "title": "" }, { "docid": "25fdd9cb22403480cd27af284daf8735", "score": "0.45445362", "text": "public function show($id)\n {\n $license = License::findOrFail($id);\n $this->authorize('view', $license);\n if (Auth::user()->isSuperUser()) {\n $people = Person::all();\n } else {\n $people = Person::where('institution_id', Auth::user()->institution_id)->get();\n }\n $data = [\n 'page_title' => $this->page_title,\n 'page_subtitle' => 'Detail Lisensi',\n 'people' => $people,\n 'item' => $license,\n ];\n return view('licenses.view', $data);\n }", "title": "" }, { "docid": "1affc1b4002d2e4151d90eb8d0e88f20", "score": "0.45443386", "text": "public function getClient()\n {\n $this->open();\n return $this->_dynamoDbClient;\n }", "title": "" }, { "docid": "9c1402670f61627e57fc83557745b351", "score": "0.45408186", "text": "public function getDateLicenciement() {\n return $this->dateLicenciement;\n }", "title": "" }, { "docid": "bf8d7198f42d2b25360666b291195641", "score": "0.45360455", "text": "public function add_license()\n {\n //get job\n $job_id = $this->uri->segment(3, 0);\n //get license\n $prop_link_id = $this->uri->segment(4, 0);\n $driving_years = $this->uri->segment(5, 0);\n $main_join_table = 'properties';\n $prop_link_type = 'drivers_license';\n //the drivers' license might already exist with insufficient years, if user clicks add, then update the years only\n //get property\n $querydata = [\n 'person_id' => $this->person_id,\n 'prop_link_id' => $prop_link_id,\n 'prop_link_type' => $prop_link_type,\n ];\n $found_link = $this->properties_model->get_links($main_join_table, $querydata);\n if ($found_link) {\n //if anything found, update property\n $prop_id = $found_link[0]->prop_id;\n $this->properties_model->update_driving_years($main_join_table, $prop_id, $driving_years);\n } else {\n $new_property = [\n 'person_id' => $this->person_id,\n 'prop_link_id' => $prop_link_id,\n 'prop_link_type' => $prop_link_type,\n 'driving_years' => $driving_years,\n ];\n if (!$this->properties_model->add($main_join_table, $new_property)) {\n //set message\n $this->session->set_flashdata('link_not_added', 'New link NOT added');\n } else {\n //set message\n $this->session->set_flashdata('link_added', 'New link added');\n }\n }\n redirect('job_user/index/' . $job_id);\n }", "title": "" }, { "docid": "cadf192dd915a67b502e724995957838", "score": "0.45350173", "text": "public function getDoctor()\n {\n return $this->hasOne(Doctors::className(), ['doctorId' => 'doctorId']);\n }", "title": "" }, { "docid": "828802ec8538d0712ffcd47aeec9f251", "score": "0.45323852", "text": "public function getLicenses($criteria = null, PropelPDO $con = null)\n {\n $partial = $this->collLicensesPartial && !$this->isNew();\n if (null === $this->collLicenses || null !== $criteria || $partial) {\n if ($this->isNew() && null === $this->collLicenses) {\n // return empty collection\n $this->initLicenses();\n } else {\n $collLicenses = LicenseQuery::create(null, $criteria)\n ->filterByPlan($this)\n ->find($con);\n if (null !== $criteria) {\n if (false !== $this->collLicensesPartial && count($collLicenses)) {\n $this->initLicenses(false);\n\n foreach ($collLicenses as $obj) {\n if (false == $this->collLicenses->contains($obj)) {\n $this->collLicenses->append($obj);\n }\n }\n\n $this->collLicensesPartial = true;\n }\n\n $collLicenses->getInternalIterator()->rewind();\n\n return $collLicenses;\n }\n\n if ($partial && $this->collLicenses) {\n foreach ($this->collLicenses as $obj) {\n if ($obj->isNew()) {\n $collLicenses[] = $obj;\n }\n }\n }\n\n $this->collLicenses = $collLicenses;\n $this->collLicensesPartial = false;\n }\n }\n\n return $this->collLicenses;\n }", "title": "" } ]
929ca5fef7274730c62a405cc6a33b34
Returns element from 'geo_elements' list at given offset
[ { "docid": "ff42c6ae04e223c0273ef326e1d40474", "score": "0.74609643", "text": "public function getGeoElementsAt($offset) {\n return $this->get(self::GEO_ELEMENTS, $offset);\n }", "title": "" } ]
[ { "docid": "a17861bb9245cd12e0e57c63e13a388d", "score": "0.6165066", "text": "public function offsetGet($offset){\r\n return $this->collection[$offset];\r\n }", "title": "" }, { "docid": "7dbf6d96259232b9aadee8e2fd4a19a9", "score": "0.61361206", "text": "public function offsetGet($offset)\n {\n if ($this->offsetExists($offset)) {\n return $this->elements[$offset];\n }\n return null;\n }", "title": "" }, { "docid": "73446dd548c403e093a1ce5b33986ac6", "score": "0.610566", "text": "public function get($offset);", "title": "" }, { "docid": "1c24061a2233e24db9b64eb343151993", "score": "0.61009496", "text": "public function offsetGet($offset);", "title": "" }, { "docid": "1c24061a2233e24db9b64eb343151993", "score": "0.61009496", "text": "public function offsetGet($offset);", "title": "" }, { "docid": "f7ee7e75e4ac645f2075f4ce8a5874f1", "score": "0.6086825", "text": "public function offsetGet($offset) {\n return $this->items[$offset];\n }", "title": "" }, { "docid": "d1eadf08b728b117a64c8e471a6d6ced", "score": "0.6070217", "text": "public function offset($offset);", "title": "" }, { "docid": "aa5a7d2babbbd8c66ba4f77bb1506735", "score": "0.6062176", "text": "public function offsetGet($offset)\n {\n return $this->items[$offset];\n }", "title": "" }, { "docid": "651eee961ca5cfa9a8e2a7b653205606", "score": "0.6027548", "text": "public function objectAt($offset) {\n $slice = array_slice($this->items, $offset, 1);\n return $slice[0];\n }", "title": "" }, { "docid": "5d2633232b71e749c9acd1d2483b1e6a", "score": "0.60093313", "text": "public function offsetGet($offset)\n {\n return $this->item($offset);\n }", "title": "" }, { "docid": "92e32bb95300e28a4fe33b5c8babb784", "score": "0.6007665", "text": "public function offsetGet($offset)\n\t{\n\t\treturn $this->items[$offset];\n\t}", "title": "" }, { "docid": "edd5995ac885771c3321c0b2c2f64797", "score": "0.5982417", "text": "public function at_position ($offset)\n {\n if (isset($this->data[$offset]))\n return $this->data[$offset];\n }", "title": "" }, { "docid": "466426067975b6b5f9a6776e86823939", "score": "0.59610564", "text": "public function item ( $offset )\n {\n return $this->nodelist->item( $offset );\n }", "title": "" }, { "docid": "6dd406ab6705c15b757648a74f637b62", "score": "0.5946759", "text": "public function get($offset) {}", "title": "" }, { "docid": "578f2198f560dc68aef262cc626efd7a", "score": "0.5936965", "text": "public function offsetGet($offset)\n\t{\n\t\treturn $this->itemAt($offset);\n\t}", "title": "" }, { "docid": "49ec114095f95fb9ee4f4256abdeb4f2", "score": "0.5896413", "text": "public function offsetGet($offset)\n {\n return $this->offsetExists($offset) ? $this->items[$offset] : null;\n }", "title": "" }, { "docid": "9d6feb05ca2e228c8c900597cf0896d2", "score": "0.5889121", "text": "public function offsetGet($offset)\n {\n if (!$this->offsetExists($offset)) {\n throw new \\InvalidArgumentException(\n sprintf('Offset %s does not exist in collection', $offset)\n );\n }\n\n return $this->elements[$offset];\n }", "title": "" }, { "docid": "c9ddfcd6a53ed419543852ad3cc3a4e9", "score": "0.5868411", "text": "public function offsetGet($offset) {\n return $this->get($offset);\n }", "title": "" }, { "docid": "394defed25c7112ceb6640ace598007e", "score": "0.58523875", "text": "function getEntryByOffset($offset)\n {\n if (! isset($this->entries[$offset])) {\n $entries = $this->model->getElementsByTagName($this->itemElement);\n if ($entries->length > $offset) {\n $xmlBase = $entries->item($offset)->baseURI;\n $this->entries[$offset] = new $this->itemClass(\n $entries->item($offset), $this, $xmlBase);\n if ($id = $this->entries[$offset]->id) {\n $this->idMappings[$id] = $this->entries[$offset];\n }\n } else {\n throw new XML_Feed_Parser_Exception('No entries found');\n }\n }\n\n return $this->entries[$offset];\n }", "title": "" }, { "docid": "f94bd7deb3f878f2d2a29145aef312ef", "score": "0.58520013", "text": "public function offsetGet ($offset) {}", "title": "" }, { "docid": "7a2eb56887248f3267642ef162467e0e", "score": "0.5851185", "text": "public function offsetGet($offset) {\n\n $iterator = $this->getIterator();\n return $iterator->offsetGet($offset);\n\n }", "title": "" }, { "docid": "6ecd99f119a4bb613e9822dba5e02142", "score": "0.58508235", "text": "public function offsetGet ($offset) {\n return $this->element->attributes()->$offset;\n }", "title": "" }, { "docid": "be8d8597cf4f8affbad9ca26042c16f6", "score": "0.5782887", "text": "public function at($offset)\n {\n return $this->offsetGet($offset);\n }", "title": "" }, { "docid": "5f6735cc626df051825db8250a349c62", "score": "0.57752854", "text": "public function offsetGet($offset)\r\n {\r\n return $this->get($offset);\r\n }", "title": "" }, { "docid": "76f6a149c876ac2f7235353c48ac4c99", "score": "0.57644546", "text": "public function offsetGet($offset)\n {\n return $this->at($offset);\n }", "title": "" }, { "docid": "2dac6831e94fdb9007e1b3fb22817a05", "score": "0.5722101", "text": "public function offsetGet($offset) {\n return $this->get($offset);\n }", "title": "" }, { "docid": "74bb66fd00c05691a3d42a2d1efcd258", "score": "0.57141936", "text": "public function offsetGet($offset)\n {\n return $this->get($this->content, $offset);\n }", "title": "" }, { "docid": "dc984f46834cb8c739af0ed3f0c914f8", "score": "0.56921834", "text": "public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "dc984f46834cb8c739af0ed3f0c914f8", "score": "0.56921834", "text": "public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "dc984f46834cb8c739af0ed3f0c914f8", "score": "0.56921834", "text": "public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "dc984f46834cb8c739af0ed3f0c914f8", "score": "0.56921834", "text": "public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "dc984f46834cb8c739af0ed3f0c914f8", "score": "0.56921834", "text": "public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "dc984f46834cb8c739af0ed3f0c914f8", "score": "0.56921834", "text": "public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "dc984f46834cb8c739af0ed3f0c914f8", "score": "0.56921834", "text": "public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "6d994dfac473955a6740b273a95d342b", "score": "0.5681886", "text": "public function offsetGet(mixed $offset): mixed {}", "title": "" }, { "docid": "8abdcb8de5e959ea5ad8ccc1b54039c5", "score": "0.5660163", "text": "public function offsetGet($offset)\n {\n return $this->__get($offset);\n }", "title": "" }, { "docid": "30c5717b85af2dfe6ccc7a6f58811088", "score": "0.56491935", "text": "public function offsetGet($offset)\n\t{\n\t\treturn $this->get($offset);\n\t}", "title": "" }, { "docid": "c3f845df023b0f7c226e680055ab29f9", "score": "0.56447786", "text": "public function offsetGet($offset)\n {\n return $this->get($offset, null);\n }", "title": "" }, { "docid": "79e12b3cb3b0624d336393aad591489e", "score": "0.563277", "text": "public function offsetGet($offset)\n {\n }", "title": "" }, { "docid": "f2f0ff395e64f7d8cf588f80969930cc", "score": "0.562553", "text": "public function offsetGet($offset)\n {\n return $this->get($this->data, $offset);\n }", "title": "" }, { "docid": "1d645838d4970956227997f6e6217639", "score": "0.560874", "text": "public function offset($offset)\n {\n return $this->limitOffsetManipulation()->offset($offset);\n }", "title": "" }, { "docid": "f339a6f2959ae8434d52c2f348c7aef9", "score": "0.5603252", "text": "public function offsetGet($_offset)\n {\n return $this->offsetExists($_offset)?$this->internArrayToIterate[$_offset]:null;\n }", "title": "" }, { "docid": "bb352eb97c386a7b7fcfca0d9eb327ac", "score": "0.5583207", "text": "public function get($offset)\r\n {\r\n return $this->offsetGet($offset);\r\n }", "title": "" }, { "docid": "c382ed274f7ccebb68aa70d325e1fa1e", "score": "0.55522704", "text": "public function offsetGet($offset)\n {\n return $this->values[$offset];\n }", "title": "" }, { "docid": "7f5337cbb6d3e692f627013ab2e1273f", "score": "0.554711", "text": "public function offsetGet($offset)\n {\n return $this->socialData[$offset];\n }", "title": "" }, { "docid": "f1e3882932dc61aaedb564c9ce172ed9", "score": "0.55467033", "text": "public function offsetGet($offset)\r\n {\r\n return parent::offsetGet($offset);\r\n }", "title": "" }, { "docid": "f1e3882932dc61aaedb564c9ce172ed9", "score": "0.55467033", "text": "public function offsetGet($offset)\r\n {\r\n return parent::offsetGet($offset);\r\n }", "title": "" }, { "docid": "1ea595a909554d9ce7bb6c369a9b0569", "score": "0.55456704", "text": "public function offsetGet($offset) {\n\t\treturn $this->values[$offset];\n\t}", "title": "" }, { "docid": "e1d030128817289214c22437a1c6af6c", "score": "0.5508167", "text": "final public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "1bae837d39137509709b28bfdcd16344", "score": "0.5507549", "text": "abstract protected function retrieveObject($offset);", "title": "" }, { "docid": "7aedf2abc4abda150b97b565d0209f43", "score": "0.5486166", "text": "public function offsetGet($offset)\n {\n return $this->_data[$offset];\n }", "title": "" }, { "docid": "9b3939e5b67fe2df2d8431fc002b1523", "score": "0.5483241", "text": "public function offsetGet($offset)\n {\n return $this->{$offset};\n }", "title": "" }, { "docid": "9b3939e5b67fe2df2d8431fc002b1523", "score": "0.5483241", "text": "public function offsetGet($offset)\n {\n return $this->{$offset};\n }", "title": "" }, { "docid": "87581e8f5dd22edd5d06456829116805", "score": "0.5481078", "text": "public function offset(ExpressionInterface|int|null $offset): static;", "title": "" }, { "docid": "40f238551b3d78f05902ae6617e83ddb", "score": "0.5474626", "text": "public function offsetGet($offset)\n {\n return $this->json()[$offset];\n }", "title": "" }, { "docid": "d95c74275a38ffa8bd87431fe26b5777", "score": "0.54688835", "text": "public function offsetGet($offset)\n {\n // TODO: Implement offsetGet() method.\n }", "title": "" }, { "docid": "d95c74275a38ffa8bd87431fe26b5777", "score": "0.54688835", "text": "public function offsetGet($offset)\n {\n // TODO: Implement offsetGet() method.\n }", "title": "" }, { "docid": "5a566e99d440faf4706057097e9b6e81", "score": "0.5462788", "text": "public function offsetGet ( $offset )\n {\n return $this->{$offset};\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "5f38beece8dba7c28f54c5b612591b59", "score": "0.5462481", "text": "public function offsetGet($offset)\n {\n return parent::offsetGet($offset);\n }", "title": "" }, { "docid": "15adccf7965f1cf9a1995e0be7ff7631", "score": "0.54599077", "text": "public function offsetGet($offset)\n {\n return $this->container[$offset];\n }", "title": "" }, { "docid": "24521cd48dbcb36f059070b25218ea52", "score": "0.5448576", "text": "public function offsetGet( $offset ) {\n if( @array_key_exists( $offset, $this->oData ) ){\n return $this->oData[ $offset ];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "24521cd48dbcb36f059070b25218ea52", "score": "0.5448576", "text": "public function offsetGet( $offset ) {\n if( @array_key_exists( $offset, $this->oData ) ){\n return $this->oData[ $offset ];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "4eb3b7cfb82ac942a17559cd3d35faec", "score": "0.5420979", "text": "public function offsetGet($offset)\n {\n $this->fetch();\n $array = $this->toArray();\n\n return (array_key_exists($offset, $array) ? $array[$offset] : null);\n }", "title": "" }, { "docid": "cb05477468a5d41a2c8a76676cce865b", "score": "0.5419233", "text": "public function offsetGet($offset)\n {\n //argument 1 must be scalar, null or bool\n Argument::i()->test(1, 'scalar', 'null', 'bool');\n \n return isset($this->list[$offset]) ? $this->list[$offset] : null;\n }", "title": "" }, { "docid": "c2ca102f625d34e3e9442275d99badd7", "score": "0.5418605", "text": "public function offsetGet($offset) { \n\t\t// Not supported\n\t}", "title": "" }, { "docid": "a8eb880a9300a0194ed87a2b8b62239b", "score": "0.5415639", "text": "public function offsetGet($offset)\n {\n return $this->getAttribute($offset);\n }", "title": "" }, { "docid": "a8eb880a9300a0194ed87a2b8b62239b", "score": "0.5415639", "text": "public function offsetGet($offset)\n {\n return $this->getAttribute($offset);\n }", "title": "" }, { "docid": "a8eb880a9300a0194ed87a2b8b62239b", "score": "0.5415639", "text": "public function offsetGet($offset)\n {\n return $this->getAttribute($offset);\n }", "title": "" }, { "docid": "b40c277b7e7269492a2fa1270e29bef0", "score": "0.54132336", "text": "public function getPointAt($offset) {\n return $this->get(self::POINT, $offset);\n }", "title": "" }, { "docid": "150583e617a6e39f804cbf748c8a5fd6", "score": "0.5408623", "text": "public function offsetGet($offset)\n {\n return $this->offsetExists($offset) ? $this->get($offset) : null;\n }", "title": "" }, { "docid": "150583e617a6e39f804cbf748c8a5fd6", "score": "0.5408623", "text": "public function offsetGet($offset)\n {\n return $this->offsetExists($offset) ? $this->get($offset) : null;\n }", "title": "" }, { "docid": "e0cc42600af4d657e2fb97be253a9ed3", "score": "0.5380775", "text": "public function offsetGet($offset)\n {\n return isset($this->fields[$offset])? $this->fields[$offset] : null;\n }", "title": "" }, { "docid": "5b80a00d5b868e321f06257b609a8270", "score": "0.5351602", "text": "public function offsetGet ( $offset ) {\n return isset($this->array[$offset]) ? $this->array[$offset] : null;\n }", "title": "" }, { "docid": "c454febaa3ac070240124868ebf83623", "score": "0.53507245", "text": "public function offsetGet($offset)\r\n {\r\n return isset($this->data[$offset]) ? $this->data[$offset] : null;\r\n }", "title": "" }, { "docid": "c454febaa3ac070240124868ebf83623", "score": "0.53507245", "text": "public function offsetGet($offset)\r\n {\r\n return isset($this->data[$offset]) ? $this->data[$offset] : null;\r\n }", "title": "" }, { "docid": "e529c51b3dd0586c8ce793c94fa95580", "score": "0.534276", "text": "public function &offsetGet($offset) {\n $this->hacklib_validateKeyType($offset);\n $this->hacklib_validateKeyBounds($offset);\n return $this->container[$offset];\n }", "title": "" }, { "docid": "776d7ad3ca549dd6b69feaefc6183e7e", "score": "0.5320755", "text": "public function offsetGet($offset)\n {\n return $this->fields->offsetGet($offset);\n }", "title": "" }, { "docid": "d5432e0db134836b57c781ff40f3ce2d", "score": "0.5319906", "text": "public function offsetGet($offset)\n {\n return $this->offsetExists($offset) ? $this->data[$offset] : null;\n }", "title": "" }, { "docid": "d5432e0db134836b57c781ff40f3ce2d", "score": "0.5319906", "text": "public function offsetGet($offset)\n {\n return $this->offsetExists($offset) ? $this->data[$offset] : null;\n }", "title": "" }, { "docid": "847db793ce724ce8a8404f081ba26818", "score": "0.53198934", "text": "public function offsetGet($offset) {\n if ($this->autoPopulate) {\n $key = $this->parseKey($offset);\n if(!isset($this->data[$offset])) {\n $this->data[$offset] = $this->wrap($key);\n } \n return $this->data[$offset];\n } else {\n return $this->wrap(\n $this->data[\n $this->parseKey($offset)\n ]\n );\n }\n }", "title": "" }, { "docid": "971be6b1cee4a259ad0448b2249d190b", "score": "0.5319585", "text": "public function offsetGet($offset): mixed\n {\n return $this->__get($offset);\n }", "title": "" }, { "docid": "aa3dfbcfe90be0d558c1be857c717c38", "score": "0.53055656", "text": "public function offsetGet($offset) {\n return isset($this->data[$offset]) ? $this->data[$offset] : null;\n }", "title": "" }, { "docid": "dd1f694675f08cff0512043fd523f450", "score": "0.5296965", "text": "#[\\ReturnTypeWillChange]\n public function offsetGet($offset)\n {\n return $this->get($offset);\n }", "title": "" }, { "docid": "6b1cfcbf4005435fbfa220b5df192ada", "score": "0.52881354", "text": "public function __get($offset) {}", "title": "" }, { "docid": "17eb3abfbab8c9336a32a2241f1d091d", "score": "0.5281781", "text": "public function offsetGet($offset)\n {\n return $this->attributes[$offset];\n }", "title": "" }, { "docid": "17eb3abfbab8c9336a32a2241f1d091d", "score": "0.5281781", "text": "public function offsetGet($offset)\n {\n return $this->attributes[$offset];\n }", "title": "" }, { "docid": "17eb3abfbab8c9336a32a2241f1d091d", "score": "0.5281781", "text": "public function offsetGet($offset)\n {\n return $this->attributes[$offset];\n }", "title": "" }, { "docid": "bb8b92c61da6e455bafce85d1657ad3b", "score": "0.52784914", "text": "public function offsetGet(mixed $offset): mixed\n {\n return $this->data[$offset] ?? null;\n }", "title": "" }, { "docid": "4a61ad433584dd5e543d99706d5307c7", "score": "0.5275765", "text": "public function offsetGet($offset)\n {\n return isset($this->data[$offset]) ? $this->data[$offset] : null;\n }", "title": "" }, { "docid": "242127ef02ccb56a4bb5b9008a7370d9", "score": "0.5260672", "text": "#[\\ReturnTypeWillChange]\n public function offsetGet($offset)\n {\n return $this->__get($offset);\n }", "title": "" } ]
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "f6e98c02ffdb48ff993ff2c2fa8d6cb9", "score": "0.0", "text": "public function run()\n {\n DB::table('komp4')->insert([\n\n [\n 'id_komp3' => 1,\n 'id_komp4' => 1,\n 't_komp4' => 'a). Buku Teks Pelajaran Siswa Kelas X (baru melaksanakan kurikulum 2013 mulai Tahun 2017 ini) ',\n 'tahun' => 2019\n ],[\n 'id_komp3' => 1,\n 'id_komp4' => 2,\n 't_komp4' => 'b). Buku Pegangan Guru Kelas X (baru melaksanakan kurikulum 2013 mulai Tahun 2017 ini) ',\n 'tahun' => 2019\n ]\n ]);\n }", "title": "" } ]
[ { "docid": "0bfde9ef2f3ebe06cba65de4fe4e0c07", "score": "0.8007822", "text": "public function run()\n {\n factory('App\\User')->create([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('admin123')\n ]);\n \n // $this->call(UsersTableSeeder::class);\n factory('App\\User', 10)->create();\n factory('App\\Post', 50)->create();\n factory('App\\Tag', 10)->create();\n\n $posts = Post::all()->pluck('id');\n $tags = Tag::all()->pluck('id');\n\n foreach(range(1, 50) as $index){\n DB::table('taggables')->insert([\n 'tag_id' => $tags[rand(0,9)],\n 'taggable_id' => $posts[rand(0,49)],\n 'taggable_type' => 'App\\Post'\n ]);\n }\n\n factory('App\\Department', 20)->create();\n }", "title": "" }, { "docid": "be70abafa425894fc1f5fffa84ad1c58", "score": "0.799776", "text": "public function run()\n {\n\n Eloquent::unguard();\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $faker = Faker::create();\n\n App\\ProductDetail::truncate();\n App\\Product::truncate();\n\n for ($i = 0; $i < 100; $i++) {\n $products = DB::table('products')->insert([\n 'product_name' => $faker->sentence($nbWords = 6, $variableNbWords = true),\n ]);\n }\n\n $productList = App\\Product::pluck('id')->toArray();\n\n for ($i = 0; $i < 100; $i++) {\n $productDetails = DB::table('product_details')->insert([\n 'product_id' => $faker->randomElement($productList),\n 'selling_price' => $faker->randomFloat($nbMaxDecimals = 2, $min = 0, $max = 23),\n 'product_cost' => $faker->randomFloat($nbMaxDecimals = 2, $min = 0, $max = 23),\n 'weight' => $faker->randomDigit,\n 'weight_unit' => 'kg',\n 'SKU' => $faker->ean13,\n 'active' => true,\n 'descriptions' => $faker->paragraphs($nb = 3, $asText = true),\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "cbc18118ffdf77b61b5599ddb34c1812", "score": "0.79821414", "text": "public function run()\n {\n\n //Seed Users table with 50 entries \n factory(User::class, 10)->create();\n\n //Seed Articles table with 50 entries \n factory(Article::class, 10)->create();\n\n //Seed Tags table with 15 entries \n factory(Tag::class, 10)->create();\n\n //Seed Images table with 50 entries \n factory(Thumbnail::class, 10)->create();\n\n //Get array of ids of Users and Tags\n $articleIds = DB::table('articles')->pluck('id')->all();\n $tagsIds = DB::table('tags')->pluck('id')->all();\n\n\n //Seed article_tag table with 50 entries\n foreach ((range(1, 10)) as $index) {\n DB::table('article_tag')->insert(\n [\n 'article_id' => $articleIds[array_rand($articleIds)],\n 'tag_id' => $tagsIds[array_rand($tagsIds)]\n ]\n );\n } \n\n }", "title": "" }, { "docid": "e997c5cb5c91efaf84cdc8c54ff75337", "score": "0.7977852", "text": "public function run()\n {\n //Seed some random titles like Doctor, Chef, Technician, System Analyst\n DB::table('titles')->insert([\n 'name' => 'Human Resources Manager',\n 'salary' => '600000',\n 'department_id' => 1,\n 'user_id' => 1,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n ]);\n DB::table('titles')->insert([\n 'name' => 'Senior Accountant',\n 'salary' => '750000',\n 'department_id' => 1,\n 'user_id' => 1,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n ]);\n DB::table('titles')->insert([\n 'name' => 'Field Officer',\n 'salary' => '400000',\n 'department_id' => 2,\n 'user_id' => 2,\n 'created_at' => date(\"Y-m-d H:i:s\"),\n ]);\n }", "title": "" }, { "docid": "b0d690b7877e9052a404018f9bbcb857", "score": "0.7964612", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('pages')->delete();\n\n $page = array(\n array(\n 'content'=>'Lorem ipsum dolor sit amet, consectetur adipisicing elit. A aperiam autem dolor facilis magni nemo placeat? Ad, aliquam cum deserunt excepturi fugit inventore ipsa odio possimus quaerat tempora voluptates voluptatum?',\n 'custom_fields'=>'',\n 'description'=>'Lorem ipsum dolor sit amet.',\n 'parent'=>0,\n 'thumbnail'=>'',\n )\n );\n\n DB::table('pages')->insert($page);\n\n DB::table('posts')->delete();\n\n $post = array(\n array(\n 'content'=>'Lorem ipsum dolor sit amet, consectetur adipisicing elit. A aperiam autem dolor facilis magni nemo placeat? Ad, aliquam cum deserunt excepturi fugit inventore ipsa odio possimus quaerat tempora voluptates voluptatum?',\n 'custom_fields'=>'',\n 'description'=>'Lorem ipsum dolor sit amet.',\n 'parent'=>0,\n 'thumbnail'=>'',\n )\n );\n\n DB::table('posts')->insert($post);\n\n DB::table('categories')->delete();\n\n $post = array(\n array(\n 'name'=>'Simple',\n 'description'=>'Lorem ipsum dolor sit amet.',\n 'parent'=>0,\n 'thumbnail'=>'',\n )\n );\n\n DB::table('categories')->insert($post);\n }", "title": "" }, { "docid": "b8d732d24d0cafa0a09ae0fae273abc1", "score": "0.79600173", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('books')->insert([\n [\n 'title'=>'Name of the wind',\n 'description'=>'good book',\n ],\n [\n 'title'=>'Les rois mages',\n 'description'=>'Livre 1',\n ],\n [\n 'title'=>'Les mésirables',\n 'description'=>'faire machine avant',\n ],\n [\n 'title'=>'Name the goods',\n 'description'=>'good book two',\n ],\n [\n 'title'=>'Name of the world',\n 'description'=>'book type',\n ]\n ]);\n\n $this->call(AuthorTableSeeder::class);\n \n $this->call(BookTableSeeder::class);\n\n }", "title": "" }, { "docid": "28c90ca039b31e0b4ea668fe4b7200a1", "score": "0.79537797", "text": "public function run()\n {\n // $this->call(RolesTableSeeder::class);\n DB::table('roles')->insert([\n ['name' => 'Super Admin'],\n ['name' => 'Admin'],\n ['name' => 'Super Manager'],\n ['name' => 'Manager'],\n ['name' => 'User']\n ]);\n\n DB::table('departaments')->insert([\n ['name' => 'Developers'],\n ['name' => 'Managers'],\n ['name' => 'Mobiles'],\n ['name' => 'SEO']\n ]);\n\n DB::table('offices')->insert([\n ['name' => 'Trainee'],\n ['name' => 'Junior'],\n ['name' => 'Middle'],\n ['name' => 'Senjor']\n ]);\n }", "title": "" }, { "docid": "414c56fa7478f0f26f90e25015547739", "score": "0.7938816", "text": "public function run()\n {\n Model::unguard();\n\n // $this->call('UserTableSeeder');\n User::truncate();\n App\\Models\\Article::truncate();\n // App\\Models\\Category::truncate();\n // factory(User::class, 47)->create()->each(function($u) {\n // $n = rand(1,30);\n // // dd($u);\n // $u->articles()->save(factory(App\\Models\\Article::class, $n)->make());\n // });\n $users = factory(App\\Models\\User::class, 13)\n ->create()\n ->each(function($u) {\n $n = rand(1,30);\n for ($i=1; $i < $n; $i ++) {\n $u->articles()->save(factory(App\\Models\\Article::class)->make());\n }\n });\n // factory(App\\Models\\Article::class, 54)->create();\n factory(App\\Models\\Category::class, 20)->create();\n // factory(App\\Mo/usdels\\Comment::class, 98)->create();\n // factory(App\\Models\\Notification::class, 12)->create();\n Model::reguard();\n }", "title": "" }, { "docid": "e5a10ab44791834389d06f68b18e61a0", "score": "0.79154366", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory('App\\Actor', 10)->create();\n factory('App\\Genre', 5)->create();\n factory('App\\Director', 3)->create();\n factory('App\\Movie', 20)->create();\n //factory('App\\MovieActor', 10)->create();\n factory('App\\MovieGenre', 10)->create();\n }", "title": "" }, { "docid": "78877988f9d7b9a209f3d7e3b76783c1", "score": "0.79043496", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(NewsTableSeeder::class);\n $this->call(AuthorsTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n\n foreach (array_fill(0,49, 1) as $value) {\n DB::table('categories_news')->insert([\n 'categories_id' => rand(1, 10),\n 'news_id' => rand(1, 50)\n ]);\n DB::table('news_tags')->insert([\n 'news_id' => rand(1, 50),\n 'tags_id' => rand(1, 50)\n ]);\n }\n }", "title": "" }, { "docid": "519140d4569147b92caec85e96a7d54d", "score": "0.7861984", "text": "public function run()\n {\n DB::table('main')->insert(['name' => 'title', 'value' => 'All About Aqua']);\n DB::table('main')->insert(['name' => 'short-title', 'value' => 'A3']);\n DB::table('main')->insert(['name' => 'admin', 'value' => 'bRexx']);\n\n DB::table('categories')->insert(['name' => 'Fish']);\n DB::table('categories')->insert(['name' => 'Aquarium']);\n DB::table('categories')->insert(['name' => 'Food']);\n DB::table('categories')->insert(['name' => 'Decoration']);\n DB::table('categories')->insert(['name' => 'Medicine']);\n DB::table('categories')->insert(['name' => 'Others']);\n\n //admin seed\n DB::table('users')->insert(['name'=>'admin','email'=>'[email protected]','password'=>bcrypt('admin'),'address'=>'test,testing,tested','phone'=>987654321,'bio'=>'Quibusdam sed consequatur nisi ipsam doloribus quasi exercitationem ducimus dolore']);\n DB::table('shops')->insert(['name'=>'admin','email'=>'[email protected]','password'=>bcrypt('admin'),'address'=>'test,testing,tested','phone'=>987654321,'bio'=>'Quibusdam sed consequatur nisi ipsam doloribus quasi exercitationem ducimus dolore']);\n\n }", "title": "" }, { "docid": "cbe94f71f3320e562446a3857980162d", "score": "0.78545153", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // $table->increments('id');\n // $table->string('image');\n // $table->text('huni_too');\n // $table->text('usni_heregle');\n // $table->text('hereglesen_od');\n // $table->text('number');\n // $table->string('link');\n // $table->rememberToken();\n // $table->timestamps();\n\n\n DB::table('comus')->insert([\n 'image' => str_random(''),\n 'huni_too' => str_random('1'),\n 'usni_heregle' => str_random('2'),\n 'hereglesen_od' => str_random('5'),\n 'number' => str_random('666'),\n 'link' => str_random('gogo.mn'),\n ]);\n }", "title": "" }, { "docid": "32a1a19094e28fbcdf4c0f9a799b242e", "score": "0.78494513", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Element::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few elements in our database:\n for ($i = 0; $i < 50; $i++) {\n Element::create([\n 'title' => $faker->sentence,\n 'description' => $faker->paragraph,\n ]);\n }\n }", "title": "" }, { "docid": "3aba22301887990477ce9cba4fcd6d61", "score": "0.78490025", "text": "public function run()\n {\n //seed for user account\n \\Illuminate\\Support\\Facades\\DB::table('users')->insert([\n [\n \"name\" => \"User\",\n \"email\" => \"[email protected]\",\n \"password\" => \\Illuminate\\Support\\Facades\\Hash::make('user12345'),\n \"phone_number\" => \"+62811111111\",\n \"full_address\" => \"Jalan Mendut Gg.XV No.18\",\n \"city\" => \"Jember\",\n \"province\" => \"Jawa timur\",\n \"postal_code\" => \"68416\"\n ],\n [\n \"name\" => \"Admin\",\n \"email\" => \"[email protected]\",\n \"password\" => \\Illuminate\\Support\\Facades\\Hash::make('admin123'),\n \"phone_number\" => \"+62811111111\",\n \"full_address\" => \"Jalan Mendut Gg.XV No.18\",\n \"city\" => \"Jember\",\n \"province\" => \"Jawa timur\",\n \"postal_code\" => \"68416\"\n ]\n ]);\n\n //seed for role each account\n DB::table('user_role')->insert([\n [\n 'user_id' => 1,\n 'role_id' => 1\n ],\n [\n 'user_id' => 2,\n 'role_id' => 2\n ]\n ]);\n }", "title": "" }, { "docid": "4a808c704f3d0986a8185bbaa1f0bda0", "score": "0.78462607", "text": "public function run()\n {\n\n // $this->call(UserSeeder::class);\n\n //DB::statement('SET FOREIGN_KEY_CHECKS = 0'); //disable forign key checks temporaliry fr truncateing the tables\n\n //first truncate all the tables before seedingthe data in db\n User::truncate();\n Category::truncate();\n Course::truncate();\n Topic::truncate();\n Enrollment::truncate();\n\n //use the db facade to truncate the pivot tables since they dont have models\n DB::table('category_course')->truncate();\n DB::table('course_topic')->truncate();\n\n ///prevent listening to events when running our db seed command\n User::flushEventListeners();\n Category::flushEventListeners();\n Course::flushEventListeners();\n Topic::flushEventListeners();\n Enrollment::flushEventListeners();\n\n\n //setting quntity for the entities to put in database\n $usersQuantity = 1000;\n $categoriesQuantity = 30;\n $topicsQuantity = 100;\n $coursesQuantity = 100;\n $enrollmentsQuantity = 200;\n\n factory(User::class, $usersQuantity)->create();\n\n factory(Category::class, $categoriesQuantity)->create();\n\n factory(Topic::class, $topicsQuantity)->create();\n\n //create courses and attach relationships to each of them\n factory(Course::class, $coursesQuantity)->create()->each(\n function ($course) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $topics = Topic::all()->random(mt_rand(1, 5))->pluck('id');\n\n $course->categories()->attach($categories); //attching categories\n $course->topics()->attach($topics); //attaching topics\n }\n );\n\n factory(Enrollment::class, $enrollmentsQuantity)->create();\n }", "title": "" }, { "docid": "de244443af2a696896399e699e059f2a", "score": "0.78436476", "text": "public function run()\n {\n \t$faker = Faker::create();\n \tfor ($i=0; $i < 20; $i++) { \n \t\t$post = new App\\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 $post->user_id = rand(1,2);\n \t\t$post->save();\n \t}\n\n $categories = ['General','Technology','Computer','Internet','Moblie'];\n foreach ($categories as $name) {\n $category= new App\\Category;\n $category ->name =$name;\n $category->save();\n }\n\n for ($i=0; $i <20 ; $i++) { \n $comment=new App\\Comment;\n $comment->comment=$faker->paragraph;\n $comment->post_id = rand(10, 20);\n $comment->save();\n }\n\n $bob = new App\\User;\n $bob->name='Bob';\n $bob->email='[email protected]';\n $bob->password=bcrypt('123456');\n $bob->save();\n\n $alice = new App\\User;\n $alice->name='Alice';\n $alice->email='[email protected]';\n $alice->password=bcrypt('12345678');\n $alice->save();\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "07bb157e7f1f9063025b8db84ac92a02", "score": "0.78420794", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 20)->create();\n\n Topic::create(['name' => 'Featured Sites', 'slug' => 'featured']);\n Topic::create(['name' => 'Useful Links', 'slug' => 'links']);\n Topic::create(['name' => 'Guides & Tutorials', 'slug' => 'tutorials']);\n\n\n factory(Post::class, 20)->create();\n\n }", "title": "" }, { "docid": "8cbf125f1cbe9a706631b0b6739a5347", "score": "0.7840275", "text": "public function run()\n {\n factory(App\\Models\\User::class, 50)->create();\n// factory(App\\Models\\Category::class, 6)->create();\n $this->call(CategoriesTableSeeder::class);\n factory(App\\Models\\Post::class, 400)->create();\n factory(App\\Models\\Comment::class, 700)->create();\n factory(App\\Models\\Tag::class, 20)->create();\n $this->call(PostTagTableSeeder::class);\n $this->call(LikesTableSeeder::class);\n $this->call(BannersTableSeeder::class);\n }", "title": "" }, { "docid": "65770945a3971c8728c1a323d1cfe087", "score": "0.7829855", "text": "public function run()\n {\n // Truncate Employee table truncate before seeding\n Company::truncate();\n \n $faker = Factory::create();\n \n foreach (range(1,10) as $index) {\n Company::create([\n 'name' => $faker->catchPhrase,\n 'email' => $faker->unique()->companyEmail,\n 'website' => $faker->unique()->domainName,\n 'created_at' => $faker->dateTime($max = 'now', $timezone = null),\n 'updated_at' => $faker->dateTime($max = 'now', $timezone = null)\n ]);\n }\n }", "title": "" }, { "docid": "f34bd24daeef3025bf64273a62304b04", "score": "0.7821777", "text": "public function run()\n {\n\n // \\App\\Models\\User::factory(10)->create();\n // Model::unguard();\n\n // $faker = Faker::create();\n\n // foreach(range(1, 30) as $index) {\n // Article::create([\n // 'title' => $faker->sentence(5),\n // 'content' => $faker->paragraph(6)\n // ]);\n // }\n\n\n // Model::reguard();\n }", "title": "" }, { "docid": "ed892f45b12929faabc610f2b0985f93", "score": "0.7821691", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('objects')->insert([\n 'name' => 'name1',\n 'description' => 'description1',\n 'type' => 'type1',\n ]);\n DB::table('objects')->insert([\n 'name' => 'name2',\n 'description' => 'description2',\n 'type' => 'type2',\n ]);\n DB::table('objects')->insert([\n 'name' => 'name3',\n 'description' => 'description3',\n 'type' => 'type3',\n ]);\n\n DB::table('relations')->insert([\n 'from' => 1,\n 'to' => 2,\n ]);\n DB::table('relations')->insert([\n 'from' => 1,\n 'to' => 3,\n ]);\n DB::table('relations')->insert([\n 'from' => 2,\n 'to' => 3,\n ]);\n\n }", "title": "" }, { "docid": "f7ba48b900e751e70594de5e33421d60", "score": "0.7802776", "text": "public function run()\n {\n // Seeding 1st user with 2 project\n User::factory(1)\n ->hasProjects(2)\n ->create();\n\n // Seed issue statuses\n DB::table('issue_statuses')->insert([\n 'name' => 'Backlog'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'To Do'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'In Progress'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'Testing'\n ]);\n DB::table('issue_statuses')->insert([\n 'name' => 'Completed'\n ]);\n\n // Seeding 8 issues, project_id will be random\n Issue::factory(8)\n ->create();\n }", "title": "" }, { "docid": "29cb5cb84c4bffd9e2b2c12fec684fa6", "score": "0.780078", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Address::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 < 4; $i++) {\n \n $main = $i == 0 ? 1 : 0;\n Address::create([\n 'user_id' => 1,\n 'address' => $faker->address,\n 'code' => $faker->postcode,\n 'city' => $faker->city,\n 'phone' => $faker->phoneNumber,\n 'main' => $main\n ]);\n }\n }", "title": "" }, { "docid": "f50f6d54fb799adc3b1bdb3b79c484d3", "score": "0.78002775", "text": "public function run()\n {\n $faker = Faker::create();\n \tforeach (range(1,50) as $index) {\n\n \t\t$title=$faker->sentence(3);\n\n\t DB::table('articles')->insert([\n\t 'title' =>$title,\n\t 'content' => $faker->paragraph(5),\n\t 'slug'=> Str::slug($title),\n\t 'user_id'=>1,\n\t 'created_at' => new DateTime, \n\t 'updated_at' => new DateTime\n\t ]);\n }\n }", "title": "" }, { "docid": "5f769899c919388eb4ce556b4a40b76f", "score": "0.7799289", "text": "public function run()\n {\n \\DB::table('users')->insert(\n [\n 'name' => 'sid',\n 'email' => '[email protected]',\n 'role' => 'admin',\n 'password' => bcrypt(env('INIT_PASSWD')),\n ]\n );\n\n //Creare 10 categorie\n $categories = factory(Category::class, 10)->create();\n //Creare 10 utenti\n $users = factory(User::class, 10)->create();\n //Creare 30 tags\n $tags = factory(Tag::class, 30)->create();\n\n //per ciascun utente creare 15 post\n foreach ($users as $user) {\n //assegnare una categoria random\n $category = $categories->random();\n $posts = factory(Post::class, 15)->create(\n [\n 'category_id' => $category->id,\n 'user_id' => $user->id,\n ]\n );\n //assegnare 3 tags random\n foreach ($posts as $post) {\n $post->tags()->sync($tags->random(3)->pluck('id')->toArray());\n }\n }\n }", "title": "" }, { "docid": "b7cfff08e0d76911d75a02d312a85fed", "score": "0.77978605", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $users = collect();\n $users->push([\"username\" => \"Alessandro\", \"email\" => \"[email protected]\", \"password\" => md5(\"eldrazi\")]);\n $users->push([\"username\" => \"Giorgetto\", \"email\" => \"[email protected]\", \"password\" => md5(\"eldrazi\")]);\n $users->push([\"username\" => \"Marco\", \"email\" => \"[email protected]\", \"password\" => md5(\"eldrazi\")]);\n\n foreach($users as $user) {\n User::create([\n \"username\" => $user[\"username\"],\n \"email\" => $user[\"email\"],\n \"password\" => $user[\"password\"]\n ]);\n }\n\n $articles = collect();\n $articles->push([\"title\" => \"Titolo 1\", \"content\" => \"Articolo bellissimo 1\", \"user_id\" => 1]);\n $articles->push([\"title\" => \"Titolo 2\", \"content\" => \"Articolo bellissimo 2\", \"user_id\" => 2]);\n $articles->push([\"title\" => \"Titolo 3\", \"content\" => \"Articolo bellissimo 3\", \"user_id\" => 2]);\n $articles->push([\"title\" => \"Titolo 4\", \"content\" => \"Articolo bellissimo 4\", \"user_id\" => 3]);\n\n foreach($articles as $article) {\n Article::create([\n \"title\" => $article[\"title\"],\n \"content\" => $article[\"content\"],\n \"user_id\" => $article[\"user_id\"]\n ]);\n }\n }", "title": "" }, { "docid": "30fe5a8e5f9a52e2ff54231982691f0f", "score": "0.7795682", "text": "public function run()\n {\n $this->call(AdminSeeder::class);\n factory(App\\Models\\User::class, 50)->create();\n factory(App\\Models\\Category::class, 5)->create();\n factory(App\\Models\\Category::class, 5)->create();\n factory(App\\Models\\Book::class, 50)->create();\n factory(App\\Models\\Review::class, 100)->create();\n factory(App\\Models\\Comment::class, 200)->create();\n }", "title": "" }, { "docid": "78df9713302ed4286177ce6880823388", "score": "0.77945477", "text": "public function run()\n {\n /**\n * IMPORTANT!\n * The database seed is written to handle the task centralized\n * It should use:\n * php artisan db:seed\n * -> You can not run the seeds separately, it could cause errors!\n */\n\n // Truncate all tables, except migrations\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n $tables = DB::select('SHOW TABLES');\n foreach ($tables as $table) {\n if ($table->{'Tables_in_' . env('DB_DATABASE')} !=='migrations')\n DB::table($table->{'Tables_in_' . env('DB_DATABASE')})->truncate();\n }\n\n User::factory()->count(5)->create();\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n\n $this->call(CategoriesTableSeeder::class);\n Category::factory()->count(10)->create();\n\n Post::factory()->count(100)->create();\n\n Tag::factory()->count(20)->create();\n $this->call(PostTagTableSeeder::class);\n\n Comment::factory()->count(250)->create();\n }", "title": "" }, { "docid": "aff5888ce4fe9dc9547987a84da0f5b3", "score": "0.77938676", "text": "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n\n factory(\\App\\User::class)->create(['email' => '[email protected]']);\n\n $series_collection = factory(\\App\\Series::class, 4)->create();\n foreach ($series_collection as $series) {\n factory(\\App\\Lesson::class, 8)->create(['series_id' => $series->id]);\n }\n }", "title": "" }, { "docid": "7a9160c6e6922f81836e612d863e24eb", "score": "0.77872473", "text": "public function run()\n {\n //\n // Let's truncate our existing records to start from scratch.\n Program::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few Programs in our database:\n for ($i = 0; $i < 50; $i++) {\n Program::create([\n 'name' => $faker->sentence,\n 'type' => $faker->word,\n 'gif' => $faker->word,\n ]);\n }\n }", "title": "" }, { "docid": "f95dae06b42b3874fd917fdaad0f1532", "score": "0.7784616", "text": "public function run()\n {\n\n // DB::table('users')->insert([\n // 'name' => 'Demo',\n // 'email' => '[email protected]',\n // 'password' => Hash::make('demo'),\n // ]);\n\n // DB::table('roles')->insert([\n // 'name' => 'admin',\n // 'slug' => 'admin', \n // ]);\n\n // DB::table('users_roles')->insert([\n // 'user_id' => '1',\n // 'role_id' => '1', \n // ]);\n DB::table('statuses')->insert([\n ['name' => 'В обработке'],\n ['name' => 'Ожидает оплату'],\n ['name' => 'Оплачен'],\n ['name' => 'Завершен'],\n ]);\n\n // \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(10)->create();\n // \\App\\Models\\Product::factory(2)->create();\n // \\App\\Models\\Review::factory(5)->create();\n // \\App\\Models\\News::factory(22)->create();\n\n }", "title": "" }, { "docid": "9bd3519b5c055646fdf21e6b831e35f3", "score": "0.77809006", "text": "public function run()\n {\n \t// DB::table('testings')->delete();\n\n $testings = array(\n\n );\n\n // Uncomment the below to run the seeder\n // DB::table('testings')->insert($testings);\n }", "title": "" }, { "docid": "70a0a4edc2e80e4fcf2d6a5dfa07fb36", "score": "0.7778213", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $authors = factory(App\\Author::class, 1000)->create();\n // $this->call(BooksTableSeeder::class);\n // $this->call(CategoriesTableSeeder::class);\n $this->call(BookCategoryTableSeeder::class);\n }", "title": "" }, { "docid": "4a914f5bd3889c772b35d5a600367ac9", "score": "0.7775184", "text": "public function run()\n {\n //User::factory(1)->create();\n //Category::factory(5)->create();\n\n //Tag::factory(10)->create();\n\n $this->call([\n //PostsTableSeeder::class,\n AbilitiesTableSeeder::class,\n ]);\n }", "title": "" }, { "docid": "2904723cb5eb301c095322aa920e8d1d", "score": "0.7774837", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $authorTableSeeder = new AuthorTableSeeder();\n $authorTableSeeder->run();\n\n $categoryTableSeeder = new CategoryTableSeeder();\n $categoryTableSeeder->run();\n\n $languageTableSeeder = new LanguageTableSeeder();\n $languageTableSeeder->run();\n\n $publisherTableSeeder = new PublisherTableSeeder();\n $publisherTableSeeder->run();\n\n $bookTableSeeder = new BookTableSeeder();\n $bookTableSeeder->run();\n\n $booksCategoriesTableSeeder = new BooksCategoriesTableSeeder();\n $booksCategoriesTableSeeder->run();\n\n $booksLanguagesTableSeeder = new BooksLanguagesTableSeeder();\n $booksLanguagesTableSeeder->run();\n\n }", "title": "" }, { "docid": "8d6193c666b8022d4bb4d5d90e85f9c8", "score": "0.77674073", "text": "public function run()\n {\n //\n DB::table('authors')->delete();\n $faker = Faker::create();\n foreach (range(1, 10) as $index ) {\n DB::table('authors')->insert([\n 'first_name' => $faker->firstName,\n 'last_name' => $faker->lastName\n ]);\n }\n }", "title": "" }, { "docid": "d11b12ac185f2cce6ea50e0c94537c98", "score": "0.77665746", "text": "public function run()\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 Role::truncate();\n $roleNames = [\n ['name'=>'Superadmin'],\n ['name'=>'Admin'],\n ['name'=>'Inventory Manager'],\n ['name'=>'Order Manager'],\n ['name'=>'Customer']\n ];\n\n DB::table(\"roles\")->insert($roleNames);\n }", "title": "" }, { "docid": "0ed44f3c88a0bd394dbf05e0a1eaf0e6", "score": "0.7765398", "text": "public function run()\n {\n $this->seed(CategoriesTableSeeder::class);\n $this->seed(UsersTableSeeder::class);\n $this->seed(PostsTableSeeder::class);\n $this->seed(PagesTableSeeder::class);\n $this->seed(TranslationsTableSeeder::class);\n }", "title": "" }, { "docid": "749e5d54beba75329a6df6b91aaf15df", "score": "0.7764386", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n // DB::table('users')->create([\n // 'name' => 'Admin',\n // 'email' => '[email protected]',\n // 'password' => Hash::make('Admin'),\n // ]);\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('Admin'),\n ]);\n\n // factory(App\\Group::class, 10)->create()->each(function($group) {\n // $group->mappings()->saveMany(\n // factory(App\\Mapping::class, rand(1,8))->make()\n // )->each(function($mapping) {\n // $mapping->logs()->saveMany(\n // factory(App\\Log::class, rand(1,30))->make()\n // );\n // });\n // });\n }", "title": "" }, { "docid": "88449646c44f6fc44e59d75c49da4932", "score": "0.7762312", "text": "public function run()\n {\n $categories = factory(App\\Category::class, 10)->create();\n $tags = factory(App\\Tag::class, 30)->create();\n\n App\\User::create([\n 'name' => 'Sidrit',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'role' => 'admin'\n ]);\n\n factory(App\\User::class, 9)->create();\n\n $users = App\\User::all();\n\n foreach ($users as $user) {\n $posts = factory(App\\Post::class, 15)->create([\n 'user_id' => $user->id,\n 'category_id' => $categories->random()\n ]);\n\n foreach ($posts as $post) {\n $randomTags = $tags->random(3);\n\n $post->tags()->sync($randomTags->pluck('id'));\n }\n }\n }", "title": "" }, { "docid": "0b01af06c23cadcbf5be6127abe3744b", "score": "0.7760595", "text": "public function run()\n {\n $faker = Faker::create();\n foreach(range(1,10) as $index)\n {\n DB::table('expense_details')->insert([\n 'expense_details' => $faker->name,\n 'quantity' => $faker->numberBetween(5,20),\n 'cost_per_quantity' => $faker->numberBetween(100,200),\n 'created_at' => $faker->dateTimeBetween('-6 months','+1 month')\n ]);\n }\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(ConsigneeSeeder::class);\n $this->call(BrightSeeder::class);\n $this->call(roleManagement::class);\n $this->call(CategorySeeder::class);\n $this->call(ProductSeeder::class);\n $this->call(ChallanSeeder::class);\n $this->call(OrderSeeder::class);\n $this->call(MapOrderChallanSeeder::class);\n $this->call(DesignationSeeder::class);\n $this->call(EmployeeSeeder::class);\n }", "title": "" }, { "docid": "9da011cdf6feb2eb2419c695706d6152", "score": "0.7759525", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $journals = factory('App\\Journal', 50)->create();\n $journals->each(function ($journal) {\n factory('App\\Entry', 10)->create(['journal_id' => $journal->id]);\n });\n }", "title": "" }, { "docid": "095d09077e72b251380fae2155ece479", "score": "0.7758182", "text": "public function run()\n {\n DB::table('posts')->delete();\n $faker = Faker::create();\n\n User::all()->each(function ($user) use ($faker) {\n Post::create([\n 'title' => $faker->word,\n 'body' => $faker->paragraph(),\n 'user_id' => $user->id\n ]);\n });\n }", "title": "" }, { "docid": "ac0c0ae6e47a2c4aa1523579e917e923", "score": "0.77538705", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // Create just one user\n DB::table('users')->insert([\n 'email' => '[email protected]',\n 'name' => 'Pierre-Yves',\n 'password' => Hash::make('secret'),\n 'created_at' => DB::raw('CURRENT_TIMESTAMP'),\n 'updated_at' => DB::raw('CURRENT_TIMESTAMP'),\n ]);\n\n // Create just one product\n DB::table('products')->insert([\n 'name' => 'Beer x24',\n 'price' => 1999,\n 'currency' => 'EUR',\n 'created_at' => DB::raw('CURRENT_TIMESTAMP'),\n 'updated_at' => DB::raw('CURRENT_TIMESTAMP'),\n ]);\n }", "title": "" }, { "docid": "1a661e3c68b00aab559fe0792729bdfa", "score": "0.7750661", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(App\\indicadores::class, 50)->create()->each(function ($indicadores) {\n $indicadores->tipo_id()->save(factory(App\\tipo::class)->make());\n });\n }", "title": "" }, { "docid": "cb13c73a32f5f81d9840ca37255dfe68", "score": "0.774903", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //create default user\n \tDB::table('users')->insert([\n \t\t'name' => 'Christian Rosandhy',\n \t\t'email' => '[email protected]',\n \t\t'password' => bcrypt('123456'), //Hash default laravel\n \t\t'created_at' => date('Y-m-d H:i:s'),\n \t\t'updated_at' => date('Y-m-d H:i:s'),\n \t]);\n\n \t//create example dummy post\n \tDB::table('post')->insert([\n \t\t'title' => 'Post Example Title',\n \t\t'content' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut, dignissimos magnam eum voluptate saepe quis iste. Dolor aliquid, et beatae.',\n \t\t'created_at' => date('Y-m-d H:i:s'),\n \t\t'updated_at' => date('Y-m-d H:i:s'),\n \t]);\n \tDB::table('post')->insert([\n \t\t'title' => 'Another Title',\n \t\t'content' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nihil, odit ab ea labore distinctio aut quam commodi deserunt expedita repudiandae nostrum. Illo aliquid, nemo quos maiores eos nostrum accusamus odit.',\n \t\t'created_at' => date('Y-m-d H:i:s'),\n \t\t'updated_at' => date('Y-m-d H:i:s'),\n \t]);\n }", "title": "" }, { "docid": "4947b62035e447361c6545d854cf992b", "score": "0.7748853", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => \"Luiz Otávio Rodrigues\",\n 'email' => '[email protected]',\n 'admin' => 1,\n 'password' => bcrypt('senha123'),\n ]);\n DB::table('users')->insert([\n 'name' => \"Geisibel Ramos\",\n 'email' => '[email protected]',\n 'admin' => 1,\n 'password' => bcrypt('senha123'),\n ]);\n DB::table('users')->insert([\n 'name' => \"André Vitebo\",\n 'email' => '[email protected]',\n 'admin' => 1,\n 'password' => bcrypt('senha123'),\n ]);\n DB::table('types')->insert([\n 'name' => \"Escolha Unica\",\n ]);\n DB::table('types')->insert([\n 'name' => \"Escolha Multipla\",\n ]);\n }", "title": "" }, { "docid": "5a9fc5195b15679581362e881c52240f", "score": "0.7747358", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n DB::table('users')->delete();\n\n $users = array(\n \t['uname' => 'BluePrint', 'email' => '[email protected]', 'password' => 'temp'],\n \t['uname' => 'Howken', 'email' => '[email protected]', 'password' => 'temp']\n );\n\n // Uncomment the below to run the seeder\n DB::table('users')->insert($users);\n }", "title": "" }, { "docid": "390d111bc1635559242d183c3bf5278f", "score": "0.77467203", "text": "public function run()\n {\n // Seed the 2 user roles into the database.\n DB::table('user_role')->insert([\n 'name' => 'gebruiker'\n ]);\n DB::table('user_role')->insert([\n 'name' => 'administrator'\n ]);\n\n // Create an admin account\n DB::table('users')->insert([\n 'userRole' => '2',\n 'firstName' => 'admin',\n 'lastName' => 'admin',\n 'studentNumber' => '12345678',\n 'email' => '[email protected]',\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password\n ]);\n\n // Fill the database with random users.\n factory(App\\User::class, 50)->create()->each(function ($user) {});\n }", "title": "" }, { "docid": "a147f8a51837f71221c23210594445e5", "score": "0.7745889", "text": "public function run()\n {\n //没有弄数据工厂 直接使用是不行的\n //factory(\\App\\Article::class,5)->create();\n //https://github.com/fzaninotto/Faker\n $faker = Faker\\Factory::create(); //生成一个实例\n DB::table('articles')->insert([\n 'title' => $faker->title, //这个title是指标签 并不是指标题\n 'intro' => $faker->word,\n 'content' => $faker->paragraph,\n 'published_at' => \\Carbon\\Carbon::now()\n ]);\n }", "title": "" }, { "docid": "6b85b8debf03b969ec9a47557892cc2f", "score": "0.7741882", "text": "public function run()\n {\n //delete all data.\n //DB::statement('SET CONSTRAINTS ALL DEFERRED;');\n// Answer::truncate();\n //DB::statement('SET CONSTRAINTS ALL IMMEDIATE;');\n\n $faker = Faker\\Factory::create(\"ja_JP\");\n\n $questions = \\App\\Question::all();\n\n foreach ($questions as $q) {\n $answer = Answer::create([\n \"question_id\" => $q->id,\n \"text\" => $faker->text($maxNbChars = 20),\n ]);\n $answer->save();\n }\n }", "title": "" }, { "docid": "14f4502d7510513e57b886a9741f6f9a", "score": "0.77397126", "text": "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 // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n User::create([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'password' => 'password',\n 'urlImage' => $faker->imageUrl($width = 300, $height = 300)\n ]);\n }\n }", "title": "" }, { "docid": "78c25d822f8fcd9980407ceac5f94ac6", "score": "0.7737599", "text": "public function run()\n {\n \\App\\Models\\User::factory(100)->create();\n \\App\\Models\\NewsCategory::factory(5)->create();\n \\App\\Models\\KindOfNews::factory(5)->create();\n\n $this->call([\n\t BrandsTableSeeder::class,\n UsersTableSeeder::class,\n\t CategoriesTableSeeder::class,\n\t ProductsTableSeeder::class,\n\t ImageTableSeeder::class,\n NewsTableSeeder::class,\n StatusTableSeeder::class,\n ProvincesTableSeeder::class,\n DistrictsTableSeeder::class,\n WardsTableSeeder::class,\n RevenueTableSeeder::class,\n ]);\n \\App\\Models\\Comment::factory(600)->create();\n \\App\\Models\\Slide::factory(2)->create();\n }", "title": "" }, { "docid": "759c59838d104fbdc111725a197a71f5", "score": "0.77345306", "text": "public function run()\n {\n $blogFaker = Faker::create();\n $min_user_id = DB::table('users')->min('id');\n $max_user_id = DB::table('users')->max('id');\n $user_id = rand($min_user_id,$max_user_id); // generating a random user id to be use on Faker\n //seeding blog_models Table\n foreach (range(1,30) as $index) {\n DB::table('blog_models')->insert([\n 'title' => $blogFaker->title,\n 'blog_description' => 'Blog description',\n 'user_id' => $user_id\n ]);\n }\n\n\n //seeding users Table\n DB::table('users')->insert([\n 'name'=>Str::random(10),\n 'email'=>Str::random(10).'@gmail.com',\n 'password'=>Str::random(10)\n ]);\n\n }", "title": "" }, { "docid": "5ddebd551a1747c3f86d747756748099", "score": "0.77317834", "text": "public function run()\n {\n //$this->call(UserSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(DisctrictSeeder::class);\n $this->call(ClientSeeder::class);\n $this->call(ProvinciaSeeder::class);\n $this->call(TipoPagoSeeder::class);\n\n \\App\\Models\\Product::factory(50)->create();\n Motorizado::factory(10)->create();\n Pedido::factory(400)->create();\n $this->call(PedidoSeeder::class);\n $this->call(ImageSeeder::class);\n }", "title": "" }, { "docid": "30e1f0977628b8f69a6f41ca53787d31", "score": "0.77316725", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n \n // Create 5 records\n for ($i = 0; $i < 5; $i++) {\n Item::create([\n 'name' => $faker->firstName,\n 'color' => $faker->rgbCssColor,\n 'ShippingCost' => $faker->randomNumber(2),\n 'weight' => $faker->randomNumber(2)\n ]);\n }\n }", "title": "" }, { "docid": "c5dd116e4598e2886f4b456ab6a3745d", "score": "0.7731391", "text": "public function run()\n {\n $this->call(ItemSeeder::class);\n\n DB::table('users')->truncate();\n\n $user = User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('password'),\n 'is_admin' => True,\n ]);\n\n $user = User::create([\n 'name' => 'user1',\n 'email' => '[email protected]',\n 'password' => Hash::make('password'),\n 'is_admin' => False,\n ]);\n\n $this->call(OrderSeeder::class);\n $this->call(OrderedItemSeeder::class); \n $this->call(CategorySeeder::class); \n\n Item::all()->each(function ($item) {\n $ids = Category::all()->random(rand(1,Category::count()))->pluck\n ('id')->toArray();\n $item->categories()->attach($ids);\n\n });\n\n \n\n }", "title": "" }, { "docid": "08eaf2e19291f76c747104be264bb86e", "score": "0.7730943", "text": "public function run()\n {\n $this->seedCategories();\n $this->seedMovies();\n $this->seedActors();\n }", "title": "" }, { "docid": "ac98c07de7f448c43d8cd04f5b7cf375", "score": "0.7728929", "text": "public function run()\n {\n \n ///Eloquent::unguard();\n //$this->call('UsersTableSeeder'::Class);\n\n //user table seed\n DB::table('users')->delete();\n $users = array(\n array(\n\n 'name'=>'Admin User',\n 'password'=> Hash::make('admin1'),\n 'email'=>'[email protected]',\n )\n );\n\n DB::table('users')->insert($users);\n\n //vehicle table seed\n DB::table('vehicle')->delete();\n $vehicle = array(\n array(\n\n 'name'=>'Admin User',\n 'contactnumber'=> 719977232,\n 'email'=>'[email protected]',\n 'manufacture'=>'Volkswagon',\n 'type'=>'Polo',\n 'year'=>2010,\n 'colour'=>'White',\n 'mileage'=> 12000,\n 'created_at'=>date('Y-M-D h:m:s'),\n )\n );\n\n DB::table('vehicle')->insert($vehicle);\n }", "title": "" }, { "docid": "c1498193b69425fc2ad9300a42572dd3", "score": "0.7728553", "text": "public function run()\n {\n // removes previously created data\n \\App\\User::truncate();\n \\App\\Todo::truncate();\n\n // seeds the database\n factory(\\App\\User::class, 20)->create();\n factory(\\App\\Todo::class, 60)->create();\n }", "title": "" }, { "docid": "1db1d3897b4fa92b0187c48f545a59a1", "score": "0.77277166", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n $this->call(UsersSeeder::class);\n $this->call(CategoriasSeeder::class);\n $this->call(ArticulosSeeder::class);\n $this->call(ArticuloCategoriaSeeder::class);\n\n Articulo::factory()->count(55)->create();\n\n\n\n }", "title": "" }, { "docid": "857343b3f1f9be61d656bcb899727c9d", "score": "0.7726611", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory('App\\Blog',100)->create();\n factory('App\\client',50)->create();\n factory('App\\App_Services',10)->create();\n factory('App\\Msg',30)->create();\n }", "title": "" }, { "docid": "b13076b4062ba89b35a625f899bbb96f", "score": "0.772651", "text": "public function run()\n {\n // $this->call(UserSeeder::class);\n\n DB::table('products')->insert([\n 'name' => 'Iphone 8',\n 'price' => '22000',\n ]);\n\n DB::table('products')->insert([\n 'name' => 'Iphone 11',\n 'price' => '31000',\n ]);\n\n DB::table('products')->insert([\n 'name' => 'Iphone 11 pro',\n 'price' => '39000',\n ]);\n }", "title": "" }, { "docid": "51e41d2883ea3afa0a3f136436d8b297", "score": "0.7726129", "text": "public function run()\n {\n $user_ids = ['1'];\n $faker = app(Faker\\Generator::class);\n\n $articles = factory(Article::class)->times(50)->make()->each(function ($articles) use ($faker, $user_ids) {\n $articles->user_id = $faker->randomElement($user_ids);\n });\n Article::insert($articles->toArray());\n }", "title": "" }, { "docid": "33a330b6e5aa3b365ffb9df8e8361a48", "score": "0.7725176", "text": "public function run()\n {\n // \\App\\Models\\User::factory()->create();\n \\App\\Models\\Role::factory()->create();\n // \\App\\Models\\Profile::factory()->create();\n // \\App\\Models\\ContentSection::factory(3)->create();\n // \\App\\Models\\Language::factory(1)->create();\n\n $this->call([\n ContentSectionSeeder::class,\n ]);\n\n $this->call([\n LanguageSeeder::class,\n ]);\n }", "title": "" }, { "docid": "342d48d9c10a6f82d2ab72419a6764dd", "score": "0.77239937", "text": "public function run()\n {\n //\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Role::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n Role::create([\n 'role_name' => 'admin',\n ]);\n Role::create([\n 'role_name' => 'etudiant',\n ]);\n Role::create([\n 'role_name' => 'enseignant',\n ]);\n }", "title": "" }, { "docid": "5089a000911f524c7758cc800589f1a0", "score": "0.77177197", "text": "public function run()\n {\n\n $this->call(LanguageSeeder::class);\n\n\n\n factory(App\\User::class)->create([\n 'name' => 'Eslam Fakhry',\n 'email' => '[email protected]',\n 'bio' => 'Full-stack web developer',\n ]);\n factory(App\\User::class, 20)->create();\n\n\n $this->call(BookSeeder::class);\n\n\n factory(App\\Review::class, 100)->create([\n 'reviewer_id' => function () {\n return \\App\\User::inRandomOrder()->first()->id;\n },\n 'book_id' => function () {\n return \\App\\Book::inRandomOrder()->first()->id;\n },\n 'language_id' => function () {\n return \\App\\Language::inRandomOrder()->first()->id;\n },\n ]);\n\n \\App\\User::find(1)->followings()->sync([2, 3, 4, 8, 10, 20, 8]);\n\n }", "title": "" }, { "docid": "6e1a2b00c8e9ea2d0430a94dd2dc07a6", "score": "0.77159035", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Deputy_Director::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker=Faker::create();\n $fakerS=Faker::create('es_ES');\n\n\n $genders = Gender::all()->pluck('id')->toArray();\n $document_types = Document_Type::all()->pluck('id')->toArray();\n\n\n for($i=0;$i<=19;$i++){\n\n $name= $faker->firstName.\" \".$faker->firstName;\n $lname= $faker->lastName;\n $var = explode(\" \", $name);\n $email= strtolower($var[0][0].$var[1][0].$lname).$faker->numberBetween($min=1,$max=20).\"@misena.edu.co\";\n\n Deputy_Director::create([\n 'document_type_id'=>$faker->randomElement($document_types),\n 'gender_id'=>$faker->randomElement($genders),\n 'deputy_director_names'=>$name,\n 'deputy_director_lastnames'=> $lname,\n 'document_number'=>$fakerS->unique()->dni,\n 'phone_number'=>$fakerS->mobileNumber,\n 'email'=>$email,\n 'digital_firm'=>'tmp/firms/'.bcrypt($faker->word).'.jpg',\n 'created_at'=>Carbon::now(),\n 'updated_at'=>Carbon::now()\n ]);\n }\n }", "title": "" }, { "docid": "86140c23beade708078da92aa5df55e1", "score": "0.7714966", "text": "public function run()\n {\n \\App\\Models\\User::create([\n 'name' => 'Admin',\n 'username' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('12345678'),\n 'is_admin' => true\n ]);\n \n $user = \\App\\Models\\User::factory(10)->create();\n\n \\App\\Models\\Category::create([\n 'name' => 'Lifestyle',\n 'slug' => 'lifestyle'\n ]);\n\n \\App\\Models\\Category::create([\n 'name' => 'Home',\n 'slug' => 'home'\n ]);\n\n \\App\\Models\\Category::create([\n 'name' => 'World',\n 'slug' => 'world'\n ]);\n\n \\App\\Models\\Category::create([\n 'name' => 'Sports',\n 'slug' => 'sports'\n ]);\n\n Category::all()->each(function($category) use ($user){\n return \\App\\Models\\Post::factory(5)->create([\n 'user_id' => rand(1,9),\n 'category_id' => $category->id\n ])->each(fn($post) => \\App\\Models\\Comment::factory(3)->create(['post_id' => $post->id]));\n });\n\n \\App\\Models\\Category::factory(30)->create();\n }", "title": "" }, { "docid": "59f955bedb8a711f268867709f8dea81", "score": "0.7714579", "text": "public function run()\n {\n DB::table('users')->insert([\n 'email' => '[email protected]',\n 'name' => 'admin',\n 'email_verified_at' => '2020-1-1 23:59:59',\n 'password' => Hash::make('12345678'),\n 'role' => '2',\n 'phone'=> '0123456789',\n 'address' => \"Ha Noi\"\n ]);\n\n $this->call(CategorySeeder::class);\n $this->call(UserSeeder::class);\n $this->call(PostSeeder::class);\n $this->call(CommentSeeder::class);\n\n\n }", "title": "" }, { "docid": "c821d4627c62beb0b71b0abb66435065", "score": "0.77121747", "text": "public function run()\n {\n \t$this->seedPresencesTable();\n \t#$this->seedFamillesTable();\n \t#$this->seedReponsesTable();\n }", "title": "" }, { "docid": "7efff028f8bcd73672942f6e64f55cb8", "score": "0.7711514", "text": "public function run()\n {\n // Truncate existing records to start from scratch.\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Hotel::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n $faker = \\Faker\\Factory::create();\n\n // Create Hotels in our database:\n for ($i = 0; $i < 3; $i++) {\n Hotel::create([\n 'name' => $faker->name,\n 'address' => $faker->text,\n 'city' => $faker->city,\n 'state' => $faker->state,\n 'country' => $faker->country,\n 'zipcode' => $faker->text,\n 'phonenumber' => $faker->PhoneNumber,\n 'email' => $faker->email,\n 'image' => $faker->Image,\n ]);\n }\n }", "title": "" }, { "docid": "153c1f8bdfd59fce12788f6d5d7d6c36", "score": "0.77101886", "text": "public function run()\n {\n $this->call([\n CategorySeeder::class,\n UserTableSeeder::class\n ]);\n PostFactory::factoryForModel(Post::class)->count(12)->create();\n ProjectFactory::factoryForModel(Project::class)->count(12)->create();\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" }, { "docid": "c3a88275c1c72240c6d83f192871cfe3", "score": "0.7710164", "text": "public function run()\n {\n //\n $faker = Faker\\Factory::create();\n\n //\n foreach (range(1,20) as $index) {\n DB::table('el_news')->insert([\n 'title' => $faker->sentence(),\n 'content' => $faker->paragraph(50),\n 'description' => $faker->paragraph(50),\n 'type' => 1,\n 'image' => '',\n 'views' => 1,\n 'status' => 1,\n 'category_id' => $faker->randomElement(\\Modules\\News\\Entities\\NewsCategory::pluck('id')->toArray()),\n 'created_by' => 2,\n 'updated_by' => 2,\n 'created_at' => date('Y-m-d H:I:s'),\n 'updated_at' => date('Y-m-d H:I:s'),\n ]);\n }\n }", "title": "" }, { "docid": "5281e1bc8fae384813e91026d075e658", "score": "0.77091146", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // for disable foreign key for some time\n\n User::truncate();\n Post::truncate();\n Comment::truncate();\n\n User::flushEventListeners();\n Post::flushEventListeners();\n Comment::flushEventListeners();\n\n factory(User::class,1000)->create();\n factory(Post::class,3000)->create();\n factory(Comment::class,5000)->create();\n }", "title": "" }, { "docid": "f8b16a91635feff9b0eed8613162a30c", "score": "0.77088976", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory('App\\Doctor')->create(['nip' => 'doc', 'password' => bcrypt('123456')]);\n factory('App\\Patient')->create(['nip' => 'pat', 'password' => bcrypt('123456')]);\n factory('App\\Staff')->create(['nip' => 'stf', 'password' => bcrypt('123456')]);\n }", "title": "" }, { "docid": "bb1ac66935520f1e65bc2c3e57ceeb96", "score": "0.77083236", "text": "public function run()\n {\n // Truncate tables\n Schema::disableForeignKeyConstraints();\n DB::table(\"categories\")->truncate();\n DB::table(\"comments\")->truncate();\n DB::table(\"images\")->truncate();\n DB::table(\"password_resets\")->truncate();\n DB::table(\"posts\")->truncate();\n DB::table(\"tags\")->truncate();\n DB::table(\"users\")->truncate();\n DB::table(\"videos\")->truncate();\n Schema::enableForeignKeyConstraints();\n\n // User with same address\n App\\User::factory()->create([\n 'email' => \"[email protected]\"\n ]);\n // Create random data\n App\\User::factory()->count(20)->create();\n App\\Modele\\Category::factory()->count(10)->create();\n App\\Modele\\Post::factory()->count(250)->create();\n App\\Modele\\Tag::factory()->count(50)->create();\n App\\Modele\\Image::factory()->count(200)->create();\n App\\Modele\\Video::factory()->count(50)->create();\n App\\Modele\\Comment::factory()->count(1500)->create();\n }", "title": "" }, { "docid": "317c20db1e0b5a1227665f31230ccfc2", "score": "0.770664", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Department::truncate();\n \n $faker = \\Faker\\Factory::create();\n $departments = [\n 'Sales',\n 'Customer care',\n 'ping pong training',\n 'management',\n 'package repair'\n ];\n\n for ($I1 = 0; $I1 < 100; $I1++){\n Department::create([\n 'name' => $departments[$I1 % 5],\n 'head' => $faker->name,\n 'location' => $fake->city\n ]);\n }\n\n \n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "53a3c8a23a49f26ca26290c5746850bc", "score": "0.7704476", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n //delete all data on each table on any call\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n DB::table('category_product')->truncate();\n\n //The quantities of factories to create\n $userQuantity = 200;\n $categoryQuantity = 30;\n $productQuantity = 1000;\n $transactionQuantity = 1000;\n\n //Use factory helper to create the data\n factory(User::class, $userQuantity)->create();\n factory(Category::class, $categoryQuantity)->create();\n factory(Product::class, $productQuantity)->create()->each(function($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n factory(Transaction::class, $transactionQuantity)->create();\n }", "title": "" }, { "docid": "f6f8b18092f343eec722788678235929", "score": "0.77022856", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n\n $this->call(UserSeeder::class);\n\n //Liga::factory()->has(Equipo::factory()->count(8))->create();\n\n Liga::factory()->has(Equipo::factory()->has(Jugador::factory()->count(12))->count(8))->create();\n Liga::factory()->has(Equipo::factory()->has(Jugador::factory()->count(12))->count(8))->create();\n\n }", "title": "" }, { "docid": "a922d59f300416d258d2970e78be71ed", "score": "0.77017814", "text": "public function run() {\n\t\t//Model::unguard();\n\n\t\t// $this->call('UserTableSeeder');\n DB::table('articles')->delete();\n \n $articles = array(\n ['titulo' => 'Project 1', 'conteudo' => 'project-1', 'autor' => 'Leonardo', 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['titulo' => 'Project 2', 'conteudo' => 'project-2', 'autor' => 'Fernanda', 'created_at' => new DateTime, 'updated_at' => new DateTime],\n ['titulo' => 'Project 3', 'conteudo' => 'project-3', 'autor' => 'Leonardo', 'created_at' => new DateTime, 'updated_at' => new DateTime],\n );\n\n // Uncomment the below to run the seeder\n DB::table('articles')->insert($articles);\n\t}", "title": "" }, { "docid": "c4ea649d992a2f46320661ff70d8946c", "score": "0.77015346", "text": "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(SpecialsTableSeeder::class);\n //MedicalCard::factory(10)->create();\n $user = User::factory(1)->create()->each(function ($user){\n Member::factory()->create([\n 'user_id'=>$user->id,\n 'id_card'=>null,\n 'id_spec'=>null,\n ]);\n });\n foreach ($user as $userWithoutRole){\n $userWithoutRole->assignRole('admin');\n }\n //Member::factory(10)->create();\n //Meet::factory(10)->create();\n //Recipe::factory(10)->create();\n //Appointment::factory(10)->create();\n //Time::factory(10)->create();\n }", "title": "" }, { "docid": "a32483a969494071a38b045c323d0f50", "score": "0.77011496", "text": "public function run()\n {\n\n\t\tif(env('DB_DRIVER')=='mysql')\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\t\n\n\t\t\tDB::table('questions')->truncate();\n\n $faker = Faker::create();\n \t$cours = Db::table('cours')->lists('id') ;\n\n \tforeach (range(1,100) as $key => $value ) {\n \t\tQuestion::create([\n \t\t'title'=>$faker->sentence(3),\n \t\t'body'=>$faker->paragraph(1),\n \t\t'cour_id'=>$faker->randomElement($cours) ,\n \t\t//'type'=>$faker->randomElement(['one'=>'one' , 'multiple'=>'multiple']) ,\n 'type'=>$faker->randomElement(['multiple'=>'multiple']) ,\n \t\t'score'=>$faker->numberBetween( 0, 100) ,\n 'pass'=>$faker->paragraph(1),\n 'fail'=>$faker->paragraph(1),\n 'partial'=>$faker->paragraph(1),\n\t ]);\n \t}\n\n \tif(env('DB_DRIVER')=='mysql')\n\t\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;') ;\n }", "title": "" }, { "docid": "1931281363962728676ce211cdbc898c", "score": "0.77004915", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(20)->create();\n // \\App\\Models\\Product::factory(100)->create();\n \\App\\Models\\Slider::factory(30)->create();\n // $this->call(ProductCategorySeeder::class);\n // $this->call(SizeSeeder::class);\n // $this->call(ProductSizeSeeder::class);\n // $this->call(ShippingMethodSeeder::class);\n // $this->call(RegionSeeder::class);\n\n }", "title": "" }, { "docid": "869b86c9673e17509719354cadb4e6ee", "score": "0.76994365", "text": "public function run()\n {\n factory(User::class, 10)->create()->each(function($user) {\n $user->articles()->saveMany(factory(Article::class, rand(1,6))->make());\n });\n factory(Category::class, 5)->create();\n\n// $this->call(UsersTableSeeder::class);\n// $this->call([\n// UserTableSeeder::class,\n// ArticlesTableSeeder::class,\n// ]);\n }", "title": "" }, { "docid": "ac903ce5d99a599c602b0990b0103290", "score": "0.7698475", "text": "public function run()\n {\n // Uncomment the below to wipe the table clean before populating\n DB::table('groups')->delete();\n\n $projects = array(\n ['id'=> 1, 'name' => \"txtcmdr\"],\n ['id'=> 2, 'name' => \"duterte\"],\n ['id'=> 3, 'name' => \"baligod\"],\n ['id'=> 4, 'name' => \"marcos\"]\n );\n\n // Uncomment the below to run the seeder\n DB::table('projects')->insert($projects);\n }", "title": "" }, { "docid": "b9a88949d87e4830da37107328024747", "score": "0.76979405", "text": "public function run()\n {\n $this->seedSettings();\n $this->seedUsers();\n }", "title": "" }, { "docid": "87a0832df706dd20db820b1e2fab0c9c", "score": "0.7697926", "text": "public function run()\n {\n DB::table('users')->insert([\n \t'id' => '1',\n 'name' => 'Super Admin',\n 'email' => '[email protected]',\n 'role' => '1',\n 'password' => bcrypt('superadmin')\n ]);\n\n DB::table('users')->insert([\n \t'id' => '2',\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'role' => '2',\n 'password' => bcrypt('admin123')\n ]);\n\n DB::table('users')->insert([\n \t'id' => '3',\n 'name' => 'Teacher',\n 'email' => '[email protected]',\n 'role' => '3',\n 'password' => bcrypt('teacher123')\n ]);\n\n DB::table('users')->insert([\n \t'id' => '4',\n 'name' => 'Student',\n 'email' => '[email protected]',\n 'role' => '4',\n 'password' => bcrypt('student123')\n ]);\n\n $faker = Faker::create();\n \n \tforeach(range(5,20) as $i){\n \n \t DB::table('users')->insert([\n 'id' => $i,\n \t\t\t'name' => $faker->name,\n \t\t\t'email' => $faker->email,\n \t\t\t'role' => $faker->numberBetween(1,4),\n 'password' => bcrypt('password'),\n \t\t]);\n \n \t}\n }", "title": "" }, { "docid": "aa53f1c5fb430766e7a98e469ae64e55", "score": "0.769578", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n /*DB::table('ambitos')->insert([\n 'name' => Str::random(10),\n 'email' => Str::random(10).'@gmail.com',\n 'password' => bcrypt('secret'),\n ]);*/\n\n DB::table('ambitos')->insert(\n [\n 'nombreAmbito' => 'Laboratorios',\n ]\n );\n DB::table('ambitos')->insert(\n [\n 'nombreAmbito' => 'Inspección',\n ]\n );\n DB::table('ambitos')->insert(\n [\n 'nombreAmbito' => 'Certificación',\n ]\n );\n }", "title": "" }, { "docid": "dfd6d8c639638a96be0cadeef15562d9", "score": "0.76953965", "text": "public function run()\n {\n\n // factory(App\\User::class, 3)->create()->each(function($u) {\n // $u->questions()\n // ->saveMany(\n // factory(App\\Models\\Question::class, rand(1, 5))->make()\n // )->each(function ($q){\n // $q->answers()->saveMany(\n // factory(App\\Models\\Answer::class,rand(1,5))->make()\n // );\n // });\n // });\n // $this->call(UsersTableSeeder::class);\n //factory(App\\User::class,5)->create();\n //factory(Question::class,30)->create();\n // factory(App\\User::class,3)->create()->each(function($user){\n // $user->questions()\n // ->saveMany(\n // factory(Question::class)->make()\n // );\n // });\n // factory(App\\Models\\Question::class,20)->create();\n // $this->call([\n // UsersQuestionsAnswersTableSeeder::class,\n // FavoritesTableSeeder::class,\n // VotablesTableSeeder::class\n // ]);\n }", "title": "" }, { "docid": "27c99873266cde824f7337394289d5ba", "score": "0.7694441", "text": "public function run()\n {\n factory(Users::class, 1)->create(['name' => 'Maria', 'email' => '[email protected]']);\n\n factory(Users::class, 6)->create();\n\n //Fazendo seeds ao modo antigo\n /*$dados = [\n [\n 'id' => '1', \n 'name' => 'Maria',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456789'),\n 'user_name' => 'Mariajog',\n 'language_id' => '1',\n 'user_type' => 'internal',\n 'entity_id' => NULL\n ],\n [\n 'id' => '2', \n 'name' => 'Jose',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456789'),\n 'user_name' => 'Jose',\n 'language_id' => '1',\n 'user_type' => 'internal',\n 'entity_id' => NULL\n ]\n ];\n\n foreach ($dados as $value) {\n Users::create($value);\n }*/\n }", "title": "" }, { "docid": "50bfbb81e7f0b2cada39621bf4b75676", "score": "0.7692319", "text": "public function run()\n {\n // faker基本使用\n /*$faker = Faker\\Factory::create();\n $data = [];\n for ($i=1;$i<10;$i++) {\n $data[] = [\n 'title'=>$faker->name,\n 'desc'=>$faker->sentence\n ];\n }\n DB::table('articles')->insert($data);*/\n\n //使用faker数据工厂模拟数据\n factory(\\App\\Models\\ArticleModel::class, 20)->create();\n }", "title": "" }, { "docid": "44a48d15b3281fa6fbc422f22f3822ad", "score": "0.7691214", "text": "public function run()\n {\n $this->call([\n UsersTableSeeder::class,\n Users_ProfileTableSeeder::class,\n BlogSeeder::class,\n BookStoreSeeder::class,\n CategoryTableSeeder::class,\n AdvertisementSeeder::class,\n InterestTableSeeder::class,\n RelationshipTableSeeder::class,\n SkillTableSeeder::class,\n SubjectTableSeeder::class,\n UserMediaSeeder::class,\n\n\n\n ]);\n\n // User::factory(50)->create();\n // Advertisement::factory(100)->create();\n // UserMedia::factory(100)->create();\n // Book_Store::factory(100)->create();\n // Blog::factory(100)->create();\n\n\n }", "title": "" }, { "docid": "e4eee217bbf7d32481fc105c3b5751a3", "score": "0.76893795", "text": "public function run()\n {\n Eloquent::unguard();\n\n $faker = Faker\\Factory::create();\n\n foreach (range(1,10) as $key => $index) {\n PostCategory::create([\n 'category_id' => $faker->numberBetween($min = 1, $max = 5),\n 'post_id' => $faker->numberBetween($min = 1, $max = 5),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(), \n ]);\n }\n }", "title": "" }, { "docid": "fcb394d31b8bc02eaf3d748869eb0952", "score": "0.7688843", "text": "public function run()\n {\n\n $this->call([\n PermissionSeeder::class,\n RatingSeeder::class\n ]);\n Post::query()->delete();\n User::query()->delete();\n User::factory(1)\n ->create()\n ->each(function ($user) {\n $user->assignRole('admin');\n });\n User::factory(1)\n ->create()\n ->each(function ($user) {\n $user->assignRole('moderator');\n });\n User::factory(3)\n ->create()\n ->each(function ($user) {\n $user->assignRole('author');\n });\n User::factory(10)\n ->create()\n ->each(function ($user) {\n $user->assignRole('reader');\n });\n Post::factory(30)->create();\n }", "title": "" }, { "docid": "c1cba4ba964267e60436752e1daf7256", "score": "0.7688797", "text": "public function run(): void\n {\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'DE',\n 'language_code' => 'de',\n 'author_id' => random_int(1, 5),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'US',\n 'language_code' => 'en',\n 'author_id' => random_int(6, 10),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'FR',\n 'language_code' => 'fr',\n 'author_id' => random_int(11, 15),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'CH',\n 'language_code' => 'de',\n 'author_id' => random_int(16, 20),\n ]);\n factory(App\\Models\\Book::class, 5)->create([\n 'country_code' => 'CH',\n 'language_code' => 'fr',\n 'author_id' => random_int(11, 20),\n ]);\n }", "title": "" }, { "docid": "4a0c4ba7e38375d8b1a0bdcf318313bd", "score": "0.76850325", "text": "public function run()\n {\n $faker = Faker\\Factory::create('ja_JP');\n DB::table('review')->truncate();\n\n $data = [];\n\n foreach (range(1,10) as $value){\n $data[] = [\n 'id'=>$value,\n \"code_id\"=>$value,\n \"user_id\"=>1,\n \"company_id\"=>1\n ];\n\n }\n\n DB::table('review')->insert($data);\n }", "title": "" }, { "docid": "7d0e99ebf59b9e7e65637b3d9c38bddb", "score": "0.76849854", "text": "public function run()\n {\n User::create([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => Hash::make('password'),\n ]);\n\n factory(MenuGroup::class, 5)->create()->each(function ($group) {\n $group->items()->createMany(factory(MenuItem::class, 2)->make()->toArray());\n });\n\n factory(MenuItem::class, 5)->create();\n\n $this->call(PostsTableSeeder::class);\n }", "title": "" }, { "docid": "de8bed7f0641273ac93ceebe6aee2ba9", "score": "0.7684196", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\t\tDB::table('users')->delete();\n\n\t\t$faker = \\Faker\\Factory::create('es_AR');\n\n\t\tforeach(range(0, 10) as $index)\n\t\t{\n\t\t\tUser::create([\n\t\t\t\t'nombres' => $faker->firstName,\n\t\t\t\t'apellidos' => $faker->lastName,\n\t\t\t\t'direccion' => $faker->address,\n\t\t\t\t'telefono' => $faker->phoneNumber,\n\t\t\t\t'celular' => $faker->phoneNumber,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 12345,\n\t\t\t]);\n\n\t\t\tProduct::create([\n\t\t\t\t'codigo' => $faker->uuid,\n\t\t\t\t'marca' => $faker->company,\n\t\t\t\t'modelo' => $faker->md5,\n\t\t\t\t'cantidad' => $faker->numberBetween(1, 100),\n\t\t\t]);\n\t\t}\n\n\t\tRole::create([\n\t\t\t'name' => 'Administrator',\n\t\t\t'detail' => 'Administrador de la tienda'\n\t\t]);\n\t\tRole::create([\n\t\t\t'name' => 'Seller',\n\t\t\t'detail' => 'Vendedor de la tienda'\n\t\t]);\n\t\tRole::create([\n\t\t\t'name' => 'Client',\n\t\t\t'detail' => 'Cliente de la tienda'\n\t\t]);\n\t}", "title": "" }, { "docid": "6cefa488bb7f414dd43c39041af00a3b", "score": "0.76809907", "text": "public function run()\n {\n //How to create multiple data for a table\n // $this->call(UsersTableSeeder::class);\n // DB::table('names')->insert(\n // [\n // 'name'=>str_random(10),\n // 'email'=>str_random(10).'@gmail.com',\n // 'password'=>bcrypt('secret'),\n // ]\n // );\n\n factory(App\\User::class,50)->create();\n $this->call(TestSeeder::class);\n\n //we can call multiple seeders here\n\n //to seed only a single seeder use\n //php artisan db:seed --class=TestSeeder\n }", "title": "" }, { "docid": "44ec12a31cf67e6e0e55dc0fd46fa7fd", "score": "0.76787496", "text": "public function run()\n\t{\n\t\t$faker = $this->getFaker();\n\t\t$users = NULL;\n\n\n\t\t// Uncomment the below to wipe the table clean before populating\n\t\tDB::table('users')->truncate();\n\n\n\t\t// Default user\n\t\t$users[] = array('username' => 'admin', 'email' => '[email protected]', 'password' => Hash::make('1234'), 'status' => 'Active');\n\n\t\t// Random users\n\t\tfor($i=0; $i<5; $i++)\n\t\t{\n\t\t\t$users[] = array('username' => strtolower($faker->firstname) ,\n\t\t\t\t 'email' => $faker->email,\n\t\t\t\t 'password' => Hash::make('1234'),\n\t\t\t\t 'status' => 'Active');\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\tDB::table('users')->insert($users);\n\t}", "title": "" } ]
6a4699c02a2b45e6ab16bcf0229fb154
Set arguments to specified array
[ { "docid": "ca6a4bfd2a7d5514f0c696b459e0d659", "score": "0.650128", "text": "function setArguments($arguments=array()){\n // add additional arguments\n if(is_null($arguments))$arguments=array();\n if(!is_array($arguments)){\n throw new BaseException('Arguments must be always an array');\n }\n $this->arguments=$args=array_merge($this->arguments,$arguments);\n foreach($args as $arg=>$val){\n if(is_null($val))unset($this->arguments[$arg]);\n }\n return $this;\n }", "title": "" } ]
[ { "docid": "a20cf712fbc5c781b3c38bcad3fad3b4", "score": "0.80968547", "text": "public function setArguments(array $args);", "title": "" }, { "docid": "19f33335b312b0c2eb1cc96484692cbd", "score": "0.7999123", "text": "public function setArguments(array $arguments);", "title": "" }, { "docid": "47ba567277193b7dd35c9ce096738a01", "score": "0.78006333", "text": "public function setArguments(array $arguments): void\n {\n $this->arguments = [];\n foreach ($arguments as $key => $value) {\n $this->setArgument($key, $value);\n }\n }", "title": "" }, { "docid": "3f6da325c5ff734783fbf68ea2fa23d1", "score": "0.7480052", "text": "abstract protected function set_args();", "title": "" }, { "docid": "6072e730602bcb54df2448df99abb9f8", "score": "0.7426703", "text": "public function setArgs(array $args): void\n {\n $this->arguments = $args;\n }", "title": "" }, { "docid": "6ec99628704ad61ccfe9683440035f66", "score": "0.740887", "text": "public function setArguments($arguments);", "title": "" }, { "docid": "18c651f0abe05fd1bbc200ea3e2ca1ea", "score": "0.7406595", "text": "public function setArguments() {\n\t}", "title": "" }, { "docid": "8cfc288a05fa756f44de0687df762c27", "score": "0.73964125", "text": "public function setArguments(array $args)\n {\n $this->processArguments($args);\n }", "title": "" }, { "docid": "d2e72b26de57df53eed817f8495ad1c6", "score": "0.7355967", "text": "public function setArguments($argmuments)\n\t{\n\t\tif(is_array($argmuments)){\n\n\t\t\t$this->arguments = $arguments;\n\n\t\t}else{\n\n\t\t\tuser_error('Arguments must be an array');\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "940cf566525d7633d0f2454337b3e19d", "score": "0.72961354", "text": "public function setArguments(array $arguments): self;", "title": "" }, { "docid": "fba6a5ebc44992491782d0de8687b33a", "score": "0.71575403", "text": "public function setArguments($args) {\n $this->args= $args;\n }", "title": "" }, { "docid": "0908cc768c5cf0c857a684a58168f565", "score": "0.71427304", "text": "protected function setArguments(array $arguments)\n\t{\n\t\t// Verify all arguments are allowed.\n\t\tforeach ($arguments as $argument)\n\t\t{\n\t\t\tif (!$this->typeManager->isAllowed($argument))\n\t\t\t{\n\t\t\t\tthrow new InvalidArgumentException('Argument : ' . $argument . ' is not allowed');\n\t\t\t}\n\t\t}\n\n\t\t// Store them.\n\t\t$this->arguments = $arguments;\n\t}", "title": "" }, { "docid": "43fef97404cc311ac662e83f1ac8adc7", "score": "0.70589685", "text": "public function setArguments( array $arguments ) {\n return $this->args['arguments'] = $arguments;\n }", "title": "" }, { "docid": "295d1d3048f10d33732ff1c472423884", "score": "0.7040673", "text": "public function updateArgs() {\n\t\t$this->args = func_get_args();\n\t}", "title": "" }, { "docid": "a46efab2c7af32bc78c52e76759abf22", "score": "0.7031701", "text": "public function setRawArguments(array $args) {\n\t\t$this->_rawArgumens = $args;\n\t}", "title": "" }, { "docid": "517f88de7cbfa661c99d785ec65728bb", "score": "0.6951682", "text": "public static function setFromArray($args) {\n\t\tif(!is_array($args)) return;\n\t\tforeach($args as $k=>$v) \n\t\t\tself::$ParamSingleton->set($k, $v);\n\t}", "title": "" }, { "docid": "56d4825ed698245fcbbfd05ece11fa93", "score": "0.6934314", "text": "public function setArgs($args = [])\n {\n $this->args = array_merge($this->args, $args);\n }", "title": "" }, { "docid": "2e5584c35d7912963dc8d20cbfc3915d", "score": "0.6886059", "text": "public function &setAdditionalArguments(array $args);", "title": "" }, { "docid": "7fe35b2261fabcb477dcc268554b294e", "score": "0.6839893", "text": "public static function mset($arg) {\n\t\tif (!is_array($arg)) {\n\t\t\t// Invalid argument\n\t\t\ttrigger_error(self::TEXT_MSet);\n\t\t\treturn;\n\t\t}\n\t\t// Bind key-value pairs\n\t\tarray_map('self::set',array_keys($arg),$arg);\n\t}", "title": "" }, { "docid": "791bdca38ebce1279c7a9e3916c6c688", "score": "0.67645246", "text": "public function setArguments($arguments = [])\n {\n $this->arguments = [];\n $this->addArguments($arguments);\n }", "title": "" }, { "docid": "19f4aef6570a985e67e7aeeb24f671ff", "score": "0.66972923", "text": "public function setArgs($args = [])\n {\n $this->args = $args;\n }", "title": "" }, { "docid": "5c16d8cda093190406b9b05767db82cf", "score": "0.66513896", "text": "public function setArgs(array $args) : self\n {\n $this->initialized['args'] = true;\n $this->args = $args;\n return $this;\n }", "title": "" }, { "docid": "54e994b45baaefdc509ca1dec745f4b0", "score": "0.66370344", "text": "public function setArguments(string $args) : void\n {\n $this->args = $args;\n }", "title": "" }, { "docid": "956a54949974e7f3f2dc94ed9d90f3d1", "score": "0.66361403", "text": "public function setArguments(array $arguments) {\n $this->arguments = $arguments;\n return true;\n }", "title": "" }, { "docid": "b69dba211e93dc40ff1aebc6b5f8f57a", "score": "0.6567786", "text": "function testCommand_TestArguments() {\n $cmdArgs = array('key1', 'key2', 'key3');\n\n $cmd = new \\Predis\\Commands\\GetMultiple();\n $cmd->setArgumentsArray($cmdArgs);\n $this->assertEquals($cmdArgs[0], $cmd->getArgument(0));\n $this->assertEquals($cmdArgs[1], $cmd->getArgument(1));\n $this->assertEquals($cmdArgs[2], $cmd->getArgument(2));\n\n $cmd = new \\Predis\\Commands\\GetMultiple();\n $cmd->setArguments('key1', 'key2', 'key3');\n $this->assertEquals($cmdArgs[0], $cmd->getArgument(0));\n $this->assertEquals($cmdArgs[1], $cmd->getArgument(1));\n $this->assertEquals($cmdArgs[2], $cmd->getArgument(2));\n\n $cmd = new \\Predis\\Commands\\Ping();\n $this->assertNull($cmd->getArgument(0));\n }", "title": "" }, { "docid": "be282a40d62d091b399e3a2c21be08dd", "score": "0.65628", "text": "private function setArgs( $args )\n\t{\n\t\t$args = is_array( $args ) ? $args : (array)$args;\n\t\t$this->args = array_merge(\n\t\t\t array(\n\t\t\t 'labels' \t\t=> $this->labels,\n\t\t\t 'public' \t\t=> true,\n\t\t\t 'has_archive' \t=> true,\n\t\t\t 'supports' \t\t=> array('title','editor')\n\t\t\t ),\n\t\t\t $args\n\t\t );\n\t}", "title": "" }, { "docid": "6449ebd8439f9a4922ffe2d0aada4391", "score": "0.65462637", "text": "public function setRawArguments(array $args)\n {\n $this->command = null;\n $this->arguments = $args;\n }", "title": "" }, { "docid": "a1ea762c33f4780b36f5028505839e51", "score": "0.6531637", "text": "public function setArguments(array $arguments)\n {\n $this->arguments = $arguments;\n\n return $this;\n }", "title": "" }, { "docid": "1e9c160901f151319af81e7d77ab5ec1", "score": "0.643903", "text": "function set_args($cur_args, $value){\n $this-> args[$cur_args]=$value;\n }", "title": "" }, { "docid": "9edcc75f70eeab9cc74a409493c6a68b", "score": "0.6436505", "text": "public function setArgs(ArgumentSet $args): void\n {\n $this->args = $args;\n }", "title": "" }, { "docid": "81471e027ae946f1702cfd373f20cc31", "score": "0.6386362", "text": "public function setArray( $array )\n {\n Charcoal_ParamTrait::validatRawArray( 1, $array );\n\n $this->values = $array;\n }", "title": "" }, { "docid": "ce576dfbcf8287a8ba42998849200eb3", "score": "0.6375119", "text": "public function set_constructor_arguments()\n {\n $this->constructor_arguments = func_get_args();\n }", "title": "" }, { "docid": "4b1cc2bd4d55883a42fd0cb99215b7c2", "score": "0.632991", "text": "public function invokeArray($name, array $arguments = []);", "title": "" }, { "docid": "1b0c019a44542ab23b1e79dd568ce5e5", "score": "0.63258934", "text": "protected function set_vars( $args = array() ) {\n\n\t\t// Bail if empty or not an array\n\t\tif ( empty( $args ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Cast to an array\n\t\tif ( ! is_array( $args ) ) {\n\t\t\t$args = (array) $args;\n\t\t}\n\n\t\t// Set all properties\n\t\tforeach ( $args as $key => $value ) {\n\t\t\t$this->{$key} = $value;\n\t\t}\n\t}", "title": "" }, { "docid": "272544cbfcc35287256ba25a6fb856d1", "score": "0.63230264", "text": "protected function processArguments(array $args = [])\n {\n foreach ($args as $key => $val) {\n if (is_array($val)) {\n foreach ($val as $nested_key => $nested_val) {\n $this->args[$key][$nested_key] = $nested_val;\n }\n continue;\n }\n $this->args[$key] = $val;\n }\n }", "title": "" }, { "docid": "c8bf0d60ba4fcf52e23c6b4d4dd3d8b1", "score": "0.63226146", "text": "public function setArgs($values)\n {\n $this->args[] = $values;\n return true;\n }", "title": "" }, { "docid": "a7b562857dd14997e1f80ceb032db64d", "score": "0.6320846", "text": "public function setParameterArray($array) {\n\t\t$this->paramstack->setArray($array);\n\t}", "title": "" }, { "docid": "738fa4e7519c2e88cd3aafee127316a9", "score": "0.62975293", "text": "function set($args)\r\n\t{\r\n\t\t\r\n\t\tswitch(count($args)) {\r\n\t\t\tcase 3:\r\n\t\t\t\t$this->info[$args[0]][$args[1]] = $args[2];\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\t$this->info[$args[0]][$args[1]][$args[2]] = $args[3];\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\t$this->info[$args[0]][$args[1]][$args[2]][$args[3]] = $args[4];\r\n\t\t\t\tbreak;\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\techo \"??? unknown set\";\r\n\t\t\t\tdie;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ef4e7b92d0a21c70e9774ac52904621e", "score": "0.6287349", "text": "public function setMessageArgs()\n {\n $this->_aMessageArgs = func_get_args();\n }", "title": "" }, { "docid": "b3087b474701d90f85f031461196df32", "score": "0.6269949", "text": "function setFromArray(){\n\t}", "title": "" }, { "docid": "d889499768434a07d196777c519820d7", "score": "0.62684256", "text": "public function set() {\n foreach (Core_Arrays::flatten($args = func_get_args()) as $arg)\n $this->set[] = (string) $arg;\n return $this;\n }", "title": "" }, { "docid": "c5ac973ee00a83aad93cf0a403238d8c", "score": "0.6239988", "text": "function change_arguments( $args ) {\n //$args['dev_mode'] = true;\n\n return $args;\n }", "title": "" }, { "docid": "4820a3435272e1c62c0b7987e74efad5", "score": "0.62292576", "text": "function change_arguments( $args )\n\t\t{\n\t\t\t//$args['dev_mode'] = true;\n\n\t\t\treturn $args;\n\t\t}", "title": "" }, { "docid": "ec08cb768defbf94306d3202f6907330", "score": "0.6215618", "text": "public function setArgs($args = [])\n {\n $defaults = [\n 'n' => 1,\n 'locale' => 'en-US',\n 'date' => self::TODAY,\n 'resolution' => self::RESOLUTION_HIGH\n ];\n $this->args = array_replace($defaults, $args);\n $this->validateArgs();\n try {\n $this->fetchImages();\n } catch (Exception $e) {\n exit($e->getMessage());\n }\n }", "title": "" }, { "docid": "7b24d743b7a674fdb4294c485c981ecd", "score": "0.6165484", "text": "public function handleAdditionalArguments(array $arguments)\n {\n $this->arguments = array_merge($this->arguments, $arguments);\n }", "title": "" }, { "docid": "fca2390b6803efa1b9ddc894f5073856", "score": "0.6159026", "text": "public function set($array){\n foreach($array as $var => $value){\n $method = 'set' . $var;\n $this->$method($value);\n }\n return $this;\n }", "title": "" }, { "docid": "fca2390b6803efa1b9ddc894f5073856", "score": "0.6159026", "text": "public function set($array){\n foreach($array as $var => $value){\n $method = 'set' . $var;\n $this->$method($value);\n }\n return $this;\n }", "title": "" }, { "docid": "ab6b18442dab11f2f65ad158d8273089", "score": "0.6156009", "text": "public function setArguments(array $arguments)\n {\n $options = [];\n $last = end($arguments);\n if (is_array($last)) {\n $options = $last;\n $arguments = array_slice($arguments, 0, -1);\n\n if (\n (isset($options['count']) && !is_int($options['count'])) ||\n (isset($options['timeout']) && !is_int($options['timeout']))\n ) {\n throw new InvalidOptionException($this, $last);\n }\n\n if (!empty($options['withcounters'])) {\n // The response will contain NACKs and additional-deliveries\n $this->responseHandler = JobsWithCountersResponse::class;\n }\n\n $options = $this->toArguments($options);\n }\n\n $this->checkStringArguments($arguments);\n $this->arguments = array_merge($options, ['FROM'], array_values($arguments));\n }", "title": "" }, { "docid": "d14f6a38761099b9f6e355531b0db8a2", "score": "0.61553746", "text": "public function setOptions($array) {\n foreach ($array as $k => $v) {\n $this->setOption($k,$v);\n }\n }", "title": "" }, { "docid": "88d81e78be351eaca3834cdbe3a18d78", "score": "0.61394787", "text": "public function setAll(array $input);", "title": "" }, { "docid": "b47b43b1c857af1a57a0e025a82eeafc", "score": "0.61341274", "text": "public function setArguments(array $arguments = [])\n {\n $this->arguments = $arguments;\n\n return $this;\n }", "title": "" }, { "docid": "432563bb494747aeb7b75e450b7b59d7", "score": "0.61121863", "text": "public function setLocArgs(array $loc_args): void\n {\n $this->loc_args = $loc_args;\n }", "title": "" }, { "docid": "28c962fc0726d528ec304abb73a988c3", "score": "0.60928273", "text": "public function setValues($array)\n {\n $this->array = $array;\n }", "title": "" }, { "docid": "c2d2bb4f354355e73108c9d40a02328f", "score": "0.60905033", "text": "protected function cloneArgumentsForQueueing(array $arguments)\n {\n }", "title": "" }, { "docid": "2ea1b5617d010c5a7674b64299b6309d", "score": "0.60707855", "text": "public function testSettingArgumentViaConstruct()\n {\n $arg = new ArrayArgument('-f', array(\n 'helpText' => 'foobar',\n 'defaultValue' => 123,\n ));\n \n $this->assertEquals(array(123), $arg->getValue());\n $this->assertEquals(' -f foobar' . PHP_EOL, $arg->showHelp());\n }", "title": "" }, { "docid": "b0eba8da735eabd75b4e14468900596c", "score": "0.60655063", "text": "public function &setArgv(array $argv){\n\t\t$this->argv = $argv;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "92898179a63de94dbbefde02e2d10bce", "score": "0.6063004", "text": "public function setQueryArguments($arguments) {\n $this->arguments = $arguments;\n }", "title": "" }, { "docid": "7eabbd63f6ddb1714af58151446cd889", "score": "0.605917", "text": "public function setArgs(string $args)\n {\n $this->args = $args;\n }", "title": "" }, { "docid": "9f8b25759acd98bed14945c321caae01", "score": "0.6017971", "text": "private function extractArguments(array $arguments)\n {\n $this->namespace = array_get($arguments, 0);\n $this->entity = array_get($arguments, 1);\n }", "title": "" }, { "docid": "9531ae733455d052670321f761c775e3", "score": "0.6004052", "text": "public function setArguments($argv)\n {\n if(!is_array($argv)) {\n require_once 'Zend/Console/Getopt/Exception.php';\n throw new Zend_Console_Getopt_Exception(\n \"Parameter #1 to setArguments should be an array\");\n }\n $this->_argv = $argv;\n $this->_parsed = false;\n return $this;\n }", "title": "" }, { "docid": "4d715e52645754a6881fcca686ef99e4", "score": "0.5994836", "text": "abstract protected function enrichArgs(array $arg): array;", "title": "" }, { "docid": "12ecd5833ac6b6c32786d1309bd64e39", "score": "0.598799", "text": "protected function setArguments($data)\n\t{\n\t\t$this->arguments = (array)$data;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "a7a9a4e8d19aaa53ac286a06d1c98739", "score": "0.597924", "text": "public function __construct(array $array = array()) {\n foreach($array as $k => $v) {\n $metoda = 'set' . ucfirst($k);\n if (method_exists($this, $metoda)) {\n $this->$metoda($v);\n }\n }\n }", "title": "" }, { "docid": "93a69b54737dbb37a16e62afa8383135", "score": "0.5971706", "text": "public function set(array $args): self\n {\n foreach ($args as $key => $value) {\n $this->setAttribute($key, $value);\n }\n\n return $this;\n }", "title": "" }, { "docid": "0f4acdc8a3e4aa14855b666f930086fc", "score": "0.5962251", "text": "public function setByArray(array $data)\n {\n foreach ($data as $key => $value) {\n $method = 'set' . ucfirst($key);\n $this->$method($value);\n }\n }", "title": "" }, { "docid": "e4cf6be8ada44a6e49e7300e07221a1a", "score": "0.59608626", "text": "function array_replace(){\n\t\t$args = func_get_args();\n\t\t$numArgs = func_num_args();\n\t\t$res = array();\n\t\tfor($i = 0; $i < $numArgs; $i++){\n\t\t\tif(is_array($args[$i])){\n\t\t\t\tforeach($args[$i] as $key => $val){\n\t\t\t\t\t$res[$key] = $val;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\ttrigger_error(__FUNCTION__ .'(): Argument #'.($i+1).' is not an array', E_USER_WARNING);\n\t\t\t\treturn NULL;\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "cfdef7d97844be20511b758ea65e464f", "score": "0.5957033", "text": "protected function setParams()\n {\n $this->params();\n //\n foreach ($this->params as $key => $value) {\n $cont = $this->strip($value);\n //\n if (Strings::length($cont) > 2) {\n if ($cont[0] == '-' && $cont[1] == '-') {\n $this->setOption($cont);\n } elseif ($cont[0] != '-' && $cont[1] != '-') {\n $this->setArgument($cont);\n }\n } else {\n $this->setArgument($cont);\n }\n }\n }", "title": "" }, { "docid": "8a7e8dfab7d10bb7f78f6dedf47c1c9f", "score": "0.59351444", "text": "public function setFromArray($array)\n {\n foreach ($array as $key => $value) {\n $this->{$key} = $value;\n }\n }", "title": "" }, { "docid": "7915b46579075688c8aeec258adce0df", "score": "0.5916722", "text": "public function setParams(array $params);", "title": "" }, { "docid": "7915b46579075688c8aeec258adce0df", "score": "0.5916722", "text": "public function setParams(array $params);", "title": "" }, { "docid": "7915b46579075688c8aeec258adce0df", "score": "0.5916722", "text": "public function setParams(array $params);", "title": "" }, { "docid": "747ee1c23f8d7d7684151048bba99ea9", "score": "0.5896887", "text": "private function setFilterArguments ( Array $args = array() ) {\n\n $old = $this->filterArguments;\n $this->filterArguments = $args;\n\n $this->_checkArguments();\n\n return $old;\n }", "title": "" }, { "docid": "6e4980e600c5220a42ba27b908ea7530", "score": "0.58565676", "text": "public function set_param_array(&$arr)\n {\n if (is_array($arr)) {\n $this->_param_vars =& $arr;\n }\n }", "title": "" }, { "docid": "63568a54085066cec7e18b7f8876fb1f", "score": "0.5839356", "text": "function args()\n\t{\n\t\treturn array(\"args\" => func_get_args());\n\t}", "title": "" }, { "docid": "b17310bee7aeb4c47b014d042626f60c", "score": "0.58377075", "text": "function setOption(array $options)\n{\n\n}", "title": "" }, { "docid": "e1899ceddc056431193a800dd7607640", "score": "0.5826782", "text": "function array_replace() {\n\n\t\t$array = array();\n\t\t$n = func_num_args();\n\n\t\twhile ( $n-- >0 ) {\n\t\t\t$array+=func_get_arg($n);\n\t\t}\n\t\treturn $array;\n\t}", "title": "" }, { "docid": "ba6f72446b562e2b5bb6a4e86dca466a", "score": "0.5813058", "text": "public function setFromArray($array){\n\t\tif(isset($array['nome_artista'])) $this->nome = $array['nome_artista'];\n\t\tif(isset($array['genere'])) $this->genere = $array['genere'];\n\t\tif(isset($array['descrizione'])) $this->descrizione = $array['descrizione'];\n\t\tif(isset($array['foto'])) $this->foto = $array['foto'];\n\t}", "title": "" }, { "docid": "4eafedb63681d7dedd9eb10c88e8bbf3", "score": "0.58103734", "text": "public function setParams($array) {\r\n\r\n $clean_array = array();\r\n\r\n // Transform key value array\r\n foreach ($array as $key) {\r\n $clean_array[$key] = \"\";\r\n }\r\n\r\n // Set to local\r\n $this->_params = $clean_array;\r\n }", "title": "" }, { "docid": "c6b16424181677581d1ea3ba18459a77", "score": "0.5798766", "text": "abstract public function set_engines_args( &$args );", "title": "" }, { "docid": "4c5b595b804c51b510baebde9b96c622", "score": "0.5798363", "text": "public function setargs($aArgs) {\n foreach (array('label', 'params') as $sKey) {\n if (!array_key_exists($sKey, $aArgs)) {\n die(__CLASS__ . ':: ERROR in cli config: missing key [' . $sKey . '] in [array].');\n }\n }\n $this->_aConfig = $aArgs;\n $this->_aValues = array();\n $this->getopt();\n return true;\n }", "title": "" }, { "docid": "8454ce2ab6deadbbab57b5c4a33c7578", "score": "0.5793809", "text": "public function setParams(array $params) {\n }", "title": "" }, { "docid": "8e224a852c5694f4f74149f6d3c454ae", "score": "0.5793361", "text": "public function & SetParams (array & $params = []);", "title": "" }, { "docid": "6ae61ea5159b99dbbccd2918df19a95b", "score": "0.57872665", "text": "public function set(array $values, $append);", "title": "" }, { "docid": "11113daa38d96ed8ab04dc31da282a6f", "score": "0.57757133", "text": "function setArray($array) {\n\t\tif ($array['title'])\n\t\t\t$this->title = $array['title'];\n\t\tif ($array['instructions'])\n\t\t\t$this->instructions = $array['instructions'];\n\t\tif ($array['dueDate'])\n\t\t\t$this->dueDate = $array['dueDate'];\n\t\tif ($array['noDueDate'])\n\t\t\t$this->noDueDate = $array['noDueDate'];\n\t\tif ($array['activeDate'])\n\t\t\t$this->activeDate = $array['activeDate'];\n\t\tif ($array['responseType'])\n\t\t\t$this->responseType = $array['responseType'];\n\t\tif ($array['idClasses'])\n\t\t\t$this->idClasses = $array['idClasses'];\n\t\tif ($array['dateNoAccept'])\n\t\t\t$this->dateNoAccept = $array['dateNoAccept'];\n\t\tif ($array['idForum'])\n\t\t\t$this->idForum = $array['idForum'];\n\t\tif ($array['idForumThread'])\n\t\t\t$this->idForumThread = $array['idForumThread'];\n\n\t\t$this->_modified = true;\n\t}", "title": "" }, { "docid": "a6b50f1554ee3a217fbcbd1310fee05b", "score": "0.5773463", "text": "function set()\r\n\t{\r\n\t\tglobal $_myice;\r\n\t\t$args = func_get_args();\r\n\r\n\t\tswitch(count($args)) {\r\n\t\tcase 3:\r\n\t\t\t$_myice->info[$args[0]][$args[1]] = $args[2];\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\t$_myice->info[$args[0]][$args[1]][$args[2]] = $args[3];\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\t$_myice->info[$args[0]][$args[1]][$args[2]][$args[3]] = $args[4];\r\n\t\t\tbreak;\t\t\t\r\n\t\tdefault:\r\n\t\t\techo \"??? unknown set\";\r\n\t\t\tdie;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a95b2d75ede1bddd2414eb56cec8b455", "score": "0.5772702", "text": "private function getTestArguments(array $arguments): array\n {\n return array_replace([\n 'filename' => __DIR__ . '/assets/small.webm',\n 'maxHeight' => 20000,\n 'maxWidth' => 20000,\n 'maxLength' => 3600,\n 'minHeight' => 0,\n 'minWidth' => 0,\n 'minLength' => 0,\n ], $arguments);\n }", "title": "" }, { "docid": "8da68df6c9e69eb867bb40b017b08f87", "score": "0.57690924", "text": "public function setArray($items)\n {\n $this->items = $this->getArrayItems($items);\n }", "title": "" }, { "docid": "a0e9e6ea5d2f63023199ab1da9b89bdc", "score": "0.57610273", "text": "function setParts() {\n\t\t$numargs = func_num_args();\n\t\t$arg_list = func_get_args();\n\t\t$urlparts = $this->getParts();\n\t\tfor ($i = 0; $i < $numargs; $i++) {\n\t\t\t/* make them available for webpage */\n\t\t\teval (\"\\$GLOBALS['\".$arg_list[$i] .\"']= '$urlparts[$i]';\");\n\t\t}\n\n }", "title": "" }, { "docid": "1abc409f149d9cb96cfe5ca7b889ab5e", "score": "0.5739521", "text": "public function initialize(array $arguments)\n {\n if ($this->settings['SAFEMOOD']) {\n foreach ($arguments as $key => $argument) {\n $this->arguments['initialize'][$key] = $argument;\n }\n }\n return $this;\n }", "title": "" }, { "docid": "106d5b5b31196bc52448869cc1a09f57", "score": "0.57337064", "text": "public function __construct( array $arguments = array() ) {\n $this->arguments = $arguments;\n }", "title": "" }, { "docid": "35cb7f24d1319aa150301e146c071018", "score": "0.5727976", "text": "public function setArgumentDefaults(array $argumentDefaults);", "title": "" }, { "docid": "49d7027ce3405f9e892040f69eb449db", "score": "0.56800306", "text": "private function _setMulti($value, $name1, $name2 = null)\n {\n $args = func_get_args();\n array_shift($args);\n foreach ($args as $key) {\n $this->offsetSet($key, $value);\n }\n }", "title": "" }, { "docid": "040a35d3234746548cf37c11f1c8fe40", "score": "0.567749", "text": "public function setArgumentNames() {\n\n $methodClass = new reflectionMethod($this->className, $this->methodName);\n $parameters = $methodClass->getParameters();\n\n foreach ($methodClass->getParameters() as $i => $param) {\n if($param->isOptional()) {\n $this->optionalArgumentNames[] = $param->getName();\n } else {\n $this->mandatoryArgumentNames[] = $param->getName();\n }\n\n }\n }", "title": "" }, { "docid": "a8f79aaa053d17fb4bc953735cbed97b", "score": "0.56746894", "text": "public function setOpt($arr)\n {\n }", "title": "" }, { "docid": "7853bb4fa9252562ef9cf947b5011da1", "score": "0.5664515", "text": "public function assign_array($arr);", "title": "" }, { "docid": "d106dc5de6f644376ed9926cdfbdcb9b", "score": "0.56542677", "text": "public function setParameters(array $parameters = []);", "title": "" }, { "docid": "0c56aa963b895f0bb792b7716565d86b", "score": "0.5652234", "text": "public function addArguments(array $argumentList);", "title": "" }, { "docid": "582d1aac5c9f3753360ff477643eefee", "score": "0.56515354", "text": "public function set_args( $args = null ) {\n\t\t$this->args = wp_parse_args( $args, $this->default_args() );\n\t}", "title": "" }, { "docid": "97cf17b3ce04a33d8035021783769417", "score": "0.5650191", "text": "public function setFromArray($data = array())\n {\n foreach ($data as $property => $value) {\n $method = \"set{$property}\";\n $this->$method($value);\n }\n }", "title": "" }, { "docid": "8a38f906bbf7fec26d114a5eb75b9dbf", "score": "0.5649774", "text": "private function configure(Array $arguments = [])\n {\n /**\n * @var string $alias\n * @var string $argument\n */\n foreach ($arguments as $alias => $argument) {\n\n // Check if if aliased\n $alias = (isset($this->aliases[$alias])) ? $this->aliases[$alias] : $alias;\n\n // If not allowed skip\n if (isset($this->allowed[$alias])) {\n continue;\n }\n\n // If the property exits on the class\n // allow it to be set\n if (property_exists($this, $alias)) {\n $this->$alias = $argument;\n }\n }\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "5bc7c297b324c4b0e76aaf4f1e947110", "score": "0.0", "text": "public function index()\n {\n return response()->json([\n 'status' => 'success',\n 'data' => User::whereRole(UserRole::Instructor)->get()]);\n }", "title": "" } ]
[ { "docid": "619215bb4339ad93d666260778b90bfe", "score": "0.7755139", "text": "public function index()\n {\n $fields = $this->parseFields();\n $filter = $this->parseFilters();\n $sort = $this->parseOrders();\n $paging = $this->parsePaging();\n $data = $this->listResources($fields, $filter, $sort, $paging);\n if ($this->title) {\n $data['title'] = $this->title;\n }\n return self::getResponse()->setResType('view')\n ->setHeader(DefaultController::$defaultViewHeaders)\n ->setView($this->viewList)\n ->setData($data)\n ->send();\n }", "title": "" }, { "docid": "6126929dc3b0a4f22ee22cc3ad8d6a7b", "score": "0.742424", "text": "public function index() \n\t{ \n\t\t$this->listing();\t\n\t}", "title": "" }, { "docid": "6d81b7e1cab44c0c92f881f2877d4ed0", "score": "0.7306879", "text": "public function index()\n {\n $this->show_list();\n }", "title": "" }, { "docid": "e5aaa68b60a83d4042e360c0c15cd0b6", "score": "0.7268604", "text": "public function index()\n {\n try {\n $resources = $this->resourceRepository->all(['resourceable']);\n return $this->respondWithSuccess('Resources Loaded.', [\n 'resources' => ResourceResource::collection($resources)\n ]);\n } catch (Exception $e) {\n return $this->respondWithError($e->getMessage());\n }\n }", "title": "" }, { "docid": "ac3339bd1cec8bfe75390af276cfe9dc", "score": "0.7214969", "text": "public function index() {\n return view('acl::resource.index', [\n 'rows' => Resource::paginate(30)\n ]);\n }", "title": "" }, { "docid": "ec9fe93f7f0c8ef48fa8819d15129846", "score": "0.71625596", "text": "public function listAction()\r\n {\r\n $model = $this->getModel();\r\n $this->view->results = $model->fetchAll();\r\n }", "title": "" }, { "docid": "5d82cac8658bf58325423157f5868803", "score": "0.7101858", "text": "function index(){\n\t\t$this->listall();\n\t}", "title": "" }, { "docid": "6cb095287ba7893cf5db9fd09be1c994", "score": "0.7052246", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n //GET LISTING SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t$this->view->listings = Engine_Api::_()->getDbTable('listings', 'list')->userListing($list->owner_id, $list->listing_id);\n\n if (count($this->view->listings) <= 0) {\n return $this->setNoRender();\n } \n }", "title": "" }, { "docid": "0e0625aecfc34f0729e33ff2660b6438", "score": "0.7027799", "text": "public function listingAction()\r\n {\r\n }", "title": "" }, { "docid": "d080dc96edad97480f40b6836d57b19b", "score": "0.7016012", "text": "public function index()\n {\n $per_page = !request()->filled('per_page') ? 10 : (int) request('per_page');\n $direction = request()->query('direction');\n $sortBy = request()->query('sortBy');\n\n $query = DaerahOperasi::query()->where('status',true);\n\n $lists = $query->orderBy($sortBy, $direction)->paginate($per_page);\n\n return new ListResources($lists);\n }", "title": "" }, { "docid": "6b46ad2035db8f7885c8fcffe29f4ea2", "score": "0.7012276", "text": "public function actionList()\n {\n $categories = Category::find()->where(['status' => Category::AVAILABLE_MENU])->all();\n $all = Object::findAll(['visible' => 1]);\n return $this->render('index', [\n 'categories' => $categories,\n 'all' => $all,\n ]);\n }", "title": "" }, { "docid": "685fedab8ec30d9717b92d6aaf1a949a", "score": "0.6993658", "text": "public function listAction()\n\t{ \n\n\t\t// Get Sorting Configuration \n\t\t$sorting = $this->configureSorting();\n\t\t$maxProducts = $this->settings['maxAdsPerPage'];\n\t\t// Pagination Cofiguration\n\t\tif ($maxProducts != '') {\n\t\t\t$paginateConfiguration = array('itemsPerPage' => $maxProducts, 'insertAbove' => 0, 'insertBelow' => 1);\n\t\t} else {\n\t\t\t$paginateConfiguration = array('insertAbove' => 0, 'insertBelow' => 0);\n\t\t}\n\t\t$this->view->assign('configure', $paginateConfiguration);\n\t\t// Detail Page Id\n\t\t$detailPage = $this->settings['detailPageId'];\n\t\t$this->view->assign('detailPageId', $detailPage);\n\t\t\n\t\t// Fetch Products\n\t\t$products = $this->productsRepository->findProducts($sorting);\n\t\t$this->view->assign('product', $products);\n\t}", "title": "" }, { "docid": "f3c82870023b104cf3d41500546f04fe", "score": "0.6969016", "text": "public function listAction() {\n\t\t$lookupSession = $this->_helper->osid->getCourseManager()->getCourseCatalogLookupSession();\n\t\t$this->view->catalogs = $lookupSession->getCourseCatalogs();\n\t\t\n\t\t$this->view->title = 'Available Catalogs';\n\t\t$this->view->headTitle($this->view->title);\n }", "title": "" }, { "docid": "352cbf4ef1ef88715709090483c4f5d1", "score": "0.69540364", "text": "public function index()\n {\n $cardsList = CardsList::paginate(15);\n return CardsListResource::collection($cardsList);\n }", "title": "" }, { "docid": "b2127e4d9c0a879ae387cb11b315a1ec", "score": "0.69433725", "text": "public function indexAction()\n {\n\t\t// Default page setup is all resources displayed\n\t\t$this->countOptions['rsrc_type_id'] = DatabaseObject_ResourceType::$event;\n\t\t$this->resourceOptions['rsrc_type_id'] = DatabaseObject_ResourceType::$event;\n\t\t$this->render();\n }", "title": "" }, { "docid": "20a3c49baee8b4f404331b580d175c47", "score": "0.69310373", "text": "public function list() {\n\n // Checking allowed method\n if ($this->http->method() != 'GET') {\n $this->json->sendBack([\n 'success' => false,\n 'code' => 403,\n 'message' => 'This API onlsy supports method GET'\n ]);\n return;\n }\n\n $get_data = $this->http->data('GET');\n\n // Allow to only query 100 articles at a time\n if (!isset($get_data['limit']) || $get_data['limit'] > 100 ) {\n $get_data['limit'] = 100;\n }\n\n $this->model->load('blog/blog');\n $response = $this->model->blog->listRecords($get_data);\n\n unset($response['success']);\n\n $this->json->sendBack([\n 'success' => true,\n 'code' => 200,\n 'data' => $response\n ]);\n return;\n }", "title": "" }, { "docid": "78618d51f1162dbfe57d94dc54a00564", "score": "0.6909516", "text": "public function index()\n {\n $resources = Resource::all();\n return view('admin.resources.index', compact('resources'));\n }", "title": "" }, { "docid": "e4f860b51b85fbc3664e6a210482162d", "score": "0.68783826", "text": "public function index()\n\t{\n\t\t$filter = array(\n\t\t\t'name' \t\t\t=> Input::get('name'),\n\t\t\t);\n\n\t\t$resources = Resource::where(function($query){\n\t\t\tif(Input::get('name', null))\n\t\t\t\t$query->where('name', 'LIKE', '%' . Input::get('name') . '%');\n\t\t})\n\t\t->orderBy('name', 'asc')\n\t\t->paginate();\n\n\t\t$index = $resources->getPerPage() * ($resources->getCurrentPage()-1) + 1;\n\t\treturn View::make('resource.index')\n\t\t\t->with('resources', $resources)\n\t\t\t->with('index', $index)\n\t\t\t->with('filter', $filter);\n\t}", "title": "" }, { "docid": "b04d987b6c4dbb93710d7a4d57ff157f", "score": "0.68567383", "text": "public function showList()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "1d7f4db88d30c402e0790637ffc7fd6c", "score": "0.68518335", "text": "public function index()\n {\n //\n return DishResource::collection(Dish::paginate());\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.6829548", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "adc6c1fac44768e67a938fe2c4fc3ca5", "score": "0.6827", "text": "public function index()\n {\n $resourceList = Snippet::all();\n\n $resourceList = $this->decorator->decorateList($resourceList->all());\n\n return $this->respond([\n 'data' => $resourceList\n ]);\n }", "title": "" }, { "docid": "db795c6fc7243bc4d68f7936f230581b", "score": "0.6824872", "text": "public function index()\n {\n $itemnames = itemname::paginate(9);\n\n return itemnameResource::collection($itemnames);\n }", "title": "" }, { "docid": "bed9bad3d9d68501c7cd402bf9cb5712", "score": "0.68052477", "text": "public function index()\n {\n $collections = Collection::filter()->paginate();\n\n return CollectionResource::collection($collections);\n }", "title": "" }, { "docid": "b2e04f7e31617a13cb7b2b7b2ba7b47c", "score": "0.6796558", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist($total, $roms) = Theme_Service_Rom::getList($page, $perpage);\n\t\t$this->assign('roms', $roms);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t}", "title": "" }, { "docid": "bef2afea068ad5239f1bf271014339d0", "score": "0.6778475", "text": "public function showList()\n {\n if (isset($this->post['page']) || isset($this->get['page'])) {\n if ($this->post) {\n $this->doListing($this->criteria, $this->orderBy);\n }\n if ($this->get) {\n $this->doPagination();\n }\n } else {\n //..destrói todas as sessões gravadas e cria uma view limpa.\n Session::destroySession('sqlData');\n Session::destroySession('criteria');\n Session::destroySession('orderBy');\n Session::destroySession('limit');\n Session::destroySession('lastPage');\n $this->viewList->show();\n }\n }", "title": "" }, { "docid": "8d6e2fdd2785fe46ed4465ad994a05e6", "score": "0.67741334", "text": "public function index()\n {\n return ItemResource::collection(Item::all(), Response::HTTP_OK);\n }", "title": "" }, { "docid": "832b0b1a8ad120ab04049782d56603d1", "score": "0.67585295", "text": "public function listAction()\n {\n $status = $this->getDoctrine()\n ->getRepository(Status::class)\n ->findAll();\n\n if (!$status) {\n throw $this->createNotFoundException(\n 'No status found'\n );\n }\n return $this->render(\n 'status/list.html.twig',\n array('status' => $status)\n );\n }", "title": "" }, { "docid": "801fd2ede943b983860e4f8b196c6a1d", "score": "0.67583203", "text": "public function listAction()\n {\n $this->view->projects = ProjectCatalog::getInstance()->getActives();\n $this->setTitle('List the Project');\n }", "title": "" }, { "docid": "4ee1d03a7835a54341989f25ecc11a12", "score": "0.67533183", "text": "public function ListView()\n {\n $this->Render();\n }", "title": "" }, { "docid": "26f513b71bf4203aa55a3b2ad88593a0", "score": "0.6751154", "text": "public function index ()\n {\n $model = $this->getModel();\n $data = $model::getWhere( $model )\n ->orderByRaw( $this->orderField )->paginate( $this->pageNum );\n\n return $this->display( [ 'data' => $data ] );\n }", "title": "" }, { "docid": "90225ecf05155b5ce68061d28310401f", "score": "0.6743644", "text": "public function index()\n {\n $lists = Lists::get();\n\n if ($lists->isEmpty()){\n return $this->_result('No lists on the database', 404);\n } else {\n return $this->_result($lists);\n }\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.6742193", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "295efb639c3bbf287a3495dfebecfc27", "score": "0.6735022", "text": "public function display_list(){\n\t\t\n\t\t$collection = new TestGroup_Collection();\n\t\t$variables = array(\n\t\t\t'collection' => $collection->getPaginated(),\n\t\t\t'pagination' => $collection->getPagination(),\n\t\t\t'sorters' => $collection->getSortableLinks(),\n\t\t);\n\t\t\n\t\tBackendLayout::get()\n\t\t\t->prependTitle('Список элементов')\n\t\t\t->setLinkTags($collection->getLinkTags())\n\t\t\t->setContentPhpFile(self::TPL_PATH.'admin_list.php', $variables)\n\t\t\t->render();\n\t}", "title": "" }, { "docid": "a91ed5b6fa568bb8f34f7f1cb4eca554", "score": "0.6725086", "text": "public function listAction ()\n {\n return $this->render('ListsCompanystructureBundle:' . $this->baseTemplate . ':list.html.twig');\n }", "title": "" }, { "docid": "d822a771e046d38bc3baff6e1aecd775", "score": "0.67234546", "text": "public function index()\n {\n $attractions = Attraction::paginate();\n return new ListCollection($attractions);\n // return response()->successWithKey(ListResource::collection($attractions)->response()->getData(), 'attractions');\n }", "title": "" }, { "docid": "8cbe6f8b1b6b1ca1028e0172087e902f", "score": "0.671974", "text": "public function index()\n {\n $this->authorize('list', Query::class);\n\n return $this->ok($this->repo->paginate($this->request->all()));\n }", "title": "" }, { "docid": "ddf22eae2eb3a9afa79f4e227fbe85eb", "score": "0.67160857", "text": "public function ListAction()\r\n {\r\n $this->loadLayout();\r\n\r\n //add breadcrumbs\r\n $breadcrumbs = $this->getLayout()->getBlock('breadcrumbs');\r\n $breadcrumbs->addCrumb(\r\n 'home', array(\r\n 'label' => Mage::helper('CrmTicket')->__('Home'),\r\n 'title' => Mage::helper('CrmTicket')->__('Go to Home Page'),\r\n 'link' => Mage::getBaseUrl()\r\n )\r\n );\r\n $breadcrumbs->addCrumb(\r\n 'CrmTicket', array(\r\n 'label' => Mage::helper('CrmTicket')->__('Knowledge database'),\r\n 'title' => Mage::helper('CrmTicket')->__('Knowledge database'),\r\n 'link' => Mage::getUrl('CrmTicket/Front_Kb')\r\n )\r\n );\r\n\r\n $productId = $this->getRequest()->getParam('product_id');\r\n $product = Mage::getModel('catalog/product')->load($productId);\r\n Mage::register('crm_product', $product);\r\n\r\n $breadcrumbs->addCrumb(\r\n 'Product', array(\r\n 'label' => $product->getName(),\r\n 'title' => $product->getName()\r\n )\r\n );\r\n\r\n $this->renderLayout();\r\n }", "title": "" }, { "docid": "34c6952fbec4a94d7dfcf17341a14155", "score": "0.6712584", "text": "public function list()\n {\n $query = $this->crud_m->read();\n $data = array(\n 'title' => 'Data Users',\n 'data' => $query\n );\n $this->load->view('crud_view', $data, FALSE);\n }", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "f83b91372935d0e79b8188b7c36e777b", "score": "0.67089826", "text": "public function index()\n {\n return VariantResource::collection(Variant::paginate(5));\n }", "title": "" }, { "docid": "8dc49bad81dcd62fc2bee50fa0f6cde0", "score": "0.67058814", "text": "public function actionList()\n\t{\n\t\t$this->getScriptRegistrar()->registerScript(new Script('dream/dream-list.js'));\n\t\treturn $this->render('dream-list', [\n\t\t\t'canFilter' => true,\n\t\t\t'formAction' => '/search/list'\n\t\t]);\n\t}", "title": "" }, { "docid": "839dcdf11f716846642699f3d920ee15", "score": "0.67012167", "text": "public function index()\n {\n // Get Products\n $products = Product::orderBy('created_at', 'desc')->paginate(100);\n\n // Return collection of Products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "2b1fabb72b908dfe49918e2514cc9637", "score": "0.67009133", "text": "public function index(){\n\n $resources = Resources::orderBy('id', 'desc')->get();\n\n return view('members.resources.overview', compact('resources'));\n }", "title": "" }, { "docid": "a52c0178145cd251c1e2992b130c6b5b", "score": "0.6690429", "text": "public function listing() \n\t{ \n\t\t/*-------------------------------------------------------------\n\t\t \tBreadcrumb Setup Start\n\t\t -------------------------------------------------------------*/\n\t\t$link \t\t\t\t\t= breadcrumb();\n\t\t$data['breadcrumb'] \t= $link;\n\t\t\n\t\t/*-------------------------------------------------------------\n\t\t \tFetch pages list from database \n\t\t -------------------------------------------------------------*/\n\t\t$data['pages_list']\t\t=\t\t$this->mod_pages->get_all();\n\t\t\n\t\t/*-------------------------------------------------------------\n\t\t \tPage Title showed at the content section of page\n\t\t -------------------------------------------------------------*/\n\t\t$data['page_title'] \t\t=\t\t$this->lang->line('label_static_pages_page_title');\n\t\t\n\t\t/*-------------------------------------------------------------\n\t\t \tEmbed current page content into template layout\n\t\t -------------------------------------------------------------*/\n\t\t$data['page_content']\t\t= \t\t$this->load->view(\"pages/pages_lists\",$data,true);\n\t\t$this->load->view('page_layout',$data);\n\t}", "title": "" }, { "docid": "aec4befd55531e0139482e045f820700", "score": "0.6682151", "text": "public function listingAction() {\n\t\t$category = Engine_Api::_()->getItem('experience_category', $this->_getParam('category'));\n\t\tif( $category ){\n\t\t\tEngine_Api::_()->core()->setSubject($category);\n\t\t}\n\t\t// Search Params\n\n\t\t// Do the show thingy\n\t\t\t// Get an array of friend ids\n\t\t\t// Get stuff\n\t\t\t// unset($values['show']);\n\n\t\t// Get experience paginator\n\n\t\t// Render\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\n\t}", "title": "" }, { "docid": "d8b31b9075f8d0e44e874177808829ae", "score": "0.6679244", "text": "public function index() {\n $this->display(\n 'post/list.html.twig',\n [\n 'posts' => Post::getInstance()->getAll(),\n ]\n );\n }", "title": "" }, { "docid": "0a8592943b60ef544a636ed3cf60401b", "score": "0.66778135", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $articles = $em->getRepository('VitrineBundle:Article')->findAll();\n\n return $this->render('VitrineBundle:Article:list.html.twig', array(\n 'articles' => $articles,\n ));\n }", "title": "" }, { "docid": "a334c5a280346b8ee428e51fa7cad7f5", "score": "0.6662709", "text": "public function index()\n {\n $people = People::latest()->paginate(10);\n return PeopleResource::collection($people);\n }", "title": "" }, { "docid": "4104b991af0a28a3c1c61639ca8bb994", "score": "0.666178", "text": "public function index()\n {\n $this->setDefaultData();\n $this->paginate = [\n 'contain' => ['RegisteredUsers', 'Listings'],\n 'conditions' => ['RegisteredUsers.username'\n => $this->Auth->user()['username']]\n ];\n $watchingLists = $this->paginate($this->WatchingLists);\n\n $this->set(compact('watchingLists'));\n $this->set('_serialize', ['watchingLists']);\n }", "title": "" }, { "docid": "315d8530da87836a0e7b0995b1cdbb0a", "score": "0.66505045", "text": "public function listAction() {\n\t\t// Preload info\n\t\t$category = Engine_Api::_()->getItem('experience_category', $this->_getParam('category'));\n\t\tif( $category ){\n\t\t\tEngine_Api::_()->core()->setSubject($category);\n\t\t}\n\n\t\t// Search Params\n\n\n\t\t// Get paginator\n\t\t// Render\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\n\t}", "title": "" }, { "docid": "03808d2d6d000fb1319fe742e01d9036", "score": "0.6646285", "text": "public function action_list()\n {\n $page = $this->request->param('page', 1);\n\n $m = new Model_Client();\n $client_list = $m->get_page($page);\n\n $body = View::factory('client/list');\n\n $body->set_global('title', \"Client Page {$page}\");\n $body->bind('client_list', $client_list);\n\n $this->body = $body;\n }", "title": "" }, { "docid": "02c8166c695e8bc3564f2f2bec85604e", "score": "0.6638152", "text": "public function index()\n {\n return ResponseHelper::findSuccess(\n 'Cms data',\n CmsResource::collection(Cms::all())\n );\n }", "title": "" }, { "docid": "85549542de9c758b6a3d4a16f168b2ce", "score": "0.66364837", "text": "public function index()\n {\n return BookResource::collection(Book::paginate(10));\n }", "title": "" }, { "docid": "ee7b30dd0dba246122a26d0716451cd3", "score": "0.6636415", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_building->get_all();\n\t\t$this->template->set('title', 'Building List');\n\t\t$this->template->load('template', 'contents', 'building/building_list', $data);\n\t}", "title": "" }, { "docid": "8515c32bb273c939079fe494608b7eaa", "score": "0.6633632", "text": "public function index()\n {\n $alunos = Aluno::paginate(10);\n return AlunoResource::collection($alunos);\n }", "title": "" }, { "docid": "7c63c6204952f65da01fd3b885ff05fb", "score": "0.66233116", "text": "public function list(){\n\t\t$data = $this->category_model->getAll();\n\n\t\tinclude_once 'views/category/list.php';\n\t}", "title": "" }, { "docid": "3be910f9eb3367f879662cbb48fa2a75", "score": "0.66174275", "text": "public function index()\n {\n $list_obj = Article::all();\n return view('admin.' . $this->obj_name . '.list')->with('list_obj', $list_obj);\n }", "title": "" }, { "docid": "54e0fa7125b81ab722716499fd5614cb", "score": "0.6610289", "text": "public function ListView()\n\t{\n\t\t$this->RequirePermission(ExampleUser::$PERMISSION_ADMIN, \n\t\t\t\t'SecureExample.LoginForm', \n\t\t\t\t'Login is required to access this page',\n\t\t\t\t'Admin permission is required to access this page');\n\t\t\n\t\t$this->Assign(\"currentUser\", $this->GetCurrentUser());\n\t\t\n\t\t$this->Assign('page','users');\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "db76ec3f068acc24a7c0805e126850ca", "score": "0.6606056", "text": "public function list()\n {\n\n $pageTitle = 'List';\n $pageDescription = 'Some description for the page';\n\n return view('components.list', compact('pageTitle', 'pageDescription'));\n }", "title": "" }, { "docid": "d73b7640ad41df7377bc45e90e4c9dbc", "score": "0.6605765", "text": "public function index()\n {\n //Listado de todo\n $todos = Todo::paginate(15);\n return TodoResource::collection($todos);\n\n }", "title": "" }, { "docid": "adb2b4c810e3d542d4d70e15a77dc1a4", "score": "0.6604502", "text": "public function listing()\n {\n // if($this->isAdmin() == TRUE)\n // if($this->isDataClerk() == FALSE || $this->isAccountant() == FALSE || $this->isAdmin() == FALSE)\n // {\n // $this->loadThis();\n // }\n // else\n // { \n $data['docs'] = $this->document_model->getDocs();\n // echo'<pre>HTTPS Clearing & Forwarding info Request: '; print_r($data['docs']); \n // die;\n \n $this->global['pageTitle'] = 'Trulance : Lodged Documents ';\n $this->loadViews(\"documents/index\", $this->global, $data, NULL);\n // }\n }", "title": "" }, { "docid": "47f1f9c4d1b025aae8305888135845b3", "score": "0.66041565", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Lista::find()->andWhere(['created_by' => Yii::$app->user->id]),\n /*\n 'pagination' => [\n 'pageSize' => 50\n ],\n 'sort' => [\n 'defaultOrder' => [\n 'id' => SORT_DESC,\n ]\n ],\n */\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "title": "" }, { "docid": "334bac2742f908edac4d7c1babc36724", "score": "0.6603296", "text": "public function index()\n {\n $items = Item::all();\n\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "eb627f82e04a8ce7babdb6c08d8661a8", "score": "0.6594868", "text": "public function index() {\n $this->model->getList($this->submit);\n\n $this->smarty->assign('module', $this);\n\n $this->smarty->assign('liste', $this->model->list);\n $this->smarty->assign('barre_nav2', $this->model->barre_nav2);\n $this->smarty->assign('nbtotal', $this->model->nbtotal);\n $this->smarty->assign('recherche', $this->model->recherche);\n\n $this->render($this->pathTpl . 'list.tpl');\n }", "title": "" }, { "docid": "e531e5dcc8f7b8b9853cd8c54766f305", "score": "0.6593884", "text": "public function index()\n {\n // Get contacts\n $contacts = Contact::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of contacts as a resource\n return ContactResource::collection($contacts);\n }", "title": "" }, { "docid": "4cd5fe89bdc578ba54a4aa2e31cb87e1", "score": "0.6588902", "text": "public function index()\n {\n return successResponseWithData($this->repository->listAll());\n }", "title": "" }, { "docid": "7a70b9654c373e705dcab06ef07fabd3", "score": "0.6588745", "text": "public function index() {\n $listings = Search::allListings();\n return view('listing.index', [\n 'allitems' => $listings,\n ]);\n }", "title": "" }, { "docid": "2e11fc1536caf81ce9f7d87adf08936c", "score": "0.6583178", "text": "public function index()\n {\n $model = $this->model;\n $paginator = $model::orderBy('created_at', 'desc')->paginate();\n return $this->controller->respondWithPagination($paginator, new $this->transformer);\n }", "title": "" }, { "docid": "9217fd803e32aa1e6cac6f3b595cc791", "score": "0.6580564", "text": "public function getList()\n {\n\t\t$uid = intval($_GET['uid']);\n\t\t$data = $this->storyModel->getList($uid);\n\t\t$this->RestAPI->display($data);\n }", "title": "" }, { "docid": "218a3bcc6c3ba48283149f8614d45562", "score": "0.65740526", "text": "public function index() {\n\t\t$this->get ();\n\t}", "title": "" }, { "docid": "ec01971be4b0a73de78f8a0662695e97", "score": "0.657313", "text": "public function index()\n\t{\t\n\t\t\n\t\t$data['lists'] = $this->mdl_employee->get_all();\n\t\t$this->template->set('title', 'Employee List');\n\t\t$this->template->load('template', 'contents', 'list', $data);\n\t}", "title": "" }, { "docid": "93ceccdfcfd3d2e3e028c05f01aee311", "score": "0.6564594", "text": "public function index()\n {\n // Get list of items\n ${$this->getEntity()} = $this->createModel()->get();\n\n if (request()->expectsJson()) {\n return ${$this->getEntity()};\n }\n\n // Show index page\n return view($this->getViewPath('index'), compact(\"{$this->getEntity()}\"));\n }", "title": "" }, { "docid": "c4bb31a9775a0e667ef62e4f3a23aeab", "score": "0.6563258", "text": "public function listAction() {\n $this->_datatable();\n return array();\n }", "title": "" }, { "docid": "4d16a85114e205a309d60d279285baf8", "score": "0.6556644", "text": "public function actionList() {\n $this->renderVideos(Yii::app()->params['videoListPageSize'], 'list');\n }", "title": "" }, { "docid": "1a71da726be7d8e39434bf8006641a36", "score": "0.65561515", "text": "public function index()\n {\n return NovelResource::collection(Novel::paginate(25));\n }", "title": "" }, { "docid": "0d8f15014904fe5debac00edf07281d4", "score": "0.6553877", "text": "public function listeAction()\n\t{\n\t\t$liste = $this->getListeEntity();\n\t\treturn $this->renderListeEntity($liste);\n\t}", "title": "" }, { "docid": "58a230f5d27bebeb199da204e142de11", "score": "0.6551992", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = ucfirst(($this->chapter ? $this->chapter->title . ' --> ' : '') . $this->crud->entity_name_plural);\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getListView(), $this->data);\n }", "title": "" }, { "docid": "9244b40f6f21e992178f783de4251dd2", "score": "0.6550698", "text": "public function index()\n {\n $newsAge = new NewsAgeService();\n return response()->view('admin.resource.index', [\n 'resources' => Resource::all(),\n 'maximumNewsAge' => $newsAge->maximumAge,\n 'NewsAgeArray' => $newsAge->currentAgesArray\n ]);\n }", "title": "" }, { "docid": "3b73cbfdaf4da6b77e444f5087149b48", "score": "0.654366", "text": "public function listAction(){\n $this->_helper->layout->disableLayout();\n $search = $this->_request->getParam('search');\n $this->view->lists_search = $this->inst_list->getListsSearch($search);\n }", "title": "" }, { "docid": "5e6c89ae87e322e6cebabf8a709371ec", "score": "0.6532866", "text": "public function index()\n {\n $activitylists = ActivityList::getAllActivityList();\n return ActivityListResource::collection($activitylists);\n }", "title": "" }, { "docid": "fbff09efef269fb01080a8f477264a11", "score": "0.65298074", "text": "public function indexAction()\n {\n return $this->listAction();\n }", "title": "" }, { "docid": "f852b02ada9624be17ccc6c0b233bca4", "score": "0.65288365", "text": "public function list()\n {\n }", "title": "" }, { "docid": "8c17e54890fb7927d5665fd20840a59b", "score": "0.65280986", "text": "public function actionList() {}", "title": "" }, { "docid": "c5764d940efbfdf8d73db2746d19dc91", "score": "0.65280247", "text": "public function indexAction()\n {\n $ressources = $this->get('cba.service.ressource')->getAll();\n\n return $this->render('AppBundle:ressource:index.html.twig', array(\n 'ressources' => $ressources,\n ));\n }", "title": "" }, { "docid": "2ee8b8d707f017e5a8e409b7f12435d8", "score": "0.65266925", "text": "public function index()\n {\n return EntryResource::collection(Entry::all());\n }", "title": "" }, { "docid": "ec0f76ee79c606aa2baf2b2bcdb84b9c", "score": "0.6522105", "text": "public function index()\n {\n //get menus\n $menus = Menu::when(request()->q, function($menus) {\n $menus = $menus->where('name', 'like', '%'. request()->q . '%');\n })->latest()->paginate(10);\n \n //return with Api Resource\n return new MenuResource(true, 'List Data Menu', $menus);\n }", "title": "" }, { "docid": "5439447ac88f8cc98dc7832990b07305", "score": "0.65154237", "text": "public function indexAction()\n {\n $this->display();\n\n }", "title": "" }, { "docid": "dac10993b16b17127f0067b303d87b06", "score": "0.6514288", "text": "public function index()\n {\n //return Student::latest()->paginate(10);\n //return new StudentResource(Student::find(1));\n return new StudentCollection(Student::latest()->paginate(10));\n //return Student::all();\n }", "title": "" }, { "docid": "e9de3a5bbe6ce36d1c8d9b089e6812a0", "score": "0.6509821", "text": "public function index()\n {\n //Get Products\n $products = Products::orderBy('id', 'asc')\n ->join('categories', 'products.category_id', '=', 'categories.id')\n ->select('products.*', 'categories.name AS category')\n ->get();\n\n //Return Collection of Products\n return ProductsResource::collection($products);\n }", "title": "" }, { "docid": "57d86a0d21f4bd82a348ac1b9719ace2", "score": "0.65042144", "text": "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Food::find()\n ]);\n\n return $this->render('index', [\n 'listDataProvider' => $dataProvider\n ]);\n }", "title": "" }, { "docid": "2bccbfe61c567cbf0e28781cdbe73546", "score": "0.65021294", "text": "public function index()\n\t{\n\t\treturn (new PlayListCollection(PlayList::paginate()))->response()->setStatus(Response::HTTP_OK);\n\t}", "title": "" }, { "docid": "8645d213586ec548f9ce61cc0cf2e717", "score": "0.6501545", "text": "public function action_hospital_list() {\n $start = 0;\n if(isset($_GET[\"start\"])) {\n $start = $_GET[\"start\"];\n }\n $hospital_data = HospitalModel::get_hospitals($start, 20);\n $view = View::forge('hospitalviews/hospital_list');\n $view->contents = View::forge('hospitalviews/template');\n $view->title = 'Hospital List';\n $view->hospital_css = 'hospital.css';\n $view->hospital_data = $hospital_data;\n $view->start = $start;\n return Response::forge($view);\n }", "title": "" }, { "docid": "33f88f42b5cb9e92e9a26d82d3471d17", "score": "0.64990896", "text": "public function index()\n {\n $resource = $this->prepResource('index');\n if (request()->ajax()) {\n return $resource->jsonDatatables();\n }\n $this->showBreadcrumb($resource);\n\n return $this->view(compact('resource'));\n }", "title": "" }, { "docid": "3948769314da329754d55d43362bf87b", "score": "0.6489118", "text": "public function list()\n\t{\n\t\t$this->admin();\n\t\t$data['investors'] = $this->investor_model->getAllInvestor();\n\t\t$this->page_construct('investor/list',$data);\n\t}", "title": "" }, { "docid": "eac7a378742b29b2e677a3e136e5c663", "score": "0.6485999", "text": "public function index()\n {\n //TODO add showing of all records\n }", "title": "" }, { "docid": "e2c433ae62fdd0143166040b27f97b10", "score": "0.6484191", "text": "public function index()\n {\n $collection = UserResource::collection(\n User::all()\n );\n\n return $this->showAll($collection);\n }", "title": "" }, { "docid": "c857bd7504f0580a308861e50394e4b0", "score": "0.64808744", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\tif($page < 1) $page = 1;\n\t\t\n\t\t$status = intval($this->getInput('status'));\n\t\t$resolution = $this->getInput('resolution');\n\t\t$operators = $this->getInput('operators');\n\t\t$title = $this->getInput('title');\n\t\t$params = array();\n\t\t$search = array();\n\t\tif($resolution) {\n\t\t\t$params['resolution'] = $resolution;\n\t\t\t$search['resolution'] = $resolution;\n\t\t}\n\t\t\n\t\tif($operators != 'a') {\n\t\t\t$params['operators'] = $operators;\n\t\t\t$search['operators'] = $operators;\n\t\t}\n\t\tif($status) {\n\t\t\t$params['status'] = $status - 1;\n\t\t\t$search['status'] = $status;\n\t\t}\n\t\t\n\t\tif($title) {\n\t\t\t$params['title'] = $title;\n\t\t\t$search['title'] = $title;\n\t\t}\n\t\t\n\t\tlist(, $resolutions) = Resource_Service_Attribute::getList(1, 100,array('at_type'=>4));\n\t\t$resolutions = Common::resetKey($resolutions, 'id');\n\t\tlist(, $operators) = Resource_Service_Attribute::getList(1, 100,array('at_type'=>6));\n\t\t$operators = Common::resetKey($operators, 'id');\n\t\t\n\t\tlist($total, $result) = Resource_Service_Type::getCanUseResourceTypes($page, $perpage,$params);\t\t\n\t\t$this->cookieParams();\n\t\t$this->assign('result', $result);\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($search).'&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $this->perpage, $url));\n\t\t$this->assign('search', $search);\n\t\t$this->assign('resolutions', $resolutions);\n\t\t$this->assign('operators', $operators);\n\t\t$this->assign(\"total\", $total);\n\t}", "title": "" }, { "docid": "220099abd3e945ba3a715a4f02042bf9", "score": "0.6478389", "text": "public static function list( )\n\t\t{\n\t\t\t//echo \"Listando as coisas\";\n\t\t\n\t\t\t$dao = new LivroDAO;\n\t\t\t$lista = $dao->listAll( );\n\n\t\t\tself::view( 'consulta' , $lista );\n\n\t\t}", "title": "" }, { "docid": "c8bce961d8c00f94db1cc45bb581d8eb", "score": "0.6476608", "text": "public function index()\n {\n $products = Product::all();\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "d853b351ec514560d915a63492709983", "score": "0.6473065", "text": "public function index()\n {\n $allProducts = Product::all();\n return response(ProductResources::collection($allProducts));\n }", "title": "" } ]
60aca80bfc666ac809c98769a0a0309b
Display a class has been deleted and the option to undo
[ { "docid": "9f9644e93749f5f8a29f40977b243a25", "score": "0.7225363", "text": "public function displayClassDeletionNotification($undoID){\n $this->displayNotification(\"Class Deleted\", \"../Controller/undoController.php?undoDelClass=\".$undoID);\n }", "title": "" } ]
[ { "docid": "ea43def53b628d787545d5ea07e305da", "score": "0.61795026", "text": "public function undo();", "title": "" }, { "docid": "54c1e1701d9977392c483d5536e641c8", "score": "0.60637003", "text": "public function undo():void\n {\n }", "title": "" }, { "docid": "d407364fbf19a243676e054f0e4cc4bd", "score": "0.6051876", "text": "public function deleted()\n {\n //\n }", "title": "" }, { "docid": "dec8008a7ff4971074f78c213ebaaa3e", "score": "0.5926458", "text": "public function deleting()\n {\n //\n }", "title": "" }, { "docid": "84ffaabc9af2cbf9b10bcc3df2b165df", "score": "0.5907124", "text": "public function deleteClass() {\n $id = $this->input->get('id');\n $classId = $this->input->get('classId');\n if ($this->db->delete('clas_info', array('id' => $id))) {\n if ($this->db->delete('class', array('id' => $classId))) {\n redirect('sclass/allClass/', 'refresh');\n }\n }\n }", "title": "" }, { "docid": "d829d5ca959a05ca63e0966e59148614", "score": "0.5897066", "text": "function delete(){\n\t\t\t$this->userlib->force_login();\n\t\t\tif($this->input->post('submit') == 'submit' AND $this->input->post('confirm_delete') == 'form_submit') {\n\t\t\t\t$this->userlib->force_permission('classes_delete', array('class_id' => $this->input->post('object_id')));\n\t\t\t\t\n\t\t\t\t$x = $this->classes_model->delete(intval($this->input->post('object_id')));\n\t\t\t\t\n\t\t\t\tif($races = $this->race_model->get_races($this->input->post('object_id'))){\n\t\t\t\t\tforeach($races as $race){\n\t\t\t\t\t\t$this->race_model->clear_race_data($race->id);\n\t\t\t\t\t\t$this->race_model->delete_races($race->id);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif($x===true){\n\t\t\t\t\t$this->session->set_flashdata('message', 'Class Deleted Successfully');\n\t\t\t\t}else{\n\t\t\t\t\t$this->session->set_flashdata('err_message', 'There was a problem deleting the Class from the database');\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$this->session->set_flashdata('err_message', 'There was a problem deleting the Class');\n\t\t\t}\n\t\t\tif($this->input->post('referrer')){\n\t\t\t\tredirect(base_url($this->input->post('referrer')));\n\t\t\t}else{\n\t\t\t\tredirect(base_url(''));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "c7ae5f9ab8548ea929e4c71f08ae747a", "score": "0.58433336", "text": "function Del($text, $class = -1)\n {\n $options = \"\" ;\n if ($class != -1)\n $options = \" CLASS =\\\"$class\\\"\" ;\n\n echo \"<DEL\" . $options . \">$text</DEL>\" ;\n }", "title": "" }, { "docid": "31dc62c2485e434b87ad387cf294106d", "score": "0.5824238", "text": "public function delete()\n\t{\n\t\t$this->plugin->setResponse('in delete');\n\t}", "title": "" }, { "docid": "fd32da4dfbd985010ab1253e82846d4d", "score": "0.5814363", "text": "public function getDeleteMessage()\n {\n return 'Ha eliminado ' . $this->getUnName();\n }", "title": "" }, { "docid": "bc739e6e5dd0ffbbbbed7b3f3d6c758f", "score": "0.57974726", "text": "function delete(){\n\t\ttrigger_error('Not implemented yet: '.Dataface_Error::printStackTrace(), E_USER_ERROR);\n\t}", "title": "" }, { "docid": "1efdd96fdf5fd5bbe7edc236b21c09d0", "score": "0.5766562", "text": "public function deleteAction() {\n\t\techo \"TODO: deleteAction()\";\n\t}", "title": "" }, { "docid": "8ee4d02dac649639fd4696fdf8a09ca7", "score": "0.5761863", "text": "protected function delete() {\n\t\t\t$this->deleted = true;\n\t\t}", "title": "" }, { "docid": "9fbdfd4c025f02579ab63e7ea0f86d0a", "score": "0.5726295", "text": "public function deleteControl() {\n \t$result=\"\"; \n $bill = new $this->refType($this->refId);\n if (property_exists($bill, 'billId') and is_numeric($bill->billId) and $bill->done) {\n $result.='<br/>' . i18n('errorLockedBill');\n } \n \tif (! $result) { \n $result=parent::deleteControl();\n }\n return $result;\n }", "title": "" }, { "docid": "888443c3bc710c48cbd786b6a49d8f56", "score": "0.56909746", "text": "public function delete() {\n\t\techo \"I'm deleting myself!<br><br>\";\n\t}", "title": "" }, { "docid": "50e0460d52624285cdab99bcffe1a5b8", "score": "0.56758887", "text": "public function deletion();", "title": "" }, { "docid": "4ecab0b53d84956e0fd94f2c91e0c257", "score": "0.558421", "text": "protected function wasModelDeleted(string $class, mixed $key): bool\n {\n if (! array_key_exists($class, $this->deletedSinceBeforeState)) {\n return false;\n }\n\n return in_array($key, $this->deletedSinceBeforeState[ $class ]);\n }", "title": "" }, { "docid": "6277dde2d7af8ea14268d388317fd136", "score": "0.55812645", "text": "public static function delClass(){\n\t\tself::$style\t= false;\n\t}", "title": "" }, { "docid": "527f3bbfaa00ea857ea60dedab0b703b", "score": "0.55675715", "text": "public function displayTaskDeletionNotification($undoID){\n $this->displayNotification(\"Task Deleted\", \"../Controller/undoController.php?undoDelTask=\".$undoID);\n }", "title": "" }, { "docid": "c42197d42fb437d6a3bbed9dd9db7e13", "score": "0.55416775", "text": "public function toString()\n {\n return '\\'Delete\\' button on Store view edit page is absent.';\n }", "title": "" }, { "docid": "8899393b7e23162ead324203ee30cbe4", "score": "0.553804", "text": "function isMarkedAsDeleted();", "title": "" }, { "docid": "65443f2c9fa231bd645514fbeab5118a", "score": "0.5522496", "text": "public function afterDelete()\n {\n MenuWidget::afterDeleteMainModel($this);\n\n parent::afterDelete();\n }", "title": "" }, { "docid": "02e931ef5b1497be72af9c8c73525bfd", "score": "0.5517349", "text": "public function isDeleted();", "title": "" }, { "docid": "02e931ef5b1497be72af9c8c73525bfd", "score": "0.5517349", "text": "public function isDeleted();", "title": "" }, { "docid": "843ecd8dccfa006bf84d9d1649641284", "score": "0.5479896", "text": "public function deleteAction() \n\t\t{\n\t\t\t$this->logger->log($this->tableName.\" Delete Action Called: \", Zend_Log::DEBUG);\t\n\n\t\t}", "title": "" }, { "docid": "f2f8e112ef346267fe6f24eaf01c7012", "score": "0.5472952", "text": "public function userDelete() {\n $render = new Render('deleteUser', 'Suppression de votre compte');\n }", "title": "" }, { "docid": "4d43aee5381370ea00ea01c3ce3fa74a", "score": "0.54689324", "text": "public function commandDelete()\n {\n $this->s_command = 'delete';\n }", "title": "" }, { "docid": "26eeebae8f48341ca075ef291a52e7ec", "score": "0.54494345", "text": "function PersonalData_Deleted($row) {\n\n\t//echo \"PersonalData Deleted\";\n}", "title": "" }, { "docid": "26eeebae8f48341ca075ef291a52e7ec", "score": "0.54494345", "text": "function PersonalData_Deleted($row) {\n\n\t//echo \"PersonalData Deleted\";\n}", "title": "" }, { "docid": "efc96a34f505e8fd68b155d88ec36378", "score": "0.54310375", "text": "function view_remove() {\n\t\tif (empty($this->id)) return;\n\n\t\t$database_id = $this->id;\n\n\t\t$object_query = $this->dobj->db_fetch($this->dobj->db_query(\"SELECT object_id FROM databases WHERE database_id='$database_id' LIMIT 1;\"));\n\t\t$object_id = $object_query['object_id'];\n\n\t\t$this->dobj->db_query(\"DELETE FROM objects WHERE object_id='$object_id';\");\n\n\t\t$this->redirect('catalogue/home/');\n\t}", "title": "" }, { "docid": "a71c8139d3e190caa4ab81dd7cfbc716", "score": "0.54228383", "text": "public function getDelete($id){\n\t\treturn View::make('classes.delete')\n\t\t\t->with('class',Class_::find($id));\n\t}", "title": "" }, { "docid": "7e97dea970ab570d8238e28ee45efcba", "score": "0.54211247", "text": "abstract public function deleteAction();", "title": "" }, { "docid": "af6a5ef0c9685f15589914ec8e476b33", "score": "0.54182017", "text": "public function actionDelete()\n\t{\n\t}", "title": "" }, { "docid": "d6252b1beb3dbc05149cb14e3e09a969", "score": "0.5390359", "text": "public function deleteAction()\n\t{\n\t}", "title": "" }, { "docid": "b9540bd47e4458ec10cbe998367e0fac", "score": "0.5383977", "text": "function deleteEntry() \n {\n // first remove any associated State Variables\n $list = new StateVarList( $this->getModuleID() );\n $list->setFirst();\n while( $item = $list->getNext() ) {\n $item->deleteEntry();\n }\n \n // now remove any Data Access Objects\n $list = new DAObjList( $this->getModuleID() );\n $list->setFirst();\n while( $item = $list->getNext() ) {\n $item->deleteEntry();\n }\n \n // now remove any Page Objects\n $list = new PageList( $this->getModuleID() );\n $list->setFirst();\n while( $item = $list->getNext() ) {\n $item->deleteEntry();\n }\n \n // now remove any Transitions\n $list = new TransitionsList( $this->getModuleID() );\n $list->setFirst();\n while( $item = $list->getNext() ) {\n $item->deleteEntry();\n }\n \n // now call parent method\n parent::deleteEntry();\n \n }", "title": "" }, { "docid": "ee44a4645bbf5ec955e3e52fc5625c76", "score": "0.53775454", "text": "protected function logDeleted()\n {\n $before = $this->getLoggableAttributes();\n\n $this->log($before, null, 'deleted');\n }", "title": "" }, { "docid": "84c0a9a6e4b28d56b11d43f317dbe2f4", "score": "0.5371782", "text": "public function deleteAction() {\n parent::deleteAction();\n }", "title": "" }, { "docid": "4495c8617cbe654e096d50ba1acdc742", "score": "0.53714246", "text": "public function deleting_event(){\n return true;\n }", "title": "" }, { "docid": "5820bcda7e5af9f2621ee631a563515b", "score": "0.5365462", "text": "public function del()\n\t{\n\t\t$this->deleted = 1;\n\t\t$this->save();\n\t}", "title": "" }, { "docid": "38cabc6063731a7a5432618d7f469fee", "score": "0.5360095", "text": "public function deleteAction()\n\t{\n\t\t \n\t}", "title": "" }, { "docid": "ffd59634a76bba4e48f699fe88272c56", "score": "0.53520906", "text": "function was_deleted()\n\t{\n\t\tif ($this->status[0] == DELETED) { return YES; }\n\t\telse { return NO; }\n\t}", "title": "" }, { "docid": "3364f110ea6bc397bde4990a9df79ac3", "score": "0.5349616", "text": "public function is_deleted() {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "2723a526de641f4dc6848bcd528fd718", "score": "0.5345993", "text": "public function deleteAction() {\n\t\t// TODO: Implement deleteAction() method.\n\t}", "title": "" }, { "docid": "f8b6ce79ffd45fbca95ad7867ce6564f", "score": "0.53434026", "text": "protected function afterDelete()\n\t{\n\t}", "title": "" }, { "docid": "43c443c8508308c70e2b80fe66f1fab6", "score": "0.5337909", "text": "public function trash();", "title": "" }, { "docid": "f8e56cbd6c73cc2af67422bb04b9cf59", "score": "0.5337106", "text": "public function delete()\n {\n $I=$this;\n $I->click(HomePage::$delete1);\n $I->click(HomePage::$delete1);\n $I->click(HomePage::$delete1);\n }", "title": "" }, { "docid": "deb7a7ecaaf4bc87de2ee7e281f86d96", "score": "0.5329712", "text": "public function wasDeleted() {\r\n\t\treturn $this->_ops & self::OP_DELETE;\r\n\t}", "title": "" }, { "docid": "9333833570e5354a7153e7e4239dde46", "score": "0.53275543", "text": "function delete ()\n\t{\n\t\t$this->delete = \"1\";\n\t}", "title": "" }, { "docid": "b21f40203d1e29827644a962aeefccba", "score": "0.53250486", "text": "public function markAsDeleted() {\n\t\t$this->isDeleted = true;\n\t}", "title": "" }, { "docid": "e03518153045acb2413eac7df5dc3eea", "score": "0.53240794", "text": "protected function afterDelete () {}", "title": "" }, { "docid": "732ba5258e87f30c035c6df3d19f6796", "score": "0.5315245", "text": "protected function addSoftDeletedState(Model $model, ClassType $class)\n {\n $class->addMethod(Factory::SOFT_DELETED_STATE)\n ->setPublic()\n ->addComment(\"Define the deleted state.\")\n ->addComment('')\n ->addComment('@return $this')\n ->addBody(\n \"\\nreturn \\$this->state(function (array \\$attributes) {\" .\n \"\\n return [\" .\n \"\\n (new {$model->class})->getDeletedAtColumn() => \\$this->faker->dateTime(),\" .\n \"\\n ];\" .\n \"\\n});\"\n );\n }", "title": "" }, { "docid": "a50217d315184108f90eb059b0b083f5", "score": "0.53095347", "text": "abstract public static function deleted($callback);", "title": "" }, { "docid": "a50217d315184108f90eb059b0b083f5", "score": "0.53095347", "text": "abstract public static function deleted($callback);", "title": "" }, { "docid": "ed16cb6da24bdd7c73d7ff0690f3246e", "score": "0.5303845", "text": "function delete()\r\n {\r\n }", "title": "" }, { "docid": "b6c426a976d331da1bb6c88e44b73b30", "score": "0.5286492", "text": "protected function forgetChangedClasses() {\n\t\tforeach (array_keys($this->reflectedClassNames) as $className) {\n\t\t\tif (!$this->statusCache->has(str_replace('\\\\', '_', $className))) {\n\t\t\t\t$this->forgetClass($className);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e8e06da3052fd781641802b42e5c18d5", "score": "0.52818507", "text": "public function delete () {\n\n\t}", "title": "" }, { "docid": "26634dae9c945ad687e9a9af82aef607", "score": "0.5276415", "text": "function deleteClass($db_con, $delete_id)\n{\n\t$delete_id = sanitiseInput($db_con, $delete_id);\n\t\n\t//Check to see if the class has students and store the number of students in a variable\n\t$countQuery = \"SELECT COUNT(class_assigned_to) AS NoPerClass FROM classes INNER JOIN users ON classes.class_id = users.class_assigned_to WHERE users.class_assigned_to = \\\"$delete_id\\\" AND account_type = 'Student'\";\n\t$countQueryResult =newQuery($db_con,$countQuery);\n\t$row = mysqli_fetch_array ( $countQueryResult );\n\t$classSize = $row [\"NoPerClass\"];\n\n\t//Retrieve the name of the class\n\t$classResult = newQuery($db_con, \"SELECT * FROM classes WHERE class_id='$delete_id'\");\n\t$row2 = mysqli_fetch_array ( $classResult );\n\t$className = $row2 [\"class_name\"];\n\tmysqli_free_result($classResult);\n\n\t//If the class has no students it can be deleted. Also deletes class from the forum_category table\n\tif ($classSize <=0){\n\t\t$delete1 = newQuery($db_con, \"DELETE FROM classes WHERE class_id ='$delete_id'\");\n\t\t$delete2 = newQuery($db_con, \"DELETE FROM forum_categories WHERE class_id ='$delete_id'\");\n\t\theader(\"Location:../../manageclasses.php?&UpdateClass=The class \\\"$className\\\" has been successfully deleted\");\n\t\texit();\n\t\tcloseMySql($db_con, $countQueryResult);\n\t}\n\n\t//If the class has students it cannot be deleted\n\telse {\n\t\theader(\"Location:../../manageclasses.php?&UpdateClass=The class \\\"$className\\\" cannot be deleted as it has students assigned to it\");\n\t\texit();\n\t\tcloseMySql($db_con, $countQueryResult);\n\t}\n}", "title": "" }, { "docid": "2a4d5956efbefd55cbfe05c6294b7d58", "score": "0.52733195", "text": "function delete($formvars = array()) {\n $commande = new Commande;\n $commande->changeStatut($formvars['back_id'], 0);\n\n $return = parent::delete($formvars);\n return $return;\n }", "title": "" }, { "docid": "e82126a729ad4feda40984de3efa247d", "score": "0.52675855", "text": "public function setDeleted()\n {\n $this->deleted = true;\n }", "title": "" }, { "docid": "2682c4fade25c5c844e11b253f398599", "score": "0.52673376", "text": "function setDeleted(): void {\n\t}", "title": "" }, { "docid": "ee9d1b72bd38bde03809463371403646", "score": "0.5262708", "text": "function print_delete_button($obj) {\n if (!$this->can_do('delete')) {\n return;\n }\n \n echo '<div align=\"center\">';\n $options = array('s' => $this->pagename, 'action' => 'delete', 'id' => $obj->id);\n // FIXME: change to language string\n echo print_single_button('index.php', $options, get_string('delete_label','block_curr_admin').' ' . get_string($obj->get_verbose_name(),'block_curr_admin'), 'get', '_self', true, get_string('delete_label','block_curr_admin').' ' . get_string($obj->get_verbose_name(),'block_curr_admin'));\n echo '</div>';\n }", "title": "" }, { "docid": "f1129a285b1ecf48e94388f63f680eeb", "score": "0.5261007", "text": "public function cleanupAction() {\r\n $n = $this->Model->cleanup();\r\n return t(\"Deleted :n files\", \"en\", [\":n\" => $n]);\r\n }", "title": "" }, { "docid": "6282d60f611abb5389667ef9a42a36a9", "score": "0.5258292", "text": "public function deleted_event(){\n return true;\n }", "title": "" }, { "docid": "7c655afd4b21f8b9e8ecedd4ab593216", "score": "0.5254949", "text": "function delete() {\n $status = true;\n if (!empty($this->id)) {\n instructor::delete_for_class($this->id);\n student::delete_for_class($this->id);\n trackassignmentclass::delete_for_class($this->id);\n classmoodlecourse::delete_for_class($this->id);\n student_grade::delete_for_class($this->id);\n attendance::delete_for_class($this->id);\n taginstance::delete_for_class($this->id);\n waitlist::delete_for_class($this->id);\n classmoodlecourse::delete_for_class($this->id);\n\n $level = context_level_base::get_custom_context_level('class', 'block_curr_admin');\n $result = delete_context($level,$this->id);\n \n $status = $this->data_delete_record();\n }\n\n return $status;\n }", "title": "" }, { "docid": "0164a547fe92b83c542fbcaadcc5f01a", "score": "0.52511907", "text": "public function delete() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b4e8db9f5a523766fb47733ad2726e54", "score": "0.5251066", "text": "public function afterDelete()\n {\n }", "title": "" }, { "docid": "8afeebf5c4b8dee434915b00d9468923", "score": "0.52497524", "text": "public function deleteAction()\n {\n \t\n }", "title": "" }, { "docid": "0f52c98b841551291f4104ad29a587d1", "score": "0.5245154", "text": "public function deleted(Contato $contato)\n {\n //\n }", "title": "" }, { "docid": "c7c7075f5d8f6e0a5a187f945830cfaa", "score": "0.52361596", "text": "public function getdeleted()\n {\n return $this->deleted;\n }", "title": "" }, { "docid": "0d0727c41c09538e3c5053ad5a5fa5f6", "score": "0.5235427", "text": "public function delete() {\n\n\t}", "title": "" }, { "docid": "541589a386a1ffc87a2fa05a7930e403", "score": "0.52334154", "text": "public function destroy($class_id)\n {\n //\n $classes = Clas::findOrFail($class_id);\n\n if($classes){\n\n $classes->delete();\n\n return redirect('/classes')->with('status', 'Class is successfully Deleted');\n\n }else{\n\n return redirect('/classes')->with('status-fail', 'Class Deletion, Failed'); \n }\n }", "title": "" }, { "docid": "791f20a6435e3ee3f406d9f3e6c067da", "score": "0.52304494", "text": "function afterDelete() {\n // Empty\n }", "title": "" }, { "docid": "2ef65a33702c12a3915e7ff89242e864", "score": "0.52288616", "text": "public function undo()\n\t{\n\t\tforeach($this->getSupportedDestinationTypeIDs() as $entityTypeID)\n\t\t{\n\t\t\t$this->removeRecentEntity($entityTypeID);\n\t\t}\n\t\t$this->currentPhase = 0;\n\t}", "title": "" }, { "docid": "f4561c0c615add333aa1c66b2d411b90", "score": "0.52251637", "text": "public function cancelClassTask()\n\t{\n\t\tApp::redirect(\n\t\t\tRoute::url('index.php?option=' . $this->_option . '&controller=' . $this->_controller . '&task=displayClasses', false)\n\t\t);\n\t}", "title": "" }, { "docid": "eaec0b33f5993c696650ce4173f11054", "score": "0.5218918", "text": "protected function afterDelete() {\r\n }", "title": "" }, { "docid": "712fd9b3b799e4f0c4b69a2e69d9e5cc", "score": "0.5217474", "text": "protected function afterDelete()\n {}", "title": "" }, { "docid": "9765fe561bc5d88a31899f45f6b2c26c", "score": "0.52170724", "text": "public function delete_form()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "0dcbd0560528d3a73842b8c42c7f8bc8", "score": "0.52150875", "text": "public function getRestore()\n {\n $active = $this->active;\n $model = $this->model;\n $view = 'delete';\n $word = trans('module_'.$this->active.'.module_title');\n $columns = $this->columns();\n $select = $this->select;\n $actions = 1;\n\n return view('admin.deleted', compact($this->compact));\n }", "title": "" }, { "docid": "eb6afc1082959e681bf43a0bee6b1de0", "score": "0.5210378", "text": "public function delete(){\r\n \r\n }", "title": "" }, { "docid": "09e38674d128f3b2248020b821c0e428", "score": "0.52065", "text": "public static function deleted($event)\r\n {\r\n }", "title": "" }, { "docid": "99bdc675bccb9bd7d53a9c8f885de08c", "score": "0.51999414", "text": "public function deleted(Complain $complain)\n {\n //\n }", "title": "" }, { "docid": "95611f906f592de62c56a1112c8b3eec", "score": "0.5180066", "text": "public function trash() {\n $this->delete();\n }", "title": "" }, { "docid": "b5eeac180710f36bbf6a24c30075d2ce", "score": "0.5174269", "text": "public function deleteAction()\n {\n }", "title": "" }, { "docid": "b5eeac180710f36bbf6a24c30075d2ce", "score": "0.5174269", "text": "public function deleteAction()\n {\n }", "title": "" }, { "docid": "b5eeac180710f36bbf6a24c30075d2ce", "score": "0.5174269", "text": "public function deleteAction()\n {\n }", "title": "" }, { "docid": "033391e3c83b0579b7b84c27d8264861", "score": "0.5173404", "text": "private function _generateDelete($className) {\n\t\t$className = ucfirst(strtolower($className));\n\t\t$this->_data.=\"\\t/**\\n\";\n\t\t$this->_data.=\"\\t* Deletes a row in the $className table\\n\";\n\t\t$this->_data.=\"\\t*\\n\";\n\t\t$this->_data.=\"\\t* @param int \\$$this->primary_key\\n\";\n\t\t$this->_data.=\"\\t* @return bool\\n\";\n\t\t$this->_data.=\"\\t*\\n\";\n\t\t$this->_data.=\"\\t**/\\n\";\n\t\t$this->_data.=\"\\tpublic static function delete(\\$$this->primary_key)\\n\";\n\t\t$this->_data.=\"\\t{\\n\";\n\t\t$this->_data.=\"\\t\\t$\".$className.\"Entity = new \".$className.\"Entity();\\n\";\n\t\t$this->_data.=\"\\t\\treturn $\".$className.\"Entity->delete('$this->primary_key = '.\\$$this->primary_key);\\n\";\n\t\t$this->_data.=\"\\t}\\n\";\n\t}", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "63ec886596fa90e6a98d8e7b252aa742", "score": "0.51697534", "text": "public function delete()\n {\n }", "title": "" }, { "docid": "95686bcec64284f4d313258b53b41d35", "score": "0.5166487", "text": "public function editableClasses();", "title": "" }, { "docid": "60f3c2773a158b12d0ba15d9b8e9a354", "score": "0.516464", "text": "public function getTrashOne(){\n $product = Product::find(5);\n if($product->trashed()){// kiểm tra xem model(record) đã xóa hay chưa ....\n echo \"Đã xóa\";\n }else{\n $product->delete();\n }\n }", "title": "" }, { "docid": "ff11b572608ad08d8fd825e1ad970990", "score": "0.51641804", "text": "public function deleteState();", "title": "" }, { "docid": "d6e66a2178e3ab99893b7123fbdd3721", "score": "0.5163216", "text": "public function displayDeleteScreen()\n {\n if ($this->conf['delete']) {\n // If deleting is enabled\n $origArr = $this->getTypoScriptFrontendController()->sys_page->getRawRecord($this->theTable, $this->recUid);\n if ($this->getTypoScriptFrontendController()->loginUser || $this->aCAuth($origArr)) {\n // Must be logged in OR be authenticated by the aC code in order to delete\n // If the recUid selects a record.... (no check here)\n if (is_array($origArr)) {\n if ($this->aCAuth($origArr) || $this->DBmayFEUserEdit($this->theTable, $origArr, $this->getTypoScriptFrontendController()->fe_user->user, $this->conf['allowedGroups'], $this->conf['fe_userEditSelf'])) {\n // Display the form, if access granted.\n $this->markerArray['###HIDDENFIELDS###'] .= '<input type=\"hidden\" name=\"rU\" value=\"'.$this->recUid.'\" />';\n $content = $this->getPlainTemplate('###TEMPLATE_DELETE_PREVIEW###', $origArr);\n } else { // Else display error, that you could not edit that particular record...\n $content = $this->getPlainTemplate('###TEMPLATE_NO_PERMISSIONS###');\n }\n }\n } else {\n // Finally this is if there is no login user. This must tell that you must login.\n // Perhaps link to a page with create-user or login information.\n $content = $this->getPlainTemplate('###TEMPLATE_AUTH###');\n }\n } else {\n $content = 'Delete-option is not set in TypoScript';\n }\n\n return $content;\n }", "title": "" } ]
fabff05f75b6cc986208981cbb09153d
Removes the "paths" not present in the $data array. Given an array of paths ['name', 'post.title', 'post.description'] and a $data array ['name' => 'Ryan', 'post' => ['title' => 'Hi there!']] this removes any "paths" not present in the array.
[ { "docid": "42477a7c3c5fa5081b4361c09a96f706", "score": "0.7314045", "text": "public static function removePathsNotInData(array $paths, array $data): array\n {\n return array_values(array_filter($paths, static function ($path) use ($data) {\n $parts = explode('.', $path);\n while (\\count($parts) > 0) {\n $part = $parts[0];\n\n if (!\\is_array($data)) {\n return false;\n }\n\n if (!\\array_key_exists($part, $data)) {\n return false;\n }\n\n // reset $parts and go to the next level\n unset($parts[0]);\n $parts = array_values($parts);\n $data = $data[$part];\n }\n\n // key was found at all levels\n return true;\n }));\n }", "title": "" } ]
[ { "docid": "157ec7eb171fdd2384e864a1db57a51c", "score": "0.6079233", "text": "function jua_deep_unset(array &$a, $path):void {\n\tif (!is_array($path)) {\n\t\tju_param_sne($path, 1);\n\t\t$path = ju_explode_xpath($path);\n\t}\n\t/**\n\t * 2017-07-13\n\t * @uses array_shift не выдаёт предупреждений для пустого массива.\n\t * @var string|null $first\n\t */\n\tif ($first = array_shift($path)) {\n\t\tif (!$path) {\n\t\t\tunset($a[$first]);\n\t\t}\n\t\telse {\n\t\t\tjua_deep_unset($a[$first], $path);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "4e05116385c9d50136b5c2b2acf25c5c", "score": "0.5944467", "text": "private function delete_all_files_except(array $data = null)\n {\n try {\n $meta = textFileToArray($this->metaFile);\n if (!$data || !count($data)) {\n return array();\n }\n if (!$this->imageFolder) {\n throw new Exception(self::ERROR_NO_IMAGE_FOLDER, 1);\n return;\n }\n $images = getImagesInFolder($this->imageFolder);\n $result = array();\n foreach ($images as $image) {\n if (!array_key_exists_in_array_of_arrays($image, 'filename', $data)) {\n @unlink($this->imageFolder . DS . $image);\n } else {\n $result[] = array('src' => url(str_replace(ROOT_FOLDER, '', $this->imageFolder) . DS . $image), 'filename' => $image);\n }\n }\n return $result;\n } catch (Exception $e) {\n throw new Exception($e->getMessage(), $e->getCode());\n }\n }", "title": "" }, { "docid": "8110b10c867403fe43091bbac77dda79", "score": "0.58421296", "text": "private static function clearData($data)\n {\n foreach ($data as $d)\n {\n if (empty($d['img_file']))\n continue;\n $img_file = ImageHelper::getFullImgPath($d['img_file']);\n\n if (is_file($img_file))\n @unlink($img_file);\n }\n }", "title": "" }, { "docid": "176b3fe32a09e8e4e2551ceffcae15a3", "score": "0.5807579", "text": "private function deDupePaths(array $rawExcludePaths)\n {\n $filteredArray = $rawExcludePaths;\n $count = count($filteredArray);\n for ($i = 0; $count > $i; $i++) {\n if (!isset($filteredArray[$i])) {\n continue;\n }\n $item = $filteredArray[$i];\n $filteredArray = array_filter(\n $filteredArray,\n function ($value) use ($item) {\n return !(strlen($value) !== strlen($item) && strpos($value, $item) === 0);\n }\n );\n }\n $filteredArray = array_values($filteredArray);\n\n return $filteredArray;\n }", "title": "" }, { "docid": "08a4025845743177dcda8f2b9f8582f8", "score": "0.5682598", "text": "public static function unset(array $array, string $path) : array\n {\n if (is_null($path)) {\n return [];\n }\n\n $keys = explode('.', $path);\n $current =& $array;\n\n while (count($keys) > 1)\n {\n $path = array_shift($keys);\n if (!isset($current[$path]) || !is_array($current[$path]))\n {\n $current[$path] = [];\n }\n $current =& $current[$path];\n }\n unset($current[array_shift($keys)]);\n\n return $array;\n }", "title": "" }, { "docid": "55026a4c7f2c4e65b2f9771017bed205", "score": "0.5664493", "text": "private function _clean_paths(array $files)\n\t{\n\t\t$clean = array();\n\t\t\n\t\tforeach ($files as $path => $child)\n\t\t{\n\t\t\t// New path is the basename itself\n\t\t\t$new_path = basename($path);\n\t\t\t\n\t\t\tif (is_array($child))\n\t\t\t{\n\t\t\t\t// Add SUCCEED string to the key so single rows aren't overwritten\n\t\t\t\t$clean[$new_path.self::SUCCEED] = $this->_clean_paths($child);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Use the filename (without extension) as the key\n\t\t\t\t$new_path = pathinfo($path, PATHINFO_FILENAME);\n\t\t\t\t\n\t\t\t\t$clean[$new_path] = $child;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $clean;\n\t}", "title": "" }, { "docid": "279dcc4e7d44bc804e0861cd7e577004", "score": "0.5612843", "text": "public function cleanupData($data) {\n\t\tif (!$data && !is_array($data)) {\n\t\t\treturn array();\n\t\t}\n\t\t$clearData = array();\n\t\tforeach ($data as $key=>$value) {\n\t\t\tif (!in_array($key, $this->_skipFields) && !in_array($key, $this->_skipFieldsByModel) && !is_array($value) && !is_object($value)) {\n\t\t\t\t$clearData[$key] = $value;\n\t\t\t}\n\t\t}\n\t\treturn $clearData;\n\t}", "title": "" }, { "docid": "5a273732fb451b74123939d33b0b4a31", "score": "0.54718816", "text": "function forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array) $keys as $key)\n {\n $parts = explode('.', $key);\n\n while (count($parts) > 1)\n {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part]))\n {\n $array =& $array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "title": "" }, { "docid": "82b5d940d6cb36a494e6b4c64da79c58", "score": "0.54497284", "text": "protected function removeOptional($data)\n {\n foreach ($this->optional as $option) {\n if (empty($data[$option])) {\n unset($data[$option]);\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "7f4c4ba4f7ceb2a65cbb77f71ae3d5a4", "score": "0.54425305", "text": "function forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array)$keys as $key) {\n $parts = explode('.', $key);\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n $array =& $array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "title": "" }, { "docid": "2f6981af54e8ed4b8efc3a6046ce721c", "score": "0.54293925", "text": "private static function _cleanPath( $path, $asArray = false )\n\t\t{\n\t\t\t$pathArray = explode( \"/\", $path );\n\t\t\tforeach( $pathArray as $key => $pathElement ) {\n\t\t\t\tif( $pathElement == \"\" ) {\n\t\t\t\t\tunset( $pathArray[ $key ] );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( $asArray ) return $pathArray;\n\t\t\t\n\t\t\treturn implode( \"/\", $pathArray );\n\t\t}", "title": "" }, { "docid": "2d1480c350de22c375d428cd6ff93c1d", "score": "0.54063874", "text": "public function removeEmptyKeys($data)\n {\n if (!$data) return [];\n foreach ($data as $key => $value) {\n if (is_array($data[$key])) {\n $data[$key] = self::removeEmptyKeys($data[$key]);\n } else if ($value == null) {\n unset($data[$key]);\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "ea00bb6c23db1b8386e696578ca6b726", "score": "0.53772336", "text": "private function _sanitizePaths() {\n foreach (['controllersPath', 'theme'] as $path) {\n if (substr($this->settings[$path], strlen($this->settings[$path]) - 1) != DS) {\n $this->settings[$path] .= DS;\n }\n }\n }", "title": "" }, { "docid": "83d7cc8d72c1731d3053e4962fff6275", "score": "0.5374914", "text": "public static function deepStripSlash($data)\n\t{\n\t\treturn stripslashes_deep($data);\n\t}", "title": "" }, { "docid": "d14862cab9a5d4cdcf319560c884a00b", "score": "0.5364011", "text": "function array_forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array) $keys as $key)\n {\n $parts = explode('.', $key);\n\n while (count($parts) > 1)\n {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part]))\n {\n $array =& $array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "title": "" }, { "docid": "d76bdcfa117dce20db844bd54ef1dfa6", "score": "0.5341946", "text": "function array_forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array)$keys as $key) {\n $parts = explode('.', $key);\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n $array =& $array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "title": "" }, { "docid": "72e0dbc3e506a9e59682534ad83e28d8", "score": "0.5318402", "text": "public static function forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array) $keys as $key)\n {\n $parts = explode('.', $key);\n\n while (count($parts) > 1)\n {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part]))\n {\n $array =& $array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "title": "" }, { "docid": "62c2fabe78beef7ac35a349ce4b27f2a", "score": "0.5304586", "text": "public function cleanArray($arr)\n {\n foreach ($arr as $key => $value) {\n $info = pathinfo($value);\n if (in_array($info['extension'], ['pdf', 'xlsx', 'gitignore', 'shortpixel', 'svg'])) {\n unset($arr[$key]);\n }\n }\n\n return array_values($arr);\n }", "title": "" }, { "docid": "8cbe63ebdf195dbf73e63e43b33989bf", "score": "0.52928215", "text": "public function unset_data($data) {\n foreach ($data as $key => $value) {\n if (in_array($key, $this->unset_fields) == TRUE) {\n if (isset($data[$key])) {\n unset($data[$key]);\n }\n }\n }\n return $data;\n }", "title": "" }, { "docid": "cdf090963d8db80cf2838307ec236106", "score": "0.52852356", "text": "protected function filter(array $data)\n {\n foreach ($data as $key => $value) {\n if ($value === null) {\n unset($data[$key]);\n } elseif (is_array($data[$key])) {\n $data[$key] = $this->filter($data[$key]);\n }\n }\n return $data;\n }", "title": "" }, { "docid": "7786050cd27de0fc4ee3b8a9c8965528", "score": "0.52817893", "text": "public static function forget(&$array, $keys)\n {\n $original = &$array;\n\n foreach ((array) $keys as $key) {\n $parts = explode('.', $key);\n while (count($parts) > 1) {\n $part = array_shift($parts);\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n }\n }\n unset($array[array_shift($parts)]);\n // clean up after each pass\n $array = &$original;\n }\n }", "title": "" }, { "docid": "e68d5116951ff61b431743fc6eb8cc3e", "score": "0.52695763", "text": "public static function forget(&$array, $keys)\n {\n $original = &$array;\n $keys = (array)$keys;\n if (count($keys) === 0) {\n return;\n }\n foreach ($keys as $key) {\n // if the exact key exists in the top-level, remove it\n if (static::exists($array, $key)) {\n unset($array[$key]);\n continue;\n }\n $parts = explode('.', $key);\n // clean up before each pass\n $array = &$original;\n while (count($parts) > 1) {\n $part = array_shift($parts);\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n } else {\n continue 2;\n }\n }\n unset($array[array_shift($parts)]);\n }\n }", "title": "" }, { "docid": "22caaaba71c8456c2406cdf1ae7aff1b", "score": "0.52658457", "text": "protected function cleanData(array $data): array\n {\n $options = $this->getOptions();\n\n $disallowedDataKeys = array(\n $options->getIdColumnName(),\n $options->getLeftColumnName(),\n $options->getRightColumnName(),\n $options->getLevelColumnName(),\n $options->getParentIdColumnName(),\n );\n\n if (null !== $options->getScopeColumnName()) {\n $disallowedDataKeys[] = $options->getScopeColumnName();\n }\n\n return array_diff_key($data, array_flip($disallowedDataKeys));\n }", "title": "" }, { "docid": "3daeeb45ddc4f6247d144338c7eaf692", "score": "0.5247586", "text": "private function removeHiddenKeys($data)\n {\n // Show all private data\n if (DependencyContainer::get('global::showAllHiddenAttrs', false)) {\n return $data;\n }\n\n // Keep at least keys with one `_` prefixed\n $one = DependencyContainer::get('global::showBasicHiddenAttrs', false);\n\n if (is_array($data)) {\n foreach ($data as $k => &$v) {\n if (($one && substr($k, 0, 2) === '__') || (!$one && substr($k, 0, 1) === '_')) {\n unset($data[$k]);\n\n continue;\n }\n\n $v = $this->removeHiddenKeys($v);\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "136843486484ed632cfbbcc20b9546cb", "score": "0.52334374", "text": "public static function forget(&$array, $keys)\n {\n $original = &$array;\n\n $keys = (array) $keys;\n\n if (count($keys) === 0) {\n return;\n }\n\n foreach ($keys as $key) {\n // if the exact key exists in the top-level, remove it\n if (static::exists($array, $key)) {\n unset($array[$key]);\n\n continue;\n }\n\n $parts = explode('.', $key);\n\n // clean up before each pass\n $array = &$original;\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n } else {\n continue 2;\n }\n }\n\n unset($array[array_shift($parts)]);\n }\n }", "title": "" }, { "docid": "a575c7748593a2a1f01983ea3f0a5054", "score": "0.5226557", "text": "public static function forget(array &$array, array|string $keys) {\n $original = &$array;\n\n $keys = (array) $keys;\n\n if (count($keys) === 0) {\n return;\n }\n\n foreach ($keys as $key) {\n // if the exact key exists in the top-level, remove it\n if (array_key_exists($key, $array)) {\n unset($array[$key]);\n continue;\n }\n\n $parts = explode('.', $key);\n\n // clean up before each pass\n $array = &$original;\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n } else {\n continue 2;\n }\n }\n\n unset($array[array_shift($parts)]);\n }\n }", "title": "" }, { "docid": "797f2967fddc6a379a7cec39e72a5f85", "score": "0.5218642", "text": "protected static function array_forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array) $keys as $key)\n {\n $parts = explode('.', $key);\n\n while (count($parts) > 1)\n {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part]))\n {\n $array =& $array[$part];\n }\n }\n\n unset($array[array_shift($parts)]);\n\n // clean up after each pass\n $array =& $original;\n }\n }", "title": "" }, { "docid": "11ca6c3fbb3a6dbe95b394967b87e6fc", "score": "0.52164394", "text": "protected function cleadData($data)\n {\n $parameters = ['assessment', 'report', 'completed'];\n\n foreach ($parameters as $parameter){\n if (isset($data[$parameter])){\n unset($data[$parameter]);\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "87b571924805adb6a00be9e7489827a2", "score": "0.51950943", "text": "public static function forget(&$array, $keys)\n {\n $original =& $array;\n\n foreach ((array)$keys as $key) {\n $parts = explode('.', $key);\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[ $part ]) and is_array($array[ $part ])) {\n $array =& $array[ $part ];\n }\n\n unset($array[ array_shift($parts) ]);\n\n $array =& $original;\n }\n }\n }", "title": "" }, { "docid": "849e9f0b139a081c71baf5eec82ab5c1", "score": "0.5172484", "text": "public function sanitizeArray( $data ){\n\t\tif( is_array( $data ) ){\n\t\t\tforeach( $data as $k => $v ){\n\t\t\t\tif( is_array( $data[$k] ) ) $data[$k] = $this->sanitizeArray( $data[$k] );\n\t\t\t\tif( $v == '' ) unset( $data[$k] );\n\t\t\t}\n\t\t}\t\t\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "6d532c1c49ef81291131d69619882a9d", "score": "0.5157332", "text": "protected function unsetGetParameters(array $data = []): void\n {\n if (empty($data)) {\n $_GET = [];\n\n return;\n }\n\n foreach ($data as $key => $value) {\n unset($_GET[$key]);\n }\n }", "title": "" }, { "docid": "b5909b5adfc15c6a0cdefaf8ee64ec52", "score": "0.5144676", "text": "private function checkAndRemoveEmptyRecursive(array &$data, $parent = NULL)\n {\n foreach($data as $prop => &$values)\n {\n foreach($values as $idx => &$v)\n {\n if (!is_array($v))\n {\n if ('' === trim($v))\n {\n $warn_or_err = \"warn\";\n\n\t\t\t\t\t\t// adr and value (combined) of tel/email are not allowed to be empty\n if ($prop == 'adr' || ($prop == 'value' && $parent && ($parent == 'tel' || $parent == 'email')))\n {\n $warn_or_err = \"error\";\n }\n\n if ($parent) $this->result->add($warn_or_err,\"empty_subprop\",\"<code>%s</code> property of <code>%s</code> is empty\",[$prop,$parent]);\n else $this->result->add($warn_or_err,\"empty_prop\",\"<code>%s</code> property is empty\",[$prop]);\n\n unset($values[$idx]);\n }\n }\n else\n {\n $this->checkAndRemoveEmptyRecursive($v, $prop);\n if (!count($v))\n {\n unset($values[$idx]);\n }\n }\n }\n if (!count($values))\n {\n unset($data[$prop]);\n }\n }\n }", "title": "" }, { "docid": "9511ddf648fe371fa4f38c6f1f8f51f4", "score": "0.5137784", "text": "public function remove_imgs($data) {\n return $this->process($data, function(\\SimpleXMLElement $xml) {\n $xml = clone $xml;\n $imgs = $xml->xpath(\".//img\");\n foreach ($imgs as $img)\n unset($img[0]);\n return $xml;\n });\n }", "title": "" }, { "docid": "db1cb71d8b465c83e83412a4fafde504", "score": "0.5117512", "text": "public static function remove(&$array, $keys)\n {\n $original = &$array;\n\n $keys = (array) $keys;\n\n if (count($keys) === 0) {\n return;\n }\n\n foreach ($keys as $key) {\n // if the exact key exists in the top-level, remove it\n if (static::exists($array, $key)) {\n unset($array[$key]);\n\n continue;\n }\n\n $parts = explode('.', $key);\n\n // clean up before each pass\n $array = &$original;\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n } else {\n continue 2;\n }\n }\n\n unset($array[array_shift($parts)]);\n }\n }", "title": "" }, { "docid": "3c279287dbf87f1105b132ef0aa52676", "score": "0.51063883", "text": "protected function fixPhpFilesArray($data)\n {\n if (!is_array($data)) {\n return $data;\n }\n $keys = array_keys($data);\n sort($keys);\n if (self::$fileKeys != $keys || !isset($data['name']) || !is_array($data['name'])) {\n return $data;\n }\n $files = $data;\n foreach (self::$fileKeys as $k) {\n unset($files[$k]);\n }\n foreach (array_keys($data['name']) as $key) {\n $files[$key] = $this->fixPhpFilesArray(array('error' => $data['error'][$key], 'name' => $data['name'][$key], 'type' => $data['type'][$key], 'tmp_name' => $data['tmp_name'][$key], 'size' => $data['size'][$key]));\n }\n return $files;\n }", "title": "" }, { "docid": "9e07fcc1549b62dd241332561c9f00b0", "score": "0.5093196", "text": "public static function forget(&$array, $keys)\n {\n $original = &$array;\n\n $keys = (array) $keys;\n\n if (count($keys) === 0) {\n return;\n }\n\n foreach ($keys as $key) {\n // if the exact key exists in the top-level, remove it\n if (static::exists($array, $key)) {\n unset($array[$key]);\n\n continue;\n }\n\n $parts = explode('.', $key);\n\n // clean up before each pass\n $array = &$original;\n\n while (count($parts) > 1) {\n $part = array_shift($parts);\n\n if (isset($array[$part]) && static::accessible($array[$part])) {\n $array = &$array[$part];\n } else {\n continue 2;\n }\n }\n\n unset($array[array_shift($parts)]);\n }\n }", "title": "" }, { "docid": "12862dcd98d2422a1af1d071ecd0034f", "score": "0.50867546", "text": "private function removeUsers($data)\n {\n $newData = $data;\n \n foreach($newData as $key => $value)\n {\n if(strpos($key, 'user') !== false)\n {\n unset($newData[$key]);\n }\n }\n \n return $newData;\n }", "title": "" }, { "docid": "9052838a537fc3874b260aacbda414be", "score": "0.5077333", "text": "public static function delete($paths)\n {\n }", "title": "" }, { "docid": "f3a5969ca953b58edca4bbc4763baf9e", "score": "0.50675577", "text": "private function unsetUneccesaryData(array $data)\n {\n if (isset($data['deliveryDate'])) {\n unset($data['deliveryDate']);\n }\n if (isset($data['deliveryAddress'])) {\n unset($data['deliveryAddress']);\n }\n\n return $data;\n }", "title": "" }, { "docid": "9c77376735b8348d27b7d6315f958233", "score": "0.5061556", "text": "private function clean_file_list(array $arr) {\n $removeDirs = array(\".\",\"..\");\n return array_diff($arr, $removeDirs);\n }", "title": "" }, { "docid": "f94ab3956eb371f1f19b354b5d34593f", "score": "0.50252783", "text": "function sanitize_data($data){\n\t\t// Remove fields which potentially can damage the tree structure\n\t\tif(is_array($data)){\n\t\t\tunset($data[$this->left_col]);\n\t\t\tunset($data[$this->right_col]);\n\t\t}\n\t\telseif(is_object($data)){\n\t\t\tunset($data->{$this->left_col});\n\t\t\tunset($data->{$this->right_col});\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "1615e16561a9e6a02114ff8a1dce3969", "score": "0.5023816", "text": "public static function forget(array &$array, $keys)\n {\n $original = &$array;\n $keys = (array)$keys;\n if (count($keys) === 0) {\n return;\n }\n foreach ($keys as $key) {\n if (self::exists($array, $key)) {\n unset($array[$key]);\n continue;\n }\n $parts = explode('.', $key);\n $array = &$original;\n while (count($parts) > 1) {\n $part = array_shift($parts);\n if (isset($array[$part]) && is_array($array[$part])) {\n $array = &$array[$part];\n } else {\n continue 2;\n }\n }\n unset($array[array_shift($parts)]);\n }\n }", "title": "" }, { "docid": "55dc90ef4417ad17828cff557278d24d", "score": "0.5014221", "text": "function resetHTMPathsInArray($array, $oldpath, $newpath){\n\tforeach($array as &$item){\n\t\tif(is_array($item)){\n\t\t\tresetHTMPathsInArray($item,\t$oldpath, $newpath);\n\t\t}else{\n\t\t\t$item = str_replace($oldpath,$newpath,$item);\n\t\t}\n\t}\n\treturn $array;\n}", "title": "" }, { "docid": "2247484457df9e63ffc989663dabb505", "score": "0.5010798", "text": "private function cleanUpFrom(array $data, array $fields)\n {\n $result = $data;\n\n foreach ($result as $_key => $_value)\n {\n if (in_array($_key, $fields))\n {\n unset($result[$_key]);\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "156cc1736c2fdff03399a97c063a7dff", "score": "0.500808", "text": "public function removeEntryPath($path)\n {\n unset($this->paths['entries'][$path]);\n }", "title": "" }, { "docid": "42ef89700e2e1a4d33947c3acf4b030b", "score": "0.50027585", "text": "public function removeIncludePaths($paths)\n\t{\n\t\tif (!empty($paths))\n\t\t{\n\t\t\t$paths = (array) $paths;\n\n\t\t\t$this->includePaths = array_diff($this->includePaths, $paths);\n\t\t}\n\t}", "title": "" }, { "docid": "3afceb4c297c346e84057ec9c0694199", "score": "0.499259", "text": "private function filesToDelete()\n {\n $list = [];\n $metadata = $this->getMetadata();\n\n foreach ($metadata['hashMap'] as $relativePath => $md5)\n {\n if (!isset($this->hashMap[$relativePath]))\n {\n $list[] = $relativePath;\n }\n }\n\n return $list;\n }", "title": "" }, { "docid": "01c6e64a4c8721e4458e8d4023faa3a1", "score": "0.49841315", "text": "public function removeAll()\n {\n foreach ($this->_watched as $path => $watch) {\n if (inotify_rm_watch($this->_inotify, $watch['descriptor'])) {\n unset($this->_pathLookup[ $watch['descriptor'] ]);\n unset($this->_watched[$path]);\n }\n }\n }", "title": "" }, { "docid": "22f3d14a43f20509981a1b32331022f3", "score": "0.4976887", "text": "public function url_remove_dot_dot($data) {\n return $this->process($data, function(string $str) : string {\n return str_replace(\"../\", \"/\", $str);\n });\n }", "title": "" }, { "docid": "85c782932d9980bebf6a767259a6b438", "score": "0.49630702", "text": "private function _deleteFiles($paths = array()) {\n if (!is_array($paths)) {\n $paths = array($paths);\n }\n \n foreach ($paths as $path) {\n if (is_file($path)) {\n unlink($path);\n }\n }\n }", "title": "" }, { "docid": "8da2618810ae220a892c5a36a239e83d", "score": "0.49470106", "text": "private function _hidratarFotos($data)\n {\n $data['fotos'] = $this->getDoctrine()\n ->getRepository('SisproBundle:Proyecto')\n ->getFotografiasProyecto($data['proyecto']);\n return $data;\n }", "title": "" }, { "docid": "292378c1fda05f355d9ba101a9ee0bab", "score": "0.4943276", "text": "private function trimEach($data)\n {\n if (is_array($data)) {\n return array_map(static function ($item) { return trim($item, DIRECTORY_SEPARATOR); }, $data);\n }\n \n return trim($data);\n }", "title": "" }, { "docid": "f959d00a105f02a9cfbf5baf873604dc", "score": "0.49207968", "text": "function _shaken_del_p(&$ary) {\n\tforeach ($ary as $k=>$v) {\n\t\tif ($k==='_p') unset($ary[$k]);\n\t\telseif (is_array($ary[$k])) _shaken_del_p($ary[$k]);\n\t}\n}", "title": "" }, { "docid": "49ebd9a5b90573864679886aede4fb05", "score": "0.49119604", "text": "protected function removePriceFromData(array &$data)\n {\n unset($data['price']);\n unset($data['salePrice']);\n if (isset($data['variants']) && is_array($data['variants'])) {\n foreach ($data['variants'] as & $variant) {\n unset($variant['price']);\n unset($variant['salePrice']);\n }\n }\n }", "title": "" }, { "docid": "54012de6428fb0103995866f8c08a505", "score": "0.49023408", "text": "function _clean_paths()\n\t{\n\t\t$this->out_file_dir = preg_replace( \"#/$#\", \"\", $this->out_file_dir );\n\t}", "title": "" }, { "docid": "352bee13ad2ab49ede361b79dac8f91f", "score": "0.48980233", "text": "private function setFilePathCollection($path, array $data)\n {\n $key = \\array_flip($this->filePathMapping)[$path];\n\n $this->filePathCollection[$key] = $data;\n }", "title": "" }, { "docid": "b72bd8aafbea395a17ed3061e7b4a376", "score": "0.48932648", "text": "protected function remove_empty_data() {\n\n\t\tforeach ( (array) $this->request_data as $key => $value ) {\n\n\t\t\tif ( is_array( $value ) ) {\n\n\t\t\t\tif ( empty( $value ) ) {\n\n\t\t\t\t\tunset( $this->request_data[ $key ] );\n\n\t\t\t\t} else {\n\n\t\t\t\t\tforeach ( $value as $inner_key => $inner_value ) {\n\n\t\t\t\t\t\tif ( is_null( $inner_value ) || '' === $inner_value ) {\n\t\t\t\t\t\t\tunset( $this->request_data[ $key ][ $inner_key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tif ( is_null( $value ) || '' === $value ) {\n\t\t\t\t\tunset( $this->request_data[ $key ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e5f04ed1f0dee483bf61427e5546715c", "score": "0.4891774", "text": "public static function removeReferenceLoops($data)\n {\n self::$loopFilterProcessedObjects = []; // reset\n return self::loopFilterCycles($data);\n }", "title": "" }, { "docid": "4b0dffbbd03c4982f531957f84773391", "score": "0.48871887", "text": "protected function mapCleanURL($data)\n {\n /** @var \\XLite\\Model\\Repo\\CleanURL $cleanURLRepo */\n $cleanURLRepo = \\XLite\\Core\\Database::getRepo('XLite\\Model\\CleanURL');\n\n if (\n $this->getPostedData('autogenerateCleanURL')\n || (\n isset($data['cleanURL'])\n && empty($data['cleanURL'])\n )\n ) {\n $data['cleanURL'] = $cleanURLRepo->generateCleanURL(\n $this->getDefaultModelObject(),\n $data[$cleanURLRepo->getBaseFieldName($this->getDefaultModelObject())]\n );\n }\n\n if ($this->getPostedData('forceCleanURL')) {\n $conflictEntity = $cleanURLRepo->getConflict(\n $data['cleanURL'],\n $this->getDefaultModelObject(),\n $this->getModelId()\n );\n\n if ($conflictEntity && $data['cleanURL'] !== $conflictEntity->getCleanURL()) {\n /** @var \\Doctrine\\Common\\Collections\\Collection $cleanURLs */\n $cleanURLs = $conflictEntity->getCleanURLs();\n /** @var \\XLite\\Model\\CleanURL $cleanURL */\n foreach ($cleanURLs as $cleanURL) {\n if ($data['cleanURL'] === $cleanURL->getCleanURL()) {\n $cleanURLs->removeElement($cleanURL);\n \\XLite\\Core\\Database::getEM()->remove($cleanURL);\n $this->getModelObject()->setCleanURL($data['cleanURL'], true);\n unset($data['cleanURL']);\n\n break;\n }\n }\n }\n }\n\n return $data;\n }", "title": "" }, { "docid": "80ad1342493a6285ce80307f0d63f860", "score": "0.48817867", "text": "public function reset($path = array()) {\n\t\t$this->data = array();\n\t}", "title": "" }, { "docid": "da47703fde09de0d1feb553b1ebe7022", "score": "0.48796022", "text": "function _del_p(&$ary) {\r\n foreach ($ary as $k=>$v) {\r\n if ($k==='_p') unset($ary[$k]);\r\n elseif (is_array($ary[$k])) _del_p($ary[$k]);\r\n }\r\n}", "title": "" }, { "docid": "3eb5c76fda7b81dd9e8a167530fe3655", "score": "0.486391", "text": "public function getMatchPathData() {\n return [\n [\n // Single absolute paths.\n '/example/1',\n [\n '/example/1' => TRUE,\n '/example/2' => FALSE,\n '/test' => FALSE,\n ],\n ],\n [\n // Single paths with wildcards.\n '/example/*',\n [\n '/example/1' => TRUE,\n '/example/2' => TRUE,\n '/example/3/edit' => TRUE,\n '/example/' => TRUE,\n '/example' => FALSE,\n '/test' => FALSE,\n ],\n ],\n [\n // Single paths with multiple wildcards.\n '/node/*/revisions/*',\n [\n '/node/1/revisions/3' => TRUE,\n '/node/345/revisions/test' => TRUE,\n '/node/23/edit' => FALSE,\n '/test' => FALSE,\n ],\n ],\n [\n // Single paths with '<front>'.\n \"<front>\",\n [\n '/dummy' => TRUE,\n \"/dummy/\" => FALSE,\n \"/dummy/edit\" => FALSE,\n '/node' => FALSE,\n '' => FALSE,\n ],\n ],\n [\n // Paths with both '<front>' and wildcards (should not work).\n \"<front>/*\",\n [\n '/dummy' => FALSE,\n '/dummy/' => FALSE,\n '/dummy/edit' => FALSE,\n '/node/12' => FALSE,\n '/' => FALSE,\n ],\n ],\n [\n // Multiple paths with the \\n delimiter.\n \"/node/*\\n/node/*/edit\",\n [\n '/node/1' => TRUE,\n '/node/view' => TRUE,\n '/node/32/edit' => TRUE,\n '/node/delete/edit' => TRUE,\n '/node/50/delete' => TRUE,\n '/test/example' => FALSE,\n ],\n ],\n [\n // Multiple paths with the \\r delimiter.\n \"/user/*\\r/example/*\",\n [\n '/user/1' => TRUE,\n '/example/1' => TRUE,\n '/user/1/example/1' => TRUE,\n '/user/example' => TRUE,\n '/test/example' => FALSE,\n '/user' => FALSE,\n '/example' => FALSE,\n ],\n ],\n [\n // Multiple paths with the \\r\\n delimiter.\n \"/test\\r\\n<front>\",\n [\n '/test' => TRUE,\n '/dummy' => TRUE,\n '/example' => FALSE,\n ],\n ],\n [\n // Test existing regular expressions (should be escaped).\n '[^/]+?/[0-9]',\n [\n '/test/1' => FALSE,\n '[^/]+?/[0-9]' => TRUE,\n ],\n ],\n ];\n }", "title": "" }, { "docid": "ae610e435012866bb70e6f65b1ea675a", "score": "0.48546526", "text": "public static function deepGet($data, array $path) {\n if (count($path) === 0)\n return $data;\n\n $first = array_shift($path);\n if (array_key_exists($first, $data)) {\n return self::deepGet($data[$first], $path);\n }\n\n return null;\n }", "title": "" }, { "docid": "b3967d441eaffa40bafa2568e19d0857", "score": "0.484937", "text": "private static function __cleanData($data)\n\t{\n\t\tif(is_array($data))\n\t\t{\n\t\t\tarray_walk_recursive($data, function(&$v) { // convert objects to arrays\n\t\t\t\tif(is_object($v))\n\t\t\t\t{\n\t\t\t\t\t$v = (array)$v;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\telse if(is_object($data)) // object to array\n\t\t{\n\t\t\t$data = (array)$data;\n\t\t}\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "a81f6e278dddeda77fffd76744f40f8a", "score": "0.48427346", "text": "final public function array_exclude_unset($exclude_array = array(), $array_data = array()){\r\n\t\t//Perform quick checks\r\n\t\tif(\r\n\t\t\t!is_array($exclude_array) ||\r\n\t\t\t!is_array($array_data) ||\r\n\t\t\tempty($array_data)\r\n\t\t){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t//Begin iterate\r\n\t\tforeach($array_data as $key => $item){\r\n\t\t\tif(in_array($item, $exclude_array)){\r\n\t\t\t\tunset($array_data[$key]);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $array_data;\r\n\t}", "title": "" }, { "docid": "700cabbd866582f925609b778f87fcbe", "score": "0.48408785", "text": "private function sanitizeXmlArrayKeys(array $data): array\n {\n $sanitized = [];\n foreach ($data as $k => $v) {\n if (is_string($k)) {\n $r = preg_replace('/[^A-Za-z0-9_.\\-]/', '_', $k);\n } else {\n $r = $k;\n }\n if (is_array($v)) {\n $sanitized[$r] = $this->sanitizeXmlArrayKeys($v);\n } else {\n $sanitized[$r] = $v;\n }\n }\n return $sanitized;\n }", "title": "" }, { "docid": "d8cbe2ed8bc8714ae6d6b0caccdd7d9b", "score": "0.48357937", "text": "static private function preparePathArray($pathArray)\n {\n $preparedPathArray = [];\n foreach ($pathArray as $left => $right) {\n\n // Get either simple path from left or path with a sub path-array from right\n $path = (int)$left === $left ? $right : $left;\n\n // Prepare path array\n $preparedPathArray[] = [\n\n // Normalize path as Path object.\n 'pathObject' => $path instanceof Path ? $path : new Path($path),\n\n // Get sub path array if any\n 'pathArray' => (int)$left === $left ? NULL : $right,\n\n ];\n }\n return $preparedPathArray;\n }", "title": "" }, { "docid": "ce77034f956d40e0dcb9dd8bd4dd9abe", "score": "0.48307553", "text": "public function stripSlashes(&$data)\n {\n return is_array($data) ? array_map(array($this, 'stripSlashes'), $data) : stripslashes($data);\n }", "title": "" }, { "docid": "e48f79c5a6ba23a63d8b636e0795e758", "score": "0.48251405", "text": "protected function replacePathData($path, $data) {\n\n if (preg_match_all('/{(\\w+)}/', $path, $matches)) {\n\n $search = $matches[0];\n $paramKeys = $matches[1];\n $replace = [];\n\n foreach ($paramKeys as $key) {\n if (!isset($data[$key])) {\n throw new Exception('Không đủ tham số path data');\n }\n $replace[] = $data[$key];\n }\n\n return str_replace($search, $replace, $path);\n }\n return $path;\n }", "title": "" }, { "docid": "774f6db17f391ff015e9ab9f1e70ae00", "score": "0.48247927", "text": "public static function clearPaths(): void\n {\n self::clearBasePaths();\n }", "title": "" }, { "docid": "0cb33c11557aaef2da29f9b682381a81", "score": "0.4823744", "text": "function _del_p(&$ary) \n\t{\n\t\tforeach ($ary as $k=>$v) \n\t\t{\n\t\t\tif ($k==='_p') \n\t\t\t{\n\t\t\t\tunset($ary[$k]);\n\t\t\t}\n\t\t\telseif(is_array($ary[$k])) \n\t\t\t{\n\t\t\t\t$this->_del_p($ary[$k]);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7ee3805f1714e99e6db77282e580e4e3", "score": "0.4809773", "text": "public static function trimData(&$data)\n {\n if (is_array($data)) {\n foreach ($data as $i => $w)\n if (is_array($w)) {\n self::trimData($data[$i]);\n } else {\n $data[$i] = trim($w);\n }\n } else {\n $data = trim($data);\n }\n }", "title": "" }, { "docid": "6b3f5b96e2c028aea0d7575720013b6c", "score": "0.4809606", "text": "public function sanitize(array $data): array\n {\n foreach ($data as $key => $value) {\n if (\\is_string($value)) {\n // Sanitize only first level (prevents \"argv\" from being sanitized)\n $value = \\WebServCo\\Framework\\Helpers\\RequestHelper::sanitizeString($value);\n }\n $data[$key] = $value;\n }\n return $data;\n }", "title": "" }, { "docid": "e04e8ada709377861b2e28c2c706d1d5", "score": "0.48058543", "text": "function upload_attachment_local_files_to_remove( $files_to_remove, $post_id, $file_path ) {\n\t\t// Example stops the original path/to/file.jpg from being removed from server when copying to bucket.\n\t\tif ( 'path/to/file.jpg' === $file_path ) {\n\t\t\t$files_to_remove = array_diff( $files_to_remove, array( $file_path ) );\n\t\t}\n\n\t\treturn $files_to_remove;\n\t}", "title": "" }, { "docid": "1d667c70f0035baa9f85682dd0a62415", "score": "0.48054606", "text": "function fix_config_paths(Array $paths)\n{\n $new = array();\n foreach ($paths as $key => $value) {\n if (strlen($value) > 0 && $value[count($value) - 1] != DS)\n $new[$key] = BASE . $value . DS;\n else\n $new[$key] = BASE . $value;\n }\n // Hardcoded fix for base path.\n if (array_key_exists('base', $new))\n $new['base'] = BASE;\n return $new;\n}", "title": "" }, { "docid": "29aa7f2a79e9a37907430d0433a374aa", "score": "0.47931156", "text": "public function delete($paths)\n {\n // TODO: Implement delete() method.\n }", "title": "" }, { "docid": "5c958af91096ea3159b69472c6e411ae", "score": "0.47909823", "text": "private function pathFiltered($path)\n {\n if( !empty($path) ){\n //Explodindo nas barras e retirando os itens vazios ou nulos\n $filtering = array_filter( explode('/', $path) );\n //Reordenando/resetando as chaves do array\n return array_values($filtering); \n }\n }", "title": "" }, { "docid": "88566fe949f686df12ef62c24e172daa", "score": "0.4777486", "text": "function filter_path($path, $pathname = null) {\n\t\tif (!$pathname)\n\t\t\t$pathname = $this->docs;\n\t\t\n\t\treturn str_replace($pathname, '', $path);\n\t}", "title": "" }, { "docid": "d891d374dc8065c2dfa72e902137ead0", "score": "0.4776677", "text": "public static function removePhotoFromLibrary($data){\n if(gettype($data) == \"array\"){\n if(key_exists(\"photo\", $data) && key_exists(\"album\", $data)){\n global $database;\n\n $query = printf(\"DELETE FROM photos WHERE id=%d AND album=%d\", $data[\"photo\"], $data[\"album\"]);\n\n if(mysqli_query($database, $query)){\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "3e35f320f72f8d83764c345b896a73c7", "score": "0.47743222", "text": "public static function getModelsWithoutPath(): array\n {\n $files = self::getModels();\n $fileList = [];\n\n foreach ($files as $file) {\n $f = explode('\\\\', $file);\n\n array_push($fileList, end($f));\n }\n\n return (new Collection($fileList))->flatten()->toArray();\n }", "title": "" }, { "docid": "bce7a5b59ce418b13b30116f44e3c5a2", "score": "0.47670946", "text": "function sanitize_arr( &$data, $whatToKeep )\n {\n $data = array_intersect_key( $data, $whatToKeep ); \n \n foreach ($data as $key => $value)\n {\n $data[$key] = sanitize_one( $data[$key] , $whatToKeep[$key] );\n }\n }", "title": "" }, { "docid": "a6a9265116791edcb5df6adc3a5dfcad", "score": "0.47652465", "text": "abstract protected function preparePaths(array $paths, PdfObject\\PageObject $pageObject);", "title": "" }, { "docid": "86f56fb5fd21ee5063ca13cdf6ab172b", "score": "0.47648552", "text": "public function saveExcludedFilePaths( $paths = array() ) {\n\t\t$this->exclude_file_paths = $paths;\n\t}", "title": "" }, { "docid": "10301a0fe87e79af6393cec47b8eefed", "score": "0.47645608", "text": "public function removeLinks(Product $object, array $data)\n {\n foreach ($data as $field) {\n $method = 'get'.ucfirst($field);\n if (!$object->$method()->isEmpty()) {\n foreach ($object->$method() as $link) {\n $this->em->remove($link);\n }\n }\n }\n }", "title": "" }, { "docid": "194811623d4b3b8131c44cbfaf5758a0", "score": "0.47624353", "text": "public static function forget(&$array, $keys, $notation = '.')\n\t{\n\t\t$original = &$array;\n\n\t\t$keys = (array) $keys;\n\n\t\tif (count($keys) === 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tforeach ($keys as $key) {\n\t\t\t$parts = explode($notation, $key);\n\n\t\t\twhile (count($parts) > 1) {\n\t\t\t\t$part = array_shift($parts);\n\n\t\t\t\tif (isset($array[$part]) && is_array($array[$part])) {\n\t\t\t\t\t$array = &$array[$part];\n\t\t\t\t} else {\n\t\t\t\t\t$parts = [];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tunset($array[array_shift($parts)]);\n\n\t\t\t// clean up after each pass\n\t\t\t$array = &$original;\n\t\t}\n\t}", "title": "" }, { "docid": "e469d53daacd3af356580158fb0938fd", "score": "0.47585675", "text": "public function cleanupCustomPaths($paths, $useSudo = true)\n {\n $sudo = $useSudo ? 'sudo' : '';\n\n foreach ($paths as $path) {\n $this->console->run(\"$sudo rm -rf $this->deployPath/$path\");\n }\n\n return true;\n }", "title": "" }, { "docid": "9f6f66cefe6c5e007835526c1834f08f", "score": "0.47356284", "text": "public static function removeDoubleSlash($data)\n {\n return \\preg_replace('/([^:])(\\/{2,})/', '$1/', $data);\n }", "title": "" }, { "docid": "5890a2b9058d5a7adfea9ae5bead9a1d", "score": "0.47323027", "text": "function _del_p(&$ary) {\r\n\t\tforeach ($ary as $k=>$v) {\r\n\t\tif ($k==='_p') {\r\n\t\t\t unset($ary[$k]);\r\n\t\t\t}\r\n\t\t\telse if(is_array($ary[$k])) {\r\n\t\t\t $this->_del_p($ary[$k]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "43988bbfa0b122181e80c7130ade2f17", "score": "0.4719894", "text": "function clearEmpty($data){\n\t\tforeach($data as $key => $answer){\n\t if(!$answer['answer']){\n\t unset($data[$key]);\n\t }\n\t }\n\t return $data;\n\t}", "title": "" }, { "docid": "d153d01a68a346324bde7870e80d0a56", "score": "0.47112787", "text": "public function setExcludeFilePaths( $paths ) {\n\t\tif ( ! empty( $paths ) ) {\n\t\t\t$this->exclude_file_paths = explode( \"\\n\", $paths );\n\t\t}\n\t}", "title": "" }, { "docid": "b13c32fa623b71fd5844f478b6bef3df", "score": "0.47110853", "text": "protected function cleanup($dataType, $data)\n {\n // Delete Translations, if present\n if (is_bread_translatable($data)) {\n $data->deleteAttributeTranslations($data->getTranslatableAttributes());\n }\n\n // Delete Images\n $this->deleteBreadImages($data, $dataType->deleteRows->where('type', 'image'));\n\n // Delete Files\n foreach ($dataType->deleteRows->where('type', 'file') as $row) {\n $files = json_decode($data->{$row->field});\n if ($files) {\n foreach ($files as $file) {\n $this->deleteFileIfExists($file->download_link);\n }\n }\n }\n }", "title": "" }, { "docid": "26ad6cf4fa2416763ea0e6855895e23d", "score": "0.4705288", "text": "public function clean( $data ) {\n\t\t\t//check mysql connection (and connect)\n\t\t\tif( !$this->conn and !$this->connect() ):\n\t\t\t\t$this->debug->add( 'No MySQL Connection', 'mysql' );\n\t\t\t\treturn false;\n\t\t\tendif;\n\n\t\t\t//loop our data recursively\n\t\t\tif( !is_array( $data ) ):\n\t\t\t\treturn mysql_real_escape_string( trim( $data ) );\n\t\t\telse:\n\t\t\t\t$newd = array();\n\t\t\t\tforeach( $data as $k => $v ):\n\t\t\t\t\t$newd[$k] = $this->clean( $v );\n\t\t\t\tendforeach;\n\t\t\t\treturn $newd;\n\t\t\tendif;\n\t\t}", "title": "" }, { "docid": "3a25f49aab2903748dc00bb9ecc8050f", "score": "0.4696451", "text": "protected function removeFilesFromInput(array $input)\n {\n foreach ($input as $key => $value) {\n if (is_array($value)) {\n $input[$key] = $this->removeFilesFromInput($value);\n }\n\n if ($value instanceof SymfonyUploadedFile) {\n unset($input[$key]);\n }\n }\n\n return $input;\n }", "title": "" }, { "docid": "cc036ebd29fabc91b18091e909353ccc", "score": "0.46929494", "text": "function clean_up_files(){\n\n\tglobal $dir_path, $file_array, $folder_array;\n\t\n\twhile($file = array_pop($file_array)){\n\n\t\t\tunlink($file);\n\n\t}\n\t\n\twhile($folder = array_pop($folder_array)){\n\n\t\t\trmdir($folder);\n\t\n\t}\n\n}", "title": "" }, { "docid": "d7fd6ef10ee10b0fed564d280ff39719", "score": "0.46794719", "text": "function array_forget(&$array, $key)\n{\n\t$keys = explode('.', $key);\n\n\t// This loop functions very similarly to the loop in the \"set\" method.\n\t// We will iterate over the keys, setting the array value to the new\n\t// depth at each iteration. Once there is only one key left, we will\n\t// be at the proper depth in the array.\n\twhile (count($keys) > 1)\n\t{\n\t\t$key = array_shift($keys);\n\n\t\t// Since this method is supposed to remove a value from the array,\n\t\t// if a value higher up in the chain doesn't exist, there is no\n\t\t// need to keep digging into the array, since it is impossible\n\t\t// for the final value to even exist.\n\t\tif ( ! isset($array[$key]) or ! is_array($array[$key]))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$array =& $array[$key];\n\t}\n\n\tunset($array[array_shift($keys)]);\n}", "title": "" }, { "docid": "3f233c21d585f16252f1397aa92c8e69", "score": "0.4674466", "text": "function clean_path($dirty_path) {\n $nasties = array(1 => \"///\", 2 => \"//\", 3 => \"http:/\");\n $cleanies = array(1 => \"/\", 2 => \"/\", 3 => \"http://\");\n $clean_path = str_replace($nasties, $cleanies, $dirty_path);\n return $clean_path;\n}", "title": "" }, { "docid": "7dc2eec4fc8d6a4577ca4f373e49a66d", "score": "0.46554443", "text": "public static function remove($arr, $dotPath)\n {\n // Clean dotPath (forgiving) poor dot-notation\n $dotPath = explode('.', ltrim(rtrim($dotPath, '.'), '.'));\n\n // Key being destroyed\n $last = array_pop($dotPath);\n\n // Recursively search for an array key by dot-notation\n foreach ($dotPath as $dot) {\n\n // Reference to build key\n $arr = &$arr[$dot];\n }\n\n // Removes the key regardless of existence\n unset($arr[$last]);\n\n return !self::exists($arr, $dotPath);\n }", "title": "" }, { "docid": "5c435f6001a7a0455303fc12c766f25f", "score": "0.4654852", "text": "function clear($data)\n\t{\n\t\tif (is_array($data))\n\t\t{\n\t\t\t// multiple properties to clear\n\t\t\t$records = array();\n\t\t\tforeach ($data as $key)\n\t\t\t{\n\t\t\t\t$records[$key] = '';\n\n\t\t\t\t$this->update($records);\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\t// single property to clear\n\t\t\t$this->update($data, '');\n\t\t}\n\t}", "title": "" }, { "docid": "0bb9dd4b6dc1bed3f3c137f7ea8e7b8b", "score": "0.46528482", "text": "private function sanitizeTasksData($data){\n $arr = [];\n foreach ($data as $r){\n if(!isset($arr[$r->firm_id])){\n $arr[$r->firm_id] = [];\n $arr[$r->firm_id]['name'] = $r->firm_name;\n $arr[$r->firm_id]['cases'] = [];\n \n }\n if (!isset($arr[$r->firm_id]['cases'][$r->case_id]) && $r->case_id != NULL) {\n $arr[$r->firm_id]['cases'][$r->case_id] = [];\n $arr[$r->firm_id]['cases'][$r->case_id]['name'] = $r->case_name;\n $arr[$r->firm_id]['cases'][$r->case_id]['id_pn'] = $r->id_pn;\n $arr[$r->firm_id]['cases'][$r->case_id]['tasks'] = [];\n }\n if ($r->transition_id != NULL) {\n $arr[$r->firm_id]['cases'][$r->case_id]['tasks'][$r->transition_id] = [];\n $arr[$r->firm_id]['cases'][$r->case_id]['tasks'][$r->transition_id]['name'] = $r->transition_name ;\n $arr[$r->firm_id]['cases'][$r->case_id]['tasks'][$r->transition_id]['id_role'] = $r->id_role ;\n $arr[$r->firm_id]['cases'][$r->case_id]['tasks'][$r->transition_id]['role_name'] = $r->role_name ;\n $arr[$r->firm_id]['cases'][$r->case_id]['tasks'][$r->transition_id]['reference'] = $r->referenced_transition_id;\n $arr[$r->firm_id]['cases'][$r->case_id]['tasks'][$r->transition_id]['referencevalue'] = $r->value;\n }\n }\n return $arr;\n }", "title": "" }, { "docid": "83c22898dbbf8223fea587ac1b03b711", "score": "0.46445635", "text": "private function _cleanInputs($data) \n {\n $clean_input = Array();\n if (is_array($data)) \n {\n foreach ($data as $k => $v) \n {\n $clean_input[$k] = $this->_cleanInputs($v);\n }\n } \n else \n {\n $clean_input = trim(strip_tags($data));\n }\n return $clean_input;\n }", "title": "" } ]
6b599e5c2c57554cad31c968378c25f7
Returns an instance of a Select object.
[ { "docid": "166b277bbc35ebeb2434204cfb801c23", "score": "0.63099295", "text": "public function select($withFromPart = self::SELECT_WITHOUT_FROM_PART)\n\t{\n\t\t$select = new Select($this->_db);\n\t\t$select->setTable($this);\n\t\tif ($withFromPart == self::SELECT_WITH_FROM_PART) {\n\t\t\t$select->from($this->_name, Select::SQL_WILDCARD, $this->_schema);\n\t\t}\n\t\treturn $select;\n\t}", "title": "" } ]
[ { "docid": "07cf54a68d90ce61f5680245104a8cf6", "score": "0.76329803", "text": "public function getSelect(): Option\\Select\n {\n return $this->applyQueryOptions ? $this->transaction->getSelect() : new Option\\Select();\n }", "title": "" }, { "docid": "094b6e90618b155bbf7d9aa86c9c2a42", "score": "0.75182235", "text": "public function select()\n {\n require_once 'Zend/Db/Table/Select.php';\n $select = new Core_Db_Select($this);\n\n $select->from(\n $this->info(self::NAME),\n Zend_Db_Table_Select::SQL_WILDCARD,\n $this->info(self::SCHEMA)\n )->setIntegrityCheck(false);\n \n return $select;\n }", "title": "" }, { "docid": "76ff68ed9a3b79383b5f6f905d538146", "score": "0.72770864", "text": "public static function select() : ModelSelectQuery\n\t{\n\t\t$query = new ModelSelectQuery(new static());\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "5e12fb9b01d8f5ccddc90ce5a7bde0c2", "score": "0.724579", "text": "public function select()\n {\n return new Zend_Db_Select($this);\n }", "title": "" }, { "docid": "8026e24134ab93e5cf26bcd9d1aaa1c2", "score": "0.7233749", "text": "public function select($tableName){\n $selectobject = new Select($tableName);\n return $selectobject;\n }", "title": "" }, { "docid": "3a1cd0d165e6f7f45bca3b20a70aa945", "score": "0.71925896", "text": "public function select() {\n\t\treturn new SQL_Select(func_get_args());\n\t}", "title": "" }, { "docid": "6913ce00e2748a33019382193c4bd32c", "score": "0.70926416", "text": "public function _initSelect()\n {\n parent::_initSelect();\n\n return $this;\n }", "title": "" }, { "docid": "af05171392fd454d74b90351ba1f583c", "score": "0.6963195", "text": "protected function createSelect(Custom_Mapper_Options $options=null) {\n\t\t$columns = $this->getColumns($options); // get columns to fetch\n\t\t\n\t\t$select = $this->getDbTable()->select(); // get select object\n\t\t\n\t\t$select->from($this->getDbTable(), $columns); // TABLE and COLUMNS\n\t\t\n\t\tif($options) { $options->appendToSelect($select); } // append options to select\n\t\t\n\t\treturn $select; // return select\n\t}", "title": "" }, { "docid": "74b42bb692e2f9ce6cb5b560d52ff765", "score": "0.69273275", "text": "public function select($select = '*')\n {\n Argument::i()->test(1, 'string', 'array');\n\n return Select::i($select);\n }", "title": "" }, { "docid": "96e407305f913f1150a6351e4da35634", "score": "0.69075614", "text": "public static final function createSelect()\n\t{\n\t\treturn self::createElement('select');\n\t}", "title": "" }, { "docid": "54f3e498009994ef2ce054d72f75859f", "score": "0.6886088", "text": "abstract public function getSelect();", "title": "" }, { "docid": "dfbb22ad924e5fdb0223a2518215d5e4", "score": "0.6811645", "text": "public function select($select){\n\n\t\t$this->db->select($select);\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "4eb6709f416412336844dbffd18de7d0", "score": "0.67149574", "text": "public function getSelectQuery(): SelectQuery\n {\n return $this->select;\n }", "title": "" }, { "docid": "f9d5a44440d9498a771b54cce3d3e24e", "score": "0.66709", "text": "public static function select()\n {\n $obj = isset($this) ? $this : new static();\n return $obj->new_query([__FUNCTION__ => func_get_args()]);\n }", "title": "" }, { "docid": "5675c91694303442fee1a87a1b584a4a", "score": "0.66310704", "text": "public function select($select = '*', $escape = null)\n {\n \t$this->ci->db->select($select, $escape);\n \treturn $this;\n }", "title": "" }, { "docid": "0e2a49cee644bc34d49b30adb13b0e16", "score": "0.65955454", "text": "public function select($select = '*', $escape = NULL) {\n call_user_func_array([self::db(), __FUNCTION__], func_get_args());\n return $this;\n }", "title": "" }, { "docid": "085b00efa1a2676dd84d670e3fc79c0d", "score": "0.65719956", "text": "public function select($select = null)\n\t{\n\t\tif (!is_null($select))\n\t\t\t$this->select = $select;\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "eabdf7c1cbf092c3db528d527eeb3ccd", "score": "0.656987", "text": "public function select($select) {\n\n\t\tif (is_array($select)) {\n\t\t\t$select = implode(', ', $select);\n\t\t}\n\n\t\t$this->addStatement('select', \"SELECT {$select} \");\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "3c81dfc1f9e16bea6bdb4669956b3d89", "score": "0.65448856", "text": "public function __construct()\n\t{\n $this->select = new Select();\n\t}", "title": "" }, { "docid": "91210ae0ee28ef70096dd71733345587", "score": "0.65009326", "text": "public function select()\n\t{\n\t\tif (!empty(func_get_args())) {\n\t\t\t$this->req_type = \"SELECT\";\n\t\t\tif (!empty($this->first_args)) {\n\t\t\t\t$this->first_args = sprintf('%s, ', $this->first_args);\n\t\t\t}\n\t\t\t$this->first_args = sprintf('%s%s', $this->first_args, $this->setArgs(func_get_args()));\n\n\t\t\treturn $this;\n\t\t} else {\n\t\t\t$this->req_type = \"SELECT *\";\n\n\t\t\treturn $this;\n\t\t}\n\t}", "title": "" }, { "docid": "2546277db5521662727eec87824b6cf2", "score": "0.6491103", "text": "function select($select)\r\n {\r\n $this->_overRideSelect = $select;\r\n return $this;\r\n }", "title": "" }, { "docid": "62e4e3583663b721bc25cd7429558182", "score": "0.6483628", "text": "public function select($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', new Select($selects), false);\n }", "title": "" }, { "docid": "519f1ae8bd4318a324ff834c96ff4228", "score": "0.6483373", "text": "public static function select()\n {\n return static::connection()\n ->select()\n ->from(static::table())\n ->model(get_called_class());\n }", "title": "" }, { "docid": "fad48bed2d79ab885701c8d4e970e27c", "score": "0.64096075", "text": "public function setSelect(array $select)\n {\n return $this;\n }", "title": "" }, { "docid": "5653ad302cc001615ddc223a7a59175f", "score": "0.63830554", "text": "public function select(): SelectQuery;", "title": "" }, { "docid": "256fc569c59906a999c0a7127ddc4096", "score": "0.6375883", "text": "public function select()\n {\n // Create select statement based on the arguments defined so far\n\n if (! isset($this->query['column'])) {\n $this->query['query'] = \"SELECT *\";\n } else {\n if (is_array($this->query['column'])){\n $this->query['column'] = implode(',',$this->query['column']);\n }\n $this->query['query'] = \"SELECT \" . $this->query['column'];\n }\n\n if (! isset($this->query['where'])) {\n if (isset($this->query['argument']) && count($this->query['argument'])) {\n $this->where();\n }\n }\n\n if (isset($this->query['table'])) {\n $this->query['query'] .= \" FROM \" . $this->query['table'];\n }\n if (isset($this->query['join'])) {\n $this->query['query'] .= \" \" . $this->query['join'];\n }\n if (isset($this->query['where'])) {\n $this->query['query'] .= \" WHERE \" . $this->query['where'];\n }\n if (isset($this->query['group'])) {\n $this->query['query'] .= \" GROUP BY \" . $this->query['group'];\n }\n if (isset($this->query['having'])) {\n $this->query['query'] .= \" HAVING \" . $this->query['having'];\n }\n if (isset($this->query['order'])) {\n $this->query['query'] .= \" ORDER BY \" . $this->query['order'];\n }\n if (isset($this->query['limit'])) {\n $this->query['query'] .= \" LIMIT \" . $this->query['limit'];\n }\n if (isset($this->query['offset'])) {\n $this->query['query'] .= \" OFFSET \" . $this->query['offset'];\n }\n\n return $this;\n }", "title": "" }, { "docid": "75c34cb2587dcdecb1b3baf6ed75f943", "score": "0.6374042", "text": "protected function _toSelect($select) {\n if(empty($select)) {\n \t$select = $this->select();\n } elseif(!($select instanceof \\Zend_Db_Select)) {\n \tthrow new \\Exception('Invalid select object given');\n }\n\n return $select;\n }", "title": "" }, { "docid": "f6d8df890ceee8138eba356519630c4a", "score": "0.63710976", "text": "public static function Select(...$Fields): ISelect {\n return self::$Provider::Select(...$Fields);\n }", "title": "" }, { "docid": "72a95d252be048da0468a4cc6b9ea850", "score": "0.6343374", "text": "public function createSelect(stubDatabaseSelect $select);", "title": "" }, { "docid": "899a7ebdc8d1c828576aec338cb4e79f", "score": "0.6316959", "text": "public function select()\n {\n return new StandardDialect\\SelectSqlTemplate();\n }", "title": "" }, { "docid": "1d689c7d7bffa26c6fdf378a0327e71d", "score": "0.630048", "text": "public function select(...$args): SelectQuery\n {\n return container_resolve(SelectQuery::class, $args);\n }", "title": "" }, { "docid": "5d923eba1a231b1fea68680a602cbe3f", "score": "0.62989604", "text": "protected function getSelect()\n { \n }", "title": "" }, { "docid": "0da92cdd9c9071cfcb142eeb4dd10238", "score": "0.6282848", "text": "function select($select = '*', $escape = NULL)\n\t{\n\t\tif ($escape !== FALSE)\n\t\t{\n\t\t\t$select = $this->add_table_name($select);\n\t\t}\n\t\t$this->db->select($select, $escape);\n\t\t\n\t\t// For method chaining\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "55976cd9ae572f162328ed9e9df9d2f3", "score": "0.62716043", "text": "public static function make(string $name = null, string $label = null) : SelectField\n {\n return new self($name, $label);\n }", "title": "" }, { "docid": "55d08e54a2599a115aa3e68bbbe4f335", "score": "0.6219242", "text": "public function addSelect(array $options)\n {\n return new Elements\\Select($options);\n }", "title": "" }, { "docid": "8717e5eb73290b8047d31005c3652f08", "score": "0.6215222", "text": "protected function getSelect() {\n\n $select = $this->select();\n\n if ($this->_view != '') {\n if ($this->_columns != '') {\n $select->from(strtolower($this->_view), $this->_columns);\n } else {\n $select->from(strtolower($this->_view));\n }\n } else {\n if ($this->_columns != '') {\n $select->from($this->_name, $this->_columns);\n } else {\n $select->from(strtolower($this->_name));\n }\n }\n// 6/7/16 - foi tirado daqui para colocar ali em cima no \"if ($this->_columns != '')\" then \"$select->from($this->_name, $this->_columns);\"\n// if ($this->_columns != '') {\n// $select->columns($this->_columns);\n// }\n\n foreach ($this->_joins as $key) {\n $select->setIntegrityCheck(false);\n if ($key['type'] == 'inner') {\n $select->join($key['table'], $key['cond'], $key['col'], $key['schema']);\n } else if ($key['type'] == 'left') {\n $select->joinLeft($key['table'], $key['cond'], $key['col'], $key['schema']);\n } else if ($key['type'] == 'right') {\n $select->joinRight($key['table'], $key['cond'], $key['col'], $key['schema']);\n } else if ($key['type'] == 'full') {\n $select->joinFull($key['table'], $key['cond'], $key['col'], $key['schema']);\n } else if ($key['type'] == 'cross') {\n $select->joinCross($key['table'], $key['col'], $key['schema']);\n } else {\n $select->joinNatural($key['table'], $key['col'], $key['schema']);\n }\n }\n\n foreach ($this->_whereSelect as $group => $condicoes) {\n if ($group != '') {\n $glue = '';\n $txtCond = '';\n foreach ($condicoes as $condicao) {\n $txtCond .= strtoupper($glue) . \" (\" . str_replace('?', \"'\" . $condicao['valor'] . \"'\", $condicao['campo']) . \") \";\n $glue = $condicao['glue'];\n }\n $select->where($txtCond);\n } else {\n foreach ($condicoes as $condicao) {\n if ($condicao['glue'] == 'and') {\n $select->where($condicao['campo'], $condicao['valor']);\n } else {\n $select->orWhere($condicao['campo'], $condicao['valor']);\n }\n }\n }\n }\n// print'<pre>';\n// die(print_r($select->__toString()));\n\n foreach ($this->_havings as $key) {\n $this->_group = true;\n if ($key['glue'] == 'and') {\n $select->having($key['cond']);\n } else {\n $select->orHaving($key['cond']);\n }\n }\n\n if ($this->_group and ! empty($this->_groupByColumns)) {\n $columns = explode(';', $this->_groupByColumns);\n $nomeTable = strtolower(get_class($this));\n foreach ($columns as $nome) {\n $group[] = $nome;\n }\n $select->group($group);\n } else\n if ($this->_group) {\n $nomeTable = strtolower(get_class($this));\n foreach ($this->_columns as $nome) {\n $group[] = $nomeTable . '.' . $nome;\n }\n foreach ($this->_joins as $key) {\n $group[] = $key['table'] . '.' . $key['col'];\n }\n $select->group($group);\n }\n\n if ($this->_sortOrder != '') {\n $select->order($this->_sortOrder);\n }\n if ($this->_limit != '' && $this->_offset >= 0) {\n $select->limitPage($this->_offset, $this->_limit);\n }\n if ($this->_distinct != '') {\n $select->distinct();\n }\n\n return $select;\n }", "title": "" }, { "docid": "90944b5ff1097e1d7f98c2e4b75ce3a5", "score": "0.62042105", "text": "public function select($expressions = ['*'])\n {\n return Select::factory($this->db, $this, $expressions);\n }", "title": "" }, { "docid": "e5a1d2ad0ccfe091f6f00b08dd3a7ce4", "score": "0.6202784", "text": "final public function select($select = '*', $as = null) {\n /* Clean the select - make sure AS not written in */\n $arrSelect = preg_split('/\\s(\\s+)?(AS)?(\\s)?(\\s+)?/', $select);\n /* Part 1 is select, part 2 is as */\n if(array_key_exists('0', $arrSelect)) { $select = $arrSelect[0]; }\n if(array_key_exists('1', $arrSelect)) { $as = $arrSelect[1]; }\n\n /* Port the 'AS' statements */\n if(!is_null($as)) {\n if(is_null($this->_arrAs) || !in_array($as, $this->_arrAs)) {\n $this->_arrAs[$select] = $as;\n }\n }\n\n /* Check not already in the select array */\n if(is_null($this->_arrSelect) || !in_array($select, $this->_arrSelect)) {\n $this->_arrSelect[] = $select;\n }\n return $this;\n }", "title": "" }, { "docid": "40ce9e9b4dfb1b5bcd29288d96b173cf", "score": "0.61941934", "text": "public function selectQuery($table) {\n $this->setType(\"select\");\n $this->setTable($table);\n\n return $this;\n\t}", "title": "" }, { "docid": "0c2c107cd626996cbc27033b6f44c688", "score": "0.6180915", "text": "public function select(Service $service = null)\n {\n if ($service === null) {\n $service = $this->getService();\n }\n\n $select = new Select($service, $this->getConnection());\n $select->setWrapper(function ($data) {\n foreach ($data as $key => $value) {\n if (array_key_exists($key, $this->attributes) === false) {\n continue;\n }\n $data[$key] = ORM\\Type::factory($this->attributes[$key]['type'])->restore($value);\n }\n /** @var $entity \\Etu\\ORM\\Data */\n $entity = new $this->className();\n return $entity->__pack($data);\n });\n\n return $select;\n }", "title": "" }, { "docid": "25d583ee70e7379a9c443b381ef6e748", "score": "0.6155375", "text": "protected function getSelectField()\n {\n $expirationPeriodTime = $this->_scopeConfig->getValue(\n self::DEFAULT_EXPIRATION_PERIOD_TIME,\n ScopeInterface::SCOPE_WEBSITE\n );\n /** @var \\Magento\\Framework\\Data\\Form\\Element\\Select $field */\n $select = $this->elementFactory->create('select');\n $select->setForm(\n $this->getForm()\n )->setName(\n self::SELECT_NAME_EXPIRATION_PERIOD_TIME . '[]'\n )->setHtmlId(\n self::SELECT_ID_EXPIRATION_PERIOD\n )->setValues(\n self::$defaultExpirationPeriod\n )->setValue(\n isset($expirationPeriodTime) ? $expirationPeriodTime : null\n );\n\n return $select;\n }", "title": "" }, { "docid": "c36bbdc8db2bd60cdbc50a6d192d37e9", "score": "0.6148914", "text": "public static function find()\n {\n $self = self::I();\n $self->init();\n $self->child = self::lectionClass(get_called_class());\n $self->find = true;\n $self->BindSelect();\n $self->_sqlAR['select'] = count(func_get_args()) == 1 ? func_get_args()['0'] : '*';\n $self->disposeSelectSQL();\n return $self;\n }", "title": "" }, { "docid": "5391ab1267e433a79206469be9b109ee", "score": "0.6145846", "text": "public function select($select = null)\n {\n $this->type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', $selects, false);\n }", "title": "" }, { "docid": "fc47d60b90444913d0fb8afe7bc3f6b5", "score": "0.61414135", "text": "public function getSelectForm() {\n return $this->formBuilder->getForm('\\Drupal\\query_builder\\Form\\QueryBuilderForm');\n }", "title": "" }, { "docid": "6174dd744ab40ae31c821b5369258a5e", "score": "0.6140687", "text": "protected function select()\n {\n $query = $this->model->newQuery();\n\n if (property_exists($this, 'criteria')) {\n $query = $this->applyCriteria($query);\n }\n\n return $query;\n }", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.6116395", "text": "public function select();", "title": "" }, { "docid": "63fdcd80d58c3eb356f524f21aff5b85", "score": "0.6116395", "text": "public function select();", "title": "" }, { "docid": "ab2fc4e66defd93fc861bc772aea4f36", "score": "0.6102486", "text": "public function select()\n {\n\n return $this->_dependencies->db->select($this->_table,\n $this->_conditions,\n $this->_options,\n func_get_args(),\n $this->_cache);\n\n }", "title": "" }, { "docid": "8887d6569e5829ee76c555df1aff87d9", "score": "0.6092007", "text": "protected function authenticateCreateSelect()\n {\n /**\n * @var Zend\\Db\\Sql\\Select $dbSelect\n */\n $dbSelect = parent::authenticateCreateSelect();\n $dbSelect\n ->where([\n 'login_status' => 'ACTIVE'\n ]);\n return $dbSelect;\n }", "title": "" }, { "docid": "46a51c5df446b55933da49df013c2736", "score": "0.6089704", "text": "public static function select($fromTable = null, array $fields = null) {\n\t\t$select = new Db\\Select($fromTable);\n\n\t\tif ($fields !== null) {\n\t\t\t$select->fields($fields);\n\t\t}\n\n\t\treturn $select;\n\t}", "title": "" }, { "docid": "46802ca827be87e6cb7224ccbf5e4834", "score": "0.6089149", "text": "public function select(QueryBuilder\\Select $query)\n {\n return $this->doRequest($query);\n }", "title": "" }, { "docid": "23bd99220b3d2529d7268c12b121e03f", "score": "0.60721433", "text": "public function select( $options = '' ) {\n\t\t$options\t= !empty($options) ? $options : '*';\n\t\t$this->ssql = \"SELECT {$options}\";\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "20b7e75da5f805fa221ad752aa87af3e", "score": "0.6037072", "text": "private function setSelectFrom()\n {\n foreach ($this->selectColumns as $key => $value) {\n $this->qb->addSelect($key);\n }\n\n $this->qb->from($this->entity, $this->tableName);\n\n return $this;\n }", "title": "" }, { "docid": "c50d180ffd4701e80a745ce59f0cbb50", "score": "0.6022343", "text": "public function select($fields = \"*\")\n\t{\n\t\t$query = new $this->_queryClass($this);\n\t\t$query->select($fields, $this->dataSource());\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "9bcfde97c7b400d927e5b1438ea4e6e7", "score": "0.5995063", "text": "public function select($where = null)\n {\n if (!$this->isInitialized) {\n $this->initialize();\n }\n\n if ($where instanceof \\Zend\\Db\\Sql\\Select) {\n $select = $where;\n } else {\n $select = $this->sql->select();\n }\n\n if ($where instanceof \\Closure) {\n $where($select);\n } elseif ($where !== null && ! $where instanceof \\Zend\\Db\\Sql\\Select) {\n $select->where($where);\n }\n\n return $this->selectWith($select);\n }", "title": "" }, { "docid": "a81b6db845dbf53e0f9a26d735b8d01c", "score": "0.5989989", "text": "abstract public function getSelect(Template $template);", "title": "" }, { "docid": "59d2f7cd29587472bdaf953fded336f6", "score": "0.59517914", "text": "private function _prepareSelect()\n {\n $this->_preparePartSelect();\n $this->_preparePartFrom();\n $this->_preparePartWhere();\n $this->_preparePartOrderBy();\n $this->_preparePartLimit();\n\n return $this;\n }", "title": "" }, { "docid": "9602ec8ac2b48fb5e58e4019a7dbf38d", "score": "0.59455407", "text": "public function select($select = '*', $escape = NULL)\n\t{\n\t\tif (is_string($select))\n\t\t{\n\t\t\t$select = explode(',', $select);\n\t\t}\n\n\t\t// If the escape value was not set, we will base it on the global setting\n\t\tis_bool($escape) OR $escape = $this->_protect_identifiers;\n\n\t\tforeach ($select as $val)\n\t\t{\n\t\t\t$val = trim($val);\n\n\t\t\tif ($val !== '')\n\t\t\t{\n\t\t\t\t$this->qb_select[] = $val;\n\t\t\t\t$this->qb_no_escape[] = $escape;\n\n\t\t\t\tif ($this->qb_caching === TRUE)\n\t\t\t\t{\n\t\t\t\t\t$this->qb_cache_select[] = $val;\n\t\t\t\t\t$this->qb_cache_exists[] = 'select';\n\t\t\t\t\t$this->qb_cache_no_escape[] = $escape;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "43a272974a97cbda599395a1d1f8fbad", "score": "0.5910653", "text": "protected function authenticateCreateSelect()\n {\n // build credential expression\n if (empty($this->credentialTreatment) || (strpos($this->credentialTreatment, '?') === false)) {\n $this->credentialTreatment = '?';\n }\n\n $credentialExpression = new SqlExpr(\n '(CASE WHEN ? = ' . $this->credentialTreatment . ' THEN 1 ELSE 0 END) AS ?',\n [$this->credentialColumn, $this->credential, 'laminas_auth_credential_match'],\n [SqlExpr::TYPE_IDENTIFIER, SqlExpr::TYPE_VALUE, SqlExpr::TYPE_IDENTIFIER]\n );\n\n // get select\n $dbSelect = clone $this->getDbSelect();\n $dbSelect->from($this->tableName)\n ->columns(['*', $credentialExpression])\n ->where(new SqlOp($this->identityColumn, '=', $this->identity));\n\n return $dbSelect;\n }", "title": "" }, { "docid": "dfd2cdba47e0735575e965beeb3a61a8", "score": "0.59018844", "text": "private function select()\n {\n return self::$object;\n }", "title": "" }, { "docid": "087519714a749cc5c2819785a2b1acf5", "score": "0.58965534", "text": "public function columns($columns): ISelect\n {\n return $this;\n }", "title": "" }, { "docid": "9f0f5f69436ff374075c39cf9237b683", "score": "0.5868316", "text": "public function select()\n {\n return $this->getConnection()->select();\n }", "title": "" }, { "docid": "2ed06ae9e8b3eb3c6f611bc32b2693f2", "score": "0.58677936", "text": "public function dMQueryQueryFactoryNewSelect(DatabaseTester $I)\n {\n $I->wantToTest('DataMapper\\Query\\QueryFactory - newSelect()');\n\n $connection = $I->getDataMapperConnection();\n $factory = new QueryFactory();\n $select = $factory->newSelect($connection);\n $I->assertInstanceOf(Select::class, $select);\n }", "title": "" }, { "docid": "70a83f92efa9f15cab46520e39cf2d9a", "score": "0.5867655", "text": "public function select($select = '*', $escape = NULL)\r\n {\r\n if (is_string($select)) {\r\n $select = explode(',', $select);\r\n }\r\n\r\n // If the escape value was not set, we will base it on the global setting\r\n is_bool($escape) OR $escape = $this->_protect_identifiers;\r\n\r\n foreach ($select as $val) {\r\n $val = trim($val);\r\n\r\n if ($val !== '') {\r\n $this->qb_select[] = $val;\r\n $this->qb_no_escape[] = $escape;\r\n\r\n if ($this->qb_caching === TRUE) {\r\n $this->qb_cache_select[] = $val;\r\n $this->qb_cache_exists[] = 'select';\r\n $this->qb_cache_no_escape[] = $escape;\r\n }\r\n }\r\n }\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "930e26f4e01f0d972a7a528107749265", "score": "0.58608484", "text": "public function select()\n {\n }", "title": "" }, { "docid": "b2545c5473e338b704ad41fda6130681", "score": "0.58428144", "text": "public function select(string $select, string $from = null);", "title": "" }, { "docid": "2eaf6cc2c7bca4b829962f837acb560d", "score": "0.5836753", "text": "protected function getSylius_AttributeType_SelectService()\n {\n return $this->services['sylius.attribute_type.select'] = new \\Sylius\\Component\\Attribute\\AttributeType\\SelectAttributeType();\n }", "title": "" }, { "docid": "adc87a8b35357bb85a1fc443723f5e9f", "score": "0.5836132", "text": "public function getExpr() {\n return new SelectExpr($this);\n }", "title": "" }, { "docid": "b09df36d8e83d0d2106729e8d0001f68", "score": "0.5818433", "text": "public function select(string...$args): self\n {\n $this->remove();\n $this->sql['select'] = QueryRepository::select($args);\n \t return $this;\n }", "title": "" }, { "docid": "9a8552c8f823a2d90fb9f9b711981c13", "score": "0.5812843", "text": "public function getSelect()\n {\n $this->select();\n\n return $this->query['query'];\n }", "title": "" }, { "docid": "23d99da5706691e5e372a979702131e4", "score": "0.58033425", "text": "function select(StructuredQuery|array|string|null $columns = null): Select\n {\n return Select::create()->columns($columns);\n }", "title": "" }, { "docid": "8ca122677b8e1fba993cf5eef6480198", "score": "0.5797941", "text": "protected function Option() {\r\n return new option();\r\n }", "title": "" }, { "docid": "05640c1eff413386eb32b27c46c24951", "score": "0.57903385", "text": "abstract public function select();", "title": "" }, { "docid": "27418335400ef2f571d2e52b3f95f49c", "score": "0.57680845", "text": "protected function createSelectControl($id, $params) {\n\t\treturn $this->app->makeWith(Controls\\Select::class, compact('id', 'params'));\n\t}", "title": "" }, { "docid": "80689a41e8cdd0b0c0162125249831c0", "score": "0.57636863", "text": "public function select($params = '*')\n {\n $this->command = 'select ';\n $this->fill_columns($params);\n\n return $this;\n }", "title": "" }, { "docid": "d48919f06b37679220cb360cac93a63a", "score": "0.5735375", "text": "public function getCreateSelect()\n {\n return $this->authenticateCreateSelect();\n }", "title": "" }, { "docid": "77d5058787366ee0bc57cf2b0b938447", "score": "0.57288617", "text": "public static function select($table, array $columns = ['*'])\n {\n $query = new static();\n $query->type('select');\n $query->table($table);\n \n $query->columns = $columns;\n return $query;\n }", "title": "" }, { "docid": "02a05d5e3388c552306f1d13663467de", "score": "0.5722949", "text": "public function addSelect($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', new Select($selects), true);\n }", "title": "" }, { "docid": "d550ee54077129f5dce651864aa1f506", "score": "0.57151973", "text": "public function select_all() {\n \n// $sql = 'select * from ';\n// $sql .= '' . static::$table_name . '';\n $sql = $this->db->get_compiled_select(static::$table_name);\n $this->_response = $this->select_query(($sql), get_called_class());\n return $this;\n }", "title": "" }, { "docid": "d7fa0cce98a54656530549507ea991fc", "score": "0.5676349", "text": "public function set_select($pParamString) {\n $this->_select = $pParamString;\n return $this;\n }", "title": "" }, { "docid": "9d11b816bb17fd8ab2ff82e8b726e496", "score": "0.56744415", "text": "function get($codigo, $select='*', $options=array()){\n return parent::get(__CLASS__, $codigo, $select, $options);\n }", "title": "" }, { "docid": "da18c7196b7a49e1a72a94e6a84a7160", "score": "0.5668486", "text": "function get()\n\t\t{\n\t\t\t$this->select = $this->getSelect();\n\t\t\t$this->from = $this->getFrom();\n\t\t\treturn $this;\n\t\t}", "title": "" }, { "docid": "b8d3f11a63170209595b4c739294428b", "score": "0.5665387", "text": "public function select(...$args)\n {\n // Soft reset\n $this->reset(false);\n\n // Update type\n $this->data['type'] = 'SELECT';\n\n // Getter or Setter\n if (!count($args)) {\n\n // Default to * selection\n $this->data['params'] = '*';\n }\n\n // Check for arrays\n if (is_array($args[0])) {\n\n // Expand array\n $args = $args[0];\n }\n\n // Set column separator\n $c = ($args[0] == '*') ? '' : $this->data['column'];\n\n // Set the selection parameters\n $this->data['params'] = ' '.$c.implode($c.', '.$c, $args).$c;\n\n // Allow chaining\n return $this;\n }", "title": "" }, { "docid": "e1868a5d5495704eba52f2796a975608", "score": "0.5651311", "text": "public function select($field, $value = null) : static\n {\n $value = Is::boolean($value) ? (int) $value : $value;\n\n return parent::select($field, $this->convertEnumToScalar($value));\n }", "title": "" }, { "docid": "86c160c3e5164ff017aedcfabf5afa92", "score": "0.56476223", "text": "public function select()\n {\n return new CategoryCollection( $this->category->selectList() );\n }", "title": "" }, { "docid": "4499b6f4b3c59ce9f8e2533ac4a5c661", "score": "0.56448984", "text": "public function select() {\r\n\t\t$this->sql_query = \"SELECT \".$this->field.\" FROM \".$this->table_name.\" \".(implode(\" \",$this->sql));\r\n\t\treturn $this->querysql();\r\n\t}", "title": "" }, { "docid": "8025cf536032f385b4651ed5fc2befa2", "score": "0.56432885", "text": "public static function select($a, $cols = NULL)\n\t{\n\t\tself::$instance = new Finder();\n\t\tif ($cols) {\n\t\t\tself::$prefix = 'SELECT ' . $cols . ' FROM ' . $a;\n\t\t} else {\n\t\t\tself::$prefix = 'SELECT * FROM ' . $a;\n\t\t}\n\t\treturn self::$instance;\n\t}", "title": "" }, { "docid": "57802272227c11aa4f7aa6a5e0627782", "score": "0.56280595", "text": "public static function getSelectQueryBuilder($filter);", "title": "" }, { "docid": "cb8d4a906ecda1a00384c37bfde1528d", "score": "0.56273675", "text": "public function getSelectedOptions() {\n\t\treturn new ResultSet($this->options);\n\t}", "title": "" }, { "docid": "7d396e218960fe57c19d7c69d9e876bc", "score": "0.5626532", "text": "public function select(array $select = ['*'])\n {\n if (count($select) == 0) {\n return $this;\n }\n\n if (count($select) == 1 && $select[0] == '*') {\n $this->select = '*';\n } else {\n $this->select = '`' . implode('`, `', $select) . '`';\n }\n\n return $this;\n }", "title": "" }, { "docid": "990d3608b72b68610b9df5e93c044a54", "score": "0.5626297", "text": "public function addSelect($select)\n\t{\n\t\tif(!in_array($select, $this->_selects)){\n\t\t\t$this->_selects[] = $select->__toString();\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "643a32900ede989cc50bbdc98f69a989", "score": "0.5626058", "text": "public function select(array $select, array $values = []): self;", "title": "" }, { "docid": "24c7a6f858c954a14e069f0188460f70", "score": "0.5616834", "text": "protected function select()\n {\n $fieldsStr = $this->selectedFields();\n\t\t\n\t\t$this->buildWhere($this->whereArray);\n \n $sql = \"SELECT {$fieldsStr} \"; \n $sql .= \" FROM {$this->tableName} \";\t\n\t\t$sql .= \" WHERE {$this->whereString} \";\n\t\t\n\n\t\tif(!empty($this->orderBy))\n\t\t\t$sql .= \" ORDER BY {$this->orderBy[0]} {$this->orderBy[1]} \";\n\t\t\t\n\t\t//$sql .= \" LIMIT {$this->limit[0]} ,{$this->limit[1]} \";\n\n\t\treturn $this->sql = $sql;\n }", "title": "" }, { "docid": "43e64ad0ac728669c4e47526b7487fe0", "score": "0.5613673", "text": "public function getSelect()\n {\n $select = parent::getSelect();\n $user = current_user();\n if ($user)\n {\n if ($user->role == 'researcher')\n {\n $select->where('1 = 0');\n }\n elseif ($user->role == 'contributor')\n {\n $select->where('owner_id = ?', array($user->id));\n }\n }\n return $select;\n }", "title": "" }, { "docid": "704583d2a19f10a5eef053250ba43c8b", "score": "0.5612523", "text": "public function create_select($params)\n\t{\n\t\t$defaults = array(\n\t\t\t'options' => array(),\n\t\t\t'first_option' => '',\n\t\t\t'disabled_options' => array(),\n\t\t);\n\t\t\n\t\t$params = $this->normalize_params($params, $defaults);\n\t\t\n\t\t$attrs = array(\n\t\t\t'id' => $params['id'],\n\t\t\t'class' => $params['class'], \n\t\t\t'readonly' => $params['readonly'], \n\t\t\t'disabled' => $params['disabled'],\n\t\t\t'required' => (!empty($params['required']) ? TRUE : NULL),\n\t\t\t'data' => $params['data'],\n\t\t\t'style' => $params['style'],\n\t\t\t'tabindex' => $params['tabindex'],\n\t\t\t'attributes' => $params['attributes'],\n\t\t\t'placeholder' => (!empty($params['placeholder']) ? $params['placeholder'] : NULL),\n\t\t\t'autocomplete' => (!empty($params['autocomplete']) ? $params['autocomplete'] : NULL),\n\t\t);\n\t\t$name = $params['name'];\n\t\tif (!empty($params['multiple']))\n\t\t{\n\t\t\t$attrs['multiple'] = 'multiple';\n\t\t\t$name = $params['name'].'[]';\n\t\t}\n\t\t\n\t\tif (!empty($params['options']) AND !empty($params['equalize_key_value']) AND is_array($params['options']))\n\t\t{\n\t\t\t$options = array_values($params['options']);\n\t\t\t$options = array_combine($options, $options);\n\t\t\t$params['options'] = $options;\n\t\t}\n\t\treturn $this->form->select($name, $params['options'], $params['value'], $attrs, $params['first_option'], $params['disabled_options']);\n\t}", "title": "" }, { "docid": "aa342de1504ae0e6599d1819224fa9bb", "score": "0.5601831", "text": "private function createSelectForm()\n {\n $form = $this->createForm(new SelectTeamType($this->getUser()->getId()), null, array(\n 'action' => $this->generateUrl('village_create_team_select'),\n 'method' => 'POST',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Mettre à jour la sélection'));\n\n return $form;\n }", "title": "" }, { "docid": "460d7cd8ff023daf8ab1e40e825c1452", "score": "0.55998355", "text": "public function setSelectDatabase($select)\n {\n $this->select_database = $select;\n\n return $this;\n }", "title": "" }, { "docid": "ddb57cd407ea0ca608208fb4088c95bb", "score": "0.5578592", "text": "public function getSearchFormSelect()\n {\n $options = array_merge(\n [['value' => '', 'label' => __('Select Search Type')]],\n $this->getSearchFormOptions()\n );\n\n $select = $this->getLayout()->createBlock(\n \\Magento\\Framework\\View\\Element\\Html\\Select::class\n )->setName(\n 'search_by'\n )->setId(\n 'search-by'\n )->setOptions(\n $options\n );\n\n return $select->getHtml();\n }", "title": "" }, { "docid": "3c6ebfbc9c026016042fcbd0ff41b0ce", "score": "0.55741394", "text": "public function getPaginatorSelect()\n {\n $repoModel = new Application_Model_Db_Gitosis_Repositories();\n $select = $repoModel->select(Zend_Db_Table::SELECT_WITH_FROM_PART);\n $select->columns(\n array (\n new Zend_Db_Expr('gitosis_repository_id as id'),\n new Zend_Db_Expr('gitosis_repository_owner_id as owner_id'),\n new Zend_Db_Expr('gitosis_repository_name as name'),\n new Zend_Db_Expr('gitosis_repository_description as description'),\n )\n );\n\n return $select;\n }", "title": "" }, { "docid": "b1bbede5c34bc07a6a455cf601ff0a70", "score": "0.55720866", "text": "public function addSelect($field);", "title": "" } ]
c11ecbe58c9c1f8ccab573325dede2ba
Transforms a Model to a DTO.
[ { "docid": "3ce10d7a57c185d7eb3f3a6c2edb6df8", "score": "0.4917062", "text": "public function transform($model)\n {\n $order = new IndividualOrder;\n\n if ($model) {\n $order->setOrderUuid((string) $model->orderUuid());\n $order->setPersonName($model->personName());\n $order->setPersonEmail($model->personEmail());\n $order->setMessage($model->message());\n $order->setSize($model->size());\n $order->setShape($model->shape());\n $order->setMaterial($model->material());\n }\n\n return $order;\n }", "title": "" } ]
[ { "docid": "4421f0fba61523e5e18912d049dad2c2", "score": "0.7501224", "text": "protected function model_to_dto( $model ) {\n\t\treturn $model->to_dto();\n\t}", "title": "" }, { "docid": "dd8f0391fb9d2c62fff7a400b6495fab", "score": "0.7088028", "text": "public function toModel($dto);", "title": "" }, { "docid": "c229fbabad7b42c2d18324f1ae46279d", "score": "0.6363823", "text": "public function toDto($entity);", "title": "" }, { "docid": "0cb76be7b4b46ecafe732a3e921a6986", "score": "0.6043735", "text": "public function toDto($dto = null, int $flags = NONE): Dto\n {\n $flags = is_int($dto) ? $dto : $flags;\n $flags |= $this instanceof Model ? CAST_PRIMITIVES : NONE;\n $dto = $this->getDtoToTurnInto($dto);\n\n return $this->getDtoFactory()->make($dto, $this, $flags);\n }", "title": "" }, { "docid": "021d1549bb849085c9c65bd199891fbb", "score": "0.59060436", "text": "public function transform(Servico $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "4fef418f335980fd20fa412d1c193646", "score": "0.5877607", "text": "public function transform(Diary $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "cc3f417fe732b96efa044fc52066d663", "score": "0.58772284", "text": "public function transform(User $model)\n {\n return collect([\n 'id' => (int) $model->id,\n 'uid' => $model->uid,\n\n /* place your other model properties here */\n 'source' => $model->source,\n 'parent_id' => $model->parent_id,\n 'account' => $model->account,\n 'delay' => $model->delay,\n 'status' => $model->status,\n\n /* Timezone datetime */\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ])->map(function ($item, $key) {\n return (isset($item) ? $item : '');\n })->all();\n }", "title": "" }, { "docid": "5abb1e692e5df89b07066296584e1196", "score": "0.5768521", "text": "public function toEntity($dto);", "title": "" }, { "docid": "34c601b0db93b7b429b2dcecaadd379c", "score": "0.5736158", "text": "public function transformEntityToDto()\n {\n //create ShoppingCartDto\n $cartDto = new ShoppingCartDto();\n $cartDto->setId($this->getId());\n\n\n $items = $this->getShoppingCartItems();\n /**\n * @var $item ShoppingCartItem\n */\n foreach ($items as $item) {\n $itemDto = new ShoppingCartItemDto();\n $itemDto->setId($item->getId());\n $itemDto->setCount($item->getCount());\n $productDto = new ProductDto();\n $productDto->setId($item->getProduct()->getId());\n $productDto->setPrice($item->getProduct()->getPrice());\n $productDto->setName($item->getProduct()->getName());\n $itemDto->setProduct($productDto);\n $cartDto->addShoppingCartItem(\n $itemDto\n );\n\n }\n\n return $cartDto;\n }", "title": "" }, { "docid": "998a2869eccd7dcf57d2457735e69fa4", "score": "0.5669993", "text": "public static function toObject(Model $model)\n {\n if (null === static::MODEL) {\n throw new LogicException('Model class is not defined.');\n }\n\n $object = new stdClass;\n\n foreach (static::$map as $local => $remote) {\n if (is_int($local)) {\n $local = $remote;\n }\n\n switch ($local) {\n case 'created':\n case 'updated':\n case 'due':\n case 'followUp':\n case 'deploymentTime':\n $object->$remote = null;\n $value = $model->{'get'.ucfirst($local)}();\n\n if (null !== $value) {\n $object->$remote = $value->format('Y-m-dTH:i:s');\n }\n\n break;\n\n default:\n $object->$remote = $model->{'get'.ucfirst($local)}();\n }\n }\n\n return $object;\n }", "title": "" }, { "docid": "007c98ebcb472a3fcc20a81262fcb92e", "score": "0.5642904", "text": "public static function fromDTO($object);", "title": "" }, { "docid": "0c4a3b10a9acf50d764aff937c5df7cc", "score": "0.56423575", "text": "protected function getDtoFactory(): DtoFactoryContract\n {\n return $this instanceof Model ? new ModelDtoFactory() : new DtoFactory();\n }", "title": "" }, { "docid": "e5036c3f26ceb857f0d828ad42133ffd", "score": "0.5605394", "text": "public function transform(UserDepartment $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "90316530480fe14f5f0519ad1e9b5128", "score": "0.5601354", "text": "public function toDTO($filterByKey = null)\n {\n // CryptoHelper will store a KeyPair when necessary\n // to allow encryption (needs private + public keys)\n $helper = new CryptoHelper();\n $plain = $this->getPlain();\n $payload = null;\n\n if (empty($plain) || !isset($this->type))\n $this->type = Message::TYPE_SIMPLE;\n\n if ($this->type == Message::TYPE_HEX) {\n if (! ctype_xdigit($plain)) {\n throw new RuntimeException(\"Invalid hexadecimal representation. Use Message::TYPE_SIMPLE instead of Message::TYPE_HEX.\");\n }\n\n // hexadecimal message content\n $payload = \"fe\" . $plain;\n $this->type = Message::TYPE_SIMPLE;\n }\n elseif ($this->type == Message::TYPE_SIMPLE) {\n // simple message, unencrypted\n if (empty($plain)) {\n $plain = $this->toPlain();\n $payload = $this->payload;\n }\n else {\n $payload = $this->toHex();\n }\n }\n elseif ($this->type == Message::TYPE_ENCRYPTED) {\n // encrypted message\n $payload = $helper->encrypt($plain);\n\n //XXX HW Trezor include \"publicKey\" to DTO.\n }\n\n return [\n \"payload\" => $payload,\n \"type\" => $this->type,\n ];\n }", "title": "" }, { "docid": "21cf7c544f4b504ab6808f953ed137e4", "score": "0.55672574", "text": "public function transformData($model)\n {\n return $model->toArray();\n }", "title": "" }, { "docid": "21cf7c544f4b504ab6808f953ed137e4", "score": "0.55672574", "text": "public function transformData($model)\n {\n return $model->toArray();\n }", "title": "" }, { "docid": "2c39541b7e84ad23a9e065c35757e8e5", "score": "0.5531688", "text": "public function transform($modelData);", "title": "" }, { "docid": "7452c3a8a09e285e965d862ce06020b3", "score": "0.5473564", "text": "public function listModelToDto($modelList, &$dtoList = null)\n {\n $dtoList = ($dtoList != null) ? $dtoList : array();\n\n foreach ($modelList as $model) {\n $dtoList[] = $this->modelToDto($model);\n }\n\n return $dtoList;\n }", "title": "" }, { "docid": "5493c78973507f1275aacbf37ec8481c", "score": "0.5467803", "text": "protected function prepare_dto( $entity ) {\n\t\tif ( is_a( $entity, 'WP_Job_Manager_REST_Model_Collection' ) ) {\n\t\t\t$results = array();\n\t\t\tforeach ( $entity->get_items() as $model ) {\n\t\t\t\t$results[] = $this->model_to_dto( $model );\n\t\t\t}\n\t\t\treturn $results;\n\t\t}\n\n\t\tif ( is_a( $entity, 'WP_Job_Manager_REST_Interfaces_Model' ) ) {\n\t\t\treturn $this->model_to_dto( $entity );\n\t\t}\n\n\t\treturn $entity;\n\t}", "title": "" }, { "docid": "84f758a0bdb7bda81e00856ed79e6b75", "score": "0.5432547", "text": "private function transformObject()\n {\n if (!($this->model instanceof \\__PHP_Incomplete_Class)) {\n return $this->convertInstance($this->model, config('event-emitter.transformers', []));\n }\n\n $obj = $this->transformObjectByDirectMatch();\n\n if (!empty($obj) && !($obj instanceof \\__PHP_Incomplete_Class)) {\n return $obj;\n }\n\n return $this->transformerObjectByClosure();\n }", "title": "" }, { "docid": "99de612e9ff1f94b9d89fc9c13c605ac", "score": "0.54307127", "text": "public function transform(Member $model)\n {\n return $model->toArray();\n }", "title": "" }, { "docid": "745801b38b4c17a684aaa6639488317e", "score": "0.5428568", "text": "public function getDTO(AbstractEntity $obj) : DTO\n\t{\n\t\t$raw = $this->object_to_array($obj); // convert Object to array for Mapper\n\t\t$mapper = $this->factory->getMapper($raw);\n\t\t$data_array = $mapper->return_object_to_dto_array(); \n\t\t$sub_object_map = $mapper->getSubObjectMap(); //sub_object_map['outletdn'] = 'outlets'\n\t\t//we need to remove the subobject from the root entity\n\t\tforeach ($sub_object_map as $sub_name) {\n\t\t\tif (isset($data_array[$sub_name])) { //check config files\n\t\t\t\t//create a new variable with the name of the value from sub_object_map (ex. 'outlets')\t\n\t\t\t\t${$sub_name} = $data_array[$sub_name];\n\t\t\t\tunset($data_array[$sub_name]);\n\t\t\t\t\n\t\t\t\t$sub_mapper_name=\"cmu\\\\ddd\\\\directory\\\\infrastructure\\\\domain\\\\model\\\\factory\\\\mapper\\\\\" .$sub_name. \"Mapper\";\n\t\t\t\tforeach(${$sub_name} as $sub_array_value) {\n\n\t\t\t\t\t//add it back to the Root Object $data_array\n\t\t\t\t\t$data_array[$sub_name][] = $this->returnSubArray($sub_mapper_name, $sub_array_value); \n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn DTOAssembler::returnDTO($data_array, $this->returnEntity());\n\t}", "title": "" }, { "docid": "b3906e1a56de872212cc71c29b528a4a", "score": "0.54098266", "text": "public function transformer()\n {\n return new MockModelTransformer($this);\n }", "title": "" }, { "docid": "30019338074dea4bbfbd3cbddcd6c724", "score": "0.5369123", "text": "public function daoToDto($dao){\n\t\t//Escoger idioma\n\t\t$name = '';\n\t\tif($_SESSION['lang'] == 'ES')\n\t\t\t$name = $dao->getNameES();\n\t\telse if($_SESSION['lang'] == 'EN')\n\t\t\t$name = $dao->getNameEN();\n\t\t\n\t\t$dto = new GenreDTO($dao->getId(),\n\t\t\t\t\t\t\t$name);\n\t\treturn $dto;\n\t}", "title": "" }, { "docid": "f1b8e4ba16955521566e314f3e9fb9ab", "score": "0.5361248", "text": "public function transformData($model, $modelToArray)\n {\n return array_merge($modelToArray, [\n /* place the model properties you need to transform here */\n 'is_listing' => $model->is_listing,\n 'is_authentication' => $model->is_authentication,\n 'is_shown' => $model->is_shown,\n ]);\n }", "title": "" }, { "docid": "9bccbb020d049b3481823d4d4f4ac220", "score": "0.5355835", "text": "function avaliacaoAvaliadorDTO() {\n\n}", "title": "" }, { "docid": "a5dc34d1fa900603ae84db7b821c561d", "score": "0.5347318", "text": "public function entityToDto($entity)\n {\n $dto = new UserDTO();\n $dto->setId($entity->getId());\n $dto->setUsername($entity->getUsername());\n $dto->setLastName($entity->getLastName());\n $dto->setFirstName($entity->getFirstName());\n $dto->setEmail($entity->getEmail());\n $dto->setBiography($entity->getBiography());\n\n return $dto;\n }", "title": "" }, { "docid": "e7fdd8d3e3863f11e27af9692ba19af7", "score": "0.53459036", "text": "private function toModel($dto) {\n $content = new Childrobot();\n $content->setName($dto['name']['S']);\n $content->setAge($dto['age']['S']);\n $content->setDessinA($dto['dessinA']['S']);\n return $content;\n }", "title": "" }, { "docid": "aededa8c83bafa85ca2fc8d27b1607f4", "score": "0.53134066", "text": "public function transform(UsersCondominium $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "541c58dff5210c0ff05e9e66903a9550", "score": "0.53117085", "text": "public static function fromModel(...$parameters):self{\n return self::make(...$parameters);\n }", "title": "" }, { "docid": "b1d5412d9d82f47c62c9d01f880b8c7c", "score": "0.52896535", "text": "public function convert(self $into): Model\n {\n $into->setDn($this->getDn());\n $into->setConnection($this->getConnectionName());\n\n $this->exists\n ? $into->setRawAttributes($this->getAttributes())\n : $into->fill($this->getAttributes());\n\n return $into;\n }", "title": "" }, { "docid": "99a8f33e09036d16c8e2413ec4700666", "score": "0.5276725", "text": "public function reverseTransform($dto)\n {\n return new IndividualOrderModel(\n $dto->getOrderUuid() ? OrderUuid::existing($dto->getOrderUuid()) : OrderUuid::generated(),\n (string) $dto->getPersonName(),\n (string) $dto->getPersonEmail(),\n (string) $dto->getMessage(),\n (string) $dto->getSize(),\n (string) $dto->getShape(),\n (string) $dto->getMaterial()\n );\n }", "title": "" }, { "docid": "87276cd19945d68446b806c9b3b63700", "score": "0.5264313", "text": "public function transform(Account $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "10f70b5920efff28e614b9635370293e", "score": "0.5258025", "text": "public function transform(BaseModel $model)\n\t{\n\t\treturn $model->getAttributes();\n\t}", "title": "" }, { "docid": "6f48341ed57f9dc84735a3e04cb1e557", "score": "0.5221844", "text": "protected function format(Model $model) {\n return $model;\n }", "title": "" }, { "docid": "547dae6e82cb6047ff0b8024c1c90007", "score": "0.52203166", "text": "public function transform(Departamento $model)\n {\n return [\n 'id' => (int) $model->id,\n 'descricao' => $model->descricao,\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "110198237fe55e90cfa24c7362740596", "score": "0.52176106", "text": "private function hydrate(Model $model, $hits)\n {\n $primaryKey = $model->primaryKey ?: \"id\";\n\n $data = [];\n\n foreach ($hits as $item) {\n $model = $model->newInstance();\n\n $modelData = $this->handleCasts(\n $item['_source'],\n $model->getCasts()\n );\n\n $model->setRawAttributes($modelData);\n\n $model->$primaryKey = $item['_id'];\n $model->_setScore($item['_type']);\n $model->_setType($item['_score']);\n\n $data[] = $model;\n }\n\n return collect($data);\n }", "title": "" }, { "docid": "8651f116d63eded23e85770bc47d325a", "score": "0.5204821", "text": "public function transform(Vehicle $model)\n {\n return [\n 'id' => (int) $model->id,\n 'chassi' => (string) $model->chassi,\n 'renavam' => (string) $model->renavam,\n 'marca' => (string) $model->marca,\n 'modelo' => (string) $model->modelo,\n 'placa' => (string) $model->placa,\n 'cor' => (string) $model->cor,\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "75babccc8e2bf1396d4ce7500362f4ae", "score": "0.5203135", "text": "public function transform(PlayerDTO $player);", "title": "" }, { "docid": "f318564647406856ef0a2ec893319dce", "score": "0.5166443", "text": "public function transform(ServiceProvider $model)\n {\n $response = [\n 'id' => $model->id,\n 'category' => $model->category,\n 'type' => $model->type,\n 'status' => $model->status,\n 'title' => $model->title,\n 'first_name' => $model->first_name,\n 'last_name' => $model->last_name,\n 'company_name' => $model->company_name,\n 'mobile_phone' => $model->mobile_phone,\n 'name' => $model->company_name, // @TODO delete\n 'email' => $model->email,\n 'phone' => $model->phone,\n 'service_provider_format' => $model->service_provider_format,\n ];\n\n $relationCountAttributes = [\n 'buildings_count',\n 'requests_count',\n 'solved_requests_count',\n 'pending_requests_count',\n ];\n\n $attributes = $model->getAttributes();\n foreach ($relationCountAttributes as $attribute) {\n if (key_exists($attribute, $attributes)) {\n $response[$attribute] = $attributes[$attribute];\n }\n }\n\n $withCount = $model->getStatusRelationCounts();\n $response = array_merge($response, $withCount);\n\n if ($model->relationExists('user')) {\n $response['user'] = (new UserTransformer)->transform($model->user);\n }\n if ($model->relationExists('settings')) {\n $response['settings'] = $model->settings;\n }\n\n if ($model->relationExists('address')) {\n $response['address'] = (new AddressTransformer)->transform($model->address);\n }\n\n if ($model->relationExists('quarters')) {\n $response['quarters'] = (new QuarterTransformer)->transformCollection($model->quarters);\n $response['internal_quarter_ids'] = collect($response['quarters'])->pluck('internal_quarter_id')->unique()->all();\n }\n if ($model->relationExists('buildings')) {\n $response['buildings'] = (new BuildingTransformer)->transformCollection($model->buildings);\n }\n\n return $response;\n }", "title": "" }, { "docid": "42701ace31e4c0da63e6ba63b6a86ab6", "score": "0.5166311", "text": "function mapEntityToModel($model, $entity)\r\n\t{\r\n\t\tforeach($entity as $property => $value)\r\n\t\t{\r\n\t\t\tif(is_object($entity->$property) || is_array($entity->$property))\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\t$model->$property = $value;\r\n\t\t}\r\n\t\t\r\n\t\treturn $model;\r\n\t}", "title": "" }, { "docid": "25f6059801f4d4bf151f7fca6c96c69f", "score": "0.51504743", "text": "public function transform(Model $model)\n {\n // Mocked out on the model so that we now that transform was called\n return $model->doSomething();\n }", "title": "" }, { "docid": "21dd60f5938ee8b930e0341f7c11c69c", "score": "0.51436204", "text": "public function syncModel($model, $dto);", "title": "" }, { "docid": "f4fbe2474a2e3f253e6ff2c477e35341", "score": "0.5142381", "text": "public function transform(ContactPerson $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "45cd558bc59b7c4756487c87ef4c06f8", "score": "0.5113955", "text": "private function mapDependencies($model)\n {\n $response = $this->soapWrapper->call('Contract.getById', [[\n 'id' => $model->contract_id\n ]])->contract;\n\n if (!$response)\n abort(500);\n\n $model->contract = new Contract((array)$response);\n\n $model->drivers = array_map(function ($driver) {\n $driverObj = new Driver($driver);\n $driverObj->licence = new DrivingLicence((array)$driverObj->licence);\n return $driverObj;\n }, $model->drivers);\n\n return $model;\n }", "title": "" }, { "docid": "42a23378faf72f78953707a397a793a9", "score": "0.51136565", "text": "protected function reflection($model)\n {\n return new EloquentReflection($model);\n }", "title": "" }, { "docid": "33db4f00ca92c9b7f352bb72a1ff7f6f", "score": "0.5108007", "text": "public function transform(Model $model) {\n return [\n 'last_converted' => $model->updated_at->toDateTimeString()\n ];\n\n }", "title": "" }, { "docid": "ab14a4c7d056ac4bc30898d40cd72667", "score": "0.5096533", "text": "function toEntity($model)\r\n\t{\r\n\t\tif(empty($model))\r\n\t\t\treturn null;\r\n\r\n\t\t$className = get_class($model->__instance);\r\n\t\t$entityName = str_replace(\"Model\", \"Entity\", $className);\r\n\t\t$entity = new $entityName();\r\n\t\t$modelData = $model->get_data();\r\n\t\tforeach($modelData as $property => $value)\r\n\t\t\t$entity->$property = $value;\r\n\r\n\t\tif(isset($model->__instance->relations))\r\n\t\t{\r\n\t\t\tforeach($model->__instance->relations as $relationName => $relation)\r\n\t\t\t{\r\n\t\t\t\tif(isset($model->$relationName))\r\n\t\t\t\t{\r\n\t\t\t\t\tif(is_array($model->$relationName))\r\n\t\t\t\t\t\t$entity->$relationName = toEntities($model->$relationName);\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$entity->$relationName = toEntity($model->$relationName);\r\n\t\t\t\t}\r\n\t\t\t\telse if(property_exists($model, $relationName)) // property exists but is null\r\n\t\t\t\t{\r\n\t\t\t\t\tif($relation->plural)\r\n\t\t\t\t\t\t$entity->$relationName = array();\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$entity->$relationName = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\r\n\t\treturn $entity;\r\n\t}", "title": "" }, { "docid": "302fa8ea3509ec3ad1ddfb43c00a400c", "score": "0.5084319", "text": "protected function transformCollectionModel()\n {\n return $this->item->map(function ($model) {\n if ($this->child) {\n return $model->{$this->key}->transformer(true)->with($this->child)->transform();\n }\n\n return $model->{$this->key}->transform();\n });\n }", "title": "" }, { "docid": "663982db98bfe40590ab6ea82c788817", "score": "0.50803727", "text": "public function transform(TransportDoc $model)\n {\n return [\n 'id' => (int)$model->id,\n 'name' => $model->name,\n 'description' => $model->description,\n 'created_at' => formatToDate($model->created_at),\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "6c90997d4a2eb1466066681a97c948b0", "score": "0.5067367", "text": "public function toDto(Request $request): DtoInterface\n {\n $searchString = $request->get('searchString');\n\n if ($searchString) {\n $this->setSearchString($searchString);\n }\n\n return $this;\n }", "title": "" }, { "docid": "b33ce0bc88b25a56a59ce82d37cb85dc", "score": "0.50616807", "text": "public function findModel($dto);", "title": "" }, { "docid": "568023c5017a49632119383e5cca2254", "score": "0.50456876", "text": "public static function toDto($item)\n {\n return [\n 'id' => $item->id,\n 'name' => $item->name,\n 'description' => $item->description,\n 'address' => $item->address,\n 'preview_image' => $item->preview_image ?? 'https://www.gravatar.com/avatar/' . md5(strtolower($item->name)) . '.jpg?s=200&d=mm',\n 'phone' => $item->phone,\n 'home_phone' => $item->home_phone,\n 'customer_name' => $item->customer->user->first_name . ' ' . $item->customer->user->last_name,\n 'customer_id' => $item->customer->id,\n 'selectedProvince' => [\n 'selectedProvince' => $item->province_code,\n 'selectedDistrict' => $item->district_code,\n 'selectedWard' => $item->ward_code\n ]\n ];\n }", "title": "" }, { "docid": "53b56f5ed6df68c167eb00dbca944cef", "score": "0.5023348", "text": "public function getDto()\n {\n $factory = new PostDataFactory();\n $dto = $factory->createDto($this);\n\n return [\n 'title' => $dto->getTitle(),\n 'body' => $dto->getBody(),\n 'description' => $dto->getDescription(),\n 'time_to_read' => $dto->getTimeToRead(),\n 'photo_source' => $dto->getPhotoSource(),\n 'published' => $dto->getPublished(),\n 'category_id' => $dto->getCategoryId(),\n 'publish_time' => $dto->getPublishTime(),\n ];\n }", "title": "" }, { "docid": "31e99a2f03caeae91f660e5c2898eb59", "score": "0.502263", "text": "public function transform(\\App\\Models\\User $model)\n {\n return [\n 'id' => (int) $model->id,\n 'first_name' => (string) $model->first_name,\n 'last_name' => (string) $model->last_name,\n 'full_name' => (string) $model->getFullName(),\n 'email' => (string) $model->email,\n 'user_type' => (string) $model->user_type,\n 'entity' => (string) $model->entity,\n 'device_type' => (string) $model->device_type,\n 'last_login_date' => (string) $model->last_login_date,\n 'region_id' => (int) $model->region_id,\n 'region_name' => (string) $model->region->name,\n 'country_id' => (int) $model->country_id,\n 'country_name' => (string) $model->country->name,\n 'area_id' => (int) $model->area_id,\n 'area_name' => (string) $model->area->name,\n 'permissions' => $model->getPermissions(),\n ];\n }", "title": "" }, { "docid": "c974835f6f41281f659f293fa448b03b", "score": "0.50173354", "text": "public function transform(UserDetail $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "05c661db5e27a348af5468b5e6e2731e", "score": "0.5008892", "text": "public function transform(Status $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "715ef5304edbbe0589d30c14af549959", "score": "0.5003009", "text": "public function dto()\n {\n return view('tools.dto', ['user' => '12222']);\n }", "title": "" }, { "docid": "1587c21ca477a3a7a9260a4afcec6d01", "score": "0.50006413", "text": "private function _dataToModel()\n {\n $LetterModel = new LetterModel();\n $LetterModel->recipients = Json::encode($this->recipients);\n $LetterModel->subject = $this->subject;\n $LetterModel->body = $this->body;\n $LetterModel->attachments = Json::encode($this->attachments);\n\n return $LetterModel;\n }", "title": "" }, { "docid": "66e61795c56807edbcb2fcd4c60c9231", "score": "0.49809122", "text": "public function transform(Vacancy $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "a384c1b3ce66ec80c5dd42894a31c90d", "score": "0.49721274", "text": "static function toEntity(DTOInterface $dto, EntityManagerInterface $em)\n {\n }", "title": "" }, { "docid": "fb26b24beabe2a596bd294197931c61d", "score": "0.49518004", "text": "public function transform(Employee $model)\n {\n return [\n 'id' => $model->id,\n 'org_id' => $model->org_id,\n 'user_id' => $model->user_id,\n 'first_name' => $model->first_name,\n 'last_name' => $model->last_name,\n 'full_name' => $model->first_name.' '.$model->last_name,\n 'gender' => $model->gender,\n 'date_of_birth' => $model->date_of_birth,\n 'age' => $model->date_of_birth ? $this->getAge($model->date_of_birth) : null,\n 'role' => $model->role,\n 'email' => $model->email,\n 'phone' => $model->phone,\n 'address_line_1' => $model->address_line_1,\n 'address_line_2' => $model->address_line_2,\n 'city_town' => $model->city_town,\n 'state_region' => $model->state_region,\n 'postal_zip' => $model->postal_zip,\n 'country' => $model->country,\n 'start_date' => $model->start_date,\n 'termination_date' => $model->status == 'terminated' ? $model->termination_date : null,\n 'status' => $model->status,\n 'bank_id' => $model->bank_id,\n 'bank_account_name' => $model->bank_account_name,\n 'bank_account_no' => $model->bank_account_no,\n 'is_archived' => ($model->deleted_at) ? true : false,\n 'created_at' => $model->created_at->getTimestamp() * 1000,\n 'updated_at' => $model->updated_at->getTimestamp() * 1000,\n ];\n }", "title": "" }, { "docid": "e0165e7e1673a892575d705e90706199", "score": "0.49508485", "text": "public function model(): ApiResourceModel\n {\n $class = $this->getModelClass();\n return new $class();\n }", "title": "" }, { "docid": "2044270115e11c9452490eeda60d0eed", "score": "0.495075", "text": "public function convertModel($value, $def)\r\n {\r\n if (!isset($def['model'])) {\r\n throw new ConvertException(\"Model class not set\");\r\n }\r\n\r\n if (is_object($value) || $value instanceof Model) {\r\n return $value;\r\n } else {\r\n $mapper = $this->_stub->getMapper($def['model']);\r\n if (is_array($value) && isset($value['id'])) {\r\n return $mapper->getModel(intval($value['id']));\r\n } else if (is_scalar($value)) {\r\n return $mapper->getModel(intval($value));\r\n } else {\r\n throw new ConvertException();\r\n }\r\n }\r\n }", "title": "" }, { "docid": "8cf9dd9890aebae9695ba9c246b5bc37", "score": "0.4949076", "text": "public function reconstructModel()\n {\n $model = new $this->draftable_type;\n foreach ($this->columns as $column) {\n $attribute = $column->column;\n $model->$attribute = $column->value;\n }\n\n return $model;\n }", "title": "" }, { "docid": "9cff17306fe495d8b22fc06721454f8e", "score": "0.49458772", "text": "public function makeModel(MoInterface $mo, $token)\n {\n $model = new MoModel();\n $model->setFromArray($mo->getArray());\n $model->setAuthToken($token);\n $model->setCreatedAt(new DateTime());\n $model->save();\n return $model;\n }", "title": "" }, { "docid": "2264750ea42f0709587b6ba2b492a25c", "score": "0.4940169", "text": "public function getDadosModel ()\n {\n return $this->model->getDados();\n }", "title": "" }, { "docid": "659e7e6f21ce8412603c572018bdfd8a", "score": "0.49379224", "text": "public function transform(Bulletin $model)\n {\n return collect([\n 'id' => $model->id,\n 'subject' => $model->subject,\n 'content' => $model->content,\n 'type' => $model->notify_type,\n 'type_name' => $model->notify_type,\n 'released_at' => $model->released_at,\n 'expired_at' => $model->expired_at,\n 'status' => $model->status,\n\n /* place your other model properties here */\n \n /* Timezone datetime */\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ])->map(function ($item, $key) {\n if ($key == 'type_name') {\n return Lang::dict('auth', 'guards.' . $item, $item);\n } elseif ($key == 'subject') {\n return Lang::dict('notice', 'subject.' . $item, $item);\n } elseif ($key == 'content') {\n $dicts = Lang::dict('notice', $key, []);\n Matrix::indexReplace($item, $dicts);\n return Matrix::null2empty($item);\n } else {\n return (isset($item) ? $item : '');\n }\n })->all();\n }", "title": "" }, { "docid": "8c1167040a6e0be61069541647090326", "score": "0.49375582", "text": "public function transform(UserActivity $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "442c9835265c9f75061580fa9b97060d", "score": "0.4924238", "text": "public function transform(Facility $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "e03d68311828e774e251c9929c3b4487", "score": "0.49208894", "text": "public static function toModel(stdClass $object)\n {\n if (null === static::MODEL) {\n throw new LogicException('Model class is not defined.');\n }\n\n $class = static::MODEL;\n $model = new $class;\n\n foreach (static::$map as $local => $remote) {\n if (is_int($local)) {\n $local = $remote;\n }\n\n if (property_exists($object, $remote)) {\n switch ($local) {\n case 'created':\n case 'updated':\n case 'due':\n case 'followUp':\n case 'deploymentTime':\n if (null !== $object->$remote) {\n $model->{'set' . ucfirst($local)}(new DateTime($object->$remote));\n }\n\n break;\n\n case 'variables':\n foreach ($object->$remote as $name => $variable) {\n if (Variable::TYPE_JSON === $variable->type) {\n $variable->value = json_decode($variable->value);\n }\n\n $model->addVariable(new Variable($name, $variable->value, $variable->type, $variable->valueInfo));\n }\n\n break;\n\n default:\n $model->{'set'.ucfirst($local)}($object->$remote);\n }\n }\n }\n\n return $model;\n }", "title": "" }, { "docid": "4a951d05b6801d53ee5ba4722727ce99", "score": "0.4919557", "text": "abstract function toJson($model);", "title": "" }, { "docid": "16b506497478491197b87fdd4de7539a", "score": "0.49168757", "text": "public function toDataObject($model)\n {\n $category = $this->categoryFactory->create();\n $this->dataObjectHelper->populateWithArray(\n $category,\n $model->getData(),\n CategoryInterface::class\n );\n\n return $category;\n }", "title": "" }, { "docid": "39e47014d7420289c99d11761654d5ff", "score": "0.49127194", "text": "public function transform(ServiceType $model)\n {\n return [\n 'id' => (int)$model->id,\n\n /* place your other model properties here */\n 'name' => $model->name,\n 'description' => $model->description,\n 'tips' => $model->tips\n ];\n }", "title": "" }, { "docid": "1c4fabbbdb16c68888980357a7d32d8b", "score": "0.49102625", "text": "public function transform(AppVersion $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "e9533a6b9990f7c147b87a6fc53ccb8c", "score": "0.49090725", "text": "public static function getModel($model) {\n \n //Recuperando o tipo de modelo\n $class = \"\\\\App\\\\Models\\\\\".ucfirst($model);\n \n //Recuperando a conexao\n $conn = Connection::getDb();\n \n //retornando a conexao para o modelo desejado e execução do controller\n return new $class($conn);\n }", "title": "" }, { "docid": "e0b1820823c9861af3b4834ca7a94bcc", "score": "0.48981977", "text": "public function transform(Media $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "f29568c1ff91da5c2929df29cc793c60", "score": "0.48852736", "text": "public function toDTO($filterByKey = null)\n {\n if (! in_array($this->modificationType, [self::TYPE_ADD, self::TYPE_REMOVE]))\n $this->modificationType = self::TYPE_ADD;\n\n return [\n \"modificationType\" => (int) $this->modificationType,\n \"cosignatoryAccount\" => $this->cosignatoryAccount()->publicKey,\n ];\n }", "title": "" }, { "docid": "5dce4519904cbc54273c094157acfd7c", "score": "0.48718998", "text": "public function reverseTransform($dto)\n {\n $model = new TranslatableContentModel();\n $model->updateContent($dto->content);\n\n return $model;\n }", "title": "" }, { "docid": "3c4de2e2973ece4e5ab11fe26d9c4cb1", "score": "0.4869493", "text": "public function transform($model): array;", "title": "" }, { "docid": "01c0794962780282902916ded11c846b", "score": "0.48694217", "text": "public function transform(User $model)\n {\n return [\n 'id' => $model->id,\n 'username' => $model->name,\n 'email' => $model->email,\n 'deleted_at' => $model->deleted_at->toDateTimeString(),\n 'created_at' => $model->created_at->toDateTimeString(),\n 'updated_at' => $model->updated_at->toDateTimeString(),\n ];\n }", "title": "" }, { "docid": "fdf62a8ad95c4c721c0d67adc986c0fa", "score": "0.48636648", "text": "public function makeModel()\n\t{\n\t\t$model = $this->app->make($this->model());\n\n\t\tif(! $model instanceof \\Illuminate\\Database\\Eloquent\\Model) {\n\t\t\tthrow new RepositoryException(\"Class {$this->model()} must be instance of Illuminate\\\\Database\\\\Eloquent\\\\Model\");\n\t\t}\n\n\t\treturn $model;\n\t}", "title": "" }, { "docid": "240be21c30c98c4a080059fba7893c7d", "score": "0.48570606", "text": "public function transform($model)\n {\n return [\n ];\n }", "title": "" }, { "docid": "923d4e4ee2213a744411ca826cba0d9c", "score": "0.4841444", "text": "protected function _buildPayloadForModel($model)\n\t{\n\t\treturn new $model();\n\t}", "title": "" }, { "docid": "0d1fff6ebc263573b32062226d32a98b", "score": "0.48394635", "text": "public function convert_to_model(array $raw_model): Content_Model\n {\n $model = $this->get_content_model_instance();\n\n /** @var Content_Model $model */\n $model = new $model();\n\n try {\n $this->get_mappings()->each(fn (array $mapping, string $key) => $this->set_mapped_property($key, $mapping['type'], $mapping['setter'], $raw_model, $model));\n } catch (TypeError $exception) {\n throw new Operation_Failed(\"Could not adapt to the model.\", previous: $exception);\n } catch (Item_Not_Found $exception) {\n throw new Operation_Failed(\"Could not adapt to the model because the mapped property was not set.\", previous: $exception);\n }\n\n return $model;\n }", "title": "" }, { "docid": "29749e3673c40e940ab725a336057c3f", "score": "0.48331493", "text": "public function model(Model $model)\n {\n return (new EmulatedModelBuilder($this->connection))\n ->setModel($model)\n ->in($this->dn);\n }", "title": "" }, { "docid": "cd8392f9f9889417cb6219b513f2efc9", "score": "0.48273885", "text": "public function reverseTransform($dto)\n {\n return new CurrencyModel((string) $dto->isoCode);\n }", "title": "" }, { "docid": "b05c2bdbce4e543858fa26a6eb5359ab", "score": "0.48226032", "text": "public function transform(Countries $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "8c7538015067e25322d1cd7915e8462a", "score": "0.48129767", "text": "public function resolveDataInputFields($model)\n {\n return $model;\n }", "title": "" }, { "docid": "6d52a85b05fa945ae77d468fc9f6c0bb", "score": "0.4808085", "text": "public function __toObject()\n {\n return json_decode($this->response);\n }", "title": "" }, { "docid": "e94033a2b85ed785c06c43bf695e4cbd", "score": "0.48057935", "text": "public function transform(Meal $model)\n {\n return [\n 'id' => (int) $model->id,\n\n /* place your other model properties here */\n\n 'created_at' => $model->created_at,\n 'updated_at' => $model->updated_at\n ];\n }", "title": "" }, { "docid": "b95fd069c569cab06ed7d1df316de06f", "score": "0.48028165", "text": "public function model2boGet($model)\n {\n $visibleToSellers = array();\n $model = $model[\"attributes\"];\n $model['postId'] = $model[\"id\"];\n $model['attributes'] = json_decode($model[\"attributes\"]);\n $visibleToSellers = $this->getVisibleToSellersSellerId($model);\n $model['visibleToSellers'] = $visibleToSellers;\n unset($model[\"id\"]);\n return $model;\n }", "title": "" }, { "docid": "b95fd069c569cab06ed7d1df316de06f", "score": "0.48028165", "text": "public function model2boGet($model)\n {\n $visibleToSellers = array();\n $model = $model[\"attributes\"];\n $model['postId'] = $model[\"id\"];\n $model['attributes'] = json_decode($model[\"attributes\"]);\n $visibleToSellers = $this->getVisibleToSellersSellerId($model);\n $model['visibleToSellers'] = $visibleToSellers;\n unset($model[\"id\"]);\n return $model;\n }", "title": "" }, { "docid": "edbe70d52f2d9bbd509fabcaf6973117", "score": "0.48008427", "text": "public function createDistanceModel()\n {\n $distanceModel = new \\App\\Http\\Models\\Distance();\n\n return $distanceModel;\n }", "title": "" }, { "docid": "529112fac1538f2df3d20cc65e065dd6", "score": "0.47986194", "text": "function toObject() {\n\t\t$this->toObject();\n\t}", "title": "" }, { "docid": "eb2c6b9d0b989384909d27df3ed4927c", "score": "0.4794179", "text": "public function getDTOClassName(){\n return $this->getBaseClassName().\"DTO\";\n }", "title": "" }, { "docid": "a4509bc436ae98c03a3f79f1d2fd8f27", "score": "0.47932565", "text": "protected function getExportData(){\n if(empty($this->fields)){\n ApiResponseService::forceJson('Fields Not Defined For this model.');\n }\n\n if(! in_array($this->model_table . '.id', $this->fields))\n array_unshift($this->fields, $this->model_table . '.id as ID');\n\n $this->model = $this->model->hasTranslatedAttributes() ? $this->prepareTranslatedPagination() : $this->prepareDefaultPagination();\n\n call_user_func([$this->model, 'select'], $this->fields);\n\n return $this->model->limit($this->limit)->get()->toArray();\n }", "title": "" }, { "docid": "24c6710cf9a85a483b417d4d69bac4ea", "score": "0.47779632", "text": "public function model2boGet($model)\n {\n $visibleToSellers = array();\n $model = $model[\"attributes\"];\n $model['postId'] = $model[\"id\"];\n $model['buyerName'] = UserDetailsService::getUserDetails($model[\"buyerId\"])->username;\n $model['attributes'] = json_decode($model[\"attributes\"]);\n $visibleToSellers = $this->getVisibleToSellersSellerId($model);\n $model['visibleToSellers'] = $visibleToSellers;\n unset($model[\"id\"]);\n return $model;\n }", "title": "" }, { "docid": "e345e193a7c6c23b5bee063498bab5b2", "score": "0.47753158", "text": "private static function mapModel(BaseModel $model, BSONDocument $result)\n {\n foreach ($result as $key => $value) {\n $method = self::buildMethodName($key);\n\n if (method_exists($model, $method)) {\n if ($value instanceof BSONDocument && isset($value['className'])) {\n $value = self::mapModel(new $value['className'](), $value);\n }\n\n $model->$method($value);\n }\n }\n\n return $model;\n }", "title": "" }, { "docid": "47205688cbaab85e24057454e68ff609", "score": "0.47723868", "text": "public function toResponse($request)\n {\n // TODO: Implement toResponse() method.\n return response()->json(['data' => $this->convertToDto()], 200);\n }", "title": "" } ]
6b9428c1050b620ee9db6ed3ae49269a
Migrate data from 1.6 equivalent module (if applicable), then uninstall
[ { "docid": "5f89aa789eb92c1e26cccb83063f0bb5", "score": "0.59046686", "text": "public function uninstallPrestaShop16Module()\n {\n if (!Module::isInstalled(self::PS_16_EQUIVALENT_MODULE)) {\n return false;\n }\n $oldModule = Module::getInstanceByName(self::PS_16_EQUIVALENT_MODULE);\n if ($oldModule) {\n if (method_exists($oldModule, 'uninstallTab')) {\n $oldModule->uninstallTab();\n }\n // This closure calls the parent class to prevent data to be erased\n // It allows the new module to be configured without migration\n $parentUninstallClosure = function() {\n return parent::uninstall();\n };\n $parentUninstallClosure = $parentUninstallClosure->bindTo($oldModule, get_class($oldModule));\n $parentUninstallClosure();\n }\n return true;\n }", "title": "" } ]
[ { "docid": "1e42abc7730a72d6e45a64b03025bc71", "score": "0.66465944", "text": "public function uninstall() {}", "title": "" }, { "docid": "38f3f4361ca24d73ebcbf8f4b130ba79", "score": "0.66253704", "text": "public function uninstall();", "title": "" }, { "docid": "38f3f4361ca24d73ebcbf8f4b130ba79", "score": "0.66253704", "text": "public function uninstall();", "title": "" }, { "docid": "61bacf48aa089b980c3ecb2d56aa78b2", "score": "0.66221577", "text": "public static function uninstall() {\n\t\n\t}", "title": "" }, { "docid": "5490d60b813f9c64803cb97255cbc2b1", "score": "0.6564696", "text": "public function uninstall(): void;", "title": "" }, { "docid": "c5cb15e4a31277b73bb1cb7d76c32a05", "score": "0.65635914", "text": "public function uninstall()\n\t{\n\t\n\t}", "title": "" }, { "docid": "0e52ac0890d21b72351601e0dc670b89", "score": "0.65334845", "text": "public function uninstall(){}", "title": "" }, { "docid": "0e52ac0890d21b72351601e0dc670b89", "score": "0.65334845", "text": "public function uninstall(){}", "title": "" }, { "docid": "faecfba6ffbffcdf102e9698a41461d4", "score": "0.6494159", "text": "public function ___uninstall() { }", "title": "" }, { "docid": "3e000171474404b05980940933c7a6b4", "score": "0.64742434", "text": "function remove_data()\n{\n\trequire('unidress_narola_uninstall.php');\n}", "title": "" }, { "docid": "d622d4db69eb89de4b31b5f79f61db98", "score": "0.64722687", "text": "public static function uninstall() {\r\t\t//your code here\r\t }", "title": "" }, { "docid": "859e8db8b5a37c641d331532136942b2", "score": "0.6408456", "text": "function uninstall() {\n SQLExec('DROP TABLE IF EXISTS mpt');\n parent::uninstall();\n }", "title": "" }, { "docid": "705db1dc81739ee2a9fad8d5739561ec", "score": "0.6408013", "text": "public function uninstall() {\n\t parent::uninstall();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t// delete database tables (if applicable)\n\t\t\t}catch(Exception $e){ /* FAIL GRACEFULLY */ }\n\t }", "title": "" }, { "docid": "36c7a1093bf02942de2546b440d7f654", "score": "0.6406528", "text": "public function uninstall()\r\n\t{\r\n\t}", "title": "" }, { "docid": "99f86f038b7a3d2d3ca765969a309003", "score": "0.63969827", "text": "public function uninstall() {\n\n\t}", "title": "" }, { "docid": "0df918e262f0efb5806c0d29ddba15f6", "score": "0.6389942", "text": "public function uninstall() {\r\n \t}", "title": "" }, { "docid": "77be2b57c004e330a8bf2d0f622242f3", "score": "0.63746685", "text": "function uninstall()\n\t{\n\t\t$this->EE->load->dbforge();\n\n\t\t// Toast the module.\n\t\t$this->EE->db->select('module_id');\n\t\t$query = $this->EE->db->get_where('modules', array('module_name' => $this->module_name));\n\t\t\n\t\t$this->EE->db->where('module_id', $query->row('module_id'));\n\t\t$this->EE->db->delete('module_member_groups');\n\t\t\n\t\t$this->EE->db->where('module_name', $this->module_name);\n\t\t$this->EE->db->delete('modules');\n\t\t\n\t\t// Toast the action.\n\t\t$this->EE->db->where('class', $this->module_name);\n\t\t$this->EE->db->delete('actions');\n\t\t\n\t\t// Toast the tables we created.\n\t\t$this->EE->dbforge->drop_table('click_tracked');\n\t\t\n\t\treturn TRUE;\n\t}", "title": "" }, { "docid": "95aca2a78300e9e0ddd221d3c07579b0", "score": "0.6359826", "text": "function uninstall()\n\t{\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('import_id_remap');\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('import_session');\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('import_parts_done');\n\n\t\t$GLOBALS['SITE_DB']->query_delete('group_page_access',array('page_name'=>'admin_import'));\n\t}", "title": "" }, { "docid": "479efe8d6c6902c6d721737ff82da419", "score": "0.63429916", "text": "public function uninstall()\n {\n \\debug(\"uninstall\"); \n }", "title": "" }, { "docid": "28c54846a714b2a5e5b8743cc7636911", "score": "0.6342394", "text": "public static function uninstall() {\n }", "title": "" }, { "docid": "d93e5738c91738ea6bbcc7197b8697bb", "score": "0.6328131", "text": "function uninstall()\n {\n }", "title": "" }, { "docid": "92c4a5c0fd629303724c4068f31a0c37", "score": "0.63160443", "text": "public function ___uninstall()\n {\n\n parent::___uninstall(); // always remember to call parent method\n }", "title": "" }, { "docid": "af2db90f4d7426cb22a69a4235b93ccd", "score": "0.63016576", "text": "public function uninstall() {\n\t\t\n\t\t$oldIgnore = \\GO::setIgnoreAclPermissions();\n\t\t\n\t\t\n//\t\t//call deleteUser for each user\n//\t\t$stmt = Model\\User::model()->find(array('ignoreAcl'=>true));\t\t\n//\t\twhile($user = $stmt->fetch()){\n//\t\t\tcall_user_func(array(get_class($this),'deleteUser'), $user);\n//\t\t}\n\t\t\n\t\t//Uninstall cron jobs for this module\n\t\t$cronClasses = $this->findClasses('cron');\n\t\tforeach($cronClasses as $class){\n\t\t\t\n\t\t\t$jobs = Cron\\CronJob::model()->findByAttribute('job', $class->getName());\n\t\t\tforeach($jobs as $job)\n\t\t\t\t$job->delete();\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t$sqlFile = $this->path().'install/uninstall.sql';\n\t\t\n\t\tif(file_exists($sqlFile))\n\t\t{\n\t\t\t$queries = Util\\SQL::getSqlQueries($sqlFile);\n\t\t\tforeach($queries as $query)\n\t\t\t\t\\GO::getDbConnection ()->query($query);\n\t\t}\n\t\t\n\t\t\\GO::clearCache();\n\t\tObservable::cacheListeners();\n\t\t\n\t\t\\GO::setIgnoreAclPermissions($oldIgnore);\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "be9a051f1fb5f05fd7104ce88c4d16a3", "score": "0.6257432", "text": "function uninstall()\n {\n // drop tables\n DoctrineUtil::dropTable('TimeIt_calendars');\n DoctrineUtil::dropTable('TimeIt_events');\n DoctrineUtil::dropTable('TimeIt_date_has_events');\n DoctrineUtil::dropTable('TimeIt_regs');\n\n // remove all module vars\n ModUtil::delVar('TimeIt');\n\n return true;\n }", "title": "" }, { "docid": "412f8a7103aa43599035dd3abe06e334", "score": "0.62411207", "text": "function uninstall() {\r\n SQLExec('DROP TABLE IF EXISTS owdevices');\r\n SQLExec('DROP TABLE IF EXISTS owproperties');\r\n parent::uninstall();\r\n }", "title": "" }, { "docid": "9570a654b37b30aae96dad285f506e9a", "score": "0.6217833", "text": "public function uninstall() {\n \n }", "title": "" }, { "docid": "770cba0bebe849abfaaa95f139415043", "score": "0.62118727", "text": "public function uninstall()\r\n {\r\n }", "title": "" }, { "docid": "3e212f4788c53db8e77cbb1b9890faa7", "score": "0.62062544", "text": "function plugin_weathermap_uninstall()\n{\n // on the assumption that it will one day work, clear the stored version number from the settings\n // so that an uninstall/reinstall on the plugin would force the db schema to be checked\n $pdo = weathermap_get_pdo();\n $pdo->query(\"REPLACE INTO settings VALUES('weathermap_version','')\");\n}", "title": "" }, { "docid": "d182593a1490a36a23f9dd07c8351c95", "score": "0.6204404", "text": "function Uninstall()\n\t{\n\t\t$db = cmsms()->GetDb();\n\t\n\t\t//Remove the database table\n\t\t$dict = NewDataDictionary( $db );\n\t\t$sqlarray = $dict->DropTableSQL( cms_db_prefix().'module_bm_info' );\n\t\t$dict->ExecuteSQLArray($sqlarray);\n\t\t\n\t\t\n\t\t$html = str_ireplace(\"\",\"\",$row['html']);\n\t\t$sql = \"UPDATE \" . cms_db_prefix().\"htmlblobs SET html = REPLACE(html,'{cms_module module=\\'BanckleMeeting\\'}','') WHERE htmlblob_name = 'footer';\";\n\t\t$dbresult =& $db->Execute($sql);\n\t\t\n\t\n\t\t//Remove the permission\n\t\t$this->RemovePermission('BanckleMeeting Admin');\n\t}", "title": "" }, { "docid": "13f8f733465ab8a4e9695475a9107796", "score": "0.618381", "text": "public function uninstall()\n {\n\n }", "title": "" }, { "docid": "d17542698c4176765b76dd0cab476351", "score": "0.61618674", "text": "function uninstall() {\n do_action('dbnavt', NAVT_INIT, sprintf(\"%s::%s - start\\n\", __CLASS__, __FUNCTION__));\n NAVT::delete_option(SERIALIZED_MAP); /* depreciated */\n NAVT::delete_option(LASTMODIFIED);\n NAVT::delete_option(SCHEME);\n NAVT::delete_option(VERSIONID);\n NAVT::delete_option(VERCHECK);\n NAVT::delete_option(DEF_ADD_GROUP);\n NAVT::delete_option(INSTALLED);\n NAVT::delete_option(TIPS); /* depreciated */\n NAVT::delete_option(ASSETS);\n NAVT::delete_option(ICONFIG);\n NAVT::delete_option(GCONFIG);\n NAVT::delete_option(ITEM_CRC);\n NAVT::delete_option(GROUP_CRC);\n do_action('dbnavt', NAVT_INIT, sprintf(\"%s::%s - end\\n\", __CLASS__, __FUNCTION__));\n }", "title": "" }, { "docid": "e2c1223597be16cf5c4f069009c11f1a", "score": "0.614603", "text": "function unInstall() {\n// sql_query('DROP TABLE ' . sql_table('plugin_searched_phrase_history'));\n// sql_query('DROP TABLE ' . sql_table('plugin_searched_phrase_count'));\n }", "title": "" }, { "docid": "5dc00ac9e6f73ab02412c3b610f191c8", "score": "0.6144096", "text": "function uninstall()\n {\n $query = new DB_Table_Delete(Cart::getTables());\n global $application;\n $application->db->getDB_Result($query);\n }", "title": "" }, { "docid": "83bef045ddf4ff9c19dd2f4af3ee92bb", "score": "0.61378855", "text": "function uninstall()\n {\n SQLExec('DROP TABLE IF EXISTS xidevices');\n SQLExec('DROP TABLE IF EXISTS xicommands');\n parent::uninstall();\n }", "title": "" }, { "docid": "de40191f261110701654bedc08948115", "score": "0.6097561", "text": "function uninstall()\n\t{\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('usersubmitban_ip');\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('usersubmitban_member');\n\t}", "title": "" }, { "docid": "6a550bccc2b07e3c03173e749cc2fc74", "score": "0.60936373", "text": "protected function _postUninstall()\n\t{\n\t}", "title": "" }, { "docid": "d9b5b147f6cc305eaa3c6c8883a532bd", "score": "0.6081517", "text": "function gfc_vider_tables($nom_meta_base_version) {\r\n\tinclude_spip('inc/meta');\r\n\tinclude_spip('base/abstract_sql');\r\n\tsql_alter('TABLE spip_auteurs drop gfc_uid');\r\n\teffacer_meta($nom_meta_base_version);\r\n}", "title": "" }, { "docid": "49aaf828b509b3862f5f5f4ddb7f28fe", "score": "0.60704637", "text": "function cc_estimator_uninstall(){\r\n \r\n // actions to perform once on plugin uninstall go here\r\n // This routine should remove all traces of the plugin from the\r\n // database and file system.\r\n\t \r\n}", "title": "" }, { "docid": "465ec347528ed186dc25f6bf93feb454", "score": "0.60452974", "text": "function uninstall() {\n db_begin_work();\n \n $name = $this->name;\n \n ProjectObjects::deleteByModule($name);\n ConfigOptions::deleteByModule($name);\n EmailTemplates::deleteByModule($name);\n \n cache_clear();\n \n $delete = $this->delete();\n if($delete && !is_error($delete)) {\n db_commit();\n return true;\n } else {\n db_rollback();\n return $delete;\n } // if\n }", "title": "" }, { "docid": "f8293f11b1b0bd3f45e62dc978cb480d", "score": "0.60418975", "text": "function h3_mgmt_uninstall() {\n\t// drop a custom database table\n\tglobal $wpdb;\n\n\tdelete_option( 'h3_mgmt_db_version' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_auto_responses' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_invitations' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_races' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_routes' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_stages' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_sponsors' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_teams' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_teammates' );\n\t$wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'h3_mgmt_xchange' );\n}", "title": "" }, { "docid": "969bc3d3b045ef3056f2df28c42978d5", "score": "0.60366", "text": "function upgrade_module_3_2_10()\n{\n $previousShopContext = \\Shop::getContext();\n \\Shop::setContext(\\Shop::CONTEXT_ALL);\n\n Bootstrap::init();\n CleanupTaskSchedulerService::scheduleTaskCleanupTask();\n\n \\Shop::setContext($previousShopContext);\n\n return true;\n}", "title": "" }, { "docid": "f8b3478a5e13b64a568eb117609d7cb2", "score": "0.60255086", "text": "public function uninstall() {\n\t\tdb::query(\"drop table `groups`\");\n\t\tdb::query(\"drop table `members`\");\n\t}", "title": "" }, { "docid": "836e43ed26eda32d571ce825f0df61ae", "score": "0.6011276", "text": "function plugin_reservationgroup_uninstall() {\n global $DB;\n\n if ($DB->tableExists(\"glpi_reservations\")) {\n $query = \"ALTER TABLE glpi_reservations DROP groups_id\";\n\n $DB->queryOrDie($query, \"ALTER TABLE glpi_reservations DROP groups_id\");\n\n }\n\n\n\n $dirdoc=GLPI_ROOT . \"/plugins/reservationgroup/docs/\";\n $diroriginaux=GLPI_ROOT . \"/plugins/reservationgroup/originaldocs/\";\n\n $dir=array();\n $dir['inc'] = GLPI_ROOT . \"/inc/\";\n $dir['front'] =GLPI_ROOT . \"/front/\";\n\n $filescopy=array('group.class.php'=>'inc','reservation.class.php'=>'inc','reservationitem.class.php'=>'inc','reservation.form.php'=>'front');\n\n foreach ($filescopy as $filename => $folder) {\n\n //first, we make a copy of the original\n $theoriginalfile=$diroriginaux . $filename;\n copy($theoriginalfile,$dir[$folder] . $filename);\n } //end of foreach filescopy\n\n\treturn true;\n}", "title": "" }, { "docid": "47e72c811817006fc370ed109d58fcb7", "score": "0.5994898", "text": "function uninstall() {\n SQLExec('DROP TABLE IF EXISTS tlg_user_cmd');\n SQLExec('DROP TABLE IF EXISTS tlg_user');\n SQLExec('DROP TABLE IF EXISTS tlg_cmd');\n SQLExec('DROP TABLE IF EXISTS tlg_event');\n unsubscribeFromEvent($this->name, 'SAY');\n unsubscribeFromEvent($this->name, 'SAYTO');\n unsubscribeFromEvent($this->name, 'SAYREPLY');\n parent::uninstall();\n }", "title": "" }, { "docid": "e3a5f1f86af758beaa4376735d7623ec", "score": "0.59903646", "text": "public static function uninstall()\n\t{\n\t\t$db = XenForo_Application::getDb();\n\n\t\tXenForo_Db::beginTransaction($db);\n\n\t\ttry\n\t\t{\n\t\t\t$db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN posts\n\t\t\t\");\n\t\t}\n\t\tcatch (Zend_Db_Exception $e) {}\n\n\t try\n\t\t{\n\t\t\t$db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN daily_posts\n\t\t\t\");\n\t\t}\n\t\tcatch (Zend_Db_Exception $e) {}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t$db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN thread_count\n\t\t\t\");\n\t\t}\n\t\tcatch (Zend_Db_Exception $e) {}\n\t \n\t try\n\t\t{\n\t\t\t$db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN user_likes\n\t\t\t\");\n\t\t}\n\t\tcatch (Zend_Db_Exception $e) {}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t$db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN user_trophy\n\t\t\t\");\n\t\t}\n\t\tcatch (Zend_Db_Exception $e) {}\n\t\t\n\t\ttry\n\t\t{\n\t\t\t$db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN reg_days\n\t\t\t\");\n\t\t}\n\t\tcatch (Zend_Db_Exception $e) {}\n\t \n\t try\n\t {\n\t\t $db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN age\n\t\t \");\n\t }\n\t catch (Zend_Db_Exception $e) {}\n\t \n\t try\n\t {\n\t\t $db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN user_gender\n\t\t \");\n\t }\n\t catch (Zend_Db_Exception $e) {}\n\t \n\t try\n\t {\n\t\t $db->query(\"\n\t\t\t\tALTER TABLE kmk_thread\n\t\t\t\t\tDROP COLUMN user_moderation\n\t\t \");\n\t }\n\t catch (Zend_Db_Exception $e) {}\n\t\t\n\t XenForo_Db::commit($db);\n\n\t}", "title": "" }, { "docid": "01e72c917f5594604679f0ad1ebd98f3", "score": "0.5982872", "text": "function on_uninstall ()\n{\n}", "title": "" }, { "docid": "e9571e8f52aca986e4fa1ad07a4ce795", "score": "0.5982026", "text": "public function uninstall_module(){\r\n\r\n\t\t/*** Remove permission of coinremitter module extension ***/\r\n\t\t$this->load->model('user/user_group');\r\n\t\t$this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/coinremitter/module/coinremitter');\r\n $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/coinremitter/module/coinremitter'); \r\n }", "title": "" }, { "docid": "a03ee704735aa42b2c694a9f21bb3024", "score": "0.597813", "text": "function gx_it_core_tweeks_uninstall() {\r\n//do something\r\n}", "title": "" }, { "docid": "88f5b23644778c91269140e376e3294d", "score": "0.59728163", "text": "function uninstall() {\r\n SQLExec('DROP TABLE IF EXISTS zwave_devices');\r\n SQLExec('DROP TABLE IF EXISTS zwave_properties');\r\n parent::uninstall();\r\n }", "title": "" }, { "docid": "a685470d44956028df71b186431f8f7f", "score": "0.59725595", "text": "public function uninstall() {\n \n\t $sql = \"DROP TABLE `\".DB_PREFIX.\"product_to_quick_delivery` \";\n\t $this->db->query($sql);\n }", "title": "" }, { "docid": "782bba638a75e32672d20d24317cc719", "score": "0.5954236", "text": "public function uninstall()\n {\n //$this->db->query(\"\n // DROP TABLE \".Kohana::config('database.default.table_prefix').\"jasd_table;\n // \");\n }", "title": "" }, { "docid": "2dcc3f29e1a5a804ed5c0fa08cf94b29", "score": "0.5942041", "text": "public function uninstall() { \r\n $this->load->model('user/user_group');\r\n $this->model_user_user_group->removePermission($this->user->getGroupId(), 'access', 'extension/coinremitter/module/coinremitter');\r\n $this->model_user_user_group->removePermission($this->user->getGroupId(), 'modify', 'extension/coinremitter/module/coinremitter');\r\n\r\n\t\t$this->load->model('setting/extension');\r\n\t\t$this->model_setting_extension->uninstall('module', 'coinremitter');\r\n\r\n\t\t$this->load->model('setting/module');\r\n\t\t$this->model_setting_module->deleteModulesByCode('coinremitter');\r\n\r\n\t\t$this->load->model('setting/event');\r\n \t$this->model_setting_event->deleteEventByCode('coinremitter');\r\n }", "title": "" }, { "docid": "e186e62a49d43bcbeac91c383cca0c50", "score": "0.5936392", "text": "function hookUninstall()\n{\n delete_option('geochron_default_latitude');\n\tdelete_option('geochron_default_longitude');\n\tdelete_option('geochron_default_zoom_level');\n\tdelete_option('geochron_per_page');\n delete_option('geochron_add_map_to_contribution_form');\n \n // Drop the Location table\n\t$db = get_db();\n\t$db->query(\"DROP TABLE $db->GeoChron\");\n}", "title": "" }, { "docid": "c3fd4a2dd17e8ae2b3e0d42c0bf78678", "score": "0.593311", "text": "private function upgrade() {\n\t\t}", "title": "" }, { "docid": "d82b216dc30b0ffd18f780d56511aa3f", "score": "0.5920053", "text": "function strongarm_override_features_revert($module)\n{\n strongarm_override_features_rebuild($module);\n}", "title": "" }, { "docid": "96e2b3c84883349967030b84bc114fa4", "score": "0.5917907", "text": "public function uninstall(){\n//\t\t$this->db->query(\"DROP TABLE `\" . DB_PREFIX . \"special_offer_to_store`\");\n\t}", "title": "" }, { "docid": "3b723e3b84df66cf7347b7cf48110481", "score": "0.5912051", "text": "public function on_plugin_uninstall(): void;", "title": "" }, { "docid": "993ad5c2a95cc8abc5b7038f0d2145e3", "score": "0.5909708", "text": "protected function uninstall(){\n // Call install hook\n $path = $this->oPkgCommon->configPath . 'configs/' . $this->hypermod . '/' . $this->config . '/uninstall.php';\n $this->oArgs = new AMI_Tx_Cmd_Args(get_object_vars($this));\n if(file_exists($path)){\n require $path;\n }\n }", "title": "" }, { "docid": "5959982ed750bbe7b87c0392c7629d84", "score": "0.59000593", "text": "public function uninstall()\n {\n // drop tables\n DoctrineHelper::dropSchema($this->entityManager, 'Programador_Entity_Programador');\n\n //remove files from data folder\n $uploaddir = FileUtil::getDataDirectory() . '/' . $this->name . '/';\n FileUtil::deldir($uploaddir, true);\n\n // remove all module vars\n $this->delVars();\n\n return true;\n }", "title": "" }, { "docid": "9a0905ef26620ed4deb001f69944c8c2", "score": "0.5898793", "text": "function unistall_wordpress_easy_maintenance(){\n\trequire_once plugin_dir_path( __FILE__ ) . 'uninstall.php';\n\tWordpress_Easy_Maintenance_Unistaller::uninstall();\n}", "title": "" }, { "docid": "560d6ad3125580f1a0c6eb817516c4bb", "score": "0.58981586", "text": "function uninstall()\n {\n $db = DataAccess::getInstance();\n\n //leave geodesic_addon_share_fees_attachments\n $sqls[] = \"DROP TABLE IF EXISTS `geodesic_addon_share_fees_settings`\";\n foreach ($sqls as $sql) {\n $result = $db->Execute($sql);\n if (!$result) {\n //query failed, return false.\n return false;\n }\n }\n $admin->userNotice('Share fees database tables removed successfully.');\n return true;\n }", "title": "" }, { "docid": "c464b38949491051c56bdfa71de10ab5", "score": "0.58917665", "text": "function xmldb_videoquanda_uninstall() {\n global $CFG;\n remove_dir($CFG->dataroot . '/into/mod_videoquanda');\n return true;\n}", "title": "" }, { "docid": "d7c51b8ddddd974373e371adbe74be47", "score": "0.58892834", "text": "protected function uninstallInstances(){\n $oDeclarator = AMI_ModDeclarator::getInstance();\n if($this->installId){\n // Common package, instances for meta has same 'id_install' attribute\n $aInstanceIds = $oDeclarator->getModIdsByInstallId($this->installId);\n }else{\n // Amiro base package, instances for meta are children of current module\n // $aInstanceIds = $oDeclarator->getSubmodules($this->modId);\n // array_unshift($aInstanceIds, $this->modId);\n $aInstanceIds = array($this->modId);\n }\n $aInstalledHyperConfigs = array_reverse($this->oPkgCommon->aPkgInfo['install']);\n\n // Hack: check for ami_multifeeds5 hypermodule\n if(\n !$this->installId &&\n 'ami_multifeeds' === $aInstalledHyperConfigs[0]['hypermodule']\n ){\n $aInstalledHyperConfigs[0]['hypermodule'] = 'ami_multifeeds5';\n }\n\n foreach($aInstalledHyperConfigs as $aHyperConf){\n $aModIds = $oDeclarator->getRegistered($aHyperConf['hypermodule'], $aHyperConf['configuration']);\n $aModIds = array_intersect($aInstanceIds, $aModIds);\n foreach($aModIds as $modId){\n if((int)$oDeclarator->getAttr($modId, 'id_install') === $this->installId){\n $oModManipulator = new AMI_ModUninstall(\n $this->aTx,\n $modId,\n $this->mode\n );\n // $oModManipulator->setDebug(TRUE);###\n $oModManipulator->run();\n }\n }\n }\n\n $oDB = AMI::getSingleton('db');\n foreach(array(\n 'TRUNCATE `cms_cache`',\n 'TRUNCATE `cms_cache_content`',\n 'TRUNCATE `cms_cache_blocks`'\n ) as $sql){\n $oDB->query($sql, AMI_DB::QUERY_TRUSTED);\n }\n }", "title": "" }, { "docid": "b8cc8c1bd6ede837fe7c2dc11e4c8b7a", "score": "0.5872865", "text": "public static function run_uninstall() {\n\n\t}", "title": "" }, { "docid": "d251b946a45f210dcb5bff9a64c4905e", "score": "0.5866555", "text": "public function uninstall()\n {\n Symphony::Configuration()->remove('config_to_params', 'config_to_params');\n Symphony::Configuration()->write();\n }", "title": "" }, { "docid": "73d6c2caf151c4a390071da02111f063", "score": "0.5863562", "text": "function uninstall() {\n \t\\mod\\regroute\\Main::unregister($this->id);\n\t\tparent::uninstall();\n\t}", "title": "" }, { "docid": "163215e84b7427eb7d17468ed35ff901", "score": "0.5857791", "text": "public function uninstall()\n {\n global $rlDb;\n\n $rlDb->dropTable('ipgeo');\n $rlDb->dropTable('ipgeo_locations');\n }", "title": "" }, { "docid": "df03a99e6ae74a4f7bc1c7611fdc81e7", "score": "0.58507633", "text": "function fatherly_remove_meta_data_install()\n{\n global $wpdb;\n $table_name = $wpdb->postmeta;\n $wpdb->query(\"DELETE FROM `$table_name` WHERE meta_value = 'template-featured.php'\");\n require_once(ABSPATH . 'wp-admin/includes/upgrade.php');\n}", "title": "" }, { "docid": "9f77591b75a7cabda88249da30c6e69d", "score": "0.58506155", "text": "public function onBeforeUninstall();", "title": "" }, { "docid": "07f73e0189a0dceaede0e65449695eb8", "score": "0.5846537", "text": "public static function uninstall()\n {\n $db = XenForo_Application::getDb();\n $db->query(XenDevelop_Noted_Listener::$dropTableQuery);\n }", "title": "" }, { "docid": "d4d75e6a0778b56b2e516bb9b73f6887", "score": "0.5843864", "text": "public function v6011_upgrades() {\n\t\t// If old tracking checkin exists, remove it\n\t\tif ( wp_next_scheduled( 'monsterinsights_send_tracking_checkin' ) ) {\n\t\t\twp_clear_scheduled_hook( 'monsterinsights_send_tracking_checkin' );\n\t\t}\n\n\t\t// Remove Weekly cron\n\t\tif ( wp_next_scheduled( 'monsterinsights_weekly_cron' ) ) {\n\t\t\twp_clear_scheduled_hook( 'monsterinsights_weekly_cron' );\n\t\t}\n\n\t\t// Remove Yoast cron\n\t\tif ( wp_next_scheduled( 'yst_ga_aggregate_data' ) ) {\n\t\t\twp_clear_scheduled_hook( 'yst_ga_aggregate_data' );\n\t\t}\n\t}", "title": "" }, { "docid": "7bc337fca24673a09c7479f23a91a2fc", "score": "0.58384097", "text": "public function uninstall() {\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "7ca1caca0b63e98ed08d8ea34560f464", "score": "0.58120793", "text": "function uninstall()\n {\n unsubscribeFromEvent($this->name, 'DAILY');\n SQLDropTable('objects');\n parent::uninstall();\n }", "title": "" }, { "docid": "715c8650ddda4dda55d5a002f90030a2", "score": "0.5803548", "text": "public function uninstall()\n {\n $this->removeData();\n\n $this->schemaTool->dropSchema($this->getClassesMetaData());\n }", "title": "" }, { "docid": "821f56c807caecadbe86ead5dcab8024", "score": "0.5798469", "text": "protected function _uninstallStep17()\n {\n $db = $this->_getDb();\n\n // Make sure the original cron tasks are removed.\n $db->delete('xf_cron_entry', \"addon_id = 'ForumBackup'\");\n\n // Remove the manually created cron jobs\n $db->delete('xf_cron_entry', \"cron_class = 'SolidMean_ForumBackup_CronEntry_Backup'\");\n\n\n }", "title": "" }, { "docid": "8458f00950b2477b4358110b61912a07", "score": "0.5795394", "text": "function uninstall()\r\n {\r\n $tablesToBeDeleted = array(\r\n self::TABLE_PAYPAL,\r\n self::TABLE_TRANSFER,\r\n self::TABLE_ITEM_BENEFICIARY,\r\n self::TABLE_ITEM,\r\n self::TABLE_SALE,\r\n self::TABLE_CURRENCY,\r\n self::TABLE_COMMISSION,\r\n self::TABLE_PAYPAL_PAYOUTS\r\n );\r\n\r\n foreach ($tablesToBeDeleted as $tableToBeDeleted) {\r\n $table = Database::get_main_table($tableToBeDeleted);\r\n $sql = \"DROP TABLE IF EXISTS $table\";\r\n Database::query($sql);\r\n }\r\n $this->manageTab(false);\r\n }", "title": "" }, { "docid": "21f4a4e2bf77e6a447c64f38f03d2b16", "score": "0.5788441", "text": "public function uninstall()\n\t{\n\t\t$this->removeTables();\n\t\t$this->removeColumns();\n\t\t$this->remove('settinggroups', 'name', $this->settingGroupNames);\n\t\t$this->remove('settings', 'name', $this->settingNames);\n\t\t$this->remove('templategroups', 'prefix', $this->templategroupNames);\n\t\t$this->remove('templates', 'title', $this->templateNames);\n\t\t$this->removeStyleSheets();\n\t\trebuild_settings();\n\t}", "title": "" }, { "docid": "bf1a42a8dae9924f6245fffe66f53ecb", "score": "0.5776752", "text": "public function uninstall()\n\t{\n\t\t$this->db->query('DROP TABLE `'.Kohana::config('database.default.table_prefix').'project_budgets`');\n\t}", "title": "" }, { "docid": "66644829c0c84ee9914a6722cc996128", "score": "0.57377124", "text": "public function uninstall()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "66644829c0c84ee9914a6722cc996128", "score": "0.57377124", "text": "public function uninstall()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "66644829c0c84ee9914a6722cc996128", "score": "0.57377124", "text": "public function uninstall()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "66644829c0c84ee9914a6722cc996128", "score": "0.57377124", "text": "public function uninstall()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "69bb12cb10c5c0d45d0d3c3d201fcad4", "score": "0.5737102", "text": "function ajan_uninstall() {\n\tdo_action( 'ajan_uninstall' );\n}", "title": "" }, { "docid": "04c86e8256e2b6a547eff02d44e21f9a", "score": "0.57321936", "text": "function uninstall()\r\n\t{\r\n\t\tsql_query('DROP TABLE IF EXISTS ' . $this->table);\r\n\t}", "title": "" }, { "docid": "8971078f027153fa03c3c73b9319d0c3", "score": "0.5731506", "text": "function uninstall()\n\t{\n\t\t$GLOBALS['SITE_DB']->drop_if_exists('text');\n\n\t\tdelete_config_option('system_flagrant');\n\t}", "title": "" }, { "docid": "733ab81ee0e621ebcc37086078dcdf5e", "score": "0.5721116", "text": "public function uninstall()\n {\n $this->load->driver('Streams');\n\n // For this teardown we are using the simple remove_namespace\n // utility in the Streams API Utilties driver.\n $this->streams->utilities->remove_namespace('doctor'); \n $this->db->delete('settings', array('module' => 'appointments')); \n $this->dbforge->drop_table('doctors_favorites');\n\n return true;\n }", "title": "" }, { "docid": "b13f4e83b50a80c070c9e347033dd696", "score": "0.57195866", "text": "function ajan_update_to_1_6() {\n\n\t// Delete possible site options\n\tdelete_site_option( 'ajan-db-version' );\n\tdelete_site_option( '_ajan_db_version' );\n\tdelete_site_option( 'ajan-core-db-version' );\n\tdelete_site_option( '_ajan-core-db-version' );\n\n\t// Delete possible blog options\n\tdelete_blog_option( ajan_get_root_blog_id(), 'ajan-db-version' );\n\tdelete_blog_option( ajan_get_root_blog_id(), 'ajan-core-db-version' );\n\tdelete_site_option( ajan_get_root_blog_id(), '_ajan-core-db-version' );\n\tdelete_site_option( ajan_get_root_blog_id(), '_ajan_db_version' );\n}", "title": "" }, { "docid": "aef4acee93139d00cecd32264fe1aed4", "score": "0.57066715", "text": "function fratler_masters_uninstall() {\n $mids = db_query('SELECT -f.mid FROM {fratler_masters} f')->fetchCol('mid');\n if (!empty($mids)) {\n $transaction = db_transaction();\n\n try {\n db_delete('fratler_accounts')->condition('aid', $mids, 'IN')->execute();\n } catch (Exception $e) {\n $transaction->rollback();\n watchdog_exception('fratler_masters', $e);\n throw $e;\n }\n }\n\n}", "title": "" }, { "docid": "0cd2ca78d1059745cebb2a006d8d7a61", "score": "0.5702493", "text": "function ispapidomaincheck_upgrade($vars)\n{\n $version = $vars['version'];\n if ($version < 7.3) {\n // 1. DROP ispapi_tblaftermarketcurrencies if exists\n $query = Helper::SQLCall(\"DROP TABLE IF EXISTS ispapi_tblaftermarketcurrencies\", array(), \"execute\");\n // 2. DROP ispapi_tblsettings if exists\n $query = Helper::SQLCall(\"DROP TABLE IF EXISTS ispapi_tblsettings\", array(), \"execute\");\n // 3. ALTER ispapi_tblcategories\n $query = Helper::SQLCall(\"ALTER TABLE ispapi_tblcategories DROP COLUMN parent\", array(), \"execute\");\n // This one deletes the row and does not complain if it can't.\n $query = Helper::SQLCall(\"DELETE IGNORE FROM ispapi_tblcategories WHERE tlds=''\", array(), \"execute\");\n }\n return array('status'=>'success', 'description'=>'The ISPAPI HP DomainChecker was successfully upgraded.');\n}", "title": "" }, { "docid": "bdccc45aa29bc3889a0a5046500d43a9", "score": "0.56985515", "text": "function bbp_digest_uninstall() {\r\n\t_deprecated_function( __FUNCTION__, '2.1' );\r\n\tinclude_once( dirname( __FILE__ ) . '/unistall.php' );\r\n}", "title": "" }, { "docid": "8783dba103f81a1a975cd06f8c100b7f", "score": "0.56850016", "text": "public function uninstall(){\n return true;\n }", "title": "" }, { "docid": "41926cf2de688f4270682cef9804592c", "score": "0.56805176", "text": "public function uninstall()\n {\n// $q = \"EXPLAIN \" . DB_PREFIX . \"order\";\n// $resp = $this->db->query($q);\n// \n// if(isset($resp->rows) && !empty($resp->rows)) {\n// foreach($resp->rows as $field) {\n// if($field['Field'] == 'order_status_id') {\n// if(intval($field['Default']) == 1) {\n// $q = \"ALTER TABLE `\". DB_PREFIX .\"order` CHANGE `order_status_id` `order_status_id` INT(11) NOT NULL DEFAULT '0';\";\n// $this->db->query($q);\n// }\n// \n// break;\n// }\n// }\n// }\n }", "title": "" }, { "docid": "e77894ca52862f0ff77713f036f16c3f", "score": "0.5675402", "text": "public static function uninstall()\r\n {\r\n \t$installer = new WurrdInstaller(load_system_configs());\r\n \treturn $installer->dropTables();\r\n }", "title": "" }, { "docid": "8083d5fc29ba114da5c5be07a787f38a", "score": "0.56713235", "text": "function phpbrain_upgrade1_5_002()\n{\n\t$current_is_root = egw_vfs::$is_root; egw_vfs::$is_root = true;\n\t$current_user = egw_vfs::$user; egw_vfs::$user = 0;\n\n\t$sqlfs = new sqlfs_stream_wrapper();\n\t$ok = $sqlfs->mkdir('/apps/phpbrain',0,STREAM_MKDIR_RECURSIVE);\n\tforeach($GLOBALS['egw_setup']->db->query(\"SELECT * FROM egw_kb_files ORDER BY art_id\",__LINE__,__FILE__,0,-1,false,egw_db::FETCH_ASSOC) as $file)\n\t{\n\t\tif ($art_id != $file['art_id'])\n\t\t{\n\t\t\t$ok = $sqlfs->mkdir('/apps/phpbrain/'.$file['art_id'],0,0);\n\t\t\t$ok = $sqlfs->chmod('/apps/phpbrain/'.$file['art_id'],0);\t// no default access\n\t\t\t$art_id = $file['art_id'];\n\t\t}\n\t\tlist(,$fname) = explode('-',$file['art_file'],2);\n\t\tsqlfs_stream_wrapper::rename('/kb/'.$file['art_file'],'/apps/phpbrain/'.$file['art_id'].'/'.$fname);\n\t}\n\t$ok = $sqlfs->rmdir('/kb',0);\n\tegw_vfs::$is_root = $current_is_root;\n\tegw_vfs::$user = $current_user;\n\n\t// drop not longer used table\n\t$GLOBALS['egw_setup']->oProc->DropTable('egw_kb_files');\n\n\treturn $GLOBALS['setup_info']['phpbrain']['currentver'] = '1.5.003';\n}", "title": "" }, { "docid": "3b05123a9ec3e64ac3b1d7af49e15921", "score": "0.56686145", "text": "function muplugin_on_uninstall() {\n if( ! current_user_can( 'activate_plugins')) return;\n \n /* -------------------- REMOVE ALL CREATED PLUGIN TABLES -------------------- */\n }", "title": "" }, { "docid": "5321457b6849fba62faa0c5025186b20", "score": "0.5661441", "text": "public function uninstall() {\n\t\t$this->load->model('setting/setting');\n\t\t$this->model_setting_setting->deleteSetting('payment_blockonomics');\n $this->db->query('DROP TABLE IF EXISTS `' .DB_PREFIX. 'blockonomics_bitcoin_orders`;');\n\t}", "title": "" }, { "docid": "b5229f786b856c96423700767b1861df", "score": "0.5654159", "text": "function haki_uninstall(){\n\t\n // global $wpdb;\n\t\n // $table = $wpdb->prefix . \"member\";\n // $structure = \"drop table if exists $table\";\n // $wpdb->query($structure);\n\n\t// $table2 = $wpdb->prefix . \"haki\";\n // $structure2 = \"drop table if exists $table2\";\n // $wpdb->query($structure2);\n}", "title": "" }, { "docid": "fd231a3942d2dc624c3e2ee84ffc8104", "score": "0.56499493", "text": "public function uninstall()\n {\n return parent::uninstall();\n }", "title": "" }, { "docid": "e0da6970ab3d19f3b82fd75b9f3c1adb", "score": "0.5648583", "text": "public function onUninstall(ProviderModel $provider){}", "title": "" }, { "docid": "0423d1656f6fe25567c64f7197cfdcab", "score": "0.564495", "text": "public function upgrade() {\n\t\t//it should be in the same format as sql in setup method\n\t\t//if you need to drop column you must use $wp_query as dbDelta function can't remove columns\n\t\t//before you write upgrade code upgrade table version in constructor\n\t}", "title": "" } ]
40f932324c93083d88203cfe9d186b48
getProducts Retrieve an array of products matching the provided parameters Example: $creditCardList = $compareEngineClient>getProducts(array( 'channel' => 'creditcards', 'query' => array( 'companyName' => array( '$in' => array('HSBC') ), 'cardProvider' => array( '$in' => array('Mastercard') ) ), 'sort' => array( 'lowestMonthlyFlatRate' => 1, 'computedLaprAverage' => 1 ), 'limit' => 15, 'offset' => 30 ));
[ { "docid": "1fe452620a9da7bbf3b1b7e2ec84db39", "score": "0.61161387", "text": "public function getProducts($params=array(), $options=array()) {\n $options = $this->populateRequestOptions($params, $options);\n $response = $this->get('products', $options);\n return $response->json();\n }", "title": "" } ]
[ { "docid": "06e4d762490fa97b589c95542d8d0939", "score": "0.6619767", "text": "public function get($products)\n {\n return (new GetProductsRequest())\n ->search($products);\n }", "title": "" }, { "docid": "52784114ee697a2864153c21937dba4a", "score": "0.656494", "text": "function getProductsArray(array $parameters = array());", "title": "" }, { "docid": "80f138915024b9cefcf7bd78b189052c", "score": "0.6554037", "text": "public function getProducts()\n\t{\n\t\treturn $this->makeRequest('GET','products');\n\t}", "title": "" }, { "docid": "ab139efb35475eeb6851959584d5e60b", "score": "0.65178645", "text": "public function listProducts() {\n // products that we inserted, to demonstrate paging.\n $parameters = array('maxResults' => self::BATCH_SIZE - 1);\n $products =\n $this->service->products->listProducts($this->merchant_id, $parameters);\n $count = 0;\n // You can fetch all items in a loop. We limit to looping just 3\n // times for this example as it may take a long time to finish if you\n // already have many products.\n while (!empty($products->getResources()) && $count++ < 3) {\n foreach ($products->getResources() as $product) {\n printf(\"%s %s\\n\", $product->getId(), $product->getTitle());\n }\n // If the result has a nextPageToken property then there are more pages\n // available to fetch\n if (empty($products->getNextPageToken())) {\n break;\n }\n // You can fetch the next page of results by setting the pageToken\n // parameter with the value of nextPageToken from the previous result.\n $parameters['pageToken'] = $products->nextPageToken;\n $products = $this->service->products->listProducts($this->merchant_id,\n $parameters);\n }\n }", "title": "" }, { "docid": "63c9e7b94c61abaa6fadf2770f9f0a3e", "score": "0.64783335", "text": "public function products($product='') {\n\t\t\t###############################################\n\t\t\t## Get List of Purchased Products\t\t\t###\n\t\t\t###############################################\n\t\t\t$bind_params = array();\n\n\t\t\t// Prepare Query\n\t\t\t$get_products_query = \"\n\t\t\t\tSELECT\tp.id,\n\t\t\t\t\t\tdate_format(cp.expire_date,'%c/%e/%Y') expire_date,\n\t\t\t\t\t\tcp.quantity,\n\t\t\t\t\t\tunix_timestamp(sysdate()) - unix_timestamp(cp.expire_date) expired,\n\t\t\t\t\t\tpt.group_flag\n\t\t\t\tFROM\tonline_product.customer_products cp,\n\t\t\t\t\t\tproduct.products p,\n\t\t\t\t\t\tproduct.product_types pt\n\t\t\t\tWHERE\tcp.customer_id = ?\n\t\t\t\tAND\t\tp.product_id = cp.product_id\n\t\t\t\tAND\t\tp.type_id = pt.type_id\n\t\t\t\tAND\t\tcp.parent_id = 0\n\t\t\t\tAND\t\t(cp.expire_date > sysdate() \n\t\t\t\tOR\t\tcp.quantity > 0\n\t\t\t\tOR\t\tpt.group_flag = 1)\n\t\t\t\tAND\t\tcp.void_flag = 0\n\t\t\t\";\n\t\t\tarray_push($bind_params,$this->id);\n\n\t\t\t// Conditional\n\t\t\tif (isset($product) && $product) {\n\t\t\t\t$get_products_query .= \"\n\t\t\t\tAND p.sku = ?\";\n\t\t\t\tarray_push($bind_params,$product);\n\t\t\t}\n\n\t\t\t// Execute Query\n\t\t\t$rs = $GLOBALS['_database']->Execute($get_products_query,$bind_params);\n\t\t\tif ($rs->ErrorMsg()) {\n\t\t\t\t$this->SQLError($GLOBALS['_database']->ErrorMsg());\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\t$products = array();\n\t\t\twhile ($record = $rs->FetchRow()) {\n\t\t\t\t$product = new \\Product\\Item($product['id']);\n\t\t\t\tarray_push($products,$product);\n\t\t\t}\n\t\t\treturn $products;\n\t\t}", "title": "" }, { "docid": "af0b55288efc1116f9e68ef8969c68a2", "score": "0.64709854", "text": "public function getProducts($filters = []) {\n\n return $this->getResults($this->PRODUCTS, $filters);\n\n }", "title": "" }, { "docid": "b0f288db6e35113ad247161d1d114205", "score": "0.6470787", "text": "public function listProducts()\n {\n return $this->request('GET', '/products');\n }", "title": "" }, { "docid": "75b20911e79330ec4a31af66d65a57b7", "score": "0.64687324", "text": "private function get_products( ){\n\t\tif( !$this->is_product_details )\n\t\t\t$result = $this->mysqli->get_product_list( $this->filter->get_where_query(), $this->filter->get_order_by_query( $this->page_options ), $this->paging->get_limit_query(), $_SESSION['ec_cart_id'] );\n\t\telse\n\t\t\t$result = $this->mysqli->get_product_list( $this->filter->get_where_query(), $this->filter->get_order_by_query( $this->page_options ), \"\", $_SESSION['ec_cart_id'] );\n\t\t\t\n\t\tif( count( $result ) > 0 )\n\t\t\t$this->num_products = $result[0][\"product_count\"];\n\t\telse\n\t\t\t$this->num_products = 0;\n\t\t\n\t\tfor($i=0; $i<count($result); $i++){\n\t\t\t\n\t\t\t$product = new ec_product( $result[$i], 0, $this->get_is_details( ), 0, $i, $this->page_options );\n\t\t\tarray_push($this->products, $product);\n\t\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.6368145", "text": "public function getProducts();", "title": "" }, { "docid": "c20340ae0b2093bfd11c5cd28344e710", "score": "0.6368145", "text": "public function getProducts();", "title": "" }, { "docid": "4eeaa7fa64cca060e8294b20194024ff", "score": "0.6354674", "text": "public function getProducts($data)\n {\n return $this->makeRequest('GET', 'products.json', $data);\n }", "title": "" }, { "docid": "9010453f2205f4e80fad8720517e5d3b", "score": "0.6344076", "text": "public function productsAction()\r\n {\r\n $requestObject = Mage::app()->getRequest();\r\n $model = Mage::getModel('highstreet_hsapi/products');\r\n \r\n $products = $model->getProductsForResponse($requestObject->getParam('additional_attributes'), \r\n $requestObject->getParam('order'), \r\n $requestObject->getParam('range'), \r\n $requestObject->getParam('filter'),\r\n $requestObject->getParam('search'),\r\n $requestObject->getParam('id'),\r\n $requestObject->getParam('hide_attributes'),\r\n $requestObject->getParam('hide_filters'), \r\n $requestObject->getParam('include_configuration_details'),\r\n $requestObject->getParam('include_media_gallery'));\r\n\r\n if ($products == $model::PRODUCTS_ERROR_NOT_FOUND) {\r\n $this->_respondWith404();\r\n return false;\r\n } else if ($products == $model::PRODUCTS_ERROR_OUT_OF_RANGE) {\r\n $this->_respondWith403();\r\n return false;\r\n }\r\n\r\n $this->_JSONencodeAndRespond($products);\r\n }", "title": "" }, { "docid": "caf5c7113232c3416df2b1e0c8c16544", "score": "0.63271356", "text": "public function products($params = [])\n {\n if(empty($params)) {\n return $this->curl->get('products');\n }\n\n $new_params = '';\n foreach($params as $param => $value) {\n if($param == 'customerName') {\n $new_params .= \"customerName={$value}&\";\n }\n if($param == 'itemKeyword') {\n $new_params .= \"itemKeyword={$value}&\";\n }\n if($param == 'modifyDateStart') {\n $new_params .= \"modifyDateStart={$value}&\";\n }\n if($param == 'modifyDateEnd') {\n $new_params .= \"modifyDateEnd={$value}&\";\n }\n if($param == 'createDateStart') {\n $new_params .= \"createDateStart={$value}&\";\n }\n if($param == 'createDateEnd') {\n $new_params .= \"createDateEnd={$value}&\";\n }\n if($param == 'orderDateStart') {\n $new_params .= \"orderDateStart={$value}&\";\n }\n if($param == 'orderDateEnd') {\n $new_params .= \"orderDateEnd={$value}&\";\n }\n if($param == 'orderNumber') {\n $new_params .= \"orderNumber={$value}&\";\n }\n if($param == 'orderStatus') {\n $new_params .= \"orderStatus={$value}&\";\n }\n if($param == 'paymentDateStart') {\n $new_params .= \"paymentDateStart={$value}&\";\n }\n if($param == 'paymentDateEnd') {\n $new_params .= \"paymentDateEnd={$value}&\";\n }\n if($param == 'storeId') {\n $new_params .= \"storeId={$value}&\";\n }\n if($param == 'sortBy') {\n $new_params .= \"sortBy={$value}&\";\n }\n if($param == 'sortDir') {\n $new_params .= \"sortDir={$value}&\";\n }\n if($param == 'page') {\n $new_params .= \"page={$value}&\";\n }\n if($param == 'pageSize') {\n $new_params .= \"pageSize={$value}&\";\n }\n }\n $new_params = rtrim($new_params,'&');\n return $this->curl->get(\"products?{$new_params}\");\n }", "title": "" }, { "docid": "2b36f31e9919c1d22651f74f83c83d78", "score": "0.6296098", "text": "function get_products_shop(){\r\n $query = \"SELECT * FROM Products\";\r\n $args = array();\r\n get_products($query,$args);\r\n }", "title": "" }, { "docid": "69c90e8373bd627bf88e5a9bf0bf9731", "score": "0.6196199", "text": "function getAllProducts($filter, $limit = null, $page = null, $getFromCache = true) {\n if ($limit !== null) {\n $start = $limit * ($page - 1);\n $filter['limit'] = $limit; \n $filter['offset'] = $start; \n }\n\n \n $selectCustom = $this->getAllProductsSelect($filter);\n \n $key = 'DEVICEPRODUCT_KEY_' . md5((string) $selectCustom);\n $cache = Zend_Registry::get('cache');\n if ((($rows = $cache->get($key)) === false) || !$getFromCache) {\n $db = Zend_Registry::get('db');\n $rows = $db->fetchAll($selectCustom);\n $cache->set($rows, $key); \n } \n $this->_productCount = count($rows);\n\n $productIds = new stdClass();\n foreach ($rows as $row) {\n $productIds->{$row->product_id} = new stdClass();\n $productIds->{$row->product_id}->product_id = $row->product_id;\n }\n return $productIds;\n }", "title": "" }, { "docid": "6e22b754ae87fb49da80d37ea57dd26a", "score": "0.61529577", "text": "public function getProducts() {\n /* Detect category */\n $current_category = Mage::registry('current_category');\n if($current_category) {\n $this->getAllProductsByCategory($current_category);\n }\n\n /* Detect search */\n if(Mage::app()->getRequest()->getModuleName() == 'catalogsearch') {\n $text_param = $this->getRequest()->getParam('q');\n $this->getAllProductsBySearchText($text_param);\n }\n\n return $this->getSwatchesProductCollection();\n }", "title": "" }, { "docid": "9f12740709a57ac4e0892d9599533091", "score": "0.6113029", "text": "public function getListOfProducts_get()\n\t{\n\t\t$fields = array('product_id','name as product_name','abbr as product_abbr');\n\t\t$where_condition_array = array('isactive' => 1);\n\t\t$result_data = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,PRODUCTS);\n\t\tif(count($result_data))\n\t\t{\n\t\t\t\tforeach($result_data as $key => $product)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$fields = array('subproduct_id','name as subproduct_name','abbr as subproduct_abbr');\n\t\t\t\t\t\t\t$where_condition_array = array('isactive' => 1,'fk_product_id' => $product['product_id']);\n\t\t\t\t\t\t\t$subproducts = $this->PD_Model->selectCustomRecords($fields,$where_condition_array,SUBPRODUCTS);\n\t\t\t\t\t\t\t//array_push($result_data[$key],$subproducts);\n\t\t\t\t\t\t\t$result_data[$key]['subproducts'] = $subproducts;\n\t\t\t\t\t\t}\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t$data['dataStatus'] = true;\n\t\t\t\t\t\t$data['status'] = REST_Controller::HTTP_OK;\n\t\t\t\t\t\t$data['records'] = $result_data;\n\t\t\t\t\t\t$this->response($data,REST_Controller::HTTP_OK);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\t\t\t$data['dataStatus'] = false;\n\t\t\t\t\t\t$data['status'] = REST_Controller::HTTP_NO_CONTENT;\n\t\t\t\t\t\t$this->response($data,REST_Controller::HTTP_OK);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "aed66d622e1e66853e913959020028b1", "score": "0.6097774", "text": "public function getProducts($criteria = [], $token = '', $user = '', $password = '')\n {\n\n if (! Provider::authenticate($token, $user, $password)) {\n header(\"Status: 401\");\n throw new SoapFault('SOAP-ENV:Client', 'Incorrect credentials.');\n }\n\n return Provider::findProductsBy(self::arrayOfKeyValueToArray($criteria));\n\n }", "title": "" }, { "docid": "eba349fd2e4399953303a2b1461d14ab", "score": "0.60908973", "text": "public function GetProduct(GetProduct $parameters)\n {\n return $this->__soapCall('GetProduct', array($parameters));\n }", "title": "" }, { "docid": "a314bba61f00fd1a33859a117275dea9", "score": "0.6089608", "text": "private function getProducts( $product ) {\n\n return $this->_wwof_product_listings->getProducts( $product );\n\n }", "title": "" }, { "docid": "61f281e8ff723826e4f64cf0df9feee7", "score": "0.60864353", "text": "public function getProducts()\n {\n // TODO: Implement getProducts() method.\n }", "title": "" }, { "docid": "723a923c90e583ea5fe6d5baeefb86e9", "score": "0.60762244", "text": "function getProduct();", "title": "" }, { "docid": "0b79ac06c9ca1455731aa0890f61ea1d", "score": "0.60502315", "text": "private function getProductsAction()\n {\n $products_per_page = 50;\n $category_id = waRequest::post(\"category\", 0, waRequest::TYPE_INT);\n $page = waRequest::post(\"page\", 1, waRequest::TYPE_INT);\n if ($page < 1) {\n $page = 1;\n }\n $offset = ($page - 1) * $products_per_page;\n\n $collection = new shopFlexdiscountProductsCollection('category/' . $category_id);\n $this->response['products'] = $collection->getProducts('*', $offset, $products_per_page);\n if ($this->response['products']) {\n $primary_currency = wa()->getConfig()->getCurrency(true);\n foreach ($this->response['products'] as &$p) {\n // Генерируем ссылки для изображений\n if ($p['image_id']) {\n $p['image'] = shopImage::getUrl(array('id' => $p['image_id'], 'filename' => $p['image_filename'], 'product_id' => $p['id'], 'ext' => $p['ext']), '48x48');\n }\n $p['name_secure'] = shopFlexdiscountHelper::escape($p['name']);\n $p['price'] = shop_currency($p['price'], $primary_currency, $primary_currency);\n if ($p['compare_price']) {\n $p['compare_price'] = shop_currency($p['compare_price'], $primary_currency, $primary_currency);\n }\n unset($p['skus']);\n }\n }\n $count = $collection->count();\n $max_page = ceil($count / $products_per_page);\n if ($max_page == $page) {\n $this->response['end'] = true;\n } else {\n $this->response['end'] = false;\n $this->response['page'] = $page + 1;\n }\n }", "title": "" }, { "docid": "2a056428c72fca965bae67f28b4feadb", "score": "0.6031905", "text": "public function getAvailableProducts($product = array(), $productOptions = array()){\n\n\t\t// Get the model instance\n\t\tif(isset($product['CartProduct']['plugin']) && !empty($product['CartProduct']['plugin'])){\n\t\t\t$Model = ClassRegistry::init($product['CartProduct']['plugin'] . '.' . $product['CartProduct']['model']);\n\t\t} else {\n\t\t\t$Model = ClassRegistry::init($product['CartProduct']['model']);\n\t\t}\n\n\t\t// Preparing to find\n\t\t$options['joins'] = array(\n array(\n 'table' => 'cart_products',\n 'alias' => 'CartProduct',\n 'type' => 'INNER',\n 'conditions' => array(\n 'CartProduct.foreign_id = ' . $product['CartProduct']['model'] . '.id'\n )\n )\n );\n\t\t$options['conditions']['CartProduct.model'] = $product['CartProduct']['model'];\n\t\t$options['conditions']['CartProduct.alias'] = $product['CartProduct']['alias'];\n\t\t$options['conditions']['CartProduct.plugin'] = $product['CartProduct']['plugin'];\n\n\t\t$options['fields'] = array('CartProduct.*', $product['CartProduct']['model'] . '.*');\n\n\t\t$options = $this->_mergeFindOptions($options, $productOptions);\n\t\treturn $Model->find('all', $options);\n\t}", "title": "" }, { "docid": "e41eaf13208864362112048621bca60c", "score": "0.60265774", "text": "protected function getProductsApi($cart)\n {\n $products = array();\n\n foreach ($cart->getProducts() as $product) {\n $obj = new Product((int) $product['id_product']);\n $products[] = array( /* */\n 'CartProductId' => $product['id_product'], /* */\n 'CartProductName' => $product['name'], /* */\n 'CartProductUnitPrice' => $product['price'], /* */\n 'CartProductQuantity' => $product['quantity'], /* */\n 'CartProductBrand' => $obj->manufacturer_name, /* */\n 'CartProductMPN' => $product['ean13'], /* */\n 'CartProductCategoryName' => $product['category'], /* */\n 'CartProductCategoryID' => $product['id_category_default'] /* */\n );\n }\n\n return $products;\n }", "title": "" }, { "docid": "7a7bdd73eb5302839fe0cbc9ce6a2fb0", "score": "0.59940505", "text": "public function productList() \n\t{\n\t\t$sth = $this->DB->prepare(\"SELECT product_id, product_name, product_description, product_short_desc, product_brand FROM products\");\n\t\t$sth->execute();\n\t\treturn $sth->fetchAll();\t\n\t}", "title": "" }, { "docid": "0f9d3d8570487703d2ee31a2498f99c9", "score": "0.5985449", "text": "public function callAPISearchProducts563()\n {\n $session = $this->currentSession->testStaffLogin();\n $serviceInfo = [\n 'rest' => [\n 'resourcePath' => self::PRODUCT_RESOURCE_PATH.self::SUB_PRODUCT_RESOURCE_PATH.$session,\n 'httpMethod' => RestRequest::HTTP_METHOD_GET,\n ],\n ];\n $results = $this->_webApiCall($serviceInfo);\n //\\Zend_Debug::dump($results);\n return $results;\n }", "title": "" }, { "docid": "4bc6f864b2d56af0e1c05c95c6444655", "score": "0.5978008", "text": "public function getProducts($products) {\r\n \r\n if(is_null($products)) {\r\n return [];\r\n }\r\n \r\n //An array containing the products\r\n $data = [];\r\n \r\n //List of products in the basket\r\n foreach ($products as $product){ \r\n array_push($data, array(\r\n \"name\" => $product->getName(),\r\n \"category\" => $product->getCategory()->getName()\r\n ));\r\n }\r\n \r\n return $data;\r\n \r\n }", "title": "" }, { "docid": "184586eb97ecefedc9652ac4da1c738e", "score": "0.5974519", "text": "public function getAllProducts() {\n\n $conn = new mysqli($this->server, $this->user, $this->password, $this->db);\n $conn->set_charset('utf8');\n $query = \"call sp_getAllProducts()\";\n $result = mysqli_query($conn, $query);\n mysqli_close($conn);\n\n $array = [];\n while ($row = mysqli_fetch_array($result)) {\n $currentProduct = new Product($row['id_product'], $row['name'], $row['description'], $row['path_image'], $row['id_organization']);\n array_push($array, $currentProduct);\n }\n return $array;\n }", "title": "" }, { "docid": "c9c48d8f9975189aa39fd44692cca8b4", "score": "0.59638184", "text": "function getAllAvailableProducts(){\n\n\t\t//log it\n \t$logData = array('action' => __FUNCTION__, 'message' => 'Use of deprecated function', 'data' => json_encode($_POST));\n \thelpers::logIt($logData);\n\n\t\t$q = \"SELECT `Product`.*, `base_Product_Channel`.*, `pt_Name`\n\t\t\t\tFROM `base_Product_Channel`\n\t\t\t\tJOIN `Product`\n\t\t\t\tON `p2c_ProductID` = `prod_ID`\n\t\t\t\tJOIN `ProductType`\n\t\t\t\tON `pt_ID` = `prod_ProductTypeID`\n\n\t\t\t\t \";\n\t\t$res = $this->db->query($q);\n\t\treturn $res->fetch_all(MYSQLI_ASSOC);\n\t}", "title": "" }, { "docid": "0f0188b2aa14519dceaf3b480725bfe5", "score": "0.595994", "text": "function getProducts() {\n\t\tif (USE_DB) {\n\t\t\t$succeed = true;\n\t\t\t$msg = null;\n\t\t\t$products = null;\n\t\t\t\n\t\t\t// read from product table\n\t\t\t$q = \"SELECT * FROM tbl_product\";\n\t\t\tif ($result = mysql_query($q)) {\n\t\t\t\twhile ($row = mysql_fetch_assoc($result)) {\n\t\t\t\t\t$products[] = array(\"prod_id\" => $row['prod_id'], \"prod_name\" => $row['prod_name'], \"prod_desc\" => $row['prod_desc'], \"prod_image\" => $row['prod_image']);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$succeed = false;\n\t\t\t\t$msg = mysql_error();\n\t\t\t}\n\t\t\treturn array('succeed' => $succeed, 'msg' => $msg, 'products' => $products);\n\t\t} else {\n\t\t\t$resp = array(\"succeed\" => true, \"products\" =>\n\t\t\t\tarray(\"prod_id\" => 1, \"prod_name\" => \"item1\", \"prod_desc\" => \"item1 description\", \"prod_image\" => \"./img/radioactive_blue.jpg\"),\n\t\t\t\tarray(\"prod_id\" => 2, \"prod_name\" => \"item2\", \"prod_desc\" => \"item2 description\", \"prod_image\" => \"./img/dry_cow_dung.jpg\"),\n\t\t\t\tarray(\"prod_id\" => 3, \"prod_name\" => \"item3\", \"prod_desc\" => \"item3 description\", \"prod_image\" => \"./img/bill.jpg\")\n\t\t\t);\n\t\t\treturn $resp;\n\t\t}\n\t}", "title": "" }, { "docid": "ff789269f334a7d275871764874e23ef", "score": "0.59454983", "text": "public function listProducts()\n {\n $query = new Query();\n\n $query->select(['*'])\n ->from('products')\n ->where(['>=', 'num', 1]);\n\n if(!empty($this->f_articul))\n $query->andFilterCompare('articul', $this->f_articul);\n if(!empty($this->f_name))\n $query->andFilterCompare('name', $this->f_name);\n if(!empty($this->f_description))\n $query->andFilterCompare('description', $this->f_description, 'like');\n if(!empty($this->f_price_min))\n $query->andFilterCompare('price', '>='.$this->f_price_min);\n if(!empty($this->f_price_max))\n $query->andFilterCompare('price', '<='.$this->f_price_max);\n\n $rows = $query->orderBy(['id' => SORT_DESC])\n ->all();\n\n return $rows;\n }", "title": "" }, { "docid": "1bf96e19696919e1fc11bc830ef482d3", "score": "0.5936801", "text": "private function getListPromotionProducts()\n {\n /*\n * Parameters for api call \n */\n \n $fields_to_return = array(\n 'totalResults',\n 'productId',\n 'productUrl',\n 'productTitle',\n 'salePrice',\n 'volume',\n '30daysCommission', \n );\n\n $options = array(\n 'categoryId' => 3,\n 'packageType' =>'piece',\n 'pageSize' => 40,\n 'volumeFrom' => 100,\n 'originalPriceFrom' => 11.00,\n 'pageNo' => 1,\n 'sort' => 'commissionRateDown',//'volumeDown',\n 'fields' => implode(',', $fields_to_return),\n );\n\n $apiName = 'api.listPromotionProduct';\n \n /*\n * Make api call to get list of products \n */\n\n $requestUrl = $this->buildRequestUrl($apiName, $options);\n\n $jsonFeed1 = $this->sendRequest($requestUrl);\n\n $feedArray = json_decode($jsonFeed1, true);\n\n $totalResults = $feedArray['result']['totalResults'];\n\n $totalPages = ceil($totalResults/$options['pageSize']);\n \n $products = $feedArray['result']['products'];\n\n echo 'products array size is '.count($products).\"\\n\\n\";\n\n if($totalPages > 1) {\n //call api for every subsequent page and append the returned results to the same feedFile as the 1st page of results that got returned\n echo \"we're gonna cycle through $totalPages pages of api results.\\n\\n\"; \n // get results for each page and append onto string $jsonFeed\n for ($i=2; $i <= $totalPages ; $i++) { \n // for ($i=2; $i <= 3 ; $i++) { // cap it at 3 for now assuming we don't want more than 120 products per category intially\n\n $options['pageNo'] = $i;\n $requestUrl = $this->buildRequestUrl($apiName, $options);\n $jsonFeed2 = $this->sendRequest($requestUrl); //what's a practical max limit to json string length? should I prepare for that by setting a cap to my $i???\n // echo $jsonFeed.\"\\n\";\n // continue;\n $feedArray2 = json_decode($jsonFeed2, true);\n // $r = array_merge($feedArray['result']['products'], $feedArray2['result']['products']);\n $products = array_merge($products, $feedArray2['result']['products']);\n echo 'products array size is '.count($products).\"\\n\\n\";\n }\n }\n return $products;\n }", "title": "" }, { "docid": "0e46760b69d981f968bb97727b0b6c8a", "score": "0.5890289", "text": "function productListing_get()\n {\n \t$data = array();\n \t$data[ getSysConfig( \"rest_response_field_name\" ) ] = cmn_vw_productListing( true ); \n \t\n \t$data[ getSysConfig( \"rest_status_field_name\" ) ] = \"success\";\n \t$data[ getSysConfig( \"rest_message_field_name\" ) ] = \"\";\n \t$this->response( $data, 200 );\n }", "title": "" }, { "docid": "04e3f00b68a77ad444f23f75c8a01301", "score": "0.58879536", "text": "public function getProducts()\n {\n $page=($this->getRequest()->getParam('p'))? $this->getRequest()->getParam('p') : 3;\n //get values of current limit. If not the param value then it will set to 1\n $pageSize=($this->getRequest()->getParam('limit'))? $this->getRequest()->getParam('limit') : 4;\n $customerId = $this->customerSession->getCustomer ()->getId ();\n $id=$customerId;\n $collection = $this->_collection->create ();\n $productcollection = $collection->addAttributeToSelect ( '*' )->addAttributeToFilter (\n [['attribute' => 'vendor_id', 'eq' =>$id ]] );\n $productcollection->setPageSize($pageSize);\n $productcollection->setCurPage($page);\n return $productcollection;\n }", "title": "" }, { "docid": "e709e57f5519ee1286d600716285e357", "score": "0.5887824", "text": "public function getProducts()\n {\n $this->authenticate();\n\n $properties = [\n [\n 'name' => 'status_ind',\n 'value' => '1',\n 'type' => self::PROPERTY_TYPE_INTEGER\n ],\n [\n 'name' => 'quote_def_type_ind',\n 'value' => '0',\n 'type' => self::PROPERTY_TYPE_INTEGER\n ]\n ];\n\n $xml = $this->prepareRequestBody(\n 'GetReferenceDataItem',\n 'urn:ReferenceData',\n 'messageid',\n 'TPT',\n 'MKT_QUOTE_DEFINITION',\n $properties,\n true,\n true\n );\n\n $headers = $this->prepareHeaders('urn:ReferenceData::GetReferenceDataItem', $xml, true);\n return $this->sendRequest($headers, $xml, true);\n }", "title": "" }, { "docid": "4c462b5e549f8c5ce7d1da5a49426c81", "score": "0.58769906", "text": "public function getProducts($attributes = [])\n {\n return $this->request('get', 'products', $attributes);\n }", "title": "" }, { "docid": "a2749c3604c0dd2c8a72d09f1de091af", "score": "0.5876956", "text": "function getListProducts(): array;", "title": "" }, { "docid": "6a0eea0378f95ec0c8ebb677b8bbba58", "score": "0.58660895", "text": "public function getProducts() {\n\t\t$this->db->setQuery(\"SELECT * FROM products\");\n\t\t$result = $this->db->executeQuery();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "b91cc5e125705b015a6da2aaf3c17755", "score": "0.5863357", "text": "function getProducts(){\n\t\t$stmt = $this->con->prepare(\"SELECT productID, productName, productType, productBrand FROM product_db\");\n\t\t$stmt->execute();\n\t\t$stmt->bind_result($productID, $productName, $productType, $productBrand);\n\t\t\n\t\t$products = array(); \n\t\t\n\t\twhile($stmt->fetch()){\n\t\t\t$product = array();\n\t\t\t$product['productID'] = $productID; \n\t\t\t$product['productName'] = $productName; \n\t\t\t$product['productType'] = $productType; \n\t\t\t$product['productBrand'] = $productBrand;\n\t\t\t \n\t\t\t\n\t\t\tarray_push($products, $product); \n\t\t}\n\t\t\n\t\treturn $products; \n\t}", "title": "" }, { "docid": "1eed145d9fa95398e72fb182ef402779", "score": "0.5852419", "text": "public function getProductsByCp($deviceId, $cpId, $limit=null) {\n\n\n $db = Zend_Registry::get('db');\n $productsModel = new Model_Product();\n\n //if( !is_array($deviceId) || count($deviceId) == 0 )\n if (empty($deviceId)) {\n\n $select = $productsModel->select()\n ->setIntegrityCheck(false)\n ->from('products')\n ->columns(array('thumbnail as thumb', 'price as cost', 'id as product_id'))\n ->where('products.user_id = ' . $cpId)\n ->where(\"products.status = 'APPROVED'\")\n ->where('products.deleted <> 1')\n ->where('products.inapp IS NULL')\n ->order('products.id DESC')\n ->group('products.name');\n\n\n\n\n return $select;\n } else {\n\n if (is_array($deviceId))\n $devices = implode($deviceId, \",\");\n else\n $devices = $deviceId;\n\n\n $select = $productsModel->select()\n ->from('products')\n ->setIntegrityCheck(false)\n ->join('product_builds', 'product_builds.product_id = products.id')\n ->join('build_devices', 'product_builds.id = build_devices.build_id')\n ->join('users', 'users.id = products.user_id', array('users.id as user_id'))\n ->where(\"build_devices.device_id IN($devices)\")\n ->where('users.id = ' . $cpId)\n ->where(\"products.status = 'APPROVED'\")\n ->where('products.deleted <> 1')\n ->where('products.inapp IS NULL')\n ->order('products.id DESC')\n ->group('products.name');\n\n\n return $select;\n }\n\n//\n// $modelProdDevice = new Model_ProductDevices();\n// $filter = array();\n// $filter = array(\n// 'where' => array('users.id = ' . $cpId),\n// 'limit' => $limit\n// );\n// $resultRows = $modelProdDevice->getProducts($deviceId, $filter);\n// return $resultRows;\n }", "title": "" }, { "docid": "00d0e8bf74bde33655ff0ce7f7da83fb", "score": "0.5842332", "text": "function _getVMProducts($vmproductsearch='', $setLimit = null){\n\t\t$db = JFactory::getDBO();\n\t\t$query = 'SELECT b.product_name, a.virtuemart_product_id, b.product_s_desc, a.product_sku FROM #__virtuemart_products AS a ';\n\t\t$query .= ' LEFT JOIN #__virtuemart_products_en_gb AS b ON a.virtuemart_product_id = b.virtuemart_product_id ';\n\n\t\tif (!empty($vmproductsearch)){\n\t\t\t$query .= ' WHERE a.virtuemart_product_id LIKE \\'%' . $vmproductsearch . '%\\' OR b.product_s_desc LIKE \\'%' . $vmproductsearch . '%\\' OR b.product_name LIKE \\'%' . $vmproductsearch . '%\\' OR a.product_sku LIKE \\'%' . $vmproductsearch . '%\\'';\n\t\t}\n\n\t\t$query .= ' ORDER BY a.`virtuemart_product_id`';\n\t\tif (!is_null($setLimit) && $setLimit->start != -1 && $setLimit->end) $query .= ' LIMIT ' . $setLimit->start . ', ' . $setLimit->end;\n\t\t$db->setQuery($query);\n\n\t\t$products =$db->loadObjectList();\n\t\treturn $products;\n\t}", "title": "" }, { "docid": "241b93c0eec2144e4aca65b9fb17acea", "score": "0.58362275", "text": "function list_user_products()\n {\n $url = $this->url . '/user_products';\n\n $headers = array(\"Content-Type: application/json; charset=utf-8\", \"API-USERNAME: $this->username\", \"API-KEY: $this->password\");\n\n\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($curl);\n\n curl_close($curl);\n\n echo '<pre>';\n print_r(json_decode($result));\n echo '</pre>';\n }", "title": "" }, { "docid": "445293caec491e73dc922feb025ea782", "score": "0.58277303", "text": "public function getProductsFromApi(): array\n\t{\n\t\t$items = [];\n\t\t$data = \\App\\Json::decode($this->connector->request('GET', $this->config->get('store_code') . '/V1/products?' . $this->getSearchCriteria($this->config->get('products_limit'))));\n\t\tif (!empty($data['items'])) {\n\t\t\tforeach ($data['items'] as $item) {\n\t\t\t\t$items[$item['id']] = $item;\n\t\t\t}\n\t\t}\n\t\treturn $items;\n\t}", "title": "" }, { "docid": "b12a267359f1af478fa3ac2fe34487df", "score": "0.5806354", "text": "public function products()\n {\n if ($category = $this->getCategory(Input::get('brand')))\n {\n $this->productsAlgorithm->byCategory($category);\n }\n\n if ($color = $this->getColor(Input::get('color')))\n {\n $this->productsAlgorithm->byColor($color);\n }\n\n if($model = Input::get('model'))\n {\n $this->productsAlgorithm->byModel($model);\n }\n\n $productsTitle = $this->getProductsTitle( $category, $color );\n\n $products = $this->productsAlgorithm->available()->orderByDate()->paginate(12);\n\n $this->layout->template->addPart('body', array('products'), compact('products', 'productsTitle'));\n }", "title": "" }, { "docid": "99f30495f6c1248ac3bdd62185a053a7", "score": "0.5803939", "text": "public function getProducts()\n\t{\n\t\t$mysqli = new mysqli(\"127.0.0.1\",\"aaa\",\"bbb\",\"inventory\");\n\t\tif ($mysqli->connect_errno)\n\t\t{\n\t\t\tthrow new SupermarketProductsException(\"failure in connecting the database ... \".$mysqli->connect_error );\n\t\t}\n\t\t\n\t\t//creating the select query\n\t\t$query = \"SELECT id,name,price FROM products\";\n\t\n\t\t//creating the returned array\n\t\t$vec = array();\n\t\t\n\t\t//executing the query\n\t\t$result = $mysqli->query($query);\n\t\tif ($result->num_rows > 0)\n\t\t{\n\t\t\twhile(list($id,$name, $price) = $result->fetch_row())\n\t\t\t{\n\t\t\t\t$productarray = array();\n\t\t\t\t$productarray['id'] = $id;\n\t\t\t\t$productarray['name'] = $name;\n\t\t\t\t$productarray['price'] = $price;\n\t\t\t\t$vec[$id] = $productarray;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new SupermarketProductsException (\"products table is empty\");\n\t\n\t\t}\t\n\t\t$mysqli->close();\n\t\treturn $vec;\n\t}", "title": "" }, { "docid": "c960de93e479e1402702f698adf00598", "score": "0.5799642", "text": "public function getAllProducts() {\n $result = $this->productServices->getAllProducts();\n return $this->response($result);\n }", "title": "" }, { "docid": "4e95ed666b19f4d1fcaccfb8f63e6532", "score": "0.5799302", "text": "public function getProductsAll(){\n\t\t$sqlGetProductsAll = \"select * from products\";\n\t\treturn $resultSet = $this->executeQuery($sqlGetProductsAll, null);\n\t}", "title": "" }, { "docid": "1c6fe78209064168f11ef115930f578b", "score": "0.57953507", "text": "public function getAllProducts(){\n $products = ProductCatalog::getInstance()->viewAllProducts();\n return ($products);\n }", "title": "" }, { "docid": "4e2d406e1423a1b769d126e695a59802", "score": "0.5791605", "text": "function get_products()\n\t{\n\t\t$m_result = array();\n \t$getter = mysql_query(\"select * from product\");\n \twhile($data = mysql_fetch_assoc($getter))\n \t{\n\t\t\t$temp_product = new Detail();\n\t\t\t$temp_product->init($data['product_name'],$data['product_description']);\n\t\t\tarray_push($m_result,$temp_product);\n \t}\n\t\treturn $m_result;\n\t}", "title": "" }, { "docid": "d718c7d6876ca705e45c39de5ceacd3a", "score": "0.5778891", "text": "public function Products() {\n\n if(!isset($_GET['start']) || !is_numeric($_GET['start']) || (int)$_GET['start'] < 1) $_GET['start'] = 0;\n \n $start = (int)$_GET['start'];\n $limit = self::$products_per_page;\n $orderBy = self::$products_ordered_by;\n \n $products = DataObject::get( \n 'Product', \n \"\\\"ProductCategory_Products\\\".\\\"ProductCategoryID\\\" = '\".$this->ID.\"' OR \\\"ParentID\\\" = '\".$this->ID.\"'\", \n $orderBy, \n \"LEFT JOIN \\\"ProductCategory_Products\\\" ON \\\"ProductCategory_Products\\\".\\\"ProductID\\\" = \\\"Product\\\".\\\"ID\\\"\",\n \"{$start}, $limit\"\n ); \n\n $this->extend('updateCategoryProducts', $products);\n\n return $products;\n }", "title": "" }, { "docid": "ca8e7e53ee9b6ce9958af3feee8a0824", "score": "0.57767534", "text": "public static function GetProducts() {\n $products = self::all()->toArray();\n }", "title": "" }, { "docid": "e27ac67737667614b7076fd79fe530cd", "score": "0.57739604", "text": "public function getAvailableProducts()\n {\n return $this->getSoapClient(array_merge(array(), array('__method' => 'getAvailableProducts')))->getAvailableProducts();\n }", "title": "" }, { "docid": "1d9602fa08cddc0a6f2be0a373be0bfe", "score": "0.5768708", "text": "public function getProducts($id) {\n \n $res = $this->p_rep->getAllByID($id, config('settings.list_products'));\n return $res;\n }", "title": "" }, { "docid": "de843273bfda81c0ad8d09698a1fc95a", "score": "0.57580286", "text": "public function GetProductList(GetProductList $parameters)\n {\n return $this->__soapCall('GetProductList', array($parameters));\n }", "title": "" }, { "docid": "20abf04dd33cbd7cb6df1724931260a8", "score": "0.5712134", "text": "public function getAllProducts() {\n\t\t$json = '[\n\t\t\t\t {\n\t\t\t\t \"id\": \"A101\",\n\t\t\t\t \"description\": \"Screwdriver\",\n\t\t\t\t \"category\": \"1\",\n\t\t\t\t \"price\": \"9.75\"\n\t\t\t\t },\n\t\t\t\t {\n\t\t\t\t \"id\": \"A102\",\n\t\t\t\t \"description\": \"Electric screwdriver\",\n\t\t\t\t \"category\": \"1\",\n\t\t\t\t \"price\": \"49.50\"\n\t\t\t\t },\n\t\t\t\t {\n\t\t\t\t \"id\": \"B101\",\n\t\t\t\t \"description\": \"Basic on-off switch\",\n\t\t\t\t \"category\": \"2\",\n\t\t\t\t \"price\": \"4.99\"\n\t\t\t\t },\n\t\t\t\t {\n\t\t\t\t \"id\": \"B102\",\n\t\t\t\t \"description\": \"Press button\",\n\t\t\t\t \"category\": \"2\",\n\t\t\t\t \"price\": \"4.99\"\n\t\t\t\t },\n\t\t\t\t {\n\t\t\t\t \"id\": \"B103\",\n\t\t\t\t \"description\": \"Switch with motion detector\",\n\t\t\t\t \"category\": \"2\",\n\t\t\t\t \"price\": \"12.95\"\n\t\t\t\t }\n\t\t\t\t]';\n\n\t\t$jsonproducts = json_decode($json);\n\n\t\t$products = array();\n\t\tforeach($jsonproducts as $jsonproduct) {\n\t\t\t$products[$jsonproduct->id] = new Product($jsonproduct->id, $jsonproduct->description, $jsonproduct->category, $jsonproduct->price);\n\t\t}\n\n\t\treturn $products;\n\t}", "title": "" }, { "docid": "99538294097754ee53dc9df201e730cc", "score": "0.57055193", "text": "public function productList() {\n\n $collection = Mage::getModel('catalog/product')\n ->getCollection()\n ->addAttributeToSelect(array(\n 'id',\n 'sku',\n 'name',\n 'image',\n 'url_path',\n 'price',\n 'special_price',\n 'special_from_date',\n 'special_to_date',\n 'description',\n 'short_description',\n 'created_at',\n 'updated_at'\n ));\n\n $result = array();\n\n foreach ($collection as $product) {\n\n $result[] = array(\n 'product_id' => $product->getId(),\n 'sku' => $product->getSku(),\n 'name' => $product->getName(),\n 'image' => $product->getImage() != 'no_selection' ? Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'catalog/product' . $product->getImage() : '',\n 'url_path' => $product->getUrlPath(),\n 'price' => $product->getPrice(),\n 'special_price' => $product->getSpecialPrice(),\n 'special_from_date' => $product->getSpecialFromDate(),\n 'special_to_date' => $product->getSpecialToDate(),\n 'description' => $product->getDescription(),\n 'short_description' => $product->getShortDescription(),\n 'created_at' => $product->getCreatedAt(),\n 'updated_at' => $product->getUpdatedAt()\n );\n\n }\n\n return $result;\n\n }", "title": "" }, { "docid": "25f2d7391dac4c747f15a5dabe239274", "score": "0.5699931", "text": "public static function getAllProducts()\n {\n $db = new Database;\n $sql = \"SELECT products.id, products.name, products.image, products.price, products.quantity,\n types.name as type, farmers.name as farmer, farmers.id as farmer_id from products \n LEFT JOIN types ON products.type_id = types.id \n LEFT JOIN farmers ON products.farmer_id = farmers.id \n order by id;\";\n $result = $db->req($sql);\n // Functions::dd($result);\n return $result;\n }", "title": "" }, { "docid": "c0ced1f900f9ca62c600620972226c40", "score": "0.5697408", "text": "public function products($args)\n {\n // Amend options for product type and fields\n $args['post_type'] = CGIT_PRODUCT_POST_TYPE;\n $args['meta_query'] = $this->metaQuery($args);\n\n // Allow sorting by price\n if (isset($args['orderby']) && $args['orderby'] == 'price') {\n $args['orderby'] = 'meta_value_num';\n $args['meta_key'] = 'price';\n }\n\n // Nobody really wants five items by default\n if (!isset($args['posts_per_page'])) {\n $args['posts_per_page'] = -1;\n }\n\n // Get posts\n $items = get_posts($args);\n\n // Generate list of product objects instead of default WP_Post objects\n $products = [];\n\n foreach ($items as $item) {\n $products[] = new Product($item->ID);\n }\n\n return $products;\n }", "title": "" }, { "docid": "0bc4ce3a66fd40b240b77b17ca45185c", "score": "0.5687671", "text": "public function getAllProducts(){\n\t\t$products = Product::all();\n\n\t\t//show all products to client\n\t\tforeach ($products as $key => $value) {\n\t\t\techo $key . ' - ' . $value->name . '<br>';\n\t\t}\n }", "title": "" }, { "docid": "87b245ee1c38bb1feda54fc133e4f94a", "score": "0.5686635", "text": "public function products();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.56795233", "text": "public function getProduct();", "title": "" }, { "docid": "bb297ce3d1545d12aa1542c3177be282", "score": "0.56795233", "text": "public function getProduct();", "title": "" }, { "docid": "0e9d4a73a87c7b9a648098e92f88be91", "score": "0.56692135", "text": "public function getBestsellersProducts();", "title": "" }, { "docid": "69f6c025751e1dfbe6911dec627a34bb", "score": "0.56667304", "text": "public function index()\n {\n return ProductResource::collection($this->productRepo->getFiltered(request()->all()));\n }", "title": "" }, { "docid": "3a914147c44827c25811eca4db8f251c", "score": "0.56589204", "text": "public function products(array $params = []): Response;", "title": "" }, { "docid": "6c1d35ec90b7b1bc2ad5953f2f88fcc3", "score": "0.5657082", "text": "public function getAllProducts() {\n try {\n return \\Akzo\\Product\n ::orderBy('name', 'ASC')\n ->get()\n ->all();\n } catch (\\PDOException $e) {\n $GLOBALS['logger']->info(\"Error: \".$e->getMessage());\n throw new \\InvalidArgumentException(\n \\Akzo\\Product\\ErrorMessages::PROCESS_ERROR, \n \\Native5\\Core\\Http\\StatusCodes::BAD_REQUEST\n );\n }\n \n }", "title": "" }, { "docid": "49e7f7d048554deb997a5fe45f2eb961", "score": "0.56538844", "text": "public function getProducts($startpoint, $max) {\n\t\t return $this->db->runQuery(\"SELECT * FROM \" . MB_PRODUCTS . \" ORDER BY productID DESC LIMIT {$startpoint},{$max}\");\n\t}", "title": "" }, { "docid": "e58ce1022455e40263a0cba7efd98a79", "score": "0.5652873", "text": "public function getProducts($idProduct='',$qty=FALSE,$limit=5,$condition='',$categories=array(),$searchString='',$orderBy='')\n {\n global $db;\n $where='';\n if($idProduct!='')\n {\n $where.=\"id_product='$idProduct'\";\n }\n if($qty&&$idProduct!='')\n {\n $where.=\"AND copies>0\";\n }\n else\n {\n if($qty)\n {\n $where.=\" copies>0\";\n }\n else\n {\n if($idProduct=='')\n $where.=' 1';\n }\n }\n if($condition!='')\n {\n if($where!='')\n $where.=\" AND $condition\";\n else\n $where.=\" $condition\";\n }\n if($searchString!='')\n {\n if($where!='')\n {\n $where.=\" AND name LIKE '%$searchString%'\";\n }\n else\n $where.=\" name LIKE '%$searchString%'\";\n\n }\n if($categories&&count($categories)>0)\n {\n $categories=implode(',', $categories); \n if($where!='')\n $where.=\" AND category_id_category IN($categories)\";\n }\n $q_products= \"SELECT * FROM product where $where Order BY id_product DESC LIMIT $limit\";\n $products = $db->select($q_products);\n return $products;\n \n }", "title": "" }, { "docid": "d57020ecd9c5a69ce3fc17dfd8462470", "score": "0.5646097", "text": "public function getFeaturedProducts($compatibleDevices = null, $limit=10) {\n \n \n $prodID = Zend_Registry::get(\"config\")->nexva->application->widget->id;\n \n $extraConds = $this->getPriceSqlFragment();\n $filter = array(\n 'where' => array('products.is_featured = 1 AND products.id <> ' . $prodID . ' ' . $extraConds),\n //'where' => array('products.is_featured = 1 AND products.id <> ' . $prodID . ' ' . $extraConds.'AND products.user_id NOT IN (SELECT id FROM users WHERE chap_id = 6691)'),\n 'order' => array('RAND()'), //for when this is a web call\n 'union' => array('order' => array('RAND()')), //for when it's mobile. The system unsets the correct index\n 'limit' => isset($limit) ? $limit : 10\n );\n $products = $this->getCompatibleAppsByDeviceId($compatibleDevices, $filter, null, null, false);\n\n $result = array();\n foreach ($products as $product) {\n $result[] = $this->getProductDetailsById($product->product_id);\n }\n return $result;\n }", "title": "" }, { "docid": "8b9eb3ed471cf875334c173be6bacbee", "score": "0.5642733", "text": "public function getComparedProducts()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "63d49c2f057a13974f05e8803740d159", "score": "0.56296897", "text": "public function getStockFromProducts()\n\t{\n\t\t$queryGenerator = new \\App\\QueryGenerator('Products');\n\t\t$queryGenerator->setStateCondition('All');\n\t\t$queryGenerator->setFields(['id', 'qtyinstock', 'ean'])->permissions = false;\n\t\t$queryGenerator->addCondition('id', $this->products, 'e');\n\t\treturn $queryGenerator->createQuery()->all();\n\t}", "title": "" }, { "docid": "32489535b60795dfe9c6d77ffa9bf67f", "score": "0.56284267", "text": "function getAllProducts()\n\t{\n\t\t$query = \"SELECT * FROM produse ORDER BY id DESC\";\n\t\t\n\t\t$productResult=$this->getDBResult($query);\n\t\treturn $productResult;\n\t}", "title": "" }, { "docid": "47b27f1f3e9290c46162d0e915179e45", "score": "0.56260544", "text": "function getProductsByByChannel($channel, $published = NULL){\n \t$andWhere = NULL;\n\n \tif ($published){\n \t\t$andWhere = \"AND `p2c_Published` = '1'\";\n \t}\n\n \t$q = \"SELECT *\n\t\t\t\tFROM\n\t\t\t\t\t`base_Channel`\n\t\t\t\tJOIN `base_Product_Channel`\n\t\t\t\tON `p2c_ChannelID` = `cha_ID`\n\n\t\t\t\tJOIN `Product`\n\t\t\t\tON `prod_ID` = `p2c_ProductID`\n\n\t\t\t\tWHERE\n\t\t\t\t\t`cha_ID` = '$channel'\n\t\t\t\t$andWhere\n\t\t\";\n\n\t\t$res = $this->db->query($q);\n\n\t\treturn $res->fetch_all(MYSQLI_ASSOC);\n }", "title": "" }, { "docid": "1f24cfd74a2625c6f0fd5567ef0f357f", "score": "0.5624989", "text": "public function getAllProducts()\r\n {\r\n $result = $this->productServiceModel->getAll();\r\n if (count($result)<=0) {\r\n return $this->notFoundResponse();\r\n }\r\n $response['status_code_header'] = 'HTTP/1.1 200 OK';\r\n $response['body'] = json_encode($result);\r\n return $response;\r\n }", "title": "" }, { "docid": "0e42bfd17b5444abac17deba16ced249", "score": "0.5618302", "text": "public function getProductInfo($product_ids)\n {\n $merchant_id = Yii::$app->user->identity->id;\n\n $jet_columns = ['`jp`.`title`', '`jp`.`sku`', '`jp`.`type`', '`jp`.`product_type`', '`jp`.`price`,`jp`.`upc`'/*, '`jp`.``'*/];\n $walmart_columns = ['`wp`.`status`', '`wp`.`product_title`', '`wp`.`product_price`', '`wp`.`product_id`'/*, '`wp`.``'*/];\n $query = \"SELECT \" . implode(',', $jet_columns) . \",\" . implode(',', $walmart_columns) . \" ,`wpr`.* FROM `jet_product` `jp` INNER JOIN (SELECT * FROM `walmart_product` WHERE `merchant_id`='{$merchant_id}' AND `product_id` IN ({$product_ids})) AS `wp` ON `jp`.`id`=`wp`.`product_id` RIGHT JOIN (SELECT * FROM `walmart_product_repricing` WHERE `merchant_id`='{$merchant_id}' AND `product_id` IN ({$product_ids})) AS `wpr` ON `wpr`.`product_id`=`wp`.`product_id`\";\n $result = Data::sqlRecords($query,'all','select');\n\n\n return $result;\n }", "title": "" }, { "docid": "91d718c8a40a57fcbb064cc7a046d439", "score": "0.56150764", "text": "public function getFeedProducts()\n {\n $priceFilter = ($this->_scopeConfig->getValue(self::PRICE_FILER_PATH))\n ? (int)$this->_scopeConfig->getValue(self::PRICE_FILER_PATH)\n : self::MIN_PRICE_FILER_PATH;\n\n try {\n $collection = $this->_productCollectionFactory->create();\n\n $collection\n ->addFieldToSelect('name', 'SKU')\n ->addFieldToFilter('price', array('gt' => $priceFilter))\n ->setOrder('created_at')\n ->setPageSize(5);\n } catch (\\Exception $exception) {\n return array(\"success\" => false, \"message\" => \"Feed products collection error: \" . $exception->getMessage());\n }\n\n return array(\"success\" => true, \"feedProducts\" => $collection);\n }", "title": "" }, { "docid": "cdb6c5f7b90c668f1cbf7cc48b38e006", "score": "0.56122273", "text": "public function getAllProductDetails();", "title": "" }, { "docid": "12cadedc8801bfe5464014fbf1f4832d", "score": "0.56046623", "text": "public function show(products $products)\n {\n\n\n }", "title": "" }, { "docid": "3be070ec7991d53a35867751a439aa14", "score": "0.56015664", "text": "function getProducts($categoryId, $products, $iFreebie) {\n\tif ($iFreebie == 1) {\n\t\t$prodsQuery = myqu('SELECT DISTINCT P.PRODUCT_ID, P.DESCRIPTION, M.DESCRIPTION PACK_TYPE, \n\t\t\tP.PRICE, CONCAT(I.DESCRIPTION , \"products/\" , P.IMAGE , \"_thumb.png\") IMAGEURL, \n\t\t\tP.NO_OF_CARDS, (CASE WHEN SUM(P.IN_STOCK) IS NULL THEN 0 ELSE SUM(P.IN_STOCK) END) AS IN_STOCK \n\t\t\tFROM mytcg_category C, mytcg_imageserver I, \n\t\t\tmytcg_productcategory_x PC, \n\t\t\tmytcg_producttype M, mytcg_product P \n\t\t\tWHERE PC.CATEGORY_ID = C.CATEGORY_ID \n\t\t\tAND P.freebie = 1\n\t\t\tAND P.PRODUCT_ID = PC.PRODUCT_ID \n\t\t\tAND M.producttype_id = P.producttype_id \n\t\t\tAND I.IMAGESERVER_ID = P.THUMBNAIL_IMAGESERVER_ID \n\t\t\tAND C.CATEGORY_ID = '.$categoryId.' \n\t\t\tGROUP BY P.PRODUCT_ID \n\t\t\tORDER BY P.DESCRIPTION');\n\t} else {\n\t\t$prodsQuery = myqu('SELECT DISTINCT P.PRODUCT_ID, P.DESCRIPTION, M.DESCRIPTION PACK_TYPE, \n\t\t\tIFNULL(P.PRICE,0) PRICE,IFNULL(P.PREMIUM,0) PREMIUM,CONCAT(I.DESCRIPTION , \"products/\" , P.IMAGE , \"_thumb.png\") IMAGEURL, \n\t\t\tP.NO_OF_CARDS, (CASE WHEN SUM(P.IN_STOCK) IS NULL THEN 0 ELSE SUM(P.IN_STOCK) END) AS IN_STOCK \n\t\t\tFROM mytcg_category C, mytcg_imageserver I, \n\t\t\tmytcg_productcategory_x PC, \n\t\t\tmytcg_producttype M, mytcg_product P \n\t\t\tWHERE PC.CATEGORY_ID = C.CATEGORY_ID \n\t\t\tAND P.PRODUCT_ID = PC.PRODUCT_ID \n\t\t\tAND M.producttype_id = P.producttype_id \n\t\t\tAND I.IMAGESERVER_ID = P.THUMBNAIL_IMAGESERVER_ID \n\t\t\tAND C.CATEGORY_ID = '.$categoryId.' \n\t\t\tGROUP BY P.PRODUCT_ID \n\t\t\tORDER BY P.PRICE, P.PREMIUM');\n\t\t}\n\t$count = 0;\n\t$index = sizeof($products);\n\t\n\twhile ($product = $prodsQuery[$count]) {\n\t\t$products[$index] = $product;\n\t\t\n\t\t$count++;\n\t\t$index++;\n\t}\n\t\n\t$catChildrenQuery = myqu('SELECT C.category_id, C.description \n\t\tFROM mytcg_category C, mytcg_category_x X \n\t\tWHERE C.CATEGORY_ID = X.CATEGORY_CHILD_ID \n\t\tAND X.CATEGORY_PARENT_ID = '.$categoryId.' \n\t\tAND C.is_deleted is null \n\t\tORDER BY C.description');\n\t$count = 0;\n\twhile ($category = $catChildrenQuery[$count]) {\n\t\t$products = getProducts($category['category_id'], $products, $iFreebie);\n\t\t$count++;\n\t}\n\treturn $products;\n}", "title": "" }, { "docid": "8697c3543420a9eb396669a97e3d802e", "score": "0.55959463", "text": "public function show(products $products)\n {\n //\n }", "title": "" }, { "docid": "7bac3e75ff46dad02c737481ec5c5716", "score": "0.55941963", "text": "public function getProducts()\n {\n\n $query = new \\frontend\\models\\query\\ProductQuery(get_called_class());\n $activeRegion = Yii::$app->help->activeRegion;\n if ($activeRegion != null) {\n return $this->hasMany(Product::className(), ['id' => 'product_id'])\n ->viaTable('product_to_category', ['category_id' => 'id'])\n ->multilingual()\n ->joinWith('sklads')\n ->andWhere(['sklad.region_id' => $activeRegion->id])\n ->joinWith('productToSklads')\n ->andWhere(['>', 'product_to_sklad.quantity' , 0])\n ;\n }\n\n return $this->hasMany(Product::className(), ['id' => 'product_id'])\n ->viaTable('product_to_category', ['category_id' => 'id'])\n ->multilingual()\n ;\n }", "title": "" }, { "docid": "42b1421a1a8492b116793849560e12db", "score": "0.55918825", "text": "private function queryProducts()\n {\n $query = \"SELECT * FROM products\";\n\n $results = $this->database->query($query)->fetchResults();\n\n foreach ($results as $result) {\n $this->makeProduct($result);\n }\n\n return $this->products;\n }", "title": "" }, { "docid": "cae75b1ae804eedb8ac5d7397b6fb5ab", "score": "0.55913967", "text": "function get_products_by_cat(){\r\n $query = \"SELECT * FROM Products WHERE Product_Cat_ID = ?\";\r\n $args = array($_GET['cat_id']);\r\n get_products($query,$args);\r\n\r\n }", "title": "" }, { "docid": "cf27cf50016f4f72517f2cdf1a999278", "score": "0.557794", "text": "public function getProduct(int $productId): array;", "title": "" }, { "docid": "55299c849487fd5a14b346d370fd4062", "score": "0.55756205", "text": "public function list_products( $variables ) {\r\n // Get the variables\r\n list( $where, $values, $order_by, $limit ) = $variables;\r\n\r\n return $this->prepare(\r\n \"SELECT p.`product_id`, p.`name`, p.`sku`, p.`status`, b.`name` AS brand FROM `products` AS p LEFT JOIN `brands` AS b ON ( b.`brand_id` = p.`brand_id` ) LEFT JOIN website_products AS wp ON ( wp.`product_id` = p.`product_id` ) LEFT JOIN `website_blocked_category` AS wbc ON ( wbc.`category_id` = p.`category_id` AND wbc.`website_id` = wp.`website_id` ) WHERE wp.`active` = 1 AND wbc.`category_id` IS NULL AND p.`parent_product_id` IS NULL $where GROUP BY p.`product_id` $order_by LIMIT $limit\"\r\n , str_repeat( 's', count( $values ) )\r\n , $values\r\n )->get_results( PDO::FETCH_CLASS, 'Product' );\r\n }", "title": "" }, { "docid": "58492fa9314275b4b2e3b78dc1c53c9a", "score": "0.5575006", "text": "function smarty_function_getProductList(array $args, Smarty_Internal_Template $smarty){\n\n\t$log = Logger::getLogger(\"com.dalisra.smartyfunction.getProductList\");\n\n $log->debug(\"Preparing Query\");\n $params = array();\n $params['select'] = 'p.*, ps.priority';\n $params['from'] = 'products p';\n $params['join'] = 'productstructures ps';\n $params['on'] = array('p.id'=>'ps.product_id');\n\n $params['where'] = array();\n $params['where']['p.active'] = \"true\"; //We get only active products.\n if(!empty($args['cat'])){ // is there filter on category?\n $params['where']['ps.category_id'] = (int)$args['cat']['id']; //We filter by category.\n }\n if(!empty($args['type'])){ // is there filter on type?\n $params['where']['ps.type'] = $args['type']; // We filter by type.\n }\n\n $params['orderby'] = 'ps.priority';\n $productList = APP::$db->getData($params);\n if(!$productList){\n $log->debug(\"Got error executing query: \" . APP::$db->db_error);\n }\n $smarty->assign(\"productList\", $productList);\n\n}", "title": "" }, { "docid": "dd9ca67894bf9ecd4f9353f1975f8e47", "score": "0.5574847", "text": "public static function getProductsList()\r\n {\r\n // Connection to DB\r\n $db = Db::getConnection();\r\n\r\n // Receiving and returning results\r\n $result = $db->query('SELECT id_product, name, price FROM product ORDER BY id_product ASC');\r\n $productsList = array();\r\n $i = 0;\r\n while ($row = $result->fetch()) {\r\n $productsList[$i]['id_product'] = $row['id_product'];\r\n $productsList[$i]['name'] = $row['name'];\r\n $productsList[$i]['price'] = $row['price'];\r\n $i++;\r\n }\r\n return $productsList;\r\n }", "title": "" }, { "docid": "6c72cf867e0faf26f48e1d4221262751", "score": "0.55738527", "text": "public function getUserProductList()\n {\n return Product::select('product.id', 'product.sku', 'product.name', 'product.barcode', 'product.barcode_client', 'product.active')\n ->where('product.warehouse_id', '=', auth()->user()->current_warehouse_id)\n ->where('product.client_id', '=', auth()->user()->current_client_id)\n ->where('product.active', '=', true)\n ->get();\n\n }", "title": "" }, { "docid": "6b8989e3fe079702cfbb4a822f1d64be", "score": "0.5567401", "text": "public function get_all_products($start, $limit, $search, $key) {\n\t\t\treturn $this->product_query(\"getprod\", $start, $limit, $search, $key)->result_array();\n\t\t}", "title": "" }, { "docid": "a78c61c982bd21c06da0ba2129ea070a", "score": "0.55570644", "text": "protected function _getProducts($p) {\n $options = $this->pagination($p);\n\n $options['order'] = 'name asc';\n\n if (!empty($p['business_id'])) {\n $options['conditions'] = array('business_id = ? AND status = ?', $p['business_id'], ProductModel::AVAILABLE);\n } else {\n $options['conditions'] = array('status = ?', ProductModel::AVAILABLE);\n }\n\n if (isset($p['include_bookings']) && $p['include_bookings']) {\n $options['include'] = array('bookings');\n }\n\n return ProductModel::find('all', $options);\n }", "title": "" }, { "docid": "78d616a2bbc9d3390aae28e594eea3ef", "score": "0.55541813", "text": "function get_products($product_id = false)\n {\n global $sql_conn;\n\n $where = ( $product_id ) ? ' WHERE product_id = ' . $product_id : '';\n $sql = \"SELECT * FROM products $where\";\n\n $q = mysqli_query($sql_conn, $sql);\n\n $products = false;\n\n if( mysqli_num_rows($q) > 0 )\n {\n while ($resp = mysqli_fetch_assoc($q))\n {\n if( $product_id )\n {\n $products['product_id'] = $resp['product_id'];\n $products['product_ref'] = $resp['product_ref'];\n $products['product_label'] = $resp['product_label'];\n $products['product_description'] = $resp['product_description'];\n $products['product_price'] = $resp['product_price'];\n $products['product_stock'] = $resp['product_stock'];\n $products['product_illustration'] = $resp['product_illustration'];\n } else {\n $products[$resp['product_id']]['product_id'] = $resp['product_id'];\n $products[$resp['product_id']]['product_ref'] = $resp['product_ref'];\n $products[$resp['product_id']]['product_label'] = $resp['product_label'];\n $products[$resp['product_id']]['product_description'] = $resp['product_description'];\n $products[$resp['product_id']]['product_price'] = $resp['product_price'];\n $products[$resp['product_id']]['product_stock'] = $resp['product_stock'];\n $products[$resp['product_id']]['product_illustration'] = $resp['product_illustration'];\n }\n }\n }\n\n return $products;\n }", "title": "" }, { "docid": "0ad027c06261d7708a0d15a4a1232380", "score": "0.5553407", "text": "public function getProducts()\n {\n $products = array();\n foreach( $this->register_sale_products as $product )\n {\n $products[] = $this->vend->getProduct($product->product_id);\n }\n return $products;\n }", "title": "" }, { "docid": "83354534df0cc10ca11c9c5dfceba99b", "score": "0.55498755", "text": "public function getAllProducts(){\r\n\r\n $productos = array(\r\n 'items' => $this->zendCart->cart(),\r\n 'total_items' => $this->zendCart->total_items(),\r\n 'total' => $this->zendCart->total(),\r\n );\r\n return $productos;\r\n }", "title": "" }, { "docid": "ac11fdc6d0b8f1224450924d12cca74a", "score": "0.55487317", "text": "public function getProducts(){\r\n\r\n // Productos\r\n $productos = $this->productosTable->JoinfetchAll(true);\r\n $productos->setCurrentPageNumber((int) $this->params()->fromQuery('pagep', 1));\r\n $productos->setItemCountPerPage(50);\r\n\r\n $this->paginatorPages = $productos->count();\r\n\r\n return $productos;\r\n\r\n }", "title": "" }, { "docid": "1d3cc41e3cf2f32b3573dece3b75162f", "score": "0.55457175", "text": "public function GetFamousProduct() : array\n {\n return $this->SearchQuery(\"SELECT product.*, product_catalog.catalogName as 'catalogName' FROM `product` INNER JOIN product_catalog ON product.catalogID = product_catalog.catalogID ORDER BY `productView` DESC LIMIT 10;\");\n }", "title": "" }, { "docid": "5bd1bb673f78e0cee62fed8b8192f933", "score": "0.5543324", "text": "public function read_products(){\n \n $products=$this->Productos_M->get_products()->result_array();\n echo json_encode($products);\n }", "title": "" }, { "docid": "062d3bd5db4e7c45df61408bfa2f662b", "score": "0.55403", "text": "function get_products_all() {\n\tinclude(ROOT_PATH . \"inc/database.php\");\n// \ttry {\n// \t\t$db = new PDO(\"mysql:host=localhost;dbname=shirts4mike\", \"root\", \"\");\n// \t\t$db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n// \t\t$db->exec(\"SET NAMES 'utf8'\");\n// \t} catch(PDOException $e) {\n// \t\techo \"$e->getMessage()\";\n// \t\texit();\n// \t}\n\t/*\n\t * query our database $db for all the 'name' and 'price' for items in products table of\n\t * database shirts4mike from $db\n\t */\n\ttry {\n\t\t$results = $db->query(\"SELECT * from products ORDER BY sku ASC\");\n\t\t$products = $results->fetchAll(PDO::FETCH_ASSOC);\n\t} catch(PDOException $e) {\n\t\techo \"Querey error $e\";\n\t\texit();\n\t}\n\treturn $products;\t\n}", "title": "" }, { "docid": "bae97caa0f9ff9e6c629203eb48b0a17", "score": "0.5527438", "text": "public function getProducts()\n {\n $orderby = array('productCode DESC');\n $result = $this->fetchAll('1', $orderby );\n return $result->toArray();\n }", "title": "" }, { "docid": "9ad95ff150bf2482ceb7ab025a572fc0", "score": "0.5525845", "text": "private function GET_products($segments) {\r\n }", "title": "" } ]
a657c542c9d104e281073c5ac8ab435e
for viewing my index blade which has its function in Blog controller
[ { "docid": "22324dc00ac17fba444a85a9e6e414fd", "score": "0.0", "text": "public function index()\n {\n $post=post::all();\n return view('pages/index');\n }", "title": "" } ]
[ { "docid": "2854171b0c53e342ed627fdc98dce4b8", "score": "0.867612", "text": "public function index()\n {\n $blog = Blog::paginate(5);\n return view('admin.blog.index')->with(get_defined_vars()); }", "title": "" }, { "docid": "393bbebdcb0d775a874e468f1695d59d", "score": "0.8599446", "text": "public function index() \n { \n $blogs = Blog::paginate(10);\n return view('admin.blog.index', compact('blogs'));\n }", "title": "" }, { "docid": "05f99cd79e826fecb9294fb85257d9fc", "score": "0.8471942", "text": "public function index()\n {\n \t$blogs = Blog::latest()->get();// get all datas in DESC order.\n \treturn view('blog.index', compact('blogs'));\n }", "title": "" }, { "docid": "0a6172d47d8ce0ea3f48a39cdd8890cb", "score": "0.84539896", "text": "public function index()\n {\n //\n $blogs = Blog::all();\n return view('admin.blogs.index')->with('blogs',$blogs);\n }", "title": "" }, { "docid": "85ddde3030305a30053b9cfad8ce8cc5", "score": "0.8449369", "text": "public function index()\n {\n $blogs = Blog::all();\n\n \n\n \n\n return view('blogsindex',['blogs' => $blogs]);\n }", "title": "" }, { "docid": "c5ef5d96e0e923f43b4d67f9ed18067c", "score": "0.8420494", "text": "public function index()\n {\n $blogs = Blog::orderBy('id','desc')->paginate(3);\n return view('blog')->with('blogs',$blogs);\n }", "title": "" }, { "docid": "f82ab3b865a68843d3e6eec83415ecc2", "score": "0.8413213", "text": "public function index()\n {\n $blogs = Blog::get(); \n return view('admin.blog.index',compact('blogs'));\n }", "title": "" }, { "docid": "ed308f2f12f2e0cec83d1bc836761f5b", "score": "0.84109485", "text": "public function index()\n {\n $blogs=Blog::orderBy('created_at','desc')->paginate(100);\n \n return view('pages.blog')->with('blogs',$blogs);\n }", "title": "" }, { "docid": "c15fee3427bd09b5e557214d5c3b9029", "score": "0.8408032", "text": "public function index()\n {\n // $blog = Blog::get();\n return view('backend.inc.blog.index');\n }", "title": "" }, { "docid": "2a5f7c9223f25c17918a33546acde04d", "score": "0.8333945", "text": "public function index(){\n\t\t$blog=$this->blogRepository->getPaginate($this->nbrePerPage);\n\t\t$links=$blog->render();\n\t\treturn view('blog', compact('blog','links'));\n\t}", "title": "" }, { "docid": "2240df3ea6a5f4ad339a5962b41d15e3", "score": "0.83313805", "text": "public function index()\n {\n $blog = Blog::latest()->paginate(5);\n return view('admin.blog.blog-index', compact('blog'))\n ->with('i', (request()->input('page', 1) - 1) * 5);\n }", "title": "" }, { "docid": "c404ae2710600de1ade671a3190029b4", "score": "0.83147085", "text": "public function index()\n {\n $blog = blog::all();\n return view('blog.index',compact('blog'));\n }", "title": "" }, { "docid": "ad1116d1a089bfccbd22a57d48df8f0e", "score": "0.83026236", "text": "public function index() {\n $blog = Blog::all();\n return view('blog.index', compact('blog'));\n }", "title": "" }, { "docid": "b085d5ee072be048010aaae2dbec1c6c", "score": "0.8300143", "text": "public function index()\n {\n return view('blog.index')->with('blogs', blog::all()->take(5));\n }", "title": "" }, { "docid": "c57aeeebfa5476f86a2b6da83be2a572", "score": "0.82918286", "text": "public function index()\n {\n /*$posts = Post::all();*/\n\t$posts = $this->posts->all();\n return view('blog.index')->with('posts', $posts);\n\n }", "title": "" }, { "docid": "bac3537daed853d0398bdead68826dbc", "score": "0.8276429", "text": "public function index()\n {\n $blogs = Blog::paginate(config('appConst.appConst.PRODUCT_IN_PER_PAGE'));\n $data['tags'] = Tag::all();\n return view('user.blog.blog_list',[\n 'tags' => $data['tags'],\n 'blogs' => $blogs,\n ]);\n }", "title": "" }, { "docid": "1d2d65bbe582b2680ca0938aea86c4d4", "score": "0.8275745", "text": "public function index()\n {\n $viewblog = blog::paginate(3);\n // dd($viewblog);\n return view('admin/blog/blog', compact('viewblog'));\n // Hoặc dùng cách này --- return view('admin/blog/blog')->with('viewblog', $viewblog);\n }", "title": "" }, { "docid": "6ae49ac03520e57718c3380cc9c858ee", "score": "0.82750726", "text": "public function index()\n {\n $blogs = Blog::orderBy('id','desc')->paginate(6);\n return view('/visitante/blog', compact('blogs'));\n }", "title": "" }, { "docid": "7dfe782345df6eab20c464a83994ef21", "score": "0.82711875", "text": "public function index(){\n $model_name = 'article';\n $blogs = Article::all();\n // show data to our view\n return view('blog.index', compact('blogs', 'model_name'));\n }", "title": "" }, { "docid": "6aaba6105f7a4c09eb0c83d105a125b7", "score": "0.8263685", "text": "public function index()\n {\n $posts = Blog::orderBy('created_at', 'desc')\n ->get();\n\n\n return view('blog.index')->with('posts', $posts);\n }", "title": "" }, { "docid": "72f5a236612bd877a3640da4f9b4bdc5", "score": "0.826265", "text": "public function index()\n {\n $list_obj = Blog::all();\n return view('admin.' . $this->obj_name . '.list')->with('list_obj', $list_obj);\n }", "title": "" }, { "docid": "85b89f2692d68d8546d76ac4052785ce", "score": "0.8259447", "text": "public function index()\n {\n //Create a variable and get all blog from database use paginate funtion to use page system\n $posts = Post::orderBy('created_at','desc')->where('public',true)->paginate(10);\n\n //return a view and pass in the above variable\n return view('posts.index',compact('posts'));\n\n }", "title": "" }, { "docid": "a9559771975e24ec8c91c491b2f5549b", "score": "0.82577896", "text": "public function index()\n {\n //variable containing all blog posts from db\n $posts = Post::orderBy('id','desc')->paginate(5);\n //return a view and pass in the variable\n return view('Posts.index')->withPosts($posts);\n }", "title": "" }, { "docid": "e3e5ea00e92bae5d98f583db6b25c780", "score": "0.8252472", "text": "public function index()\n {\n $blog = blog::all();\n return view('pages.blog.index')->with([\n 'blogs' => $blog\n ]);\n }", "title": "" }, { "docid": "23260c97e9938d3de88a2fb09a1957ac", "score": "0.8237835", "text": "public function index()\n \n { $datafooter = Footer::first();\n $datanewletter = newsletter::first();\n $datatitre = homeTitre::all();\n $datalogo = Logo::first();\n $datacategorie = Categorie::all();\n $datatag = Tag::all();\n $dataPost = BlogPost::all();\n\n $dataPostp = BlogPost::paginate(3);\n\n return view('page.blog',compact(\"datacategorie\",\n \"datalogo\",\n \"datatitre\",\n \"datafooter\",\n \"datanewletter\",\n \"datatag\",\n \"dataPost\",\"dataPostp\"));\n }", "title": "" }, { "docid": "efb9176caeb45f88b56424c28777380d", "score": "0.82340777", "text": "public function index()\n {\n // return view('blog::index');\n $blogposts = Blog::latest()->get();\n\n return view('blog::index', [\n 'blogposts' => $blogposts\n ]);\n }", "title": "" }, { "docid": "3f7f970d2cdce20ec9220c3ea3613b49", "score": "0.82322973", "text": "public function index()\n\t{\t\n\t\t$tags = Tag::lists('name', 'id');\n\n\t\t$articles = DB::table('articles')->orderBy('created_at', 'desc')->paginate(10);\n\t\t\n\t\t$articles->setPath('blog');\n\n\t\treturn view('blog', compact('tags', 'articles'));\n\t}", "title": "" }, { "docid": "9ab23cfeed1191732d0688e45c302f19", "score": "0.82321525", "text": "public function index()\n {\n $data=Blog::paginate(3);\n return view('admin.blog.index',['data'=>$data]);\n }", "title": "" }, { "docid": "94808494ebb85ecf5e4af10fac104309", "score": "0.82100123", "text": "public function index()\n { \n $blogs = Blog::orderBy('created_at', 'asc')->get();\n $tags = Tag::orderBy('title', 'asc')->get();\n\n return view('profile.blog.index', compact('blogs', 'tags'));\n }", "title": "" }, { "docid": "7173c6042363341736921743917d2521", "score": "0.82045096", "text": "public function index()\n {\n //\n $blogs = Blog::all();\n //################### PAGE NAME #########################\n $page = \"all_blogs\";\n return view('admin.blog.all_blogs',compact('blogs','page'));\n }", "title": "" }, { "docid": "c0ac72da26c1cbc7841d50534014878f", "score": "0.8202882", "text": "public function blogAction()\n {\n View::renderBlade('home/blog');\n }", "title": "" }, { "docid": "8563aea7910f5b2f212dc44ab1435cfa", "score": "0.81985235", "text": "public function index()\n {\n //\n return view('blogs.posts.index');\n }", "title": "" }, { "docid": "f4691358133d91e97d383a8d6da72ea7", "score": "0.8187087", "text": "public function index()\n {\n $ds = Blog::all();\n return view('BE.blog.show', compact('ds'));\n }", "title": "" }, { "docid": "bf0ebd4c5b966c12d1f1248acc494370", "score": "0.8169231", "text": "public function index()\n {\n $blog=Blog:: where('status',1)->get();\n return view('admin.blog.all',compact('blog'));\n }", "title": "" }, { "docid": "f02c22350687456c96b8ab8400b66448", "score": "0.8162923", "text": "public function index()\n {\n $blog = Blog::get();\n return view('admin.blog.index', compact('blog'));\n }", "title": "" }, { "docid": "9decfbfe40e1cdcc8cb73021d2e14f08", "score": "0.8160477", "text": "public function index()\n {\n $data['page_title']='Blog';\n $data['main']=Blog::all();\n return view('admin.blog',$data);\n }", "title": "" }, { "docid": "52a667b85b3cb431bf7ca4473dbe3f40", "score": "0.8157629", "text": "public function index()\n {\n $Lista = Blog::all();\n return view('admin.blog.index',compact('Lista'));\n }", "title": "" }, { "docid": "1604d37dde708cdfe2dedd707f41ecf4", "score": "0.8147842", "text": "public function index()\n {\n $blogs = Blog::select('id', 'title', 'thumbnail', 'describe', 'delete_status', 'content', 'author_id', 'created_at')->where('delete_status',1)->where('status',1)->orderBy('updated_at', 'desc')->paginate(15);\n return view('admin.blog.list', compact('blogs'));\n }", "title": "" }, { "docid": "4adc7bf37a327305faa28a3a94c97ce1", "score": "0.8145446", "text": "public function index()\n {\n try {\n $blog = Blog::paginate(8);\n foreach($blog as $blo){\n $status = $blo->status;\n }\n \n return view('main/blog/index',['blog'=>$blog,'status'=>$status]);\n } catch (\\Throwable $th) {\n return view('main/blog/index',['blog'=>$blog,'status'=> 0]);\n }\n \n }", "title": "" }, { "docid": "0c6126dbf1603993f8b13e67d5f5f2a4", "score": "0.8142144", "text": "public function index()\n {\n $blogs = Blog::all();\n return view('admin.blog.index', compact('blogs'));\n }", "title": "" }, { "docid": "25afcfac41d4fcdee1714e9cba9eb934", "score": "0.81275296", "text": "public function index()\n {\n //create variable and store all blog posts from the database\n //return view and pass in the above variables\n $posts=Post::orderBy('id','desc')->paginate(10);\n\n return view('Posts.index')->withPosts($posts);\n\n }", "title": "" }, { "docid": "c609d6e57154610324c202c26f3be6d9", "score": "0.8125852", "text": "public function index()\n {\n // CREATE $allBlogs WITH ASSOCIATED TAGLINES AND USERS\n $allBlogs = Blog::with('user')->orderBy('id', 'desc')->get();\n\n return view('blog.index', compact('allBlogs'));\n }", "title": "" }, { "docid": "33cca172f3975b34c27a8d092e5bb9ad", "score": "0.81255174", "text": "public function index()\n {\n \n $blog = blog::all()->toArray();\n return view(\"admin.user.blog.index\",compact('blog'));}", "title": "" }, { "docid": "3da0a2de0524a733b1fafef2a3c0dc0c", "score": "0.8125333", "text": "public function index()\n {\n return view('blog.index');\n }", "title": "" }, { "docid": "0b21abcfbf344ab764066a393b08bf67", "score": "0.8118387", "text": "public function blog() { \n $this->show('blog');\n }", "title": "" }, { "docid": "2f4f895b6ae34d272f6515bd28d80e97", "score": "0.81167907", "text": "public function index()\n { \n $blogs = Blog::all();\n return $blogs;\n // return view('blog',compact('blogs'));\n }", "title": "" }, { "docid": "480a9bf126425953e630b9c19816f1f9", "score": "0.8108862", "text": "public function index()\n {\n return view('frontend.blogs.index', [\n 'blogs' => Post::query()->with('tag')\n ->when('search', function($query){\n // use query model for search\n $query->search(request('search'));\n })->\n latest()->paginate(10),\n ]);\n }", "title": "" }, { "docid": "b8cfec4e9a4bc7ee112e505aae90078d", "score": "0.8089948", "text": "public function index()\n {\n $blogs = Blog::with('user')\n ->where('status','=',Status::Active)\n ->orderBy('id','desc')->paginate(6);\n $categories = blog_category::all();\n return view('blog.index',compact('blogs','categories'));\n }", "title": "" }, { "docid": "d0ba19a33332aad1fdf3979e4152ead3", "score": "0.80871505", "text": "public function index()\n {\n $blogs = Blog::orderBy('created_at', 'desc')->paginate(3);\n return view('blogs.index', compact('blogs'));\n }", "title": "" }, { "docid": "c34cc8f7ff1fd5284b6907d762720ac2", "score": "0.8081381", "text": "public function index()\n {\n $data = Blog::select()->orderBy('created_at','desc')->get();\n\n return view('home',compact('data'));\n }", "title": "" }, { "docid": "d9fe54349d4977d9407712587d05cda5", "score": "0.8081305", "text": "public function index() {\n if (Permission::hasAccess('view', 'blog')) {\n $blog = new Blog;\n if (Input::get('key')) {\n $blog->where('title', 'like', '%' . Input::get('key') . '%');\n $blog->where('description', 'like', '%' . Input::get('key') . '%');\n }\n $blogs = $blog->paginate(20);\n return view(Config::get('config.template') . '.pages.admin.posts.list')->withBlogs($blogs);\n }\n return Redirect::to('admin/error/404');\n }", "title": "" }, { "docid": "94e729e63cf422d99ef088041b97cfe7", "score": "0.8077124", "text": "public function blogs(){\n //return view('pages.index', compact('title'));\n return view('pages.blogs');\n }", "title": "" }, { "docid": "1b3a116dfffeb8c5dab078083e0057ff", "score": "0.80751836", "text": "public function index()\n\t{\n\t\t$blogs = Blog::latest()->get();\n\t\treturn view('blogs.index', compact('blogs'));\n\t}", "title": "" }, { "docid": "defcf1354e2f450b6c55beb1628bfa78", "score": "0.8072804", "text": "public function index()\n {\n $data = [\n 'articles' => Articles::all()->where('status_id', 2),\n ];\n return view('blog.main', compact('data'));\n }", "title": "" }, { "docid": "b8be8bcb14f6f8ff02f7df477b2ccac7", "score": "0.80700535", "text": "public function index()\n {\n return view('blog.index', [\n 'posts' => Post::orderBy('id', 'desc')->paginate(10)\n ]);\n }", "title": "" }, { "docid": "195bab3daba992f1b8f05c376fd9572c", "score": "0.80487865", "text": "public function index()\n {\n $blogs = Blog::all();\n return view('admin/admin',['blogs'=>$blogs]);\n }", "title": "" }, { "docid": "36fbc46d31fd48378c449fb6ae4b2eb6", "score": "0.8038447", "text": "public function index()\n {\n// $blogs=Blog::get(5);\n//\n// dd($blogs);\n $blogs= Blog::orderBy('title', 'asc')->paginate(3);\n $sblogs=Blog::orderBy('created_at', 'desc')->get()->take(3);\n return view('front_end.blogs.all_blogs',[\"blogs\"=>$blogs,\"sblogs\"=>$sblogs]);\n }", "title": "" }, { "docid": "779146ef6e502d13c0ace038d84eb91b", "score": "0.8037132", "text": "public function index()\n {\n $blogs = blog::all();\n return view('admin.blogs.index', compact('blogs'));\n }", "title": "" }, { "docid": "6e4282ae1a124d97ee44e9fc63d8f8b7", "score": "0.80330205", "text": "public function index()\n {\n $posts = BlogPost::all();\n return view('posts', ['posts' => $posts]);\n }", "title": "" }, { "docid": "884fe0ba3f9d029c3977d6853b0b6085", "score": "0.803253", "text": "public function index()\n {\n $posts=Post::latest()->paginate(5);\n return view('blog.index',compact('posts'))->with('i',(request()->input('page',1)-1)*5);\n }", "title": "" }, { "docid": "0e8d329435a66843b0d4dc570954549b", "score": "0.802927", "text": "public function index()\n {\n //$posts = Posts::all();\n //$posts = Posts::orderBy('id','desc')->get();\n //$posts = Posts::where('id','1')->get();\n //$posts = Posts::orderBy('title','desc')->get();\n //$posts = Posts::orderBy('id','desc')->take(1)->get();\n $posts = Posts::orderBy('id', 'desc')->paginate(4);\n return view('blog.index')->with('posts', $posts);\n }", "title": "" }, { "docid": "147b6663a71a7a82e0d3e5e9a4465783", "score": "0.80283", "text": "public function index()\n {\n $news = Blog::where('status_id', 4)\n ->orderBy('created_at', 'desc')\n ->take(2)\n ->get();\n\n return view('frontend.home', compact('news'));\n }", "title": "" }, { "docid": "03d6e403f7e6a95954680fb2f8c8c644", "score": "0.8027149", "text": "public function index()\n {\n // get all the blog posts from the database with pagination\n $posts = Post::orderBy('id', 'desc')->paginate(10);\n \n // return a view with the blog posts\n return view('posts.index')->withPosts($posts);\n }", "title": "" }, { "docid": "bd8b84defb69ed3e7b3320177d6770fa", "score": "0.8013855", "text": "public function index()\n {\n $blogs = Blogs::orderBy('created_at', 'ase')->paginate(5);\n return view(\"admin.blogshow\", ['blogs' => $blogs,\n 'pages' => $blogs->toArray(),\n ]);\n }", "title": "" }, { "docid": "66c4696b4763ffbc3b18599f06e91024", "score": "0.7991844", "text": "public function index()\n {\n return view(\"blog.index\",['titulo'=>'Inicial','posts'=>$this->meus_posts]);\n }", "title": "" }, { "docid": "16a5c0db307bef997d00487e54d5ba6d", "score": "0.79885256", "text": "public function index()\n {\n\n $blog = Blog::with('User')->paginate(3);\n return view('/admin/blog/blog')->with(compact('blog'));\n //\n }", "title": "" }, { "docid": "ea1397c2084d3edd0207c7c41e98efe9", "score": "0.798526", "text": "public function index()\n {\n //List all the blogs\n $blogs = Blog::all();\n\n return view('frontend.blogs.index')->withBlogs($blogs);\n }", "title": "" }, { "docid": "6e1325f5f65ef737db46faf0f6dd7c07", "score": "0.79718006", "text": "public function index()\n {\n $allposts= blogPost::all();\n return view('blog post.index',compact('allposts'));\n }", "title": "" }, { "docid": "5ee2a1672883511c864ab21f4cb82de9", "score": "0.7969446", "text": "public function index()\n {\n $blogs = DB::table('blogs')->get();\n \n // mengirim data pegawai ke view index\n return view('welcome',['blogs' => $blogs]);\n}", "title": "" }, { "docid": "e19fb592da1f13aa3858b9e5244a8375", "score": "0.795658", "text": "public function index()\n {\n $catagories = Catagory::all();\n $blogs = Blogs::orderBy('created_at','desc')->get();\n $recentBlogs = Blogs::orderBy('created_at','desc')->take(5)->get();\n return view('frontEnd.index')\n ->with('blogs',$blogs)\n ->with('catagories',$catagories)\n ->with('recentPosts',$recentBlogs);\n }", "title": "" }, { "docid": "5ecaf8f029f7aa6ed811c6d26c7e9f7f", "score": "0.7956062", "text": "public function index()\n {\n $categories = Category::where('type', 'blog')->get();\n // $articles = Article::select(['articles.id', 'articles.title', 'articles.created_at', 'articles.image'])\n // ->join('categories', 'categories.id', '=', 'articles.category_id')\n // ->where('categories.type', 'blog')->get();\n\n $articles = Article::whereHas('category', function (Builder $query) {\n $query->where('type', 'blog');\n })->get();\n return view('blog', ['categories' => $categories, 'articles' => $articles]);\n }", "title": "" }, { "docid": "3577fcdd47f216c35b7b1ddf6ccca170", "score": "0.7926942", "text": "public function index()\n {\n $posts = Post::with('user')->get();\n return view('blogs_ general')->with(['posts'=>$posts]);\n\n }", "title": "" }, { "docid": "4526088ba43666d40a1c202ed5c8cf90", "score": "0.7923907", "text": "public function blog_page() {\n //return view('search.im', compact('divisions'));\n $data['blood_news'] = Content:: where('content_type', 'Blog')->orderByDesc('created_at')->get();\n return view('frontend.view_blog')->with('data', $data);\n }", "title": "" }, { "docid": "eda358e7297c4100de9855bcd9bdc5ae", "score": "0.79219717", "text": "public function index()\n {\n return view('admin.blog');\n }", "title": "" }, { "docid": "8e9de6a2c00a1f5ea770c6c9c17696bf", "score": "0.78794867", "text": "public function index()\n {\n //\n $blogs = blog::with('blog_meta')->get();\n $blog_meta_details = [];\n // dd($blogs);\n\n foreach ($blogs as $blog) {\n foreach ($blog->blog_meta as $key => $blog_meta) {\n $blog_meta_details[$blog_meta->meta_key] = $blog_meta->meta_value;\n }\n }\n\n return view('backend.blogs.all', ['blogs' => $blogs, 'blog_meta_details' => $blog_meta_details]);\n }", "title": "" }, { "docid": "8bfa9c4e3a75d7639077b50613a8ad58", "score": "0.7865947", "text": "public function index()\n {\n try {\n $blogs = Blog::limit(3)->latest()->paginate();\n\n return view('frontend.blogs.index', compact('blogs'));\n } catch (\\Exception $exception) {\n }\n }", "title": "" }, { "docid": "b4009109ec8ea869a54ae5a41178e6ac", "score": "0.7855092", "text": "public function listBlog()\n {\n \t$user = User::find(Auth::user()->id_users);\n \t$blogs = $user->getBlogs()->orderBy('id_blogs', 'desc')->paginate(10);\n \t$this->layout->title = 'Blogs listings';\n \t$this->layout->subtitle = Auth::user()->username;\n \t$this->layout->main = View::make('dash')->nest('content', 'blogs.list', compact('blogs'));\n }", "title": "" }, { "docid": "ce43529443007ab489c8cc1fe99b19f5", "score": "0.78516203", "text": "public function index()\n {\n $posts=Post::orderby('created_at','ASC')->get();\n return view('back.blogpost.index',compact('posts'));\n }", "title": "" }, { "docid": "dd49ceb107cb2d9c0bcc66aabe1098d7", "score": "0.783702", "text": "public function index()\n {\n $articles = Article::query()\n ->with([\n 'category'\n ])\n ->orderBy('sort','desc')\n ->orderBy('id', 'desc')\n ->paginate(30);\n\n return view('newblog.index', compact('articles'));\n }", "title": "" }, { "docid": "e99e777f73bc25da10036f3adf3fc8f0", "score": "0.7835756", "text": "public function show()\n {\n $blog = Blog::orderBy('id', 'DESC')->paginate(20);\n return view('admin.showblog')->with('blog',$blog);\n }", "title": "" }, { "docid": "e556a7e5b023c2acdf42bae4b6775a5b", "score": "0.7826547", "text": "public function index()\n\n { $published_post=DB::table('blog')\n ->where('publication_status',1)\n ->orderBy('blog_id','desc')\n ->get();\n $home=view('pages.home')\n ->with('published_post',$published_post);\n return view('master') \n ->with('main_content',$home);\n\n }", "title": "" }, { "docid": "5417c0b43184ea6b02934a24a301703d", "score": "0.7821664", "text": "public function index()\n {\n if(Auth::user()&&Auth::user()->role === 'admin'){\n $articles = Article::all();\n return view('blog',['articles'=>$articles]);\n }\n \n return redirect('/home');\n }", "title": "" }, { "docid": "92cfb4e47b9cb19d3828c7c25de2bd1d", "score": "0.7817949", "text": "public function blogIndex()\n {\n if( !\\Auth::user()->admin ) die(403);\n\n return view('admin.pages', [\n 'pages' => Page::blogs()->get(),\n 'isBlog' => true\n ]);\n }", "title": "" }, { "docid": "cd0d3fcd7a0f6d7ab47cf78deea3cb4c", "score": "0.7808347", "text": "public function index()\n {\n //$posts = Post::all();\n //return Post::where('title', 'Post Two')->get();\n //$posts = DB::select('SELECT * FROM posts');\n //$posts = Post::orderBy('title','desc')->take(1)->get();\n //$posts = Post::orderBy('title','desc')->get();\n $bulletin = Bulletin::find(1);\n $carousel = Carousel::orderBy('created_at','desc')->get();\n $posts = Post::orderBy('created_at','desc')->paginate(10);\n \n return view('posts.index')->with('posts', $posts)->with('carousel', $carousel)->with('bulletin', $bulletin);\n }", "title": "" }, { "docid": "abb36735a23082f21d53960087e74ccc", "score": "0.78079176", "text": "public function index()\n {\n \n return view('post.index' , ['posts' => Post::all()]);\n \n }", "title": "" }, { "docid": "086e5c9d90974a4eac8b0a17ec4fedca", "score": "0.7786531", "text": "public function index()\n {\n $data['blogs'] = DB::table('blogs')\n ->select('blogs.*', 'cate_blogs.name as cate_blogs')\n ->join('cate_blogs', 'blogs.cate_id', '=', 'cate_blogs.id')\n ->orderByDesc('id')\n ->get();\n\n return view('admins.pages.blogs.index', $data);\n }", "title": "" }, { "docid": "33d69a481d9115b7496c47dab0d787e2", "score": "0.77797216", "text": "public function getIndex()\n {\n\n return view('home')\n ->with('posts', Post::paginate(10))\n ->with('title', 'Blog | Home')\n ->with('description','This is the Home Page Blog')\n ->with('category', Category::all());\n }", "title": "" }, { "docid": "555d790e2ee63fd3269059c2ecce1582", "score": "0.7776608", "text": "public function getIndex()\n\t{\n $post = Blogpost::visible()\n ->get()\n ->last();\n\n\t\treturn View::make('index')\n ->with('post', $post);\n\t}", "title": "" }, { "docid": "cef77e15cbaa45df81bbf87d2cba072b", "score": "0.7763554", "text": "public function index()\n {\n return view('admin.posts.index')->with('posts' , Post :: all()); \n }", "title": "" }, { "docid": "56f3002be42f1e1343b1208db50ef53b", "score": "0.7763103", "text": "public function blog()\n {\n $product = Product::all();\n\n $blog = Blog::orderBy('created_at','ASC')->paginate(6);\n return view('client.blog',compact('product', 'blog'));\n }", "title": "" }, { "docid": "42603c5dfffdfabbd1e53dca683414e5", "score": "0.77602696", "text": "public function blog()\n {\n //\n return view('FrontOffice/blog');\n }", "title": "" }, { "docid": "b7abba44a46bf9c1112a0c2a91a58ad9", "score": "0.77602124", "text": "public function index()\n {\n //Redirect to /blog URL for post list\n return redirect()->action('BlogController@index');\n }", "title": "" }, { "docid": "9d3ee97b8639c9c82023a73c80fd01b4", "score": "0.7749734", "text": "public function index()\n {\n // $author = Author::all();\n //return view('index', compact('author'));\n }", "title": "" }, { "docid": "2520304351a92dfab367851f40cad644", "score": "0.77465916", "text": "public function index()\n {\n return view('admin.pages.blog_category.index')\n ->with('contents', Content::paginate(15));\n }", "title": "" }, { "docid": "04008fe02a2a16025bc36cdd77886639", "score": "0.77233243", "text": "public function index()\n {\n //fetch 5 posts from database which are active and latest\n $posts = Posts::where('active',1)->orderBy('created_at')->paginate(1);\n // page Heading\n $title = 'Latest Post';\n // return to our view (home.blade.php)\n return view('home')->withPosts($posts)->withTitle($title);\n }", "title": "" }, { "docid": "f04f000f2fb7e1e66b6708d4d688d38c", "score": "0.7719553", "text": "public function blog()\n\t{\n\t\t$articles = Article::orderBy('created_at', 'desc')->get();\n\t\treturn view('blog', compact('articles'));\n\t}", "title": "" }, { "docid": "02d85b2bd4941d29b78404641f7f7635", "score": "0.77185404", "text": "public function index()\n {\n $articles = Article::orderBy('id', 'ASC')->paginate(); \n $blogs = Blog::get();\n $users = User::get();\n return view('admin.articles.index')->with(['articles'=>$articles,'blogs'=>$blogs,'users'=>$users]);\n }", "title": "" }, { "docid": "ec4f7c32d40a4b8efc35f97cc46b8078", "score": "0.7711976", "text": "public function blog() {\n $data = [\n 'posts' => $this->postModel->allPosts()\n ];\n\n $this->view('pages/blog', $data);\n }", "title": "" }, { "docid": "7b4ef7868dae551eaae4c8cda0c11035", "score": "0.77061987", "text": "public function view_blog()\n {\n \n $data=Blog::first();\n return view::make('admin.view_blog',compact('data'));\n \n }", "title": "" }, { "docid": "d80459b58fe5879d85f9c477537f17fe", "score": "0.7700713", "text": "public function index(Request $request)\n {\n $datas = Blog::orderBy('created_at', 'asc')->paginate(10);\n return view('admin.blog.index')->with('datas', $datas);\n }", "title": "" }, { "docid": "0ec6ccd9edc9c19632fd8a738fdf9d77", "score": "0.7700678", "text": "public function index()\n {\n $detail = DB::table('company_detail')->first();\n $category = ProductCategory::orderBy('created_at','ASC')->get();\n $post_category = Category::orderBy('created_at','DESC')->limit(5)->get();\n // return $post_category;\n $recent = Posts::orderBy('created_at','ASC')->where('status','PUBLISHED')->limit(3)->get();\n // return $recent;\n $posts = Posts::orderBy('created_at','DESC')->where('status','PUBLISHED')->limit(6)->get();\n return view('blog')->with('detail',$detail)->with('category',$category)->with('post_category',$post_category)->with('recent',$recent)->with('posts',$posts);\n\n\n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "7b0cb38d2d409d080f75658e96809cc3", "score": "0.0", "text": "public function update(Request $request, User $user)\n {\n //\n }", "title": "" } ]
[ { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "f926d67103b49c3b708938347c012581", "score": "0.7038754", "text": "public function updateResource($resourceId, $record);", "title": "" }, { "docid": "de2d52f9def3aad6f8d87d580d39c262", "score": "0.6888798", "text": "public function update() {\n\t\t$this->storage->updateStorage();\n\t}", "title": "" }, { "docid": "24dae383ef96f6cd3c2ae0eb901b0e6e", "score": "0.6533836", "text": "public function update_storage()\n {\n }", "title": "" }, { "docid": "4036e5a75462edf3f0d824f080ae7c19", "score": "0.6514445", "text": "public function update(StorageRequest $request, Storage $storage)\n {\n $campos = $request->validated();\n\n $storage = $this->storageRepository->update($campos, $storage);\n\n return $this->showOne(new StorageResource($storage), 200);\n }", "title": "" }, { "docid": "4a53e7dd3c2aa1884a6b78cfa1931df7", "score": "0.6363001", "text": "public function updateFromResource(\n $resourceResource,\n $exerciseResource\n );", "title": "" }, { "docid": "a37451d53b2edd450cd43846406cd904", "score": "0.6323939", "text": "public function updated(Resource $resource)\n {\n $this->deleteCacheDepartments();\n }", "title": "" }, { "docid": "1d3b0af7b4ec814b473b06c1a2a208fd", "score": "0.613845", "text": "public function update(UpdateRequest $request, Resource $resource)\n {\n $resource->update($request->only('name', 'type','resource_starts','resource_ends','exclude_weekends'));\n\n return redirect(route('resources.show', $resource->id))->withSuccess('Updated successfully!');\n }", "title": "" }, { "docid": "4e3b6ab51e63f6ffae63a329de90b240", "score": "0.6119389", "text": "abstract public function updateResource($resource, ResourceNode $node, Workspace $workspace, User $user, SyncInfo $wsInfo, $path, $syncDate);", "title": "" }, { "docid": "4f4808380f22218aaf7fbea02c9916cb", "score": "0.6091119", "text": "public function update(Request $request, $resourceId)\n {\n $resource = $this->resource->find($resourceId);\n\n $this->validate($request, [\n 'title' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'slug' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'model' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'namespace' => 'required|max:255',\n 'order_column' => 'required|integer',\n 'order_direction' => 'required|in:asc,desc'\n ]);\n\n $resource->update($request->all());\n\n return redirect()->back()->with('success', 'Resource updated');\n }", "title": "" }, { "docid": "fae18446ab6ba766002815d7efd6d0f2", "score": "0.60153604", "text": "public function updateStream($resource)\n {\n return $this->filesystem->updateStream($this->path, $resource);\n }", "title": "" }, { "docid": "109ed515c823d7a78d782a8290a576d2", "score": "0.5969382", "text": "public function update($resourceId)\n {\n $exception = new Exception(\"CRUD0103\", __METHOD__);\n $exception->setHttpStatus(\"501\", \"Not yet implemented\");\n throw $exception;\n }", "title": "" }, { "docid": "74defa123e70820a991135800b36505a", "score": "0.5949209", "text": "static public function update () {\n\n $METHOD = Request::getMethod();\n $PATH = Request::getPath();\n\n Log::debug('--- Matched / with PUT method ---');\n\n $DATA = new EditableJSON(REST_DATA_FILE);\n\n $DATA->setValue(Request::getInput());\n\n Log::info(\"$METHOD $PATH: Changed resource completely\");\n\n return $DATA;\n\n }", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59377414", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "aa3074b4db1abeb89a38b5e15dee9e7c", "score": "0.5897436", "text": "public function updateStream($path, $resource, array $config)\r\n\t{\r\n\t\treturn $this->upload($path, $resource, $config);\r\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac66e1d66c388debefca8f97ea91a2b7", "score": "0.5842868", "text": "public function putUpdate()\n {\n $this->postUpdate();\n }", "title": "" }, { "docid": "f9e2fce00b6006820375e4adc0b03778", "score": "0.5839037", "text": "public function update($id, Request $request)\n {\n //\n $this->validate($request, ['storage_type' => 'required|in:Local HDD,Network HDD,Local SSD,Network SSD']);\n\n $st = StorageType::findOrFail($id);\n $st->storage_type = $request->storage_type;\n\n return redirect()->route('storagetypes.index');\n }", "title": "" }, { "docid": "58d5142b37ce0114e53d3fe56c2f6c03", "score": "0.5809738", "text": "protected function storeVersion(PuliResource $resource)\n {\n if (null !== $this->changeStream) {\n $this->changeStream->append($resource);\n }\n }", "title": "" }, { "docid": "3ebf4ac6712058cf5111ea2fb1b3f69d", "score": "0.5789821", "text": "public function updateStream($path, $resource, Config $config)\n {\n $this->delete($path);\n\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "b7efc8833e2707d2c41ccbb075ab62b4", "score": "0.5752699", "text": "public function updateExisting();", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.5747208", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "9515a7f9c7d4d49fd0e91b13594a00d6", "score": "0.5671085", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'question'=>'required',\n 'description'=>'required',\n \n ]);\n $frequently=Frequently::where('id',$id)->first();\n $old_image=$request->old_image;\n $path=$old_image;\n if($request->hasFile('thumbnail')){\n if($path!=null&&file_exists(\"/storage/$path\")){\n unlink('storage/'.$path);\n }\n $path=$request->file('thumbnail')->store('Frequentlys');\n }\n $frequently->question=$request->question;\n $frequently->description=$request->description;\n $frequently->photo=$path;\n $frequently->save();\n return redirect()->route('listFrequently');\n }", "title": "" }, { "docid": "9ddd9520efc51e699e82bfa708a3c5e5", "score": "0.56641686", "text": "public function update($path, $cachedData);", "title": "" }, { "docid": "b3535d5367a1c20a3d356e026d81c210", "score": "0.56451815", "text": "public function update(Request $request, $id)\n {\n $product = Products::findOrFail($id);\n if($request->hasFile('avatar')){\n $imagen = $request->file('avatar')->store('public');\n $resultado = str_replace(\"public\", \"storage\", $imagen);\n $product->imagen = $resultado;\n }\n $product->nombre = $request->get('nombre');\n $product->codigoBarra = $request->codigoBarra;\n $product->cantidad = $request->cantidad ;\n $product->categoria = $request->categoria ;\n $product->descripcion = $request->descripcion ;\n $product->costo = $request->costo ;\n $product->precio = $request->precio;\n $product->save();\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "3538e1075fd6fc7f2d59249215667663", "score": "0.5642799", "text": "public function update(Request $request, $id)\n {\n $id = $request->input('Id');\n $editPoll = $this->bucket->get(\"poll::\" . $id)->value;\n if (!(is_object($editPoll))) {\n $editPoll = json_decode($editPoll);\n }\n $created_at = $request->input('CreatedAt');\n $question = $request->input('Question');\n $status = $request->input('Status');\n $tags = $request->input('Tags');\n $tags_new = explode(\",\", $tags);\n $options = $editPoll->options;\n\n if ($file = $request->file('ImageName')) {\n unlink(\"imgs/\" . $request->input('PreviousImage'));\n $member_image = $file->getClientOriginalName();\n $file->move('imgs', $member_image);\n } else {\n $member_image = $request->input('PreviousImage');\n }\n\n $this->bucket->replace(\"poll::\" . $id, ['Id' => $id, 'created_at' => $created_at, 'options' => $options,\n 'question' => $question, \"status\" => $status, \"tags\" => $tags_new, 'ImageName' => $member_image]);\n return redirect(\"polls\");\n }", "title": "" }, { "docid": "e5e1cb25ba53fcc2b79ddb3fe3b7304a", "score": "0.56392527", "text": "public function update($object)\n {\n $this->persistenceManager->update($object);\n }", "title": "" }, { "docid": "9d32dd86baa4f1169783965d8d08b640", "score": "0.56374604", "text": "public function testResourcesCanBeUpdated()\n {\n $admin = factory(User::class)->states('admin')->create();\n $resource = factory(Resource::class)->create();\n\n $response = $this->actingAs($admin)->put('resources/'.$resource->id, [\n 'name' => 'New Resource Name',\n ]);\n\n $response->assertRedirect('/resources');\n $this->assertDatabaseHas('resources', [\n 'name' => 'New Resource Name',\n ]);\n }", "title": "" }, { "docid": "e4d9cc7693ad36b031389e0564fbaf8b", "score": "0.5624323", "text": "public function update(StoreEditEngagement $request, $id)\n {\n $engagement = Engagement::find($id);\n\n $engagement->titre = $request->titre;\n $engagement->contenu = $request->contenu;\n \n if ($request->image != null)\n {\n Storage::disk('imgEngagement')->delete($engagement->image);\n \n \n $image = [\n \"name\" => $request->image,\n \"disk\" => \"imgEngagement\",\n \"w\" => 1000,\n \"h\" => 1000\n ];\n \n $engagement->image = $this->imageResize->imageStore($image);\n }\n $engagement->save();\n return redirect()->route('engagements.index',['engagement'=> $engagement->id]);\n }", "title": "" }, { "docid": "b580434b2e577708f365194b901193c3", "score": "0.56211615", "text": "public function update() {\n\t\tif ($this->get('id') !== null) {\n\t\t\t$this->save();\n\t\t}\n\t}", "title": "" }, { "docid": "02b2a8f5c6ceb76c08e4a6597e2c8da0", "score": "0.5618807", "text": "public function updateProduct(): void\n {\n $product = $this->fetchProduct($this->product->product_name, $this->product->product_nr);\n if (!$product) {\n $this->product->last_scan = now();\n $this->product->save();\n\n return;\n }\n\n $this->product->product_url = $product['details']['url'];\n $this->product->stock_status = $product['details']['stock'];\n $this->product->last_scan = now();\n\n $inStock = $this->store->productHasStock($product['node']);\n if ($inStock) {\n $this->product->notifyInStock();\n $this->product->found = 1;\n }\n\n $this->product->save();\n }", "title": "" }, { "docid": "1c49f93e51c7bc32222ecde454e3f4ab", "score": "0.56150794", "text": "public function update(Request $request, $id)\n {\n $item = Item::findOrFail($id);\n\n $request->validate([\n 'description' => 'required|string',\n 'name' => 'required|string',\n 'price' => 'required|numeric',\n 'type' => 'required', Rule::in(['drink', 'dish']),\n ]);\n\n if($request->file('file')){\n $request->validate([\n 'file' => 'image'\n ]);\n if($item->photo_url != null){\n Storage::delete('public/items/'.$item->photo_url);\n }\n $item->photo_url = basename($request->file('file')->store('public/items'));\n }\n\n \n $item->description = $request['description'];\n $item->name = $request['name'];\n $item->price = $request['price'];\n $item->type = $request['type'];\n $item->save();\n return new ItemResource($item);\n }", "title": "" }, { "docid": "b6ca8c191b9b71b8ef7393647dcd5cd6", "score": "0.5610084", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n if (!$product) return response()->json(['message' => 'Product not found.'], 404);\n\n $validator = Validator::make($request->all(), [\n 'name' => 'min:3|max:100',\n 'description' => 'min:5',\n 'price' => 'integer',\n 'quantity' => 'integer',\n 'image' => 'image|mimes:jpg,jpeg,svg,png'\n ]);\n\n $newPath = \"\";\n if ($request->hasFile('image')) {\n Storage::delete('products/' . $product->image);\n $newPath = $request->file('image')->store('public/products');\n }\n\n if ($validator->fails()) {\n return response()->json($validator->errors(), 422);\n }\n\n $product->name = $request->get('name', $product->name);\n $product->description = $request->get('description', $product->description);\n $product->price = $request->get('price', $product->price);\n $product->quantity = $request->get('quantity', $product->quantity);\n $product->image = $request->get($newPath, $product->image);\n\n $product->save();\n return new ProductResource($product);\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.56020206", "text": "public function update($id, $request);", "title": "" }, { "docid": "111aff7dc652d737e04484d721049c98", "score": "0.5595379", "text": "public function setResource($resource) { $this->resource = $resource; }", "title": "" }, { "docid": "751d0245849a838786b28b82bde8a4c7", "score": "0.5594406", "text": "public function updateStream($path, $resource, Config $config) {\n echo \"updateStream\";exit;\n }", "title": "" }, { "docid": "2ce24d19906aa703a63656bcd981224d", "score": "0.5592051", "text": "public function update(Request $request, $id)\n {\n $article=Article::findOrFail($id);\n $article->stock=$request->input('stock');\n if($article->save()) {\n return new ArticleResource($article);\n }\n }", "title": "" }, { "docid": "87604b965f2923e2345b489944eb16ab", "score": "0.5582592", "text": "public function update(IEntity $entity);", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "23b36aabfd1baef1df2a84b64db8a004", "score": "0.5563429", "text": "public function update(Request $request, $id)\n {\n $data = $request->all();\n\n //validation\n $request->validate($this->Validation());\n\n $product = Product::find($id);\n\n $data['slug'] = Str::slug($data['name'], '-');\n\n if (!empty($data['image'])) {\n // RIMUOVERE VECCHIA IMG\n if (!empty($product->image)) {\n Storage::disk('public')->delete($product->image);\n }\n $data['image'] = Storage::disk('public')->put('images', $data['image']);\n }\n\n $updated = $product->update($data);\n\n if($updated){\n return redirect()->route('products.show', $product->slug);\n } else {\n return redirect()->route('homepage');\n } \n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "04c0feb8d31bb9e3b0c25e72f6a0c700", "score": "0.55594426", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path, $resource, $config);\n }", "title": "" }, { "docid": "29033c29e8cd8e769333ca2adef8fc91", "score": "0.5559027", "text": "public function update(Request $request, $id)\n {\n $single=Slider_image::findorfail($id);\n $image = $single->image;\n\n if ($request->file() != null){\n\n Storage::delete('upload/slider_image/'.$image);\n\n $upload = $request->file('image1');\n\n\n $file_name = time().'_'.$upload->getClientOriginalExtension();\n\n $path = $upload->storeAs('upload/slider_image',$file_name);\n\n $single->update([\n 'image'=>$file_name,\n 'slider_target'=>$request->slider_target\n ]);\n }else{\n\n $single->update([\n 'image'=>$request->img,\n 'slider_target'=>$request->slider_target\n ]);\n }\n\n\n return redirect('admin/SliderItem');\n }", "title": "" }, { "docid": "23b13183e49a64c42b369b76ee72ff0a", "score": "0.5546373", "text": "public function put($resource, $arOptions)\n {\n // TODO: Implement put() method.\n if (false) {\n $this->utilSetHttpStatus(200, \"OK\");\n } else {\n $this->utilSetHttpStatus(404, \"Not found\");\n }\n }", "title": "" }, { "docid": "a08f6b774130b5c3d30282ec86fc268e", "score": "0.55422", "text": "public function update(Request $request)\n {\n DB::table('cruds')->where('id',$request->id)->update([\n 'name'=>$request->name,\n 'price'=>$request->price,\n 'image'=>$request->file('image')->store('media'),\n 'description'=>$request->description,\n ]);\n return redirect('index/show');\n\n\n }", "title": "" }, { "docid": "47dd85ccb548e5327aa6f0cd02b5fef8", "score": "0.5540378", "text": "public function update(Request $request, $id) //Atualizar um dado inteiro, usando o Put\n {\n //\n }", "title": "" }, { "docid": "cd6123bf3edfbe468d12565bcc198dd6", "score": "0.5539982", "text": "public function update($data, $id, $withTrashed = false);", "title": "" }, { "docid": "6f5dfe25ea3a353e2c34d4da9909c65a", "score": "0.553297", "text": "public function update(Request $request, $model, $id)\n {\n $class = 'App\\\\' . ucfirst($model);\n $resource = $class::find($id);\n if(empty($resource)){\n return response([\n \"error\" => \"Resource not found\"\n ], 404);\n }\n $update = [];\n $fillable_attributes = $resource->getFillable();\n foreach($fillable_attributes as $attribute){\n if(strpos($attribute, 's3_url')){\n if(!empty($request->file($attribute))){\n $url = AmazonS3Helper::UploadtoS3(file_get_contents($request->file($attribute)), 'framework/' . $model . '/' . $request->file($attribute)->hashName(),'image/' . $request->file($attribute)->extension());\n $update[$attribute] = $url;\n }\n }else{\n $update[$attribute] = $request->$attribute;\n }\n }\n $resource->update($update);\n return response([\n \"data\" => $resource\n ], 200);\n }", "title": "" }, { "docid": "91fa0e4ea0a8c7896101b28b83ae1ab3", "score": "0.55280733", "text": "public function update(Request $request)\n {\n //\n $producto = Product::findOrFail($request->id_producto);\n $producto->category_id = $request->id;\n $producto->nombre = $request->nombre;\n $producto->precio = $request->precio;\n $producto->descripcion = $request->descripcion;\n $producto->stock = 0;\n $producto->estado = '1';\n $imagen = $request->file('imagen');\n \n $imagenes = 'storage/app/products/'.$producto->imagen;\n \n // Guardar imagen\n if($imagen){\n Storage::delete($imagenes);\n $image_path_name = time().$imagen->getClientOriginalName();\n Storage::disk('products')->put($image_path_name, File::get($imagen));\n $producto->imagen = $image_path_name;\n }\n $producto->save();\n return Redirect::to(\"admin/producto\");\n }", "title": "" }, { "docid": "a89f939420a4ce0f66a76f1e13ccde13", "score": "0.5525219", "text": "public function update(UpdateProductRequest $request, Product $product)\n {\n\n $data=$request->only(['title','description','published_at','price','category_id','content']);\n if ($request->hasFile('image')){\n //check if new image\n $image=$request->image->store('products');\n //upload it\n Storage::delete($product->image);\n //delete old one\n\n $data['image']=$image;\n }\n $product->update($data);\n\n\n session()->flash('success','Product updated successfully');\n\n return redirect(route('products.index'));\n }", "title": "" }, { "docid": "d8af827654eda9b47beb831dca58018e", "score": "0.5523829", "text": "public function put($resource, $id, $data = array())\n {\n $token = $this->getToken();\n if (empty($token)) {\n $token = $this->requestToken();\n }\n $data['token'] = $token;\n $ret = $this->getClient()->put(\"{$resource}/{$id}\", $data);\n //$ret = $this->getClient()->put(\"{$resource}/{$id}?token=\" . $token, $data);\n if (empty($ret)) {\n throw new Exception('Quartic Api returned empty result.');\n }\n if (!isset($ret['body']['status']) || strtolower($ret['body']['status']) != 'ok') {\n $this->getHelper()->log(var_export(\"{$resource}/{$id}\", true));\n $this->getHelper()->log(var_export($data, true));\n $this->getHelper()->log(var_export($ret, true));\n if (isset($ret['body']['data']['error_code'])) {\n throw new Exception('Quartic Api returned error: ' . $ret['body']['data']['error_message']);\n } else {\n throw new Exception('Quartic Api returned error: ' . print_r($ret['body'], true));\n }\n }\n return $ret;\n }", "title": "" }, { "docid": "c49ab96374b0772bd28cd7ae8c2d6bfe", "score": "0.55207497", "text": "public function update(Request $request, $id)\n {\n //Actualizamos Datos en la DB\n $product = Product::findOrFail($id);\n if ($request->hasFile('image')) {\n $product->image = $request->file('image')->store('public/img/product/body');\n }\n $product->update($request->all());\n //Redireccionar al index\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "429de32ce0a6f737ded9b4f0b77dc398", "score": "0.55156404", "text": "public function update(ProductEditRequest $request, $id)\n {\n //\n $url = $request->input('url');\n try {\n $product = Product::findOrFail($id);\n\n // if ($file = $request->file('image')) { // since its a one to many relationship\n // foreach ($product->images as $image) {\n // if (file_exists($old_file = public_path().'/images/product/'.$image->name)) { // no need to unlink since product can have many images\n // unlink($old_file); // unlink the old image\n // }\n // }\n\n // $name = 'product_'.$id.'_'.time().'.'.$file->getClientOriginalExtension();\n // $file->move('images/product', $name);\n // $product->images()->create(['product_id' => $product->id, 'name' => $name]);\n // }\n\n $product->name = $request->input('name');\n $product->category_id = $request->input('category_id');\n $product->stock = $request->input('stock');\n $product->price = $request->input('price');\n $product->status = $request->input('status');\n $product->description = $request->input('description');\n $result = $product->push();\n\n if ($result) {\n Session::flash('message', 'Update Success');\n } else {\n Session::flash('message', 'Update Failed');\n }\n } catch (\\Exception $e) {\n // do task when error\n Session::flash('error', 'Failed '.$e->getMessage());\n }\n return redirect($url);\n }", "title": "" }, { "docid": "b5d2b22e695863a96f5a335c883dea91", "score": "0.55156153", "text": "public function update($item);", "title": "" }, { "docid": "ca50926bc80f12da80aa1ee555d0ab40", "score": "0.55123925", "text": "public function update(){\n Lore::app()->getPersistence()->getRepository($this->metadata()->getRepositoryName())->update($this);\n }", "title": "" }, { "docid": "59cc7aa6a27c614e6dbea168303030cb", "score": "0.5510812", "text": "public function update(Request $request, Memory $memory)\n {\n //\n }", "title": "" }, { "docid": "a6dd9080de61feef7df50e26b70511c5", "score": "0.5509228", "text": "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [ \n 'name' => 'required|string|max:255',\n 'logo' => 'sometimes|mimes:jpeg,bmp,png,jpg'\n ]);\n\n if ($validator->fails()) {\n $message = 'Validation Error.';\n $status = 400;\n\n $response = [\n 'status' => $status,\n 'success' => false,\n 'message' => $message,\n 'data' => $validator->errors(),\n ];\n\n return response()->json($response, 400);\n }\n else\n {\n $brand = Brand::find($id);\n\n if (is_null($brand)) {\n\n $status = 400;\n $message = 'Brand not found.';\n\n $response = [\n 'status' => $status,\n 'success' => false,\n 'message' => $message,\n ];\n\n return response()->json($response, 404);\n\n }\n else{\n\n $name = $request->name;\n $photo = $request->logo;\n\n // File Upoload\n if ($request->hasFile('photo')) {\n $imageName = time().'.'.$photo->extension(); \n \n $photo->move(public_path('images/brand'), $imageName);\n\n $filepath = 'images/brand/'.$imageName;\n\n $oldphoto = $brand->logo;\n\n if(\\File::exists(public_path($oldphoto))){\n \\File::delete(public_path($oldphoto));\n }\n }\n else{\n $filepath = $brand->logo;\n\n }\n\n // Data insert\n $brand->name = $name;\n $brand->logo = $filepath;\n $brand->save();\n \n\n $status = 200;\n $result = new BrandResource($brand);\n $message = 'Brand updated successfully.';\n\n $response = [\n 'status' => $status,\n 'success' => true,\n 'message' => $message,\n 'data' => $result,\n ];\n\n return response()->json($response, 200);\n }\n }\n }", "title": "" }, { "docid": "fd275acf4c99e35a1942adcba55b5168", "score": "0.5507853", "text": "public function update(Request $request, $id)\n {\n $data = Slider::find($id);\n $data->short_title = $request->short_title;\n $data->long_title = $request->long_title;\n $data->updated_by = Auth::user()->id;\n if ($request->file('image')) {\n $file = $request->file('image');\n @unlink(public_path('/upload/slider_image/'.$data->image));\n $filename =date('YmdHi').$file->getClientOriginalName();\n $file->move(public_path('/upload/slider_image'),$filename);\n $data['image']= $filename;\n }\n $data->save();\n return redirect()->route('view-slider')->with('success','Data updated successfully!');\n }", "title": "" }, { "docid": "5764299e1bb6a4a7925c46ed1072ca62", "score": "0.5499601", "text": "public function put($uri = null, $data = array(), $request = array());", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "048d9fb1be8f80b9c6a16e67a98faaff", "score": "0.5493909", "text": "public function update(StoreInventory $request, $id)\n {\n // Grab the inventory item so we can update it\n $inventory = Inventory::findOrFail($id);\n\n $inventory->fill($request->validated());\n \n return (new InventoryResource($inventory))\n ->response()\n ->setStatusCode(201);\n }", "title": "" }, { "docid": "09d3177310ace6bf104fcfebfdca9181", "score": "0.54922557", "text": "public function update($data)\n {\n return $this->client->put($this->fullPath(), null, $data);\n }", "title": "" }, { "docid": "85e1d4766b8ee562913fc2a3fc7a60db", "score": "0.54890925", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate(request(),[\n 'photo' => 'required|image|max:2048'\n ]);\n\n $photo = request()->file('photo')->store('public');\n \n\n Photo::update([\n 'url' => Storage::url($photo),\n 'activity_id'=> $activity->id,\n ]);\n\n }", "title": "" }, { "docid": "dea8abf6fe11ceeaef21c557a4920a01", "score": "0.5488609", "text": "public function update(Request $request, $id)\n {$product = Product::FindOrFail($id);\n $product->name = $request->name;\n $product->price = $request->price;\n $product->old_price= $request->old_price;\n $product->description = $request->description;\n $product->sub_category_id = $request->sub_category;\n if ($request->hasFile('picture')) {\n $picName = \"GRO\".uniqid().time().'.'.$request->picture->getClientOriginalExtension();\n $request->picture->move(public_path().'/uploads/', $picName);\n $product->picture='uploads/'.$picName;\n }\n $product->save();\n flash('Product updated successfully');\n return redirect('/');\n }", "title": "" }, { "docid": "85714b33bdb1da52c9f3c38b3fb0e4fd", "score": "0.54882276", "text": "abstract public function update($id);", "title": "" }, { "docid": "2aeec2d1db1eb88cf92a885873ec7eed", "score": "0.54836845", "text": "public function update(Request $request, Executive $executive)\n {\n $this->validateRequestUpdate();\n $this->checkAndDeleteOldImage($executive);\n $executive->update($this->validateRequestUpdate());\n $this->storeImage($executive);\n return redirect(route('executive.index'));\n }", "title": "" }, { "docid": "4dd2aec8bd2e4b5b1bffb4aec68a91da", "score": "0.54823583", "text": "public function update(Request $request, Role_resource $role_resource)\n {\n //\n }", "title": "" }, { "docid": "4ba6c1fe9ed4a5352f8497193c138598", "score": "0.5481853", "text": "public function update(Request $request, $id)\n {\n $resource = Resource::find($id);\n $resource->update($request->except('files'));\n\n if ($request->hasFile('files')) {\n $resource->addMultipleMediaFromRequest(['files'])\n ->each(function ($file) {\n $file->toMediaCollection();\n });\n }\n\n $response = [\n 'resource' => $resource->load('media'),\n 'msg' => 'Resource updated successfully.'\n ];\n\n return response($response, 200);\n }", "title": "" }, { "docid": "70932022b6ff9363043b59bcdecbdea9", "score": "0.5480141", "text": "public function update(Request $request, $id)\n {\n //$idTag=Tag::findOrFail($id);\n $this->authorize('update'/* ,$idTag */);\n $tag = new TagResource(Tag::findOrFail($id));\n $tag->update($request->all());\n return response($tag, 200);\n }", "title": "" }, { "docid": "61dacb3f91f0a855850458a18f5e4183", "score": "0.5479231", "text": "public function update(Request $request, $id)\n {\n $input = $request->all();\n if($this->repo->update($input, $id)){\n return $this->respondOK(\"resource updated\");\n }else{\n return $this->errorNotFound('resource not updated');\n }\n }", "title": "" }, { "docid": "154f3dfd07c1b3de458996ea6d67633a", "score": "0.5475994", "text": "protected function httpPut() {\n\n // First we'll do a check to see if the resource already exists\n try {\n $info = $this->tree->getNodeInfo($this->getRequestUri(),0); \n \n // Checking potential locks\n if (!$this->validateLock()) throw new Sabre_DAV_LockedException('The resource you tried to edit is locked');\n\n // We got this far, this means the node already exists.\n // This also means we should check for the If-None-Match header\n if ($this->httpRequest->getHeader('If-None-Match')) {\n\n throw new Sabre_DAV_PreconditionFailedException('The resource already exists, and an If-None-Match header was supplied');\n\n }\n \n // If the node is a collection, we'll deny it\n if ($info[0]['type'] == self::NODE_DIRECTORY) throw new Sabre_DAV_ConflictException('PUTs on directories are not allowed'); \n\n $this->tree->put($this->getRequestUri(),$this->httpRequest->getBody());\n $this->httpResponse->sendStatus(200);\n\n } catch (Sabre_DAV_FileNotFoundException $e) {\n\n // If we got here, the resource didn't exist yet.\n\n // Validating the lock on the parent collection\n $parent = dirname($this->getRequestUri());\n if (!$this->validateLock($parent)) throw new Sabre_DAV_LockedException('You\\'re creating a new file, but the parent collection is currently locked');\n\n // This means the resource doesn't exist yet, and we're creating a new one\n $this->tree->createFile($this->getRequestUri(),$this->httpRequest->getBody());\n $this->httpResponse->sendStatus(201);\n\n }\n\n }", "title": "" }, { "docid": "3a87aca1ec17bb66ec8a99811ab99ab3", "score": "0.5472414", "text": "public function updateProduct(Request $request, $id)\n {\n \n // Update Product\n //return(Product::where('product_id','=',$id)->first());\n\n $Product =Product::where('product_id','=',$id)->first();\n $Product->product_name = $request->product_name; \n $Product->product_description = $request->product_description;\n $Product->product_qty = $request->product_qty;\n $Product->product_status = $request->product_status;\n $Product->save();\n\n $url=\"http://127.0.0.1:8000/storage/\";\n $file=$request->file('product_img');\n $extension=$file->extension();\n $path=$request->file('product_img')->storeAs('Product', $Product->product_id.'.'.$extension);\n \n Product::where('product_id','=',$Product->product_id)->update([\n 'product_img' => $url.$path\n ]);\n \n // return($Product);\n \n if($Product){\n return response()->json($data=[\n 'status'=>'success',\n 'message'=>'Upadte product Successfull',\n 'product' => $Product\n \n ], 200);\n }\n else{\n return response()->json($data=[\n 'status'=>'failed',\n 'message'=>'something went wrong'\n ],203);\n } \n }", "title": "" }, { "docid": "333db29e9caf217f39a61608ae6c94ca", "score": "0.54632384", "text": "public function update(Request $request, $id)\n {\n // Validation des données du formulaire\n $this->validate($request, [\n 'name' => 'required|min:5|max:100',\n 'description' => 'required',\n 'price' => 'required|numeric',\n 'picture' => 'image:max:3000',\n 'status' => 'required|in:published,unpublished',\n 'sales' => 'required|in:onSales,standard',\n 'reference' => 'required|alpha_num|min:16|max:16',\n 'category_id' => 'required|integer',\n 'sizes' => 'required'\n ]);\n\n $product = Product::find($id);\n \n $datas = $request->all();\n\n $file = $request->file('picture');\n if(!empty($file)){ // si l'utilisateur ne change pas son image\n $imageName = $request->picture->hashName(); //hashage du nom de l'image à enregistrer\n $datas['picture'] = $imageName;\n\n $categoryId = $datas['category_id'];\n $img = $request->file('picture');\n $img->move(public_path('/img/'.$categoryId),$datas['picture']);// insertion de l'image dans le dossier de catégorie choisie\n }else{\n if($product->category_id != $datas['category_id']){ // si l'utilisateur change de catégorie\n $newCategoryId = $datas['category_id'];\n $oldPath = public_path('/img/'.$product->category_id.'/'.$product->picture);\n $newPath = public_path('/img/'.$newCategoryId.'/'.$product->picture);\n File::move($oldPath,$newPath);// insertion de l'image dans le dossier de catégorie choisie\n }\n \n }\n\n \n $product->update($datas);\n $product->size()->sync($request->sizes);\n\n //Redirection vers la page admin des produits\n return redirect()->route('product.index')->with('message', 'Le produit a bien été mise à jour');\n }", "title": "" }, { "docid": "0e4d84200a41553d02c2dd28fc577124", "score": "0.54631126", "text": "public function updateObject($objectPath,$content) { }", "title": "" }, { "docid": "5dfe400f13e0d453a75d37d2c1296a55", "score": "0.545993", "text": "public function update(Request $request, $id)\n {\n try{\n DB::beginTransaction();\n $data = [\n 'name' => $request->slide_name,\n 'description' => $request->desc_slide\n ];\n\n if($request->hasFile('image_slide')){\n $imageSlide = $this->storageTraitUpload($request,'image_slide','slide');\n $data['image'] = $imageSlide['file_path'];\n }\n $this->slide->find($id)->update($data);\n DB::commit();\n return redirect()->route('admin.slide.index');\n }catch(Exception $exception){\n DB::rollBack();\n Log::error('message'.$exception->getMessage().'line'.$exception->getLine());\n }\n }", "title": "" }, { "docid": "a6b372ff8f044bee76bd1ac8500ec932", "score": "0.5457891", "text": "public function testUpdate()\n {\n Document::exists() || Document::factory()->create();\n $document = Document::latest('id')->first();\n\n $documentType = DocumentType::factory()->create();\n $student = Student::factory()->create();\n $debrief = Debrief::factory()->create();\n\n $data = [\n 'filename' => $document->filename,\n 'relative_path' => $document->relative_path,\n 'disk' => $document->disk,\n 'extension' => $document->extension,\n 'document_type' => $documentType->getKey(),\n 'student' => $student->getKey(),\n 'debrief' => $debrief->getKey()\n ];\n\n $response = $this->actingAs($this->adminUser)->putJson('/api/documents/' . $document->getKey(), $data);\n if ($response->exception) {\n dd($response->exception);\n }\n\n $document = $document->fresh();\n\n $expectedResponseContent = (new DocumentResource($document))->toArray(request());\n\n $response->assertOk()\n ->assertJson([\n 'data' => $expectedResponseContent\n ]);\n\n // $this->actingAs($this->unauthorizedUser)->putJson('/api/documents/' . $tutor->getKey(), $data)\n // ->assertForbidden();\n }", "title": "" }, { "docid": "ed8de68c7d88f1904a744dc02701808c", "score": "0.54521495", "text": "public function update(Request $request, $id)\n {\n //\n //highlight sidebar\n $this->setActiveParent();\n\n $validator = $this->custom_validation($request, 'update');\n\n $products = Product::findOrFail($id);\n\n //check if $validator is true && record is found\n if( $validator === true && $products ){\n\n \n //begin transaction\n $transaction = DB::transaction(function() use($request, $products) {\n\n $request['fk_updatedby'] = Auth::id();\n\n //to be remove from storage\n $oldfilename = $products->pictx; \n\n //dd($request->all());\n\n $products->update($request->all());\n\n //check if user removed the logo\n if( $request->removepictx && $request->removepictx == 'on' ){\n \n AppStorage::remove($oldfilename);\n\n //update DB for correct filename @pictx\n $products->update([\n 'pictx'=> null\n ]);\n\n }//END check if user removed the logo\n\n\n //if request uploaded picture\n if( $request->pictx ){\n\n AppStorage::remove($oldfilename);\n \n //update DB for correct filename @pictx\n $products->update([\n 'pictx'=> AppStorage::store('products', $request->pictx)\n ]);\n\n }//END check if request uploaded picture\n\n\n\n session()->flash('success', \"$request->name has been updated!\");\n\n //return redirect(\"/products/edit/$products->pk_products\");\n return redirect()->back();\n\n\n\n });//END transaction\n\n return $transaction;\n \n\n\n \n }else{\n\n //null = current request\n $form_fields = DynamicForm::form_fields('update', $products, null, Product::form_fields() );\n\n $this->setPrerequisites();\n $categories = $this->categories;\n $supplier = $this->supplier;\n\n return view('products.edit', compact('form_fields', 'products', 'categories', 'supplier'))->withErrors($validator); \n //return redirect()->back()->withInput()->withErrors($validator);\n\n\n\n\n }\n\n\n\n\n\n }", "title": "" }, { "docid": "88a70023be7208ea677c3d6e556c61fb", "score": "0.5448917", "text": "public function update(Request $request, $id)\n {\n //\n \n \n $requestData = $request->all();\n \n $file = $request->file('foto');\n if($request->hasFile('foto')){\n \n $requestData['foto']=$file->openFile()->fread($file->getSize());\n /*\n \n $requestData = $request->all();\n \n if ($request->hasFile('foto')) {\n $requestData['foto'] = $request->file('foto')\n ->store('uploads', 'public');\n \n*/\n }\n\n $perfilestudiante = PerfilEstudiante::findOrFail($id);\n $perfilestudiante->update($requestData);\n\n $redireccion='perfil-estudiante/'.$id.'/edit';\n return redirect($redireccion)->with('flash_message', 'PerfilEstudiante updated!')->with('menu','usuario_docente');\n }", "title": "" }, { "docid": "6c0c4f37dc5881fde1e7b8d7f270ec97", "score": "0.544714", "text": "public function update($id) {\n\n }", "title": "" }, { "docid": "d9c8b0075dcc91c0089aaf5fd99a7f55", "score": "0.54461193", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'service_name'=>'required',\n 'description'=>'required'\n ]);\n $path=$request->old_image;\n if($request->hasFile('thumbnail')){\n if($request->old_image!=null){\n unlink('storage/'.$request->old_image);\n }\n $path=$request->file('thumbnail')->store('Thumbnials');\n }\n // $attachment=$request->old_attachment;\n // if($request->hasFile('attachment')){\n // if($attachment!=null){\n // // unlink('storage/'.$request->old_attachment);\n // }\n // $attachment=$request->file('attachment')->store('Attachment');\n // }\n $data=[\n 'service_name'=>$request->service_name,\n // 'attachment'=>$attachment,\n 'description'=>$request->description,\n 'thumbnail'=>$path\n ];\n Service::where('id',$id)->update($data);\n return redirect()->route('listService');\n }", "title": "" }, { "docid": "33f614d65ce49db36128bb80e0048cd2", "score": "0.54417664", "text": "public function update() { if (is_null($this->id))\n trigger_error(\"Reference::update(): Attempt to update a Reference object that does not have its ID property set.\", E_USER_ERROR);\n\n // Update the Article\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $sql = \"UPDATE reference SET RefFile=:refFile UploaderID=:uploaderID Source=:source WHERE ReferenceID = :id\";\n $st = $conn->prepare($sql);\n $st->bindValue(\":refFile\", $this->refFile, PDO::PARAM_STR);\n $st->bindValue(\":uploaderID\", $this->uploaderID, PDO::PARAM_INT);\n $st->bindValue(\":source\", $this->source, PDO::PARAM_STR);\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "181ee26d73bd3c1143b1d276e6b7bb91", "score": "0.54384834", "text": "public function update(Request $request, $id)\n {\n $store = Store::where('id',$id)->first();\n $store->name = $request->name;\n $store->address = $request->address;\n $store->phone = $request->Phone;\n $store->opening = $request->opening;\n if($request->has('image')){\n unlink(public_path('back/images/store/'.$store->image));\n $imageName = time().'.'.$request->image->getClientOriginalExtension();\n $request->image->move(public_path('back/images/store'), $imageName);\n $store->image = $imageName;\n }\n $store->save();\n return redirect()->back()->with('success','Store has been updated successfully!');\n }", "title": "" }, { "docid": "70c454fe61b8abc6777a08b358712c67", "score": "0.54292583", "text": "public function update($id){\n \n }", "title": "" }, { "docid": "0ae71e0ed59055b44c4c0b240eb670ae", "score": "0.5427381", "text": "public function update($id)\n\t{\n\t\t$manager = App::make(\\BackupManager\\Manager::class);\n\t\t$manager->makeRestore()->run('local', 'storage_path('.$id.')');\n\t}", "title": "" }, { "docid": "ee62ec950231813104ded30d5cdda483", "score": "0.5426956", "text": "public function update(StoreParameter $request, $id)\n {\n $data = $request->all();\n $parameter = Parameter::find($id);\n $this->checkAndUploadImage($request, 'image', 'posters', $parameter);\n $parameter->update($data);\n Session::flash('message', 'Успешно изменено');\n return redirect()->route('parameters.index');\n }", "title": "" }, { "docid": "e7a9ed5515a2a2ec06d6aca33efe6caf", "score": "0.5416989", "text": "public function update(Request $request, $id)\n {\n //\n $product = Product::query()->findOrFail($id);\n if($product->photo !== null){\n File::delete($product->photo->file);\n }\n\n\n if ($file = $request->file('photo_id')) {\n $name = Time() . $file->getClientOriginalName();\n $file->move('images', $name);\n $photo = Photo::create(['file' => $name]);\n $input['photo_id'] = $photo->id;\n }\n $product->update($request->all());\n return redirect('/admin/products');\n }", "title": "" }, { "docid": "b50ec68239e495a6eac6681b6be2bd10", "score": "0.54154384", "text": "public function put($resource, $data, array $parameters = array())\n {\n // Pass the request on\n return $this->sendData($resource, $data, $parameters, \"PUT\");\n }", "title": "" }, { "docid": "55601806ef2a9d7e3f71d62851e418fc", "score": "0.54153293", "text": "public function updateById($data, $id);", "title": "" }, { "docid": "bc24b326261d7a5dcbc2c4576e30536b", "score": "0.5414857", "text": "public function update(Request $request, $id)\n {\n $single=Brand::findorfail($id);\n $image = $single->image;\n\n\n if ($request->file() != null){\n\n Storage::delete('upload/brands/'.$image);\n\n $upload = $request->file('image');\n\n\n $upload = $request->file('image');\n\n\n $file_name = 'brand_image_'.time().'.'.$upload->getClientOriginalExtension();\n\n $path = $upload->storeAs('upload/brands/',$file_name);\n $single->update([\n 'name'=>$request->name,\n 'image'=>$file_name\n ]);\n }else{\n\n $single->update([\n 'name'=>$request->name,\n 'image'=>$request->img_name\n ]);\n }\n\n\n return redirect('admin/brands');\n }", "title": "" }, { "docid": "a28ba9c40e06592529f38d6d19b89b16", "score": "0.54146737", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "10ffb6f2bcc02987225b2f72d4364775", "score": "0.5405863", "text": "function update($id, $data);", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "e921f6c3d687c7e7fb1c8473c049f257", "score": "0.0", "text": "public function index(Request $request)\n {\n if($request->query('req')) {\n switch($request->query('req'))\n {\n case \"dt\":\n $sekolahs = Sekolah::with('ks', 'operators')->get();\n return DataTables::of($sekolahs)->addIndexColumn()->toJson();\n break;\n case \"select\":\n $sekolahs = (Auth::user()->level == 'admin') ? Sekolah::all() : Sekolah::where('npsn',Auth::user()->sekolah_id)->get();\n $datas = [];\n foreach($sekolahs as $sekolah)\n {\n array_push($datas, ['id' => $sekolah->npsn, 'text' => $sekolah->nama_sekolah]);\n }\n\n return response()->json(['status' => 'sukses', 'sekolahs' => $datas]);\n break;\n }\n } else {\n\n try {\n Sekolah::create($request->all());\n return response()->json(['status' => 'sukses', 'msg' => 'Data Sekolah disimpan']);\n } catch(\\Exception $e)\n {\n return response()->json(['status' => 'error', 'msg' => $e->getCode().':'.$e->getMessage()]);\n }\n\n\n }\n }", "title": "" } ]
[ { "docid": "e5e7384bd73dca78941fcbd89a202b70", "score": "0.7997081", "text": "public function action_listing() {\n\t\t$this->_content('listing', $this->_instances(), true);\n\t}", "title": "" }, { "docid": "5843220cf684a1a73c04dea06b179c98", "score": "0.77250284", "text": "public function listAction ()\n {\n $module = $this->_request->getModuleName();\n $controller = $this->_request->getControllerName();\n\n $resourceResource = $this->_helper->modelResource('Resources');\n $resources = $resourceResource->fetchAll();\n $this->view->resources = $resources;\n }", "title": "" }, { "docid": "a9bb13ba4c87678e1ac5005171d43f4a", "score": "0.74907076", "text": "public function actionList()\n {\n $this->render('list');\n }", "title": "" }, { "docid": "8d51b677bee6c53da8e98cce79f655aa", "score": "0.7418133", "text": "public function listAction()\n {\n echo Zend_Json::encode($this->_records->queryRecords(\n $this->_request->getParams()\n ));\n }", "title": "" }, { "docid": "6eac2ccd3e0cf5d8296b9c33085d378d", "score": "0.72538555", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t$search = $this->getInput(array('name', 'status'));\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Super_Service_Resource::search($page, $perpage, $search);\r\n\t\t\r\n\t\t$this->assign('search', $search);\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->cookieParams();\r\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($search) . '&';\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\r\n\t\t$this->cookieParams();\r\n\t}", "title": "" }, { "docid": "3b1a348da533dcb6668082a3467f61de", "score": "0.7189258", "text": "public function actionList()\n {\n $this->restObj->loadModels();\n }", "title": "" }, { "docid": "2cdc01c5b6d9b929fb113d684dccaced", "score": "0.7156122", "text": "public function index()\n {\n $resource = $this->resource->all();\n\n return view('resources', compact('resource'));\n }", "title": "" }, { "docid": "717b72f905cc3eb38c16a04ff9a86ae6", "score": "0.7114549", "text": "public function index()\n {\n // $this->hasAccessOrFail('list');\n $this->setOperation('list');\n if ($this->tienePermiso('list')) {\n $this->data = array();\n $this->data['title'] = $this->getTitle() ?? mb_ucfirst($this->entity_name_plural);\n $this->data['routerAlias'] = $this->getRouterAlias();\n $this->data['contentClass'] = $this->getListContentClass();\n $this->data['heading'] = $this->getHeading() ?? $this->entity_name_plural;\n $this->data['subheading'] = '';\n $this->data['permissionName'] = $this->getPermissionName();\n $this->data['buttons_top'] = $this->getButtons()->where('stack', 'top');\n $this->data['columns'] = $this->getColumns();\n $this->data['columnOrderNum'] = $this->getColumnNumericIndex($this->getDefaultOrderColumn());\n $this->data['columnOrderName'] = $this->getDefaultOrderColumn();\n $this->data['columnOrderDire'] = $this->getDefaultOrderDirection();\n $this->data['filtros'] = $this->getfilters();\n\n // load the view from /resources/views/vendor/Cesi/crud/ if it exists, otherwise load the one in the package\n return view($this->getListView(), $this->data);\n } else {\n return view('cesi::errors.401');\n }\n }", "title": "" }, { "docid": "7246ebaf3415f94d436da4bb642e24a3", "score": "0.70818526", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t$search = $this->getInput(array('name', 'status'));\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Gou_Service_Resource::search($page, $perpage, $search);\r\n\t\t\r\n\t\t$this->assign('search', $search);\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->cookieParams();\r\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($search) . '&';\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\r\n\t\t$this->cookieParams();\r\n\t}", "title": "" }, { "docid": "7adba616fe1b0a755e693520aac54298", "score": "0.7053882", "text": "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $recipes = $em->getRepository('AppBundle:Recipe')->findAllPublic();\n\n return $this->render('recipe/list.html.twig', array(\n 'recipes' => $recipes,\n ));\n }", "title": "" }, { "docid": "3046e5391755ed0249127951b935e880", "score": "0.7045966", "text": "public function indexAction()\n {\n $filterRenderer = $this->getFilterRenderer();\n $listRenderer = $this->getListRenderer();\n\n return $this->container->get('templating')\n ->renderResponse($listRenderer->getTemplate(), array(\n 'renderer' => $listRenderer,\n 'filter' => $filterRenderer,\n 'csrf' => $this->container->get('form.csrf_provider')->generateCsrfToken('list')\n ));\n }", "title": "" }, { "docid": "0c4d22454d91d669f713e248e6cd4363", "score": "0.70392543", "text": "public function listAction()\n {\n\n // get reference to our repository\n // and get array of all DVDs\n $dvdRepository = new DvdRepository();\n $dvds = $dvdRepository->getAllDvds();\n\n // add to args array\n // ------------\n $argsArray = [\n 'dvds' => $dvds\n ];\n\n // render (draw) template\n // ------------\n $templateName = 'list';\n return $this->app['twig']->render($templateName . '.html.twig', $argsArray);\n }", "title": "" }, { "docid": "a9ac287e901f12c6cd37fe3754d96da7", "score": "0.70273596", "text": "public function index()\n {\n return $this->showAll(PeopleResource::collection(People::get()));\n }", "title": "" }, { "docid": "61981ceb471a82ebd3789f7373c04b9c", "score": "0.7009925", "text": "public function display() {\n $res = NULL;\n $params = $this->request->query;\n if (empty($params) || empty($params['cat'])) {\n $res = $this->getAllListings();\n }\n else {\n $res = $this->getListingsByCategory($params['cat'],\n $params['sort'],\n $params['ascDesc']);\n }\n $this->set(['listings' => $res]);\n }", "title": "" }, { "docid": "9c23597c81f0260d62a430388b719886", "score": "0.6998034", "text": "public function list()\n {\n try {\n\n } catch (\\Exception $e) {\n echo '<pre>';\n print_r($e->getMessage());\n echo '</pre>';\n }\n }", "title": "" }, { "docid": "271af64fc25b41beefcb0ae2bf3d06c1", "score": "0.69789684", "text": "public function index()\n {\n $this->lst();\n }", "title": "" }, { "docid": "970e35836b9768276ac32a7f819d569f", "score": "0.6969622", "text": "public function index()\n {\n return \"Here is the listing page.\";\n }", "title": "" }, { "docid": "333551ff905b0a0ba61cb4344dc527c5", "score": "0.6954035", "text": "public function index()\n\t{\n\t\t$lines = $this->repository->getPaginate(10);\n\t\t$links = str_replace('/?', '?', $lines->render());\n\n\t\treturn view($this->base.'.list', compact('lines', 'links'));\n\t}", "title": "" }, { "docid": "763c667833a58c0ab1d9b6ed41fcd7f1", "score": "0.6949768", "text": "public function actionList(){\n // input\n $t = Text::getEntityTexts($this->moduleid, $this->entityid);\n \n // process\n \n // output\n Page::setTitle(\"Consulta de \".$t->entity());\n $this->view(\"list\");\n }", "title": "" }, { "docid": "a42d2c3cb23ebb4d90fe085f81abfdf1", "score": "0.694591", "text": "public function indexAction()\n {\n $handler = $this->_createModelHandler();\n\n $url = $this->getRequest()->getRequestUri();\n $params = Rest_Serializer::decode($url, Rest_Serializer::FULL_URL_UNKNOWN);\n\n try {\n $items = $handler->getList($params);\n } catch (Rest_Model_MethodNotAllowedException $e) {\n $this->getResponse()->setHttpResponseCode(405);\n $this->getResponse()->setHeader('Allow', implode(', ', $e->getAllowedMethods()));\n $this->view->data = $e->getMessage();\n return;\n } catch (Rest_Model_BadRequestException $e) {\n $this->getResponse()->setHttpResponseCode(400);\n $this->view->data = $e->getMessage();\n return;\n } catch (Exception $e) {\n $this->getResponse()->setHttpResponseCode(500);\n // should output 500 errors conditional to APP_ENV being dev\n // should log errors no matter what environment\n return;\n }\n\n $this->view->data = $items;\n }", "title": "" }, { "docid": "f39dea430d1832d789b6e49e5d7554be", "score": "0.692712", "text": "public function index()\n {\n $categories = Category::all();\n return $this->resp->ok(eRespCode::CAT_LISTED_200_00, new CategoryResourceCollection($categories));\n }", "title": "" }, { "docid": "8c8ca6b1a9586345fa58fa75152c17eb", "score": "0.6921003", "text": "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n\n\t\t//GET SETTING\n $this->view->owner_photo = $this->_getParam('owner_photo', 1);\n\n //GET LISTING 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\t\t//GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n }", "title": "" }, { "docid": "75c25c496b7bb134be1dfcae86fb4091", "score": "0.6907718", "text": "function list() {\n $data = $this->handler->handleList();\n\n $page = new Page(\"List existing templates\", \"Templates\");\n $page->top();\n\n listView($data);\n\n $page->bottom();\n }", "title": "" }, { "docid": "ca758c8d004263d55a0ae58a76c94b8e", "score": "0.68839717", "text": "public function listAction()\n {\n $list = Interest::getList();\n\n return $this->render('interest/list', $list);\n }", "title": "" }, { "docid": "5c422eb9c63aaa4755881379e395025b", "score": "0.68358845", "text": "public function index() {\n\t\t\n\t\tif ($this->require_role('admin')) {\n\t\t\t$this->load->model('Resource', 'resource');\n\t\t\t$this->load->helper(array('form', 'url'));\n\t\n\t\t\t$data = array('resources' => $this->resource->all());\n\t\t\t$this->load->template('admin/resources_index', $data);\t\n\t\t}\n\t}", "title": "" }, { "docid": "faf64cfddc139b306817d316d98d7998", "score": "0.68326175", "text": "protected function listing(array $params) {\n\t\t// Check parameters\n\t\t// Get resources\n\t\t// Filter it by key (perms)\n\t\t// Returns the list\n\t}", "title": "" }, { "docid": "d273d165886af297123e8efab8c940d8", "score": "0.6827775", "text": "public function index()\n {\n $items = ItemResource::collection(Item::orderBy('sort_order')->get());\n\n return $this->success($items);\n }", "title": "" }, { "docid": "b868b6f2a3079e57b349fd81d8b7d5bd", "score": "0.6826282", "text": "public function index()\n {\n if (!$this->user->can('view-record')) {\n return $this->unauthorizedResponse([\n 'errors' => ['Ora entuk ndes']\n ]);\n }\n\n $records = Record::paginate();\n return $this->okResponse([\n 'data' => new RecordTableResourceCollection($records) \n ]);\n }", "title": "" }, { "docid": "5856416953feca05c4cf552b6d0d19f9", "score": "0.6806458", "text": "public function index()\n {\n // return all statuses as a resource ordered by status\n $statuses = Status::orderBy('status', 'asc')->get();\n\n // Return the statuses as a resource\n return StatusResource::collection($statuses);\n }", "title": "" }, { "docid": "ae6ac1129584c76c474a8718bca91c33", "score": "0.6780087", "text": "public function ListView() {\n $this->Render();\n }", "title": "" }, { "docid": "2d1d458b52819df5fe6e27c7992f0ddc", "score": "0.6779744", "text": "public function index()\n {\n $listings = Listing::latest()->paginate(20);\n return view('backend.listing.index', compact('listings'));\n }", "title": "" }, { "docid": "4c6b319e397c45d649f8fe5ba2a7bd53", "score": "0.67744184", "text": "public function index()\n {\n $model = $this->resourceModel;\n return $model::all();\n }", "title": "" }, { "docid": "b748eaa207eeee72d7887a0fc25dca4a", "score": "0.67608345", "text": "public function index() {\n\n $limit = Input::get('limit') ? : 10;\n $fullItemsBase = FullItemsBase::paginate($limit);\n return $this->respondWithPagination($fullItemsBase, $this->fullItemsBaseTransformer->transformCollection($fullItemsBase->items()));\n\n }", "title": "" }, { "docid": "aa645d4232fad0744f3db157558e1606", "score": "0.67556214", "text": "public function index()\n\t{\n\t\t\n\t\t$kiosk = Request::input('kiosk');\n\n\t\t$q = Request::input('query');\n\n\t\t$listings = Listing::search($q)\n\t\t\t->forKiosk($kiosk)\n\t\t\t->orderBy('lastName')\n\t\t\t->orderBy('company')\n\t\t\t->get([\n\t\t\t\t'listings.id',\n\t\t\t\t'firstName',\n\t\t\t\t'lastName',\n\t\t\t\t'company',\n\t\t\t\t'title',\n\t\t\t\t'listings.location',\n\t\t\t\t'address',\n\t\t\t\t'email',\n\t\t\t\t'phone',\n\t\t\t\t'description',\n\t\t\t\t'listings.image',\n\t\t\t\t'maps.image as map'\n\t\t\t]);\n\n\n\t\treturn ['listings'=>$listings];\n\t}", "title": "" }, { "docid": "5656a3bc0d701acc424777c84b33b509", "score": "0.6750781", "text": "public function index()\n {\n // If there is an Ajax request or any request wants json data\n if (request()->ajax() || request()->wantsJson()) {\n\n $sort = request()->has('sort')?request()->get('sort'):'name';\n $order = request()->has('order')?request()->get('order'):'asc';\n $search = request()->has('searchQuery')?request()->get('searchQuery'):'';\n $paginate = request()->get('paginate', 'on');\n\n list($data, $paginator) = $this->entityService->getResults($sort, $order, $search, $paginate);\n\n if (empty($data)) {\n return response([\n 'status_code' => 404,\n // 'message' => trans($this->getNotFoundKey())\n ], 404);\n }\n\n $data = $this->entityTransformer->transformCollection($data);\n\n return response([\n 'data' => $data,\n 'paginator' => $paginator,\n 'status_code' => 200\n ], 200);\n }\n\n return $this->entityList->view();\n }", "title": "" }, { "docid": "04105211a75ba7457c72346a442bef90", "score": "0.6742193", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "fcdd2b18e7fdb84a081f8b4808c3dd87", "score": "0.67329895", "text": "public function index() {\n $this->listar();\n }", "title": "" }, { "docid": "de6abddc6ff8899fbf9d928f85487ba7", "score": "0.6730043", "text": "public function index()\n {\n\n return PersonResource::collection(Person::latest()->paginate(10));\n\n }", "title": "" }, { "docid": "01a0ecf1244ed50cd57b8fc36e7c90c6", "score": "0.67276037", "text": "public function showEntries ()\r\n {\r\n $sampleDocument = [];\r\n $results = $this->doQuery();\r\n\r\n // extract document keys to use them in query autocompletion\r\n if (isset($results[0])) {\r\n $sampleDocument = json_decode($results[0][\"document\"], true);\r\n }\r\n\r\n return $this->render(\"collection/home.html.twig\", [\r\n \"results\" => $results['results'],\r\n \"pagination\" => $results['pagination'],\r\n \"db\" => $_REQUEST[\"db\"],\r\n \"collection\" => $_REQUEST[\"collection\"],\r\n \"autocompleteFields\" => array_keys($sampleDocument)\r\n ]);\r\n }", "title": "" }, { "docid": "d8665c5666597c18e5362e0a4d89c431", "score": "0.67268443", "text": "public function index()\n {\n //only allow get requests to this endpoint\n $this->request->allowMethod('get');\n\n //fetch user id of the logged in user\n $user_id = $this->Authentication->getIdentity()['id'];\n\n //query the database\n $lists = $this->TodoLists->find()->where(['user_id'=>$user_id])->toArray();\n\n if (count($lists) === 0) {\n return $this->respond(400, [], 'No lists in the database');\n }\n\n return $this->respond(200, $lists, 'Lists fetched from the database');\n }", "title": "" }, { "docid": "c47747da41037cffb7ca6030eb0269ad", "score": "0.6714673", "text": "public function listAll()\n {\n echo view('{name}/listAll', [\n 'rows' => $this->model->paginate(20),\n ]);\n }", "title": "" }, { "docid": "f9f637b83ec4dd52acd76b5a1b723b01", "score": "0.6714468", "text": "public function index()\n\t{\n\t\t$resources = Resource::with('user')->get();\n\t\treturn View::make('resources.index')->with('resources', $resources);\n\t}", "title": "" }, { "docid": "b3f65d348a322a4797182798d5dd2389", "score": "0.6711745", "text": "public function action_list()\n\t{\n\t\t// Load the contest id\n\t\t$contest_id = $this->request->param('contest_id');\n\n\t\t// Load the contest model\n\t\t$contest = new Model_Photo_Contest($contest_id);\n\n\t\t// Load the active contest if the ID is not set\n\t\tif ($contest_id === NULL)\n\t\t{\n\t\t\t$contest->get_active();\n\t\t}\n\n\t\t// You can only see the list if the contest has started\n\t\tif ($contest->id === NULL)\n\t\t{\n\t\t\tdie('Sorry you can\\'t view this listing yet');\n\t\t}\n\n\t\t// Lets build the filters\n\t\t$query = $this->request->query();\n\t\t$filters = array(\n\t\t\t'amount' \t=> Arr::get($query, 'amount', 9),\n\t\t\t'order_by' \t=> Arr::get($query, 'order_by', 'last_vote'),\n\t\t\t'page' \t\t=> Arr::get($query, 'page', 1),\n\t\t);\n\n\t\t// Let the view build the list\n\t\t$content = new View_Photo_Contest_List($contest, $this->auth, $filters);\n\t\t$this->_build_layout($content, $contest, array('top'));\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "6a2ce4bfb9032f960818fea7d1c1fd2f", "score": "0.6711654", "text": "function view()\n\t{\n\t\t$model\t=& $this->getModel( 'List' );\n\t\t$view =& $this->getView( 'List' );\n\t\t$view->setModel( $model, true );\n\t\t$view->display();\n\t}", "title": "" }, { "docid": "2e4e6ad1b566258d4381885b7225442d", "score": "0.66980463", "text": "public function index()\n {\n //\n $resources = Resource::all();\n return response([\n 'status' => true,\n 'resources' => $resources,\n ]);\n }", "title": "" }, { "docid": "a32ed162bac5feffa4d0d4d75f031e5f", "score": "0.66931826", "text": "public function index()\n {\n //\n\t\t$comp = Entity::paginate(10);\n\t\treturn view('entity.list')->with('user', $comp);\n }", "title": "" }, { "docid": "7a9f78e0d04bc17991354eb2a8289b5e", "score": "0.66906714", "text": "function listing(){\n\t\t// la variable $listado guarda el resultado de la funcion GetPersons\n\t\t//para luego ser enviada a la vista en el objeto _listado\n\t\t\t\t$listado = $this->_person->getPersons();\n\t\t\t\t$this->_view->_listado = $listado;\n\t\t\t\t\n\t\t\t\t$this->_view->render('listing', 'persons', '',$this->_sidebar_menu);\n\t\t\t}", "title": "" }, { "docid": "2734f9c5798c709c85e88386fda37702", "score": "0.66896355", "text": "public function index()\n {\n $students = Student::paginate(15);\n return StudentResource::collection($students);\n }", "title": "" }, { "docid": "484df5509ac351a459c94ed96dad9631", "score": "0.6678784", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Cod_Service_Type::getList($page, $perpage);\r\n\t\t\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'?'));\r\n\t}", "title": "" }, { "docid": "232eafda3e687831892df1684534abd5", "score": "0.66763496", "text": "public function index()\n {\n // Get products\n $products = Product::paginate(3);\n\n // Return collection of products as a resource\n return ProductResource::collection($products);\n }", "title": "" }, { "docid": "e6c8741b5d134655b9c2b8dd778cefb8", "score": "0.66754305", "text": "function index()\n {\n // a main page yet ;-).\n $this->listings();\n }", "title": "" }, { "docid": "0fca76630447c6e294fc2e600086d38d", "score": "0.66752857", "text": "public function indexAction()\n\t{\n\t\t$albums = Album::find();\n\n\t\t// send data to the view\n\t\t$this->view->albums = $albums;\n\n\t\t$this->view->setLayout('list');\n\t}", "title": "" }, { "docid": "65070a2f2a7d54a05f7733a8e04446da", "score": "0.6657747", "text": "public function index() {\n\n $limit = Input::get('limit') ? : 10;\n $itemsBase = Item::paginate($limit);\n return $this->respondWithPagination($itemsBase, $this->itemTransformer->transformCollection($itemsBase->items()));\n\n }", "title": "" }, { "docid": "c7007e2c86edf572b2e16d9880bffb0d", "score": "0.6656419", "text": "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_permission->get_all();\n\t\t$this->template->set('title', 'Permission List');\n\t\t$this->template->load('template', 'contents', 'permission/list', $data);\n\t}", "title": "" }, { "docid": "f4d17451160e0b6de7ae955b505d6c54", "score": "0.6638445", "text": "public function list() {\n\n\t}", "title": "" }, { "docid": "518e90338c030a6d81f610434bd500ce", "score": "0.663422", "text": "public function list()\n {\n \n }", "title": "" }, { "docid": "5e41c828cebc4cc13f7309e5c05c4bc4", "score": "0.66317695", "text": "public function index()\n {\n //\n\n $listings = Listing::all();\n\n return view('admin.listing.index', compact('listings'));\n\n }", "title": "" }, { "docid": "a0c0872e537528aa097056ee2809bd73", "score": "0.662889", "text": "public function index()\n {\n return $this->responseCollection(['title' => 'Đây là resource collection']);\n }", "title": "" }, { "docid": "c0b97bdef674a1363cd928a5e28e2df1", "score": "0.66180605", "text": "public function index()\n {\n $items = $this->itemSrv->findAll();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "5a2c942ef5f8bfbf353721a34ccb1db0", "score": "0.6603064", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t$params = $this->getInput(array('rid', 'imei'));\n\t\t$search = array();\n\t\tif ($params['rid']) $search['rid'] = $params['rid'];\n\t\tif ($params['imei']) $search['imei'] = $params['imei'];\n\t\t\n\t\tlist($total, $rids) = Gou_Service_Rid::getList($page, $perpage, $search);\n\t\t$this->assign('rids', $rids);\n\t\t$url = $this->actions['listUrl'] .'/?'. http_build_query($search) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $this->perpage, $url));\n\t\t$this->assign('search', $search);\n\t}", "title": "" }, { "docid": "d118079baa11c6896210752de43f466a", "score": "0.6598392", "text": "public function actionIndex()\n {\n $cars = Car::getAll(5);\n\n return $this->render('index', [\n\t 'cars' => $cars['cars'],\n\t 'pagination' => $cars['pagination'],\n ]);\n }", "title": "" }, { "docid": "7b0362011beee277adca7fa19bb6e265", "score": "0.6589539", "text": "public function listAction() {\n\t\t$this->view->role = Auth_Info::getUser ()->user_type;\n\t\tLog::infoLog ( 'method=' . __FUNCTION__ . ';user_id=' . Auth_Info::getUser ()->user_id . ';control_number' . ';Start action' );\n\t\t\n\t\t$page = null;\n\t\t// Doan nay phan biet POST voi GET\n\t\tif ($this->getRequest ()->isPost ()) {\n\t\t\t// Trong nay danh cho thu tuc post\n\t\t} else {\n\t\t\t// Trong nay danh cho thu tuc get\n\t\t\t\n\t\t\t// Lay ra danh sach account\n\t\t\t$select = TTestings::getInstance ()->getTestList ();\n\t\t\t$this->view->paginator = Zynas_Paginator::factoryWithOptions ( $select, $page, $this->view );\n\t\t\t// Lay ra danh sach chi tiet\n\t\t\t$select1 = TTestingdetails::getInstance ()->getListDetail ();\n\t\t\t$this->view->paginator1 = Zynas_Paginator::factoryWithOptions ( $select1, $page, $this->view );\n\t\t}\n\t\tLog::infoLog ( 'method=' . __FUNCTION__ . ';user_id=' . Auth_Info::getUser ()->user_id . ';control_number' . ';End action' );\n\t}", "title": "" }, { "docid": "58397a3ae7d676f27e069b6cd638cb54", "score": "0.65887684", "text": "public function index()\n {\n $products = Product::paginate(15);\n return ProductResource::collection($products);\n //\n }", "title": "" }, { "docid": "d387ade88ed7ada9aa0979d5a0c09bee", "score": "0.6585575", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate());\n }", "title": "" }, { "docid": "cf63b2e262afbf8c41ea8735174a1c1f", "score": "0.65836424", "text": "public function index()\n {\n $links = Link::all();\n return $this->showAll($links);\n }", "title": "" }, { "docid": "3d9f02ab227264eab59e37e914140bf1", "score": "0.65828973", "text": "public function index()\n {\n\n $perPage = Input::has('entries') ? Input::get('entries') : 10;\n if (Input::has('searchText'))\n return $this->respository->paginateSearch($perPage, Input::get('sort'), Input::get('searchText'));\n return $this->respository->paginate($perPage, Input::get('sort'));\n }", "title": "" }, { "docid": "1d851e06286b1c4304d70235a04c9b12", "score": "0.6582138", "text": "public function index()\n {\n\n $this->repository->skipPresenter();\n\n $perPage = request()->has('per_page') ? (int) request()->per_page : 5;\n\n if (request()->has('sort')) {\n list($sortCol, $sortDir) = explode('|', request()->sort);\n $catalogos = $this->repository->with('items')->orderBy($sortCol, $sortDir)->paginate($perPage);\n } else {\n $catalogos = $this->repository->with('items')->orderBy('id', 'asc')->paginate($perPage);\n }\n\n \n return response()->json($catalogos);\n }", "title": "" }, { "docid": "414d41e0df5b50d2fc08d8b1ff7cd984", "score": "0.65818864", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\tif ($page < 1) $page = 1;\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Resource_Service_Attribute::getList(1, $this->perpage,array('at_type'=>1,'status'=>1), array('sort'=>'DESC'));\n\t\t\r\n\t\t$this->cookieParams();\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'?'));\r\n\t}", "title": "" }, { "docid": "083677cf7d4c4336b6764e1c2e471e53", "score": "0.6575686", "text": "public function index()\n {\n return success($this->service->getList());\n }", "title": "" }, { "docid": "02f1b268574a4e41b19c995fbc856de6", "score": "0.6574009", "text": "public function index()\n {\n $items=Item::all();\n return ItemResource::collection($items);\n }", "title": "" }, { "docid": "e99878c1a0eff5bcf7bf12ed5c8ef9d5", "score": "0.65716714", "text": "public function show()\n {\n return view('listing::show');\n }", "title": "" }, { "docid": "7b5e2b301434be8bca6abbff68773c36", "score": "0.6567384", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate(10));\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "46f84c15b7beced16b95caa4f1ddc7b9", "score": "0.65611297", "text": "public function listing() {\n //show a list of games\n \n //prepare a collection of all games\n $this->games = new boardgameCollection();\n //pass this to the view\n View::setTemplate('gamelisting');\n }", "title": "" }, { "docid": "ae1d3b1986302fafef3e4fcf2486c80a", "score": "0.655366", "text": "public function index()\n {\n AnonymousResourceCollection::wrap('list');// 资源列表默认返回 data 更换为 list\n\n $lists = QueryBuilder::for(ElectricChargeLog::class)\n ->defaultSort('-created_at')\n ->where('user_id', '=', auth('api')->id())\n ->paginate();\n\n return ElectricChargeLogResource::collection($lists);\n }", "title": "" }, { "docid": "2bf1a2bd26f0394c521a6010c1bf0f05", "score": "0.6550969", "text": "public function listAction()\n {\n if (!$this->_helper->requireUser()->isValid())\n return;\n\n $this->view->page_id = $page_id = $this->_getParam('page_id');\n\n //GET PROJECT ITEM\n $this->view->sitepage = $sitepage = Engine_Api::_()->getItem('sitepage_page', $page_id);\n\n //IF THERE IS NO PAGE.\n if (empty($sitepage)) {\n return $this->_forward('requireauth', 'error', 'core');\n }\n\n Engine_Api::_()->core()->setSubject($sitepage);\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\n $this->view->initiatives = $outcomes = Engine_Api::_()->getDbtable('initiatives', 'sitepage')->getAllInitiativesByPageId($page_id);\n\n }", "title": "" }, { "docid": "b07dc2d3e33f03e6da772e77e05f7172", "score": "0.654454", "text": "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\t\t\n\t\t$params = $this->getInput(array('id', 'name'));\n\t\t\n\t\t$search = array();\n\t\tif ($params['id']) $search['id'] = $params['id'];\n\t\tif($params['name']) $search['name'] = array('LIKE', trim($params['name']));\n\t\t\n\t list($total, $suppliers) = Gou_Service_Url::getList($page, $perpage, $search);\n\t\t$this->assign('suppliers', $suppliers);\n\t\t$this->assign('search', $search);\n\t\t$this->cookieParams();\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($params) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t}", "title": "" }, { "docid": "dc0dfaf548f5417e5fb8ca63e88f4bab", "score": "0.65415925", "text": "public function indexAction()\n {\n $this->tag->setTitle(__('Devices'));\n // Available sort to choose\n $this->filter->add('in_array', function($value) {\n return in_array($value, ['client_id', 'client_id DESC', 'IP', 'IP DESC', 'lastActive', 'lastActive DESC', 'name', 'name DESC', 'status', 'status DESC', 'type', 'type DESC']) ? $value : null;\n });\n\n // Check if limit to client's devices\n if ($client = $this->request->getQuery('client', 'int', null, true)) {\n $data = Devices::find(['client_id = :client:', 'order' => $this->request->getQuery('order', 'in_array', 'id', true), 'bind' => ['client' => $client]]);\n } else {\n $data = Devices::find(['order' => $this->request->getQuery('order', 'in_array', 'id', true)]);\n }\n\n // Get devices and prepare pagination\n $paginator = new Paginator([\n \"data\" => $data,\n \"limit\" => $this->request->getQuery('limit', 'int', 20, true),\n \"page\" => $this->request->getQuery('page', 'int', 1, true)\n ]);\n\n $this->view->setVars([\n 'pagination' => $paginator->getPaginate(),\n ]);\n }", "title": "" }, { "docid": "8ea0483fd142809c831c55dd4d54c8bc", "score": "0.6534711", "text": "public function index()\n {\n return response(Entry::getAll(), 200);\n }", "title": "" }, { "docid": "e58e46ad70cfe2abf6e6334edfcf4d33", "score": "0.653384", "text": "public function index()\n {\n return ProductResource::collection($this->model->all());\n }", "title": "" }, { "docid": "c53e5e5723ef0824b3deac61a33dcd59", "score": "0.653131", "text": "public function list()\n {\n $tickets = $this->getRepo()->all();\n $this->render('tickets.php', ['tickets' => $tickets]);\n }", "title": "" }, { "docid": "48a441e4246d6b8497f81c71044cc07c", "score": "0.6530572", "text": "public function listing()\n {\n return true;\n }", "title": "" }, { "docid": "f13e9e33ef11f1b3cc6bbc86c6cf452b", "score": "0.65302867", "text": "public function index()\n\t{\n\t\t$resources = Resource::select(\n\t\t\tarray(\n\t\t\t'resources.id',\n\t\t\t'resources.name',\n\t\t\t'resources.description',\n\t\t\t'resources.thumb',\n\t\t\t'resources.url',\n\t\t\t'resources.type'\n\t\t\t)\n\t\t)->limit(999)->get();\n\n\t\t// Derive the hover thumbnail image and add it to the object\n\t\tforeach ($resources as &$resource) {\n\t\t\t$resource->hover = str_replace('th.jpg', 'hv.jpg', $resource->thumb);\n\t\t}\n\n\t\t// Make sure we have an even number of entries, which is a factor of 3\n\t\t$count = $resources->count();\n\t\t$count = (($count % 2) !== 0) ? ($count + 1): $count;\n\n\t\t$first = null;\n\t\t$useImage = 0;\n\t\twhile (($count % 3) !== 0) {\n\t\t\t$use = clone($resources->get($useImage));\n\t\t\t$use['id'] = (9999 + $useImage);\t\t// Dummy unique id\n\t\t\t$resources = $resources->merge([$use]);\n\t\t\t$count = $resources->count();\n\t\t\t$useImage++;\n\t\t}\n\n\t\treturn view('pages.home', compact('resources'));\n\t}", "title": "" }, { "docid": "f36768242b82968fc5b2a672bf3b5d40", "score": "0.65284115", "text": "public function index()\n {\n // Get books or resources\n $booksOrResources = BookOrResource::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return BookOrResourceResource::collection($booksOrResources);\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "134e2581f1e75a4912a1c302ac7bdb43", "score": "0.6523618", "text": "public function index()\n {\n $contacts = Contact::forUser(Auth::user())->orderByDesc('id')->paginate(20);\n\n return ContactListResource::collection($contacts);\n }", "title": "" }, { "docid": "ba54d9aa7546c8835b3a3ea61bb72cf7", "score": "0.6519067", "text": "public function listAction(){\r\n\r\n $filter = $this->Request()->getParam('filter', null);\r\n $sort = $this->Request()->getParam('sort', null);\r\n $page = $this->Request()->getParam('page', 1);\r\n $start = $this->Request()->getParam('start', 0);\r\n $limit = $this->Request()->getParam('limit', 20);\r\n if (empty($sort)) {\r\n $sort = array(array('property' => 'o.offerTime', 'direction' => 'DESC'));\r\n } else {\r\n $sort[0]['property'] = 'o.' . $sort[0]['property'];\r\n }\r\n $repository = Shopware()->Models()->getRepository('Shopware\\CustomModels\\Offer\\Offer');\r\n $builder = $repository->getListQuery($filter, $sort);\r\n\r\n $builder = $builder->setFirstResult($start)\r\n ->setMaxResults($limit);\r\n\r\n $query = $builder->getQuery();\r\n $query->setHydrationMode(\\Doctrine\\ORM\\Query::HYDRATE_ARRAY);\r\n\r\n $paginator = $this->getModelManager()->createPaginator($query);\r\n $total = $paginator->count();\r\n\r\n $data = $paginator->getIterator()->getArrayCopy();\r\n if(!empty($data)) {\r\n $offers = $this->processOffersData($data, false);\r\n }\r\n\r\n // sends the out put to the view of the HBox\r\n $this->View()->assign(array(\r\n 'success' => true,\r\n 'data' => $offers,\r\n 'total' => $total\r\n ));\r\n }", "title": "" }, { "docid": "dd68c5aaf62bba59eb1c118ba9877062", "score": "0.65172595", "text": "public function index()\n {\n $this->authorize('items', 'index');\n $data = $this->service->index();\n return $this->successResponse($data);\n }", "title": "" }, { "docid": "319e68416f72b5d4be9e16bfd153c873", "score": "0.6512332", "text": "public function index()\n {\n //get staff\n $staff = StaffModel::paginate(10);\n\n return StaffResource::collection($staff);\n }", "title": "" }, { "docid": "0128f4addd68bf96770aa31441d1e085", "score": "0.65060353", "text": "public function index()\n {\n //\n //return Artista::all();\n return ArtistaResource::collection(Artista::all());\n }", "title": "" }, { "docid": "2028e84eeee5da547d802b37530d47f0", "score": "0.650491", "text": "public function show()\n {\n return $this->service->getAll();\n }", "title": "" }, { "docid": "e1ee96a401d87220945c1c91f862da36", "score": "0.6501406", "text": "public function index()\n {\n $mall = Mall::orderBy('id', 'DESC')->get();\n return MallResource::collection($mall);\n }", "title": "" }, { "docid": "3373e9d4bf0613737bfacd0d8bf0cbaf", "score": "0.65009093", "text": "public function index()\n {\n $this->indexPage('list-category', 'List Category');\n }", "title": "" }, { "docid": "cda757802b45272ab522944beaaf5df2", "score": "0.6493003", "text": "public function index()\n {\n if(request('reload'))\n $articles = Article::orderBy('created_at', 'desc')->paginate(3);\n else\n $articles = Article::all()->sortByDesc('id');\n return ArticleResource::collection($articles);\n }", "title": "" }, { "docid": "552960c1c38f29b1dc303b574b3afc2c", "score": "0.6492177", "text": "public function indexAction() {\n //do some sanity checking\n $error = array();\n $id_User = Default_Model_Auth::getUserId();\n\n try {\n $allitems = $this->RESTModel->gets($id_User);\n } catch( Exception $exc ) {\n $error['code'] = 400;\n $error['message'] = $exc->getMessage();\n }\n\n if( count($error) > 0 )\n $this->getResponse()\n ->setBody($error['message'])\n ->setHttpResponseCode($error['code']);\n else\n $this->getResponse()\n ->setBody(json_encode($allitems))\n ->setHttpResponseCode(200);\n\n }", "title": "" }, { "docid": "26b752dd4fadfe9ae139146b6a14ba4f", "score": "0.6483919", "text": "public function listAction() {\n $this->_template = 'ItemsList';\n Route::factory()->setAction('list');\n // Filter parameters to array if need\n Filter::setFilterParameters();\n // Set filter elements sortable\n Filter::setSortElements();\n $page = !(int) Route::param('page') ? 1 : (int) Route::param('page');\n // Check for existance\n $group = DB::select()->from('catalog_tree')->where('alias', '=', Route::param('alias'))->where('status', '=', 1)->as_object()->execute()->current();\n if( !$group ) { return Config::error(); }\n // Seo\n $this->setSeoForGroup($group);\n // Add plus one to views\n DB::update('catalog_tree')->set(array('views' => (int) $group->views + 1))->where('id', '=', $group->id)->execute();\n // Get items list\n $result = Filter::getFilteredItemsList($this->limit, ($page - 1) * $this->limit, $this->sort, $this->type);\n // Generate filter add for sql queries\n $add = Filter::getSql();\n // Count of parent groups\n $count = DB::query(Database::SELECT, 'SELECT COUNT(DISTINCT catalog.id) AS count FROM catalog '.$add['join'].'WHERE catalog.parent_id = \"'.$group->id.'\" AND catalog.status = \"1\"'.$add['where'])->as_object()->execute()->current();\n if ($count) {\n $count = $count->count;\n } else {\n $count = 0;\n }\n // Generate pagination\n $pager = Pager::factory($page, $count, $this->limit)->create();\n // Render page\n $this->_content = View::tpl( array('result' => $result, 'pager' => $pager), 'Catalog/ItemsList' );\n }", "title": "" }, { "docid": "9e1f5a874e1a782bad9b3af042809146", "score": "0.64805275", "text": "public function index()\n {\n //Show listings\n $listings = Listing::orderBy('created_at', 'desc')->get();\n return view('listings.index')->with('listings', $listings);\n }", "title": "" }, { "docid": "1093dccb5201e51e58ffed50dfe8aa7c", "score": "0.6477544", "text": "public function index()\n {\n $aventura = Aventura::latest()->paginate(10);\n return AventuraResource::collection($aventura);\n }", "title": "" }, { "docid": "fd2bf2ef206a7df828f6b8610a41b3a4", "score": "0.64756256", "text": "public function index()\n {\n // Get brands\n $brand = Brand::all();\n\n // Return collection of brands as resource\n return BrandResource::collection($brand);\n }", "title": "" } ]
7a94d398988dbf095be77b619267bfd1
Update cloums menu_id where Page id.
[ { "docid": "e9af52546f3e3196243446770646a571", "score": "0.6335897", "text": "public function updateMenuIdInPage($pageId, $menuIdString)\n {\n return Page::where('id', $pageId)\n ->update(['menu_id' => $menuIdString]);\n }", "title": "" } ]
[ { "docid": "f3312285adc9f041ffabe1193d6b4401", "score": "0.63003176", "text": "static function updatePageInMenu ($pageId,$menuType,$menuParent,$lang) {\n $parents = MenuModel::getPageParents($pageId,$lang);\n for ($i=count($parents)-1; $i>-1; $i--) {\n if (!MenuModel::dosePageInMenuExist($parents[$i]->id,$menuType,$parents[$i]->parent,$lang)) {\n MenuModel::createPageInMenu($parents[$i]->id, $menuType, $parents[$i]->parent, $lang);\n }\n }\n if (MenuModel::dosePageInMenuExist($pageId, $menuType, $menuParent, $lang) == false) {\n //echo \"yyyyyyyyy creating page in xxxxxxxxxx\";\n MenuModel::createPageInMenu($pageId, $menuType, $menuParent, $lang);\n \n }\n //echo \"creating page in lang finnished!\";\n }", "title": "" }, { "docid": "28fdd44397de05728f81f267657728eb", "score": "0.6171097", "text": "public function admin_updatemenu()\n {\n $this->model_system->update_menu();\n }", "title": "" }, { "docid": "194d197ccbc00fe138c0ce1e22bd0953", "score": "0.61191607", "text": "function updateMainMenu()\n {\n \n $id = $this->input->post(\"id\"); \n \n $intNumItems = $this->input->post(\"numItems\");\n \n $this->db->query(\"DELETE FROM menuitems_pages_xref WHERE item_id IN(SELECT item_id FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id).\")\");\n \n $this->db->query(\"DELETE FROM menuitems WHERE item_id IN(SELECT item_id FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id).\")\");\n \n $this->db->query(\"DELETE FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id)); \n \n if($intNumItems>0)\n {\n for( $i=1; $i<=$intNumItems; $i++ )\n {\n if(isset($_POST['txtItemName'.$i]) && isset($_POST['lstItemPage'.$i]) && isset($_POST['rdoItemPublished'.$i]))\n {\n if($_POST['txtItemName'.$i]!='' && $_POST['lstItemPage'.$i]!='0' && $_POST['rdoItemPublished'.$i]!='')\n {\n $strItemName = $_POST['txtItemName'.$i];\n $strItemPage = $_POST['lstItemPage'.$i];\n $strPublished = $_POST['rdoItemPublished'.$i]; \n $parent_id = $_POST['parent_id'.$i]; \n \n // [lstItemPage1] => 1127\n // [parent_id1] => 0 \n \n $this->db->query(\"INSERT INTO menuitems(item_name, item_published, item_status) VALUES(\".$this->db->escape($strItemName).\", \".$this->db->escape($strPublished).\", 'Active')\");\n \n $intItemId = $this->db->insert_id();\n $this->db->query(\"INSERT INTO menus_menuitems_xref(menu_id, item_id) VALUES(\".$this->db->escape($id).\", \".$this->db->escape($intItemId).\")\");\n \n $this->db->query(\"INSERT INTO menuitems_pages_xref(item_id, page_id) VALUES(\".$this->db->escape($intItemId).\", \".$this->db->escape($strItemPage).\")\"); \n $q = \"Update pages SET page_parent =\".$this->db->escape($parent_id).\" WHERE page_id= \".$this->db->escape($strItemPage);\n $this->db->query($q); \n //\n //exit(); \n }\n }//end if\n }//end for \n }\n \n return true;\n \n }", "title": "" }, { "docid": "61ae87a4189dd208ca27af4960dabfa7", "score": "0.60890967", "text": "public function updateMenu($id){\n // Update the menu\n ($this->input->post('active')) ? $active = $this->input->post('active', TRUE) : $active = 0;\n ($this->input->post('dropdown')) ? $dropdown = $this->input->post('dropdown', TRUE) : $dropdown = 0;\n ($this->input->post('dropMenu')) ? $dropMenu = $this->input->post('dropMenu', TRUE) : $dropMenu = 0;\n ($this->input->post('new_windows')) ? $new_windows = $this->input->post('new_windows', TRUE) : $new_windows = 0;\n $this->db->set('menu_name', $this->input->post(\"name\", TRUE), TRUE);\n $this->db->set('lang_iso', $this->input->post(\"lang_iso\", TRUE), TRUE);\n $this->db->set('pages_id', $this->input->post('pageUrl', TRUE), TRUE);\n $o_link_input = $this->input->post('url_link', TRUE);\n if(substr($o_link_input, 0, 1) === '#'){\n $other_link = substr($o_link_input, 1);\n }else{\n $replace_arr = array('https://', 'http://');\n $other_link = str_replace($replace_arr, '', $o_link_input);\n }\n $protocal = $this->input->post('protocal', TRUE);\n if(!$other_link){\n $protocal = '';\n }\n $this->db->set('other_link', $other_link, TRUE);\n // $this->db->set('other_link', $protocal.$other_link, TRUE);\n $this->db->set('plugin_menu', $this->input->post('pluginmenu', TRUE), TRUE);\n $this->db->set('drop_menu', $dropdown, TRUE);\n $this->db->set('drop_page_menu_id', $dropMenu, TRUE);\n $this->db->set('position', $this->input->post('position', TRUE), TRUE);\n $this->db->set('new_windows', $new_windows, TRUE);\n $this->db->set('active', $active, TRUE);\n $this->db->set('timestamp_update', 'NOW()', FALSE);\n $this->db->where('page_menu_id', $id);\n $this->db->update('page_menu');\n }", "title": "" }, { "docid": "aa3eddf79e46a27fa6142e8c10ea92fe", "score": "0.6079622", "text": "function edit_menu($menu_name,$title,$text,$id,$f_name1,$f_url1,$f_name2,$f_url2,$f_name3,$f_url3){\n\tdb_query(\"UPDATE internal_page SET menu_name='$menu_name',title='$title',text='$text',url_part1='$f_url1',name_part1='$f_name1' ,url_part2='$f_url2',name_part2='$f_name2' ,url_part3='$f_url3',name_part3='$f_name3' WHERE id='$id' \");\n\tgo2url( SITE_PATH.'content/list.html');\n}", "title": "" }, { "docid": "d27ef6b2a868ccd4808e64a21babe7d1", "score": "0.60534567", "text": "function updateMenu(){\n\t \n $id = $this->input->post(\"id\");\n\t\t$strName = $this->input->post(\"txtName\");\n\t\t$strPosition = $this->input->post(\"rdoPosition\");\n $strPublished = $this->input->post(\"rdoPublished\");\n\t\t\n\t\tif($strPublished == \"Schedule\")\n {\n\t\t\t$dateStart = date('Y-m-d h:i:s', strtotime($this->input->post(\"startDate\"))); \n\t\t\t$dateEnd = date('Y-m-d h:i:s', strtotime($this->input->post(\"endDate\")));\n\t\t}else\n {\n\t\t\t$dateStart = \"\"; \n\t\t\t$dateEnd = \"\";\n\t\t}\n\t\t$strPages = $this->input->post(\"rdoPages\");\n\t\t$strRights = $this->input->post(\"rdoRights\");\n\t\t$intNumItems = $this->input->post(\"numItems\");\n\t\t\n\t\t$this->db->query(\"UPDATE menus SET menu_name=\".$this->db->escape($strName).\", menu_position=\".$this->db->escape($strPosition).\", menu_published=\".$this->db->escape($strPublished).\", menu_start=\".$this->db->escape($dateStart).\", menu_end=\".$this->db->escape($dateEnd).\", menu_pages=\".$this->db->escape($strPages).\", menu_access=\".$this->db->escape($strRights).\" WHERE menu_id=\".$id);\n\t\t\n\t\tif($strPages=='Other')\n {\n\t\t\t $this->db->query(\"DELETE FROM menus_pages_xref WHERE menu_id=\".$id);\n\t\t\t $arrPages = $this->input->post(\"lstPages\");\n\t\t\t for($i=0; $i<sizeof($arrPages);$i++)\n {\n\t\t\t\t$this->db->query(\"INSERT INTO menus_pages_xref(menu_id, page_id) VALUES(\".$this->db->escape($id).\", \".$this->db->escape($arrPages[$i]).\")\");\n\t\t\t} \n\t\t}\n\t\telse\n {\n\t\t\t$this->db->query(\"DELETE FROM menus_pages_xref WHERE menu_id=\".$id);\n\t\t}\n\t\t\n\t\tif($strRights=='Other'){\n\t\t\t $this->db->query(\"DELETE FROM menus_roles_xref WHERE menu_id=\".$id);\n\t\t\t $arrRoles = $this->input->post(\"lstRoles\");\n\t\t\t for($i=0; $i<sizeof($arrRoles);$i++){\n\t\t\t\t$this->db->query(\"INSERT INTO menus_roles_xref(menu_id, role_id) VALUES(\".$this->db->escape($id).\", \".$this->db->escape($arrRoles[$i]).\")\");\n\t\t\t} \n\t\t}\n\t\telse\n {\n\t\t\t$this->db->query(\"DELETE FROM menus_roles_xref WHERE menu_id=\".$id);\n\t\t}\n\t\t\n\t\tif($intNumItems>0)\n {\n\t\t\t$this->db->query(\"DELETE FROM menuitems_pages_xref WHERE item_id IN(SELECT item_id FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id).\")\");\n\t\t\t\n\t\t\t$this->db->query(\"DELETE FROM menuitems WHERE item_id IN(SELECT item_id FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id).\")\");\n\t\t\t\n\t\t\t$this->db->query(\"DELETE FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id));\n\t\t\t\t\n\t\t\tfor( $i=1; $i<=$intNumItems; $i++ )\n {\n\t\t\t\tif(isset($_POST['txtItemName'.$i]) && isset($_POST['lstItemPage'.$i]) && isset($_POST['rdoItemPublished'.$i]))\n {\n\t\t\t\t\tif($_POST['txtItemName'.$i]!='' && $_POST['lstItemPage'.$i]!='0' && $_POST['rdoItemPublished'.$i]!='')\n {\n $strItemName = $_POST['txtItemName'.$i];\n $strItemPage = $_POST['lstItemPage'.$i];\n $strPublished = $_POST['rdoItemPublished'.$i]; \n \n $this->db->query(\"INSERT INTO menuitems(item_name, item_published, item_status) VALUES(\".$this->db->escape($strItemName).\", \".$this->db->escape($strPublished).\", 'Active')\");\n \n $intItemId = $this->db->insert_id();\n $this->db->query(\"INSERT INTO menus_menuitems_xref(menu_id, item_id) VALUES(\".$this->db->escape($id).\", \".$this->db->escape($intItemId).\")\");\n \n $this->db->query(\"INSERT INTO menuitems_pages_xref(item_id, page_id) VALUES(\".$this->db->escape($intItemId).\", \".$this->db->escape($strItemPage).\")\"); \n }\n }//end if\n\t\t\t}//end for \n\t\t}\n\t\telse{\n\t\t\t$this->db->query(\"DELETE FROM menuitems_pages_xref WHERE item_id IN(SELECT item_id FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id).\")\");\n\t\t\t\n\t\t\t$this->db->query(\"DELETE FROM menuitems WHERE item_id IN(SELECT item_id FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id).\")\");\n\t\t\t\n\t\t\t$this->db->query(\"DELETE FROM menus_menuitems_xref WHERE menu_id=\".$this->db->escape($id));\n\t\t}//end else \n \n return true; \n\t\t \n\t}", "title": "" }, { "docid": "672fb4b50bdd36ebd58e0695461111fe", "score": "0.6049108", "text": "function Update_module_menu_item($data, $mmi_id) {\n\t\t$this->db->where('mmi_id', $mmi_id);\n\t\t$this->db->update('module_menu_items', $data);\n\t\treturn;\n\t}", "title": "" }, { "docid": "a3bfbff2beaaba65931e785a2ea55af1", "score": "0.5965222", "text": "public function updateMenuItem($data, $menuId, $table)\n {\n $item = array(\n 'parent' => $data['parent'],\n 'name' => $data['name'],\n 'class' => $data['class'],\n 'url' => $data['url']\n );\n\n $this->db->WHERE('id', $menuId)->update($table, $item);\n }", "title": "" }, { "docid": "a34166a1be521e1c011d21d8956e1838", "score": "0.59647113", "text": "public static function updatePageIntoMenu($page)\n {\n if ($page->isHome()) {\n return null;\n }\n\n $menu = self::getMenu();\n\n $key = array_search($page->getOriginal('name'), array_column($menu, 'name'));\n\n $menu[$key] = [\n 'is_dynamic' => true,\n 'name' => $page->name,\n 'name_ar' => $page->name_ar,\n 'slug' => $page->slug\n ];\n\n return self::storeMenu($menu);\n }", "title": "" }, { "docid": "7a68b4e9046985d99f34fa42fc036224", "score": "0.5958758", "text": "function menu_management_script()\n{\n if (!has_actual_page_access(get_member(), 'admin_menus')) {\n access_denied('I_ERROR');\n }\n\n $id = get_param_integer('id');\n $to_menu = get_param_string('menu');\n $changes = array('i_menu' => $to_menu);\n\n $rows = $GLOBALS['SITE_DB']->query_select('menu_items', array('*'), array('id' => $id), '', 1);\n if (array_key_exists(0, $rows)) {\n $row = $rows[0];\n } else {\n $row = null;\n }\n\n $test = false;\n\n foreach (array_keys($test ? $_GET : $_POST) as $key) {\n $val = $test ? get_param_string($key) : post_param_string($key);\n $key = preg_replace('#\\_\\d+$#', '', $key);\n if (($key == 'caption') || ($key == 'caption_long')) {\n if (is_null($row)) {\n $changes += insert_lang('i_' . $key, $val, 2);\n } else {\n $changes += lang_remap('i_' . $key, $row['i_' . $key], $val);\n }\n } elseif (($key == 'url') || ($key == 'theme_img_code')) {\n $changes['i_' . $key] = $val;\n } elseif ($key == 'page_only') {\n $changes['i_page_only'] = $val;\n }\n }\n $changes['i_order'] = post_param_integer('order_' . strval($id), 0);\n $changes['i_new_window'] = post_param_integer('new_window_' . strval($id), 0);\n $changes['i_check_permissions'] = post_param_integer('check_perms_' . strval($id), 0);\n $changes['i_include_sitemap'] = post_param_integer('include_sitemap_' . strval($id), 0);\n $changes['i_expanded'] = 0;\n $changes['i_parent'] = null;\n\n if (is_null($row)) {\n $GLOBALS['SITE_DB']->query_insert('menu_items', $changes);\n } else {\n $GLOBALS['SITE_DB']->query_update('menu_items', $changes, array('id' => $id), '', 1);\n }\n}", "title": "" }, { "docid": "fdbe1eb84f82476dd62c497313aaa4f2", "score": "0.591582", "text": "private function deleteMenu()\n\t\t{\n\t\t\t$id = (int)$_REQUEST['id'];\n\t\t\tDB::delete(\"menu\", \"WHERE id=$id\");\n\t\t}", "title": "" }, { "docid": "acbd81ed68d05f9940c4c639ab8f3a28", "score": "0.5875034", "text": "public function deletePageMenuItem() {\t\r\n\t\t\tif (CONTENTPAGE_ENABLE_PAGEMENU) {\r\n\t\t\t// delete page menu item\r\n\t\t\t$sql = \"DELETE FROM\twcf\".WCF_N.\"_page_menu_item\r\n\t\t\t\tWHERE\t\tmenuItem LIKE 'wcf.content.page.page-\".$this->pageID.\"'\";\r\n\t\t\tWCF::getDB()->sendQuery($sql);\r\n\t\t\r\n\t\t\t// reset cache\r\n\t\t\trequire_once(WCF_DIR.'lib/data/page/menu/PageMenuItemEditor.class.php');\r\n\t\t\tPageMenuItemEditor::clearCache();\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "d05587335841d88bd1925dcbcd7273bb", "score": "0.58415425", "text": "public function menu($action, $menu_id=\"\", $id=\"\")\n {\n if($action == \"save\"){\n $data = $this->input->post();\n $this->db->trans_start();\n $this->master->insert($this->menu_pages_table, $data);\n $this->db->trans_complete();\n if ($this->db->trans_status() === FALSE){\n $this->session->set_flashdata('flashMessage', array('danger', \"Sorry, page adding failed.\"));\n } else {\n $this->session->set_flashdata('flashMessage', array('success', \"Page added successfully.\"));\n }\n redirect($this->admin_path.\"menu/assign/\" .$data[\"menu_id\"], 'refresh');\n }\n elseif($action == \"update\"){\n $data = $this->input->post();\n $this->db->trans_start();\n $id = $data[\"id\"];\n $menu_id = $data[\"menu_id\"];\n unset($data[\"id\"]);\n unset($data[\"menu_id\"]);\n $this->master->update($this->menu_pages_table, $id, $data);\n $this->db->trans_complete();\n if ($this->db->trans_status() === FALSE){\n $this->session->set_flashdata('flashMessage', array('danger', \"Sorry, page updating failed.\"));\n } else {\n $this->session->set_flashdata('flashMessage', array('success', \"Page updated successfully.\"));\n }\n redirect($this->admin_path.\"menu/assign/\" .$menu_id, 'refresh');\n }\n elseif($action == \"delete\" && $id != \"\"){\n $this->db->trans_start();\n $this->master->delete($this->menu_pages_table, $id);\n $this->db->trans_complete();\n if ($this->db->trans_status() === FALSE){\n $this->session->set_flashdata('flashMessage', array('danger', \"Sorry, page deleting failed.\"));\n } else {\n $this->session->set_flashdata('flashMessage', array('success', \"Page deleted successfully.\"));\n }\n redirect($this->admin_path.\"menu/assign/\" .$menu_id, 'refresh');\n }\n elseif($action == \"edit\" && $id != \"\"){\n $data = $this->init(\"Edit Assign Pages to Menu\");\n $data[\"data\"] = $this->master->get_all_by_id($this->menu_pages_table,$id)[0];\n }\n else\n {\n $data = $this->init(\"Assign Pages to Menu\");\n }\n\n if($menu_id==\"\")\n {\n redirect($this->admin_path.\"get_all/menu\", 'refresh');\n }\n \n $data[\"menu_id\"] = $menu_id;\n $data[\"pages\"] = $this->master->get_all($this->page_table);\n $data[\"parent_pages\"] = $this->master->get_all($this->menu_pages_table);\n $data[\"assigned_pages\"] = $this->master->get_assigned_pages($menu_id);\n $data[\"content\"] = $this->load->view($this->theme.\"/menu/assign\",$data,TRUE);\n $this->load->view($this->theme.'layout',$data);\n }", "title": "" }, { "docid": "9ef8eaffd506b3639ecfeb0b184b433c", "score": "0.5819669", "text": "private function setMenuItemId(){\n\n\t\t$home \t= false ;\n\t\tstatic $mCache = array();\n\n\t\t$jLangTag = vmLanguage::$jSelLangTag;\n\t\t$h = $jLangTag;\n\n\t\tif(isset($mCache[$h.$this->Itemid])){\n\t\t\t$this->menu = $mCache[$h.$this->Itemid];\n\t\t\t//vmdebug('Found cached menu',$h.$this->Itemid);\n\t\t\treturn;\n\t\t}\n\t\t$user = JFactory::getUser();\n\t\t$auth = array_unique($user->getAuthorisedViewLevels());\n\t\t//$auth = $user->getAuthorisedViewLevels();\n\t\t//vmdebug('my auth',$auth);\n\t\t$andAccess = ' AND ( access=\"' . implode ('\" OR access=\"', $auth) . '\" ) ';\n\n\t\t$db\t\t\t= JFactory::getDBO();\n\n\t\t$q = 'SELECT * FROM `#__menu` WHERE `link` like \"index.php?option=com_virtuemart%\" and client_id=0 and published=1 and (language=\"*\" or language = \"'.$jLangTag.'\" )'.$andAccess;\n\n\t\tif($this->byMenu === 1 and !empty($this->Itemid)) {\n\t\t\t$q .= ' and `menutype` = (SELECT `menutype` FROM `#__menu` WHERE `id` = \"'.$this->Itemid.'\") ';\n\t\t}\n\t\t$q .= ' ORDER BY `language` DESC';\n\t\t$db->setQuery($q);\n\t\t$menuVmitems = $db->loadObjectList();\n\n\t\t//vmdebug('my $menuVmitems ',$q,$menuVmitems);\n\t\t$homeid =0;\n\n\t\tif(empty($menuVmitems)){\n\t\t\t$mCache[$h.$this->Itemid] = false;\n\t\t\tvmdebug('my $menuVmitems ',$q,$menuVmitems);\n\t\t\tvmLanguage::loadJLang('com_virtuemart', true);\n\t\t\tvmWarn(vmText::_('COM_VIRTUEMART_ASSIGN_VM_TO_MENU'));\n\t\t} else {\n\t\t\t//vmdebug('my menuVmItems',$this->template,$menuVmitems);\n\t\t\t// Search Virtuemart itemID in joomla menu\n\t\t\tforeach ($menuVmitems as $item)\t{\n\n\t\t\t\t$linkToSplit= explode ('&',$item->link);\n\n\t\t\t\t$link =array();\n\t\t\t\tforeach ($linkToSplit as $tosplit) {\n\t\t\t\t\t$splitpos = strpos($tosplit, '=');\n\t\t\t\t\t$link[ (substr($tosplit, 0, $splitpos) ) ] = substr($tosplit, $splitpos+1);\n\t\t\t\t}\n\n\t\t\t\t//This is fix to prevent entries in the errorlog.\n\t\t\t\tif(!empty($link['view'])){\n\t\t\t\t\t$view = $link['view'] ;\n\t\t\t\t\tif (array_key_exists($view,$this->dbview) ){\n\t\t\t\t\t\t$dbKey = $this->dbview[$view];\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$dbKey = false ;\n\t\t\t\t\t}\n\n\t\t\t\t\tif($dbKey){\n\t\t\t\t\t\tif($dbKey=='category'){\n\t\t\t\t\t\t\t$catId = empty($link['virtuemart_category_id'])? 0:$link['virtuemart_category_id'];\n\t\t\t\t\t\t\t$manId = empty($link['virtuemart_manufacturer_id'])? 0:$link['virtuemart_manufacturer_id'];\n\n\t\t\t\t\t\t\tif(!isset($this->menu ['virtuemart_'.$dbKey.'_id'] [$catId] [$manId])){\n\t\t\t\t\t\t\t\t$this->menu ['virtuemart_'.$dbKey.'_id'] [$catId] [$manId] = $item->id;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//vmdebug('This menu item exists two times',$item,$this->template->id);\n\t\t\t\t\t\t\t\tif($item->template_style_id==$this->template->id){\n\t\t\t\t\t\t\t\t\t$this->menu ['virtuemart_'.$dbKey.'_id'] [$catId] [$manId]= $item->id;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else if ( isset($link['virtuemart_'.$dbKey.'_id']) ){\n\t\t\t\t\t\t\tif(!isset($this->menu['virtuemart_'.$dbKey.'_id'][ $link['virtuemart_'.$dbKey.'_id'] ])){\n\t\t\t\t\t\t\t\t$this->menu['virtuemart_'.$dbKey.'_id'][ $link['virtuemart_'.$dbKey.'_id'] ] = $item->id;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//vmdebug('This menu item exists two times',$item,$this->template->id);\n\t\t\t\t\t\t\t\tif($item->template_style_id==$this->template->id){\n\t\t\t\t\t\t\t\t\t$this->menu['virtuemart_'.$dbKey.'_id'][ $link['virtuemart_'.$dbKey.'_id'] ] = $item->id;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(!isset($this->menu[$dbKey])){\n\t\t\t\t\t\t\t\t$this->menu[$dbKey] = $item->id;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t//vmdebug('This menu item exists two times',$item,$this->template->id);\n\t\t\t\t\t\t\t\tif($item->template_style_id==$this->template->id){\n\t\t\t\t\t\t\t\t\t$this->menu[$dbKey] = $item->id;\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\n\t\t\t\t\telseif ($home == $view ) continue;\n\t\t\t\t\telse {\n\t\t\t\t\t\tif(!isset($this->menu[$view])){\n\t\t\t\t\t\t\t$this->menu[$view]= $item->id ;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//vmdebug('This menu item exists two times',$item,$this->template->id);\n\t\t\t\t\t\t\tif($item->template_style_id==$this->template->id){\n\t\t\t\t\t\t\t\t$this->menu[$view]= $item->id ;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((int)$item->home === 1) {\n\t\t\t\t\t\t$home = $view;\n\t\t\t\t\t\t$homeid = $item->id;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tvmdebug('my item with empty $link[\"view\"]',$item);\n\t\t\t\t\tvmError('$link[\"view\"] is empty');\n\t\t\t\t}\n\t\t\t}\n\t\t\t$mCache[$h.$this->Itemid] = $this->menu;\n\t\t\tforeach ($menuVmitems as $item)\t{\n\t\t\t\tif($this->Itemid!=$item->id){\n\t\t\t\t\t$mCache[$h.$item->id] = &$mCache[$h.$this->Itemid];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( !isset( $this->menu['virtuemart']) or !isset($this->menu['virtuemart_category_id'][0])) {\n\n\t\t\tif (!isset ($this->menu['virtuemart_category_id'][0][0]) ) {\n\t\t\t\t$this->menu['virtuemart_category_id'][0][0] = $homeid;\n\t\t\t}\n\t\t\t// init unsetted views to defaut front view or nothing(prevent duplicates routes)\n\t\t\tif ( !isset( $this->menu['virtuemart']) ) {\n\t\t\t\tif (isset ($this->menu['virtuemart_category_id'][0][0]) ) {\n\t\t\t\t\t$this->menu['virtuemart'] = $this->menu['virtuemart_category_id'][0][0] ;\n\t\t\t\t} else $this->menu['virtuemart'] = $homeid;\n\t\t\t}\n\t\t}\n\n\t\t$mCache[$h.$this->Itemid] = $this->menu;\n\t}", "title": "" }, { "docid": "768e96b7871c5bc3aced38bd8c78d7a0", "score": "0.5777832", "text": "public function edit_menu(Menu $menu)\n {\n// TODO edit menu\n dd('Edit Menu page coming here.', $menu);\n }", "title": "" }, { "docid": "6461c25eba8fd081adb316111937b422", "score": "0.5759909", "text": "public function update(Request $request, $id)\n {\n $menu = MenuFrontPage::find($id);\n $menu->id_category = $request->kategori;\n $menu->id_sub_menu = $request->parent;\n $menu->jenis = $request->jenis;\n $menu->sort_order = $request->sort_order;\n $menu->is_created = \\Session::get('id');\n $menu->save();\n\n if($request->trigger == 1){\n foreach($request->judul as $key => $value){\n $ceker = MenuFrontPageLanguage::where('id_language', $request->language[$key])->where('id_menu_front_page', $id)->count();\n if($ceker == 1){\n $menulang = MenuFrontPageLanguage::where('id', $request->idml[$key])->first();\n $menulang->id_menu_front_page = $menu->id;\n $menulang->id_language = $request->language[$key];\n $menulang->judul_menu = $request->judul[0];\n $menulang->save();\n }else{\n $menulang = new MenuFrontPageLanguage;\n $menulang->id_menu_front_page = $menu->id;\n $menulang->id_language = $request->language[$key];\n $menulang->judul_menu = $request->judul[0];\n $menulang->save();\n }\n }\n }else{\n foreach($request->judul as $key => $value){\n $ceker = MenuFrontPageLanguage::where('id_language', $request->language[$key])->where('id_menu_front_page', $id)->count();\n if($ceker == 1){\n $menulang = MenuFrontPageLanguage::where('id', $request->idml[$key])->first();\n $menulang->id_menu_front_page = $menu->id;\n $menulang->id_language = $request->language[$key];\n $menulang->judul_menu = $request->judul[$key];\n $menulang->save();\n }else{\n $menulang = new MenuFrontPageLanguage;\n $menulang->id_menu_front_page = $menu->id;\n $menulang->id_language = $request->language[$key];\n $menulang->judul_menu = $request->judul[$key];\n $menulang->save();\n }\n }\n }\n\n return redirect('menu_front_page')->with('info', 'Data Berhasil di Update');\n }", "title": "" }, { "docid": "b686d7fa11d4d99bf9038fcc55b5b9fd", "score": "0.5746048", "text": "static function updateMenuItem($params)\n {\n\t$con =$params['dbconnection'];\t\n\t$name='';\n\t$name_ar='';\n\t$price='';\n\t$icon='';\n\t$image='';\n\t$description='';\n\t$description_ar='';\n\t\n\tif(!empty($params['name'])){ $name=\" `name`='{$params['name']}' ,\"; }\n\tif(!empty($params['name_ar'])){ $name_ar=\" `name_ar`='{$params['name_ar']}' ,\"; }\n\tif(!empty($params['price'])){ $price=\" `price`='{$params['price']}' ,\"; }\n\tif(!empty($params['icon'])){ $icon=\" `icon`='{$params['icon']}' ,\"; }\n\tif(!empty($params['image'])){ $image=\" `image`='{$params['image']}' ,\"; }\n\tif(!empty($params['description'])){ $description=\" `description`='{$params['description']}' ,\"; }\n\tif(!empty($params['description_ar'])){ $description_ar=\" `description_ar`='{$params['description_ar']}' ,\"; }\n\t\n\t $query= \"UPDATE `menu_items` SET \n\t\".$name.\"\n\t\".$name_ar.\"\n\t\".$price.\"\n\t\".$icon.\"\n\t\".$image.\"\n\t\".$description.\"\n\t\".$description_ar.\"\n\t`id`='{$params['id']}' \n\tWHERE `id`='{$params['id']}'\"\t;\n\tmysqli_query($con,$query) ;\n\tif (mysqli_error($con) != '')\n\treturn \"mysql_Error:-\".mysqli_error($con);\n\t/*if(mysqli_affected_rows($con)==0)\n\treturn \"\";*/\n\t\n\treturn 'updated';\n }", "title": "" }, { "docid": "9168183e5bf2843f4135b9b83a0e8bdf", "score": "0.5742086", "text": "public function update(Request $request, Menu $menu)\n {\n $status = $request->status == 'on' ? 1:0;\n $order = convertPersianToEnglish($request->order);\n switch ($request->madule){\n case 1:\n $madule_name = 'CategoryProduct';\n break;\n case 2:\n $madule_name = 'Product';\n break;\n case 3:\n $madule_name = 'Category';\n break;\n case 4:\n $madule_name = 'Content';\n break;\n case 5:\n $madule_name = 'outer';\n Case 6:\n $madule_name = 'CategoryGallery';\n break;\n }\n $link = (!$request->link) ? \"null\":$request->link;\n $updated = $menu->update([\n 'name'=>$request->name,\n 'parent_id'=>$request->parent_id,\n 'madule_name'=>$madule_name,\n 'madule_id'=>$request->madule_id,\n 'link'=>$link,\n 'lang'=>$request->lang,\n 'type'=>$request->madule,\n 'status'=>$status,\n 'order'=>$order,\n ]);\n\n if($updated){\n return redirect()->back()->with('message',[__('admin.update_s'),'success']);\n }\n }", "title": "" }, { "docid": "eed98109b1a36ebdf7eed9b831f2cc92", "score": "0.57396257", "text": "public function update(MenusRequest $request, $menu)\n {\n\n }", "title": "" }, { "docid": "84f6472fab54a4abc60fc3ac0fd4ae97", "score": "0.56607234", "text": "function update_menu_olah($id,$params)\n {\n $this->db->where('id',$id);\n return $this->db->update('menu_olah',$params);\n }", "title": "" }, { "docid": "7fdc510ef100f2e338c2e9be777a0fcc", "score": "0.56571174", "text": "public function actionUpdate()\n\t{\n\t\t$structure = Yii::app()->request->getParam('structure');\n if($structure != null){\n $list = json_decode($structure,true);\n if(count($list) > 0){\n $i = 0;\n foreach($list as $value){\n $i++;\n $sql = \"UPDATE menu SET parent_id = 0, position =$i WHERE id =\".$value['id'];\n Yii::app()->db->createCommand($sql)->execute();\n if(isset($value['children'])){\n $children = $value['children'];\n if(count($children) > 0){\n $j = $i+1;\n foreach($children as $chid){\n $j++;\n $sql = \"UPDATE menu SET parent_id = \".$value['id'].\", position =$j WHERE id =\".$chid['id'];\n Yii::app()->db->createCommand($sql)->execute();\n }\n }\n }\n }\n }\n }\n\t}", "title": "" }, { "docid": "d6f65ac27ef91ee86d3352ef1567f20c", "score": "0.5653666", "text": "public function fields_nav_update($menu_id, $menu_item_db_id, $args ) {\n\t\t\t\t$configs = apply_filters( 'wpo_menu_custom_configs',array() );\n\t\t\t\tforeach ($configs as $config) {\n\t\t\t\t\tif ( is_array($_REQUEST['menu-item-'.$config['value']]) ) {\n\t\t\t\t $value = $_REQUEST['menu-item-'.$config['value']][$menu_item_db_id];\n\t\t\t\t update_post_meta( $menu_item_db_id, '_menu_item_'.$config['value'], $value );\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "064ea4c0c1daaed8eba0f4a711a358c2", "score": "0.5647201", "text": "public function getMenuId();", "title": "" }, { "docid": "0fe5eac65154ce93adb584bcd73f16d8", "score": "0.56274503", "text": "function edit_menu_item($id, $menu_id, $order, $parent, $caption, $url, $check_permissions, $page_only, $expanded, $new_window, $caption_long, $theme_image_code, $include_sitemap)\n{\n $_caption = $GLOBALS['SITE_DB']->query_select_value('menu_items', 'i_caption', array('id' => $id));\n $_caption_long = $GLOBALS['SITE_DB']->query_select_value('menu_items', 'i_caption_long', array('id' => $id));\n\n $map = array(\n 'i_menu' => $menu_id,\n 'i_order' => $order,\n 'i_parent' => $parent,\n 'i_url' => $url,\n 'i_check_permissions' => $check_permissions,\n 'i_page_only' => $page_only,\n 'i_expanded' => $expanded,\n 'i_new_window' => $new_window,\n 'i_include_sitemap' => $include_sitemap,\n );\n $map += lang_remap_comcode('i_caption', $_caption, $caption);\n $map += lang_remap_comcode('i_caption_long', $_caption_long, $caption_long);\n $GLOBALS['SITE_DB']->query_update('menu_items', $map, array('id' => $id), '', 1);\n\n log_it('EDIT_MENU_ITEM', strval($id), $caption);\n\n if ((addon_installed('commandr')) && (!running_script('install')) && (!get_mass_import_mode())) {\n require_code('resource_fs');\n generate_resource_fs_moniker('menu_item', strval($id));\n }\n}", "title": "" }, { "docid": "882b4ba4ad9323e5a37b661db51b158e", "score": "0.56022304", "text": "private function addMenuItem()\n\t\t{\n\t\t\t$this->saveMenu();\n\t\t\t$id = (int)$_REQUEST['id'];\n\t\t\t$value = DB::selectValue(\"menu\", \"value\", \"WHERE id=$id\");\n\t\t\t$value .= \"\\n\";\n\t\t\tDB::update(\"menu\", array(\n\t\t\t\t\"value\"=>$value\n\t\t\t\t), \"WHERE id=$id\");\n\t\t}", "title": "" }, { "docid": "0dd60d98568d05fc04cb6436a9004189", "score": "0.5562448", "text": "private function resetMenu()\n {\n $db = \\phpws2\\Database::newDB();\n $m = $db->addTable('menus');\n $m->addField('id');\n $m->addOrderBy('queue');\n $result = $db->select();\n\n if (empty($result)) {\n return;\n }\n\n $queue = 1;\n foreach ($result as $row) {\n $db->clearConditional();\n $m->resetValues();\n $m->addValue('queue', $queue);\n $m->addFieldConditional('id', $row['id']);\n $db->update();\n $queue++;\n\n $this->reorderLinks($row['id'], 0);\n }\n }", "title": "" }, { "docid": "b14bc5e2b262304c748d64bbfb1435e5", "score": "0.55617315", "text": "function update_nav_menu_item($menu_id = 0, $menu_item_db_id = 0, $menu_item_data = array()) {\n if (!empty($_POST['menu-item-db-id'])) {\n update_post_meta( $menu_item_db_id, 'wpcm-trigger', ( empty($_POST['menu-item-categorylist'][$menu_item_db_id]) ? \"\" : 'on') );\n update_post_meta( $menu_item_db_id, 'wpcm-showpostnumber', ( empty($_POST['menu-item-categorylist-postnumber'][$menu_item_db_id]) ? \"\" : 'on') );\n if( in_array( $_POST['menu-item-categorylist-all'][$menu_item_db_id], array( 'top', 'all', 'wc-top', 'wc-all')) \n || (int)$_POST['menu-item-categorylist-all'][$menu_item_db_id] > 0\n || strpos($_POST['menu-item-categorylist-all'][$menu_item_db_id], 'wc-') !== false )\n update_post_meta( $menu_item_db_id, 'wpcm-display', $_POST['menu-item-categorylist-all'][$menu_item_db_id] );\n \n update_post_meta( $menu_item_db_id, 'wpcm-number', ( empty($_POST['menu-item-categorylist-number'][$menu_item_db_id]) ? \"\" : $_POST['menu-item-categorylist-number'][$menu_item_db_id]) );\n update_post_meta( $menu_item_db_id, 'wpcm-orderby', ( in_array( $_POST['menu-item-categorylist-orderby'][$menu_item_db_id], array('id', 'name','slug', 'count')) ? $_POST['menu-item-categorylist-orderby'][$menu_item_db_id] : 'name' ) );\n update_post_meta( $menu_item_db_id, 'wpcm-order', ( in_array( $_POST['menu-item-categorylist-order'][$menu_item_db_id], array('ASC', 'DESC')) ? $_POST['menu-item-categorylist-order'][$menu_item_db_id] : 'ASC' ) );\n if( isset($_POST['menu-item-categorylist'][$menu_item_db_id]) && $_POST['menu-item-categorylist'][$menu_item_db_id] == 'on') {\n update_option( 'wpcm-column', (empty($_POST['menu-item-categorylist-column'][$menu_item_db_id]) ? \"\" : $_POST['menu-item-categorylist-column'][$menu_item_db_id]) );\n update_option( 'wpcm-width', (empty($_POST['menu-item-categorylist-width'][$menu_item_db_id]) ? \"\" : $_POST['menu-item-categorylist-width'][$menu_item_db_id]) );\n }\n }\n }", "title": "" }, { "docid": "b7d89f8f49a3b499ce5b58dc21c41f2a", "score": "0.5552409", "text": "public function update(Request $request, Menu $menu)\n {\n //\n }", "title": "" }, { "docid": "a93a78e57247a44b9031550be30bd942", "score": "0.55291873", "text": "public function update(MenuRequest $request)\n {\n DB::beginTransaction();\n try{\n $menu_id = $request['menu_id'];\n $label = $request['labels'];\n $icon_id = $request['menu_icon'];\n $url = $request['menu_url'];\n $parent = $request['parent_menu'];\n $permission = $request['permission'];\n\n $icon_ar = IconModule::where('id','=',$icon_id)->first();\n $icon = 'fa '.$icon_ar->icon;\n \n $menus = MenuModule::find($menu_id);\n $menus->menu_name = $label;\n $menus->url = $url;\n $menus->parent_id = $parent;\n $menus->icon = $icon;\n $menus->icon_id = $icon_id;\n $menus->save();\n\n if(sizeof($permission) > 0){\n $permission_deny = MenuPermissionModule::where('menuId',$menu_id)->update(['status' => 0]);\n foreach ($permission as $key => $value) {\n $perm = MenuPermissionModule::create([\n 'permissionId' => $value,\n 'menuId' => $menu_id,\n 'status' => STATUS_ACTIVE\n ]);\n }\n }\n DB::commit();\n return redirect('menu/edit/'.$menu_id )->with(['success' => true,\n 'success.message'=> 'Menu Updated successfully!',\n 'success.title' => 'Well Done!' ]);\n }catch(\\Exception $e){\n DB::rollBack();\n return redirect('menu/edit/'.$menu_id )->with(['error' => true,\n 'error.message'=> $e->getMessage(),\n 'error.title' => 'Ooops!' ]);\n }\n }", "title": "" }, { "docid": "b73dc0fc09af825f75996e16d832b577", "score": "0.55273074", "text": "public function updateLeftmenupage($con_id,$update_data)\r\n\t{\r\n\t\t//print_r($this->input->post()); exit;\r\n\t\t$this->db->where('lan_sign_id', $con_id);\r\n\t $this->db->update('tbl_lang_leftmenu', $update_data);\r\n\t return true;\r\n\t}", "title": "" }, { "docid": "480c48df6b64f854dec82a55b75d9839", "score": "0.55271745", "text": "public function update(StoreMenu $request, $id)\n {\n $data = Menus::findOrFail($id);\n $data->pic = $request->pic;\n $data->category_id = $request->category;\n $data->save();\n flash('You have successfully updated')->success();\n return redirect('/admin/menus');\n }", "title": "" }, { "docid": "d90b1bacfa1b528114885f96e8801042", "score": "0.55111223", "text": "function save_menu($menuid = '', $menu_title = '', $menu_icon = '', $menu_status = '', $menu_sort = '', $assign_cat = '')\r\n {\r\n $this->db->query(\"CALL prc_set_SystemMenu('$menuid','$menu_title','$menu_icon','$menu_status','$menu_sort','$assign_cat')\");\r\n }", "title": "" }, { "docid": "d60946dd006ec1d8d76624e296fad210", "score": "0.5499144", "text": "function insert_menu($sitechk) {\n\t\t$sql = \"INSERT INTO \".$sitechk.\"_umsdb.ummenu (MnStID, MnSeq, MnIcon, MnNameT, MnNameE, MnURL, MnDesc, MnToolbar, MnToolbarSeq, MnToolbarIcon, MnParentMnID, MnLevel)\n\t\t\t\tVALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n\t\t \n\t\t$this->ums->query($sql, array($this->MnStID, $this->MnSeq, $this->MnIcon, $this->MnNameT, $this->MnNameE, $this->MnURL, $this->MnDesc, $this->MnToolbar, $this->MnToolbarSeq, $this->MnToolbarIcon, $this->MnParentMnID, $this->MnLevel));\n\t\t$this->last_insert_id = $this->ums->insert_id();\n\t}", "title": "" }, { "docid": "26b450c3dab00d1823bf556d4e3e0022", "score": "0.5493163", "text": "function mfn_update_nav_menu_item( $menu_id, $menu_item_db_id, $menu_item_data ) {\n\t\t\n\t\t// mega menu\n\t\tif ( ! isset( $_REQUEST['edit-menu-item-megamenu'][$menu_item_db_id]) ) {\n\t\t\t$_REQUEST['edit-menu-item-megamenu'][$menu_item_db_id] = '';\n\t\t}\n\t\t$megamenu = $_REQUEST['edit-menu-item-megamenu'][$menu_item_db_id];\n\t\tupdate_post_meta( $menu_item_db_id, 'menu-item-mfn-megamenu', $megamenu );\n\t\t\n\t\t// background\n\t\tif ( ! isset( $_REQUEST['edit-menu-item-bg'][$menu_item_db_id]) ) {\n\t\t\t$_REQUEST['edit-menu-item-bg'][$menu_item_db_id] = '';\n\t\t}\n\t\t$bg = $_REQUEST['edit-menu-item-bg'][$menu_item_db_id];\n\t\tupdate_post_meta( $menu_item_db_id, 'menu-item-mfn-bg', $bg );\n\t}", "title": "" }, { "docid": "aaee059a0b8b1e7b84c0e6a2a7768925", "score": "0.5492211", "text": "function Update_module_menu_group($data, $mmg_id) {\n\t\t$this->db->where('mmg_id', $mmg_id);\n\t\t$this->db->update('module_menu_groups', $data);\n\t\treturn;\n\t}", "title": "" }, { "docid": "84bbbb08a4935af8b368cf41d94e52f0", "score": "0.5490808", "text": "function urhea_nav_update( $menu_id, $menu_item_db_id ) {\n\n\t// Verify this came from our screen and with proper authorization.\n\tif ( ! isset( $_POST['_urhea_extra_description_nonce_name'] ) || ! wp_verify_nonce( $_POST['_urhea_extra_description_nonce_name'], 'urhea_extra_description_nonce' ) ) {\n\t\treturn $menu_id;\n\t}\n\n\tif ( isset( $_POST['urhea_extra_description'][$menu_item_db_id] ) ) {\n\t\t$sanitized_data = sanitize_text_field( $_POST['urhea_extra_description'][$menu_item_db_id] );\n\t\tupdate_post_meta( $menu_item_db_id, '_urhea_extra_description', $sanitized_data );\n\t} else {\n\t\tdelete_post_meta( $menu_item_db_id, '_urhea_extra_description' );\n\t}\n}", "title": "" }, { "docid": "c78993ffa49a0f1cf7ccf7020e5b7ea9", "score": "0.5479254", "text": "public function edit(array $menu){\n\t\t\tif(empty(self::$conn)){\n\t\t\t\tself::$conn=$this->connect_pdo();\n\t\t\t}\n\t\t\t$stmt=self::$conn->prepare('UPDATE menu \n\t\t\t\t\t\tSET name=?,position=?,url=? WHERE id=?');\n\t\t\t$stmt->bindParam(1,$name);\n\t\t\t$stmt->bindParam(2,$position);\n\t\t\t$stmt->bindParam(3,$url);\n\t\t\t$stmt->bindParam(4,$id);\n\n\t\t\t$name=$menu['name'];\n\t\t\t$position=$menu['position'];\n\t\t\t$url=$menu['url'];\n\t\t\t$id=$menu['id'];\n\n\t\t\tif($stmt->execute()){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "360830f4390ae06f38cf8b8b7b9694c9", "score": "0.5461732", "text": "function update_user_sub_menu($id,$params)\n {\n $this->db->where('id',$id);\n return $this->db->update('user_sub_menu',$params);\n }", "title": "" }, { "docid": "4ea23886736beae26f43ab0cb9e94f9e", "score": "0.54601777", "text": "function menu_manipulate($id=null)\n {\n $this->checkAccessGroup(1);\n if ($this->Nodcms_admin_model->menu_manipulate($this->input->post('data',TRUE),$id))\n {\n $this->session->set_flashdata('success', _l('Updated menu',$this));\n }\n else\n {\n $this->session->set_flashdata('error', _l('Updated menu error. Please try later',$this));\n }\n redirect(ADMIN_URL.\"menu\");\n }", "title": "" }, { "docid": "5522350a40411d42355ac65bf45b1420", "score": "0.54464453", "text": "public function pagemenuesmcAction()\n {\n\n //$this->_helper->layout->disableLayout();\n $this->_helper->layout()->setLayout('layoutpublicesmc');\n \n\n $id = (int) $this->_request->getParam('id');\n if($id > 0){\n $menu = new Application_Model_EuMenu();\n $menuM = new Application_Model_EuMenuMapper();\n $menuM->find($id, $menu);\n $this->view->menu = $menu;\n } else { $this->_redirect('/'); } \n }", "title": "" }, { "docid": "c57658c31637d6e2d052a05d3f24ef32", "score": "0.54462636", "text": "public function edit() {\n global $_DATA;\n $_DATA['lang_tab'] = $this->langTab();\n $_DATA['lang'] = $this->lang;\n $_DATA['link_back'] = $this->home . '/menu-menu-menubottom-lang-' . $this->lang;\n $id = $this->request->get_int('id', 'GET');\n $_DATA['content'] = $this->model->getById($id);\n $menu = $this->model->getMenuList($_DATA['content']['type']);\n if ($_DATA['content'] != '') {\n $_DATA['content']['direct_link_decode'] = json_decode($_DATA['content']['direct_link'], true);\n }\n $_SESSION['menu_img'] = $_DATA['content']['img'];\n $_SESSION['menu_icon'] = $_DATA['content']['icon'];\n $_DATA['list_cat'] = $this->model->merge_category();\n $_DATA['menu'] = $this->fix_tree($menu['data'], 'parent_id');\n foreach ($_DATA['menu'] as $k => $v) {\n if ($v['id'] == $id) {\n unset($_DATA['menu'][$k]);\n }\n }\n $_DATA['id'] = $id;\n $_DATA['alias'] = $_DATA['content']['alias'];\n \n $_DATA['content_module'] = $this->temp->load('menuEdit');\n }", "title": "" }, { "docid": "5b633ec546974ba4062901ee51152154", "score": "0.54338545", "text": "private function saveMenu()\n\t\t{\n\t\t\t$id = (int)$_REQUEST['id'];\n\t\t\t$name = FN::sanitise($_REQUEST['name']);\n\t\t\t$value = NULL;\n\t\t\t$index = 0;\n\t\t\twhile (TRUE)\n\t\t\t{\n\t\t\t\tif (isset($_REQUEST[\"item$index\"]))\n\t\t\t\t{\n\t\t\t\t\tif (isset($_REQUEST['toDelete']) && $_REQUEST['toDelete'] == $index)\n\t\t\t\t\t{\n\t\t\t\t\t\t$index++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t$template = FN::sanitise($_REQUEST[\"template$index\"]);\n\t\t\t\t\t$item = FN::sanitise($_REQUEST[\"item$index\"]);\n\t\t\t\t\tif ($value) $value .= \"\\n\";\n\t\t\t\t\t$value .= \"$template,$item\";\n\t\t\t\t\t$index++;\n\t\t\t\t}\n\t\t\t\telse break;\n\t\t\t}\n\t\t\tDB::update(\"menu\", array(\n\t\t\t\t\"name\"=>$name,\n\t\t\t\t\"value\"=>$value,\n\t\t\t\t\"user\"=>0,\n\t\t\t\t\"timestamp\"=>time(),\n\t\t\t\t\"attributes\"=>NULL\n\t\t\t\t), \"WHERE id=$id\");\n\t\t}", "title": "" }, { "docid": "6c39d0725a4dac6c451c20c68dc0e996", "score": "0.5432459", "text": "function moveMenuSave( $option, $cid, $menu, $menutype ) {\n\tglobal $database;\n\n\t// add all decendants to the list\n\tforeach ($cid as $id) addDescendants($id, $cid);\n\n\t$row \t\t= new mosMenu( $database );\n\t$ordering \t= 1000000;\n\t$firstroot \t= 0;\n\tforeach ($cid as $id) {\n\t\t$row->load( $id );\n\n\t\t// is it moved together with his parent?\n\t\t$found = false;\n\t\tif ($row->parent != 0)\n\t\t\tforeach ($cid as $idx)\n\t\t\t\tif ($idx == $row->parent) {\n\t\t\t\t\t$found = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} // if\n\t\tif (!$found) {\n\t\t\t$row->parent = 0;\n\t\t\t$row->ordering = $ordering++;\n\t\t\tif (!$firstroot) $firstroot = $row->id;\n\t\t} // if\n\n\t\t$row->menutype = $menu;\n\t\tif ( !$row->store() ) {\n\t\t\techo \"<script> alert('\". $database->getErrorMsg() .\"'); window.history.go(-1); </script>\\n\";\n\t\t\texit();\n\t\t} // if\n\t} // foreach\n\n\tif ($firstroot) {\n\t\t$row->load( $firstroot );\n\t\t$row->updateOrder( 'menutype = ' . $database->Quote( $row->menutype ) . ' AND parent = ' . (int) $row->parent );\n\t} // if\n\n\t// clean any existing cache files\n\tmosCache::cleanCache( 'com_content' );\n\t\n\t$msg = count($cid) .' Пункты меню перенесены в '. $menu;\n\tmosRedirect( 'index2.php?option='. $option .'&menutype='. $menutype .'&mosmsg='. $msg );\n}", "title": "" }, { "docid": "53bd67bdafd35df3f1ae97f16cf2910d", "score": "0.54170597", "text": "public function updateAction(Request $request, $id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('SettingContentBundle:Page')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Page entity.');\n }\n\n $deleteForm = $this->createDeleteForm($id);\n $editForm = $this->createEditForm($entity);\n $editForm->handleRequest($request);\n\n if ($editForm->isValid()) {\n\n $menu = $entity->getMenu();\n $parent = $entity->getParent();\n if($parent){\n $subPage = array($parent);\n $entity ->setSubPages($subPage);\n }\n\n $slug = $this->get('setting.menuSettingRepo')->urlSlug($menu);\n $entity ->setMenuSlug($slug);\n\n $entity->upload();\n $em->flush();\n $this->get('session')->getFlashBag()->add(\n 'success',\"Data has been updated successfully\"\n );\n\n $this->getDoctrine()->getRepository('SettingContentBundle:Page')->updatePageMenu($entity->getId());\n\n return $this->redirect($this->generateUrl('page_edit', array('id' => $id)));\n }\n\n return $this->render('SettingContentBundle:Page:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "1b09457fd54367d35faa3b2bc436376b", "score": "0.5403425", "text": "public function update(MenuRequest $request, $id)\n {\n $cate_tour_id = $request->cate_tour_id;\n $cate_new_id = $request->cate_new_id;\n $cate_id = is_null($cate_new_id) ? $cate_tour_id : $cate_new_id;\n $request->merge([\n 'slug' => str_slug($request->name),\n 'cate_id' => $cate_id,\n ]);\n $menu = $this->menu->update($id, $request->all());\n\n return redirect()->route('menu.index');\n }", "title": "" }, { "docid": "bfef7e23d0370a72c99ee5c5812c3c90", "score": "0.53942823", "text": "public function update(Request $request, $id)\n {\n\n $page = page::find($id);\n if($page->menu_name!=$request->menu_name){\n $this->validate($request,[\n 'menu_name'=>'unique:pages',\n ]);\n }\n $this->validate($request,[\n 'parent_id'=>'required',\n 'menu_name'=>'required',\n 'url'=>'required'\n ]);\n\n $page->parent_id=$request->parent_id;\n $page->main_id=$request->module_id;\n $page->url=$request->url;\n $page->menu_name=$request->menu_name;\n $page->icon=$request->icon;\n $page->sort_order=$request->sort_order;\n $page->sort_in_order=$request->sort_in_order;\n $page->save();\n return redirect('/admin/useraccess');\n }", "title": "" }, { "docid": "900aa05737010d4d83cb835eb53eb6f4", "score": "0.5387055", "text": "public function update($id, Request $request){\n\t\tif($request->get('_action') == 'menu_order'){\n\t\t\t$menu_order = $request->get('menu_order');\n\n\t\t\t// Re order items\n\t\t\t$order = 0;\n\t\t\tforeach ($menu_order as $menu_id) {\n\t\t\t\t$item = MenuItem::find($menu_id);\n\t\t\t\t\n\t\t\t\tif($item->order != $order){\n\t\t\t\t\t$item->order = $order;\n\t\t\t\t\t$item->save();\n\t\t\t\t}\n\t\t\t\t$order++;\n\t\t\t}\n\n\t\t\treturn response()->json(array('error' => false, 'msg' => 'Menu Order was updated!', 'order' => $menu_order));\n\t\t}\n\n\t\t// Update Menu Name and Title\n\t\tif($request->get('_action') == 'edit_menu'){\n\n\t\t\t$new_name = $request->get('menu-edit-name');\n\n\t\t\t$menu = Menu::find($id);\n\t\t\t$menu->name = $new_name;\n\t\t\t$menu->title = $new_name;\n\t\t\t$menu->save();\n\n\t\t\t// dd($menu);\n\t\t\treturn redirect('admin/menus')->with($this->params);\n\t\t}\n\n\t\t// Adding new Item to Menu\n\t\tif(($request->get('new-menu-item')) & ($request->get('new-menu-item-url'))){\n\n\t\t\t$menu_item = new MenuItem;\n\t\t\t$menu_item->name \t\t\t= $request->get('new-menu-item');\n\t\t\t$menu_item->title \t\t\t= $request->get('new-menu-item');\n\t\t\t$menu_item->menu \t\t\t= $id;\n\t\t\t$menu_item->level \t\t\t= 1;\n\t\t\t$menu_item->order \t\t\t= 1;\n\t\t\t$menu_item->url \t\t\t= $request->get('new-menu-item-url');\n\t\t\t$menu_item->save();\n\n\t return redirect('admin/menus')->with($this->params);\n\n\t\t}\n return redirect('admin/menus')->with($this->params);\n\t\t\n\t}", "title": "" }, { "docid": "2bcab341dccb7bd10eb0968dc51a75bb", "score": "0.53808767", "text": "function montermenuAction()\n {\n\n $id = (int) $this->_request->getParam('id');\n \tif ($id > 0) {\n\t\t\t\n $menu = new Application_Model_EuMenu();\n $menu_mapper = new Application_Model_EuMenuMapper();\n\t\t$menu_mapper->find($id, $menu);\n\t\t$ordre = $menu->ordre;\n\t\t\n $menu1 = new Application_Model_EuMenu();\n $menu1_mapper = new Application_Model_EuMenuMapper();\n\t\t$rows = $menu1_mapper->findOrdreMonter($menu->ordre);\n\t\t$menu1_mapper->find($rows->menu_id, $menu1);\n\t\t$ordre1 = $menu1->ordre;\n\t\t\t\n $menu->setOrdre($ordre1);\n\t\t$menu_mapper->update($menu);\n\n $menu1->setOrdre($ordre);\n\t\t$menu1_mapper->update($menu1);\n\t\t\t\n\t\t$this->_redirect('/administration/listmenu');\n }\n }", "title": "" }, { "docid": "b586425a05bddb4abc47ee11a539a45d", "score": "0.537672", "text": "public function edit(\\Corp\\Menu $menu)\n {\n /* if (Gate::denies('update', new \\Corp\\Menu())) {\n abort(403);\n }*/\n\n\n $this->title = \"Редактирование пункта меню – \" . $menu->title;\n\n try {\n $route = app('router')->getRoutes()->match(app('request')->create($menu->path));\n } catch (\\Exception $exception) {\n $type = 'customLink';\n $option = '';\n }\n\n if (isset($route)) {\n $routeAlias = $route->getName();\n $parameters = $route->parameters();\n switch ($routeAlias) {\n case 'articles.index':\n case 'articlesCat':\n $type = 'blogLink';\n $option = $parameters['cat_alias'] ?? 'parent';\n break;\n case 'articles.show':\n $type = 'blogLink';\n $option = $parameters['alias'] ?? '';\n break;\n case 'portfolios.index':\n $type = 'portfolioLink';\n $option = 'parent';\n break;\n case 'portfolios.show':\n $type = 'portfolioLink';\n $option = $parameters['alias'] ?? '';\n break;\n default:\n $type = 'customLink';\n $option = '';\n }\n }\n\n\n $menus = $this->getMenus()->roots()->reduce(function ($carry, $item) {\n return array_add($carry, $item->id, $item->title);\n }, ['0' => 'Родительский пункт меню']);\n\n $categories = Category::select(['id', 'title', 'alias', 'parent_id'])->get();\n $list = ['0' => 'Не используется'];\n $list = array_add($list, 'parent', 'Раздел блог');\n foreach ($categories as $category) {\n if ($category->parent_id === 0) {\n $list[$category->title] = [];\n } else {\n $list[$categories->where('id', $category->parent_id)->first()->title][$category->alias] = $category->title;\n }\n }\n\n $articles = $this->a_rep->get(['id', 'title', 'alias'])->reduce(function ($carry, $item) {\n return array_add($carry, $item->alias, $item->title);\n }, []);\n\n $filters = Filter::select(['id', 'title', 'alias'])->get()->reduce(function ($carry, $item) {\n return array_add($carry, $item->alias, $item->title);\n }, ['parent' => 'Раздел портфолио']);\n\n $portfolios = $this->p_rep->get(['id', 'title', 'alias'])->reduce(function ($carry, $item) {\n return array_add($carry, $item->alias, $item->title);\n }, []);\n\n $this->content_view = view(config('settings.theme') . '.admin.menus_edit_content')\n ->with(['menu' => $menu, 'type' => $type, 'option' => $option, 'menus' => $menus, 'categories' => $list, 'articles' => $articles, 'filters' => $filters, 'portfolios' => $portfolios])\n ->render();\n\n return $this->renderOutput();\n }", "title": "" }, { "docid": "47f4a3e28a6281eca9a94238260d5475", "score": "0.5361893", "text": "function copyMenuSave($option, $cid, $menu, $menutype) {\r\n\t$database = database::getInstance();\r\n\r\n\t$curr = new mosMenu($database);\r\n\t$cidref = array();\r\n\tforeach ($cid as $id) {\r\n\t\t$curr->load($id);\r\n\t\t$curr->id = null;\r\n\t\tif (!$curr->store()) {\r\n\t\t\tmosErrorAlert($curr->getError());\r\n\t\t\texit();\r\n\t\t}\r\n\t\t$cidref[] = array($id, $curr->id);\r\n\t}\r\n\tforeach ($cidref as $ref) {\r\n\t\t$curr->load($ref[1]);\r\n\t\tif ($curr->parent != 0) {\r\n\t\t\t$found = false;\r\n\t\t\tforeach ($cidref as $ref2)\r\n\t\t\t\tif ($curr->parent == $ref2[0]) {\r\n\t\t\t\t\t$curr->parent = $ref2[1];\r\n\t\t\t\t\t$found = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} // if\r\n\t\t\tif (!$found && $curr->menutype != $menu)\r\n\t\t\t\t$curr->parent = 0;\r\n\t\t} // if\r\n\t\t$curr->menutype = $menu;\r\n\t\t$curr->ordering = '9999';\r\n\t\tif (!$curr->store()) {\r\n\t\t\tmosErrorAlert($curr->getError());\r\n\t\t\texit();\r\n\t\t}\r\n\t\t$curr->updateOrder('menutype = ' . $database->Quote($curr->menutype) . ' AND parent = ' . (int) $curr->parent);\r\n\t} // foreach\r\n\t// clean any existing cache files\r\n\tmosCache::cleanCache('com_content');\r\n\r\n\t$msg = count($cid) . ' moved to ' . $menu;\r\n\tmosRedirect('index2.php?option=' . $option . '&menutype=' . $menutype, $msg);\r\n}", "title": "" }, { "docid": "7f85f8d95f21e5bc6caf6b3991ef6358", "score": "0.5358073", "text": "function moveDown($site_id, $menu_order)\n {\n $new_order = $menu_order++;\n $qryRecordBelow = \"SELECT menu_id FROM menus WHERE menu_order=\".$this->db->escape($new_order).\" AND site_id=\".$this->db->escape($site_id);\n //echo $qryRecordBelow;exit;\n $rsltRecordBelow = $this->db->query($qryRecordBelow);\n $rowRecordBelow = $rsltRecordBelow->row_array();\n $menu_id = $rowRecordBelow['menu_id'];\n \n $qryUpdateRecord = \"UPDATE menus SET menu_order=\".$this->db->escape($new_order).\" WHERE menu_order=\".$this->db->escape($menu_order).\" AND site_id=\".$this->db->escape($site_id);\n $rsltUpdateRecord = $this->db->query($qryUpdateRecord);\n \n $qryUpdateRecordBelow = \"UPDATE menus SET menu_order=\".$this->db->escape($menu_order).\" WHERE menu_id=\".$this->db->escape($menu_id).\" AND site_id=\".$this->db->escape($site_id);\n $rsltUpdateRecordBelow = $this->db->query($qryUpdateRecordBelow);\n \n return true; \n }", "title": "" }, { "docid": "29c40637617536fdff659e1081522377", "score": "0.5342863", "text": "function setDetailPageId()\n\t{\n\t\tif (!array_key_exists('detail_pid_feature_name', $this->conf))\n\t\t\treturn;\n\n\t\t$featureId = $this->dbutils->getFeatureIdByName($this->conf['detail_pid_feature_name']);\n\t\tif (!$featureId)\n\t\t\treturn;\n\n\t\t$menuId = $this->currentMenuId;\n\n\t\tfor (;;)\n\t\t{\n\t\t\t$row = $this->dbutils->selectMenu_SingleRow('`GroupId`', \"`Id`=$menuId\");\n\t\t\tif (!$row)\n\t\t\t\tbreak;\n\t\t\t$groupId = $row[0];\n\n\t\t\t$pid = intval($this->getGroupValue($groupId, $featureId));\n\t\t\tif ($pid > 0)\n\t\t\t{\n\t\t\t\t// Found a valid page id.\n\t\t\t\t$this->detailPageId = $pid;\n\t\t\t\t// Must also update linker!\n\t\t\t\t$this->plugin->linker->detailPageId = $pid;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$row = $this->dbutils->selectMenu_SingleRow('`ParentId`', \"`Id`=$menuId\");\n\t\t\tif (!$row)\n\t\t\t\tbreak;\n\t\t\t$menuId = $row[0];\n\t\t}\n\t}", "title": "" }, { "docid": "a5e2d5e53602cd42d76f18da57b00ccc", "score": "0.5341491", "text": "function rc_scm_update_custom_nav_fields( $menu_id, $menu_item_db_id, $args ) {\n\t\n\t // Check if element is properly sent\n\t if (!isset($_REQUEST['menu-item-subtitle'][$menu_item_db_id])) {\n $_REQUEST['menu-item-subtitle'][$menu_item_db_id] = '';\n \n }\n\t $subtitle_value = $_REQUEST['menu-item-subtitle'][$menu_item_db_id];\n\t update_post_meta( $menu_item_db_id, '_menu_item_subtitle', $subtitle_value );\n\n\t if (!isset($_REQUEST['edit-menu-item-megamenu'][$menu_item_db_id])) {\n $_REQUEST['edit-menu-item-megamenu'][$menu_item_db_id] = '';\n \n }\n $menu_mega_enabled_value = $_REQUEST['edit-menu-item-megamenu'][$menu_item_db_id]; \n update_post_meta( $menu_item_db_id, '_menu_item_megamenu', $menu_mega_enabled_value );\n\n if (!isset($_REQUEST['menu-item-megamenu-background'][$menu_item_db_id])) {\n $_REQUEST['menu-item-megamenu-background'][$menu_item_db_id] = '';\n \n }\n $mega_menu_background_value = $_REQUEST['menu-item-megamenu-background'][$menu_item_db_id]; \n update_post_meta( $menu_item_db_id, '_menu_item_megamenu_background', $mega_menu_background_value );\n\n\n if (!isset($_REQUEST['menu-item-megamenu-widgetarea'][$menu_item_db_id])) {\n $_REQUEST['menu-item-megamenu-widgetarea'][$menu_item_db_id] = '';\n \n }\n $mega_menu_widgetarea_value = $_REQUEST['menu-item-megamenu-widgetarea'][$menu_item_db_id]; \n update_post_meta( $menu_item_db_id, '_menu_item_megamenu_widgetarea', $mega_menu_widgetarea_value );\n\n\n if (!isset($_REQUEST['menu-item-megamenu-styles'][$menu_item_db_id])) {\n $_REQUEST['menu-item-megamenu-styles'][$menu_item_db_id] = '';\n \n }\n $mega_menu_styles_value = $_REQUEST['menu-item-megamenu-styles'][$menu_item_db_id]; \n update_post_meta( $menu_item_db_id, '_menu_item_megamenu_styles', $mega_menu_styles_value );\n\n if (!isset($_REQUEST['menu-item-megamenu-columns'][$menu_item_db_id])) {\n $_REQUEST['menu-item-megamenu-columns'][$menu_item_db_id] = '';\n \n }\n $mega_menu_columns_value = $_REQUEST['menu-item-megamenu-columns'][$menu_item_db_id]; \n update_post_meta( $menu_item_db_id, '_menu_item_megamenu_columns', $mega_menu_columns_value );\n\t \n\n\t \tif (!isset($_REQUEST['edit-menu-item-megamenu-captions'][$menu_item_db_id])) {\n $_REQUEST['edit-menu-item-megamenu-captions'][$menu_item_db_id] = '';\n \n }\n $menu_mega_captions_enabled_value = $_REQUEST['edit-menu-item-megamenu-captions'][$menu_item_db_id]; \n update_post_meta( $menu_item_db_id, '_menu_item_megamenu_captions', $menu_mega_captions_enabled_value );\n\n\t}", "title": "" }, { "docid": "c93e3d520078d3f747e90ee1754b2f36", "score": "0.53412837", "text": "function moveMenuSave($option, $cid, $menu, $menutype) {\r\n\t$database = database::getInstance();\r\n\r\n\t// add all decendants to the list\r\n\tforeach ($cid as $id)\r\n\t\taddDescendants($id, $cid);\r\n\r\n\t$row = new mosMenu($database);\r\n\t$ordering = 1000000;\r\n\t$firstroot = 0;\r\n\tforeach ($cid as $id) {\r\n\t\t$row->load($id);\r\n\r\n\t\t// is it moved together with his parent?\r\n\t\t$found = false;\r\n\t\tif ($row->parent != 0)\r\n\t\t\tforeach ($cid as $idx)\r\n\t\t\t\tif ($idx == $row->parent) {\r\n\t\t\t\t\t$found = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t} // if\r\n\t\t\t\tif (!$found) {\r\n\t\t\t$row->parent = 0;\r\n\t\t\t$row->ordering = $ordering++;\r\n\t\t\tif (!$firstroot)\r\n\t\t\t\t$firstroot = $row->id;\r\n\t\t} // if\r\n\r\n\t\t$row->menutype = $menu;\r\n\t\tif (!$row->store()) {\r\n\t\t\techo \"<script> alert('\" . $database->getErrorMsg() . \"'); window.history.go(-1); </script>\\n\";\r\n\t\t\texit();\r\n\t\t} // if\r\n\t} // foreach\r\n\r\n\tif ($firstroot) {\r\n\t\t$row->load($firstroot);\r\n\t\t$row->updateOrder('menutype = ' . $database->Quote($row->menutype) . ' AND parent = ' . (int) $row->parent);\r\n\t} // if\r\n\t// clean any existing cache files\r\n\tmosCache::cleanCache('com_content');\r\n\r\n\t$msg = count($cid) . ' ' . _MOVE_MENUS_TO . ' ' . $menu;\r\n\tmosRedirect('index2.php?option=' . $option . '&menutype=' . $menutype, $msg);\r\n}", "title": "" }, { "docid": "fca1399b07629a82af8484e3e248ee64", "score": "0.53405195", "text": "public static function addnewmenu($request)\n{\n \t\t$myVar = new SiteSettingController();\n \t\t$languages = $myVar->getLanguages();\n $order = DB::table('menus')->max('sort_order');\n $order = $order + 1;\n\n \t\t$menu_id = DB::table('menus')->insertGetId([\n \t\t\t\t\t'parent_id'\t\t \t\t\t => $request->parent_id,\n \t\t\t\t\t'type'\t\t \t\t\t => $request->type,\n \t\t\t\t\t'status'\t\t \t\t => $request->status,\n 'external_link' => $request->external_link,\n 'link' => $request->link,\n \t\t\t\t\t]);\n if($request->parent_id == 0){\n DB::table('menus')->where('id',$menu_id)\n ->update([\n 'sort_order' => $order,\n ]);\n }\n else{\n DB::table('menus')->where('id',$menu_id)\n ->update([\n 'sub_sort_order' => $order,\n ]);\n }\n if($request->type == 2){\n DB::table('menus')->where('id',$menu_id)\n ->update([\n 'page_id' => $request->page_id\n ]);\n }\n\n $myVar = new SiteSettingController();\n $languages = $myVar->getLanguages();\n foreach($languages as $languages_data){\n $menu_name = 'menuName_'.$languages_data->languages_id;\n // $checkExist = DB::table('menu_translation')->where('menu_id',)($categories_id,$languages_data);\n $menu_name = $request->$menu_name;\n DB::table('menu_translation')->insert([\n 'menu_id'\t\t \t\t\t => $menu_id,\n 'language_id'\t\t \t\t\t => $languages_data->languages_id,\n 'menu_name'\t\t \t\t => $menu_name,\n ]);\n // if(count($checkExist)>0){\n // $category_des_update = $this->Categories->updatedescription($categories_name,$languages_data,$categories_id);\n // }else{\n // $updat_des = $this->Categories->insertcategorydescription($categories_name,$categories_id, $languages_data->languages_id);\n // }\n }\n\n}", "title": "" }, { "docid": "bb638eda4f945a19568c344681c834a7", "score": "0.533688", "text": "public function edit_corporate_menu() {\n\t\tsmarty()->assign('title', \"Edit Menu\");\n\t\t$menuMod = false;\n\t\t$menuChange = false;\n\n\t\tif (input()->id == \"\") {\n\t\t\tsession()->setFlash(\"Could not find the menu item you were looking for.\", 'alert-danger');\n\t\t\t$this->redirect();\n\t\t}\n\n\t\tif (input()->menu != \"\") {\n\t\t\t$menu = $this->loadModel('Menu', input()->menu);\n\t\t} else {\n\t\t\t$menu = $this->loadModel('Menu');\n\t\t}\n\n\t\tif (input()->page_count != \"\") {\n\t\t\t$page_count = input()->page_count;\n\t\t} else {\n\t\t\t$page_count = null;\n\t\t}\n\n\t\tsmarty()->assign('page_count', $page_count);\n\n\t\t// Need to fetch the menu item\n\t\tif (input()->type == \"MenuMod\") {\n\t\t\t// fetch the menu modification\n\t\t\t$menuItem = $this->loadModel(\"MenuMod\", input()->id);\n\t\t\t$menuMod = true;\n\n\t\t} elseif (input()->type == \"MenuChange\") {\n\t\t\t// fetch the changed menu\n\t\t\t$menuItem = $this->loadModel(\"MenuChange\", input()->id);\n\t\t\t$menuChange = true;\n\t\t} else {\n\t\t\t// fetch the menu item\n\t\t\t$menuItem = $this->loadModel(\"MenuItem\", input()->id);\n\t\t}\n\n\t\tif (isset (input()->location)) {\n\t\t\t$location = $this->loadModel('Location', input()->location);\n\t\t} else {\n\t\t\t$location = $this->loadModel('Location');\n\t\t}\n\n\t\t$allLocations = $this->loadModel('Location')->fetchFacilities();\n\n\t\tsmarty()->assign('allLocations', $allLocations);\n\t\tsmarty()->assign('location', $location);\n\t\tsmarty()->assign('menuItem', $menuItem);\n\t\tsmarty()->assign('menuChange', $menuChange);\n\t\tsmarty()->assign('menuType', input()->type);\n\t\tsmarty()->assign('menuMod', $menuMod);\n\t\tsmarty()->assign('menu', $menu);\n\n\t\tif (input()->is('post')) {\n\n\t\t\t// determine if this edit is for all locations or \tonly those selected\n\t\t\tif (input()->edit_type == \"corp_menu\") {\n\t\t\t\t// this edit is for all locations\n\t\t\t\t// set the menu item variables\n\t\t\t\t$menuItem->content = $this->validateMenuContent();\n\n\t\t\t\tif ($menuItem->save()) {\n\t\t\t\t\tsession()->setFlash(\"The menu was successfully changed for all locations.\", 'alert-success');\n\t\t\t\t\t$this->redirect(array('module' => \"Dietary\", 'page' => \"info\", 'action' => \"corporate_menus\", 'menu' => $menu->public_id, 'page_count' => input()->page_count));\n\t\t\t\t} else {\n\t\t\t\t\tsession()->setFlash(\"Could not save the menu. Please try again.\", 'alert-danger');\n\t\t\t\t\t$this->redirect(input()->path);\n\t\t\t\t}\n\n\n\t\t\t} elseif (input()->edit_type == \"select_locations\") {\n\t\t\t\t// this edit is only for those locations selected\n\n\t\t\t\t// verify that location(s) were selected\n\t\t\t\t$location = array();\n\t\t\t\tforeach (input() as $key => $test) {\n\t\t\t\t\t$facility = preg_replace(\"/\\d+$/\", \"\", $key);\n\t\t\t\t\tif ($facility == \"facility\") {\n\t\t\t\t\t\t$location[] = $test;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if selected locations is false then throw and error and redirect.\n\t\t\t\tif (empty ($location)) {\n\t\t\t\t\tsession()->setFlash(\"You must select the location(s) for which you want to make the change\", 'alert-danger');\n\t\t\t\t\t$this->redirect(input()->path);\n\t\t\t\t}\n\n\t\t\t\t$flash_message = array();\n\t\t\t\tforeach ($location as $l) {\n\t\t\t\t\t$location = $this->loadModel('Location', $l);\n\t\t\t\t\t// load the menuChange model and make sure there is not an existing menuChange item\n\t\t\t\t\t$menuChange = $this->loadModel('MenuChange')->fetchExisting($menuItem->id, $location->id);\n\t\t\t\t\t$menuChange->content = $this->validateMenuContent();\n\t\t\t\t\t$menuChange->menu_item_id = $menuItem->id;\n\t\t\t\t\t$menuChange->location_id = $location->id;\n\t\t\t\t\t$menuChange->user_id = auth()->getRecord()->id;\n\n\t\t\t\t\tif ($menuChange->save()) {\n\t\t\t\t\t\t$flash_message[]['success'] = \"The menu was changed for {$location->name}\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$flash_message[]['error'] = \"Could not change the menu for {$location->name}\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tforeach ($flash_message as $message) {\n\t\t\t\t\tforeach ($message as $k => $m) {\n\t\t\t\t\t\tif ($k == \"success\") {\n\t\t\t\t\t\t\tsession()->setFlash($m, 'alert-success');\n\t\t\t\t\t\t} elseif ($k == \"error\") {\n\t\t\t\t\t\t\tsession()->setFlash($m, 'alert-danger');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$this->corpPageRedirect(input()->menu, $location->public_id);\n\n\t\t\t}\n\t\t}\n\n\t}", "title": "" }, { "docid": "c111d2643c68d632f39ed692910386b8", "score": "0.5333012", "text": "function update_data_menu($data=array(),$kd_menu){\n \t\t$this->db->where('kd_menu',$kd_menu);\n \t\t$this->db->update('menu', $data);\n \t\t$retVal = ($this->db->affected_rows()!=0) ? true : false ;\n \t\treturn $retVal;\n \t}", "title": "" }, { "docid": "fd4ae46fd10843704ce28bc6720d2315", "score": "0.5321014", "text": "public function update(Request $request, Menu $menu)\n {\n $menu->name_ar = $request->name_ar;\n $menu->name_en = $request->name_en;\n $menu->url = $request->url;\n $menu->number = $request->number;\n $menu->save();\n return redirect('/admin/menus');\n }", "title": "" }, { "docid": "f26a788f339fc4f212c45e9ae85bbe52", "score": "0.53154904", "text": "public function actionUpdate($id)\n {\n $Wxmenu = new Wxmenu();\n $model = $this->findModel($id);\n $num = 0;\n $enum = 0;\n if(Yii::$app->request->post('Wxmenu')['pid'] == 0 && isset(Yii::$app->request->post('Wxmenu')['pid'])){\n $num = $Wxmenu->find()->where(['pid' => 0])->count();\n }else{\n $enum = $Wxmenu->find()->where(['pid' => Yii::$app->request->post('Wxmenu')['pid']])->count();\n }\n if($num > 3){\n Yii::$app->session->setFlash('yijinum',1);\n return $this->render('update', [\n 'model' => $model,\n ]);\n }elseif ($enum >5){\n Yii::$app->session->setFlash('erjinum',1);\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash('menuupid',$model->id);\n return $this->redirect(['/weixin/wxmenu/index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "819a7dabbc377bb747b7907fe657dce1", "score": "0.53142786", "text": "public function update(Request $request, $id)\n {\n $menu=Menu::find($id);\n $menu->menu=$request->menu;\n $menu->slug=$request->slug;\n $menu->status=$request->status;\n $menu->save();\n Session::flash('success','Menu Updated Successfully');\n return redirect('/pages/menus');\n }", "title": "" }, { "docid": "bb96e1adf83e3b4d2428189c0dfb03b5", "score": "0.5312571", "text": "function DoUpdateData() {\n $sql_parent = $this->db->query(\"SELECT * FROM ref_menu WHERE id=?\", array($this->input->post('parent_id')));\n $parent = $sql_parent->row_array();\n return $this->db->query(\"\n UPDATE\n ref_menu \n SET \n parent_id=?,\n level=?,\n name=?, \n url=?\n WHERE \n id=?\",\n array(\n\t\t\t\t$this->input->post('parent_id'), \n ($parent['level']+1), \n $this->input->post('name'), \n $this->input->post('url'), \n $this->input->post('id')\n )\n );\n\t}", "title": "" }, { "docid": "237f9260a3fc3a83fb9210ab4cbc2200", "score": "0.53024614", "text": "function load_menu() {\r\n $this->assign(\"menu\", db::get_all(\"SELECT c.content_id, c.title AS name, c.path AS link, IF( ? LIKE CONCAT(c.path,'%') AND ( c.path != '' OR ? = '' ), 1, 0 ) AS selected \r\n FROM \" . DB_PREFIX . \"content c\r\n JOIN \" . DB_PREFIX .\"content_rel r ON c.content_id=r.content_id AND r.rel_type='parent'\r\n WHERE c.menu_id = 2 AND c.published=1\r\n ORDER BY r.position\", \r\n array($this->path, $this->path)\r\n )\r\n );\r\n\r\n $this->assign(\"menu2\", db::get_all(\"SELECT c.content_id, c.title AS name, c.path AS link, IF( ? LIKE CONCAT(c.path,'%') AND ( c.path != '' OR ? = '' ), 1, 0 ) AS selected\r\n FROM \" . DB_PREFIX . \"content c\r\n JOIN \" . DB_PREFIX .\"content_rel r ON c.content_id=r.content_id AND r.rel_type='parent'\r\n WHERE c.menu_id = 3 AND c.published=1\r\n ORDER BY r.position\", \r\n array($this->path, $this->path)\r\n )\r\n );\r\n }", "title": "" }, { "docid": "8b75a04e4c445c0437b168086704df42", "score": "0.5297696", "text": "public function sortNav(){\n $i = 0;\n $main_arrange = 1;\n $menu_id = $this->input->post('menu_id', TRUE);\n if(!empty($menu_id)){\n while($i < count($menu_id)){\n if($menu_id[$i]){\n $this->db->set('arrange', $main_arrange, FALSE);\n $this->db->set('timestamp_update', 'NOW()', FALSE);\n $this->db->where(\"page_menu_id\", $menu_id[$i]);\n $this->db->update('page_menu');\n $main_arrange++;\n }\n $i++;\n }\n }\n $menusub_id = $this->input->post('menusub_id', TRUE);\n if(!empty($menusub_id)){\n foreach(array_keys($menusub_id) as $key){\n $sub_arrange = 1;\n for($i = 0; $i < count($menusub_id[$key]); $i++){\n if($menusub_id[$key][$i]){\n $this->db->set('arrange', $sub_arrange, FALSE);\n $this->db->set('timestamp_update', 'NOW()', FALSE);\n $this->db->where(\"page_menu_id\", $menusub_id[$key][$i]);\n $this->db->where(\"drop_page_menu_id\", $key);\n $this->db->update('page_menu');\n $sub_arrange++;\n }\n }\n }\n }\n }", "title": "" }, { "docid": "0c0063ff6ab242201dd18b8342e6de58", "score": "0.52954406", "text": "public function updatemenu($id)\n {\n $menudata=Menu::find($id);\n return view('admin.updatemenu', compact(\"menudata\"));\n }", "title": "" }, { "docid": "53afd269a589bd021b3b1ae0e1aefd9e", "score": "0.5290798", "text": "function delete_menu($id){\n\t$del_item=db_get_rows('internal_page',\" id='$id' \") ;\n\tforeach($del_item as $list){\n\t\t@unlink($list['url_part1']);\n\t\t@unlink($list['url_part2']);\n\t\t@unlink($list['url_part3']);\n\t}\n\tdb_query(\"DELETE FROM internal_page WHERE id='$id' \");\n\tgo2url( SITE_PATH.'content/list.html');\n}", "title": "" }, { "docid": "1a6a6f9ae99b169b50eb4b9e2a1e62d7", "score": "0.52903223", "text": "function copyMenuSave( $option, $cid, $menu, $menutype ) {\n\tglobal $database;\n\n\t$curr = new mosMenu( $database );\n\t$cidref = array();\n\tforeach( $cid as $id ) {\n\t\t$curr->load( $id );\n\t\t$curr->id = NULL;\n\t\tif ( !$curr->store() ) {\n\t\t\tmosErrorAlert( $curr->getError() );\n\t\t\texit();\n\t\t}\n\t\t$cidref[] = array($id, $curr->id);\n\t}\n\tforeach ( $cidref as $ref ) {\n\t\t$curr->load( $ref[1] );\n\t\tif ($curr->parent!=0) {\n\t\t\t$found = false;\n\t\t\tforeach ( $cidref as $ref2 )\n\t\t\t\tif ($curr->parent == $ref2[0]) {\n\t\t\t\t\t$curr->parent = $ref2[1];\n\t\t\t\t\t$found = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} // if\n\t\t\tif (!$found && $curr->menutype!=$menu)\n\t\t\t\t$curr->parent = 0;\n\t\t} // if\n\t\t$curr->menutype = $menu;\n\t\t$curr->ordering = '9999';\n\t\tif ( !$curr->store() ) {\n\t\t\tmosErrorAlert( $curr->getError() );\n\t\t\texit();\n\t\t}\n\t\t$curr->updateOrder( 'menutype = ' . $database->Quote( $curr->menutype ) . ' AND parent = ' . (int) $curr->parent );\n\t} // foreach\n\t\n\t// clean any existing cache files\n\tmosCache::cleanCache( 'com_content' );\n\n\t$msg = 'Скопировано '.count( $cid ).' пунктов меню в меню - ' . $menu;\n\tmosRedirect( 'index2.php?option='. $option .'&menutype='. $menutype .'&mosmsg='. $msg );\n}", "title": "" }, { "docid": "0b2078a40ba7dbcbbe9b7f9ad7a94736", "score": "0.5288992", "text": "public function update(Request $request, $id)\n {\n $menu = Meun::findorfail($id);\n $menu->title = $request['title'];\n $menu->name = $request['name'];\n $menu->language = $request['lang'];\n $menu->category = $request['parent_category'];\n $menu->slug = Str::slug($menu->name);\n $menu->possition = $request['position'];\n //$menu->shw = 'N';\n\n if ($request['publish']) {\n $menu->shw = 'Y';\n }\n\n if ($request['draft']) {\n $menu->shw = 'N';\n }\n\n $menu->save();\n //return redirect('/manage/menu/'.$menu->id.'/update')->with('message', 'Record created!');\n return redirect('/manage/menu/')->with('message', 'Record created!');\n }", "title": "" }, { "docid": "5554c22a41096316ba3bce072559e433", "score": "0.52817225", "text": "function data_modifymenu(){\n add_menu_page('data', \n 'data',\n 'manage_options',\n 'data_list',\n data_list)\n ;\n\n add_submenu_page('data_list',\n 'Add New data',\n 'Add New',\n 'manage_options',\n 'data_create',\n 'data_create'\n );\n\n add_submenu_page(null,\n 'Update data',\n 'Update',\n 'manage_options',\n 'data_update',\n 'data_update'\n );\n}", "title": "" }, { "docid": "d0bffa34f449b76fb834c7a0712d24ad", "score": "0.5273955", "text": "function main_menu($menu_id) {\n\tsession_start();\n\tinclude 'db_conn.php';\n\t\n\t// use this to get the current (active) page info:\n\t\n\t$public_path = pathinfo($_SERVER['SCRIPT_NAME']);\n\t$this_file = $public_path['basename'];\n\t\n\t// DEFAULT\n\t$add_SQL = '';\n\tif (isset($_SESSION[\"user_level\"])) {\n\t\t// there is a live session - show them things like the log out button, instead of the log in button etc.\n\t\t\n\t\t// ONLY SHOW MENU ITEMS THEIR USER LEVEL ALLOWS\n\t\t$add_SQL = \" AND `min_user_level` <= \" . $_SESSION[\"user_level\"] . \"\";\n\t}\n\telse {\n\t\t// not logged in - show public pages ONLY\n\t\t$add_SQL = \" AND `privacy` = 'PUBLIC'\";\n\t}\n\t\n\tif ($menu_id == 1) {\n\t\t$count_pages_1_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = 0\" . $add_SQL . \"\";\n\t\t$get_menu_1_SQL = \"SELECT * FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = 0\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t}\n\telse if ($menu_id == 2) {\n\t\t$count_pages_1_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `footer_menu` = 1 AND `record_status` = 2 AND `parent_ID` = 0\" . $add_SQL . \"\";\n\t\t$get_menu_1_SQL = \"SELECT * FROM `pages` WHERE `footer_menu` = 1 AND `record_status` = 2 AND `parent_ID` = 0\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t}\n\telse {\n\t\techo \"<h4>Something strange happened to level 1...?!</h4>\";\n\t}\n\t\n\t// echo \"<h3>COUNT: \".$count_pages_1_sql.\"</h3>\";\n\t// echo \"<h3>SQL: \".$get_menu_1_SQL.\"</h3>\";\n\t\n\t// first, let's check to make sure we have menu items:\t\t\t\n\t$count_pages_1_query = mysqli_query($con, $count_pages_1_sql);\n\t\n\t$count_pages_1_row = mysqli_fetch_row($count_pages_1_query);\n\t// Here we have the total row count\n\t$total_pages_1 = $count_pages_1_row[0];\n\t\n\tif ($total_pages_1 > 0) {\n\t\n\t?>\n <!-- START MENU ID <?php echo $menu_id; ?> -->\n <ul class=\"nav nav-main\"><?\t\n\t\n\t$result_get_menu_1 = mysqli_query($con,$get_menu_1_SQL);\n\t// while loop\n\twhile($row_get_menu_1 = mysqli_fetch_array($result_get_menu_1)) {\n\t\t\n\t\t\t// set vars: \n\t\t\t$page_1_id = $row_get_menu_1['ID'];\n\t\t\t$page_1_name_EN = $row_get_menu_1['name_EN'];\n\t\t\t$page_1_name_CN = $row_get_menu_1['name_CN'];\n\t\t\t$page_1_parent_ID = $row_get_menu_1['parent_ID'];\n\t\t\t$page_1_dept_ID = $row_get_menu_1['dept_ID'];\n\t\t\t$page_1_filename = $row_get_menu_1['filename'];\n\t\t\t$page_1_icon = $row_get_menu_1['icon'];\n\t\t\t$page_1_privacy = $row_get_menu_1['privacy'];\n\t\t\t$page_1_og_type = $row_get_menu_1['og_type'];\n\t\t\t\n\t\t\t// count sub-items:\t\n\t\t\tif ($menu_id == 1) {\n\t\t\t\t$count_sub_pages_1_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \". $page_1_id .\"\" . $add_SQL . \"\";\n\t\t\t}\n\t\t\telse if ($menu_id == 2) {\n\t\t\t\t$count_sub_pages_1_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 2 AND `record_status` = 2 AND `parent_ID` = \". $page_1_id .\"\" . $add_SQL . \"\";\n\t\t\t}\t\t\n\t\t\t$count_sub_pages_1_query = mysqli_query($con, $count_sub_pages_1_sql);\n\t\t\t$count_sub_pages_1_row = mysqli_fetch_row($count_sub_pages_1_query);\n\t\t\t// Here we have the total row count\n\t\t\t$total_sub_pages_1 = $count_sub_pages_1_row[0];\n\t?>\n \n <li class=\"<?php if ($total_sub_pages_1 > 0) { ?>nav-parent<?php } if ($this_file == $page_1_filename) { ?> nav-active<?php } ?>\"><a href=\"<?php echo $page_1_filename; ?>\" title=\"<?php echo $page_1_name_EN; if (($page_1_name_CN!='')&&($page_1_name_CN!='中文名')) { ?> / <?php echo $page_1_name_CN; } ?>\">\n \t<?php if ($page_1_og_type == 'inbox') { \n\t\t\t\t\t\t\n\t\t// get TOTAL mail count\n\t\t$count_total_mail_SQL = \"SELECT COUNT( ID ) FROM `message_log` WHERE `type` = 'cosmosysmail' AND `to_ID` = '\" . $_SESSION['user_id'] . \"' AND `status` = '2' OR `type` = 'cosmosysmail' AND `to_ID` = '\" . $_SESSION['user_id'] . \"' AND `status` = '3'\";\n\t\t\n\t\t$count_total_mail_query = mysqli_query($con, $count_total_mail_SQL);\n\t\t$count_total_mail_row = mysqli_fetch_row($count_total_mail_query);\n\t\t// Here we have the total row count\n\t\t$count_total_mail = $count_total_mail_row[0];\n\t\t\n\t\t?>\n\t\t<span class=\"pull-right label label-primary\"><?php echo $count_total_mail; ?></span>\n <?php } ?>\n <i class=\"fa <?php echo $page_1_icon; ?>\" aria-hidden=\"true\"></i> \n\t\t<span><?php echo $page_1_name_EN; ?></span></a><?php\n ////////////////////////////////////////////////////\n\t// START LEVEL 2 CODE: \n ////////////////////////////////////////////////////\n\tif ($menu_id == 1) {\n\t\t$count_pages_2_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_1_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t\t$get_menu_2_SQL = \"SELECT * FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_1_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t}\n\telse if ($menu_id == 2) {\n\t\t$count_pages_2_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `footer_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_1_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t\t$get_menu_2_SQL = \"SELECT * FROM `pages` WHERE `footer_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_1_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t}\n\telse {\n\t\techo \"<h4>Something strange happened to level 2...?!</h4>\";\n\t}\n\t\n\t// echo \"<h3>\".$count_pages_2_sql.\"</h3>\";\n\t// echo \"<h3>\".$get_menu_2_SQL.\"</h3>\";\n\t\n\t// first, let's check to make sure we have menu items:\n\t$count_pages_2_query = mysqli_query($con, $count_pages_2_sql);\n\t\n\t$count_pages_2_row = mysqli_fetch_row($count_pages_2_query);\n\t// Here we have the total row count\n\t$total_pages_2 = $count_pages_2_row[0];\n\t\n\tif ($total_pages_2 > 0) {\n\t\n\t?>\n \n <!-- START LEVEL 2 UL -->\n <ul class=\"nav nav-children\"><?\t\n\t\n\t$result_get_menu_2 = mysqli_query($con,$get_menu_2_SQL);\n\t// while loop\n\twhile($row_get_menu_2 = mysqli_fetch_array($result_get_menu_2)) {\n\t\t\n\t\t\t// set vars: \n\t\t\t$page_2_id = $row_get_menu_2['ID'];\n\t\t\t$page_2_name_EN = $row_get_menu_2['name_EN'];\n\t\t\t$page_2_name_CN = $row_get_menu_2['name_CN'];\n\t\t\t$page_2_parent_ID = $row_get_menu_2['parent_ID'];\n\t\t\t$page_2_dept_ID = $row_get_menu_2['dept_ID'];\n\t\t\t$page_2_filename = $row_get_menu_2['filename'];\n\t\t\t$page_2_icon = $row_get_menu_2['icon'];\n\t\t\t$page_2_privacy = $row_get_menu_2['privacy'];\n\t\t\t$page_2_og_type = $row_get_menu_2['og_type'];\n\t\t\t\n\t\t\t// count sub-items:\t\n\t\t\tif ($menu_id == 1) {\n\t\t\t\t$count_sub_pages_2_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \". $page_2_id .\"\" . $add_SQL . \"\";\n\t\t\t}\n\t\t\telse if ($menu_id == 2) {\n\t\t\t\t$count_sub_pages_2_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 2 AND `record_status` = 2 AND `parent_ID` = \". $page_2_id .\"\" . $add_SQL . \"\";\n\t\t\t}\t\t\n\t\t\t$count_sub_pages_2_query = mysqli_query($con, $count_sub_pages_2_sql);\n\t\t\t$count_sub_pages_2_row = mysqli_fetch_row($count_sub_pages_2_query);\n\t\t\t// Here we have the total row count\n\t\t\t$total_sub_pages_2 = $count_sub_pages_2_row[0];\n\t\n\t?>\n \n <li class=\"<?php if ($total_sub_pages_2 > 0) { ?>nav-parent<?php } if ($this_file == $page_2_filename) { ?> nav-active<?php } ?>\"><a href=\"<?php echo $page_2_filename; ?>\" title=\"<?php echo $page_2_name_EN; if (($page_2_name_CN!='')&&($page_2_name_CN!='中文名')) { ?> / <?php echo $page_2_name_CN; } ?>\">\n\t<i class=\"fa <?php echo $page_2_icon; ?>\" aria-hidden=\"true\"></i> \n\t<span><?php echo $page_2_name_EN; if (($page_2_name_CN!='')&&($page_2_name_CN!='中文名')) { ?> / <?php echo $page_2_name_CN; } ?></span></a><?php \nif ($menu_id == 1) {\n\t\t$count_pages_3_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_2_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t\t$get_menu_3_SQL = \"SELECT * FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_2_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t}\n\telse if ($menu_id == 2) {\n\t\t$count_pages_3_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `footer_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_2_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t\t$get_menu_3_SQL = \"SELECT * FROM `pages` WHERE `footer_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \".$page_2_id.\"\" . $add_SQL . \" ORDER BY `order` ASC\";\n\t}\n\telse {\n\t\techo \"<h4>Something strange happened to level 3...?!</h4>\";\n\t}\n\t\n\t// echo \"<h3>\".$count_pages_3_sql.\"</h3>\";\n\t// echo \"<h3>\".$get_menu_3_SQL.\"</h3>\";\n\t\n\t// first, let's check to make sure we have menu items:\n\t\n\t\t\t\t\n\t$count_pages_3_query = mysqli_query($con, $count_pages_3_sql);\n\t\n\t$count_pages_3_row = mysqli_fetch_row($count_pages_3_query);\n\t// Here we have the total row count\n\t$total_pages_3 = $count_pages_3_row[0];\n\t\n\tif ($total_pages_3 > 0) {\n\t\n\t?>\n \n <!-- START LEVEL 3 UL -->\n <ul class=\"nav nav-children\"><?\t\n\t\n\t$result_get_menu_3 = mysqli_query($con,$get_menu_3_SQL);\n\t// while loop\n\twhile($row_get_menu_3 = mysqli_fetch_array($result_get_menu_3)) {\n\t\t\n\t\t\t// set vars: \n\t\t\t$page_3_id = $row_get_menu_3['ID'];\n\t\t\t$page_3_name_EN = $row_get_menu_3['name_EN'];\n\t\t\t$page_3_name_CN = $row_get_menu_3['name_CN'];\n\t\t\t$page_3_parent_ID = $row_get_menu_3['parent_ID'];\n\t\t\t$page_3_dept_ID = $row_get_menu_3['dept_ID'];\n\t\t\t$page_3_filename = $row_get_menu_3['filename'];\n\t\t\t$page_3_icon = $row_get_menu_3['icon'];\n\t\t\t$page_3_privacy = $row_get_menu_3['privacy'];\n\t\t\t$page_3_og_type = $row_get_menu_3['og_type'];\n\t\t\t\n\t\t\t// count sub-items:\t\n\t\t\tif ($menu_id == 1) {\n\t\t\t\t$count_sub_pages_3_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 1 AND `record_status` = 2 AND `parent_ID` = \". $page_3_id .\"\" . $add_SQL . \"\";\n\t\t\t}\n\t\t\telse if ($menu_id == 2) {\n\t\t\t\t$count_sub_pages_3_sql = \"SELECT COUNT(ID) FROM `pages` WHERE `main_menu` = 2 AND `record_status` = 2 AND `parent_ID` = \". $page_3_id .\"\" . $add_SQL . \"\";\n\t\t\t}\t\t\n\t\t\t$count_sub_pages_3_query = mysqli_query($con, $count_sub_pages_3_sql);\n\t\t\t$count_sub_pages_3_row = mysqli_fetch_row($count_sub_pages_3_query);\n\t\t\t// Here we have the total row count\n\t\t\t$total_sub_pages_3 = $count_sub_pages_3_row[0];\n\t?>\n \n <li class=\"<?php if ($total_sub_pages_3 > 0) { ?>nav-parent<?php }if ($this_file == $page_3_filename) { ?>nav-active<?php } ?>\"><a href=\"<?php echo $page_3_filename; ?>\" title=\"<?php echo $page_3_name_EN; if (($page_3_name_CN!='')&&($page_3_name_CN!='中文名')) { ?> / <?php echo $page_3_name_CN; } ?>\">\n\t<i class=\"fa <?php echo $page_3_icon; ?>\" aria-hidden=\"true\"></i> \n <?php echo $page_3_name_EN; ?></a>\n <!-- FINISH LEVEL 3 LIST ITEM -->\n </li>\n <?php \n\t// END WHILE MENU_3\n\t}\n\t?>\n \n <!-- close the level 3 list -->\n </ul>\n <?php } // end if ($total_pages_3 > 0) ?>\n\n <!-- FINISH LEVEL 2 LIST ITEM -->\n </li>\n <?php } // END WHILE MENU_3 ?>\n \n <!-- close the level 2 list -->\n </ul>\n <?php \n\t} // end if ($total_pages_2 > 0)\n ////////////////////////////////////////////////////\n\t// END LEVEL 2 CODE: \n //////////////////////////////////////////////////// ?>\n \n <!-- END MENU LIST ITEM 1 -->\n </li>\n <?php \n\t// END WHILE MENU_1\n\t}\n\t\n\t// NOW SHOW LOG OUT!\n\tif (!isset($_SESSION[\"user_level\"])) { ?>\n \t<li class=\"<?php if ($this_file == 'login.php') { ?>nav-active<?php } ?>\">\n \t<a href=\"login.php\" title=\"Login\">\n\t\t\t\t<i class=\"fa fa-power-off\" aria-hidden=\"true\" style=\"color:#0C0;\"></i> \n \t\t\t<span>Login / 注册</span>\n </a>\n </li>\n\t<?php } ?>\n \n <!-- close the level 1 list -->\n </ul>\n <?php \n\t} // end if ($total_pages_1 > 0)\n ?>\n \n <!-- FINISH MENU ID <?php echo $menu_id; ?> --> <?php \n}", "title": "" }, { "docid": "d74278f9b96353b95b05c5f6536aa9fc", "score": "0.52663434", "text": "function moveUp($site_id, $menu_order)\n {\n $new_order = $menu_order--;\n $qryRecordAbove = \"SELECT menu_id FROM menus WHERE menu_order=\".$this->db->escape($new_order).\" AND site_id=\".$this->db->escape($site_id);\n $rsltRecordAbove = $this->db->query($qryRecordAbove);\n $rowRecordAbove = $rsltRecordAbove->row_array();\n $menu_id = $rowRecordAbove['menu_id'];\n \n $qryUpdateRecord = \"UPDATE menus SET menu_order=\".$this->db->escape($new_order).\" WHERE menu_order=\".$this->db->escape($menu_order).\" AND site_id=\".$this->db->escape($site_id);\n $rsltUpdateRecord = $this->db->query($qryUpdateRecord);\n \n $qryUpdateRecordAbove = \"UPDATE menus SET menu_order=\".$this->db->escape($menu_order).\" WHERE menu_id=\".$this->db->escape($menu_id).\" AND site_id=\".$this->db->escape($site_id);\n $rsltUpdateRecordAbove = $this->db->query($qryUpdateRecordAbove);\n \n return true; \n }", "title": "" }, { "docid": "ebd73af6287c92fcca894f2715ebd775", "score": "0.5246456", "text": "public function update(Request $request, Menu $menu)\n {\n //\n Validator::validate($request, 'menu_update');\n\n $menu->title = $request->title;\n $menu->order = $request->order;\n\n $menu->roles()->detach();\n\n if ($request->roles !== null) {\n foreach ($request->roles as $role) {\n $menu->roles()->attach($role);\n }\n }\n\n $menu->save();\n $roles = Role::all();\n return redirect()->route('menu.show', compact('menu', 'roles'))->with('success', 'Menu successfully updated.');\n }", "title": "" }, { "docid": "439599e4f8748cd90ce105ec7553b40e", "score": "0.5243366", "text": "public function edit($id)\n {\n\n $menucontents = \\App\\Menu::all();\n $menuinfo = \\App\\Menu::find($id);\n\n \n $pageheaders = \\App\\Page::get()->where('id','4');\n \n// return view('menupages.create', ['menucontents'=> $menucontents,'menucontent'=> $menucontent, 'pageheaders'=> $pageheaders]);\nreturn view('menupages.create',compact('menucontents','menuinfo','pageheaders'));\n //return response($menuinfo->menutitle,200);\n \n }", "title": "" }, { "docid": "6c7b74a299f4efd43e7f70aa8240ed1f", "score": "0.523827", "text": "public function update(Request $request, $id)\n {\n $menu = Menu::find($id);\n $name = $request->input('name');\n $path = chuyen_chuoi_thanh_path($name);\n $order = $request->input('order');\n $parentID = $request->input('parent');\n if ($parentID != MENU_CHINH) {\n $menu->parent_id = $parentID;\n $level = Menu::where('id', '=', $parentID)->first()->level;\n $menu->level = (int)$level + 1;\n } else {\n $menu->parent_id = 0;\n $menu->level = 0;\n }\n\n $menu->name = $name;\n $menu->path = $path;\n if ($order) {\n $menu->order = $order;\n }\n $menu->save();\n return redirect()->route('menu.index')->with('success', 'Cập Nhật Menu Thành Công');\n }", "title": "" }, { "docid": "1851c7a05c417aeef09fdf6ee4812a45", "score": "0.5237494", "text": "function DeleteMenuItem ($id)\r\n{\r\n\tglobal $db;\r\n\t$query = \"DELETE FROM menus_items WHERE id ='\".$id.\"'\";\r\n\t$db->query($query);\r\n\t#optimize table\r\n\t$query = \"OPTIMIZE TABLE `menus_items`\";\r\n\t$db->query($query);\r\n\t$query = \"ALTER TABLE `menus_items` PACK_KEYS =0 CHECKSUM =0 DELAY_KEY_WRITE =0 AUTO_INCREMENT =1\";\r\n\t$db->query($query);\r\n\treturn '0';\r\n}", "title": "" }, { "docid": "3dd48d0385647c35674e5ba6dd5e6f20", "score": "0.5236504", "text": "function update(\n $frm_PageID=0, \n $frm_UserID=0, \n $frm_Insert=0, \n $frm_Modify=0, \n $frm_Delete=0){\n $SQL =\"UPDATE PagePermission SET \n PageID='$frm_PageID', \n UserID='$frm_UserID', \n Insert='$frm_Insert', \n Modify='$frm_Modify', \n Delete='$frm_Delete'\n WHERE ID =$frm_ID \";\n mysqli_query($this->link, $SQL);\n }", "title": "" }, { "docid": "63af07cd43e6c1f1be3d7deb6dd866ed", "score": "0.52360433", "text": "public function emenu($menu = \"\",$submenu = \"\",$id = '0'){\n $this->load->model('admin/m_menu');\n $this->load->library('table');\n $checkfungsi = $this->m_menu->checklinkmenu(\"menu/emenu\");\n if($checkfungsi->num_rows() > 0){\n $data_bread['breadcrumb'] = \"<li><a href='#'>Menu Admin</a></li><li><a href='\".site_url('menu/menu/'.$menu.'/'.$menu.'/'.$submenu).\"'>Menu</a></li><li><a href='#'>Edit Menu</a></li>\";\n $data_bread['active'] = \"<h3>Edit Menu</h3>\";\n\n $data_m[\"menu\"] = $this->fungsi_umum->getmenu($menu,$submenu);\n if($checkfungsi->row(0)->fungsi == \"#\"){\n\n $data['menu'] = $menu;\n $data['submenu'] = $submenu;\n $send['id'] = $id; \n $getdata = $this->m_menu->getmenuid($send);\n if($getdata->num_rows() > 0){\n $data['menu'] = $getdata->row(0)->nama_menu;\n $data['urutan'] = $getdata->row(0)->urut;\n $data['link'] = $getdata->row(0)->link;\n $data['icon'] = $getdata->row(0)->icon;\n $data['punyasub'] = $getdata->row(0)->punyasub;\n $data['tampil'] = $getdata->row(0)->tampil;\n $data['id'] = $getdata->row(0)->id_menu;\n }else{\n header('location:'.site_url('home/failaccess'));\n }\n\n $this->load->view(\"admin/header\");\n $this->load->view(\"admin/notification\");\n $this->load->view(\"admin/menu\",$data_m);\n $this->load->view(\"admin/breadcrumb\",$data_bread);\n $this->load->view(\"admin/module_menu/menu/emenu\",$data);\n $this->load->view(\"admin/footer\");\n }\n }else{\n header('location:'.site_url('home/failaccess'));\n }\n }", "title": "" }, { "docid": "e1c50dfbd51097927fe45ce8be643ab3", "score": "0.5233405", "text": "function ml_menusSetMenu($login, $m1infos){\n\t$args = func_get_args();\n\tarray_shift($args);\n\t$actions = array();\n\tforeach($args as $minfos)\n\t\t$actions[] = array($minfos[0],'menu.set',$minfos[1]);\n\tml_menusSet($login,$actions);\n}", "title": "" }, { "docid": "edd764fcd2097d54a7a98f473f21b0ff", "score": "0.52306104", "text": "public function update(MenuRequest $request)\n\t{\n try {\n \n $requests=$request->all();\n if($requests)\n {\n $menu=Menu::find($requests['id']);\n $menu->name=addslashes($requests['name']);\n $menu->description=addslashes($requests['description']);\n $menu->update();\n return redirect()->route('admin-menu-index')->with(\"successedit\",true);\n }else\n { \n return redirect()->route('admin-menu-index');\n }\n } catch (Exception $ex) {\n return redirect()->route('admin-menu-index');\n } \n\t}", "title": "" }, { "docid": "6130480063c3575ce52bccad5c5b30eb", "score": "0.52237684", "text": "public function change_sequence($mnu_id = 0, $change_to = 'up') {\n $curr_menu = 0;\n $this->db->select('mnu_menuid,mnu_sequence,mnu_parent_menu_id,mnu_type');\n $this->db->where('mnu_menuid', $mnu_id);\n $result = $this->db->get('frontweb_menumst');\n if ($result->num_rows() > 0) {\n $curr_menu = $result->row();\n }\n\n\n $other_menu = 0;\n $this->db->select('mnu_menuid,mnu_sequence,mnu_parent_menu_id,mnu_type');\n if ($change_to == 'up') {\n $this->db->where('mnu_sequence <', $curr_menu->mnu_sequence);\n $this->db->order_by('mnu_sequence', 'DESC');\n } else {\n $this->db->where('mnu_sequence >', $curr_menu->mnu_sequence);\n $this->db->order_by('mnu_sequence', 'ASC');\n }\n $this->db->where('is_deleted', 0);\n $this->db->where('mnu_parent_menu_id', $curr_menu->mnu_parent_menu_id);\n $this->db->where('mnu_type', $curr_menu->mnu_type);\n $this->db->limit(1);\n\n $result = $this->db->get('frontweb_menumst');\n if ($result->num_rows() > 0) {\n $other_menu = $result->row();\n }\n else\n return 'NA';\n\n if ($other_menu) {\n // update sequence of current menu\n $update_seq = ($other_menu->mnu_sequence);\n $update_data = array('mnu_sequence' => $update_seq);\n $this->db->where('mnu_menuid', $curr_menu->mnu_menuid);\n $this->db->update('frontweb_menumst', $update_data);\n\n // update sequence of other menu\n $update_seq = ($curr_menu->mnu_sequence);\n $update_data = array('mnu_sequence' => $update_seq);\n $this->db->where('mnu_menuid', $other_menu->mnu_menuid);\n $this->db->update('frontweb_menumst', $update_data);\n\n return 'DONE';\n }\n }", "title": "" }, { "docid": "98f6597792f5fc716736d4b07ee3296c", "score": "0.52053356", "text": "public function setMenuContent(array $menu);", "title": "" }, { "docid": "462e1a57484f2e6a84ab73b1e37cd103", "score": "0.52013", "text": "public function edit($id)\n {\n //\n $menu = Menus::find($id);\n $p_menus = Menus::where('pid',0)->get();\n dump($menu);\n dump($p_menus);\n// dump('This is edit method ! '.$id);\n\n }", "title": "" }, { "docid": "4297c4509029d726021c7fa784e0f71e", "score": "0.5195258", "text": "public function deleteMenu( $id ) {\n\n //if( $note['level'] < 3 ) {\n\n $data = $this\n ->where('parent_id', '=', $id)\n ->find_all();\n\n foreach( $data as $val ) {\n\n $data2 = $this\n ->where('parent_id', '=', $val->id)\n ->find_all();\n foreach($data2 as $v) {\n\n }\n }\n }", "title": "" }, { "docid": "7833b10fd7d73cc7619a5a849df7f15f", "score": "0.5192487", "text": "public function update(Request $request, $id)\n { \n if(Input::hasFile('banner'))\n {\n $image = $request->file('banner');\n $imageName = $image->getClientOriginalName();\n $extension = $image->getClientOriginalExtension();\n $image->move(base_path('banners'), $imageName);\n }\n $pages = \\App\\Page::find($id);\n $pages->bannertext = $request->bannertext;\n $pages->bannertext1 = $request->bannertext1;\n $pages->headertext = $request->menuheader_txt;\n $pages->banner = $request->my_banner;\n $pages->save();\n\n if($request->fld_val3 != '')\n {\n $menus = new \\App\\Menu;\n $menus->menutitle = $request->menu_title;\n $menus->menufile = 'mf';\n $menus->menuimage = 'mi';\n $menus->menutext = json_encode($request->fld_val3);\n $menus->save(); \n }\n\n $data['status'] = 'Menu Page saved Successfully';\n return redirect()->action('MenuController@create')->with( $data );\n }", "title": "" }, { "docid": "bc2519c7736722842354c60a2f868555", "score": "0.5174372", "text": "public function menu_sql_inject($menu_id){\n\t\t\t\n\t\t\t#GLOBALS\n\t\t\tglobal $hmenu_helper, $wpdb;\n\t\t\t\n\t\t\t#DATA: MAIN STYLES\n\t\t\t$wpdb->query(\n\t\t\t\t\"\n\t\t\t\t\tINSERT INTO `\". $wpdb->base_prefix .\"hmenu_main_styles` \n\t\t\t\t\t(\n\t\t\t\t\t\t`menuId`,\n\t\t\t\t\t\t`logo`,\n\t\t\t\t\t\t`logoUrl`,\n\t\t\t\t\t\t`logoLink`,\n\t\t\t\t\t\t`logoAlt`,\n\t\t\t\t\t\t`logoLinkTarget`,\n\t\t\t\t\t\t`logoHeight`,\n\t\t\t\t\t\t`mobileLogo`,\n\t\t\t\t\t\t`mobileLogoUrl`,\n\t\t\t\t\t\t`mobileLogoHeight`,\n\t\t\t\t\t\t`search`,\n\t\t\t\t\t\t`menu`,\n\t\t\t\t\t\t`social`,\n\t\t\t\t\t\t`cart`,\n\t\t\t\t\t\t`menuBarDimentions`,\n\t\t\t\t\t\t`menuBarWidth`,\n\t\t\t\t\t\t`menuBarHeight`,\n\t\t\t\t\t\t`navBarDimentions`,\n\t\t\t\t\t\t`navBarWidth`,\n\t\t\t\t\t\t`border`,\n\t\t\t\t\t\t`borderColor`,\n\t\t\t\t\t\t`borderTransparency`,\n\t\t\t\t\t\t`borderType`,\n\t\t\t\t\t\t`borderRadius`,\n\t\t\t\t\t\t`shadow`,\n\t\t\t\t\t\t`shadowRadius`,\n\t\t\t\t\t\t`shadowColor`,\n\t\t\t\t\t\t`shadowTransparency`,\n\t\t\t\t\t\t`bgMenuStartColor`,\n\t\t\t\t\t\t`bgMenuGradient`,\n\t\t\t\t\t\t`bgMenuEndColor`,\n\t\t\t\t\t\t`bgMenuGradientPath`,\n\t\t\t\t\t\t`bgMenuTransparency`,\n\t\t\t\t\t\t`bgHoverStartColor`,\n\t\t\t\t\t\t`bgHoverType`,\n\t\t\t\t\t\t`bgHoverGradient`,\n\t\t\t\t\t\t`bgHoverEndColor`,\n\t\t\t\t\t\t`bgHoverGradientPath`,\n\t\t\t\t\t\t`bgHoverTransparency`,\n\t\t\t\t\t\t`paddingLeft`,\n\t\t\t\t\t\t`paddingRight`,\n\t\t\t\t\t\t`orientation`,\n\t\t\t\t\t\t`verticalWidth`,\n\t\t\t\t\t\t`animation`,\n\t\t\t\t\t\t`animationDuration`,\n\t\t\t\t\t\t`animationTrigger`,\n\t\t\t\t\t\t`animationTimeout`,\n\t\t\t\t\t\t`sticky`,\n\t\t\t\t\t\t`stickyLogoActive`,\n\t\t\t\t\t\t`stickyUrl`,\n\t\t\t\t\t\t`stickyActivate`,\n\t\t\t\t\t\t`stickyHeight`,\t\t\t\t\t\t\n\t\t\t\t\t\t`stickyFontColor`,\n\t\t\t\t\t\t`stickyFontHoverColor`,\n\t\t\t\t\t\t`stickyFontSize`,\n\t\t\t\t\t\t`stickyFontSizing`,\n\t\t\t\t\t\t`stickyFontWeight`,\n\t\t\t\t\t\t`stickyFontHoverDecoration`,\t\t\t\t\t\t\n\t\t\t\t\t\t`bgStickyStart`,\n\t\t\t\t\t\t`bgStickyEnd`,\n\t\t\t\t\t\t`stickyTransparency`,\n\t\t\t\t\t\t`devider`,\n\t\t\t\t\t\t`deviderTransparency`,\n\t\t\t\t\t\t`deviderColor`,\n\t\t\t\t\t\t`deviderSizing`,\n\t\t\t\t\t\t`groupDevider`,\n\t\t\t\t\t\t`groupTransparency`,\n\t\t\t\t\t\t`groupColor`,\n\t\t\t\t\t\t`groupSizing`,\t\n\t\t\t\t\t\t`responsiveLabel`,\n\t\t\t\t\t\t`icons`,\n\t\t\t\t\t\t`iconsColor`,\n\t\t\t\t\t\t`arrows`,\n\t\t\t\t\t\t`arrowTransparency`,\n\t\t\t\t\t\t`arrowColor`,\n\t\t\t\t\t\t`fontFamily`,\n\t\t\t\t\t\t`fontColor`,\n\t\t\t\t\t\t`fontHoverColor`,\n\t\t\t\t\t\t`fontSize`,\n\t\t\t\t\t\t`fontSizing`,\n\t\t\t\t\t\t`fontWeight`,\n\t\t\t\t\t\t`fontDecoration`,\n\t\t\t\t\t\t`fontHoverDecoration`,\n\t\t\t\t\t\t`zindex`,\n\t\t\t\t\t\t`preset`,\n\t\t\t\t\t\t`presetSlug`,\n\t\t\t\t\t\t`iconProductSize`,\n\t\t\t\t\t\t`iconProductColor`,\n\t\t\t\t\t\t`iconProductHoverColor`,\n\t\t\t\t\t\t`siteResponsive`,\n\t\t\t\t\t\t`siteResponsiveOne`,\n\t\t\t\t\t\t`siteResponsiveTwo`,\n\t\t\t\t\t\t`siteResponsiveThree`,\n\t\t\t\t\t\t`logoPaddingLeft`,\n\t\t\t\t\t\t`mobileLogoPaddingLeft`,\n\t\t\t\t\t\t`stickyLogoPaddingLeft`,\n\t\t\t\t\t\t`bgMainImage`,\n\t\t\t\t\t\t`bgMainImageUrl`,\n\t\t\t\t\t\t`bgMainImagePosition`,\n\t\t\t\t\t\t`bgMainImageRepeat`,\n\t\t\t\t\t\t`customCss`,\n\t\t\t\t\t\t`logoPaddingRight`,\n\t\t\t\t\t\t`bgStickyHoverColor`,\n\t\t\t\t\t\t`eyebrow`,\n\t\t\t\t\t\t`eyeExcerpt`,\n\t\t\t\t\t\t`eyeLoginUrl`,\n\t\t\t\t\t\t`eyeBackground`,\n\t\t\t\t\t\t`eyeColor`,\n\t\t\t\t\t\t`eyeColorHover`,\n\t\t\t\t\t\t`eyePaddingLeft`,\n\t\t\t\t\t\t`eyePaddingRight`\n\t\t\t\t\t) VALUES (\n\t\t\t\t\t\t'\".$menu_id.\"',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'_self',\n\t\t\t\t\t\t'80',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'80',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'full',\n\t\t\t\t\t\t'1200',\n\t\t\t\t\t\t'80',\n\t\t\t\t\t\t'fixed',\n\t\t\t\t\t\t'1100',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#FFF',\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'border-bottom',\n\t\t\t\t\t\t'5,5,5,5',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'10,40',\n\t\t\t\t\t\t'#000000',\t\t\t\t\t\t\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'vertical',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'background',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'vertical',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'10',\n\t\t\t\t\t\t'10',\n\t\t\t\t\t\t'horizontal',\n\t\t\t\t\t\t'200',\n\t\t\t\t\t\t'fade',\n\t\t\t\t\t\t'1000',\n\t\t\t\t\t\t'click',\n\t\t\t\t\t\t'300',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'80',\n\t\t\t\t\t\t'60',\t\t\t\t\t\t\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'12',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'normal',\n\t\t\t\t\t\t'underline',\t\t\t\t\t\t\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'1',\t\t\t\t\t\t\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'small',\t\t\t\t\t\t\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'small',\n\t\t\t\t\t\t'Menu',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'#000',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'12',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'normal',\n\t\t\t\t\t\t'none',\n\t\t\t\t\t\t'underline',\n\t\t\t\t\t\t'9999',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'hero_red',\n\t\t\t\t\t\t'medium',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#DDDDDD',\n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'768',\n\t\t\t\t\t\t'992',\n\t\t\t\t\t\t'1200',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'10',\n\t\t\t\t\t\t'10',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'left',\n\t\t\t\t\t\t'repeat',\n\t\t\t\t\t\t'',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'This is an eyebrow menu.',\n\t\t\t\t\t\t'#',\n\t\t\t\t\t\t'#2B2B2B',\n\t\t\t\t\t\t'#EEEEEE',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'10',\n\t\t\t\t\t\t'10'\n\t\t\t\t\t)\n\t\t\t\t\"\n\t\t\t);\t\t\t\t\n\t\t\t\n\t\t\t#DATA: DROPDOWN STYLES\n\t\t\t$wpdb->query(\n\t\t\t\t\"\n\t\t\t\t\tINSERT INTO `\". $wpdb->base_prefix .\"hmenu_dropdown_styles` \n\t\t\t\t\t(\n\t\t\t\t\t\t`menuId`,\n\t\t\t\t\t\t`widthType`,\n\t\t\t\t\t\t`width`,\n\t\t\t\t\t\t`padding`,\n\t\t\t\t\t\t`border`,\n\t\t\t\t\t\t`borderColor` ,\n\t\t\t\t\t\t`borderTransparency`, \n\t\t\t\t\t\t`borderType`, \n\t\t\t\t\t\t`borderRadius`, \n\t\t\t\t\t\t`shadow`,\n\t\t\t\t\t\t`shadowRadius`,\n\t\t\t\t\t\t`shadowColor`,\n\t\t\t\t\t\t`shadowTransparency`,\n\t\t\t\t\t\t`bgDropStartColor`,\n\t\t\t\t\t\t`bgDropGradient` ,\n\t\t\t\t\t\t`bgDropEndColor`,\n\t\t\t\t\t\t`bgDropGradientPath`,\n\t\t\t\t\t\t`bgDropTransparency`,\n\t\t\t\t\t\t`bgHoverStartColor`,\n\t\t\t\t\t\t`bgHoverGradient`,\n\t\t\t\t\t\t`bgHoverEndColor`,\n\t\t\t\t\t\t`bgHoverGradientPath`,\n\t\t\t\t\t\t`bgHoverTransparency`,\t \n\t\t\t\t\t\t`arrows`,\n\t\t\t\t\t\t`arrowTransparency`,\n\t\t\t\t\t\t`arrowColor`,\t\t \n\t\t\t\t\t\t`devider`,\n\t\t\t\t\t\t`deviderTransparency`,\n\t\t\t\t\t\t`deviderColor`,\t\t \n\t\t\t\t\t\t`fontFamily`,\n\t\t\t\t\t\t`fontColor`,\n\t\t\t\t\t\t`fontHoverColor`,\n\t\t\t\t\t\t`fontSize`,\n\t\t\t\t\t\t`fontSizing`,\n\t\t\t\t\t\t`fontWeight`,\n\t\t\t\t\t\t`fontDecoration`,\n\t\t\t\t\t\t`fontHoverDecoration`\t\n\t\t\t\t\t) VALUES (\n\t\t\t\t\t\t'\".$menu_id.\"', \n\t\t\t\t\t\t'custom', \n\t\t\t\t\t\t'200', \n\t\t\t\t\t\t'10,5,10,5', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'#FFF', \n\t\t\t\t\t\t'1',\n\t\t\t\t\t\t'border-bottom', \n\t\t\t\t\t\t'5,5,5,5', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'10,40', \n\t\t\t\t\t\t'#000000',\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'#F0F0F0', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'#F0F0F0', \n\t\t\t\t\t\t'vertical', \n\t\t\t\t\t\t'1', \n\t\t\t\t\t\t'#888888', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'#888888', \n\t\t\t\t\t\t'vertical', \n\t\t\t\t\t\t'1', \n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'#FFF',\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'12',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'normal',\n\t\t\t\t\t\t'underline',\n\t\t\t\t\t\t'none'\n\t\t\t\t\t)\n\t\t\t\t\"\n\t\t\t);\n\t\t\t\n\t\t\t#DATA: MEGA STYLES\n\t\t\t$wpdb->query(\n\t\t\t\t\"\n\t\t\t\t\tINSERT INTO `\". $wpdb->base_prefix .\"hmenu_mega_styles` \n\t\t\t\t\t(\n\t\t\t\t\t\t`menuId`,\n\t\t\t\t\t\t`widthType`,\n\t\t\t\t\t\t`width`,\n\t\t\t\t\t\t`padding`,\n\t\t\t\t\t\t`border`,\n\t\t\t\t\t\t`borderColor` ,\n\t\t\t\t\t\t`borderTransparency`,\n\t\t\t\t\t\t`borderType`, \n\t\t\t\t\t\t`borderRadius`, \n\t\t\t\t\t\t`shadow`,\n\t\t\t\t\t\t`shadowRadius`,\n\t\t\t\t\t\t`shadowColor`,\n\t\t\t\t\t\t`shadowTransparency`,\n\t\t\t\t\t\t`bgDropStartColor`,\n\t\t\t\t\t\t`bgDropGradient` ,\n\t\t\t\t\t\t`bgDropEndColor`,\n\t\t\t\t\t\t`bgDropGradientPath`,\n\t\t\t\t\t\t`bgDropTransparency`,\n\t\t\t\t\t\t`bgHoverStartColor`,\n\t\t\t\t\t\t`bgHoverGradient`,\n\t\t\t\t\t\t`bgHoverEndColor`,\n\t\t\t\t\t\t`bgHoverGradientPath`,\n\t\t\t\t\t\t`bgHoverTransparency`,\t \n\t\t\t\t\t\t`arrows`,\n\t\t\t\t\t\t`arrowTransparency`,\n\t\t\t\t\t\t`arrowColor`,\t\t \n\t\t\t\t\t\t`devider`,\n\t\t\t\t\t\t`deviderTransparency`,\n\t\t\t\t\t\t`deviderColor`,\t\n\t\t\t\t\t\t`fontHoverColor`,\n\t\t\t\t\t\t`fontHoverDecoration`,\t\t\t\t\t\t\n\t\t\t\t\t\t`wooPriceColor`,\n\t\t\t\t\t\t`wooPriceFamily`,\n\t\t\t\t\t\t`wooPriceWeight`,\t\n\t\t\t\t\t\t`wooPriceSize`,\n\t\t\t\t\t\t`wooPriceSizing`,\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t`wooPriceOldColor`,\t\n\t\t\t\t\t\t`wooPriceOldFamily`,\n\t\t\t\t\t\t`wooPriceOldWeight`,\t\n\t\t\t\t\t\t`wooPriceOldSize`,\n\t\t\t\t\t\t`wooPriceOldSizing`,\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t`wooPriceSaleColor`,\n\t\t\t\t\t\t`wooPriceSaleFamily`,\n\t\t\t\t\t\t`wooPriceSaleWeight`,\t\t\t\t\n\t\t\t\t\t\t`wooPriceSaleSize`,\n\t\t\t\t\t\t`wooPriceSaleSizing`,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t`wooBtnText`,\n\t\t\t\t\t\t`wooBtnFontFamily`,\n\t\t\t\t\t\t`wooBtnFontColor`,\n\t\t\t\t\t\t`wooBtnFontSize`,\n\t\t\t\t\t\t`wooBtnFontSizing`,\n\t\t\t\t\t\t`wooBtnFontWeight`,\n\t\t\t\t\t\t`wooBtnFontDecoration`\t\t\t\t\t\t \t\n\t\t\t\t\t) VALUES (\n\t\t\t\t\t\t'\".$menu_id.\"', \n\t\t\t\t\t\t'custom', \n\t\t\t\t\t\t'1100', \n\t\t\t\t\t\t'15,5,15,5', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'#FFFFFF', \n\t\t\t\t\t\t'1', \n\t\t\t\t\t\t'border-bottom',\n\t\t\t\t\t\t'5,5,5,5', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'10,40', \n\t\t\t\t\t\t'#000000',\n\t\t\t\t\t\t'0.5', \n\t\t\t\t\t\t'#F0F0F0', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'#F0F0F0', \n\t\t\t\t\t\t'vertical', \n\t\t\t\t\t\t'1', \n\t\t\t\t\t\t'#888888', \n\t\t\t\t\t\t'0', \n\t\t\t\t\t\t'#888888', \n\t\t\t\t\t\t'vertical', \n\t\t\t\t\t\t'1', \n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'0.5',\n\t\t\t\t\t\t'#888888',\t\t\t\t\t\t\n\t\t\t\t\t\t'#FFFFFF',\t\t\t\t\t\t\n\t\t\t\t\t\t'underline',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'normal', \n\t\t\t\t\t\t'22',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'#DC4551',\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'normal', \n\t\t\t\t\t\t'12',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'#FFF',\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'normal', \n\t\t\t\t\t\t'22',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'View Now',\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'#FFF',\n\t\t\t\t\t\t'22',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'normal', \n\t\t\t\t\t\t'underline'\n\t\t\t\t\t)\n\t\t\t\t\"\n\t\t\t);\t\n\t\t\t\n\t\t\t#DATA: MOBILE STYLES\n\t\t\t$wpdb->query(\n\t\t\t\t\"\n\t\t\t\t\tINSERT INTO `\". $wpdb->base_prefix .\"hmenu_mobile_styles` \n\t\t\t\t\t(\n\t\t\t\t\t\t`menuId`,\n\t\t\t\t\t\t`bgBarStartColor`,\n\t\t\t\t\t\t`bgBarGradient`,\n\t\t\t\t\t\t`bgBarEndColor`,\n\t\t\t\t\t\t`bgBarGradientPath`,\n\t\t\t\t\t\t`bgBarTransparency`,\n\t\t\t\t\t\t`fontBarFamily`,\n\t\t\t\t\t\t`fontBarColor`,\n\t\t\t\t\t\t`fontBarHoverColor`,\n\t\t\t\t\t\t`fontBarSize`,\n\t\t\t\t\t\t`fontBarSizing`,\n\t\t\t\t\t\t`fontBarWeight`,\n\t\t\t\t\t\t`bgMenuStartColor`,\n\t\t\t\t\t\t`bgMenuGradient`,\n\t\t\t\t\t\t`bgMenuEndColor`,\n\t\t\t\t\t\t`bgMenuGradientPath`,\n\t\t\t\t\t\t`bgMenuTransparency`,\n\t\t\t\t\t\t`bgHoverStartColor`,\n\t\t\t\t\t\t`bgHoverGradient`,\n\t\t\t\t\t\t`bgHoverEndColor`,\n\t\t\t\t\t\t`bgHoverGradientPath`,\n\t\t\t\t\t\t`bgHoverTransparency`,\n\t\t\t\t\t\t`fontMobileFamily`,\n\t\t\t\t\t\t`fontMobileColor`,\n\t\t\t\t\t\t`fontMobileHoverColor`,\n\t\t\t\t\t\t`fontMobileSize`,\n\t\t\t\t\t\t`fontMobileSizing`,\n\t\t\t\t\t\t`fontMobileWeight`,\n\t\t\t\t\t\t`fontTabletFamily`,\n\t\t\t\t\t\t`fontTabletColor`,\n\t\t\t\t\t\t`fontTabletHoverColor`,\n\t\t\t\t\t\t`fontTabletSize`,\n\t\t\t\t\t\t`fontTabletSizing`,\n\t\t\t\t\t\t`fontTabletWeight`,\n\t\t\t\t\t\t`paddingLeft`,\n\t\t\t\t\t\t`paddingRight`\n\t\t\t\t\t) VALUES (\n\t\t\t\t\t\t'\".$menu_id.\"', \t\t\t\t\t\t\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'vertical',\n\t\t\t\t\t\t'1',\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'12',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'normal',\t\t\t\t\t\t\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'vertical',\n\t\t\t\t\t\t'1',\t\t\t\t\t\t\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#F0F0F0',\n\t\t\t\t\t\t'vertical',\n\t\t\t\t\t\t'1',\t\t\t\t\t\t\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'12',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'normal',\t\t\t\t\t\t\n\t\t\t\t\t\t'Open Sans',\n\t\t\t\t\t\t'#888888',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'12',\n\t\t\t\t\t\t'px',\n\t\t\t\t\t\t'normal',\t\t\t\t\t\t\n\t\t\t\t\t\t'10',\n\t\t\t\t\t\t'10'\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\n\t\t\t#DATA: SEARCH STYLES\n\t\t\t$wpdb->query(\n\t\t\t\t\"\n\t\t\t\t\tINSERT INTO `\". $wpdb->base_prefix .\"hmenu_search` \n\t\t\t\t\t(\n\t\t\t\t\t\t`menuId`,\n\t\t\t\t\t\t`type`,\n\t\t\t\t\t\t`icon`,\n\t\t\t\t\t\t`label`,\n\t\t\t\t\t\t`iconColor`,\n\t\t\t\t\t\t`iconHoverColor`,\n\t\t\t\t\t\t`iconSize`,\n\t\t\t\t\t\t`animation`, \n\t\t\t\t\t\t`placement`, \n\t\t\t\t\t\t`padding`,\n\t\t\t\t\t\t`width`,\n\t\t\t\t\t\t`height`,\n\t\t\t\t\t\t`fontFamily`,\n\t\t\t\t\t\t`fontColor` ,\n\t\t\t\t\t\t`fontSize`,\n\t\t\t\t\t\t`fontSizing`,\n\t\t\t\t\t\t`fontWeight`,\n\t\t\t\t\t\t`border`,\n\t\t\t\t\t\t`borderColor`,\n\t\t\t\t\t\t`borderTransparency`,\n\t\t\t\t\t\t`borderRadius`,\n\t\t\t\t\t\t`backgroundColor`,\n\t\t\t\t\t\t`placeholder`\n\t\t\t\t\t) VALUES (\n\t\t\t\t\t\t'\".$menu_id.\"', \n\t\t\t\t\t\t'slide', \n\t\t\t\t\t\t'none', \n\t\t\t\t\t\t'search', \n\t\t\t\t\t\t'#CCCCCC', \n\t\t\t\t\t\t'#333333',\n\t\t\t\t\t\t'medium',\n\t\t\t\t\t\t'slide', \n\t\t\t\t\t\t'place', \n\t\t\t\t\t\t'5,5,5,5', \n\t\t\t\t\t\t'120', \n\t\t\t\t\t\t'40', \n\t\t\t\t\t\t'Open Sans', \n\t\t\t\t\t\t'#888888', \n\t\t\t\t\t\t'30', \n\t\t\t\t\t\t'px', \n\t\t\t\t\t\t'normal',\t\t\t\t\t\t\n\t\t\t\t\t\t'0',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'0.5', \n\t\t\t\t\t\t'2,2,2,2',\n\t\t\t\t\t\t'#FFFFFF',\n\t\t\t\t\t\t'Search'\n\t\t\t\t\t)\n\t\t\t\t\"\n\t\t\t);\t\n\t\t\t\n\t\t\t#ID OF LASTEST MEGA STYLE ENTRY\n\t\t\t$mega_style_id = $wpdb->insert_id;\n\t\t\t\n\t\t\t#DATA: MEGA FONT STYLES\n\t\t\t$font_styling_mega = array( \n\t\t\t\t\"heading\" => array(\n\t\t\t\t\t\"type\" => \"heading\", \"font_family\" => \"Open Sans\", \"font_color\" => \"#222222\", \"font_size\" => \"20\", \"font_sizing\" => \"px\", \"font_weight\" => \"normal\" \n\t\t\t\t),\n\t\t\t\t\"body\" => array(\n\t\t\t\t\t\"type\" => \"body\", \"font_family\" => \"Open Sans\", \"font_color\" => \"#888888\", \"font_size\" => \"12\", \"font_sizing\" => \"px\", \"font_weight\" => \"normal\" \n\t\t\t\t),\n\t\t\t\t\"list\" => array(\n\t\t\t\t\t\"type\" => \"list\", \"font_family\" => \"Open Sans\", \"font_color\" => \"#222222\", \"font_size\" => \"14\", \"font_sizing\" => \"px\", \"font_weight\" => \"normal\" \n\t\t\t\t),\n\t\t\t\t\"description\" => array(\n\t\t\t\t\t\"type\" => \"description\", \"font_family\" => \"Open Sans\", \"font_color\" => \"#888888\", \"font_size\" => \"12\", \"font_sizing\" => \"px\", \"font_weight\" => \"normal\" \n\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\tforeach($font_styling_mega as $font){\t\n\t\t\t\t//preload data\t\t\t\t\t\t\n\t\t\t\t$wpdb->query(\n\t\t\t\t\t\"\n\t\t\t\t\t\tINSERT INTO `\". $wpdb->base_prefix .\"hmenu_mega_font_styles` \n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t`megaStyleId`,\n\t\t\t\t\t\t\t`type`,\n\t\t\t\t\t\t\t`fontFamily`,\n\t\t\t\t\t\t\t`fontColor`,\n\t\t\t\t\t\t\t`fontSize`,\n\t\t\t\t\t\t\t`fontSizing`,\n\t\t\t\t\t\t\t`fontWeight`\n\t\t\t\t\t\t) VALUES (\n\t\t\t\t\t\t\t'\".$mega_style_id.\"', \n\t\t\t\t\t\t\t'\".$font['type'].\"',\n\t\t\t\t\t\t\t'\".$font['font_family'].\"',\n\t\t\t\t\t\t\t'\".$font['font_color'].\"',\n\t\t\t\t\t\t\t'\".$font['font_size'].\"',\n\t\t\t\t\t\t\t'\".$font['font_sizing'].\"', \n\t\t\t\t\t\t\t'\".$font['font_weight'].\"'\n\t\t\t\t\t\t)\n\t\t\t\t\t\"\n\t\t\t\t);\t\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9db8994c47b634c3cad2a942030a6369", "score": "0.5173899", "text": "protected function updateMenu()\n {\n Event::listen(BuildingMenu::class, function(BuildingMenu $event){\n $event->menu->remove('perjadin');\n $event->menu->addBefore('laporan', [\n 'text' => 'Perjalanan Dinas',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-subway',\n 'label' => '10',\n 'label_color' => 'success',\n 'submenu' => [\n [\n 'text' => 'Surat Perintah Tugas',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-tv',\n 'label' => '10',\n 'label_color' => 'info',\n ],\n [\n 'text' => 'SPPD',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-suitcase-rolling',\n 'label' => '10',\n 'label_color' => 'warning',\n ],\n [\n 'text' => 'Kwitansi',\n 'url' => '#',\n 'icon' => 'fa fa-fw fa-receipt',\n 'label' => '10',\n 'label_color' => 'danger',\n ],\n ]\n ]);\n });\n }", "title": "" }, { "docid": "5a3f0c3b8130edfa1d90172f3f033305", "score": "0.5170454", "text": "public function update(Request $request, $id)\n {\n $menu= Menu_banner::where('id',$id)->first();\n $menu->icon=$request->icon;\n $menu->name=$request->name;\n $menu->save(); \n return redirect('admin/menu')->with(['active'=>'menu','status'=>'Bạn đã sửa menu thành công.','class'=>'success']); \n }", "title": "" }, { "docid": "b1f2ecf9bf1cef8e78676a544d2cbbc8", "score": "0.5169729", "text": "public function changeMenu() {\n require_once $this->path('inc/functions/change-menu.php');\n }", "title": "" }, { "docid": "b232b93c78d50ea360acce61860292b1", "score": "0.51672244", "text": "function home_page_menu() {\n add_menu_page( 'Site Options', 'Site Options', 'edit_posts', 'home-menu', null, '', 32 );\n}", "title": "" }, { "docid": "664b1ab4a0c2c948e9774f1fdc201580", "score": "0.51657975", "text": "function ecovila_remove_menu_pages()\n{\n remove_menu_page('edit.php'); //Posts\n remove_menu_page('edit-comments.php'); //Comments \n}", "title": "" }, { "docid": "9c6ba61532363aadf67d465899203768", "score": "0.5162145", "text": "function update_user_access_menu($id, $params)\n {\n $this->db->where('id', $id);\n return $this->db->update('user_access_menu', $params);\n }", "title": "" }, { "docid": "82f91e79cf5f1f09004d11d6c7469117", "score": "0.51571345", "text": "function orderMenu($uid, $inc, $option) {\r\n\t$database = database::getInstance();\r\n\r\n\t$row = new mosMenu($database);\r\n\t$row->load($uid);\r\n\t$row->move($inc, \"menutype = \" . $database->Quote($row->menutype) . \" AND parent = \" . (int) $row->parent);\r\n\r\n\t// clean any existing cache files\r\n\tmosCache::cleanCache('com_content');\r\n\r\n\tmosRedirect('index2.php?option=' . $option . '&menutype=' . $row->menutype);\r\n}", "title": "" }, { "docid": "8a62ecb6d9c505a4df55dcb41d778908", "score": "0.5154404", "text": "public function update(Request $request, $menu)\n {\n $input = $request->all();\n $input['id'] = $menu;\n $data = $this->menuService->updateMenu($input);\n\n return response()->json($data['menu'] ?? []);\n }", "title": "" }, { "docid": "eafcd59f595928e4a9ec072ccd7cfbf6", "score": "0.51543707", "text": "public function update($id)\n\t{\n\t\t$this->menuValidation->validate(Input::all());\n\n $this->menuInterface->update(Input::all(), $id);\n\n\t\tCache::flush();\n\n return Redirect::to('/webadmin/menu')->withSuccess('Menu Item was updated!');\n\t}", "title": "" }, { "docid": "a987e067a13dc8389d2de819fe80ced4", "score": "0.51443154", "text": "private function updateContentItem($site_id, $page_id, $id, array $params)\n {\n $sql = \"UPDATE \n `user_site_page_content_item_heading` \n\t\t\t\tSET \n\t\t\t\t `heading_id` = :heading_id \n\t\t\t\tWHERE \n\t\t\t\t `site_id` = :site_id AND \n\t\t\t\t `page_id` = :page_id AND \n\t\t\t\t `content_id` = :content_id \n\t\t\t\tLIMIT \n\t\t\t\t 1\";\n $stmt = $this->_db->prepare($sql);\n $stmt->bindValue(':site_id', $site_id, PDO::PARAM_INT);\n $stmt->bindValue(':page_id', $page_id, PDO::PARAM_INT);\n $stmt->bindValue(':content_id', $id, PDO::PARAM_INT);\n $stmt->bindValue(':heading_id', $params['heading_type'], PDO::PARAM_STR);\n $result = $stmt->execute();\n\n return $result;\n }", "title": "" }, { "docid": "160cd8fbc162ca61f81ad03a925a1be6", "score": "0.5136108", "text": "public function update(Request $request, $id)\n {\n $menu_item = MenuItem::find($id);\n\n if(isset($request->name) && $request->name != ''){\n $menu_item->name = $request->name;\n }\n if(isset($request->description) && $request->description != ''){\n $menu_item->description = $request->description;\n }\n if(isset($request->menu_id) && $request->menu_id != ''){\n $menu_item->menu_id = $request->menu_id;\n }\n if(isset($request->price) && $request->price != ''){\n $menu_item->price = $request->price;\n }\n if(isset($request->sort_order) && $request->sort_order != ''){\n $menu_item->sort_order = $request->sort_order;\n }\n if(isset($request->status) && $request->status != ''){\n $menu_item->status = $request->status;\n }\n\n if($menu_item->save()){\n\n if(isset($request->category_id) && $request->category_id != ''){\n $category_id = $request->category_id;\n\n MenuItemCategory::where('menu_item_id', '=', $id)->delete();\n\n foreach($category_id as $cid){\n $menu_item_category = new MenuItemCategory;\n \n $menu_item_category->category_id = $cid;\n $menu_item_category->menu_item_id = $menu_item->id;\n \n $menu_item_category->save(); \n }\n }\n\n $response = [\n 'status' => 'success',\n 'message'=> 'Menu Item is successfully updated'\n ]; \n }else{\n $response = [\n 'status' => 'error',\n 'message'=> 'Menu Item is not update'\n ]; \n }\n\n return response()->json($response);\n }", "title": "" }, { "docid": "42e6f222b044e9ab288358c80872d416", "score": "0.5131282", "text": "public function postEdit(MenuFormRequest $request, $id)\n\t{\n\t\t\\CMS::menus()->update($id, $request->all());\n\t\treturn redirect()->back()->with('message', 'Menu successfully updated');\n\t}", "title": "" }, { "docid": "3e8d01d038adae8fc2010bba1e680ae1", "score": "0.5125711", "text": "function foodbakery_mega_update_custom_nav_fields($menu_id, $menu_item_db_id, $args) {\r\n\t\t\t// Check if element is properly sent\r\n\t\t\t$megamenu_value = 'off';\r\n\t\t\t$view_value = 'simple';\r\n\r\n\t\t\tif ( isset($_REQUEST['menu-item-megamenu'][$menu_item_db_id]) ) {\r\n\t\t\t\t$megamenu_value = $_REQUEST['menu-item-megamenu'][$menu_item_db_id];\r\n\t\t\t} else {\r\n\t\t\t\t$megamenu_value = 'off';\r\n\t\t\t}\r\n\r\n\t\t\tif ( isset($_REQUEST['menu-item-view'][$menu_item_db_id]) ) {\r\n\t\t\t\t$view_value = $_REQUEST['menu-item-view'][$menu_item_db_id];\r\n\t\t\t} else {\r\n\t\t\t\t$view_value = 'simple';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( isset($_REQUEST['menu-item-categories'][$menu_item_db_id]) ) {\r\n\t\t\t\t$categories_value = $_REQUEST['menu-item-categories'][$menu_item_db_id];\r\n\t\t\t} else {\r\n\t\t\t\t$categories_value = '';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( isset($_REQUEST['menu-item-cat-title'][$menu_item_db_id]) ) {\r\n\t\t\t\t$cat_title_value = $_REQUEST['menu-item-cat-title'][$menu_item_db_id];\r\n\t\t\t} else {\r\n\t\t\t\t$cat_title_value = '';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif ( isset($_REQUEST['menu-item-view-all'][$menu_item_db_id]) ) {\r\n\t\t\t\t$view_all_link_value = $_REQUEST['menu-item-view-all'][$menu_item_db_id];\r\n\t\t\t} else {\r\n\t\t\t\t$view_all_link_value = '';\r\n\t\t\t}\r\n\r\n\t\t\tupdate_post_meta($menu_item_db_id, '_menu_item_megamenu', sanitize_text_field($megamenu_value));\r\n\t\t\tupdate_post_meta($menu_item_db_id, '_menu_item_view', sanitize_text_field($view_value));\r\n\t\t\tupdate_post_meta($menu_item_db_id, '_menu_item_categories', $categories_value);\r\n\t\t\tupdate_post_meta($menu_item_db_id, '_menu_item_cat_title', $cat_title_value);\r\n\t\t\tupdate_post_meta($menu_item_db_id, '_menu_item_view_all_link', $view_all_link_value);\r\n\t\t}", "title": "" }, { "docid": "746f2b41126eb22f1be73d40233a7a7b", "score": "0.5119648", "text": "function updateData($data,$id)\n\t{\n\t\tdbIdReport('update','update Menu',json_encode($data), 100);\n\t\t$this->db->where('menu_id', $id);\n\t\t$this->db->update($this->table, $data);\n\t\t$str = $this->db->last_query();\t\n\t\tlogConfig(\"update Menu:$str\",'logDB');\n\t\t\n\t}", "title": "" }, { "docid": "aaea03399dc13f81d8e787b44062bd60", "score": "0.51187915", "text": "public function remove_menu_items() {\n remove_menu_page(\"edit-comments.php\");\n remove_menu_page(\"edit.php\");\n }", "title": "" }, { "docid": "3dd11c34c3e2c214b2d04503f7142ceb", "score": "0.5117493", "text": "private function editMenu()\n\t\t{\n\t\t\t$id = (int)$_REQUEST['id'];\n\t\t\t$row = DB::selectRow(\"menu\", \"*\", \"WHERE id=$id\");\n\t\t\t$name = stripslashes($row->name);\n\t\t\t$value = stripslashes($row->value);\n\n\t\t\t$form = new FORM(\"editMenu\");\n\t\t\t$form->add(new H1(NULL, NULL, \"Menu editor\"));\n\t\t\t$form->add($table = new TABLE(\"menuItems\"));\n\n\t\t\t$table->addRow($tr = new TR());\n\t\t\t$tr->addCell(new TD(NULL, \"menuBold\",\n\t\t\t\tnew LABEL(NULL, NULL, \"Menu name:\")));\n\t\t\t$table->addRow($tr = new TR());\n\t\t\t$tr->addCell(new TD(NULL, \"tatd\",\n\t\t\t\tnew TEXT(NULL, NULL, \"name\", $name)));\n\n\t\t\t$table->addRow($tr = new TR());\n\t\t\t$tr->addCell(new TD(NULL, \"menuBold\",\n\t\t\t\tnew LABEL(NULL, NULL,\n\t\t\t\t\t\"Items in this menu (template and name):\")));\n\n\t\t\t// Put all the items in one cell.\n\t\t\t$table->addRow($tr = new TR());\n\t\t\t$tr->addCell($td = new TD());\n\t\t\t// Parse the value into a menu structure.\n\t\t\t$menuarray = explode(\"\\n\", $value);\n\t\t\t$index = 0;\n\t\t\tforeach ($menuarray as $menuitem)\n\t\t\t{\n\t\t\t\t$td->add($div0 = new DIV(NULL, \"clearboth\"));\n\t\t\t\t$div0->add($div1 = new DIV(NULL, \"menuItemText\"));\n\t\t\t\t$item = explode(\",\", $menuitem);\n\t\t\t\t$item0 = $item[0];\n\t\t\t\t$item1 = isset($item[1]) ? $item[1] : NULL;\n\t\t\t\t$div1->add($div = new DIV(NULL, \"menuTemplate\"));\n\t\t\t\t$div->add(new TEXT(NULL, NULL, \"template$index\", $item0));\n\t\t\t\t$div1->add($div = new DIV(NULL, \"menuItem\"));\n\t\t\t\t$div->add(new TEXT(NULL, NULL, \"item$index\", $item1));\n\t\t\t\t$div0->add($div = new DIV(NULL, \"menuItemControls\"));\n\t\t\t\tif ($index > 0)\n\t\t\t\t\t$div->add(new A(NULL, NULL,\n\t\t\t\t\t\tnew IMG(NULL, NULL, \"images/system/arrow-up.png\", \"Move up\"),\n\t\t\t\t\t\t\t\"#\", array(\n\t\t\t\t\t\t\t\t\"onclick\"=>\"moveUp($index);\"\n\t\t\t\t\t\t\t\t)));\n\t\t\t\telse $div->add(new IMG(NULL, NULL, \"images/system/blank16.png\"));\n\t\t\t\tif ($index < count($menuarray) - 1)\n\t\t\t\t\t$div->add(new A(NULL, NULL,\n\t\t\t\t\t\tnew IMG(NULL, NULL, \"images/system/arrow-down.png\", \"Move down\"),\n\t\t\t\t\t\t\t\"#\", array(\n\t\t\t\t\t\t\t\t\"onclick\"=>\"moveDown($index);\"\n\t\t\t\t\t\t\t\t)));\n\t\t\t\telse $div->add(new IMG(NULL, NULL, \"images/system/blank16.png\"));\n\t\t\t\t$div->add(new A(NULL, NULL,\n\t\t\t\t\tnew IMG(NULL, NULL, \"images/system/cut.gif\", \"Delete this item\"),\n\t\t\t\t\t\t\"#\", array(\n\t\t\t\t\t\t\t\"onclick\"=>\"deleteMenuItem($index);\"\n\t\t\t\t\t\t\t)));\n\t\t\t\t$index++;\n\t\t\t}\n\n\t\t\t$table->addRow($tr = new TR());\n\t\t\t$tr->addCell($td = new TD());\n\t\t\t$td->add(new HIDDEN(\"admin\", \"1\"));\n\t\t\t$td->add(new HIDDEN(\"section\", \"menu\"));\n\t\t\t$td->add(new HIDDEN(\"id\", $id));\n\t\t\t$td->add(new SUBMIT(NULL, NULL, \"action\", \"Add a menu item\"));\n\t\t\t$td->add(new SUBMIT(NULL, NULL, \"action\", \"Save menu\"));\n\t\t\t$td->add(new SUBMIT(NULL, NULL, \"action\", \"OK\"));\n\n\t\t\treturn $form;\n\t\t}", "title": "" } ]
de77d87f6e145d473203386d556cab92
/ The delete operation When this method is called record is deleted for the given id
[ { "docid": "0850c8006e074a151a993a8598bdc0d5", "score": "0.0", "text": "function deleteHero($id){\n $stmt = $this->con->prepare(\"DELETE FROM heroes WHERE id = ? \");\n $stmt->bind_param(\"i\", $id);\n if($stmt->execute())\n return true;\n\n return false;\n }", "title": "" } ]
[ { "docid": "6f696a69befceacb681430d870f215f9", "score": "0.8914139", "text": "public function deleteRecord($id){\n\t}", "title": "" }, { "docid": "4f3db4e19e615c01e9368ed21ef4f5d7", "score": "0.8430792", "text": "function deleteRecord($id) {\n\t\tif($this->noop) return;\n\t\t$this->_exec(\"harvestctxo_delete_by_recordid\", array($id));\n\t\t$this->_exec(\"harvestrecord_delete_by_id\", array($id));\n\t}", "title": "" }, { "docid": "21abd2778c3ee33008f60728a5c96375", "score": "0.8417764", "text": "public function delete($id) {}", "title": "" }, { "docid": "21abd2778c3ee33008f60728a5c96375", "score": "0.8417764", "text": "public function delete($id) {}", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "6bda7c3c0fcf520351ed30e101312efd", "score": "0.82847035", "text": "public function delete($id);", "title": "" }, { "docid": "998aefa84ea69e97636a4a6d84814457", "score": "0.8270363", "text": "public function delete($id)\n\t {\n\t //\n\t }", "title": "" }, { "docid": "998aefa84ea69e97636a4a6d84814457", "score": "0.8270363", "text": "public function delete($id)\n\t {\n\t //\n\t }", "title": "" }, { "docid": "f7733e6d4e6b047f0d0f98fff8104e9d", "score": "0.8250009", "text": "function deleteRecord($id)\n\t{\n\t\t$this->_deleteRecord($this->tablename, $id);\n\t}", "title": "" }, { "docid": "16cd721faabc8c7c748b71cd6aa241a6", "score": "0.82354647", "text": "public function delete($id) {\n \n\t\tparent::delete( $id );\n\t\t\n \t\n }", "title": "" }, { "docid": "5a21af6b3c36a00cc018d3f6239fe22e", "score": "0.8233029", "text": "public function delete($id)\n\t\t{\n\t\t}", "title": "" }, { "docid": "02d6a0c946372a80a3449297f894e3cb", "score": "0.8219268", "text": "public static function delete($id)\r\n {\r\n }", "title": "" }, { "docid": "299c63b10642fe63856d01f899265475", "score": "0.8200425", "text": "public function delete($id)\r\n {\r\n }", "title": "" }, { "docid": "299c63b10642fe63856d01f899265475", "score": "0.8200425", "text": "public function delete($id)\r\n {\r\n }", "title": "" }, { "docid": "a9762cdf32b7feb0a2214f556262f99a", "score": "0.8183319", "text": "protected function deleted($id)\n {\n }", "title": "" }, { "docid": "db442491b7e6714e77d16e45e0ee8131", "score": "0.8170455", "text": "public function delete($id) {\n }", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "a67dec9e7ef6fd04bad17fdbdfeb0983", "score": "0.8165883", "text": "public function deleteById($id);", "title": "" }, { "docid": "fafd0224c8aeb30f70be9ebff98120c8", "score": "0.8144234", "text": "public function deleted($id)\n {\n }", "title": "" }, { "docid": "fafd0224c8aeb30f70be9ebff98120c8", "score": "0.8144234", "text": "public function deleted($id)\n {\n }", "title": "" }, { "docid": "fafd0224c8aeb30f70be9ebff98120c8", "score": "0.8144234", "text": "public function deleted($id)\n {\n }", "title": "" }, { "docid": "fafd0224c8aeb30f70be9ebff98120c8", "score": "0.8144234", "text": "public function deleted($id)\n {\n }", "title": "" }, { "docid": "94d89801371d0065aaaca9b4a5b830fd", "score": "0.8137275", "text": "public function delete($id)\n {\n //\n }", "title": "" }, { "docid": "b145f1e2fa5a3cfa4104293cb1e1f18c", "score": "0.8130348", "text": "public function delete()\n {\n $this->delete_by_id($this->field['id']);\n }", "title": "" }, { "docid": "45b89f2c304f609379eec689eb08b76c", "score": "0.81181204", "text": "abstract public function delete($id);", "title": "" }, { "docid": "45b89f2c304f609379eec689eb08b76c", "score": "0.81181204", "text": "abstract public function delete($id);", "title": "" }, { "docid": "45b89f2c304f609379eec689eb08b76c", "score": "0.81181204", "text": "abstract public function delete($id);", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "ec3f51bb3c17a867b5b0bce058af143f", "score": "0.8117157", "text": "public function delete($id)\n {\n }", "title": "" }, { "docid": "df883b23ce2b922833867efc96157417", "score": "0.8083772", "text": "public abstract function delete($id);", "title": "" }, { "docid": "df883b23ce2b922833867efc96157417", "score": "0.8083772", "text": "public abstract function delete($id);", "title": "" }, { "docid": "6aa04e816f0451e3481224614e8e89c5", "score": "0.80831397", "text": "public function delete(string $id);", "title": "" }, { "docid": "2999fbc5882d61903ce7351d8efb8aa1", "score": "0.8076513", "text": "static function delete($id);", "title": "" }, { "docid": "f49733b15e24e0faea9bbb9554471c11", "score": "0.8055105", "text": "public function delete(int $id);", "title": "" }, { "docid": "60df380648ca89929a9ad4016e3e662c", "score": "0.80382794", "text": "public function delete($id)\n\n {\n\n \n\n }", "title": "" }, { "docid": "48fb373ceeaa17a868800e3dba598c3d", "score": "0.8037515", "text": "public function delete($id)\n {\n\n }", "title": "" }, { "docid": "48fb373ceeaa17a868800e3dba598c3d", "score": "0.8037515", "text": "public function delete($id)\n {\n\n }", "title": "" }, { "docid": "ae42188f46de85f9ada2e3daa354bfac", "score": "0.79843146", "text": "public function delete($id){\n }", "title": "" }, { "docid": "ae42188f46de85f9ada2e3daa354bfac", "score": "0.79843146", "text": "public function delete($id){\n }", "title": "" }, { "docid": "64a1360341399b655ec0aa6695aaa54b", "score": "0.79524195", "text": "public function destroy($id)\n\t{\n $record = Record::find($id);\n $record->delete();\n\t}", "title": "" }, { "docid": "b374ad6b0153e671ef3131437b94f933", "score": "0.7944623", "text": "public function delete($id)\n {\n\n\n }", "title": "" }, { "docid": "b621ef23439cd882f48f824f806216f3", "score": "0.7941101", "text": "public function delete(int $id)\n {\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "6f3a1e3fbeb76a663ee2de508e97d824", "score": "0.0", "text": "public function show(Expense $expense)\n {\n $expense->load('creator', 'fields.customField');\n\n return response()->json([\n 'expense' => $expense\n ]);\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "4a213f970d44ae570e7f216941006306", "score": "0.7264416", "text": "public function setting_show_resource($resource,$resourceFile)\n {\n echo $this->_template_url . '/'.$resource.'/'.$resourceFile;\n }", "title": "" }, { "docid": "fb1ffd800184a0a42701459345c41281", "score": "0.6991857", "text": "public function show(Resource $resource)\n {\n Gate::authorize('view', $resource);\n\n return $resource;\n }", "title": "" }, { "docid": "8e9fe6c0081f8ce768620060cccb65f3", "score": "0.68753964", "text": "public function show($param)\n {\n $resource = Resource::with('tags', 'likesCount', 'user', 'category')\n ->where('id', $param)\n ->orWhere('slug', $param)\n ->firstOrFail();\n\n $initialState = [\n 'resource' => $resource,\n 'currentUser' => Auth::user()\n ];\n\n return response()->view('public.resource', [\n 'appName' => 'resource',\n 'pageName' => $resource->title,\n 'initialState' => $initialState\n ]);\n }", "title": "" }, { "docid": "48b397ea8942d2fa9785a3e43388943e", "score": "0.6725769", "text": "public function show($id)\n\t{\n\t\t$resource = Resource::with('UserResourceLink')->find($id);\n\t\treturn View::make('resources.show')->with('resource', $resource);\n\t}", "title": "" }, { "docid": "2c30b4b167b469c3db298602e7ead28d", "score": "0.6711636", "text": "private function display_item($resource, $item) {\n\t\t$db = $this->db($resource);\n\t\t$item = $db->get($item);\n\n\t\tif ($item) {\n\t\t\t echo json_encode($item);\n\t\t} else {\n\t header('HTTP/1.1 404 Not Found');\n\t }\n\t}", "title": "" }, { "docid": "95bf452408be21abf4a83c19b8bbd6fb", "score": "0.667411", "text": "public function show(string $resource, $id)\n {\n return Jory::byUri($resource)->find($id);\n }", "title": "" }, { "docid": "cd76a0fc79013f2dbdd01b09770768ec", "score": "0.6580917", "text": "public function show($id)\n {\n // $resource = Resource ::find($id);\n // return view('Resource.resource')->with('resource',$resource);\n }", "title": "" }, { "docid": "39dabc4dde3ba3c708fb3782a17fde5c", "score": "0.6434556", "text": "function show( $resource ){\n $product = get( 'products', $resource );\n\n return view( 'admin/product/view_product', compact( 'product' ) );\n}", "title": "" }, { "docid": "0d9d138ae5e21142d7d77d5c45711a1c", "score": "0.6386195", "text": "public function displayAction()\r\n\t{\r\n\t\t// set filters and validators for GET input\r\n\t\t$filters = array(\r\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\r\n\t\t);\r\n\t\t$validators = array(\r\n 'id' => array('NotEmpty', 'Int')\r\n\t\t);\r\n\t\t$input = new Zend_Filter_Input($filters, $validators);\r\n\t\t$input->setData($this->getRequest()->getParams());\r\n\r\n\t\t// test if input is valid\r\n\t\t// retrieve requested record\r\n\t\t// attach to view\r\n\t\tif ($input->isValid()) {\r\n\t\t\t$q = Doctrine_Query::create()\r\n\t\t\t->from('Webteam_Model_Video i')\r\n\t\t\t->where('i.VideoID = ?', $input->id);\r\n\t\t\t$result = $q->fetchArray();\r\n\t\t\tif (count($result) == 1) {\r\n\t\t\t\t$this->view->item = $result[0];\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Zend_Controller_Action_Exception('Page not found', 404);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new Zend_Controller_Action_Exception('Invalid input');\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "43c7d44dab00c2107caa033394e76a4e", "score": "0.6370414", "text": "public function display($spec = null)\n {\n $response = $this->fetch($spec);\n $response->display();\n }", "title": "" }, { "docid": "2c8806a4c1933c4361ab0e84ba707311", "score": "0.6274676", "text": "public function show()\n {\n $this->beginAction('show');\n $this->getResource();\n $this->applyHooks(AuthorizeResource::class);\n $this->formatResource();\n\n return $this->makeResponse();\n }", "title": "" }, { "docid": "f99807bc50ee366a325d9c40a162d254", "score": "0.62724066", "text": "public function actionGetInfoResource()\n\t{\n\t\t//die (print_r($_POST));\n\t\t$resource = Yii::app()->db->createCommand()->select('*')->from('ki_resource')\n\t\t\t\t\t\t\t\t->where('lang=:lang AND id=:id', array(':lang' => 'ru_ru', ':id' => $_POST['id']))\n\t\t\t\t\t\t\t\t->queryRow();\n\t\t\n\t\techo $this->renderPartial('_resourceInfo', array('resource' => $resource), true);\n\t}", "title": "" }, { "docid": "c8d2320b9dba46b7850ea9a25da02fad", "score": "0.61858386", "text": "public function viewResource($id)\n {\n $resource = carrierResource::where('resource_id',$id)->get();\n $carrierDetailUserID = carrierResource::where('resource_id',$id)->value('user_id');\n $carrierDetail = carrierDetail::where('user_id',$carrierDetailUserID)->get();\n return view ('resources.resourceDetails', ['resource'=>$resource, 'carrierDetail'=>$carrierDetail]);\n }", "title": "" }, { "docid": "d2e2e944df863de5f56668d68b5f0002", "score": "0.6169535", "text": "public function singleResource(Resource $resource)\n {\n if($resource->resource_status !== 'published')\n abort(404);\n $resource->increment('views');\n \n if (Auth::user()) {\n $userRourceVisit = UserRourceVisit::where('resource_id', $resource->id)->where('user_id', Auth::user()->id)->whereDate('created_at', Carbon::today())->first();\n if (blank($userRourceVisit)) {\n UserRourceVisit::create(['resource_id' => $resource->id, 'user_id' => Auth::user()->id]);\n }\n }\n\n $relatedResources = $this->resourceModel->relatedResources($resource);\n $resources = $this->resourceModel->getResourceByUserId($resource->user_id);\n\n return view('single-resource')\n ->withResource($resource)\n ->withRelated($relatedResources)\n ->withResources($resources);\n }", "title": "" }, { "docid": "f54a56f5688812ff54db4ce8c7ee9e8a", "score": "0.6088493", "text": "public function showAction($id)\n {\n $requestParameterHandler = $this->getRequestParameterHandler();\n $singleResourceRequestHandler = $this->get(self::SINGLE_RESOURCE_HANDLER);\n // TODO ADD Check if the user have authorisation before proceeding from the request.\n\n $resource = $singleResourceRequestHandler->process($id);\n\n if (null !== $resource) {\n $deleteFormView = $this->createDeleteForm(\n $requestParameterHandler\n );\n\n return $this->render(\n $requestParameterHandler->getThemePath(),\n array(\n $requestParameterHandler->getResourceViewName() => $resource,\n 'delete_form' => $deleteFormView,\n )\n );\n }\n // Add a message if the does't not exist.\n throw $this->createNotFoundException(sprintf('The %s %d %s', $requestParameterHandler->getResourceName(), $id, self::NOT_FOUND));\n }", "title": "" }, { "docid": "eb5ce2e515c2c4b1d34c71d116115e47", "score": "0.60823214", "text": "public function getResource($resource);", "title": "" }, { "docid": "ed3d20317cbecdf072f7b882feb64335", "score": "0.6073599", "text": "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('Rack 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',null,true);\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "title": "" }, { "docid": "1f19b3abcb62dd0bf36e4cc2e2e9a4b3", "score": "0.60681057", "text": "public function details($request, $response, $args) {\n $resource_id = $args['id'];\n $resource_details = $this->resource_gateway->get_resource_details($resource_id);\n\n return $this->view->render($response, 'resource/details.html.twig', [\n 'id' => $resource_id,\n 'resource_details' => $resource_details,\n ]);\n }", "title": "" }, { "docid": "c09849a3051e163c36ba622c042416dd", "score": "0.60172373", "text": "public function show($id)\n {\n $resource = $this->model::findOrFail($id);\n\n if (view()->exists($this->basicViewFolder . '.show')) {\n if (request()->ajax()) {\n return view($this->basicViewFolder . '.show', compact('resource'))->render();\n } else {\n return view($this->basicViewFolder . '.show', compact('resource'));\n }\n }\n\n return \" the view \" . $this->basicViewFolder . \".show not found\";\n }", "title": "" }, { "docid": "886db488fd45282953d62e88f2c58889", "score": "0.60164165", "text": "public function showAction($id) {\r\n\r\n $remote = $this->getDoctrine()\r\n ->getRepository('RemotePadMainBundle:Remote')\r\n ->find($id);\r\n\r\n if (!$remote) {\r\n return new Response(\"No Remote found. id: \" . $id, 404);\r\n }\r\n\r\n return $this->render('RemotePadMainBundle:Remote:show.html.twig', array('remote' => $remote));\r\n }", "title": "" }, { "docid": "df63d689055cf5765df52fd5165e28e7", "score": "0.5990083", "text": "abstract function show($identifier);", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "599b6dc077c4d34a9b3b0b168003b106", "score": "0.5974851", "text": "public function viewResource($resourceController, $id) {\n $values = self::getData($resourceController->wrapper($id));\n $function = __FUNCTION__;\n drupal_alter('restws_response', $values, $function, $this->formatName);\n\n return $this->serialize($values);\n }", "title": "" }, { "docid": "e8033cfc300396ea61f2cce5539e61f9", "score": "0.5959599", "text": "public function show() {\n\t\t$this->getOutput()->disable();\n\n\t\ttry {\n\t\t\techo $this->ampRenderer->render( $this->getArticle() );\n\t\t}\n\t\tcatch ( RevisionNotFound $e ) {\n\t\t\t$response = $this->getRequest()->response();\n\t\t\t$response->statusHeader( 302 );\n\t\t\t$response->header( 'Location: ' . $this->getTitle()->getFullURL() );\n\t\t}\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9f057a9bec094dea20c158d2ab8094d7", "score": "0.5936922", "text": "public function show(HrmAssetInformation $asset)\n {\n //\n }", "title": "" }, { "docid": "bb2e29f5f05ab065358c99c7225d6dc0", "score": "0.59295714", "text": "public function show(rc $rc)\n {\n //\n }", "title": "" }, { "docid": "9f2521adfd0849eebb7acbb6e94d94a0", "score": "0.592653", "text": "public function show($id) // show a single record\n {\n //\n }", "title": "" }, { "docid": "c356495b91bbab48f9b27e5a5ce7089e", "score": "0.59247625", "text": "public function display()\n {\n if (!current_user_can($this->capability)) {\n wp_die(__('You do not have sufficient permissions to access this page.', $this->textDomain));\n }\n\n $this->view->render();\n }", "title": "" }, { "docid": "151fea634645ed45ca7e8eb127afba25", "score": "0.59127665", "text": "public function show(Resource $resource)\n {\n $now = new \\DateTime('now');\n $reservations = $resource->reservationsIn($now->format('m'));\n\n\n $event_list = [];\n foreach ($reservations as $key => $reservation) {\n $event_list[] = Calendar::event(\n $reservation->user->name,\n false,\n new \\DateTime($reservation->start_time),\n new \\DateTime($reservation->end_time),\n null\n );\n }\n\n $calendar_details = Calendar::addEvents($event_list);\n\n return view('GeneralViews.ResourcesViews.Calendar.view', compact('calendar_details'));\n }", "title": "" }, { "docid": "301defef90a746cf93478d6f4bfc5091", "score": "0.5905301", "text": "public function show($id)\n {\n $model = $this->resourceModel;\n return $model::find($id);\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "447c87b0b6a3806d4bab38780df02aa1", "score": "0.5881883", "text": "public function displayTask($rid=null, $version=null)\n\t{\n\t\t$this->view->setLayout('display');\n\n\t\t// Incoming\n\t\tif (!$rid)\n\t\t{\n\t\t\t$rid = Request::getInt('rid', 0);\n\t\t}\n\t\tif (!$version)\n\t\t{\n\t\t\t$version = Request::getString('version', 'dev');\n\t\t}\n\n\t\t// Ensure we have an ID to work with\n\t\tif (!$rid)\n\t\t{\n\t\t\tApp::abort(500, Lang::txt('COM_TOOLS_CONTRIBUTE_NO_ID'));\n\t\t\treturn;\n\t\t}\n\t\t// Get resource information\n\t\t$resource = Entry::oneOrFail($rid);\n\n\t\t// Get version id\n\t\t$objV = new \\Components\\Tools\\Tables\\Version($this->database);\n\t\t$vid = $objV->getVersionIdFromResource($rid, $version);\n\n\t\t// Do we have a published tool?\n\t\t$this->view->published = $objV->getCurrentVersionProperty($resource->alias, 'id');\n\n\t\t// Get screenshot information for this resource\n\t\t$this->view->shots = $resource->screenshots()\n\t\t\t->whereEquals('versionid', $vid)\n\t\t\t->ordered()\n\t\t\t->rows();\n\n\t\t// Build paths\n\t\t$path = $resource->relativepath();\n\t\t$this->view->upath = PATH_APP . DS . trim($this->rconfig->get('uploadpath'), DS) . $path;\n\t\t$this->view->wpath = DS . trim($this->rconfig->get('uploadpath'), DS) . $path;\n\t\tif ($vid)\n\t\t{\n\t\t\t$this->view->upath .= DS . $vid;\n\t\t\t$this->view->wpath .= DS . $vid;\n\t\t}\n\n\t\t// Make sure wpath is preceded by app\n\t\tif (substr($this->view->wpath, 0, 4) != DS . 'app')\n\t\t{\n\t\t\t$this->view->wpath = DS . 'app' . $this->view->wpath;\n\t\t}\n\n\t\t// get config\n\t\t$this->view->cparams = Component::params('com_resources');\n\t\t$this->view->version = $version;\n\t\t$this->view->rid = $rid;\n\n\t\tforeach ($this->getErrors() as $error)\n\t\t{\n\t\t\t$this->view->setError($error);\n\t\t}\n\n\t\t// Output HTML\n\t\t$this->view->display();\n\t}", "title": "" }, { "docid": "2d9ba0bfae0a8169414d51cb94341bff", "score": "0.58672357", "text": "public function displayDoc($resource_name, $cache_id=null, $compile_id=null, $parent = null)\n {\n $this->_smarty_vars['template'] = $resource_name; // Added so that the template name would be accessible within the outputfilter\n $this->fetchDoc($resource_name, $cache_id, $compile_id, $parent);\n }", "title": "" }, { "docid": "313cd42e65f168efe8cb0ed49ea30ce1", "score": "0.58634895", "text": "public function displayAction(){\n \n // set filters and validators for GET input\n $filters = array(\n 'id' => array(\n 'HtmlEntities', \n 'StripTags', \n 'StringTrim'\n )\n );\n \n $validators = array(\n 'id' => array(\n 'NotEmpty', \n 'Int'\n )\n );\n \n // Zend_Filter_Input can validate, filter and escape input.\n // retrieve requested record\n // attach to view\n $input = new Zend_Filter_Input($filters, $validators);\n \n $input->setData($this->getRequest()\n ->getParams());\n \n if($input->isValid()) {\n \n // create service\n $service = new Catalog_Service_ItemService();\n \n $stamp_item = $service->getDisplayableItemIfNotExpired($input->id);\n \n if(isset($stamp_item)) {\n \n $this->view->stamp_item = $stamp_item; // store the StampItem in\n // the view.\n \n } else { // entity not found\n \n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n \n } else { // not valid input\n \n throw new Zend_Controller_Action_Exception('Invalid input');\n \n } // endif\n }", "title": "" }, { "docid": "18b1a953d7b4f38d94ba36d78e007c30", "score": "0.5862241", "text": "public function display() {\n require $this->layout;\n }", "title": "" }, { "docid": "f1c47ce6af2faf1f1d79c5449022ee8c", "score": "0.58610433", "text": "public function show($id) {\n return Resource::find($id);\n }", "title": "" }, { "docid": "5dc30ed0a3c41d7bf4354e7bfd2d3260", "score": "0.58572257", "text": "protected function addResourceShow($name, $base, $controller)\n\t{\n\t\t$uri = $this->getResourceUri($name).'/{'.$base.'}';\n\n\t\treturn $this->get($uri, $this->getResourceAction($name, $controller, 'show'));\n\t}", "title": "" }, { "docid": "a57eaaa12abdbabb675c82237206d780", "score": "0.58206403", "text": "public function displayResourceUsing(string $resource, callable $displayResourceCallback)\n {\n $this->displayResourceCallback[$resource] = $displayResourceCallback;\n\n return $this;\n }", "title": "" }, { "docid": "3133b3b1b52a90fd561fc5996432c0e7", "score": "0.58170664", "text": "public function show($id)\n {\n return $this->responseItem(['title' => 'Đây là resource show ' . $id]);\n }", "title": "" }, { "docid": "1b6934d948dba93be88f01d4f4cde49a", "score": "0.58158535", "text": "public function display($context);", "title": "" }, { "docid": "935c4042b3fe02e20c14c171b86ae1d7", "score": "0.5801874", "text": "public function shouldDisplayResource($resource)\n {\n return $this->metaValue('resources.'.$resource::uriKey());\n }", "title": "" }, { "docid": "0c7f3ae23b93225868fde0e649f535aa", "score": "0.57749224", "text": "public function show(ShowResourceRequest $request, $id)\n {\n }", "title": "" }, { "docid": "b5b132820f922eef4e644b41ff67adde", "score": "0.57740575", "text": "public function show($id)\n\t{\n\t\t// unneeded for this project\n\t}", "title": "" }, { "docid": "cdbe9eb27e47a619361449d5953ad429", "score": "0.57726145", "text": "public function display()\n {\n\n $this->component->display();\n }", "title": "" }, { "docid": "fbea10219f07495b19ed6548d4ede1a4", "score": "0.5764195", "text": "public function show($id)\n\t{\n\t\t// not supported\n\t}", "title": "" }, { "docid": "cb35029e70932874ca4a7420e41f6917", "score": "0.5749518", "text": "public function discoverAction()\n {\n $this->view->title .= ' - Avaliable Resource';\n\n $data = array_values($this->_findResource());\n\n $this->view->data = $data;\n }", "title": "" }, { "docid": "7aa11579ff48f6202a3402f35980a6d7", "score": "0.574863", "text": "public function show(RestRequestInterface $request, $identifier);", "title": "" }, { "docid": "7fb606c6d980259fc7bc2be7fb3892f7", "score": "0.57364357", "text": "public function display()\n \t{\n \t\techo $this->render();\n \t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208323", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "7b33ab8280dac7d9e7f301bb46885ef2", "score": "0.57203656", "text": "public function display($action, $status);", "title": "" }, { "docid": "7eca9a150b08650a78b0cbe2467767e8", "score": "0.5714993", "text": "public function show()\n {\n return view('redistask::show');\n }", "title": "" }, { "docid": "a4bb0929797f59b1f372c0ea97423933", "score": "0.5714916", "text": "public function show()\n {\n $product = $this->model('IndexModel')->get($this->getParam()['id']);\n\n $this->template('show', $product);\n }", "title": "" }, { "docid": "91b6c2566d39e03a0eef7bad0aebcd5a", "score": "0.5707991", "text": "public function detailsAction()\n {\n // Get id from url params and check if record exist\n $params = $this->router->getParams();\n if (isset($params[0]) && $device = Devices::findFirst($params[0])) {\n $this->tag->setTitle(__('Devices') . ' / ' . __('Details'));\n $this->view->setVars([\n 'device' => $device,\n ]);\n } else {\n parent::notFoundAction();\n }\n }", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "95c8e483ffde08b500f0a18be5d683d2", "score": "0.5704582", "text": "public function display() {\n\t$this->getRenderer()->dispatch($this);\n\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "d49f4e51972ac93263ce45277638f862", "score": "0.56985086", "text": "public function show($id) {\n\t\t\t\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "2204f8d554d9525d60e0aba235700bfd", "score": "0.56858474", "text": "public function locate($resource);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
aa3ac9087194c8b0ddbf0b2fbd558105
Read stores data. First element is allowed store ids, second is default store id
[ { "docid": "49ab52045a30fc1a6072d2d34f143d01", "score": "0.728648", "text": "private function readStoresData(): array\n {\n $reader = $this->readerList->getReader($this->runMode);\n $allowedStores = [];\n foreach ($this->websiteRepository->getList() as $website) {\n $allowedStoreIds = $reader->getAllowedStoreIds($website->getCode());\n foreach ($allowedStoreIds as $allowedStoreId) {\n $allowedStores[] = $allowedStoreId;\n }\n }\n\n return [$allowedStores, $reader->getDefaultStoreId($this->scopeCode)];\n }", "title": "" } ]
[ { "docid": "604584d3c53302284a189265b9c47a04", "score": "0.7946128", "text": "protected function readStoresData()\n {\n $reader = $this->readerList->getReader($this->runMode);\n return [$reader->getAllowedStoreIds($this->scopeCode), $reader->getDefaultStoreId($this->scopeCode)];\n }", "title": "" }, { "docid": "91c3329a64fd8c76a624f70dde4c1e67", "score": "0.7037295", "text": "public function getStores()\n {\n return $this->hasData('stores') ? $this->getData('stores') : $this->getData('store_id');\n }", "title": "" }, { "docid": "119e7bae9570a6fe7f787729fada12af", "score": "0.6992985", "text": "public function getStores();", "title": "" }, { "docid": "119e7bae9570a6fe7f787729fada12af", "score": "0.6992985", "text": "public function getStores();", "title": "" }, { "docid": "119e7bae9570a6fe7f787729fada12af", "score": "0.6992985", "text": "public function getStores();", "title": "" }, { "docid": "3a29a9308af8791ec8cb60e4b9e60f07", "score": "0.66685545", "text": "public function get_store() {\n\t\treturn $this->db->get($this->_table['store_config'])\n\t\t\t\t\t->row();\t\n\t}", "title": "" }, { "docid": "d44a595ece337844517c161c1739a455", "score": "0.6627271", "text": "public function getAllStores();", "title": "" }, { "docid": "0dd5d80ae0445aa862eb23beb6411ff9", "score": "0.6581478", "text": "public function get_data_store();", "title": "" }, { "docid": "7ba43cd0b593a7bab77cfd29e1e06841", "score": "0.6566253", "text": "public function get($storeId);", "title": "" }, { "docid": "e5184feb590092d1f4867eb24dd187a4", "score": "0.6562608", "text": "private function getCurrentStore($store_id) { \n if($store_id && $store_id != 0) {\n $store = $this->model_setting_store->getStore($store_id);\n } else {\n $store['store_id'] = 0;\n $store['name'] = $this->config->get('config_name');\n $store['url'] = $this->getCatalogURL(); \n }\n return $store;\n }", "title": "" }, { "docid": "6059c53238e67480b2a453151e5f27ee", "score": "0.6447252", "text": "public function get_store_all() {\n\t\treturn $this->db->get('store_config')\n\t\t\t\t\t->result();\n }", "title": "" }, { "docid": "8c96d203fb0b021278b689be15ed73ce", "score": "0.6441322", "text": "public function getStore();", "title": "" }, { "docid": "66bd121331b43e3bd15b712357988586", "score": "0.6391712", "text": "private function readWebsitesData(): array\n {\n $defaultStores = [];\n foreach ($this->websiteRepository->getList() as $website) {\n $defaultStores[$website->getId()] = $this->groupRepository\n ->get($website->getDefaultGroupId())\n ->getDefaultStoreId();\n }\n\n return $defaultStores;\n }", "title": "" }, { "docid": "73c11cc9be26f9207d32114a68a1bf77", "score": "0.63879603", "text": "public function getStoreDataByStoreId($storeId)\n {\n return $this->storeCollectionFactory\n ->create()\n ->addFieldToFilter('scope_id', $this->lsr->getCurrentWebsiteId())\n ->addFieldToFilter('nav_id', $storeId)\n ->getFirstItem();\n }", "title": "" }, { "docid": "af4cc450757a4d90af01e31441cef659", "score": "0.6322834", "text": "public function getStores()\r\n {\r\n $stores = $this->getData('stores');\r\n if (is_null($stores)) {\r\n $stores = Mage::getModel('core/store')\r\n ->getResourceCollection()\r\n ->setLoadDefault(true)\r\n ->load();\r\n $this->setData('stores', $stores);\r\n }\r\n return $stores;\r\n }", "title": "" }, { "docid": "87f51eb287880b9f2f1c572ec68e347b", "score": "0.63205874", "text": "public function getStoreDetailsByID() {\n if (func_num_args() > 0) {\n $id = func_get_arg(0);\n try {\n $select = $this->select()\n ->setIntegrityCheck(false)\n ->from(array('sd' => 'store_details'))\n ->joinLeft(array('a' => 'agents'), 'sd.agent_id= a.agent_id', array('a.agent_id', 'a.loginname'))\n ->joinLeft(array('l' => 'location'), 'sd.store_location= l.location_id', ['areaName' => 'l.name']) //area*\n ->joinLeft(array('l1' => 'location'), 'l1.location_id= l.parent_id', ['cityName' => 'l1.name']) //city*\n ->joinLeft(array('l2' => 'location'), 'l2.location_id= l1.parent_id', ['stateName' => 'l2.name']) //state*\n ->joinLeft(array('l3' => 'location'), 'l3.location_id= l2.parent_id', ['countryName' => 'l3.name']) //country*\n ->where('sd.store_id = ?', $id);\n\n $result = $this->getAdapter()->fetchRow($select);\n } catch (Exception $e) {\n throw new Exception('Unable To retrieve data :' . $e);\n }\n\n if ($result) {\n return $result;\n }\n }\n }", "title": "" }, { "docid": "676ab7b6d15db30ddc49a563742232ee", "score": "0.6317382", "text": "public function getStoreSelectData()\n {\n $data = [];\n $stores = $this->_storeManager->getStores(false);\n foreach ($stores as $store) {\n /** @var StoreInterface $store */\n if (\n !$this->_searchHelperConfig->getJsApiKey($store)\n || !$this->_searchHelperConfig->getRestApiKey($store)\n ) {\n // Skipping non-configured stores\n continue;\n }\n\n $website = $store->getWebsite()->getName();\n $group = $store->getGroup()->getName();\n\n if (!isset($data[$website])) {\n $data[$website] = [];\n }\n if (!isset($data[$website][$group])) {\n $data[$website][$group] = [];\n }\n\n $data[$website][$group][] = $store;\n }\n return $data;\n }", "title": "" }, { "docid": "26dee96001769394f74a589f443564c7", "score": "0.63072383", "text": "public function getStoreData()\n\t{\n\t\treturn $this->store_data;\n\t}", "title": "" }, { "docid": "178f6cba99017016a9f622590f8b7853", "score": "0.6276594", "text": "protected function _getStores()\n {\n $stores = Mage::getModel('core/store')\n ->getResourceCollection()\n ->setLoadDefault(true)\n ->load()\n ;\n return $stores;\n }", "title": "" }, { "docid": "f6940d3ef6d3b87acf0c053580eba97d", "score": "0.62655777", "text": "protected function addStoreData()\n {\n $mainTableIdField = $this->_associatedEntitiesMap['store']['main_table_id_field'];\n $associatedTable = $this->_associatedEntitiesMap['store']['associations_table'];\n $linkedTableIdFieldName = $this->_associatedEntitiesMap['store']['linked_table_id_field'];\n $storeIdFieldName = $this->_associatedEntitiesMap['store']['entity_id_field'];\n\n $ids = $this->getColumnValues($mainTableIdField);\n if (count($ids)) {\n $connection = $this->getConnection();\n\n $select = $connection->select()->from(\n [\n $associatedTable => $this->getTable($associatedTable)\n ]\n )->where($associatedTable . '.' . $linkedTableIdFieldName . ' IN (?)', $ids);\n\n $result = $connection->fetchAll($select);\n $data = [];\n if ($result) {\n foreach ($result as $storeData) {\n $data[$storeData[$linkedTableIdFieldName]][] = $storeData[$storeIdFieldName];\n }\n }\n $this->addStoresDataToItems($data);\n }\n }", "title": "" }, { "docid": "f55cc23b3cc9afb58be4066023b4e2e5", "score": "0.6265203", "text": "public function getStores()\n {\n $request = new \\think\\Request;\n $storeInfoModel = new \\app\\api\\controller\\v1\\Login($request);\n $storeIds = $storeInfoModel->getUserStores($this->userInfo)['store_ids'];\n $where = [\n ['store_id', 'IN', $storeIds],\n ['is_del', '=', 0],\n ['status', '=', 1],\n ];\n $stores = db('store')->where($where)->field('store_id, name')->select();\n $this->_returnMsg(['code' => 0, 'msg' => '用户删除成功','data'=> $stores]);die;\n }", "title": "" }, { "docid": "872c9a2880ff6e5bc2bfe9d755159af6", "score": "0.6252652", "text": "public function getStoreIds()\n {\n if ($storeCode = Mage::app()->getRequest()->getParam('store')) {\n $store = Mage::app()->getStore($storeCode);\n $storeIds[] = $store->getId();\n } elseif ($websiteCode = Mage::app()->getRequest()->getParam('website')){\n $website = Mage::app()->getWebsite($websiteCode);\n $storeIds = $website->getStoreIds();\n } elseif ($groupCode = Mage::app()->getRequest()->getParam('group')){\n $website = Mage::app()->getGroup($groupCode)->getWebsite();\n $storeIds = $website->getStoreIds();\n } else {\n $storeIds = false;\n }\n \n return $storeIds;\n }", "title": "" }, { "docid": "fe5e8f7d5de7f090c48faff636f289e0", "score": "0.6191893", "text": "public function selectAllStore() {\n try {\n\n $select = $this->select()\n ->setIntegrityCheck(false)\n ->from(array('gd' => 'store_details'))\n ->joinLeft(array('a' => 'agents'), 'gd.agent_id= a.agent_id', array('a.agent_id', 'a.loginname'));\n $result = $this->getAdapter()->fetchAll($select);\n\n if ($result) {\n return $result;\n } else {\n\n return null;\n }\n } catch (Exception $e) {\n throw new Exception('Unable to access data :' . $e);\n }\n }", "title": "" }, { "docid": "8939521f9c85e664e99d023f5d852728", "score": "0.61629856", "text": "public function fetchStoresDataById($id) \n\t{\n\t\tif($id) {\n\t\t\t$data = $this->model_stores->getStoresData($id);\n\t\t\techo json_encode($data);\n\t\t}\n\t}", "title": "" }, { "docid": "50b2b9de3d7cb28deb6b836317c45040", "score": "0.6157362", "text": "public function getStores()\n {\n return $this->stores;\n }", "title": "" }, { "docid": "50b2b9de3d7cb28deb6b836317c45040", "score": "0.6157362", "text": "public function getStores()\n {\n return $this->stores;\n }", "title": "" }, { "docid": "50b2b9de3d7cb28deb6b836317c45040", "score": "0.6157362", "text": "public function getStores()\n {\n return $this->stores;\n }", "title": "" }, { "docid": "eabbd03a6a1e382cbd2d0f95df2c154a", "score": "0.6156493", "text": "public function getStoreById() {\n $store_id = $this->request->get['store_id'];\n $this->load->model(\"account/api\");\n $store_details = $this->model_account_api->getStoreById($store_id);\n echo json_encode($store_details);\n }", "title": "" }, { "docid": "c21ff10a6e2ba4e07a962652ed0ac31f", "score": "0.60855025", "text": "public function getStore()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "fec3450c5caca1a7ac3a60fb998fdbd6", "score": "0.6055076", "text": "public function getMainStoresAction() {\n\t\t$stores = $this->storeRepository->findAllMainStores();\n\t\treturn $this->outputStoreData($stores);\n\t}", "title": "" }, { "docid": "68502fbb1ea3717c691a182eaf765583", "score": "0.60481703", "text": "private function _getStoreInformation()\n\t{\n\t\tif($this->_storeId == '')\n\t\t{\n\t\t\tAtenExporterForMagento::DisplayErrorPage(\n\t\t\t\t'ERROR: Store parameter must be specified in the query string.');\n\t\t}\n\n\t\t// Check format of the ID\n\t\tif(0 == preg_match('|^\\d+$|', $this->_storeId))\n\t\t{\n\t\t\tAtenExporterForMagento::DisplayErrorPage(\n\t\t\t\t'ERROR: The specified Store is not formatted correctly: '.$this->_storeId);\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tif(IS_MAGENTO_2)\n\t\t\t{\n\t\t\t\t$storeManager = $this->_objectManager->get('\\Magento\\Store\\Model\\StoreManagerInterface');\n\t\t\t\t$store = $storeManager->getStore($this->_storeId);\n\t\t\t\t// Load the store information\n\t\t\t\t$this->_websiteId = $store->getWebsiteId();\n\t\t\t\t$this->_webBaseUrl = $store->getBaseUrl(Magento\\Framework\\UrlInterface::URL_TYPE_WEB);\n\t\t\t\t$this->_mediaBaseUrl = $store->getBaseUrl(Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA);\n\t\t\t\t$this->_STATUS_DISABLED_CONST = Magento\\Catalog\\Model\\Product\\Attribute\\Source\\Status::STATUS_DISABLED;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Get the store object\n\t\t\t\t$store = Mage::app()->getStore($this->_storeId);\n\t\t\t\t// Load the store information\n\t\t\t\t$this->_websiteId = $store->getWebsiteId();\n\t\t\t\t$this->_webBaseUrl = $store->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);\n\t\t\t\t$this->_mediaBaseUrl = $store->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);\n\t\t\t\t$this->_STATUS_DISABLED_CONST = Mage_Catalog_Model_Product_Status::STATUS_DISABLED;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\tAtenExporterForMagento::DisplayErrorPage(\n\t\t\t\t'ERROR: Error getting store information for Store='.$this->_storeId.\n\t\t\t\t\". The store probably does not exist. \".get_class($e).\" \".$e->getMessage());\n\t\t}\n\n\t}", "title": "" }, { "docid": "43583df64bcf3408951a0b37dbdff9f3", "score": "0.6047264", "text": "public function getStoreDetails(){\n $select = $this->select()\n ->setIntegrityCheck(false)\n ->from($this);\n $result = $this->getAdapter()->fetchAll($select);\n \n if($result):\n return $result;\n endif;\n }", "title": "" }, { "docid": "240421d6dca8d1b4db07742272b35b46", "score": "0.60001874", "text": "public function getAllStore() {\n try {\n\n $select = $this->select()\n ->from($this);\n $result = $this->getAdapter()->fetchAll($select);\n if ($result) {\n return $result;\n } else {\n\n return null;\n }\n } catch (Exception $e) {\n throw new Exception('Unable to access data :' . $e);\n }\n }", "title": "" }, { "docid": "b76842d3c6b9bd08465d8962eb281c77", "score": "0.5997765", "text": "protected function _getStoreIds()\n {\n if ($this->_getQuery('___store')) {\n return $this->_getApp()->getStore()->getId();\n } else {\n return $this->_getApp()->getWebsite()->getStoreIds();\n }\n }", "title": "" }, { "docid": "98bc0a225b985b5c0e2f860ffc7d5b6e", "score": "0.59866166", "text": "protected function _getStoreIds()\r\n {\r\n\t\tif(Mage::getStoreConfig('advancedpermissions/settings/enabled') == '0')\r\n\t\t{\r\n\t\t\treturn parent::_getStoreIds();\r\n\t\t}\r\n\t\t\r\n $filterData = $this->getFilterData();\r\n if ($filterData) {\r\n $storeIds = explode(',', $filterData->getData('store_ids'));\r\n } else {\r\n $storeIds = array();\r\n }\r\n // By default storeIds array contains only allowed stores\r\n $allowedStoreIds = array_keys(Mage::app()->getStores());\r\n // And then array_intersect with post data for prevent unauthorized stores reports\r\n $storeIds = array_intersect($allowedStoreIds, $storeIds);\r\n // If selected all websites or unauthorized stores use only allowed\r\n \r\n\t\t$userModel\t= Mage::getSingleton('admin/session')->getUser();\r\n\t\t$userType\t= $userModel->getUsertype();\r\n\t\tif($userType != NULL){\r\n\t\t\t$userObj = new Int_Advancedpermissions_Block_Catalog_Product_Grid();\r\n\t\t\tif (empty($storeIds)) {\r\n\t\t\t\t$storeIds = $userObj->getCurrentUserStoreView();\r\n\t\t\t} else {\r\n\t\t\t\t$storeIds = array_intersect($storeIds, $userObj->getCurrentUserStoreView());\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tif (empty($storeIds)) {\r\n\t\t\t\t$storeIds = $allowedStoreIds;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n // reset array keys\r\n $storeIds = array_values($storeIds);\r\n\r\n return $storeIds;\r\n }", "title": "" }, { "docid": "a67d4fb019b90489d31cb3856543e3be", "score": "0.5984803", "text": "protected function getStores()\n {\n return Mage::app()->getStores();\n }", "title": "" }, { "docid": "75a0779bf93562229c8fdb7330b59bb1", "score": "0.59696126", "text": "protected function _getAllStoreIds()\n {\n $allStores = Mage::app()->getStores();\n $ids = array();\n foreach ($allStores as $_eachStoreId => $val) {\n $ids[] = Mage::app()->getStore($_eachStoreId)->getId();\n }\n \n return $ids;\n }", "title": "" }, { "docid": "6fc7892c3f76650cd32542bcc53dec94", "score": "0.5959686", "text": "public function get_all_store()\n {\n return $this->db->get('store')->result();\n }", "title": "" }, { "docid": "9af1bdef87096b414341d715d0e4372a", "score": "0.59596455", "text": "private function getStoreInfo($store_id) {\n\n //get entity manager object\n $em = $this->getDoctrine()->getManager();\n\n //fire the query in Store Repository\n $return_store_profile_data = $em\n ->getRepository('StoreManagerStoreBundle:Store')\n ->findBy(array('id' => $store_id));\n $return_data = array();\n if (count($return_store_profile_data)) {\n $store_profile_data = $return_store_profile_data[0];\n $return_data = array('store_id' => $store_profile_data->getId(),\n 'parent_store_id' => $store_profile_data->getParentStoreId(),\n 'title' => $store_profile_data->getTitle(),\n 'email' => $store_profile_data->getEmail(),\n 'url' => $store_profile_data->getUrl(),\n 'description' => $store_profile_data->getDescription(),\n 'address' => $store_profile_data->getAddress(),\n 'contact_number' => $store_profile_data->getContactNumber(),\n 'created_at' => $store_profile_data->getCreatedAt(),\n 'is_active' => $store_profile_data->getIsActive(),\n 'is_allowed' => $store_profile_data->getIsAllowed(),\n 'type' => 'store'\n );\n }\n return $return_data;\n }", "title": "" }, { "docid": "fef27ad3abfc6c92d1fb29f76f42a34e", "score": "0.5944334", "text": "public function getStoreList()\n {\n $stores = Mage::getResourceModel('core/store_collection')\n ->addFieldToFilter('store_id', array('neq' => Mage_Core_Model_App::ADMIN_STORE_ID))\n ->addFieldToFilter('is_active', 1)\n ;\n if(Mage::getStoreConfig('customer/account_share/scope')) {\n $stores->addFieldToFilter('website_id', $this->getCustomer()->getSharedWebsiteIds());\n }\n return $stores;\n }", "title": "" }, { "docid": "76d14fe1091de00844dae26b5e866288", "score": "0.5940195", "text": "public function getStoreDetails ($storeId) {\n $collection = $this->_amastyCollectionFactory->create(); \n $select = $collection->getSelect();\n $select->where('main_table.id = '. $storeId);\n\n return $collection->getData();\n }", "title": "" }, { "docid": "9a0301513f9e09e3aa36c4669a7f6b96", "score": "0.5932866", "text": "public function getStoreById($id)\n {\n /**\n * In single store mode all data should be saved as default\n */\n if (Mage::app()->isSingleStoreMode()) {\n return Mage::app()->getStore(Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID);\n }\n\n $store = null;\n try {\n $store = Mage::app()->getStore($id);\n }\n catch (Exception $e) {\n return false;\n }\n\n return $store;\n }", "title": "" }, { "docid": "294a6ca17e3dc769c82f330633dc0c61", "score": "0.5924206", "text": "public function getStoreIds()\n {\n if (is_string($this->getData('store_ids'))) {\n return explode(',', $this->getData('store_ids'));\n }\n return $this->getData('store_ids');\n }", "title": "" }, { "docid": "e7d8603d01755657b912e7ff79cb33a0", "score": "0.5912548", "text": "public function getStoreId()\n {\n return $this->store_id;\n }", "title": "" }, { "docid": "e7d8603d01755657b912e7ff79cb33a0", "score": "0.5912548", "text": "public function getStoreId()\n {\n return $this->store_id;\n }", "title": "" }, { "docid": "e7d8603d01755657b912e7ff79cb33a0", "score": "0.5912548", "text": "public function getStoreId()\n {\n return $this->store_id;\n }", "title": "" }, { "docid": "e7d8603d01755657b912e7ff79cb33a0", "score": "0.5912548", "text": "public function getStoreId()\n {\n return $this->store_id;\n }", "title": "" }, { "docid": "ac2d65780a70b630f33ea8d4f7e7be7e", "score": "0.5877266", "text": "public function getStoreAvailabilityInfo($storeId = null) {\n if ($storeId) {\n $storeavailabilityInfo = $this->find('list', array('conditions' => array('StoreAvailability.store_id' => $storeId, 'StoreAvailability.is_deleted' => 0)));\n return $storeavailabilityInfo;\n }\n }", "title": "" }, { "docid": "1579ab52e183f07372a4e175d08f64fe", "score": "0.5838169", "text": "public function getStores()\n\t{\n\t\t$this->DB->join('s.id', 'a.storeid');\n\t\t$this->DB->addClause(\"a.geolat IS NOT NULL\");\n\n\t\tif ($_POST['brand'])\n\t\t{\n\t\t\t$this->DB->addClause(\"EXISTS (SELECT 1 FROM storeBrands sb WHERE s.id = sb.storeid AND sb.brandid = \" . $_POST['brand'] . \")\");\n\t\t}\n\n\t\t$this->DB->build();\n\n\t\t$sql = \"SELECT s.domain, a.id, a.dateadded, a.storeid, a.company_name, a.address1, a.city, a.state, a.zip, \";\n\t\t$sql .= \"a.geolat lat, a.geolong lng, VINCENTY(a.geolat, a.geolong, ?, ?) vincenty \";\n\t\t$sql .= \"FROM addresses a, stores s \";\n\t\t$sql .= \"WHERE \" . $this->DB->where_result . \" \";\n\t\t$sql .= \"ORDER BY vincenty ASC \";\n\t\t$sql .= \"LIMIT 20\";\n\t\t$this->DB->prepare($sql, [\n\t\t\t[DOUBLE, $this->request->post('lat')],\n\t\t\t[DOUBLE, $this->request->post('lon')]\n\t\t]);\n\t\t$result = $this->DB->execute();\n\n\t\tif ($result->numrows != 0)\n\t\t{\n\t\t\twhile($row = $this->DB->fetch($result))\n\t\t\t{\n\t\t\t\t$row['fdate'] = date('M j, Y', $row['dateadded']);\n\t\t\t\t$this->output['stores'][] = $row;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "56ffe401be1adba848cc4b7f6334f3af", "score": "0.5832474", "text": "public function getStoreAvailabilityDetails($storeId = null) {\n if ($storeId) {\n $storeavailabilityDetails = $this->find('all', array('conditions' => array('StoreAvailability.store_id' => $storeId, 'StoreAvailability.is_deleted' => 0)));\n return $storeavailabilityDetails;\n }\n }", "title": "" }, { "docid": "846ec2caf404c3e8f87dd7e0236b56d3", "score": "0.58265185", "text": "function get_store_opt($id)\n {\n $this->db->where('sto_id', $id);\n $this->db->limit(1);\n $query = $this->db->get($this->tbl_store_operational);\n return $query->row();\n }", "title": "" }, { "docid": "124fa621b6e9cdf989344b9f50e48d7e", "score": "0.580863", "text": "public function getShelfFromStore($storeID = null)\n {\n $getShelves = [];\n if(Store::find($storeID))\n {\n $getShelves = Shelf::where('shelves.storeID', $storeID)->select('id', 'storeID', 'shelve_name')->get();\n }\n return $getShelves;\n }", "title": "" }, { "docid": "48a43f058984997351af3df3fcd2f71a", "score": "0.580287", "text": "public function lookupStoreIds($itemId)\n {\n $adapter = $this->_getReadAdapter();\n\n $select = $adapter->select()\n ->from($this->getTable('phlapostegeneratelabel/lapostegeneratelabel_store'), 'store_id')\n ->where('lapostegeneratelabel_id = ?',(int)$itemId);\n\n return $adapter->fetchCol($select);\n }", "title": "" }, { "docid": "15743156ba84a50475a638a902da3524", "score": "0.57997155", "text": "public function getAll() : array\n {\n return $this->store;\n }", "title": "" }, { "docid": "1d2fb6e6fcc0f553f9ef7e6004e79ccb", "score": "0.5799203", "text": "public function lookupStoreIds($itemId)\n {\n $connection = $this->getConnection();\n\n $select = $connection->select()->from(\n $this->getTable('dilmah_testimonial_store'),\n 'store_id'\n )->where(\n 'item_id = ?',\n (int) $itemId\n );\n\n return $connection->fetchCol($select);\n }", "title": "" }, { "docid": "1b5af0db15b61ba0e9fb2936cda09cd1", "score": "0.5793709", "text": "public function getStoreId()\n {\n return $this->storeId;\n }", "title": "" }, { "docid": "4103369dfc71014b40c016388b9d165b", "score": "0.5788179", "text": "public function fetchStoresData()\n\t{\n\t\t$result = array('data' => array());\n\n\t\t$data = $this->model_stores->getStoresData();\n\t\t$i=1;\n\t\tforeach ($data as $key => $value) {\n\t\t\t$proname = $this->Model_products->getProductData($value['name']);\n\t\t\t$unit = $this->model_stores->getUnitData($value['unit']);\n\t\t\t$result['data'][$key] = array(\n\t\t\t\t$i,\n\t\t\t\t$proname['name'],\n\t\t\t\t$unit->unit,\n\t\t\t\t$value['qty'],\n\t\t\t\t$value['price'],\n\t\t\t\t$value['date']\n\t\t\t);\n\t\t$i++; } // /foreach\n\n\t\techo json_encode($result);\n\t}", "title": "" }, { "docid": "ea21f35c3b684d1ac7f7994964be1de6", "score": "0.57774013", "text": "protected function _getStore() {\n $storeId = (int) Mage::app()->getRequest()->getParam('store', 0);\n return Mage::app()->getStore($storeId);\n }", "title": "" }, { "docid": "357932c643c7b93a1c87fb4d6ed88a67", "score": "0.5776847", "text": "public function getStoreId();", "title": "" }, { "docid": "95a1b1acbe309a09aa9b9115d43a2f41", "score": "0.57516074", "text": "protected function _getStoreData()\n {\n if (!is_null($this->_store_data))\n return $this->_store_data;\n $storeData = array();\n $connection = $this->_getStoreConnection();\n $storeResponse = $connection->read();\n\n if ($storeResponse !== false) {\n $storeResponse = preg_split('/^\\r?$/m', $storeResponse, 2);\n $storeResponse = trim($storeResponse[1]);\n Mage::app()->saveCache($storeResponse, AW_All_Helper_Config::STORE_RESPONSE_CACHE_KEY);\n }\n else {\n $storeResponse = Mage::app()->loadCache(AW_All_Helper_Config::STORE_RESPONSE_CACHE_KEY);\n if (!$storeResponse) {\n Mage::getSingleton('adminhtml/session')->addError($this->__('Sorry, but Extensions Store is not available now. Please try again in a few minutes.'));\n }\n }\n\n $connection->close();\n $this->_store_data = new Varien_Object(array('text_response' => $storeResponse));\n return $this->_store_data;\n }", "title": "" }, { "docid": "bb1a4832b1575d55a1993b04d138e3d6", "score": "0.57441175", "text": "public function getStoreId($store=null)\n\t{\n\t\treturn Mage::getStoreConfig(static::STORE_ID, $store);\n\t}", "title": "" }, { "docid": "b74cce834bd70783ce002be8b6cda55a", "score": "0.57422864", "text": "public function getStoreId()\n {\n $value = $this->get(self::store_id);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "871652fc8261eda4cef99755ba2481aa", "score": "0.57191616", "text": "public function getStoreIdsToFilter()\n {\n if (1 == Mage::getStoreConfig('customer/account_share/show_current_store')) {\n return array(Mage::app()->getStore()->getStoreId());\n } else {\n return explode(',', Mage::getStoreConfig('customer/account_share/show_orders_of_stores'));\n }\n }", "title": "" }, { "docid": "4e65b7e8c33f70758cab79b243ac4599", "score": "0.5709768", "text": "private function getStoreData($shopIds, $mandator, $language)\n {\n\n $result = array();\n $lang = oxNew('oxlang');\n $oxConfig = oxNew('oxConfig');\n\n $i = 0;\n foreach ($shopIds as $shopId) {\n $baseMandator = $oxConfig->getShopConfVar('ycCustomerId', $shopId, 'module:yoochoose');\n if ($baseMandator == $mandator) {\n if (!empty($language)) {\n $result[$i]['shopId'] = $shopId;\n $result[$i]['language'] = $language;\n $i++;\n } else {\n $langIds = $lang->getLanguageIds($shopId);\n foreach ($langIds as $langId) {\n $result[$i]['shopId'] = $shopId;\n $result[$i]['language'] = $langId;\n $i++;\n }\n }\n }\n }\n\n return $result;\n }", "title": "" }, { "docid": "1536029ae407c95b7e468470750a4860", "score": "0.57059795", "text": "public function getAllStoreBasedOnAgent() {\n if (func_num_args() > 0) {\n $agentId = func_get_arg(0);\n try {\n $select = $this->select()\n ->from($this)\n ->where('agent_Id = ?', $agentId);\n $result = $this->getAdapter()->fetchAll($select);\n } catch (Exception $e) {\n throw new Exception('Unable To retrieve data :' . $e);\n }\n\n if ($result) {\n return $result;\n }\n }\n }", "title": "" }, { "docid": "bf82cb4dafd2c1892f3dd2bd2f65c19b", "score": "0.56952107", "text": "function updateStore(){\r\n global $logger;\r\n\t$logger->debug(\"Calling Update Store Function\");\r\n\r\n $couch = new CouchPHP();\r\n\t$result = $couch->getDesign(DESIGN_HO_DESIGN_DOCUMENT)->getView(DESIGN_HO_DESIGN_DOCUMENT_VIEW_STORE_BY_MYSQL_ID)->setParam(array(\"include_docs\"=>\"true\"))->execute();\r\n\t$logger->trace(\"GET STORE FROM HO: \".json_encode($result));\r\n\t$storeList = array();\r\n\t$_idList = array();\r\n\r\n if(array_key_exists('rows', $result)){\r\n\t\t$docs = $result['rows'];\r\n\t\t$logger->debug(\"Creating Array of Existing Store In CouchDB\"); \r\n\t\tforeach($docs as $dKey => $dValue){\r\n\t $storeList[$dValue['doc']['mysql_id']] = $dValue['doc'];\r\n\t $_idList[$dValue['doc']['_id']] = $dValue['doc']['_rev'];\t\r\n\t \t}\r\n\t $logger->trace(\"Array of Existing Store IN CouchDB: \".json_encode($storeList));\r\n\t}\r\n \r\n\t$getStoreNameQuery = \"SELECT sm.id mysql_id, sm.tin_no, sm.stn_no, sm.name, sm.code,\r\n\t sm.type, sm.address, sm.phone_1, sm.phone_2, photo,\r\n\t weekly_off, lm.id location_id, lm.name location_name,\r\n\t sm.sms, sm.foe_allowed is_foe, sm.active, sm.store_time store_open_schedule,\r\n\t sm.ppa_uid, sm.ppa_pwd, sm.ppc_uid, sm.ppc_pwd, sm.ppc_tid, sm.billing_type, sm.store_message\r\n FROM store_master sm\r\n LEFT JOIN location_master lm ON lm.id = sm.location_id \r\n WHERE sm.active = 'Y' AND sm.type != 'WHO'\";\r\n\t\t\t\t\t\t$logger->trace(\"Query To Get All The Store From CPOS Database: \".($getStoreNameQuery));\r\n\t\t\t\t\t\t$storeResult = mysql_query($getStoreNameQuery);\r\n\t$getProductRecipe = \"SELECT id, product_id, store_id \r\n\t\t\t\t\t\t FROM cp_recipes_master WHERE active = 'Y'\";\r\n\t\t\t\t\t\t$logger->trace(\"Query To Get All The Product Recipes From CPOS Database: \".($getProductRecipe));\r\n\t\t\t\t\t\t$recipesResult = mysql_query($getProductRecipe);\r\n\t\t\t\t\t\t$productRecipeArray = array();\r\n\t\t\t\t\t\twhile($row = mysql_fetch_assoc($recipesResult)){\r\n\t\t\t\t\t\t\t$productRecipeArray[$row['store_id']][$row['product_id']] = $row['id'];\r\n\t\t\t\t\t\t}//echo '<pre>';print_r($productRecipeArray);echo'</pre>'; die();\r\n\t\t\t\t\t\t$updateArray = array();\r\n\t $html = array();\r\n\t\t\t\t\t\t$i = 0;\r\n\t\t\t\t\t\t$updateCounter = 0;\r\n\t\t\t\t\t\t$insertCounter = 0;\r\n\t\t\t\t\t\t$logger->debug(\"Creating Array To Update Store In CouchDb\");\r\n\t\t\t\t\t while($row = mysql_fetch_assoc($storeResult)){\r\n $storeDetails = $row;\r\n $updateArray[$i] = $storeDetails;\r\n \r\n if(array_key_exists($storeDetails['mysql_id'],$storeList)){\r\n\t\t\t\t\t\t\t$updateArray[$i]['_id'] = $storeList[$storeDetails['mysql_id']]['_id'];\r\n $updateArray[$i]['_rev'] = $storeList[$storeDetails['mysql_id']]['_rev'];\r\n unset($_idList[$storeList[$storeDetails['mysql_id']]['_id']]);\r\n $updateCounter++;\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t\t$updateArray[$i]['cd_doc_type'] = STORE_MASTER_DOC_TYPE;\r\n\t\t\t\t\t\t\t$updateArray[$i]['address'] = $storeDetails['address'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['bill_type'] = $storeDetails['billing_type'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['store_message'] = $storeDetails['store_message'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['location']['id'] = $storeDetails['location_id'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['location']['name'] = $storeDetails['location_name'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['ppa_details']['uid'] = $storeDetails['ppa_uid'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['ppa_details']['pwd'] = $storeDetails['ppa_pwd'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['ppc_details']['tid'] = $storeDetails['ppc_tid'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['ppc_details']['uid'] = $storeDetails['ppc_uid'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['ppc_details']['pwd'] = $storeDetails['ppc_pwd'];\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$updateArray[$i]['phone'][] = $updateArray[$i]['phone_1'];\r\n\t\t\t\t\t\t\t$updateArray[$i]['phone'][] = $updateArray[$i]['phone_2'];\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['phone_1']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['phone_2']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['location_id']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['location_name']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['address']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['ppa_uid']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['ppa_pwd']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['ppc_tid']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['ppc_uid']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['ppc_pwd']);\r\n\t\t\t\t\t\t\tunset($updateArray[$i]['billing_type']);\r\n\t\t\t\t\t\t\t$selectSchedule = \"SELECT * FROM `cp_store_timings` WHERE store_id =\".$storeDetails['mysql_id'];\r\n\t\t\t\t\t\t\t$resultSchedule = mysql_query($selectSchedule);\r\n\t\t\t\t\t\t\twhile($rowSchedule = mysql_fetch_assoc($resultSchedule)){\r\n\t\t\t\t\t\t\t\tif($rowSchedule['type'] == 7){\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['opening_time'][0] = $rowSchedule['opening_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['closing_time'][0] = $rowSchedule['closing_time'];\r\n\t\t\t\t\t\t\t\t}elseif($rowSchedule['type'] == 0){\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['opening_time'][1] = $rowSchedule['opening_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['closing_time'][1] = $rowSchedule['closing_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['opening_time'][2] = $rowSchedule['opening_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['closing_time'][2] = $rowSchedule['closing_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['opening_time'][3] = $rowSchedule['opening_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['closing_time'][3] = $rowSchedule['closing_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['opening_time'][4] = $rowSchedule['opening_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['closing_time'][4] = $rowSchedule['closing_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['opening_time'][5] = $rowSchedule['opening_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['closing_time'][5] = $rowSchedule['closing_time'];\r\n\t\t\t\t\t\t\t\t}elseif($rowSchedule['type'] == 6){\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['opening_time'][6] = $rowSchedule['opening_time'];\r\n\t\t\t\t\t\t\t\t\t$updateArray[$i]['schedule']['closing_time'][6] = $rowSchedule['closing_time'];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t $products = \"select pm.id, if(cpsp.display_name = '' or cpsp.display_name is null,\r\n\t\t\t\t pm.display_name, cpsp.display_name) name, pm.sequence, \r\n\t\t\t\t cpsp.store_id, pm.code, if(cpsp.price is null, pm.price,if(cpsp.price = 0, 'R' , cpsp.price)) price, \r\n\t\t\t\t ctm.name tax, ctm.id tax_id, crm.name category, crm.id as category_id, ctm.rate tax_rate, \r\n pm.packaging, pm.is_coc, pm.is_foe, pm.is_web, pm.product_image image, cpsp.base_price_per, cpsp.service_charge_per\r\n\t\t\t\t\t\t\t\t from product_master pm\r\n\t\t\t\t\t\t\t\t LEFT JOIN cp_product_store_price cpsp on cpsp.product_id = pm.id and cpsp.store_id = \".$storeDetails['mysql_id'].\" and cpsp.active = 'Y'\r\n\t\t\t\t\t\t \t LEFT JOIN cp_tax_master ctm on ctm.id = if(cpsp.price is null, pm.tax,cpsp.tax_rate)\r\n\t\t\t\t\t\t\t\t LEFT JOIN cp_reference_master crm on crm.id = pm.type \r\n\t\t\t\t\t\t\t\t where pm.active = 'Y'\r\n\t\t\t\t\t\t\t\t order by pm.id asc\";\r\n\t\t\t\t\t\t\t$logger->trace(\"Query To Get All The Store Product From CPOS Database: \".$products);\r\n\t\t\t\t\t\t\t$productList = mysql_query($products);\r\n\t\t\t\t\t\t\t$j = 0;\r\n\t\t\t\t\t\t\twhile($innerRow = mysql_fetch_assoc($productList)){\t\r\n\t\t\t\t\t\t\t\t$productDetails = $innerRow;\r\n\t\t\t\t\t\t\t\t\tif(is_numeric($productDetails['price'])){\r\n\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['mysql_id'] = $productDetails['id']; \r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['sequence'] = $productDetails['sequence'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['code'] = $productDetails['code'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['name'] = $productDetails['name'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['price'] = $productDetails['price'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['tax']['id'] = $productDetails['tax_id'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['tax']['name'] = $productDetails['tax'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['tax']['rate'] = $productDetails['tax_rate'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['base_price_per'] = $productDetails['base_price_per'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['service_charge_per'] = $productDetails['service_charge_per'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['category']['id'] = $productDetails['category_id'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['category']['name'] = $productDetails['category'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['packaging'] = $productDetails['packaging'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['recipe_id'] = '';\r\n\t\t\t\t\t\t\t\t\t\tif(array_key_exists($storeDetails['mysql_id'], $productRecipeArray) && array_key_exists($productDetails['id'], $productRecipeArray[$storeDetails['mysql_id']])){\r\n\t\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['recipe_id'] = $productRecipeArray[$storeDetails['mysql_id']][$productDetails['id']] ;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['is_coc'] = $productDetails['is_coc'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['is_foe'] = $productDetails['is_foe'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['is_web'] = $productDetails['is_web'];\r\n\t\t\t\t\t\t\t\t\t\t$updateArray[$i]['menu_items'][$j]['image'] = $productDetails['image'];\r\n\t\t\t\t\t\t\t\t\t\t$j++;\r\n\t\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n \t$getStaff = \"SELECT ss.staff_id id, sm.code, sm.name name, sm.title_id, tm.name title_name FROM store_staff ss\r\n\t\t\t\t\t\t\t\t\t\t LEFT JOIN staff_master sm ON sm.id = ss.staff_id \r\n\t\t\t\t\t\t\t\t\t\t LEFT JOIN title_master tm ON tm.id = sm.title_id \r\n\t\t\t\t\t\t\t\t\t\t WHERE ss.store_id = '\".$storeDetails['mysql_id'].\"' AND ss.active = 'Y' AND sm.active = 'Y' AND tm.active = 'Y'\";\r\n\t\t\t\t\t\t\t$logger->trace(\"Query To Get All The Store Staff From CPOS Database: \".$getStaff);\r\n\t\t\t\t\t\t\t$staffList = mysql_query($getStaff);\r\n\t\t\t\t\t\t\t$k = 0;\r\n\t\t\t\t\t\t\twhile ($row = mysql_fetch_assoc($staffList)) {\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['store_staff'][$k]['mysql_id'] = $row['id'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['store_staff'][$k]['code'] = $row['code']; \r\n\t\t\t\t\t\t\t\t$updateArray[$i]['store_staff'][$k]['name'] = $row['name'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['store_staff'][$k]['title_id'] = $row['title_id'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['store_staff'][$k]['title_name'] = $row['title_name'];\r\n\t\t\t\t\t\t\t\t$k++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$getCustomer = \"SELECT isb.customer_id id, cm.name, cm.billing_type type \r\n\t\t\t\t\t\t\t\t\t\t\tFROM `isb_delivery` isb\r\n\t\t\t\t\t\t\t\t\t\t\tLEFT JOIN customer_master cm ON cm.id = isb.customer_id\r\n\t\t\t\t\t\t\t\t\t\t\tWHERE isb.store_id = '\".$storeDetails['mysql_id'].\"' AND isb.active = 'Y'\r\n\t\t\t\t\t\t\t\t\t\t\tGROUP BY isb.customer_id\";\r\n\t\t\t\t\t\t\t$customerList = mysql_query($getCustomer);\r\n\t\t\t\t\t\t\t$l = 0;\r\n\t\t\t\t\t\t\twhile ($row = mysql_fetch_assoc($customerList)) {\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['retail_customer'][$l]['id'] = $row['id'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['retail_customer'][$l]['name'] = $row['name']; \r\n\t\t\t\t\t\t\t\t$updateArray[$i]['retail_customer'][$l]['type'] = $row['type'];\r\n\t\t\t\t\t\t\t\t$l++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t$getCoupon = \"SELECT id, business_type, coupon_code, coupon_type, coupon_value,\r\n\t\t\t\t\t\t\t\t\t\t\tfrom_dt, to_dt, active \r\n\t\t\t\t\t\t\t\t\t\t\tFROM `cp_store_discount` \r\n\t\t\t\t\t\t\t\t\t\t\tWHERE store_id = '\".$storeDetails['mysql_id'].\"' AND active = 'Y'\r\n\t\t\t\t\t\t\t\t\t\t\t\";\r\n\t\t\t\t\t\t\t$couponList = mysql_query($getCoupon);\r\n\t\t\t\t\t\t\t$m = 0;\r\n\t\t\t\t\t\t\twhile ($row = mysql_fetch_assoc($couponList)) {\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['id'] = $row['id'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['business_type'] = $row['business_type']; \r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['coupon_code'] = $row['coupon_code'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['coupon_type'] = $row['coupon_type'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['coupon_value'] = $row['coupon_value'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['start_date'] = $row['from_dt'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['end_date'] = $row['to_dt'];\r\n\t\t\t\t\t\t\t\t$updateArray[$i]['discount_coupon'][$m]['active'] = $row['active'];\r\n\t\t\t\t\t\t\t\t$m++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t}\r\n\t\t\t$logger->trace(\"Array To Update Store In CouchDb: \".json_encode($updateArray)); \r\n\t\t\tif(count($_idList)>0){\r\n\t\t\t\tforeach ($_idList as $key => $value) {\r\n\t\t\t\t$res = $couch->deleteDoc($key)->setParam(array('rev'=>$value))->execute();\r\n\t\t\t\t$i++;\r\n\t\t\t}\r\n\t\t} \r\n\t$insertCounter = $i-$updateCounter;\r\n\tif (is_array($updateArray) && count($updateArray)>0){\r\n\t\t$result=$couch->saveDocument(true)->execute(array(\"docs\"=>$updateArray));\r\n \t\tif(array_key_exists('error', $result)){\r\n \t\t\t$logger->debug(\"ERROR:Store Not Updated IN CouchDb\");\r\n \t\t\t$html['error'] = true;\r\n\t\t\t$html['update'] = false;\r\n\t\t\t$html['msg'] = ERROR.' '.$result['error'];\r\n \t}\r\n \t\telse{\r\n \t\t\t$logger->debug(\"Store Updated Successfully IN CouchDb\");\r\n \t\t\t$html['error'] = false;\r\n\t\t\t$html['update'] = true;\r\n\t\t\t$html['msg'] = $html['msg'] = ($insertCounter>0 ? ($updateCounter==0 ? \"$insertCounter \".INSERT_SUCCESS.\"\" : \"$insertCounter \".INSERT_SUCCESS.\" AND $updateCounter \".UPDATE_SUCCESS.\"\" ) : \"$updateCounter \".UPDATE_SUCCESS.\"\");\r\n \t\t}\r\n\t}\r\n\t$result = json_encode($html,true);\r\n\t$logger->debug(\"End OF update Store Function\");\r\n\treturn $result;\r\n}", "title": "" }, { "docid": "3b6423e797eedfd32e5d99205095b29b", "score": "0.56900966", "text": "protected function _processGetStores()\n {\n $results = null;\n $error = null;\n $allStores = Mage::app()->getStores();\n if (!empty($allStores)) {\n $results = array();\n foreach ($allStores as $store) {\n if ($store->getIsActive()) {\n $results[] = $this->_buildStore($store);\n }\n }\n if (empty($results)) {\n // all stores are inactive\n $error = 'no sites available';\n }\n }\n else {\n $error = 'no sites available';\n }\n\n $resultSet = array(\n 'results' => $results,\n 'error' => $error,\n );\n\n return $resultSet;\n }", "title": "" }, { "docid": "85250454075d80a4ae6da7a75e19765a", "score": "0.56793696", "text": "public function getStoreIdentifier()\n {\n return $this->store_identifier;\n }", "title": "" }, { "docid": "613d3511a71905fa7f035cf03e48bce4", "score": "0.5678967", "text": "protected function _getStores()\n\t{\n\t\t$stores = Mage::getResourceModel('core/store_collection');\n\t\t$options = array(0 => $this->__('Global'));\n\n\t\tforeach($stores as $store) {\n\t\t\t$options[$store->getId()] = $store->getWebsite()->getName() . ': ' . $store->getName();\n\t\t}\n\n\t\treturn $options;\n\t}", "title": "" }, { "docid": "9dd2d3e4dd653ac7f5d5d5d01df09a74", "score": "0.5667648", "text": "public function getProductsByStoreId() {\n if (func_num_args() > 0) {\n $store_id = func_get_arg(0);\n try {\n $select = $this->select()\n ->setIntegrityCheck(false)\n ->from(array('pd' => 'products'))\n ->join(array('sd' => 'store_details'), 'pd.store_id=sd.store_id')\n ->where('pd.store_id=?', $store_id);\n $result = $this->getAdapter()->fetchAll($select);\n\n if ($result) {\n return $result;\n }\n } catch (Exception $e) {\n throw new Exception('Unable To retrieve data :' . $e);\n }\n }\n }", "title": "" }, { "docid": "3c2a508060ad42ad01bc7bbe9497429f", "score": "0.56562096", "text": "public function getStoreDetailsByLocation() {\n if (func_num_args() > 0) {\n $id = func_get_arg(0);\n try {\n $select = $this->select()\n ->setIntegrityCheck(false)\n ->from(array('sd' => 'store_details'))\n ->where('sd.store_location = ?', $id);\n\n $result = $this->getAdapter()->fetchAll($select);\n } catch (Exception $e) {\n throw new Exception('Unable To retrieve data :' . $e);\n }\n\n if ($result) {\n return $result;\n }\n }\n }", "title": "" }, { "docid": "06d04c02770f5f97ddcba1fcc24e5b65", "score": "0.56558925", "text": "public function lookupStoreIds($id)\n {\n return $this->_lookupIds(\n $id,\n self::INVOICE_PRINT_STORE_TABLE,\n 'store_id'\n );\n }", "title": "" }, { "docid": "b11386752c05a17e5c3c85d492139789", "score": "0.56420666", "text": "public function getStore()\n {\n if (!$this->hasData('store')) {\n $this->setStore(null);\n }\n return $this->_getData('store');\n }", "title": "" }, { "docid": "97ceee6cf4a886537492c391b99226e6", "score": "0.56385165", "text": "public function getCurrentStore();", "title": "" }, { "docid": "9a33ce0f52ec5c0b5d1a093f206d9c4b", "score": "0.5634185", "text": "public function setStoreId($storeId);", "title": "" }, { "docid": "027f2b245c0a444c216f4d7a4fc7f240", "score": "0.5633091", "text": "abstract protected function _getDataStore();", "title": "" }, { "docid": "9b25eb23548b06a47cf14b95452ce2da", "score": "0.562567", "text": "function getStore($storeId, $conn, $openLogFile){\n $retrieveStoreQuery = \"SELECT * FROM stores WHERE storeID='$storeId'\";\n $executeStoreQuery = mysqli_query($conn, $retrieveStoreQuery);\n $returnValue;\n if ( mysqli_num_rows($executeStoreQuery) > 0) {\n $store = mysqli_fetch_row($executeStoreQuery);\n $returnValue = [$store[0], $store[1], $store[2], $store[3], $store[4]];\n writeLog(\"Store '\".$store[1].\"' successfully retrieved\", $openLogFile);\n } else {\n writeLog(\"Store retrieval failed: \".mysqli_error($conn), $openLogFile);\n $returnValue = 0;\n }\n\n return json_encode($returnValue);\n \n }", "title": "" }, { "docid": "dd0cc47b383877174a3dc6c5a3cbde7a", "score": "0.5609852", "text": "public function getStores($storeLocatorId)\n {\n $select = $this->getConnection()->select()->from(\n $this->getTable($this->_storelocatorStoreTable),\n 'store_id'\n )->where(\n 'store_locator_id = ?',\n $storeLocatorId\n );\n return $this->getConnection()->fetchCol($select);\n }", "title": "" }, { "docid": "eface6a72bad7af9d16de16e6c9780b5", "score": "0.56023866", "text": "public function getStores($blockId)\r\n {\r\n $select = $this->getConnection()->select()->from(\r\n $this->getTable($this->_blockStoreTable),\r\n 'store_id'\r\n )->where(\r\n 'block_id = ?',\r\n $blockId\r\n );\r\n return $this->getConnection()->fetchCol($select);\r\n }", "title": "" }, { "docid": "998dfabe541eac85380e56301817143b", "score": "0.55982363", "text": "public function getStoreId()\n {\n return 0;\n }", "title": "" }, { "docid": "4e5300087ffa590a8416f1a91379f89c", "score": "0.5591571", "text": "public function getStoreId()\n {\n return $this->getParameter('storeId');\n }", "title": "" }, { "docid": "1e916cef9b85848be4846f6ee81e5557", "score": "0.55713844", "text": "public function getStore()\r\n {\r\n return $this->store;\r\n }", "title": "" }, { "docid": "8a9c7808bdcb66ea450ad1942b04e06b", "score": "0.5556022", "text": "public function getStoreInfo()\n {\n return $this->storeInfo;\n }", "title": "" }, { "docid": "fc31e93a890d00b106fabb3e53ffe4ba", "score": "0.55414456", "text": "protected function outputStoreData($stores) {\n\t\t$locations = array();\n\t\t$sidebarItems = array();\n\t\t$markerContent = array();\n\t\t$data = array('locations' => array());\n\n\t\tif (count($stores) > 0) {\n\t\t\tforeach ($stores as $store) {\n\t\t\t\t$locations[] = $store->toArray();\n\t\t\t\t$sidebarItems[] = $this->getSidebarItems($store->toArray());\n\t\t\t\t$markerContent[] = $this->getMarkerContent($store->toArray());\n\t\t\t}\n\n\t\t\t$data = array(\n\t\t\t\t'sidebarItems' => $sidebarItems,\n\t\t\t\t'markerContent' => $markerContent,\n\t\t\t\t'locations' => $locations\n\t\t\t);\n\t\t}\n\n\t\treturn json_encode($data);\n\t}", "title": "" }, { "docid": "26ecdab2c10c8528fc8a2f41ced4b391", "score": "0.5532029", "text": "protected function getStore()\n {\n return Mage::getSingleton('adminhtml/config_data')->getStore();\n }", "title": "" }, { "docid": "863e3b0880b73e361755f7a4072dd904", "score": "0.5523463", "text": "function casesGetStores()\n\t{\n\t\treturn array(\n\t\t\t'simple' => array(\n\t\t\t\t'output',\n\t\t\t\tarray(),\n\t\t\t\tarray( 'file' ),\n\t\t\t),\n\t\t\t'complexOutput' => array(\n\t\t\t\t'output',\n\t\t\t\tarray(\n\t\t\t\t\t'defaultgroup'\t=> '',\n\t\t\t\t\t'cachebase'\t\t=> JPATH_BASE . '/unittest/cache',\n\t\t\t\t\t'lifetime'\t\t=> 15 * 60,\t// minutes to seconds\n\t\t\t\t\t'storage'\t\t=> 'file',\n\t\t\t\t),\n\t\t\t\tarray( 'file' ),\n\t\t\t),\n\t\t\t'complexPage' => array(\n\t\t\t\t'page',\n\t\t\t\tarray(\n\t\t\t\t\t'defaultgroup'\t=> '',\n\t\t\t\t\t'cachebase'\t\t=> JPATH_BASE . '/unittest/cache',\n\t\t\t\t\t'lifetime'\t\t=> 15 * 60,\t// minutes to seconds\n\t\t\t\t\t'storage'\t\t=> 'file',\n\t\t\t\t),\n\t\t\t\tarray( 'file' ),\n\t\t\t),\n\t\t\t'complexView' => array(\n\t\t\t\t'view',\n\t\t\t\tarray(\n\t\t\t\t\t'defaultgroup'\t=> '',\n\t\t\t\t\t'cachebase'\t\t=> JPATH_BASE . '/unittest/cache',\n\t\t\t\t\t'lifetime'\t\t=> 15 * 60,\t// minutes to seconds\n\t\t\t\t\t'storage'\t\t=> 'file',\n\t\t\t\t),\n\t\t\t\tarray( 'file' ),\n\t\t\t),\n\t\t\t'complexCallback' => array(\n\t\t\t\t'callback',\n\t\t\t\tarray(\n\t\t\t\t\t'defaultgroup'\t=> '',\n\t\t\t\t\t'cachebase'\t\t=> JPATH_BASE . '/unittest/cache',\n\t\t\t\t\t'lifetime'\t\t=> 15 * 60,\t// minutes to seconds\n\t\t\t\t\t'storage'\t\t=> 'file',\n\t\t\t\t),\n\t\t\t\tarray( 'file' ),\n\t\t\t),\n\t\t);\n\t}", "title": "" }, { "docid": "88369e2adedec0e9b48cb7ee53827250", "score": "0.55221957", "text": "function init()\n\t{\n\t\t$storeId = isset($_GET['store'])? trim($_GET['store']): 0;\n\t\t\n\t\t$util = geoAddon::getUtil('storefront');\n\t\t$storeId = $util->storeIdFromString($storeId);\n\t\tif (!$storeId) {\n\t\t\t//no ID number found\n\t\t\t$util->exitStore();\n\t\t\treturn false;\n\t\t}\n\t\treturn $storeId;\n\t}", "title": "" }, { "docid": "f6e924d0528de34bed999d1fa8718874", "score": "0.5521423", "text": "public function getStore()\n\t{\n\t\treturn $this->hasOne(Store::class, ['id' => 'store_id']);\n\t}", "title": "" }, { "docid": "d8f96d1e0606be17501ebde200dd649c", "score": "0.5507723", "text": "public function getStores()\n {\n if (is_null($this->stores)) {\n /** @psalm-var ?list<stdClass> $data */\n $data = $this->raw(self::FIELD_STORES);\n if (is_null($data)) {\n return null;\n }\n $this->stores = StoreKeyReferenceCollection::fromArray($data);\n }\n\n return $this->stores;\n }", "title": "" }, { "docid": "d495c837af7659f6f7a28cf8e1feec30", "score": "0.5504819", "text": "public function getDataArray($storeId) \n {\n $selectLists = array();\n\n // If cache is set, use that\n if (isset($this->_cache[$storeId])) {\n return $this->_cache[$storeId];\n }\n\n // If login details not set, return empty list\n if (!$this->_config()->getUrlConsole($storeId) ||\n !$this->_config()->getUsername($storeId) ||\n !$this->_config()->getPassword($storeId)) {\n if (Mage::getStoreConfig('mailup_newsletter/mailup/enable_log', $storeId))\n Mage::log('Login details not complete - cannot retrieve lists');\n return $selectLists;\n }\n\n // Attempt login (return empty if fails)\n $wsSend = new MailUpWsSend($storeId);\n $accessKey = $wsSend->loginFromId();\n if ($accessKey === false) {\n if (Mage::getStoreConfig('mailup_newsletter/mailup/enable_log', $storeId))\n Mage::log('Login failed - cannot retrieve lists');\n return $selectLists;\n }\n\n // Attempt to make call to get lists from API\n require_once dirname(__DIR__) . \"/MailUpWsImport.php\";\n $wsImport = new MailUpWsImport($storeId);\n $xmlString = $wsImport->GetNlList();\n if (!$xmlString) {\n if (Mage::getStoreConfig('mailup_newsletter/mailup/enable_log', $storeId))\n Mage::log('MailUpWsImport got empty response when fetching lists even though login succeeded');\n return $selectLists;\n }\n\n // Try to decode response. If <Lists> is not in selection, then return\n $xmlString = html_entity_decode($xmlString);\n $startLists = strpos($xmlString, '<Lists>');\n // On XML error, $startLists will fail\n if ($startLists === false) {\n if (Mage::getStoreConfig('mailup_newsletter/mailup/enable_log', $storeId))\n Mage::log('MailUpWsImport got error response when fetching lists');\n return $selectLists;\n }\n\n // Extract lists and their groups from <List> section of response\n $endPos = strpos($xmlString, '</Lists>');\n $endLists = $endPos + strlen('</Lists>') - $startLists;\n $xmlLists = substr($xmlString, $startLists, $endLists);\n $xmlLists = str_replace(\"&\", \"&amp;\", $xmlLists);\n $xml = simplexml_load_string($xmlLists);\n foreach ($xml->List as $list) {\n $groups = array();\n foreach ($list->Groups->Group as $tmp) {\n $groups[(string)$tmp[\"idGroup\"]] = (string)$tmp[\"groupName\"];\n }\n $selectLists[(string)$list['idList']] = array(\n 'idList' => (string)$list['idList'],\n 'listName' => (string)$list['listName'],\n 'listGUID' => (string)$list['listGUID'],\n \"groups\" => $groups\n );\n }\n\n // Cache results as this is a success\n $this->_cache[$storeId] = $selectLists;\n\n return $selectLists;\n }", "title": "" }, { "docid": "38b35a729a0ba3bd6676c5713f8f5e01", "score": "0.55032617", "text": "protected function addStoresDataToItems($data)\n {\n $mainTableIdField = $this->_associatedEntitiesMap['store']['main_table_id_field'];\n\n foreach ($this as $item) {\n $linkedId = $item->getData($mainTableIdField);\n if (!isset($data[$linkedId]) || !$data[$linkedId]) {\n $item->setData('store_ids', [0]);\n continue;\n }\n\n $storeIdKey = array_search(Store::DEFAULT_STORE_ID, $data[$linkedId], true);\n if ($storeIdKey !== false) {\n $stores = $this->storeManager->getStores(false, true);\n $storeId = current($stores)->getId();\n $storeCode = key($stores);\n } else {\n $storeId = current($data[$linkedId]);\n $store = $this->storeManager->getStore($storeId);\n $storeCode = $store->getCode();\n }\n\n $item->setData('_first_store_id', $storeId)\n ->setData('store_code', $storeCode)\n ->setData('store_ids', $data[$linkedId]);\n }\n }", "title": "" }, { "docid": "998829e0f33e74612f14f11c20180310", "score": "0.54937863", "text": "public function getStoreCodes()\n {\n return $this->storeCodes;\n }", "title": "" }, { "docid": "06896e7c8c344dccf47a4c6a7e57e327", "score": "0.5492107", "text": "public function run()\n {\n $stores = [\n [\n 'user_id'=>1,\n 'contact_id'=>1,\n 'store_type_id'=>1,\n 'name'=>'Store 1',\n 'title'=>'Store 1',\n 'banner_message'=>'Store 1',\n 'slogan'=>'Store 1',\n 'mission'=>' Store 1',\n 'theme'=>' Store 1',\n 'desc'=>'Store 1',\n 'theme'=>'Store 1',\n 'logo_path'=>'Store 1 logo'\n ],\n [\n 'user_id'=>2,\n 'contact_id'=>2,\n 'store_type_id'=>2,\n 'name'=>'Store 2',\n 'title'=>'Store 2',\n 'banner_message'=>'Store 2',\n 'slogan'=>'Store 2',\n 'mission'=>'Store 2',\n 'theme'=>'Store 2',\n 'desc'=>'Store 2',\n 'theme'=>'Store 2',\n 'logo_path'=>'Store 2 logo'\n ],\n [\n 'user_id'=>3,\n 'contact_id'=>3,\n 'store_type_id'=>3,\n 'name'=>'Store 3',\n 'title'=>'Store 3',\n 'banner_message'=>'Store 3',\n 'slogan'=>'Store 3',\n 'mission'=>'Store 3',\n 'theme'=>'Store 3',\n 'desc'=>'Store 3',\n 'theme'=>'Store 3',\n 'logo_path'=>'Store 3 logo'\n ],\n [\n 'user_id'=>4,\n 'contact_id'=>4,\n 'store_type_id'=>4,\n 'name'=>'Store 4',\n 'title'=>'',\n 'banner_message'=>'Store 4',\n 'slogan'=>'Store 4',\n 'mission'=>'Store 4',\n 'theme'=>'Store 4',\n 'desc'=>'Store 4',\n 'theme'=>'Store 4',\n 'logo_path'=>'Store 4 logo'\n ],\n [\n 'user_id'=>5,\n 'contact_id'=>5,\n 'store_type_id'=>5,\n 'name'=>'Store 5',\n 'title'=>'Store 5',\n 'banner_message'=>'Store 5',\n 'slogan'=>'Store 5',\n 'mission'=>'Store 5',\n 'theme'=>'Store 5',\n 'desc'=>'Store 5',\n 'theme'=>'Store 5',\n 'logo_path'=>'Store 5 logo'\n ],\n [\n 'user_id'=>6,\n 'contact_id'=>6,\n 'store_type_id'=>6,\n 'name'=>'Store 6',\n 'title'=>'Store 6',\n 'banner_message'=>'Store 6',\n 'slogan'=>'Store 6',\n 'mission'=>'Store 6',\n 'theme'=>'Store 6',\n 'desc'=>'Store 6',\n 'theme'=>'Store 6',\n 'logo_path'=>'Store 6 logo'\n ],\n [\n 'user_id'=>7,\n 'contact_id'=>7,\n 'store_type_id'=>7,\n 'name'=>'Store 7',\n 'title'=>'Store 7',\n 'banner_message'=>'Store 7',\n 'slogan'=>'Store 7',\n 'mission'=>'Store 7',\n 'theme'=>'Store 7',\n 'desc'=>'Store 7',\n 'theme'=>'Store 7',\n 'logo_path'=>'Store 7 logo'\n ],\n [\n 'user_id'=>8,\n 'contact_id'=>8,\n 'store_type_id'=>8,\n 'name'=>'Store 8',\n 'title'=>'Store 8',\n 'banner_message'=>'Store 8',\n 'slogan'=>'Store 8',\n 'mission'=>'Store 8',\n 'theme'=>'Store 8',\n 'desc'=>'Store 8',\n 'theme'=>'Store 8',\n 'logo_path'=>'Store 8 logo'\n ],\n [\n 'user_id'=>9,\n 'contact_id'=>9,\n 'store_type_id'=>9,\n 'name'=>'Store 9',\n 'title'=>'Store 9',\n 'banner_message'=>'Store 9',\n 'slogan'=>'Store 9',\n 'mission'=>'Store 9',\n 'theme'=>'Store 9',\n 'desc'=>'Store 9',\n 'theme'=>'Store 9',\n 'logo_path'=>'Store 9 logo'\n ],\n [\n 'user_id'=>10,\n 'contact_id'=>10,\n 'store_type_id'=>10,\n 'name'=>'Store 10',\n 'title'=>'Store 10',\n 'banner_message'=>'Store 10',\n 'slogan'=>'Store 10',\n 'mission'=>'Store 10',\n 'theme'=>'Store 10',\n 'desc'=>'Store 10',\n 'theme'=>'Store 10',\n 'logo_path'=>'Store 10 logo'\n ]\n ];\n\n\n foreach ($stores as $key => $value) {\n # code...\n Store::create($value);\n }\n }", "title": "" }, { "docid": "dd0baf3f5ff69bca394fb40c65ca927d", "score": "0.5479065", "text": "public function getStore()\n\t{\n\t\treturn $this->store;\n\t}", "title": "" }, { "docid": "76eb989f4b924db942734622fb6b0c99", "score": "0.5475669", "text": "public function getListStore()\n {\n\n $storeModel = new Store();\n $stores = $storeModel->getListStore();\n $this->data['stores'] = $stores;\n\n return view('admin.store_list', $this->data);\n }", "title": "" }, { "docid": "864d6df497d00696d9a76569564fd865", "score": "0.54746455", "text": "public function getStore()\n {\n return $this->store;\n }", "title": "" }, { "docid": "2bad0b4295d439c4543a9c155374479d", "score": "0.54593194", "text": "protected function getSameWebsiteStores(): array\n {\n /** @var string[] $stores */\n $stores = [];\n /** @var Website $website */\n $website = $this->_storeManager->getWebsite();\n /** @var Store[] $group */\n foreach ($website->getGroups() as $group) {\n /** @var Group $group */\n foreach ($group->getStores() as $store) {\n $stores[] = $store;\n }\n }\n\n return $stores;\n }", "title": "" }, { "docid": "f539bfbb96b43af3c1af7f06d8db7ff1", "score": "0.54577565", "text": "public function get_store_data($type)\r\n\t{\r\n\t}", "title": "" }, { "docid": "e02a203157a818ea6662f6d9789eedc0", "score": "0.5451113", "text": "public function stores()\n {\n return $this->hasMany(Store::class);\n }", "title": "" }, { "docid": "d91ddb06d32628a8fc8f583274b325c3", "score": "0.5450774", "text": "function getStore()\n\t{\n\t\t$this->debug(5,\"getStore()\");\n\t\treturn $this->store;\n\t}", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "3579799e4dc8ed4919ebe794082591f1", "score": "0.0", "text": "public function index()\n {\n //\n }", "title": "" } ]
[ { "docid": "1d35b0b22ac44c3da96756e129561d1e", "score": "0.7596873", "text": "protected function listAction()\n {\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->config['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'));\n\n return $this->render('@EasyAdmin/list.html.twig', array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'view' => 'list',\n ));\n }", "title": "" }, { "docid": "0da19d65b0ae22a9a9aea8c7d8f9691e", "score": "0.74184996", "text": "public function listAction()\n { $resources = $this->fetchResourcesAndIiifUrls();\n if (!count($resources)) {\n return $this->jsonError(new NotFoundException, \\Laminas\\Http\\Response::STATUS_CODE_404);\n }\n\n $query = $this->params()->fromQuery();\n $version = $this->requestedVersion();\n $currentUrl = $this->url()->fromRoute(null, [], ['query' => $query, 'force_canonical' => true], true);\n\n $iiifCollectionList = $this->viewHelpers()->get('iiifCollectionList');\n try {\n $manifest = $iiifCollectionList($resources, $version, $currentUrl);\n } catch (\\IiifServer\\Iiif\\Exception\\RuntimeException $e) {\n return $this->jsonError($e, \\Laminas\\Http\\Response::STATUS_CODE_400);\n }\n\n return $this->iiifJsonLd($manifest, $version);\n }", "title": "" }, { "docid": "7f885ee63d7fde5e395eeff7eff36f82", "score": "0.7408405", "text": "public function indexAction()\r\n {\r\n $limit = $this->Request()->getParam('limit', 1000);\r\n $offset = $this->Request()->getParam('start', 0);\r\n $sort = $this->Request()->getParam('sort', []);\r\n $filter = $this->Request()->getParam('filter', []);\r\n\r\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\r\n\r\n $this->View()->assign(['success' => true, 'data' => $result]);\r\n }", "title": "" }, { "docid": "5312faff5fa7125f9c939e21e4cc3413", "score": "0.72905934", "text": "public function listAction() {\n // Handle saving of a create/edit first, so it will reflect in the list\n $this->handleSave();\n\n // Process list now\n $this->headings = $this->getListHeadings();\n\n $rows = array();\n if ($this->module) {\n $res = $this->_getApi()->getList($this->module);\n $rows = $this->getListRows($res);\n }\n\n $this->rows = $rows;\n }", "title": "" }, { "docid": "db3decb51890b80d45fe4f716c97523a", "score": "0.71218187", "text": "public function list() {\n\t\t$this->protectIt( 'read' ); \n\t\tsetTitle( 'Listagem' );\n\t\t\n\t\t// Carrega o grid\n\t\tview( 'grid/grid' );\n\t}", "title": "" }, { "docid": "da70bb19a6c8e0562a0e54373a840197", "score": "0.7119305", "text": "public function index()\n {\n $list = $this->resouce->listResource();\n $tree = Helper::menuTree($list, true);\n $list = Helper::multiArrayToOne($tree);\n $this->setResponse($list);\n return $this->response();\n }", "title": "" }, { "docid": "3ebc7b4fb8651186fc87d5fb5cb8b455", "score": "0.7118158", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('VMBResourceBundle:Resource')->findAllByDate();\n\n return $this->render('VMBResourceBundle:Resource:index.html.twig', array(\n 'mainTitle' => $this->get('translator')->trans('resource.browse'),\n\t\t\t'addButtonUrl' => $this->generateUrl('resource_new'),\n 'entities' => $entities\n ));\n }", "title": "" }, { "docid": "405b6604e6bba890cbf7539c671390f5", "score": "0.70995116", "text": "public function list() {\n return $this->render(\"/sandwich/list.html.twig\");\n }", "title": "" }, { "docid": "8abbd6fc2b8eb9c6981a14c1d833bc3f", "score": "0.7087527", "text": "function list() {\n $data = $this->handler->handleList();\n\n $page = new Page(\"Applicants\", \"Applicants\");\n $page->top();\n\n listView($data);\n\n $page->bottom();\n }", "title": "" }, { "docid": "05a3a1abee5cdb637e4ecb2bed78f793", "score": "0.7044714", "text": "public function index() {\n ${$this->resources} = $this->model->orderBy('created_at', 'DESC')\n ->paginate(Variables::get('items_per_page'));\n\n return view($this->view_path . '.index', compact($this->resources));\n }", "title": "" }, { "docid": "abe6de6ae60572e5912b850a19d1d680", "score": "0.7037733", "text": "public function actionIndex()\r\n {\r\n $searchModel = new ResourceSearch();\r\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\r\n\r\n return $this->render('index', [\r\n 'searchModel' => $searchModel,\r\n 'dataProvider' => $dataProvider,\r\n ]);\r\n }", "title": "" }, { "docid": "6bcdfec0867dafc8b42448cdcf9d2175", "score": "0.70293266", "text": "public function index(){\n $this->show_list();\n }", "title": "" }, { "docid": "6151a50f557e88b87eb8f70be8393002", "score": "0.7028584", "text": "public function index()\n\t{\n\t\t$resources = Resource::latest()->get();\n\t\treturn view('admin.resources.index', compact('resources'));\n\t}", "title": "" }, { "docid": "6ebebdc63fae4da7ebeb3b9b7f417cd2", "score": "0.7014356", "text": "public function list()\n\t\t{\n\t\t\tglobal $app;\n\t\t\t$sth = $this->PDO->prepare(\"SELECT * FROM cars\");\n\t\t\t$sth->execute();\n\t\t\t$result = $sth->fetchAll(\\PDO::FETCH_ASSOC);\n\t\t\t$app->render('default.php',[\"data\"=>$result],200); \n\t\t}", "title": "" }, { "docid": "f92d52acde121c57bdf5619d33199871", "score": "0.69987994", "text": "public function index()\n {\n $resources = Resource::all();\n return view('resource.index', compact('resources'));\n }", "title": "" }, { "docid": "03aab1a3d0f29df3c9c01f676da4d986", "score": "0.69908047", "text": "public function index()\n\t{\n\t\t$this->listing('recent');\n\t}", "title": "" }, { "docid": "613162e5b8bb35685ca245a33b184f09", "score": "0.6918154", "text": "public function index()\n {\n $is_paginated = $this->request->query(\\Config::get('resource.type','resource-type'),'paginated') != 'collection';\n $result = $is_paginated ? $this->_indexPaginate() : $this->_indexCollection() ;\n\n $meta = $this->getMeta($this->resource,$result);\n\n return response()->resource($result,$this->getTransformer(),[ 'message' => $this->getMessage('index'), 'meta' => $meta ]);\n }", "title": "" }, { "docid": "79739617940af1c1c53e8d6ecec053f2", "score": "0.69099164", "text": "public function listAction()\n {\n $this->view->pageTitle = \"Document List\";\n \n $service = new App_Service_DocumentService();\n $this->view->docs = $service->getDocuments();\n \n $this->setPartial();\n }", "title": "" }, { "docid": "adb2cfce1206f7acf8cb4580fd08df71", "score": "0.6909121", "text": "public function index()\n {\n return DishResource::collection(Dish::paginate());\n }", "title": "" }, { "docid": "ce9698986cea138f641a36279605e7e0", "score": "0.6898258", "text": "public function index()\n {\n return InfoResource::collection(Resource::paginate(30));\n }", "title": "" }, { "docid": "35b022b0a4b421fcb5624635dcd9fe8f", "score": "0.6869782", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oDocModel = new model_doc();\n\t\t$tDocs = $oDocModel->findAll();\n\n\t\t$oView = new _view('docs::list');\n\t\t$oView->tDocs = $tDocs;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "30eced964887c2aef75a368b0de6cca4", "score": "0.683872", "text": "public function index()\n\t{\n // Set the sistema locale configuration.\n $this->set_locale();\n \n\t\t$this->_template(\"{$this->_controller}/list\", $this->_get_assets('list', $this->data));\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.6829548", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "a050363540859438f2bfba3e253e49b6", "score": "0.6825998", "text": "public function index()\n {\n //\n $resources = Resource::all();\n return view('resources.index', compact('resources'));\n }", "title": "" }, { "docid": "2e1081176934c84955413f91a6d6b5aa", "score": "0.6822386", "text": "public function index()\n\t{\n\t\t$listings = $this->listing->all();\n\n\t\treturn View::make('listings.index', compact('listings'));\n\t}", "title": "" }, { "docid": "e39e490f9dd6d2633e939500f416862a", "score": "0.68211234", "text": "protected function listAction()\n {\n return $this->renderForm('list');\n }", "title": "" }, { "docid": "06d2b70f0a929084bcd3d1ce8021741e", "score": "0.6812034", "text": "public function index()\n {\n $resource = Resource::leftjoin('categories', 'resources.resource_category_id', '=', 'categories.category_id')\n ->leftjoin('sub_categories', 'resources.resource_sub_category_id', '=', 'sub_categories.sub_category_id')\n ->leftjoin('sources', 'resources.resource_source_id', '=', 'sources.source_id')\n ->leftjoin('authors', 'resources.resource_author_id', '=', 'authors.author_id')\n ->orderBy('resources.created_at', 'desc')->get();\n\n $view_data = [\n 'resource' => $resource,\n ];\n\n return view('resource.index', $view_data);\n }", "title": "" }, { "docid": "a07e724e196f9b0fd9d1230bd447f5bf", "score": "0.68106884", "text": "public function index()\n {\n return view('backend.resource.index');\n }", "title": "" }, { "docid": "620b35ada66373ffe1f703e36235dc33", "score": "0.68044376", "text": "public function listAction() {\n\t\t$all = $this->users->findAll();\n\t\t$this->views->add('users/list-all', [\n\t\t\t\t'users' => $all, \n\t\t\t\t'title' => \"Visa alla användare\"\n\t\t\t]);\n\t}", "title": "" }, { "docid": "aa8d3c35a6d3df3c02417b793ad19e32", "score": "0.6799941", "text": "public function actionList() {\r\n\t\t$model = $this->model;\r\n\t\t$items = $model->doList($this->paramsArray);\r\n\t\t$fields = true;\r\n\t\tif (isset($this->paramsArray['fields'])) {\r\n\t\t\t$fields = $this->paramsArray['fields'];\r\n\t\t}\r\n\t\t$itemsAr = ActiveRecord::makeArray($items, $fields);\r\n\t\t$this->respond(200, array(\"result\"=>$itemsAr, \"timestamp\"=>time()));\r\n\t}", "title": "" }, { "docid": "796201f21ca0c2d35a132ef98fbfa143", "score": "0.6793618", "text": "public function listAction()\n {\n $this->init(); // TODO: create a controller listener to call it automatically\n\n $polls = $this->pollEntityRepository->findBy(\n array('published' => true, 'closed' => false),\n array('createdAt' => 'DESC')\n );\n\n return $this->render('PrismPollBundle:Frontend\\Poll:list.html.twig', array(\n 'polls' => $polls\n ));\n }", "title": "" }, { "docid": "09027ea66bbe9d5f56484038f519de35", "score": "0.6787082", "text": "public function index()\n {\n return view('visitor.resources.index', [\n 'resources' => $this->resourceService->all()\n ]);\n }", "title": "" }, { "docid": "1b9b93c758b801d7f44b3b35dcb70a84", "score": "0.67787373", "text": "public function index()\n {\n return RedResponse::success(Todo::getListWithPage($this->requestObj));\n }", "title": "" }, { "docid": "06886aeb949a8582132f62e7cd3ac34f", "score": "0.677748", "text": "public function actionList()\n {\n $data=array();\n $looks = new Looks('search');\n $looks->unsetAttributes();\n if ( isset($_GET['Looks']) ) {\n $looks->attributes = $_GET['Looks'];\n }\n \n \t\t$users_all = Users::model()->findAll(\"status=:status\", array(':status'=>Users::STATUS_PUBLISH));\n \t\t$data['users'] = CHtml::listData($users_all, 'id', 'fullNameWithId');\n\n \n $this->render('list', array(\n 'model' => $looks,\n 'data'=>$data,\n )); \n }", "title": "" }, { "docid": "f8555ba3dc23008cd0a0c16a4559a6f8", "score": "0.67767936", "text": "public function showAll() {\n echo json_encode([\"MSG\" => $this->rest->showAll(), \"CODE\" => 200]);\n }", "title": "" }, { "docid": "989e888f453ad4e6aca439789fa4e466", "score": "0.6764753", "text": "public function actionList()\n {\n\t\t//$client->connect();\n\t\t\n\t $request = Yii::$app->request;\n\n\t $page = (!empty($request->get('page'))) ? $request->get('page') : 1;\n\n\t $blogService = new BlogService();\n\t $result = $blogService->getList($page);\n\n\t $pages = new Pagination(['totalCount' => $result['total']]);\n\n return $this->render('list', [\n 'models' => $result['blogs'],\n 'pages' => $pages,\n ]);\n }", "title": "" }, { "docid": "39872964f7d5564e8285c3a9fe12f919", "score": "0.67504454", "text": "function index() {\n $this->addBreadcrumb(lang('List'));\n \n $per_page = 10;\n $page = $this->getPaginationPage();\n \n if (!$this->active_category->isNew()) {\n list($files, $pagination) = Files::paginateByCategory($this->active_category, $page, $per_page, STATE_VISIBLE, $this->logged_user->getVisibility());\n } else {\n list($files, $pagination) = Files::paginateByProject($this->active_project, $page, $per_page, STATE_VISIBLE, $this->logged_user->getVisibility());\n } // if\n \n $this->smarty->assign(array(\n 'files' => $files,\n 'pagination' => $pagination,\n 'categories' => Categories::findByModuleSection($this->active_project, 'files', 'files'),\n 'pagination_url' => assemble_url('mobile_access_view_files', array('project_id' => $this->active_project->getId())),\n 'page_back_url' => assemble_url('mobile_access_view_project', array('project_id' => $this->active_project->getId())),\n ));\n }", "title": "" }, { "docid": "92aaa491ca5099382123536e546b9aa3", "score": "0.67480475", "text": "public function listAction()\n {\n $article_manager = $this->getDI()->get(\n 'core_article_manager'\n );\n \n // Sisipkan hasil query/find ke dalam variabel articles\n // Secara default, view yang dipanggil adalah Views/Default/article/list.volt\n $this->view->articles = $article_manager->find();\n }", "title": "" }, { "docid": "782e995121f434d308103646571fa51f", "score": "0.6743787", "text": "public function index()\n {\n return Resource::with('location')\n ->orderBy('name')\n ->get();\n }", "title": "" }, { "docid": "b9bc7c6f98f5ba96d276b3ad631acd74", "score": "0.67292553", "text": "public function index()\n {\n $statuses = Status::paginate(10);\n return StatusResource::collection($statuses);\n }", "title": "" }, { "docid": "c455819674d3f353cb9e20703ef52803", "score": "0.67255723", "text": "public function index()\n {\n $this->list_view();\n }", "title": "" }, { "docid": "244a81dd1c2b337ec541d21216bf2674", "score": "0.67227656", "text": "public function index(Request $request)\n {\n $this->authorize('list', $this->resourceType);\n\n $search = $request->get('q');\n $order = $request->get('order');\n\n $resources = $this->getRepository()->index($search, $order);\n\n return $this->view('index')\n ->with('type', $this->resourceType)\n ->with('instance', $this->instance)\n ->with('resources', $resources);\n }", "title": "" }, { "docid": "df0d6207611fb7003570319e39a4393e", "score": "0.67204595", "text": "public function index()\n {\n $data = Product::paginate(10);\n\t\treturn ProductResource::Collection($data);\n }", "title": "" }, { "docid": "0d8a9aedf606052ab1459ef7661d1186", "score": "0.6716726", "text": "public function index()\n {\n return ItemResource::collection($this->item->list());\n }", "title": "" }, { "docid": "0d159b9b5426dcb31868b3e360075031", "score": "0.6715198", "text": "public function indexAction() {\n\t\t$perpage = $this->perpage;\n\t\t$page = intval($this->getInput('page'));\n\t\t$title = $this->getInput('title');\n\t\t$status = intval($this->getInput('status'));\n\t\tif ($page < 1) $page = 1;\n\t\t\n\t\t$params = array();\n\t\t$search = array();\n\t\tif($title) {\n\t\t\t$search['title'] = $title;\n\t\t\t$params['title'] = array('LIKE', $title);\n\t\t}\n\t\tif($status) {\n\t\t\t$search['status'] = $status;\n\t\t\t$params['status'] = $status - 1;\n\t\t}\n\t\t$params['ad_type'] = $this->ad_type;\n\t list($total, $ads) = Client_Service_Ad::getCanUseAds($page, $perpage, $params);\n\t\t$this->assign('search', $search);\n\t\t$this->assign('ads', $ads);\n\t\t$this->assign('postion', $this->postion);\n\t\t$this->assign('ad_ptype', $this->ad_ptype);\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($search) . '&';\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\n\t\t$this->assign(\"total\", $total);\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "1c447ea38f47ee196c9862f06d62be13", "score": "0.66989833", "text": "public function index() {\n // Get all records\n $inventories = Inventory::all();\n // Return a list of inventories as a resource\n return InventoryResource::collection($inventories);\n }", "title": "" }, { "docid": "8232f091751d390d26007fa44c243d15", "score": "0.66985327", "text": "public function ListView()\r\n\t{\r\n\t\t$this->Render();\r\n\t}", "title": "" }, { "docid": "b4a4bae274dd96e096b8b4dd55f07244", "score": "0.6691387", "text": "public function index()\n {\n $listInventory = DB::table('inventory')\n ->join('loker', function ($join) {\n $join->on('inventory.id', '=', 'loker.inventory_id')\n ->where('inventory.status_id', 1);\n })->select('*')->get();\n\n // $listInventory = Inventory::all();\n\n return $this->sendResponse(InventoryResource::collection($listInventory), 'List inventory retrieved successfully.');\n\n // return response(['listInventory' => InventoryResource::collection($listInventory), 'message' => 'Retrieved successfully'], 200);\n\n // return response()->json([\n // 'success' => true,\n // 'message' => 'Inventory List',\n // 'data' => $listInventory\n // ]);\n }", "title": "" }, { "docid": "d22f89e9d6b27f65524503cb66269ec3", "score": "0.6684074", "text": "public function index()\n {\n return StudentResource::collection(Student::paginate());\n }", "title": "" }, { "docid": "d6319a190b91d60006c656ee0a40d758", "score": "0.66839117", "text": "public function index()\n {\n $recipes = Recipe::all();\n return RecipeResource::collection($recipes);\n }", "title": "" }, { "docid": "8c7eaa14947e3fc2a24fd3541c974e98", "score": "0.6681884", "text": "function Index()\r\n\t\t{\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data[num_rows] = $parameters[num_rows];\r\n\t\t}", "title": "" }, { "docid": "dc37386e4ee63037decda6f08247fdd5", "score": "0.6672321", "text": "public function listAction() {\n $id = $this->_getParam('id', null);\n \n $this->view->listname = $id;\n $this->view->tasks = $this->service->getTasksFromList($id);\n }", "title": "" }, { "docid": "145c8599914d7576e7404163ccf8b519", "score": "0.66572666", "text": "public function index()\n {\n $this->data['action_name'] = 'List';\n $this->data['rows'] = $this->crud_model::all();\n return view($this->crud_view . '.index', $this->data);\n }", "title": "" }, { "docid": "0fb116b141476b8f916bb11b2f5f58d7", "score": "0.6649448", "text": "public function index()\n {\n $items = Item::paginate();\n\n return $this->sendResponse(new ItemsCollection($items), 'Items retrieved successfully.');\n }", "title": "" }, { "docid": "e3a22916f65a2ec228b5e3965c154843", "score": "0.6648183", "text": "public function index()\n {\n return ClientResource::collection(Client::paginate(20));\n }", "title": "" }, { "docid": "8d187ee99e2e1fd8633cee90820af4b0", "score": "0.6647199", "text": "protected function run_list() {\n\t\treturn $this->render_template($this->get_template(), ['objects' => $this->get_model()->get()]);\n\t}", "title": "" }, { "docid": "22d91bbe1074dab71958a7841af08295", "score": "0.6643972", "text": "public function index()\n {\n $this->global['pageTitle'] = 'List Sparepart - '.APP_NAME;\n $this->global['pageMenu'] = 'List Sparepart';\n $this->global['contentHeader'] = 'List Sparepart';\n $this->global['contentTitle'] = 'List Sparepart';\n $this->global ['role'] = $this->role;\n $this->global ['name'] = $this->name;\n $this->global ['repo'] = $this->repo;\n \n $data['readonly'] = $this->readonly;\n $data['classname'] = $this->cname;\n $data['url_list'] = base_url($this->cname.'/list/json');\n $this->loadViews($this->view_dir.'index', $this->global, $data);\n }", "title": "" }, { "docid": "076caa2f864fc2268b0d4d47a19486ab", "score": "0.66425085", "text": "public function index()\n {\n return ProductResource::collection(\n Product::paginate(10)\n );\n }", "title": "" }, { "docid": "de506437ae33a70184040846dd276c78", "score": "0.66416246", "text": "public function index(Request $request)\n {\n $this->authorize('viewList', $this->getResourceModel());\n\n $paginatorData = [];\n $perPage = (int) $request->input('per_page', '');\n $perPage = (is_numeric($perPage) && $perPage > 0 && $perPage <= 100) ? $perPage : 15;\n if ($perPage != 15) {\n $paginatorData['per_page'] = $perPage;\n }\n $search = trim($request->input('search', ''));\n if (! empty($search)) {\n $paginatorData['search'] = $search;\n }\n $records = $this->getSearchRecords($request, $perPage, $search);\n $records->appends($paginatorData);\n\n return view($this->filterIndexView('_resources.index'), $this->filterSearchViewData($request, [\n 'records' => $records,\n 'search' => $search,\n 'resourceAlias' => $this->getResourceAlias(),\n 'resourceRoutesAlias' => $this->getResourceRoutesAlias(),\n 'resourceTitle' => $this->getResourceTitle(),\n 'perPage' => $perPage,\n ]));\n }", "title": "" }, { "docid": "30e45406c5ee243e6ad94d1aa4cbe67f", "score": "0.66305417", "text": "public function listAction()\n {\n $this->_helper->viewRenderer->setViewSuffix('txt');\n\n $model = new Default_Model_Action();\n $this->view->actions = $model->getAll();\n }", "title": "" }, { "docid": "d0295a3d33fcd89a347becc0a34dbe5c", "score": "0.6626129", "text": "public function index()\n {\n $specializations = Specialization::latest()->paginate(25);\n\n return SpecializationResource::collection($specializations);\n }", "title": "" }, { "docid": "25325ea5baf58fda0bdae7e51324bdd3", "score": "0.6625245", "text": "public function index()\n {\n //get tasks\n $tasks = Task::orderBy('id', 'asc')->paginate(100);\n\n //return the collection of tasks as a resource\n return TaskResource::collection($tasks);\n\n }", "title": "" }, { "docid": "0b40c32743cbb461753992a4b05fa545", "score": "0.662055", "text": "public function showlist()\n \t{\n \t\t$items = Item::all();\n \t\treturn view('item.list',array('items'=>$items,'page'=>'list'));\n \t}", "title": "" }, { "docid": "8e7a175a1d69fc1e276dbd290552b522", "score": "0.66002595", "text": "public function list(){\n\t\t$this->current->list();\n\t}", "title": "" }, { "docid": "5071a61b8379d3dbc27c9379480e9a8c", "score": "0.6599687", "text": "public function listAction()\n {\n $this->service->setPaginatorOptions($this->getAppSetting('paginator'));\n $page = (int)$this->param($this->view->translate('page'), 1);\n $propertyId = (int)$this->param($this->view->translate('propertyId'));\n $properties =$this->service\n ->retrieveAllPicturesByPropertyId($propertyId, $page);\n $this->view->pictures = $properties;\n $this->view->paginator = $this->service->getPaginator($page);\n $this->view->propertyId = $propertyId;\n }", "title": "" }, { "docid": "8aabf1b98b72ec9ef7738f5deae5172d", "score": "0.65963185", "text": "public function index()\n {\n return EntryResource::collection(Entry::all());\n //return AnswersResource::collection(Answer::all());\n }", "title": "" }, { "docid": "726d3e7e355e4d0b3bbadd1f2237a742", "score": "0.65945095", "text": "public function overviewAction()\n\t{\n\t\t$subSiteKey = '*';\n\t\tif (Site::isSiteRequest()) {\n\t\t\t$subSiteKey = Site::getCurrentSite()->getRootDocument()->getKey();\n\t\t}\n\t\t$language = $this->language;\n\n\t\t// Retrieve items from object list\n\t\t$newsList = new Object_Vacancy_List();\n\t\t$newsList->setOrderKey(\"date\");\n\t\t$newsList->setOrder(\"desc\");\n\t\t$newsList->setLocale($language);\n\t\tif (Site::isSiteRequest()) {\n\t\t\t$newsList->setCondition('subsites LIKE ? AND title != \"\"', '%' . $subSiteKey . '%');\n\t\t}\n\n\t\t$paginator = Zend_Paginator::factory($newsList);\n\t\t$paginator->setCurrentPageNumber($this->_getParam('page', 1));\n\t\t$paginator->setItemCountPerPage(10);\n\t\t$this->view->paginator = $paginator;\n\t}", "title": "" }, { "docid": "110b54105de1a0ec45cec206dbc35c67", "score": "0.65845126", "text": "public function index()\n {\n // needs to return multiple articles\n // so we use the collection method\n return TaskListResource::collection(Task::all());\n }", "title": "" }, { "docid": "8668ccc17814e06acdd730ecc3fa0dd2", "score": "0.65773076", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\tlist($total, $result) = Activity_Service_Fanli::getList($page, $perpage);\r\n\t\t\r\n\t\t$this->assign('result', $result);\r\n\t\t$this->cookieParams();\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl']));\r\n\t}", "title": "" }, { "docid": "b81dd94e271b0c84cd548a81ec7d984f", "score": "0.6575219", "text": "public function listAction()\n {\n if ($this->settings['listtype'] === 'x') {\n $projects = $this->projectRepostitory->findAll();\n } else {\n $projects = $this->projectRepostitory->findByStatus($this->settings['listtype']);\n }\n\n $this->view->assign('projects', $projects);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "bf0537679d083764e7d496b7e9f333b7", "score": "0.6550873", "text": "public function index(): View\n {\n $items = QueryBuilder::for(Resource::class)\n ->allowedFilters([\n 'name',\n 'is_facility',\n 'categories.id',\n 'groups.id',\n AllowedFilter::scope('flags', 'currentStatus'),\n ])\n ->defaultSort('name')\n ->allowedSorts(['name', 'description', 'is_facility'])\n ->paginate(15);\n\n $filterCategories = Category::orderBy('name')->pluck('name', 'id');\n $filterGroups = Group::orderBy('name')->pluck('name', 'id');\n $filterFlags = Flag::pluck('name', 'abbr');\n\n return view('resources.index')->with(compact([\n 'items',\n 'filterCategories',\n 'filterGroups',\n 'filterFlags',\n ]));\n }", "title": "" }, { "docid": "3cf2644fce763701f59cab74b93915e2", "score": "0.6540747", "text": "public function indexAction() {\n\t\t$request = $this->getRequest();\n\t\t$params = $request->getParams();\n\n\t\t$list = new List8D_Model_List;\n\t\t$list = $list->getById(1);\n\t\t\n\t\t$acl = new List8D_ACL;\n\t\t$this->view->list = $list;\n\t\t$this->view->aclresult = $acl->checkListACL($list);\n\n\t}", "title": "" }, { "docid": "ed961c9f0fcb9ad07a48b882d9df24ad", "score": "0.65403396", "text": "public function index()\n\t{\n\t\t$subResourceDetailLikes = $this->subResourceDetailLikeRepository->paginate(10);\n\n\t\treturn view('subResourceDetailLikes.index')\n\t\t\t->with('subResourceDetailLikes', $subResourceDetailLikes);\n\t}", "title": "" }, { "docid": "f1ecf3ea6ca691d8230bfd5de1a0c2bc", "score": "0.6537993", "text": "public function index()\n\t{\n\t\t$view = $this->start_view($this->section_url.'/be/list');\n\t\t\n\t\t// Type\n\t\tif($this->input->get('type') !== false && array_key_exists($this->input->get('type'),Kohana::config('example_3.types'))){\n\t\t\t$type = $this->input->get('type');\n\t\t} else {\n\t\t\t$type = 1;\n\t\t}\n\t\t\n\t\tlist($pagination, $data) = $this->list_data($type);\n\t\t\n\t\t$view->set_global('data', $data);\n\t\t$view->set_global('pagination', $pagination);\n\t\t\n\t\t// Set general info\n\t\t$view->set_global($this->section_details());\n\t\t\n\t\t// Type tab override\n\t\t$view->set_global('active_tab',$type);\n\t\t\n\t\t// Set Breadcrumb items\n\t\t$view->breadcrumbs = array(\n\t\t\t$this->section_url => $this->section_name,\n\t\t\t'' => 'Listing'\n\t\t);\n\t\t\n\t\t$this->render_view($view);\n\t}", "title": "" }, { "docid": "14cbe87d366063edc7062faf79058bc0", "score": "0.6533205", "text": "public function index()\n {\n return $this->response->paginator(Viewer::orderBy('id', 'desc')->paginate(10), new ViewerTransformer);\n }", "title": "" }, { "docid": "a29a971d51fcb42465841db6bd2a38ad", "score": "0.6532911", "text": "public function viewList() {\n\n\t\t$context = (isset($this->options['list_type'])) ? $this->options['list_type'] : 'list';\n\n\t\telgg_push_context($context);\n\n\t\t$items = $this->getItems();\n\t\t$options = $this->getOptions();\n\t\t$count = $this->getCount();\n\n\t\t$offset = elgg_extract('offset', $options);\n\t\t$limit = elgg_extract('limit', $options);\n\t\t$base_url = elgg_extract('base_url', $options, '');\n\t\t$pagination = elgg_extract('pagination', $options, true);\n\t\t$offset_key = elgg_extract('offset_key', $options, 'offset');\n\t\t$position = elgg_extract('position', $options, 'after');\n\n\t\tif ($pagination && $count) {\n\t\t\t$nav = elgg_view('navigation/pagination', array(\n\t\t\t\t'base_url' => $base_url,\n\t\t\t\t'offset' => $offset,\n\t\t\t\t'count' => $count,\n\t\t\t\t'limit' => $limit,\n\t\t\t\t'offset_key' => $offset_key,\n\t\t\t));\n\t\t}\n\n\t\t$html .= '<div class=\"elgg-list-container\">';\n\n\t\tif ($position == 'before' || $position == 'both') {\n\t\t\t$html .= $nav;\n\t\t}\n\n\t\t$list_attrs = elgg_format_attributes($this->getListAttributes());\n\n\t\t$html .= \"<ul $list_attrs>\";\n\n\t\tforeach ($items as $item) {\n\n\t\t\t$view = elgg_view_list_item($item, $options);\n\n\t\t\tif (!$view) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$has_items = true;\n\n\t\t\t$item_attrs = elgg_format_attributes($this->getItemAttributes($item));\n\n\t\t\t$html .= \"<li $item_attrs>$view</li>\";\n\t\t}\n\n\t\tif (!$has_items) {\n\t\t\t$html .= '<li class=\"elgg-list-placeholder\">' . elgg_echo('list:empty') . '</li>';\n\t\t}\n\n\t\t$html .= '</ul>';\n\n\t\tif ($position == 'after' || $position == 'both') {\n\t\t\t$html .= $nav;\n\t\t}\n\n\t\t$html .= '</div>';\n\n\t\telgg_pop_context();\n\n\t\treturn $html;\n\t}", "title": "" }, { "docid": "f1673a17c984cf24b6d574aa7a325e35", "score": "0.65327483", "text": "public function index()\n {\n return FlightResource::collection(Flight::paginate(15));\n }", "title": "" }, { "docid": "eb4bc3428c5096a035b8d71351d4f9c3", "score": "0.6529615", "text": "public function index()\n {\n //\n $units = Unit::paginate(10);\n return UnitResource::collection($units);\n }", "title": "" }, { "docid": "1e991a3059ff8a7aa8b4543e6d5ec071", "score": "0.652604", "text": "public function index()\n {\n $data['resources'] = CarModel::paginate($this->paginate_by);\n return view($this->base_view_path.'index', $data);\n }", "title": "" }, { "docid": "0aefb1879ed86536b4b0301bdcb431fb", "score": "0.65217865", "text": "public function indexAction() {\r\n\t\t$page = intval($this->getInput('page'));\r\n\t\t$ad_type = $this->getInput('ad_type');\r\n\t\t\r\n\t\t$perpage = $this->perpage;\r\n\t\t\r\n\t\t$search = array();\r\n\t\tif ($ad_type) $search['ad_type'] = $ad_type;\r\n\t\tlist($total, $ads) = Gou_Service_Ad::getList($page, $perpage, $search);\r\n\t\t$this->assign('ad_types', $this->ad_types);\r\n\t\t\r\n\t\t$this->assign('search', $search);\r\n\t\t$this->assign('ads', $ads);\r\n\t\t$this->cookieParams();\r\n\t\t$url = $this->actions['listUrl'].'/?' . http_build_query($search) . '&';\r\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $url));\r\n\t}", "title": "" }, { "docid": "f504aa8b0d4e26dbe40f10d29efd07da", "score": "0.6520624", "text": "public function index()\n {\n return $this->collection(\n $this->repository->all()\n );\n }", "title": "" }, { "docid": "84219766af32e7ff206e88dffca57430", "score": "0.65162116", "text": "public function index()\n {\n try {\n return $this->resp->ok(eRespCode::CAT_LISTED_200_00, new CategoryResourceCollection($this->categoryService->getAll()));\n } catch (Throwable $th) {\n Log::info($th);\n return $this->resp->guessResponse(eRespCode::_500_INTERNAL_ERROR);\n }\n }", "title": "" }, { "docid": "5439447ac88f8cc98dc7832990b07305", "score": "0.65154237", "text": "public function indexAction()\n {\n $this->display();\n\n }", "title": "" }, { "docid": "e1183ebde99a8d3c589ddd34164e88f0", "score": "0.65118366", "text": "public function index() {\n\t\t$this->all();\n\t}", "title": "" }, { "docid": "93a7ba35330c263ce449589f25157263", "score": "0.65116036", "text": "public function index()\n {\n $todos = Todo::latest()->get();\n return (new TodoResourceCollection($todos));\n }", "title": "" }, { "docid": "2277c0665c4148cb55e2e8ca37774962", "score": "0.6510777", "text": "public function index()\n {\n return ProductResource::collection(Product::paginate(20));\n }", "title": "" }, { "docid": "b04a0cb3fd073d7067244a0fe69ce396", "score": "0.65095365", "text": "public function index()\n {\n //get movies\n $movies = MoviesModel::paginate(10);\n\n //return collection of article as a resource\n return MoviesResource::collection($movies);\n }", "title": "" }, { "docid": "021eb06ebdab9fb37e6b65a67751a381", "score": "0.64975077", "text": "public function listData()\n {\n $catalog = DB::table($this->screen)->where('IsActive', '1')->paginate(15);\n\n $data['catalog'] = $catalog;\n return view('catalog.index', $data);\n }", "title": "" }, { "docid": "cbfc279e9e82aba8cb2814815737b9eb", "score": "0.64964104", "text": "public function listAction() {\n $users = $this->userRepository->findAll();\n $this->view->assign('users', $users);\n $this->view->render();\n }", "title": "" }, { "docid": "c0ac6b16fca466eabec5fae9f571583e", "score": "0.64929396", "text": "public function actionList() {\n\t\t$id = isset($_GET['id'])? $_GET['id'] : 'all';\n\n\t\tif(is_numeric($id))\n\t\t\t$list = CActiveRecord::model('X2List')->findByPk($id);\n\t\t\t\n\t\tif(isset($list)) {\n\t\t\t$model = new Contacts('search');\n\t\t\t$model->setRememberScenario('contacts-list-'.$id);\n\t\t\t//set this as the list we are viewing, for use by vcr controls\n\t\t\tYii::app()->user->setState('contacts-list', $id);\n\t\t\t$dataProvider = $model->searchList($id);\n\t\t\t$list->count = $dataProvider->totalItemCount;\n\t\t\t$list->save();\n\t\t\t\n\t\t\t$this->render('list',array(\n\t\t\t\t'listModel'=>$list,\n\t\t\t\t// 'listName'=>$list->name,\n\t\t\t\t// 'listId'=>$id,\n\t\t\t\t'dataProvider'=>$dataProvider,\n\t\t\t\t'model'=>$model,\n\t\t\t));\n\t\t\t\n\t\t} else {\n\t\t\tif($id == 'my')\n\t\t\t\t$this->redirect(array('/contacts/myContacts'));\n\t\t\t\t// $dataProvider = CActiveRecord::model('Contacts')->searchAll();\n\t\t\telseif($id == 'new')\n\t\t\t\t$this->redirect(array('/contacts/newContacts'));\n\t\t\t\t// $dataProvider = CActiveRecord::model('Contacts')->searchAll();\n\t\t\telse\n\t\t\t\t$this->redirect(array('/contacts/allContacts'));\n\t\t}\n\t}", "title": "" }, { "docid": "005629388e14797f6fdbc0ea8785e7ac", "score": "0.64864695", "text": "public function index()\n {\n $Products = products::orderby('created_at','desc')->paginate(40);\n return ProductsResource::collection($Products);\n }", "title": "" }, { "docid": "3e2e5ecfe76abe9cd2482096fab1fab6", "score": "0.64849615", "text": "public function index()\n {\n //\n $response = $this->rest->all();\n return $this->response(\n \"Menus Successfully Fetched.\",\n $response,\n Response::HTTP_OK\n );\n }", "title": "" }, { "docid": "837955b2fe169580b5216e269f283ee3", "score": "0.64833194", "text": "public function listAction()\n {\n $data = $this->getDm()->getRepository('AcmeDemoBundle:Widget')->findAll();\n $widgets = array();\n foreach($data as $v) {\n $widgets[] = $v;\n }\n\n $view = View::create(array('vendors' => $widgets));\n $view->setTemplate('AcmeDemoBundle:Widgets:list.html.twig');\n $view->setData(array('widgets' => $widgets));\n\n return $this->get('fos_rest.view_handler')->handle($view); \n }", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "a6688716096de732ac676d2606652404", "score": "0.785654", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "5781a2d120285a71e7e85b5a66be6d25", "score": "0.7830493", "text": "public function edit(Resource $resource)\n {\n return view('resources.edit')->with('resource', $resource);\n }", "title": "" }, { "docid": "aa97beee62e2049b01f82b2c70781d18", "score": "0.74702275", "text": "public function edit(Resource $resource)\n {\n if (session()->has('index-referer-url')) {\n session()->keep('index-referer-url');\n }\n\n return view('resources.edit')->with('resource', $resource);\n }", "title": "" }, { "docid": "06fbfb28b57b10ad3e552f17914cc366", "score": "0.7400024", "text": "public function edit(Request $request, $resource)\n { \n return view($this->editView)\n ->withForm($this->form()->setModel($resource))\n ->withName($this->name())\n ->withTitle($this->title())\n ->withActions($this->getActions())\n ->withRouteParameters(\n (array) $this->routeParameters('create', $resource)\n );\n }", "title": "" }, { "docid": "04c9b7d4ef866f36e89d6540166ef493", "score": "0.72182167", "text": "public function edit($resource, $action)\n {\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n abort(404, 'There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n }\n\n return view('resource-edit', [\n 'pageTitle' => 'Edit ' . ucwords($resource) . ' ' . ucwords($action) . ' Settings | TEvo Harvester',\n 'harvest' => $harvest,\n ]);\n }", "title": "" }, { "docid": "58505837b719ae51ea23d0844976dedc", "score": "0.7187909", "text": "public function editButton()\n {\n $entity = $this->entity;\n $resource = $this->entity->getResourceName();\n\n return new HtmlString(\n view(\n 'layouts.dashboard.presenters.resource.edit',\n compact('entity', 'resource')\n )->render()\n );\n }", "title": "" }, { "docid": "fd7d6fa05564d94ddfe2439eb1a68e36", "score": "0.7142101", "text": "public function edit($id)\r\n {\r\n $obj = $this->model->getObject($id);\r\n $formView = parent::getFormView(array($id));\r\n $formView->setPost($obj); \r\n $formView->show(); \r\n }", "title": "" }, { "docid": "b0265d02f79c0a87495c917bcb066d03", "score": "0.7117661", "text": "public function showeditAction()\r\n {\r\n $this->render('edit');\r\n }", "title": "" }, { "docid": "77b52a1680fa491d92522682bb1dab03", "score": "0.71057856", "text": "public function edit($id)\n {\n $resource = Resource::find($id);\n\n return view('resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "dc519a1d109593cfac33c1ecb77b69d6", "score": "0.70872986", "text": "public function edit($id)\n {\n $resource = Resource::findorfail($id);\n return view('resources.edit', ['resource'=>$resource]);\n }", "title": "" }, { "docid": "0181f4ab3b675f1e32e7436eec8db0b2", "score": "0.7084545", "text": "public function edit()\n {\n return view('management::edit');\n }", "title": "" }, { "docid": "839bff7657627eb0e9f3c735e392600c", "score": "0.7050094", "text": "public function editAction(){\n // Current PO to show.\n $currentSupplier = $this->request->getQuery('supplier', 'int');\n // Pass the general parameters to the view.\n $this->view->setVar('title', 'Supplier #' . $currentSupplier);\n $this->view->setVar('subtitle', 'dat dat dat');\n // @todo::: Define controls.\n $this->view->setVar('show_submit', TRUE);\n $this->view->setVar('submit_text', 'Submit');\n $this->view->setVar('show_cancel', TRUE);\n $this->view->setVar('cancel_text', \"Cancel\");\n $this->view->setVar('main_form_id', '');\n $this->view->setVar('exit_to', $this->url->getBaseUri() . 'po/search');\n }", "title": "" }, { "docid": "23425e32ade1f142faf8d64875349c14", "score": "0.7040009", "text": "function edit( $resource ){\n\n $order = get( 'orders', $resource );\n\n return view( 'admin/order/add_order', compact( 'order' ) );\n}", "title": "" }, { "docid": "eb85fc5f08fd4d7f2735a44b666998b1", "score": "0.7028445", "text": "public function renderEditForm()\n {\n // Take id from $_GET, fetch record, pass on record as $vars in array\n if (isset($_GET['book_id']) && (int)$_GET['book_id'] > 0 && !is_null(BookModel::get($_GET['book_id']))) {\n $book = BookModel::get($_GET['book_id']);\n return View::render(\n 'edit-book',\n [\n 'book' => $book\n ]\n );\n }\n }", "title": "" }, { "docid": "6102774974292f3760289857daf62d5e", "score": "0.70012975", "text": "public function editAction($id)\n {\n $entity = $this->findOr404($this->repository,array('id'=>$id));\n\n\n $editForm = $this->createForm($this->form, $entity);\n\n return $this->render($this->path_template.':edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'route_prefix' => $this->route_prefix\n ));\n }", "title": "" }, { "docid": "9fa88f8a8c6146d7915873c2976a0c19", "score": "0.69801927", "text": "public function edit(Resform $resform)\n {\n //\n }", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.69461113", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "38b4c2bcc5d6f933f82442e502068ae3", "score": "0.69461113", "text": "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "title": "" }, { "docid": "5528e9d735a1d9a4a8c37629a76211ee", "score": "0.69451904", "text": "public function show_editform() {\n $this->item_form->display();\n }", "title": "" }, { "docid": "14ceb6f06e6f144fe7b54f8bae8bbe21", "score": "0.6915208", "text": "public function edit()\n {\n return view('superadmin::edit');\n }", "title": "" }, { "docid": "901ccd53ce97c5a7d1966359f57043a4", "score": "0.6911893", "text": "public function edit()\n {\n return view('inpatient::edit');\n }", "title": "" }, { "docid": "901ccd53ce97c5a7d1966359f57043a4", "score": "0.6911893", "text": "public function edit()\n {\n return view('inpatient::edit');\n }", "title": "" }, { "docid": "f60e724dc93ad65b7bd2e7142b16eabc", "score": "0.6898411", "text": "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "title": "" }, { "docid": "9197e5f6646ab8a602e1ff00b9e41fb5", "score": "0.6884574", "text": "public function edit() {\n\t\tglobal $tpl;\n\n\t\t$this->initForm(\"edit\");\n\t\t$this->getValues();\n\n\t\t$tpl->setContent($this->form->getHTML());\n\t}", "title": "" }, { "docid": "be7762755fcfeef213c7106eb19a722a", "score": "0.68695116", "text": "public function edit()\n {\n return view('frontend::edit');\n }", "title": "" }, { "docid": "51a9f359ceb6df3625a9742305229a9b", "score": "0.68664306", "text": "public function action_edit()\n {\n if (!empty($this->m_partial)) {\n $this->partial($this->m_partial);\n\n return;\n }\n\n $node = $this->m_node;\n\n $record = $this->getRecord();\n\n if ($record === null) {\n $location = $node->feedbackUrl('edit', self::ACTION_FAILED, $record);\n $node->redirect($location);\n }\n\n // allowed to edit record?\n if (!$this->allowed($record)) {\n $this->renderAccessDeniedPage();\n\n return;\n }\n\n $record = $this->mergeWithPostvars($record);\n\n $this->notify('edit', $record);\n $res = $this->invoke('editPage', $record);\n\n $page = $this->getPage();\n $page->addContent($node->renderActionPage('edit', $res));\n }", "title": "" }, { "docid": "f4908ef32054735fdce9f1476c5fed8c", "score": "0.686215", "text": "public function edit()\n {\n return view('hethong::edit');\n }", "title": "" }, { "docid": "cb9340a304c83c3a9a371e60993460e3", "score": "0.6861588", "text": "public function edit()\n {\n $data['individual'] = $this->getIndividualSeminar();\n $this->load->view('Dashboard/header');\n $this->load->view('Seminar/edit', $data);\n $this->load->view('Dashboard/footer');\n }", "title": "" }, { "docid": "8848eef52013ec9c31efa5d9e1d9581d", "score": "0.6850277", "text": "public function edit()\n {\n //\n return view('editProfessor');\n }", "title": "" }, { "docid": "326743aa2b21211a1afd860fcd859372", "score": "0.68144435", "text": "public function edit($id)\n\t{ \n\t\treturn $this->respondTo(\n\t\t\tarray('html'=> function()\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t $this->layout->nest('content', $this->view, ['user' => $this->resource]);\n\t\t\t\t \t\t\t},\n\t\t\t\t 'js' => function()\n\t\t\t\t \t\t {\n\t\t\t\t \t\t \t $form = View::make($this->form, array('user' => $this->resource))->render(); \n\t\t\t\t \t\t \t return View::make('admin.shared.modal', array('body' => $form))->render();\n\t\t\t\t \t\t }\n\t\t\t\t )\n\t\t);\n\t}", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68076915", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "926dd112a4ef916660ebcc2f8108ad0c", "score": "0.68049973", "text": "public function edit($id)\n {\n $page = Page::find($id);\n $pageTitle = trans(config('dashboard.trans_file').'edit');\n $submitFormRoute = route('pages.update', $id);\n $submitFormMethod = 'put';\n return view(config('dashboard.resource_folder').$this->controllerResource.'form', compact('page', 'pageTitle', 'submitFormRoute', 'submitFormMethod'));\n }", "title": "" }, { "docid": "b2548057b424e6a5cacb6db19ee658ae", "score": "0.68032956", "text": "public function edit()\n {\n return view('api::edit');\n }", "title": "" }, { "docid": "e3fad094d4252fd72e2502d403dfc367", "score": "0.67964804", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "56ed8b2cfb426d64dc8a271149d4a6c5", "score": "0.67932284", "text": "public function edit($id)\n\t{\n\t\t$signatures = Signature::get();\n\t\t$teachers = Teacher::get();\n\t\t$resource = Resource::findOrFail($id);\n\n\t\treturn view('resource.edit', compact('resource', 'signatures', 'teachers'));\n\n\t}", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.67927736", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.67927736", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "9ef91ee9f6a8dcb15ea27096aa56e4fb", "score": "0.678274", "text": "public function edit($id)\n\t{\n\t\t//\n\t\t$product = Product::find($id);\n\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('admin.product.edit')\n\t\t\t->with('product', $product);\n\t}", "title": "" }, { "docid": "2761e36b6aa51ebff28c1747bd1a9924", "score": "0.678095", "text": "public function edit()\n {\n return view('datamemory::edit');\n }", "title": "" }, { "docid": "deba4f5487a02e79ef9e2e2bfde73c6a", "score": "0.67798257", "text": "public function edit($id)\n {\n $this->isEditing = true;\n $this->patient = Patient::find($id);\n $this->user = $this->patient->user;\n return $this->cView(\"form\");\n }", "title": "" }, { "docid": "95eb405d84481bce79c5b504d5687466", "score": "0.6776229", "text": "public function edit()\n {\n return view('tendermaster::edit');\n }", "title": "" }, { "docid": "76e1df6d2666fcc9e5012bf26b397bee", "score": "0.6773654", "text": "public function formEditar($id) {\n $product = Product::find($id);\n\n /*### SE NÃO LOCALIZAR, ABORTA ###*/\n if(!$product) {\n\n abort(404);\n }\n /*### SE NÃO LOCALIZAR, ABORTA ###*/\n\n //ABRE A VIEW DE EDIÇÃO\n return view('products.edit', compact('product'));\n\n }", "title": "" }, { "docid": "ec74296c4873a04773215f9df3ec56e8", "score": "0.6763783", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "ac23622c3fc5df8461dba597a28f8bcb", "score": "0.6760383", "text": "public function edit()\n {\n $product = Product::findBy('id', $_GET['id']);\n\n return view('admin/product/edit', compact('product'));\n }", "title": "" }, { "docid": "1c2a145885cc53fe0f501d19a56a5bc0", "score": "0.67549866", "text": "public function edit($id) {\n\t\t$this->authorize('update', $this->repo->model());\n\t\tif ($this->request->ajax()) {\n\t\t\t$model = $this->repo->findOrFail($id);\n\t\t\treturn view($this->view . 'form', compact('model'));\n\t\t} else {\n\t\t\treturn abort(404);\n\t\t}\n\t}", "title": "" }, { "docid": "057b48bb7cf2107466c426e2c9e428fe", "score": "0.6747095", "text": "public function edit(form $form)\n {\n //\n }", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.6746132", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "f45c32e1819279bea701d7e847e50be1", "score": "0.6737162", "text": "public function edit($id) //Mostra o formulário de Editar \n {\n return \"Formulário para Editar Cliente com ID \" .$id;\n }", "title": "" }, { "docid": "13b220d1119b9c3b276a10c0422ad486", "score": "0.67325157", "text": "public function editAction($id);", "title": "" }, { "docid": "58c30f85a70f88f1e9b28e838f77705f", "score": "0.6729836", "text": "public function edit($id){\n $product = Product::find($id);\n \n //load form view\n return view('product.edit', ['product' => $product]);\n }", "title": "" }, { "docid": "58c30f85a70f88f1e9b28e838f77705f", "score": "0.6729836", "text": "public function edit($id){\n $product = Product::find($id);\n \n //load form view\n return view('product.edit', ['product' => $product]);\n }", "title": "" }, { "docid": "0db52b14d5721483125f9c0f73da2a71", "score": "0.6724322", "text": "public function editAction()\n {\n $personCatalog = PersonCatalog::getInstance();\n $idPerson = $this->getRequest()->getParam('idPerson');\n $person = $personCatalog->getById($idPerson);\n $post = array(\n 'id_person' => $person->getIdPerson(),\n 'name' => $person->getName(),\n 'middle_name' => $person->getMiddleName(),\n 'last_name' => $person->getLastName(),\n 'birthdate' => $person->getBirthdate(),\n 'ssn' => $person->getSsn(),\n 'genre' => $person->getGenre(),\n 'marital_status' => $person->getMaritalStatus(),\n 'curp' => $person->getCurp(),\n 'nationality' => $person->getNationality(),\n 'id_fiscal_entity' => $person->getIdFiscalEntity(),\n );\n $this->view->post = $post;\n $this->setTitle('Edit Person');\n }", "title": "" }, { "docid": "36e81b336316946d6eebd6bc3678ef52", "score": "0.6723744", "text": "public function edit($id)\r\n {\r\n return view('superadmin::edit');\r\n }", "title": "" }, { "docid": "b75fe06b66440ec2bc0b1975839b9db3", "score": "0.6722597", "text": "public function edit($id)\n {\n $item = $this->model::findOrFail($id);\n\n SEO::setTitle('Edit ' . title_case($this->singular) . ': ' . $item->label);\n SEO::setDescription('Edit ' . title_case($this->singular) . ': ' . $item->label);\n\n $fields = $this->getFieldsFromRules(new $this->formRequest);\n\n $viewPrefix = request()->is('admin*') ? 'admin.' : '';\n\n return view(\n $viewPrefix.'crud.edit',\n [\n 'item' => $item,\n 'model' => $this->model,\n 'slug' => $this->slug,\n 'fields' => $fields,\n ]\n );\n }", "title": "" }, { "docid": "3edbba277d97d5405287bfc7a96bbf56", "score": "0.67174983", "text": "public function edit($id)\n {\n $form = Form::find($id);\n return view('forms.edit', compact('form', 'id'));\n }", "title": "" }, { "docid": "51f89c5d5d1bd15cea7d45cabafe8e6f", "score": "0.67091644", "text": "public function edit()\n\t{\n\t\t$this->view->assignmentOptions = $this->getAssignmentOptions();\n\t\t$this->view->roles = $this->getRoles();\n\t\t$this->view->gender = $this->getGender();\n\t\t$this->view->areas = PresenterFactory::getInstance('Reports')->getArea(true);\n\t\treturn $this->view('edit');\n\t}", "title": "" }, { "docid": "b79b901144374465ebd3d31441a9b2e5", "score": "0.67084265", "text": "public function edit(Entity $entity)\n {\n return $this->form($entity);\n }", "title": "" }, { "docid": "b06d58ea5570ba05f85ba7ffb36e67e7", "score": "0.6696274", "text": "public function edit($id)\n {\n return $this->view('edit');\n }", "title": "" }, { "docid": "6431a5588c915992cb19d3e7612bc296", "score": "0.6695515", "text": "public function edit($id)\n {\n $form = Forms::findOrFail($id);\n\n return view('formbuilder::admin.forms.edit', compact('form'));\n }", "title": "" }, { "docid": "2ec8c313c533a6f5842b628922d6a1a0", "score": "0.66921604", "text": "public function edit()\n {\n $company = Company::first();\n return view(config('laravel-company-module.views.company.edit'), compact('company'));\n }", "title": "" }, { "docid": "f14d9738fc54a55b925b94b3252a0061", "score": "0.6690047", "text": "public function edit($id)\n {\n $this->crud->hasAccessOrFail('update');\n\n $this->data['entry'] = $this->crud->getEntry($id);\n\n\n $this->data['crud'] = $this->crud;\n $this->data['saveAction'] = $this->getSaveAction();\n $this->data['fields'] = $this->crud->getUpdateFields($id);\n $this->data['title'] = trans('base::crud.edit').' '.$this->crud->entity_name;\n $this->data['id'] = $id;\n\n return view($this->crud->getEditView(), $this->data);\n }", "title": "" }, { "docid": "b459e42451a6fb5dac4372c9f2cf88a1", "score": "0.66836345", "text": "public function edit (Request $request)\n {\n $model = $this->resource->model();\n $this->authorize('update', $model);\n\n $form = $this->getForm($request, $model);\n\n return $this->render('edit', compact('model', 'form'), $request);\n }", "title": "" }, { "docid": "1deb6920d550e3550137d6f49a6d7aeb", "score": "0.668182", "text": "public function edit($id)\n {\n $model = Suplier::find($id);\n return view('backend.suplier.form',['model'=>$model,'update'=>1]);\n }", "title": "" }, { "docid": "8811651512fbad624a5342b1c61e6ef3", "score": "0.6678678", "text": "public function edit($id)\n {\n $model = Supplier::findOrFail($id);\n return view('admin.supplier.form', compact('model'));\n }", "title": "" }, { "docid": "d58aeddc51a32d8c85adcbf8fc206a39", "score": "0.6667401", "text": "public function editAction($id)\n {\n $this->initializeScaffolding();\n\n $this->beforeRead();\n $this->view->record = $this->scaffolding->doRead($id);\n $this->afterRead();\n\n $this->beforeEdit();\n $this->view->form = $this->scaffolding->getForm($this->view->record);\n $this->afterEdit();\n }", "title": "" }, { "docid": "98c3057a696eb14943e7e5fea5851c0b", "score": "0.6665751", "text": "public function edit($id)\n {\n return $this->showForm($id);\n }", "title": "" }, { "docid": "58fa8a98152b59c2e07c439335e492b4", "score": "0.66656536", "text": "public function edit($id)\n {\n return view('web::edit');\n }", "title": "" }, { "docid": "6f15f8f92121a2bdd5d391d8e067cce6", "score": "0.66645813", "text": "public function edit($id)\n {\n \t$emp = Employee::find($id);\n \t \n \t// show the view and pass the nerd to it\n \treturn View::make('adminlte::employee.edit')\n \t->with('employee', $emp);\n }", "title": "" }, { "docid": "52e52cdfc2de427528e31ab0f3380503", "score": "0.66637313", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('NumaDOADMSBundle:ListingForm')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find ListingForm entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('NumaDOADMSBundle:ListingForm:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "ade3e60125d3b02b74b68797e30c99f4", "score": "0.6653219", "text": "public function edit($id)\n {\n $this->data['product'] = Product::findOrFail($id);\n $this->data['category'] = Category::arrForCategory();\n $this->data['mode'] = 'edit';\n\n return view('products.form', $this->data);\n }", "title": "" }, { "docid": "2144bb95c09393c12341bf4eb0e5d9e7", "score": "0.66530436", "text": "public function showEditForm($id){\n $post = $this->repo->byId($id);\n return view('create', [\n 'mode' => 'edit',\n 'published_at' => $post->published_at,\n 'is_published' =>$post->is_published,\n 'title' => $post->title,\n 'url' => $post->url,\n 'contents' => $post->contents,\n 'id' => $post->id\n ]);\n }", "title": "" }, { "docid": "23fa969743853cefd4974f048eebf67a", "score": "0.66425097", "text": "public function edit()\r\n {\r\n return view('user::edit');\r\n }", "title": "" }, { "docid": "6be4074acb7130903012aff787adc368", "score": "0.66345024", "text": "public function edit($id)\n {\n $model = User::find($id);\n return view('master.admin.form', ['model'=>$model, 'update'=>true]);\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.66287285", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.66287285", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.66287285", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.66287285", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.66287285", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "6f1a413f5dd5aee349bb9b9db12fa70b", "score": "0.66280806", "text": "public function edit($id) { }", "title": "" }, { "docid": "7ea6d483a420134aa1b6a3947a002693", "score": "0.66276467", "text": "public function edit($id)\n {\n //\n return \"Se muestra formulario para editar Fabricante con id: $id\";\n }", "title": "" }, { "docid": "f39b9490d89d766f2a0fd47a32dc248b", "score": "0.6624649", "text": "public function edit($id)\n {\n return view(\"user_form\");\n }", "title": "" }, { "docid": "860b8d42962dd4f1751317b806b97d66", "score": "0.661582", "text": "public function edit()\n {\n return view('reception::edit');\n }", "title": "" }, { "docid": "0fa42022ec77f2736c200c4b84f79316", "score": "0.66155237", "text": "public function edit($id)\n {\n $data = Merek::find($id);\n $data->page_title = 'Merek Edit';\n $data->h1 = 'Edit';\n $data->form_action = route('admin.merek.update');\n $data->page_type = 'edit';\n $data->button = 'Simpan';\n\n return view('backend.merek.form', [\n 'data' => $data,\n ]);\n }", "title": "" }, { "docid": "c8e6574baa7c09ee6dbb6a57608c40ce", "score": "0.66131794", "text": "public function editResourceAction($id, Request $request)\n {\n $resource = $this->getDoctrine()->getManager()\n ->getRepository('WBQbankBundle:Resources')\n ->find($id);\n\n if (!$resource) {\n throw $this->createNotFoundException(\n 'No resource found'\n );\n }\n\n // form\n $form = $this->createForm(new ResourcesType(), $resource);\n\n $form->handleRequest($request);\n\n if ($form->isSubmitted()) {\n\n $dir = $this->container->getParameter('resources-upload-path');\n $file = $resource->getFilename();\n \n //to keep the existing uploaded file location\n $filename_=$request->get('filename_');\n \n if (is_object($file)) {\n $resource->setFilesize($file->getSize());\n $filename = time() . $file->getClientOriginalName();\n $file->move($dir, $filename);\n $location = $dir . $filename;\n $resource->setFilename($location);\n }\n else if (trim($filename_)!=\"\"){\n $resource->setFilename($filename_);\n }\n\n $em = $this->getDoctrine()->getManager();\n\n $em->flush();\n\n return $this->redirect($this->generateUrl('resources'));\n }\n\n return $this->render('WBQbankBundle:Resources:editResource.html.twig', array(\n 'form' => $form->createView(),\n 'resourceId' => $id,\n 'active_button' => ActiveButtons::AdminResources\n ));\n }", "title": "" }, { "docid": "38e6dad01dfe51fa6f95805601cc8137", "score": "0.6608695", "text": "public function edit()\n\t{\n\t\tCRequest::setVar('view', $this->view_item);\n\t\tparent::display();\n\t}", "title": "" }, { "docid": "a365c8fa77e729113252274bcd88baf6", "score": "0.66076154", "text": "public function edit($id)\n {\n $entity = Entity::findOrFail($id);\n\n if(Auth::user()->id != $entity->user_id){\n return view('error')->withErrors(['You don\\'t have permissions to access this resource.']);\n }\n\n return view('entities.edit', compact('entity'))->with('create', 0);\n }", "title": "" }, { "docid": "b3434b39a7041adf18b694988ccedbea", "score": "0.6605646", "text": "public function edit($id)\n\t{\n return View::make('cardapios.edit');\n\t}", "title": "" }, { "docid": "584d7649153a0da9f2d2848a6fd168fd", "score": "0.66043574", "text": "public function editAction()\n {\n $varName = $this->view->singularize($this->_helper->db->getDefaultModelName());\n\n $record = $this->_helper->db->findById();\n\n if ($this->_autoCsrfProtection) {\n $csrf = new Omeka_Form_SessionCsrf;\n $this->view->csrf = $csrf;\n }\n\n if ($this->getRequest()->isPost()) {\n if ($this->_autoCsrfProtection && !$csrf->isValid($_POST)) {\n $this->_helper->_flashMessenger(__('There was an error on the form. Please try again.'), 'error');\n $this->view->$varName = $record;\n return;\n }\n $record->setPostData($_POST);\n if ($record->save(false)) {\n $successMessage = $this->_getEditSuccessMessage($record);\n if ($successMessage != '') {\n $this->_helper->flashMessenger($successMessage, 'success');\n }\n $this->_redirectAfterEdit($record);\n } else {\n $this->_helper->flashMessenger($record->getErrors());\n }\n }\n\n $this->view->$varName = $record;\n }", "title": "" }, { "docid": "bb3d25c21124beddc757800cf8683cb4", "score": "0.6602705", "text": "public function edit(){\n\t\t//$this->common_data();\n\t\t$this->location = \"plataformas\";\n\t\t$this->plataforma = new plataforma($this->get('id'));\n\t\t$this->plataforma->read(\"id,nombre,empresa\");\n\t\t$this->include_theme(\"index\",\"edit\");\n\t}", "title": "" }, { "docid": "672a8990802aca7ec3bf156a475b97ab", "score": "0.66012645", "text": "public function edit($id)\n {\n // get the nerd\n $employee = employee::find($id);\n\n // show the edit form and pass the nerd\n return View::make('employees.edit')\n ->with('employee', $employee);\n }", "title": "" }, { "docid": "2b5fb043a3c87778cf2cebbc780df3b7", "score": "0.66003865", "text": "public function edit()\n\t{\n\t\tparent::edit();\n\t}", "title": "" }, { "docid": "033e1e454bf02fa56620accb31e8cb8d", "score": "0.65994656", "text": "public function edit(Record $record)\n {\n return view('records.update', compact('record'));\n }", "title": "" }, { "docid": "2f50bec1a38d27b16fac719637b651c4", "score": "0.65974116", "text": "public function editViewAction($id)\n {\n $this->theme->setTitle('Redigera formulär');\n $this->theme->addStylesheet('css/form.css');\n \n $this->db->select()\n ->from('survey')\n ->where(\"id = $id\")\n ->execute();\n \n $survey = $this->db->fetchOne();\n \n $this->views->add('survey/edit', [\n 'title' => \"Redigera formulär\",\n 'survey' => $survey,\n 'id' => $id,\n ]);\n }", "title": "" }, { "docid": "db2529a46c0e35eb3c68886810761fc8", "score": "0.6592527", "text": "public function edit($id)\n {\n return view('presensi::edit');\n }", "title": "" }, { "docid": "148f2b795f1a0e6fbe96ee1b1579717f", "score": "0.6590265", "text": "public function edit()\n {\n // return view('api::edit');\n }", "title": "" }, { "docid": "3ec00c8d29482613595774462fb85505", "score": "0.65869075", "text": "public function edit($id) {\n $item = Employee::find($id);\n return view('employees/update')->with(['item' => $item]);\n }", "title": "" }, { "docid": "9e260dddc50926c0f371295c6cdff712", "score": "0.658544", "text": "public function edit($id)\n {\n //\n $record = $this->record->findOrFail($id);\n\n return view('record.edit', ['record'=>$record]);\n }", "title": "" }, { "docid": "cc0bb0b7f0592d72b552b09d7d5ca4ad", "score": "0.65789753", "text": "public function edit(){\n $id = $_GET['id'];\n $task = $this->taskModel->find($id);\n\n view('admin/edit_task', compact('task'));\n }", "title": "" }, { "docid": "23e944e596556730ad9998873ce62f6e", "score": "0.65754783", "text": "public function edit($id)\n {\n $this->authChecker();\n $item = $this->provider::findOrFail($id);\n $fields = $this->getFields();\n $fields[0]['value'] = $item->name;\n $fields[1]['value'] = $item->size;\n $fields[2]['value'] = $item->restoarea_id;\n\n $parameter = [];\n $parameter[$this->parameter_name] = $id;\n\n return view('general.form', ['setup' => [\n 'inrow'=>true,\n 'title'=>__('crud.edit_item_name', ['item'=>__($this->title), 'name'=>$item->name]),\n 'action_link'=>route($this->webroute_path.'index'),\n 'action_name'=>__('crud.back'),\n 'iscontent'=>true,\n 'isupdate'=>true,\n 'action'=>route($this->webroute_path.'update', $parameter),\n ],\n 'fields'=>$fields, ]);\n }", "title": "" }, { "docid": "b34cb7db16e9ac26b8ba6821e387fff9", "score": "0.657285", "text": "public function edit($id)\n\t{\n\t\t$this->page_title = 'Edit User';\n\t\t$data = $this->rendarEdit($id);\n\t\treturn view('admin.crud.form',$data);\n\t}", "title": "" }, { "docid": "4bf2fed80355d3a19316f7291f47ee44", "score": "0.6565909", "text": "public function edit($id) \n // : StudentResource\n {\n $student = Student::find($id);\n return view('welcome', ['student' => $student]);\n\n // return new StudentResource($student);\n }", "title": "" } ]
33150526d4fba9252c26de77fcc287c1
Check is method active
[ { "docid": "054be0ee60d5019aed751ce2ab5aeb0e", "score": "0.0", "text": "public function getActive()\n {\n return $this->getData('active');\n }", "title": "" } ]
[ { "docid": "c65ee3cfd61d7df10c2362de343308ea", "score": "0.7297772", "text": "public function checkMethod(){\n\t\t\n\t}", "title": "" }, { "docid": "9d6eb6fb94f3e73883430f7a23da8d72", "score": "0.71908724", "text": "public function hasMethod(): bool;", "title": "" }, { "docid": "d2644d0f2ba22ce39f56bedf588865d7", "score": "0.71033937", "text": "public function is_active();", "title": "" }, { "docid": "fdee2ca7c1ef5626586a6cd932b8935e", "score": "0.7054385", "text": "public function isInvokable();", "title": "" }, { "docid": "29cb8135613c038bd97b16441aeb8cdd", "score": "0.6925901", "text": "public function is_active()\n {\n }", "title": "" }, { "docid": "574ea64b522c18759fa9766be516d6a5", "score": "0.6890831", "text": "public function isMethods() {}", "title": "" }, { "docid": "37ea40cee096f0d0dad4182600571751", "score": "0.6888303", "text": "private function is_active()\n {\n }", "title": "" }, { "docid": "44f70a7a00da4c13dbf72977d6687f96", "score": "0.6883273", "text": "protected function methodIsValid()\n {\n $method = $this->getRequest()->getParam('method');\n\n if (in_array($method, $this->helper->getActiveMethods()) !== false) {\n $this->_coreRegistry->register('tokenbase_method', $method, true);\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "6b98435eec09e22e93ba00f55533caea", "score": "0.68649966", "text": "public function isActivated() {}", "title": "" }, { "docid": "34434ad148f6beb859b8b2b6515d9e26", "score": "0.6826062", "text": "public function isActive() {}", "title": "" }, { "docid": "34434ad148f6beb859b8b2b6515d9e26", "score": "0.6826062", "text": "public function isActive() {}", "title": "" }, { "docid": "34434ad148f6beb859b8b2b6515d9e26", "score": "0.6826062", "text": "public function isActive() {}", "title": "" }, { "docid": "34434ad148f6beb859b8b2b6515d9e26", "score": "0.6826062", "text": "public function isActive() {}", "title": "" }, { "docid": "34434ad148f6beb859b8b2b6515d9e26", "score": "0.6826062", "text": "public function isActive() {}", "title": "" }, { "docid": "34434ad148f6beb859b8b2b6515d9e26", "score": "0.6825528", "text": "public function isActive() {}", "title": "" }, { "docid": "6d2ad746d9f02ee003817c1237fca0cc", "score": "0.6804888", "text": "public function getActiveMethod(): string\n {\n }", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "2d5d6fce4e65999c41c5c3e7ede3602e", "score": "0.6796183", "text": "public function isActive();", "title": "" }, { "docid": "385aeee11f5d48790b1632944a4a104e", "score": "0.67850703", "text": "function isActive() ;", "title": "" }, { "docid": "5fae531df8710d6e348d02827730184f", "score": "0.676391", "text": "function isActive();", "title": "" }, { "docid": "6a72b93fe7a1dd03f91e9aacd40ed696", "score": "0.6740169", "text": "public function isActive(): bool;", "title": "" }, { "docid": "6a72b93fe7a1dd03f91e9aacd40ed696", "score": "0.6740169", "text": "public function isActive(): bool;", "title": "" }, { "docid": "6a72b93fe7a1dd03f91e9aacd40ed696", "score": "0.6740169", "text": "public function isActive(): bool;", "title": "" }, { "docid": "a0a32c400adaa37c2b9cb04e67b7d1cf", "score": "0.67193204", "text": "function is_active()\n {\n }", "title": "" }, { "docid": "82449dd12c19620dc4b2dcc0e15b905b", "score": "0.66809297", "text": "abstract public function isActive(): bool;", "title": "" }, { "docid": "47acd43d44960d64c138d6601792f8bd", "score": "0.6679649", "text": "public abstract function hasMethod($name);", "title": "" }, { "docid": "a0589bf89442e94ec5e21c7b080de0f5", "score": "0.66291404", "text": "function current_method()\n {\n return app('active')->getMethod();\n }", "title": "" }, { "docid": "3d54c3d8108a7e43297180a17026e645", "score": "0.66273564", "text": "public function isMethod($methods){ }", "title": "" }, { "docid": "7b335544ae1141a939ba4319f97cb4f7", "score": "0.66005903", "text": "public function isAvailable($object, $method);", "title": "" }, { "docid": "53fa4c50635dc82883a86596392ec4ff", "score": "0.6572257", "text": "public function isMethodObserver()\n {\n return ($this->getConfigValue('method') == self::METHOD_OBSERVER);\n }", "title": "" }, { "docid": "a5037a047cb656d028b26a440a6ebfc4", "score": "0.6526058", "text": "public function isExecuted() {}", "title": "" }, { "docid": "95fff1617024138bf0074befefcc3d47", "score": "0.6524556", "text": "public function isActive(): bool\n {\n }", "title": "" }, { "docid": "f649c0acbc364bca688ae3a10efeaf98", "score": "0.65155506", "text": "public function checkIfActionExists($method);", "title": "" }, { "docid": "83b10e01b8c29950c5c3dabe870452f6", "score": "0.65097404", "text": "function isExecuted() ;", "title": "" }, { "docid": "8cca70cb5766ba4b7fb1ad02a21d7e85", "score": "0.6507276", "text": "public function isMethodValid() {\n return in_array($this->method, self::ACCEPTED_METHODS);\n }", "title": "" }, { "docid": "863e0457feba3c8be8e45f75dccc80b8", "score": "0.6448399", "text": "public function isMethodActive($method)\n {\n switch ($method) {\n case Config::METHOD_WPS_EXPRESS:\n case Config::METHOD_WPP_EXPRESS:\n $isEnabled = $this->_scopeConfig->isSetFlag(\n 'payment/' . Config::METHOD_WPS_EXPRESS .'/active',\n ScopeInterface::SCOPE_STORE,\n $this->_storeId\n )\n || $this->_scopeConfig->isSetFlag(\n 'payment/' . Config::METHOD_WPP_EXPRESS .'/active',\n ScopeInterface::SCOPE_STORE,\n $this->_storeId\n );\n $method = Config::METHOD_WPP_EXPRESS;\n break;\n case Config::METHOD_WPS_BML:\n case Config::METHOD_WPP_BML:\n $isEnabled = $this->_scopeConfig->isSetFlag(\n 'payment/' . Config::METHOD_WPS_BML .'/active',\n ScopeInterface::SCOPE_STORE,\n $this->_storeId\n )\n || $this->_scopeConfig->isSetFlag(\n 'payment/' . Config::METHOD_WPP_BML .'/active',\n ScopeInterface::SCOPE_STORE,\n $this->_storeId\n );\n $method = Config::METHOD_WPP_BML;\n break;\n case Config::METHOD_PAYMENT_PRO:\n case Config::METHOD_PAYFLOWPRO:\n $isEnabled = $this->_scopeConfig->isSetFlag(\n 'payment/' . Config::METHOD_PAYMENT_PRO .'/active',\n ScopeInterface::SCOPE_STORE,\n $this->_storeId\n )\n || $this->_scopeConfig->isSetFlag(\n 'payment/' . Config::METHOD_PAYFLOWPRO .'/active',\n ScopeInterface::SCOPE_STORE,\n $this->_storeId\n );\n $method = Config::METHOD_PAYFLOWPRO;\n break;\n default:\n $isEnabled = $this->_scopeConfig->isSetFlag(\n \"payment/{$method}/active\",\n ScopeInterface::SCOPE_STORE,\n $this->_storeId\n );\n }\n\n return $this->isMethodSupportedForCountry($method) && $isEnabled;\n }", "title": "" }, { "docid": "8c995289fd815fb9bd2c37c99961b7e3", "score": "0.64211106", "text": "public function hasMethod() \n {\n if (!method_exists($this, 'model')) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "29b9749ac1336d59468f9ec2696a22f3", "score": "0.6411162", "text": "public function isInvokable(LimeMockMethod $method);", "title": "" }, { "docid": "f0975163886dd79f424cda8a2634d6e4", "score": "0.6397735", "text": "public function isAuthorizationNeeded(): bool\n {\n $answer = FALSE;\n if($this->isInstanceFunction(end(explode('::', __METHOD__)))){\n $answer = $this->_function_decorations[end(explode('::', __METHOD__))](func_get_args());\n }\n if(!isset($answer)){\n $answer = FALSE;\n }\n return $answer;\n }", "title": "" }, { "docid": "5f8678e59b6758fc4ad9d65cb29f9f82", "score": "0.63785195", "text": "public function testIsMethod()\n\t{\n\t\t$this->assertTrue(\\Hybrid\\Auth::is('admin'));\n\t\t$this->assertTrue(\\Hybrid\\Auth::is('editor'));\n\t\t$this->assertFalse(\\Hybrid\\Auth::is('user'));\n\t}", "title": "" }, { "docid": "e9256c7076f39eeb4750c627bec99b0f", "score": "0.6318857", "text": "function isActuallyEnabled ();", "title": "" }, { "docid": "d4550a14843df87e7dbae191ce37ffd2", "score": "0.6318792", "text": "public function is_active() {return $this->isActive();}", "title": "" }, { "docid": "00e62426627108a0b1e2c7b1b2225d33", "score": "0.63171285", "text": "function has_method($method_name) {\n\t\treturn method_exists($this, $method_name);\n\t\t\n\t}", "title": "" }, { "docid": "2ec660ff15a86536318c7e8847d8e5db", "score": "0.6314394", "text": "public function isActive() {\n\t\t\treturn $this->doCall($this->getUrl(),false) != '';\n\t\t}", "title": "" }, { "docid": "8d2e5b3f9428ccbbe2f8dbd8f8c82e85", "score": "0.6298453", "text": "public function isMethodSafe()\n {\n return SecurityHelper::hasSafeMethod($this);\n }", "title": "" }, { "docid": "658bdaec0f3cea1bfc7ac90579f4af7c", "score": "0.6293036", "text": "public static function IsRunning($method='run')\n {\n $name = get_called_class().\"-$method\";\n return !!WdfTaskModel::Make()->eq('name',$name)->scalar('id');\n }", "title": "" }, { "docid": "ae32594123aa55c51d3b6ccb00efbd81", "score": "0.6286755", "text": "private function _checkAction(): bool {\n $serviceName = $this->getCalledServiceName();\n //first, check if action is set and not null\n if ($serviceName !== null) {\n $calledService = $this->getServiceByName($serviceName);\n //after that, check if action is supported by the API.\n if ($calledService !== null) {\n $allowedMethods = $calledService->getRequestMethods();\n\n if (count($allowedMethods) != 0) {\n $isValidRequestMethod = in_array(Request::getMethod(), $allowedMethods);\n\n if (!$isValidRequestMethod) {\n $this->requestMethodNotAllowed();\n } else {\n return true;\n }\n } else {\n $this->sendResponse($this->getResponseMessage('404-6'), self::E, 404);\n }\n } else {\n $this->serviceNotSupported();\n }\n } else {\n $this->missingServiceName();\n }\n\n return false;\n }", "title": "" }, { "docid": "6793a375cd42c6289bde3adeff2a60cb", "score": "0.6285598", "text": "protected function is( $method ) {\n\t\treturn $method === $this->method();\n\t}", "title": "" }, { "docid": "e22135879f344b020a1101b003ce888c", "score": "0.62838733", "text": "private function _hasMethod($name) {\n\t\treturn $this->_reflect()->hasMethod($name);\n\t}", "title": "" }, { "docid": "6823e457fbc1f351887549c5f587df04", "score": "0.6271244", "text": "public function isMethodParameter() {}", "title": "" }, { "docid": "5dc6df949019341a6fbadfcbef1dd365", "score": "0.62623674", "text": "public function checkExists()\n\t{\n\t\t$route = \\Route::currentRouteAction();\n\t\tlist($ctrl, $action) = explode('@', $route);\n\n\t\tif ($action == 'missingMethod') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3bab7be465d1e7984666c1a6b8c8e69c", "score": "0.6254252", "text": "public function __call($method, $params) {\n if (!empty($method) && $method == 'Sitemenu_Form_Admin_Global') {\n \n }\n return true;\n }", "title": "" }, { "docid": "50655af60599756e7773907bf45132da", "score": "0.62350637", "text": "public function isActive()\n {\n return $this->hasApi();\n }", "title": "" }, { "docid": "2a98d896f745e13567c4fa728684f128", "score": "0.6234012", "text": "public function ensureActionExists()\n {\n return method_exists($this->prolet, $this->action);\n }", "title": "" }, { "docid": "0923e50b4834ee385858e8253f847452", "score": "0.6229242", "text": "public static function isMethodSafe(): bool\n {\n return self::proxy()->isMethodSafe();\n }", "title": "" }, { "docid": "e71ee45b91c8b4437059390e59d1ab5e", "score": "0.62212956", "text": "public function authorize()\n {\n // given withdrawal method exists and is active\n return $this->withdrawalMethod->enabled;\n }", "title": "" }, { "docid": "cf4b68bd4c35e68520f3c783375c62b5", "score": "0.6212881", "text": "public function hasCalls(): bool\n {\n return true;\n }", "title": "" }, { "docid": "e916e1d533c4aa962cedb17abbac5d2a", "score": "0.6197757", "text": "function method_exist($method) {\r\n $method = explode('::', $method);\r\n return count($method) == 1 ? function_exists($method[0]) : method_exists($method[0], $method[1]);\r\n }", "title": "" }, { "docid": "306cb7e947e72e7463ba86e6e9a91c5e", "score": "0.6196782", "text": "public function __invoke()\n {\n return true;\n }", "title": "" }, { "docid": "ee9d7bb508c0adf53cc073b42082efc9", "score": "0.61952746", "text": "public function canBeActivated()\n {\n return $this->getIsActive() == false;\n\n }", "title": "" }, { "docid": "a7571b01f0f85efaa281f16bbe9c4ab4", "score": "0.617604", "text": "public function isFaked()\n\t{\n\t\treturn $this->realMethod !== $this->method;\n\t}", "title": "" }, { "docid": "492afc2ed03cb63887d9d960a672f090", "score": "0.61756486", "text": "public function isActive ()\n {\n return function_exists( 'akismet_http_post' );\n }", "title": "" }, { "docid": "1d939897c472bb3d51936d107cda723e", "score": "0.6173854", "text": "public function is_action() {\n\t\treturn did_action( $this->name ) > 0;\n\t}", "title": "" }, { "docid": "d6002f33441a1f31882454d1ebbe8893", "score": "0.6171351", "text": "protected static function testMethod (string $method) : bool\n {\n if ( !\\class_exists($method) ) :\n throw new CondorcetException(9);\n endif;\n\n if ( !\\is_subclass_of($method, Algo\\MethodInterface::class) || !\\is_subclass_of($method, Algo\\Method::class) ) :\n throw new CondorcetException(10);\n endif;\n\n foreach ($method::METHOD_NAME as $alias) :\n if (self::isAuthMethod($alias)) :\n throw new CondorcetException(25);\n endif;\n endforeach;\n\n return true;\n }", "title": "" }, { "docid": "34071b622f75b7d98a7cfab78fdb9000", "score": "0.616964", "text": "private function _checkIfMethodExists(Object $class, String $action)\n {\n return (int) method_exists($class, $action) === 1;\n }", "title": "" }, { "docid": "1d636aa6505bc56d4ff52cd177d4e6e6", "score": "0.6167293", "text": "public function isApiCallActive(): bool\n {\n return $this->isApiCallActive === true ? true : false;\n }", "title": "" }, { "docid": "2eb8330f77918ba86d977fba7405ed53", "score": "0.6153926", "text": "protected function canCall(string $method): bool\n {\n return method_exists($this, $method);\n }", "title": "" }, { "docid": "a7e63cca9549b2db2d611a1478cc22fa", "score": "0.6138887", "text": "function hasActivePayment() ;", "title": "" }, { "docid": "a8a69fa5121ba59c4d7dc809082fef8b", "score": "0.61354876", "text": "function isAlive() {}", "title": "" }, { "docid": "dd231760e5b1d3137cdd28065c3ec7b0", "score": "0.6135324", "text": "public function is_actioned()\n {\n }", "title": "" }, { "docid": "66292c5240add982a4ea1c3817f813c6", "score": "0.6123352", "text": "public function hasMethod($name) {\n return $this->class->hasMethod($name);\n }", "title": "" }, { "docid": "4cef9da27e8156be9bc6469eff51617e", "score": "0.6103026", "text": "public function isRunning() {}", "title": "" }, { "docid": "4cef9da27e8156be9bc6469eff51617e", "score": "0.6103026", "text": "public function isRunning() {}", "title": "" }, { "docid": "c1ffae6953545d63377fdbbfb23b064d", "score": "0.6102368", "text": "public function isCurrent();", "title": "" }, { "docid": "60b74319c2a23063606b278840c261f6", "score": "0.61005324", "text": "private function isAccessible()\n {\n return !Route::isBlocked($this->url) &&\n ($this->function instanceof \\Closure ||\n Controller::hasMethod($this->controller, $this->method) ||\n Controller::exists($this->url));\n }", "title": "" }, { "docid": "685d7ebc1d227a7c16241d227a8c0556", "score": "0.6099669", "text": "protected function methodExists($name)\n\t{\n\t\treturn method_exists($this, $name);\n\t}", "title": "" }, { "docid": "4c2266647c4fa6f282f6cf90bdecf91e", "score": "0.6086938", "text": "public function isMethod($method)\n {\n return strtoupper($method) == $this->getMethod();\n }", "title": "" }, { "docid": "73e88cf4b1d2582d65430c0d45f38b39", "score": "0.6083678", "text": "public function active();", "title": "" }, { "docid": "73e88cf4b1d2582d65430c0d45f38b39", "score": "0.6083678", "text": "public function active();", "title": "" }, { "docid": "44b3e3b7360389a047ceafdd291ddb68", "score": "0.60791385", "text": "function IfMethod($method=null)\r\n{\r\n if($_SERVER['REQUEST_METHOD'] == strtoupper($method))\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n}", "title": "" }, { "docid": "76faf3c32956871f029d8354c4b74d1f", "score": "0.60749483", "text": "public function IsAutomatic();", "title": "" }, { "docid": "d250a2f4cb656c344cc6f2062ab7a1be", "score": "0.6070698", "text": "public static function isEnable($method){\n\t\tglobal $fs;\n\t\tswitch(gettype($method)){\n\t\t\tcase 'integer':\n\t\t\t\t$page = $method;\n\t\t\t\tbreak;\n\t\t\tcase 'string':\n\t\t\t\t$page = $fs->filter($_SERVER['PHP_SELF']);\n \t\t\t$allow_method = array('add','edit','delete');\n \t\t\tif(!in_array($method,$allow_method)) $method = '';\n \t\t\t$page = $page.'|'.$method;\n\t\t\t\tbreak;\n\t\t}\n\t\treturn LicenseManager::chkAuth(MEMBER_MODE,MemberSystemFuncMapping::getMapping($page));\n\t}", "title": "" }, { "docid": "c17ca476dc111549319eeb20dc55a0f9", "score": "0.60694534", "text": "public function isActive()\n {\n return $this->getActive() === true;\n }", "title": "" }, { "docid": "881667c41b944b1304c6d44ab63c833d", "score": "0.6045346", "text": "public function isActive() {\n //return $this->status_id == 1;\n }", "title": "" }, { "docid": "029bd2b037a16fa04c3172e9e81be299", "score": "0.60440165", "text": "public function isStatus();", "title": "" }, { "docid": "029bd2b037a16fa04c3172e9e81be299", "score": "0.60440165", "text": "public function isStatus();", "title": "" } ]
6f4ee2d5b08bcdaf12fe0d53248b6336
Search value in multi array
[ { "docid": "22119b960d32f895ae95705cd71758ba", "score": "0.62034625", "text": "function multiArraySearch($needle, $haystack,$index_starter=0){\n $value = \"\";\n $x = $index_starter;\n foreach($haystack as $temp){\n $search = array_search($needle, $temp);\n if (strlen($search) > 0 && $search >= 0){\n $value[0] = $x;\n $value[1] = $search;\n }\n $x++;\n }\n return $value;\n }", "title": "" } ]
[ { "docid": "31123abb82bab392aad62813eece4ea1", "score": "0.72109604", "text": "function array_multi_search($mSearch, $aArray, $sKey = \"\")\n{\n $aResult = array();\n foreach( (array) $aArray as $aValues) {\n if($sKey === \"\" && in_array($mSearch, $aValues)) $aResult[] = $aValues;\n else \n if(isset($aValues[$sKey]) && $aValues[$sKey] == $mSearch) $aResult[] = $aValues;\n }\n return $aResult;\n}", "title": "" }, { "docid": "dd3f958f77636f458538b4d1ce816a72", "score": "0.69909424", "text": "function in_multi_array($value, $array)\n{ \n foreach ($array as $key => $item)\n { \n // Item is not an array\n if (!is_array($item))\n {\n // Is this item our value?\n if ($item == $value) return true;\n }\n \n // Item is an array\n else\n {\n // See if the array name matches our value\n //if ($key == $value) return true;\n \n // See if this array matches our value\n if (in_array($value, $item)) return true;\n \n // Search this array\n else if (in_multi_array($value, $item)) return true;\n }\n }\n \n // Couldn't find the value in array\n return false;\n}", "title": "" }, { "docid": "1ddc519bd3cf9c80766b49909171a3fd", "score": "0.68647015", "text": "public function search(array $data);", "title": "" }, { "docid": "fee24d05d414edda16fc15fc5ab73787", "score": "0.67320454", "text": "function get_record($array, $search, $value){\n\t\tif(!is_array($search)){\n\t\t\t$search = array($search);\n\t\t}\n\t\tif(!is_array($value)){\n\t\t\t$value = array($value);\n\t\t}\n\t\tif(count($search) != count($value)){\n\t\t\techo \"Error: search & value terms don't match.<br/>\";\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t$ret = array();\n\t\t\n\t\tif(isset($array) && is_array($array) && count($array > 0))\n\t\tforeach($array as $a){\n\t\t\t$count = 0;\n\t\t\tforeach($search as $i=>$s){\n\t\t\t\tif(isset($a[$s]) && $a[$s] == $value[$i])\n\t\t\t\t\t$count ++;\n\t\t\t}\n\t\t\tif($count == count($search))\n\t\t\t\tarray_push($ret, $a);\n\t\t}\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "495738c4e4e8d4b1d64281b15cf6a750", "score": "0.67293525", "text": "function search_value_from_array($id, $match_key, $return_label, $array){\n foreach($array as $key => $val){\n\t\t\tif($val[$match_key] == $id){\n \t\treturn $val[$return_label];\n \t\t}\n \t\t}\n \t\treturn NULL;\n }", "title": "" }, { "docid": "19626d9a4a64ddf4fb8b226ea4324e80", "score": "0.66938746", "text": "function in_multi_array($value, $array)\n\t{\n\t\tforeach ($array as $key => $item)\n\t\t{\n\t\t\t// Item is not an array\n\t\t\tif (!is_array($item))\n\t\t\t{\n\t\t\t\t// Is this item our value?\n\t\t\t\tif ($item == $value) return TRUE;\n\t\t\t}\n\n\t\t\t// Item is an array\n\t\t\telse\n\t\t\t{\n\t\t\t\t// See if the array name matches our value\n\t\t\t\t//if ($key == $value) return true;\n\n\t\t\t\t// See if this array matches our value\n\t\t\t\tif (in_array($value, $item)) return TRUE;\n\n\t\t\t\t// Search this array\n\t\t\t\telse if ($this->in_multi_array($value, $item)) return TRUE;\n\t\t\t}\n\t\t}\n\n\t\t// Couldn't find the value in array\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "5a35209885b55d0eadbd43663b86d88a", "score": "0.66639847", "text": "private static function search_r( $array, $key, $value, &$results ) {\n\t\tif ( ! is_array( $array ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( isset( $array[ $key ] ) && in_array( $array[ $key ], $value, true ) ) {\n\t\t\t$results[] = $array;\n\t\t}\n\n\t\tforeach ( $array as $subarray ) {\n\t\t\tself::search_r( $subarray, $key, $value, $results );\n\t\t}\n\t}", "title": "" }, { "docid": "03329bda69a16d4473fb41f78187887d", "score": "0.6626734", "text": "function Search($value, $array) \n{ \n return(array_search($value, $array,false)); \n}", "title": "" }, { "docid": "e4415cc18ddfcf0c135ba8dc93eba388", "score": "0.6615346", "text": "function inMyArray($array, $search)\n\t{\n\t foreach($array as $value)\n\t{\n\tif(is_array($value))\n\t{\n\t if(inMyArray($value, $search))\n\t {\n\t return(TRUE);\n\t }\n\t}\n\telseif($value == $search)\n\t {\n\t return(TRUE);\n\t }\n\t}\n\treturn(FALSE);\n\t}", "title": "" }, { "docid": "b58533562ffde3de128b036d866f0a00", "score": "0.660031", "text": "function search_array($searchvalue){\n\n\tforeach ($GLOBALS['z'] as $key => $val) {\n\n\t\tif ($val['Product_code'] === $searchvalue) {\n\t\t\treturn $key;\n\n\t\t}\n\t}\n\treturn null;\n\n\n}", "title": "" }, { "docid": "4694cabebdb73d4d9d3aa0d27750aee4", "score": "0.6552676", "text": "function searchArrayForKey ( $key , $value , &$array ) {\n foreach ( $array as $index => $val ) {\n if ( $val->$key == $value ) {\n return $index;\n }\n }\n return null;\n }", "title": "" }, { "docid": "20cb1e2989d26b94d5ab703d1c196f79", "score": "0.64699674", "text": "function is_keys_values_exists_in_array($search_label_one, $search_val_one, $search_label_two, $search_val_two, $array){\n $found = FALSE;\n foreach ($array as $row) {\n if ((strtolower(trim($row[$search_label_one])) === strtolower(trim($search_val_one))) && (strtolower(trim($row[$search_label_two])) === strtolower(trim($search_val_two)))) {\n $found = TRUE; break;\n }\n }\n return $found;\n }", "title": "" }, { "docid": "57913ec76b74d47ec408fffb533ed805", "score": "0.64531577", "text": "function serach_my_array($array,$string){\n // return true when find match\n if(in_array($string, $array)){\n print(\"found match\");\n } else {\n print(\"No match\");\n }\n }", "title": "" }, { "docid": "b629b88555393d2f2e281f6e808110a0", "score": "0.64081067", "text": "function is_keys_values_exists_in_array_get_key($search_label_one, $search_val_one, $search_label_two, $search_val_two, $array, $key){\n foreach ($array as $row) {\n if ((strtolower(trim($row[$search_label_one])) === strtolower(trim($search_val_one))) && (strtolower(trim($row[$search_label_two])) === strtolower(trim($search_val_two)))) {\n return $row[$key];\n }\n }\n return null;\n }", "title": "" }, { "docid": "f967f2202b7c8c71562162c0f08ce94c", "score": "0.63783956", "text": "function check_array ($needle, $haystack, $field = 'name') {\n for ($countr = 0; $countr < count($haystack); $countr++) {\n\n // If found, return true\n if ($haystack[$countr][$field] == $needle) {\n return true;\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "586a9fc0f7e0646b9ee099c4c07f9027", "score": "0.6348286", "text": "function _wpbs_recursive_array_search($needle, $haystack)\n{\n foreach ($haystack as $key => $value) {\n if ($key === 'user_value') {\n continue;\n }\n\n foreach ($haystack as $key => $value) {\n $current_key = $key;\n if ($needle === $value or (is_array($value) && _wpbs_recursive_array_search($needle, $value) !== false)) {\n return true;\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "449d1660fd571c0ba9a17d845935faa1", "score": "0.63464665", "text": "function searchProd($array, $key, $value){\n $results = array();\n\n if (is_array($array)) {\n if (isset($array[$key]) && $array[$key] == $value) {\n $results[] = $array;\n }\n\n foreach ($array as $subarray) {\n $results = array_merge($results, searchProd($subarray, $key, $value));\n }\n }\n\n return $results;\n}", "title": "" }, { "docid": "994a59250097fe11ee447479edbd7d2d", "score": "0.6309206", "text": "public function array_search_multi( $array, $value, $needle ) {\n\n\t\tforeach( $array as $index_key => $value_key ) {\n\n\t\t\tif ( $value_key[$value] === $needle ) return true;\n\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2abfaae8d067d3e3bb4a1c2c37451136", "score": "0.6296344", "text": "function is_key_value_exists_in_array($searchlabel, $searchval, $array){\n foreach ($array as $key => $val) {\n if ($val[$searchlabel] === $searchval) {\n return TRUE;\n }\n }\n return FALSE;\n }", "title": "" }, { "docid": "e6e2b97d674ff42719a9df2c70b5bc36", "score": "0.6256754", "text": "function _in_array($data, $array) {\n if (is_array($array) ? in_array($data, $array) : in_array(strtolower($data), explode(\",\", strtolower($array)))) {\n return $data;\n }\n }", "title": "" }, { "docid": "f61650aea6e474af543766d986d16d09", "score": "0.6246893", "text": "function findElement($arry,$element){\n\tforeach ($arry as $val){\n\t\tif($val['code'] == $element){return array(\"code\"=>$val['code'],\"question\"=>$val['question'],\"agreeNext\"=>$val['agreeNext']);}\n\t}\n\treturn false; \n\t\n}", "title": "" }, { "docid": "173fdcb39835c951f519cdc64ae30650", "score": "0.6229653", "text": "public function find($value) : array;", "title": "" }, { "docid": "ec0b5614c6aafc45aa6145c1b7943cfb", "score": "0.6228085", "text": "public function findArrayKey($array=\"\",$value=\"\")\n {\n //echo \"here\";die();\n foreach($array as $key => $val){ \n if($val['car_id'] == $value){\n return $key;\n }\n } \n return false;\n }", "title": "" }, { "docid": "cb5cc442310ebe60c789bba4c6f4b15e", "score": "0.6214565", "text": "function erp_rec_searchForId( $sid, $array ) {\n foreach ( $array as $key => $val ) {\n if ( $val['sid'] === $sid ) {\n return $sid;\n }\n }\n return false;\n}", "title": "" }, { "docid": "241899b6838643a95fa46e7be65fa08c", "score": "0.6194734", "text": "function search_array($value, &$array) {\n for ($i = 0; $i < sizeof($array); $i++) {\n if (bccomp(floatval($value), floatval($array[$i]), 1) === 0) { \n return $i;\n }\n }\n return false;\n }", "title": "" }, { "docid": "36c6d9d40d3afc86959bd3a4f362ac7f", "score": "0.61935854", "text": "function search($name, $array){\n\t$searchedArray=[];\n\tforeach($array as $key => $value){\n\t\t$keyCheck=strtoupper($key);\n\t\tif(stripos($key,$name)!==false){\n\t\t\t$searchedArray[$key]=$value;\n\t\t}\n\t}\n\tif(sizeof(searchedArray)===0){\n\t\techo 'No contacts with that information found';\n\t}\n\treturn $searchedArray;\n}", "title": "" }, { "docid": "db62073ba950a5b6f3fa3c8a7029fe8f", "score": "0.61896217", "text": "function searchForId($id, $array) {\n foreach ($array as $key => $val) {\n if ($key === $id) {\n return $val;\n }\n }\n return null;\n }", "title": "" }, { "docid": "c53275c2c1d1933406e731265662121d", "score": "0.6182428", "text": "function searchForValue($id, $array) \n {\n foreach ($array as $key) \n {\n if ($key['consumption_measure'] == $id)\n {\n return $key['consumption'];\n }\n }\n return \"No Value\";\n }", "title": "" }, { "docid": "cc1963b3abe544170eca11f53140e783", "score": "0.6182128", "text": "function searchArray($array, $search_list) {\n $result = array();\n\n if (!is_array($array)) { return false ; }\n // Iterate over each array element\n foreach ($array as $key => $value) {\n\n // Iterate over each search condition\n foreach ($search_list as $k => $v) {\n\n // If the array element does not meet\n // the search condition then continue\n // to the next element\n if (!isset($value[$k]) || $value[$k] != $v)\n {\n\n // Skip two loops\n continue 2;\n }\n }\n\n // Append array element's key to the\n //result array\n $result[] = array_merge($value,array('kkey'=>$key));\n }\n\n // Return result\n return $result;\n}", "title": "" }, { "docid": "0a4bca6d161109ba21a71f1349d57145", "score": "0.6176757", "text": "function search_value_from_array_except_id($value, $key, $array, $except_value, $except_key){\n foreach($array as $val){\n if( strtolower( trim($val[$key]) ) == strtolower($value) && $except_value != $val[$except_key]){\n return TRUE;\n }\n }\n return FALSE;\n }", "title": "" }, { "docid": "c6861ec8e4d93ca1a62b5cabe6164388", "score": "0.6174149", "text": "private function search_array($array, $value)\n {\n if (is_array($array)) {\n foreach ($array as $key) {\n if ($value == $key || strpos($value, $key) == 0) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "07ca0b6ea78367b4776444eba271f312", "score": "0.61517245", "text": "public static function searchArray($value,$array,$return_index=0)\n\t{\n\t\t$index = self::recursive_array_search($value,$array);\n\n\t\tif($index !== false && isset($array[$index][$return_index]) && !empty($array[$index][$return_index])){\n\t\t\treturn $array[$index][$return_index];\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "1928778bcf13a8f79c666e43e396caff", "score": "0.6149576", "text": "function search($array, $value) {\n\t\tif (is_object($value)) {\n\t\t\treturn Arrays::_searchObject($array, $value);\n\t\t} else {\n\t\t\t$search = array_search($value, $array);\n\t\t\tif ($search === false or is_null($search)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\treturn $search;\n\t\t}\n\t}", "title": "" }, { "docid": "c62289c3279dffdcb5a5f47dd2e85973", "score": "0.6119197", "text": "function md_array_search($needle, $haystack)\n{\n\tif (empty($needle) || empty($haystack))\n\t{\n\t\treturn false;\n\t}\n\n\tforeach ($haystack as $key => $value)\n\t{\n\t\tif(is_array($value))\n\t\t{\n\t\t\tif(md_array_search($needle, $value))\n\t\t\t\treturn true;\n\t\t}\n\t\telseif ($value == $needle)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "0cf05c90a8bd7dbf071bf5562b105ca4", "score": "0.61000735", "text": "public function contains()\n\t{\n\t\t$args = func_get_args();\n\t\t$isValid = false;\n\t\tif ( func_num_args() == 2 ) \n\t\t{\t\t\t \n\t\t\t$search_key = $args[0];\n\t\t\t$search_value = $args[1];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$search_key = '';\n\t\t $search_value = $args[1];\t\t\t\n\t\t}\n\t\t//If search value founds, to stop the iteration using try catch method for faster approach\n\t\ttry {\n\t\t\t array_walk_recursive($this->source, function(&$value, &$key) use(&$search_key, &$search_value){\n\t\t \tif($search_value != ''){\n\t\t \t\tif($search_value == $value && $key == $search_key){\n\t\t \t\t\t$isThere = true;\t\n\t\t \t\t}\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\tif($search_value == $value){\n\t\t \t\t\t$isThere = true;\t\n\t\t \t\t}\n\t\t \t}\n\t\t \t// If Value Exists\n\t\t if ($isThere) {\n\t\t throw new Exception;\n\t\t } \n\t\t });\n\t\t }\n\t\t catch(Exception $exception) {\n\t\t\t $isValid = true;\n\t\t }\n\t\treturn $this->source = $isValid;\n\t}", "title": "" }, { "docid": "1df2d437d413ea542910be63ca1399bb", "score": "0.6095354", "text": "public function in_Array() {\n $Values = func_get_args();\n $Array = array();\n if (is_array($Values[0])) {\n $Array = $Values[0];\n } else {\n return null;\n }\n $Need = array_slice($Values, 1);\n $CountNeed = count($Need);\n $EleInt = 0;\n foreach ($Need as $element) {\n if (array_key_exists($element, $Array)) {\n $EleInt++;\n if ($EleInt == $CountNeed) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "fd2715cdc1b8db7401b9fc67c4a47f3e", "score": "0.60686064", "text": "function check_array($value,$array){\r\n\t$bool = false;\r\n\tforeach($array as $data){\r\n\t\tforeach($data as $key => $val){\r\n\t\t\tif($key ==\"contenthash\"){\r\n\t\t\t\tif($val == $value){\r\n\t\t\t\t\t$bool = true;\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t}\r\n\t}\r\n\treturn $bool;\r\n}", "title": "" }, { "docid": "79ad5bff73574ec40c8aff4a6bf51467", "score": "0.6058994", "text": "public function find_array()\n {\n }", "title": "" }, { "docid": "d3456282ad31cb0a1448812b871b0040", "score": "0.60575086", "text": "function myInArray($array, $value, $key){\n\tforeach ($array as $val) {\n\t\t//if $val is an array cal myInArray again with $val as array input\n\t\tif(is_array($val)){\n\t\t\tif(myInArray($val,$value,$key))\n\t\t\t\treturn true;\n\t\t} else {\n\t\t\t//else check if the given key has $value as value\n\t\t\tif($array[$key]==$value) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "b2db669bfd5012f99aa66f86d23dca69", "score": "0.6029219", "text": "function searchForArrayValue($id, $array) \n {\n if ($array['consumption_measure'] == $id)\n {\n return $array['consumption'];\n }\n return \"No Value\";\n }", "title": "" }, { "docid": "3d887bb50b084de0a7c3a556d8b7af58", "score": "0.60107464", "text": "public static function arraySearchMultiarray($mixFind = null, $arrData = null)\n {\n foreach ($arrData as $arrValue) {\n for ($intCount = 0; $intCount < count($arrValue); ++$intCount) {\n if ($arrValue[$intCount] === $mixFind)\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "083a1c7bdb1c310a3261cbd220c80510", "score": "0.599834", "text": "function array_find_val($array, $iterator)\n\t{\n\t\tforeach( $array as $k => $v )\n\t\t{\n\t\t\tif( $iterator($v,$k) )\n\t\t\t{\n\t\t\t\treturn $v;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "65d44802fb04fa587e2e91bea0d07833", "score": "0.59924155", "text": "function doSearch($array, $search){\n\tglobal $searchArray;\n\t$search = strtolower($search);\n\t$search = trim($search);\n\t$len = strlen($search);\n\t\n\tforeach ($array as $key => $value) { \n\n\t\tif(is_array($value)){\n\t\t\tdoSearch($value, $search);\n\t\t}else{\n\t\t\t$compare = strtolower($value);\n\t\t\tif(stristr($compare,$search)){\n\t\t\t\tarray_push($searchArray, $key);\t\t\t\t\n\t\t\t}\n\t\t}\n\t}\t\n\t\n\t//convert to json obj and pass it to js as response\n\t$resultado = (empty($searchArray)) ? json_encode('No search result.') : json_encode($searchArray) ;\n\n\treturn $resultado;\n}", "title": "" }, { "docid": "df412279ce2aa8657d907a803a889b0f", "score": "0.5985115", "text": "function search_code_from_array($csv_value, $code_key, $array){\n foreach($array as $val){\n\t\t\tif(strtolower(trim($val[$code_key])) == strtolower(trim($csv_value))){\n \t\treturn $val[$code_key];\n \t\t}\n \t\t}\n \t\treturn $csv_value;\n }", "title": "" }, { "docid": "6ee91b301981aa0a63dfa4c84f2d3637", "score": "0.59773684", "text": "function searchForKey($id, $array) {\n foreach ($array as $key => $val) {\n if ($val[1] === $id) {\n return $key;\n }\n }\n return null;\n}", "title": "" }, { "docid": "dcbbf6cfafd35bcae65764926d8082ed", "score": "0.5975762", "text": "function rechercheIngredient($rechercher) {\n include(\"Donnees.inc.php\");\n $result = false;\n foreach ($Hierarchie as $key => $innerArray) {\n $all[] = $key; //ligne 1470\n if (is_array($innerArray)) {//1471\n foreach ($innerArray as $superEtSous => $innerInnerArray) {\n if(is_array($innerInnerArray)) {\n foreach ($innerInnerArray as $ingredient) {\n if ($rechercher == $ingredient){\n $result = true;\n }\n }\n }\n }\n }\n }\n return $result;\n}", "title": "" }, { "docid": "c48b9119de78300948ea9e06ddd7762b", "score": "0.59662503", "text": "public static function search($value)\n {\n return \\array_search($value, static::toArray(), true);\n }", "title": "" }, { "docid": "d8a3316178c1dbf0b55ddacca09d3949", "score": "0.5954422", "text": "function enArray($valor,$array){\n\tforeach(array_keys($array) as $n){\n\t\tif(siExiste($n,$valor) && !$ok){\n\t\t\t$ok = true;\n\t\t\t$find = $n;\n\t\t\tbreak;\n\t\t}else{$find = false;}\t\n\t}\n\treturn $find;\n}", "title": "" }, { "docid": "9120b063ace10fc43dc1e903a663c5b2", "score": "0.5937595", "text": "function search_array_keyword($keyword, $array){\n $matches = array_filter($array, function($var) use ($keyword){ return preg_match(\"/\\b$keyword\\b/i\", $var);});\n return $matches;\n}", "title": "" }, { "docid": "7cd6dc444422532b43262046bb32f85c", "score": "0.59157115", "text": "public static function multi_search($arr, $arrayCheck) {\n $result = array();\n $lenght = 0;\n if ($arr) {\n foreach ($arr as $item) {\n $lenght = 0;\n foreach ($arrayCheck as $key => $value) {\n if ($item[$key] == $value) {\n $lenght++;\n }\n }\n if ($lenght == sizeof($arrayCheck)) {\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "251428dc27b60eb2ab6c7a426f3e5267", "score": "0.59006447", "text": "public static function search2DArray($array, $field, $value) {\n foreach ($array as $key => $val) {\n if ($val[$field] === $value) {\n return $key;\n }//E# if statement\n }//E# foreach statement\n return null;\n }", "title": "" }, { "docid": "9c5fb6222caca02b072acd01920ca476", "score": "0.58930695", "text": "function look_for($name, $array) {\n\n\t$found = is_int(array_search($name, $array));\n\n\t// if ($found === True) {\n\t// \t\techo 'True' .\" \\n\";\n\t// }\n\n\t// else {\n\t// \t\techo 'False' .\" \\n\";\n\t\n\t return $found;\n\t\n}", "title": "" }, { "docid": "6d0b0445dd4bfe2f8263dd693552d55b", "score": "0.588471", "text": "function in_arrayM($v, $haystack)\r\n {\r\n foreach($haystack as $a)\r\n { if(count($a) > 0)\r\n if(in_array($v, $a))\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "77af357406df24924ccf67adf5c521c0", "score": "0.58741367", "text": "function twe_in_array($value, $array) {\n if (!$array) $array = array();\n\n if (function_exists('in_array')) {\n if (is_array($value)) {\n for ($i=0; $i<sizeof($value); $i++) {\n if (in_array($value[$i], $array)) return true;\n }\n return false;\n } else {\n return in_array($value, $array);\n }\n } else {\n reset($array);\n while (list(,$key_value) = each($array)) {\n if (is_array($value)) {\n for ($i=0; $i<sizeof($value); $i++) {\n if ($key_value == $value[$i]) return true;\n }\n return false;\n } else {\n if ($key_value == $value) return true;\n }\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "beacc13e6a897682a5db863cc2e616d9", "score": "0.5862271", "text": "function search($person, $array){\n\t\t$key = array_search($person, $array);\n\t\t// echo \"\\$key is $key\\n\";\n\t\t//use is_numeric(), otherwise a key of zero will return false\n\t\tif(is_numeric($key)){\n\t\t\t// return 'TRUE';\n\t\t\treturn $key;\n\t\t} else {\n\t\t\t// return 'FALSE';\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "bbd042765ce9ec8af32139589a7fabb9", "score": "0.5855508", "text": "function arrayIntersectResults(array $params)\n{\n $count = 0;\n //checks if params is empty, return empty array\n if (count($params) == 0) {\n return [];\n }\n\n foreach ($params as $value) {\n\n if ($count > 0) {\n $result = array_intersect($result, $value);\n } else {\n $result = $value;\n }\n $count++;\n }\n return $result;\n}", "title": "" }, { "docid": "c83cbf1ff5b3d415114c092cd03f2cfe", "score": "0.58384395", "text": "function arr_val_exists( $params, $node ){\n global $FUNCS;\n if( count($node->children) ) {die(\"ERROR: Tag \\\"\".$node->name.\"\\\" is a self closing tag\");}\n\n extract( $FUNCS->get_named_vars(\n array( 'val'=>'',\n 'in'=>'',\n ),\n $params)\n );\n\n return ( is_array($in) && in_array($val, $in) ) ? '1' : '0';\n }", "title": "" }, { "docid": "cab309e59811ce0701e3a2cce99b9df7", "score": "0.5834116", "text": "function check_in_array($v, $a) {\r\n \r\n $array = explode(',', $a);\r\n \r\n //cek apakah value berbentuk array\r\n if (in_array($v, $array)) {\r\n return 'ada';\r\n } \r\n else {\r\n return 'kosong';\r\n }\r\n}", "title": "" }, { "docid": "382c709f1ba41a16256e17752225e39d", "score": "0.5825401", "text": "function Aastra_search2d($array,$search,$index)\n{\n# Not found yet\n$return[0]=False;\n\n# Browse the array\nforeach($array as $key=>$value)\n\t{\n\tif($value[$index]==$search)\n\t\t{\n\t\t$return[0]=True;\n\t\t$return[1]=$key;\n\t\tbreak;\n\t\t}\n\t}\n\n# Return index\nreturn($return);\n}", "title": "" }, { "docid": "f9640f6244385129a48feb5dc14b4a80", "score": "0.5824422", "text": "public function filter_by_value_arr($data,$key,$value) \n\t\t\t\t\t{\n\n\n\t\t\t\t\t\t\t\t$data_src= $data;\n\t\t\t\t\t\t\t\t$key_filter = $key;\n\t\t\t\t\t\t\t\t$value_filter = $value;\n\t\t\t\t\t\t\t\t$arr_filter = array();\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//*********Controllo se la chiave passata è esistente*****************\n\t\t\t\t\t\t\t\tif (array_key_exists($key, $data_src[0])!==true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\techo \"\\n\\n\\n--> Attenzione chiave per la condizione where (-w) inesistente!!! <--\\n\\n\\n\";\n\t\t\t\t\t\t\t\t\t\treturn $arr_filter=array();\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//*********Fine Controllo se la chiave passata è esistente*****************\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t$arr_filter = array_filter($data_src, function ($item) use ($value_filter,$key_filter) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($item[$key_filter] == $value_filter) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t});\n\n\n\n\t\t\t\t\t\treturn $arr_filter;\n\n\t\t\t\t}", "title": "" }, { "docid": "701d412f8809696e54103e58a1952896", "score": "0.581945", "text": "function multi_array_key_exists($needle, $haystack) {\n foreach ($haystack as $key=>$value) {\n if ($needle==$key) {\n return $key;\n }\n if (is_array($value)) {\n if(multi_array_key_exists($needle, $value)) {\n return $key . \":\" . multi_array_key_exists($needle, $value);\n }\n }\n }\n return false;\n}", "title": "" }, { "docid": "3b19cc9683dadd25c1134f0534b92698", "score": "0.5798717", "text": "function search_array($needle, $haystack) {\n if(in_array($needle, $haystack)) {\n return true;\n }\n foreach($haystack as $element) {\n if(is_array($element) && search_array($needle, $element))\n return true;\n }\n return false;\n}", "title": "" }, { "docid": "881fd21f3938f07ef173f14e4dee71a3", "score": "0.5778189", "text": "function array_search_value($needle, $haystack, $valuekey=null)\n{\n\tforeach($haystack as $key => $value) {\n\t\t$val = isset($valuekey) ? @$value[$valuekey] : $value;\n\t\tif ($needle == $val){\n\t\t\treturn $value;\n\t\t}\n\t}\n\treturn null;\n}", "title": "" }, { "docid": "f28a9d58f4dd15e766590df412b71eaf", "score": "0.57690704", "text": "public function find_array() {\n\t\treturn $this->run();\n\t}", "title": "" }, { "docid": "fc044dfa9a42b79ae278fd8a7529e943", "score": "0.5753231", "text": "public function Contains($value) {\n foreach ($this->Array as $item) {\n if ($value === $item)\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "e16ba9b3ab82d11797a98251c990a5fb", "score": "0.5752536", "text": "public function search($value);", "title": "" }, { "docid": "3b2197eee53037a2f74b87755fdb0a13", "score": "0.5749242", "text": "function search_object_in_array_by_key($object = FALSE, $array = FALSE, $key = FALSE) {\n\t$exist = FALSE;\n\n\tif ($object && $array && $key && is_array($array) && property_exists($object, $key)) {\n\n\t\tforeach ($array as $i => $current) {\n\t\t\tif (property_exists($current, $key)) {\n\t\t\t\tif ($object->$key == $current->$key) {\n\t\t\t\t\t$exist = TRUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $exist;\n}", "title": "" }, { "docid": "47e8b98cc456aa9c61169f18d1b7cde0", "score": "0.57451546", "text": "function matchInArray($element, $array, $elementIfMatch)\r\n{\r\n\tforeach ($array as $key => $value)\r\n\t{\r\n\t\tif (strchr(strtolower($element), $value))\r\n\t\t\treturn $elementIfMatch;\r\n\t}\r\n\treturn $element;\r\n}", "title": "" }, { "docid": "109e6c5f6d6ffa10b44ac9e7782d443d", "score": "0.57366073", "text": "public static function search($arr, $field, $value) {\n return !empty(static::filter($arr, $field, $value)) ? true : false;\n }", "title": "" }, { "docid": "350d3c20115e205268f1947af1e6d7d0", "score": "0.5730755", "text": "public static function search(&$arr)\n {\n //taking first an last name to search\n echo \"Enter firstname to search\\n\";\n $fname = Utility::get_String();\n echo \"Enter last name\\n\";\n $lname = Utility::get_String();\n\n //looping over the array and returning the index of person object is name matches\n for ($i = 0; $i < count($arr); $i++) \n {\n if ($arr[$i]->fname == $fname) \n {\n if ($arr[$i]->lname == $lname) \n {\n return $i;\n }\n }\n }\n return -1;\n }", "title": "" }, { "docid": "6bc98e9c43b2bd1a01e6affa3e181ea7", "score": "0.5725541", "text": "function searchForId( $id, $array, $field ) {\n\t\tforeach ( $array as $key => $val ) {\n\t\t\tif ( $val[ $field ] == $id ) {\n\t\t\t\treturn $key;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a0bfcbea0d06e6135a46a699fcce0288", "score": "0.5722754", "text": "public static function search(array $array, string $value)\n {\n return array_search($value, $array, true);\n }", "title": "" }, { "docid": "2b17886e7e5f58ee396e144fca725777", "score": "0.57115656", "text": "function find($data, $id)\n{\n $mixReturn = false;\n foreach ($data as $key => $value) {\n if ($value['id'] == $id) {\n $mixReturn = $key;\n break;\n }\n }\n\n return $mixReturn;\n}", "title": "" }, { "docid": "383da0f175bd20ad1f60d6e402c43e85", "score": "0.5711318", "text": "function array_contains($item, $allowed_array, $case_sensitive = false) {\n\t$results = false;\n\tif(isset($item) == true && is_array($allowed_array)) { \n\t\t$item = sanitize_input($item);\n\t\tif(is_string($item) && $case_sensitive == false) { if(in_array(strtoupper($item), $allowed_array) || in_array(strtolower($item), $allowed_array)) { $results = true; } }\n\t\telse { if(in_array($item, $allowed_array)) { $results = true; } }\n\t}\n\treturn $results;\n}", "title": "" }, { "docid": "20383d0e6e5cfc1afa69625b18383021", "score": "0.57083344", "text": "function get_items_where_key_contain($array, $search_string){\n $result = [];\n foreach ($array as $k=>$v){\n if (strpos($k, $search_string) !== false) {\n $result[$k] = $v;\n }\n }\n return $result;\n}", "title": "" }, { "docid": "d0f5ca780dbd98587938e0e48a52f9a3", "score": "0.5708117", "text": "protected function find($array, $key)\n {\n if (empty($key) && !is_numeric($key) || empty($array) || !is_array($array)) {\n return [false, null];\n }\n\n $partsOfKey = explode('.', $key);\n $variants = [];\n $parts = [];\n\n do {\n $partial = implode('.', $partsOfKey);\n\n if (array_key_exists($partial, $array)) {\n if (!count($parts)) {\n return [true, $array[$partial]];\n }\n\n $variants[implode('.', $parts)] = $array[$partial];\n }\n\n array_unshift($parts, array_pop($partsOfKey));\n } while (count($partsOfKey));\n\n foreach ($variants as $path => $branch) {\n list($has, $value) = $this->find($branch, $path);\n\n if ($has) {\n return [true, $value];\n }\n }\n\n return [false, null];\n }", "title": "" }, { "docid": "eea016b7ce6f447f108e973ce19e0e62", "score": "0.56908107", "text": "function searchForCompany($company, $array) {\n\t\t foreach ($array as $key => $val) {\n\t\t\t if ($val['company_name'] === $company) {\n\t\t\t\t return $key;\n\t\t\t }\n\t\t }\n\t\t return null;\n\t\t}", "title": "" }, { "docid": "14765fb25876782bc111b0c23de54313", "score": "0.5686504", "text": "function searchTransactionsByMetadata($arr,$metadata)\n\t{\n\t\t$arr_fin = array();\n\t\tforeach ($arr as $item=>$arr1)\n\t\t{\n\n\t\t\tforeach ($arr1 as $item1=>$value1)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif($item1==\"data\" && strpos(\"x\".$value1[0], $metadata)!==0)\n\t\t\t\t{\n\t\t\t\t\tarray_push($arr_fin, $arr1);\n\t\t\t\t\treturn $arr_fin;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $arr_fin;\n\t}", "title": "" }, { "docid": "4c0d4be54f92657de63230097dedf077", "score": "0.5671116", "text": "public static function FilterMultiArrayByValue( $array, $key, $value )\n {\n \treturn array_filter( $array, function( $element ) use ( $parameter ){\n \t\treturn ($element['key'] == $parameter['value'] );\n \t});\n }", "title": "" }, { "docid": "a66c8456feb5f2b49f95cbc3613e2e9e", "score": "0.5670971", "text": "public function get_key_array_search_multi( $array, $value, $needle ) {\n\n\t\tforeach( $array as $index_key => $value_key ) {\n\n\t\t\tif ( $value_key[$value] === $needle ) return $value_key;\n\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e72791473ca5e302ee121aa705629180", "score": "0.5665268", "text": "function array_find_r($needle, $haystack, $partial_matches = false, $search_keys = false) {\n if(!is_array($haystack)) return false;\n foreach($haystack as $key=>$value) {\n $what = ($search_keys) ? $key : $value;\n if($needle===$what) return $key;\n else if($partial_matches && @strpos($what, $needle)!==false) return $key;\n else if(is_array($value) && array_find_r($needle, $value, $partial_matches, $search_keys)!==false) return $key;\n }\n return false;\n }", "title": "" }, { "docid": "35139e34984ac024b90ca72b5b5e2d76", "score": "0.56332684", "text": "function is_employee_exists_with_payroll_company_in_array($employee_no_key, $employee_no, $payroll_no_key, $payroll_no, $company_key, $company, $array){\n $found = FALSE;\n foreach ($array as $row) {\n if ((strtolower(trim($row[$employee_no_key])) === strtolower(trim($employee_no))) && (strtolower(trim($row[$payroll_no_key])) === strtolower(trim($payroll_no))) && (strtolower(trim($row[$company_key])) === strtolower(trim($company)))) {\n $found = TRUE; break;\n }\n }\n return $found;\n }", "title": "" }, { "docid": "b4ed4d0f08e6b82f91632550a1fa5e3d", "score": "0.5620144", "text": "function FindInList($list,$value) {\n\n for ($i = 0; $i < count($list); $i++) if ($value == $list[$i]) return true;\n return false;\n}", "title": "" }, { "docid": "0546f46d159433cc5e596815e89a7fee", "score": "0.5613685", "text": "private function searchData(array $data) {\n\t\t$fieldResultsArray = array();\n\n\t\tforeach ($data as $key => $value) {\n\t\t\tif (strpos($key, '+') === 0) {\n\t\t\t\ttry {\n\t\t\t\t\t$data = json_decode($value);\n\t\t\t\t\t$FieldResultsModel = $this->searchBlocksRecursively($key, $data->blocks);\n\t\t\t\t} catch (Exception $error) {\n\t\t\t\t\t$FieldResultsModel = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$FieldResultsModel = $this->searchTextField($key, $value);\n\t\t\t}\n\n\t\t\tif (!empty($FieldResultsModel)) {\n\t\t\t\t$fieldResultsArray[] = $FieldResultsModel;\n\t\t\t}\n\t\t}\n\n\t\treturn $fieldResultsArray;\n\t}", "title": "" }, { "docid": "fa71ac77150e0fbab5d5bfc07025c9de", "score": "0.559837", "text": "public static function like(array $array, $value)\n {\n foreach($array as $row => $line) {\n if (str_contains($line, $value)) return $line;\n }\n }", "title": "" }, { "docid": "2473b11a415e6cbd48feadec579076c4", "score": "0.55906415", "text": "function anagram_array_find( $needle , $haystack ) {\n if(!is_array($haystack)) return false;\n foreach ($haystack as $key=>$item) {\n // See if the item is in the needle\n if (strpos($needle, $item ) !== false) return true;\n }\n return false;\n}", "title": "" }, { "docid": "49045b85c31a6f2b1e0d581edf19e632", "score": "0.55876774", "text": "public function contains(...$values): bool;", "title": "" }, { "docid": "f2bb770792ad23c2ecdba8bf0ead6cc1", "score": "0.5579398", "text": "function assertArrayContains($array, array $partial_array)\n {\n $scope = key($partial_array);\n $value = current($partial_array);\n $this->assertArrayHasKey($scope,$array);\n $this->assertRegExp('/'.$value.'/',$array[$scope]);\n }", "title": "" }, { "docid": "f1546ccbaac3741c0273ca63678b9984", "score": "0.5567249", "text": "function search($arr)\n{\n //taking user input to search the contact\n echo \"Enter firstaname to search\\n\";\n $fName = Oops::readString();\n for ($i = 0; $i < count($arr); $i++) {\n if ($arr[$i]->fName == $fName) {\n return $i;\n }\n }\n return -1;\n}", "title": "" }, { "docid": "0d822a0ee0e31c3ae6e8edecc962cd0c", "score": "0.55558723", "text": "protected function searchArray(array $a, array $b)\n {\n foreach ($a as $v)\n if (in_array($v, $b))\n return true;\n return false;\n }", "title": "" }, { "docid": "f5e3c25cf16ec030b0fa7f7076d5632b", "score": "0.55518687", "text": "static function GetMArrayItemByKey($mArray, $key, $val){\r\n\t\t$ret = [];\r\n\t\tforeach($mArray as $index => $item){\r\n\t\t\tif(is_array($item) && isset($item[$key]) && $item[$key] == $val){\r\n\t\t\t\t$ret[$index] = $item;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(!empty($ret)){\r\n\t\t\treturn $ret;\r\n\t\t}\r\n\t\treturn NULL;\r\n\t}", "title": "" }, { "docid": "ffbb93dbb7ff1482087bd942c4cf43b1", "score": "0.5547312", "text": "function array_usearch($callback, $needle, $haystack, $strict = false) {\n // loop through the array\n foreach ($haystack as $key => $value) {\n if (!$strict && $callback($value) == $needle ||\n $strict && $callback($value) === $needle) return $key;\n }\n // not found\n return false;\n}", "title": "" }, { "docid": "495a91e861791cdc60c51b616966d924", "score": "0.5542035", "text": "public function find($value, $strict = true)\n {\n return array_search($value, $this->_items, $strict);\n }", "title": "" }, { "docid": "f481546b80886eaf3917adf75e26bd32", "score": "0.55184585", "text": "function searchForValueInChildArray($needle, $keyName, $parentArray)\n {\n foreach ($parentArray as $parentKey => $childArray) \n {\n if(!array_key_exists($keyName, $childArray))\n continue;\n\n if($childArray[$keyName] == $needle)\n return $parentKey;\n }\n return null;\n }", "title": "" }, { "docid": "66b50043e1e8e7130be02fb9d5cd374b", "score": "0.5511997", "text": "static function search_key($key, $array_or_object, &$value_container=null) {\n $value_found = false;\n if (!self::is_iterable($array_or_object)) {\n return false;\n }\n foreach($array_or_object as $k=>$value) {\n if ( ($key==$k) || self::search_key($key, $value, $value_container) ) {\n if (!$value_found) {\n $value_found = true;\n $value_container = $value;\n }\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "faea99c971e6d02de04b86b44b2fd9a9", "score": "0.5498314", "text": "function get_key_by_employee_payroll_company_in_array($employee_no_key, $employee_no, $payroll_no_key, $payroll_no, $company_key, $company, $array, $key){\n foreach ($array as $row) {\n if ((strtolower(trim($row[$employee_no_key])) === strtolower(trim($employee_no))) && (strtolower(trim($row[$payroll_no_key])) === strtolower(trim($payroll_no))) && (strtolower(trim($row[$company_key])) === strtolower(trim($company)))) {\n return $row[$key];\n }\n }\n return null;\n }", "title": "" }, { "docid": "5d54c1caf3889d21b1401ac2a0853ccb", "score": "0.5494081", "text": "function array_search_key_value_match($array, $key, $value) {\n $array_key = array_search($value, array_column($array, $key));\n return (is_int($array_key) ? $array_key : null);\n}", "title": "" }, { "docid": "f4618f29daa2f79cbe6b9cd0186e06df", "score": "0.5494054", "text": "public function isExist($value=null,$array=null)\n\t{\n\t\t$i=0;\n\t\t$flag=0;\n\t\t$value=strtolower($value);\n\t\t$keyNames = array_keys($array);\n\t\tforeach ($keyNames as $key){\n\t\t\tif($array[$key]==$value || $array[$key]==null ){\n\t\t\t\t$flag=1;\n\t\t\t\t$data[$i++] = $this->_msg['select'].' \"<b>'.$key.'</b>\"';}}\n\t\tif($flag==1)\n\t\t\treturn $data;\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "7907e0abf89a1acf0462a9afee8f3cea", "score": "0.54895604", "text": "public function in_array_by_key( $value, $key, $array, $strict = false )\n\t{ \n\t\tif( $strict )\n\t\t{\n\t\t\tforeach( $array as $item )\n\t\t\t{\n\t\t\t\tif( isset($item[$key]) && $item[$key] === $value ) return true;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach( $array as $item )\n\t\t\t{\n\t\t\t\tif( isset($item[$key]) && $item[$key] == $value ) return true; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false; \n\t}", "title": "" }, { "docid": "2f2846d28e4f844d28036d6a08d6b146", "score": "0.54858077", "text": "function any_in_array($needle, $haystack)\n{\n $needle = is_array($needle) ? $needle : [$needle];\n\n foreach ($needle as $item) {\n if (in_array($item, $haystack, true)) {\n return true;\n }\n }\n\n return false;\n}", "title": "" } ]
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "11989cdb5382bf04788eac4b12514f44", "score": "0.0", "text": "public function destroy($id)\n {\n $item=Portafolio::find($id);\n $item->delete();\n return redirect('/admin/portafolio')->with('success', 'Registro Borrado Exitosamente');\n }", "title": "" } ]
[ { "docid": "ef853768d92b1224dd8eb732814ce3fa", "score": "0.7318632", "text": "public function deleteResource(Resource $resource);", "title": "" }, { "docid": "32d3ed9a4be9d6f498e2af6e1cf76b70", "score": "0.6830789", "text": "public function removeResource($resource)\n {\n // Remove the Saved Resource\n $join = new User_resource();\n $join->user_id = $this->user_id;\n $join->resource_id = $resource->id;\n $join->list_id = $this->id;\n $join->delete();\n\n // Remove the Tags from the resource\n $join = new Resource_tags();\n $join->user_id = $this->user_id;\n $join->resource_id = $resource->id;\n $join->list_id = $this->id;\n $join->delete();\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public function destroy(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "c3b6a958d3ad1b729bfd6e4353c3feba", "score": "0.6540415", "text": "public function deleteFile(ResourceObjectInterface $resource);", "title": "" }, { "docid": "00aa681a78c0d452ad0b13bfb8d908dd", "score": "0.64851683", "text": "public function removeResource(IResource $resource): void {\n\t\t$this->resources = array_filter($this->getResources(), function (IResource $r) use ($resource) {\n\t\t\treturn !$this->isSameResource($r, $resource);\n\t\t});\n\n\t\t$query = $this->connection->getQueryBuilder();\n\t\t$query->delete(Manager::TABLE_RESOURCES)\n\t\t\t->where($query->expr()->eq('collection_id', $query->createNamedParameter($this->id, IQueryBuilder::PARAM_INT)))\n\t\t\t->andWhere($query->expr()->eq('resource_type', $query->createNamedParameter($resource->getType())))\n\t\t\t->andWhere($query->expr()->eq('resource_id', $query->createNamedParameter($resource->getId())));\n\t\t$query->execute();\n\n\t\tif (empty($this->resources)) {\n\t\t\t$this->removeCollection();\n\t\t} else {\n\t\t\t$this->manager->invalidateAccessCacheForCollection($this);\n\t\t}\n\t}", "title": "" }, { "docid": "e63877a9259e2bac051cf6c3de5eca30", "score": "0.6431514", "text": "public function deleteResource(Resource $resource) {\n\t\t$pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n\t\ttry {\n\t\t\t$result = $this->filesystem->delete($pathAndFilename);\n\t\t} catch (\\Exception $e) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "680170dae622eedce573be6ddf82f8db", "score": "0.6371304", "text": "public function removeStorage($imgName,$storageName);", "title": "" }, { "docid": "95caa506b86f6d24869dcb0b83d598e5", "score": "0.63126063", "text": "public function unlink(IEntity $source, IEntity $target, string $relation): IStorage;", "title": "" }, { "docid": "2f5ddf194cad1d408d416d31cae16f05", "score": "0.6301321", "text": "public function delete()\n {\n Storage:: delete();\n }", "title": "" }, { "docid": "b907271045dec6299e819d6cb076ced8", "score": "0.6288393", "text": "abstract protected function doRemove(ResourceInterface $resource, $files);", "title": "" }, { "docid": "90bf57c42b6c381768022b254ea3b8e9", "score": "0.62784326", "text": "public static function remove ($resource, $data) {\n // Retrieve resource.\n $list = self::retriveJson($resource);\n // If resource is not availabe.\n if ($list == 1) return 1;\n\n // Iterate through list.\n foreach($list as $i => $object) {\n // If an object with the given id exists, remove it.\n if ($object['id'] == $data['id']) {\n array_splice($list, $i, 1);\n return 0;\n }\n }\n\n // If object does not exists.\n return 2;\n }", "title": "" }, { "docid": "5eda1f28deed9cc179d6350748fe7164", "score": "0.62480205", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n activity()\n ->performedOn(Auth::user())\n ->causedBy($resource)\n ->withProperties(['remove user' => 'customValue'])\n ->log('Resource Deleted successfully');\n $notification = array(\n 'message' => 'Resource Deleted successfully', \n 'alert-type' => 'success'\n );\n \n return back()->with($notification); \n }", "title": "" }, { "docid": "42a9b004cc56ed1225f545039f158828", "score": "0.6130072", "text": "function delete_resource($ref)\n\t{\n\t\n\tif ($ref<0) {return false;} # Can't delete the template\n\n\t$resource=get_resource_data($ref);\n\tif (!$resource) {return false;} # Resource not found in database\n\t\n\t$current_state=$resource['archive'];\n\t\n\tglobal $resource_deletion_state, $staticsync_allow_syncdir_deletion, $storagedir;\n\tif (isset($resource_deletion_state) && $current_state!=$resource_deletion_state) # Really delete if already in the 'deleted' state.\n\t\t{\n\t\t# $resource_deletion_state is set. Do not delete this resource, instead move it to the specified state.\n\t\tsql_query(\"update resource set archive='\" . $resource_deletion_state . \"' where ref='\" . $ref . \"'\");\n\n # log this so that administrator can tell who requested deletion\n resource_log($ref,'x','');\n\t\t\n\t\t# Remove the resource from any collections\n\t\tsql_query(\"delete from collection_resource where resource='$ref'\");\n\t\t\t\n\t\treturn true;\n\t\t}\n\t\n\t# Get info\n\t\n\t# Is transcoding\n\tif ($resource['is_transcoding']==1) {return false;} # Can't delete when transcoding\n\n\t# Delete files first\n\t$extensions = array();\n\t$extensions[]=$resource['file_extension']?$resource['file_extension']:\"jpg\";\n\t$extensions[]=$resource['preview_extension']?$resource['preview_extension']:\"jpg\";\n\t$extensions[]=$GLOBALS['ffmpeg_preview_extension'];\n\t$extensions[]='icc'; // also remove any extracted icc profiles\n\t$extensions=array_unique($extensions);\n\t\n\tforeach ($extensions as $extension)\n\t\t{\n\t\t$sizes=get_image_sizes($ref,true,$extension);\n\t\tforeach ($sizes as $size)\n\t\t\t{\n\t\t\tif (file_exists($size['path']) && ($staticsync_allow_syncdir_deletion || false !== strpos ($size['path'],$storagedir))) // Only delete if file is in filestore\n\t\t\t\t {unlink($size['path']);}\n\t\t\t}\n\t\t}\n\t\n\t# Delete any alternative files\n\t$alternatives=get_alternative_files($ref);\n\tfor ($n=0;$n<count($alternatives);$n++)\n\t\t{\n\t\tdelete_alternative_file($ref,$alternatives[$n]['ref']);\n\t\t}\n\n\t\n\t// remove metadump file, and attempt to remove directory\n\t$dirpath = dirname(get_resource_path($ref, true, \"\", true));\n\tif (file_exists(\"$dirpath/metadump.xml\")){\n\t\tunlink(\"$dirpath/metadump.xml\");\n\t}\n\t@rmdir($dirpath); // try to delete directory, but if it has stuff in it fail silently for now\n\t\t\t // fixme - should we try to handle if there are other random files still there?\n\t\n\t# Log the deletion of this resource for any collection it was in. \n\t$in_collections=sql_query(\"select * from collection_resource where resource = '$ref'\");\n\tif (count($in_collections)>0){\n\t\tif (!function_exists(\"collection_log\")){include (\"collections_functions.php\");}\n\t\tfor($n=0;$n<count($in_collections);$n++)\n\t\t\t{\n\t\t\tcollection_log($in_collections[$n]['collection'],'d',$in_collections[$n]['resource']);\n\t\t\t}\n\t\t}\n\n\thook(\"beforedeleteresourcefromdb\",\"\",array($ref));\n\n\t# Delete all database entries\n\tsql_query(\"delete from resource where ref='$ref'\");\n\tsql_query(\"delete from resource_data where resource='$ref'\");\n\tsql_query(\"delete from resource_dimensions where resource='$ref'\");\n\tsql_query(\"delete from resource_keyword where resource='$ref'\");\n\tsql_query(\"delete from resource_related where resource='$ref' or related='$ref'\");\n\tsql_query(\"delete from collection_resource where resource='$ref'\");\n\tsql_query(\"delete from resource_custom_access where resource='$ref'\");\n\tsql_query(\"delete from external_access_keys where resource='$ref'\");\n\tsql_query(\"delete from resource_alt_files where resource='$ref'\");\n\t\t\n\thook(\"afterdeleteresource\");\n\t\n\treturn true;\n\t}", "title": "" }, { "docid": "d9b3f9cbdf088b174df39b489f05872c", "score": "0.6087595", "text": "public function delete(UriInterface $uri, \\stdClass $resource)\n {\n $this->cachePool->deleteItem($this->createCacheKey($uri));\n\n if(!property_exists($resource, '_links')) {\n return;\n }\n\n $links = $resource->_links;\n\n if($links) {\n foreach ($links as $link) {\n if(is_object($link) && property_exists($link, 'href')) {\n $uri = Client::getInstance()\n ->getDataStore()\n ->getUriFactory()\n ->createUri($link->href);\n }\n\n $this->cachePool->deleteItem($this->createCacheKey($uri));\n }\n }\n\n }", "title": "" }, { "docid": "9b39cbd70aa1aa97e5e5907676b3271e", "score": "0.60398406", "text": "public function removeResource ($name)\n\t{\n\t\t\n\t\tif (isset ($this->resources[$name]))\n\t\t{\n\t\t\t\n\t\t\tunset ($this->resources[$name]);\n\t\t\t\n\t\t\tif (isset ($this->$name))\n\t\t\t{\n\t\t\t\tunset ($this->$name);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "21644a433a62c5fd1c528ea36afc90b8", "score": "0.6036098", "text": "public function destroy(Resource $resource)\n {\n $resource->delete();\n return redirect()->route('resource.index');\n }", "title": "" }, { "docid": "ba57ef5b5809e7e9dff4ab48e18b343a", "score": "0.603003", "text": "public function delete()\n\t{\n\t\t$this->fs->remove($this->file);\n\t}", "title": "" }, { "docid": "d0b2a4440bb64c6f1cf160d3a82d7633", "score": "0.60045654", "text": "public function destroy($id)\n {\n $student=Student::find($id);\n //delete related file from storage\n $student->delete();\n return redirect()->route('student.index');\n }", "title": "" }, { "docid": "73c704a80ae4a82903ee86a2b821245a", "score": "0.5944851", "text": "public function delete()\n {\n unlink($this->path);\n }", "title": "" }, { "docid": "b4847ad1cd8f89953ef38552f8cdddbe", "score": "0.5935105", "text": "public function remove($identifier)\n {\n $resource = $this->repository->findOneByIdentifier($identifier);\n $this->repository->remove($resource);\n }", "title": "" }, { "docid": "b3d5aa085167568cd1836dd269d2e8dc", "score": "0.59211266", "text": "public function delete(User $user, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b1845194ffa32f9bcc26cc1bed8ee573", "score": "0.5896058", "text": "public function destroy()\n {\n $item = Item::find(request('id'));\n if ($item) {\n if ($item->image_url != '' && file_exists(public_path().'/uploads/item/'.$item->image_url)) {\n unlink(public_path().'/uploads/item/'.$item->image_url);\n }\n $item->delete();\n return response()->json(['success'=>'Record is successfully deleted']);\n }\n}", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "4e9409a2e010e9b11f78c239d4335d8f", "score": "0.58951396", "text": "public function remove();", "title": "" }, { "docid": "53eee40f2e33c1c3b53b819bb59d254d", "score": "0.58634996", "text": "public function delete()\n {\n Storage::delete($this->path);\n return parent::delete();\n }", "title": "" }, { "docid": "28f192e8f4063c3aaceba80a5680f10b", "score": "0.5845638", "text": "public function deleteResource(Resource $resource)\n {\n $whitelist = ['id'];\n $reflObj = new \\ReflectionClass($resource);\n\n //null out all fields not in the whitelist\n foreach ($reflObj->getProperties() as $prop) {\n if (!in_array($prop->getName(), $whitelist)) {\n $prop->setAccessible(true);\n $prop->setValue($resource, null);\n }\n }\n\n //set delete date and status\n $resource->setDateDeleted(new \\DateTime());\n $resource->setStatus(Resource::STATUS_DELETED);\n\n return $resource;\n }", "title": "" }, { "docid": "90ed2fbe159714429baa05a4796e3ed0", "score": "0.58285666", "text": "public function destroy() { return $this->rm_storage_dir(); }", "title": "" }, { "docid": "62415c40499505a9895f5a25b8230002", "score": "0.58192986", "text": "public function destroy($id)\n {\n $storage = Storage::find($id);\n $storage->delete();\n return redirect()->route('storage.index')->with('success', 'Data Deleted');\n }", "title": "" }, { "docid": "a2754488896ea090fe5191a49d9d85b9", "score": "0.58119655", "text": "public function deleteFile()\n { \n StorageService::deleteFile($this);\n }", "title": "" }, { "docid": "368230bb080f8f6c51f1832974a498e2", "score": "0.58056664", "text": "public function destroy($id)\n {\n $product = Product::where('id',$id)->first();\n $photo = $product->image;\n if($photo){\n unlink($photo);\n $product->delete();\n }else{\n $product->delete();\n }\n\n }", "title": "" }, { "docid": "31e5cc4a0b6af59482a96519deaba446", "score": "0.5797684", "text": "public function delete()\r\n {\r\n $directory = rtrim(config('infinite.upload_path'), \"/\");\r\n\r\n Storage::delete($directory . '/' . $this->file_name . '.' . $this->extension);\r\n }", "title": "" }, { "docid": "5760f6df7c6ebd5440da74e84ef8e734", "score": "0.57779175", "text": "public function remove($identifier);", "title": "" }, { "docid": "c473e5d9c679fa421932f0d830432589", "score": "0.5770938", "text": "abstract public function destroyResource(\n DrydockBlueprint $blueprint,\n DrydockResource $resource);", "title": "" }, { "docid": "80ccefee911dbbebc88e3854b170acf7", "score": "0.5765826", "text": "public function removeRecord();", "title": "" }, { "docid": "22ecee59028ed62aa46bfb196c94d320", "score": "0.5745101", "text": "function remove_from_set($setID, $resource) {\n\tglobal $wpdb;\n\t$resource_table = $wpdb->prefix . 'savedsets_resources';\n\t\n\t$wpdb->delete( $resource_table, array( 'set_id' => $setID, 'resource_id' => $resource ), array( '%d','%d' ) );\n\t\n}", "title": "" }, { "docid": "80279a1597fc869ef294d03bcd1a6632", "score": "0.5721846", "text": "public function rm($id)\n {\n }", "title": "" }, { "docid": "f1357ea9bb8630aa33594f5035e30b53", "score": "0.57217026", "text": "public function drop() {\n global $DB;\n\n if (!$DB->count_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid))) {\n throw new coding_exception('Attempt to delete non-existing stash (record)');\n }\n if (!is_writable($this->get_storage_filename())) {\n throw new coding_exception('Attempt to delete non-existing stash (file)');\n }\n\n $DB->delete_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid));\n // if the stash file is not referenced any more, delete it\n if (!$DB->record_exists('amos_stashes', array('hash' => $this->hash))) {\n $filename = $this->get_storage_filename();\n unlink($filename);\n @rmdir(dirname($filename));\n @rmdir(dirname(dirname($filename)));\n }\n }", "title": "" }, { "docid": "45fc5fca7261f9ee05d7a7cfb701d0c1", "score": "0.5717582", "text": "public function destroy($id)\n {\n $del = File::find($id);\n\n if ($del->user_id == Auth::id()) {\n Storage::delete($del->path);\n $del->delete();\n return redirect('/file');\n } else {\n echo \"Its not your file!\";\n }\n }", "title": "" }, { "docid": "19b2a562afcef7db10ce9b75c7e6a8dc", "score": "0.57099277", "text": "public function deleteFromDisk(): void\n {\n Storage::cloud()->delete($this->path());\n }", "title": "" }, { "docid": "493060cb88b9700b90b0bdc650fc0c62", "score": "0.5700126", "text": "public function drop() {\n global $DB;\n\n if (!$DB->count_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid))) {\n throw new coding_exception('Attempt to delete non-existing stash (record)');\n }\n if (!is_writable($this->get_storage_filename())) {\n throw new coding_exception('Attempt to delete non-existing stash (file)');\n }\n\n $DB->delete_records('amos_stashes', array('id' => $this->id, 'hash' => $this->hash, 'ownerid' => $this->ownerid));\n // If the stash file is not referenced any more, delete it.\n if (!$DB->record_exists('amos_stashes', array('hash' => $this->hash))) {\n $filename = $this->get_storage_filename();\n unlink($filename);\n @rmdir(dirname($filename));\n @rmdir(dirname(dirname($filename)));\n }\n }", "title": "" }, { "docid": "a85f5bb361425e120c2b1c92b82b2fe9", "score": "0.56977797", "text": "public function destroy($id)\n {\n $file = File::findOrFail($id);\n Storage::disk('public')->delete(str_replace('/storage/','',$file->path));\n $file->delete();\n return redirect('/admin/media');\n }", "title": "" }, { "docid": "bba07c958ce0344975d091ce9890e64a", "score": "0.5684331", "text": "public function delete($path);", "title": "" }, { "docid": "c553ef667073b35a27db9e6a3bae3be3", "score": "0.56575704", "text": "public function unlink() {\n\t\t$return = unlink($this->fullpath);\n\t\t// destroy object ...testing :)\n\t\tunset($this);\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "0532947b7106b0e9285319a9eaf76b8e", "score": "0.56488144", "text": "public function destroy($id)\n\t{\n $entry = Fileentry::find($id);\n Storage::disk('local')->delete($entry->filename);\n $entry->delete();\n\n return redirect()->back();\n\t}", "title": "" }, { "docid": "c29cf340a7685b50d4992018f03a1a37", "score": "0.5645965", "text": "public function destroy() {\n return $this->resource->destroy();\n }", "title": "" }, { "docid": "0b78e5e9a8d5d2a166659b0988261da1", "score": "0.5633292", "text": "public function destroy($id)\n {\n //\n //\n $slider = Slider::findOrFail($id);\n// if(Storage::exists($slider->image_path))\n// {\n// Storage::delete($slider->image_path);\n// }\n $slider->delete();\n return redirect()->back()->with('success', 'Slider was deleted successfully!');\n }", "title": "" }, { "docid": "e56ffdb12b7e8ce9ce9b709dd82f37f7", "score": "0.56325144", "text": "public function removeById($id);", "title": "" }, { "docid": "f0bca51252baaca5a816eef1c2c06fc0", "score": "0.56296647", "text": "public function detach()\n {\n $oldResource=$this->resource;\n fclose($this->resource);\n $this->resource=NULL;\n return $oldResource;\n }", "title": "" }, { "docid": "41660f6084f57c1f6d52218d45380858", "score": "0.5612277", "text": "public function destroy($id)\n {\n $destroy = File::find($id);\n Storage::delete('public/img/'.$destroy->src);\n $destroy->delete();\n return redirect('/files');\n }", "title": "" }, { "docid": "b6093338d60ff2644649eac3d576e7d9", "score": "0.5606613", "text": "public function delete($resource, array $options = [])\n {\n return $this->request('DELETE', $resource, $options);\n }", "title": "" }, { "docid": "59de27765b5cb766d8d7c06e25831e55", "score": "0.5604046", "text": "function delete() {\n\n return unlink($this->path);\n\n }", "title": "" }, { "docid": "547eb07f41c94e071fb1daf6da02654d", "score": "0.55980563", "text": "public function destroy($id)\n {\n $product = Product::findOrFail($id);\n unlink(public_path() .'/images/'.$product->file->file);\n session(['Delete'=>$product->title]);\n $product->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "2b68a0dafbed1898fb849c8102af4ac1", "score": "0.55952084", "text": "public function destroy($id){\n $book = Book::withTrashed()->where('id', $id)->firstOrFail(); \n\n if ($book->trashed()) {\n session()->flash('success', 'El libro se a eliminado exitosamente');\n Storage::delete($book->image); \n $book->forceDelete();\n }else{\n session()->flash('success', 'El libro se envio a la papelera exitosamente');\n $book->delete();\n }\n return redirect(route('books.index'));\n }", "title": "" }, { "docid": "0354eb11a59ab56fb4c68c1ca1a34f9e", "score": "0.55922675", "text": "public function removeUpload(){\n if($file = $this->getAbsolutePath()){\n unlink($file);\n }\n \n }", "title": "" }, { "docid": "8a2965e7fd915ac119635055a709e09f", "score": "0.5591116", "text": "public function destroy($id, Request $request)\n {\n $imagePath = DB::table('game')->select('image')->where('id', $id)->first();\n\n $filePath = $imagePath->image;\n\n if (file_exists($filePath)) {\n\n unlink($filePath);\n\n DB::table('game')->where('id',$id)->delete();\n\n }else{\n\n DB::table('game')->where('id',$id)->delete();\n }\n\n return redirect()->route('admin.game.index');\n }", "title": "" }, { "docid": "954abc5126ecf3e25d5e32fc21b567ff", "score": "0.55901456", "text": "public function remove( $resourceId )\n {\n unset( $this->resourceList[ $resourceId ] );\n \n $this->database->exec( \"\n DELETE FROM\n `{$this->tbl['library_collection']}`\n WHERE\n collection_type = \" . $this->database->quote( $this->type ) . \"\n AND\n ref_id = \" . $this->database->quote( $this->refId ) . \"\n AND\n resource_id = \" . $this->database->escape( $resourceId ) );\n \n return $this->database->affectedRows();\n }", "title": "" }, { "docid": "f7194357aa4e137cfa50acffda93fc27", "score": "0.55829436", "text": "public static function delete($path){}", "title": "" }, { "docid": "a22fc9d493bea356070527d5c377a089", "score": "0.5578515", "text": "public function remove($name) { return IO_FS::rm($this->full_path_for($name)); }", "title": "" }, { "docid": "8a6c54307038aeccb488677b49209dac", "score": "0.5574026", "text": "public function destroy($id)\n {\n //\n //\n $resource = Resource::find($id);\n $resource->delete();\n return redirect()->back();\n\n }", "title": "" }, { "docid": "97914eb78d7cf648246f9bcd6ac69124", "score": "0.5573565", "text": "public function destroy($id)\n {\n /*\n\n = R::load( '', $id );\n R::trash( );*/\n }", "title": "" }, { "docid": "fa9a2e384d55e25ff7893069c00561f7", "score": "0.5568524", "text": "public function destroy($id)\n {\n $data = Crud::find($id);\n $image_name = $data->image;\n unlink(public_path('images'.'/'.$image_name));\n $data->delete();\n return redirect('crud')->with('success','record deleted successfully!');\n\n\n }", "title": "" }, { "docid": "9e4e139799275c6ed9f200c63b6d4a6d", "score": "0.55617994", "text": "public function delete($resource)\n {\n // Make DELETE Http request\n $status = $this->call('DELETE', $resource)['Status-Code'];\n if ($status) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "2160551c2833f1a763a1634fee961123", "score": "0.5560052", "text": "public function deleteItem($path, $options = null)\n {\n $this->_rackspace->deleteObject($this->_container,$path);\n if (!$this->_rackspace->isSuccessful()) {\n throw new Zend_Cloud_StorageService_Exception('Error on delete: '.$this->_rackspace->getErrorMsg());\n }\n }", "title": "" }, { "docid": "684ee86436e720744df6668b707a5ac0", "score": "0.5557478", "text": "public function deleteImage()\n {\n Storage::delete($this->image);\n }", "title": "" }, { "docid": "1bc9bf0c3a8c77c07fcaf9de0c876d86", "score": "0.5555183", "text": "public function destroy($id)\n { \n $record = Post::findOrFail($id); \n\n if($record->thumbnail !== 'default.png'){\n Storage::delete('Post/'.$record->thumbnail); \n } \n \n $done = Post::destroy($id); \n\n return back()->with('success' , 'Record Deleted');\n }", "title": "" }, { "docid": "9e9a9d9363b0ac3e68a1243a8083cd0b", "score": "0.55495435", "text": "public function destroy($id)\n {\n \n $pro=Product::find($id);\n $one=$pro->image_one;\n \n $two=$pro->image_two;\n $three=$pro->image_three;\n $four=$pro->image_four;\n $five=$pro->image_five;\n $six=$pro->image_six;\n $path=\"media/products/\";\n Storage::disk('public')->delete([$path.$one,$path.$two,$path.$three,$path.$four,$path.$five,$path.$six]);\n\n\n\n $pro->delete();\n Toastr()->success('Product Deleted successfully');\n return redirect()->back();\n \n }", "title": "" }, { "docid": "2c6776be63eac31e1729852dfa8745a9", "score": "0.5548924", "text": "public function destroy($id)\n {\n $partner = Partner::findOrFail($id);\n\n if($partner->cover && file_exists(storage_path('app/public/' . $partner->cover))){\n \\Storage::delete('public/'. $partner->cover);\n }\n \n $partner->delete();\n \n return redirect()->route('admin.partner')->with('success', 'Data deleted successfully');\n }", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "eb3e91f69cf026d5ea1aa3cafe0bce8f", "score": "0.5540013", "text": "public function remove($id);", "title": "" }, { "docid": "fb75e67696c980503f7ebd09ae729fe9", "score": "0.5538126", "text": "final public function delete() {}", "title": "" }, { "docid": "aa31cbc566ad4ff78241eb4b0f49fe1e", "score": "0.5536226", "text": "public function destroy($id)\n\t{\n\t\t$this->resource->find($id)->delete();\n\n\t\treturn Redirect::route('backend.resources.index');\n\t}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.55271083", "text": "public function delete();", "title": "" }, { "docid": "ec759861dd3d396dcc09d5e1bfcf628b", "score": "0.5521281", "text": "public function unlink($path);", "title": "" }, { "docid": "b896244b5af3e4822537d0d1d7ab8fdf", "score": "0.5519644", "text": "public function destroy($id)\n {\n $input = $request->all();\n \t$url = parse_url($input['src']);\n \t$splitPath = explode(\"/\", $url[\"path\"]);\n \t$splitPathLength = count($splitPath);\n \tImageUploads::where('path', 'LIKE', '%' . $splitPath[$splitPathLength-1] . '%')->delete();\n }", "title": "" }, { "docid": "0d93adedaef8f05d9f7cbb129944a438", "score": "0.55152917", "text": "public function delete()\n {\n imagedestroy($this->image);\n $this->clearStack();\n }", "title": "" }, { "docid": "ceab6acdbc23ed7a9a41503580c0a747", "score": "0.55148435", "text": "public function delete()\n {\n $this->value = null;\n $this->hit = false;\n $this->loaded = false;\n $this->exec('del', [$this->key]);\n }", "title": "" }, { "docid": "28797da9ff018d2e75ab89e4bc5cd50d", "score": "0.5511856", "text": "public function destroy($id)\n {\n $user= Auth::user();\n\n $delete = $user->profileimage;\n $user->profileimage=\"\";\n $user->save();\n $image_small=public_path().'/Store_Erp/books/profile/'.$delete ;\n unlink($image_small);\n Session::flash('success',' Profile Image Deleted Succesfully!');\n return redirect()->route('user.profile'); \n \n }", "title": "" }, { "docid": "a92d57f4ccac431a9299e4ad1f0d1618", "score": "0.54956895", "text": "public function destroy($id)\n {\n //\n\n $personaje=Personaje::findOrFail($id);\n\n if(Storage::delete('public/'.$personaje->Foto)){\n \n Personaje::destroy($id);\n }\n\n\n\n\n\n return redirect('personaje')->with('mensaje','Personaje Borrado');\n }", "title": "" }, { "docid": "48a57deb7c791b1ea810616329e3805e", "score": "0.54922575", "text": "abstract public function delete($path);", "title": "" }, { "docid": "48a57deb7c791b1ea810616329e3805e", "score": "0.54922575", "text": "abstract public function delete($path);", "title": "" }, { "docid": "df0b2bf2ed8277a4cd77f933418a9cd1", "score": "0.5491558", "text": "public function deleteFile()\n\t{\n\t\tif($this->id)\n\t\t{\n\t\t\t$path = $this->getFileFullPath();\n\t\t\tif($path)\n\t\t\t{\t\t\t\n\t\t\t\t@unlink($path);\n\t\t\t\t$this->setFile(null);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
24ddac43787a2a21629c72889c374279
TODO set appropriate indexing options
[ { "docid": "d75d706f72ba8150057bb642fa6e3d37", "score": "0.0", "text": "function up() {\n $conn = Application::getConnection();\n $conn->startTransaction();\n try {\n Loader::includeModule('iblock');\n $cIBlock = new CIBlock();\n $dbIBlock = $cIBlock->GetList(\n [],\n ['CODE' => static::$iBlockData['CODE']]\n );\n if ($dbIBlock->Fetch()) {\n return;\n }\n $iBlockId = $cIBlock->Add([\n 'NAME' => static::$iBlockData['NAME'],\n 'CODE' => static::$iBlockData['CODE'],\n 'IBLOCK_TYPE_ID' => static::$iBlockData['TYPE'],\n 'VERSION' => 1,\n 'SITE_ID' => ['s1'],\n 'GROUP_ID' => ['2' => 'R'],\n ]);\n if (false === $iBlockId) {\n throw new Exception($cIBlock->LAST_ERROR);\n }\n $fields = CIBlock::GetFields($iBlockId);\n $fields['PREVIEW_PICTURE']['IS_REQUIRED'] = 'Y';\n $fields['PREVIEW_TEXT']['IS_REQUIRED'] = 'Y';\n CIBlock::SetFields($iBlockId, $fields);\n $conn->commitTransaction();\n } catch (Exception $e) {\n $conn->rollbackTransaction();\n throw $e;\n }\n }", "title": "" } ]
[ { "docid": "7c96eb83c0039832b849a6dfa5bb530d", "score": "0.72918534", "text": "public function prepareForIndexing();", "title": "" }, { "docid": "03e9171c67de609a1e98b78122229cf8", "score": "0.7131683", "text": "function add_index() {}", "title": "" }, { "docid": "2d670117e5fb0713546097bc8fd28dbb", "score": "0.71111375", "text": "public function getIndexData();", "title": "" }, { "docid": "737aadb7886a1bbda9c6cd03dfdd60b4", "score": "0.70581627", "text": "public function indexName() {}", "title": "" }, { "docid": "caa894c11f510aeab0d1e7e2d400c358", "score": "0.70413536", "text": "public function indexName();", "title": "" }, { "docid": "7d8325e50749a58aea47e027154656b8", "score": "0.70144856", "text": "abstract protected function _fetchIndexes();", "title": "" }, { "docid": "9b5173aa2738123e467ecf7b1a839c22", "score": "0.6933211", "text": "public function getIndex() {}", "title": "" }, { "docid": "1f8fda9b6450d8bbd507b5b3d317aaca", "score": "0.6838923", "text": "abstract protected function addIndexes();", "title": "" }, { "docid": "23a032182cb23dd4d81abb19b459c797", "score": "0.6799655", "text": "public function getIndex() {\n \n }", "title": "" }, { "docid": "c34fabe6216dc7492bac0b28abf388bf", "score": "0.6734899", "text": "public function getIndex() {\n }", "title": "" }, { "docid": "53148d7cb72beb0d6abab87bb567e451", "score": "0.6701374", "text": "public function getIndex();", "title": "" }, { "docid": "53148d7cb72beb0d6abab87bb567e451", "score": "0.6701374", "text": "public function getIndex();", "title": "" }, { "docid": "80e0605263b43a30054da808695c8c32", "score": "0.66638994", "text": "public function __index() {\n }", "title": "" }, { "docid": "3921730e98ce22aec710bd64b5db1edd", "score": "0.66501236", "text": "abstract protected function _indexEntries();", "title": "" }, { "docid": "429dc556699d23db5de96136f0685bb2", "score": "0.66457075", "text": "abstract function index();", "title": "" }, { "docid": "429dc556699d23db5de96136f0685bb2", "score": "0.66457075", "text": "abstract function index();", "title": "" }, { "docid": "584284cc7846fc1ecb6642e4e6ef4aa4", "score": "0.6543702", "text": "public function indexOptions() {}", "title": "" }, { "docid": "660cf2e06806b0b755821131641a07e7", "score": "0.6532775", "text": "public function indexOptions();", "title": "" }, { "docid": "fa6a1263a41ca0ba0cb53d7fdf077c66", "score": "0.65271986", "text": "abstract function readIndexFilter();", "title": "" }, { "docid": "4209ba4945063bd99130890dd4e0aeda", "score": "0.6471037", "text": "public function actionIndex()\n {\n $elastic = new ElasticCmsDocument();\n// $elastic->doc_id = '0001';\n// $elastic->doc_subject = 'a 5';\n// if ($elastic->insert()) {\n// echo \"Added Successfully\";\n// } else {\n// echo \"Error\";\n// }\n $elastic->deleteIndex();\n $elastic->updateMapping();\n $elastic->createIndex();\n $elastic->reIndex();\n\n }", "title": "" }, { "docid": "fecf73e432d9d86df440feaa4d984085", "score": "0.6452443", "text": "public function supportsIndexSize();", "title": "" }, { "docid": "a555bcffcf1bf14be51a285b95ea978a", "score": "0.6427131", "text": "function index()\n {\n try {\n if (!empty($this->chunks)) {\n foreach ($this->chunks as $chunk) {\n $doc = new XapianDocument();\n $this->indexer->set_document($doc);\n if (!empty($chunk->terms)) {\n foreach ($chunk->terms as $term) {\n /* FIXME: think of getting weight */\n $doc->add_term($term['flag'] . $term['name'], 1);\n }\n }\n\n // free-form index all data array (title, content, etc)\n if (!empty($chunk->data)) {\n foreach ($chunk->data as $key => $value) {\n $this->indexer->index_text($value, 1);\n }\n }\n $doc->set_data($chunk->xapian_data, 1);\n $did = $this->db->add_document($doc);\n\n //write to disk\n $this->db->flush();\n\n return $did;\n }\n }\n } catch (Exception $e) {\n Display::display_error_message($e->getMessage());\n exit(1);\n }\n }", "title": "" }, { "docid": "c7638b70f328aad3f892a4c12bd842c1", "score": "0.6348761", "text": "public function getIndex() {return $this->index;}", "title": "" }, { "docid": "500b814397d2ddfc5addcfcc9e9ebb50", "score": "0.6331275", "text": "function updateSearchIndex() {\n\t\t$this->owner->SearchIndex = self::buildSearchIndex($this->owner);\n\t}", "title": "" }, { "docid": "8884474b721ca67e9efed9f9a82669da", "score": "0.6327417", "text": "protected function indexSetup() {\n }", "title": "" }, { "docid": "da06a3754a16b20973ca8af99bf6b33c", "score": "0.6313562", "text": "function putIndex(){\n\n }", "title": "" }, { "docid": "8373fb81ce99a90c7cebcd1960f36834", "score": "0.6311796", "text": "public function index(): Collection;", "title": "" }, { "docid": "8373fb81ce99a90c7cebcd1960f36834", "score": "0.6311796", "text": "public function index(): Collection;", "title": "" }, { "docid": "e3e09ef23de4182219712c47b4de3017", "score": "0.62913704", "text": "protected function addToIndex()\n\t\t{\n\t\t\ttry{\n\t\t\t\t$index = Zend_Search_Lucene::open(self::getIndexFullpath());\n\t\t\t\t\n\t\t\t\t/*$logger = Zend_Registry::get('logger');\n\n\t\t\t\t$logger->warn('at addto index');*/\n\t\t\t}\n\t\t\tcatch(Exception $ex)\n\t\t\t{\n\t\t\t\tself::RebuildIndex();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\ttry{\n\t\t\t\t$query=new Zend_Search_Lucene_Search_Query_Term(new Zend_Search_Lucene_Index_Term($this->getId(), 'product_id')\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$hits = $index->find($query);\n\t\t\t\tforeach($hits as $hit)\n\t\t\t\t{\n\t\t\t\t\t$index->delete($hit->id);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif($this->status =='L')\n\t\t\t\t{\n\t\t\t\t\t$index->addDocument($this->getIndexableDocument());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$index->commit();\n\t\t\t}\n\t\t\tcatch (Exception $ex) \n\t\t\t{\n\t\t\t\t$logger = Zend_Registry::get('logger');\n\t\t\t\t$logger->warn('Error updateing document in search index: '.$ex->getMessage());\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "fcbfa55f1c89475e9ec9627af2652723", "score": "0.62828296", "text": "public function updateIndex()\n {\n if (isset($this->name)) {\n $this->normalize();\n exec($this->path . \"bin/indexer --rotate \" . $this->Dname . \" --config \" . $this->path . \"bin/sphinx.conf\", $o);\n print_r($o);\n } else {\n exec($this->path . \"bin/indexer --rotate --all --config \" . $this->path . \"bin/sphinx.conf\", $o);\n print_r($o);\n }\n }", "title": "" }, { "docid": "b5734994144b3924fe490ea967b1beb2", "score": "0.6264873", "text": "public function getIsIndexed();", "title": "" }, { "docid": "1909d08aa303e6ccf20a80249b6a6bce", "score": "0.6259618", "text": "public function allowAdvancedIndex()\n {\n return false;\n }", "title": "" }, { "docid": "26134e60212d000cbddfc746d770350e", "score": "0.6246236", "text": "public function sqlIndex() {\n IndexManager::createObjects(\"(SELECT seminar_id, 'seminar', CONCAT(s.name, ' ', '(', sd.name, IF(s.duration_time = -1, '\"\n . \" - \" . _(\"unbegrenzt\") . \"', IF(sd2.name = sd.name, '', CONCAT(' - ', sd2.name))), ')'), null, null \"\n . \" FROM seminare s JOIN semester_data sd ON s.start_time BETWEEN sd.beginn AND sd.ende \"\n . \" LEFT JOIN semester_data sd2 ON (s.start_time + s.duration_time BETWEEN sd2.beginn AND sd2.ende))\");\n IndexManager::log(\"Seminar objects created\");\n IndexManager::createIndex(\"(SELECT object_id, CONCAT_WS(' ', Veranstaltungsnummer, Name), \"\n . IndexManager::relevance(self::RATING_SEMINAR, 'start_time') . \" FROM seminare \"\n . IndexManager::createJoin('seminar_id') . \")\");\n IndexManager::log(\"Indexed name\");\n IndexManager::createIndex(\"(SELECT object_id, Untertitel, \"\n . IndexManager::relevance(self::RATING_SEMINAR_SUBTITLE, 'start_time') . \" FROM seminare \"\n . IndexManager::createJoin('seminar_id') . \" WHERE Untertitel != '')\");\n IndexManager::log(\"Indexed subtitle\");\n IndexManager::createIndex(\"(SELECT object_id, Beschreibung, \"\n . IndexManager::relevance(self::RATING_SEMINAR_OTHER, 'start_time') . \" FROM seminare \"\n . IndexManager::createJoin('seminar_id') . \" WHERE Beschreibung != '')\");\n IndexManager::log(\"Indexed description\");\n IndexManager::createIndex(\"(SELECT object_id, Sonstiges, \"\n . IndexManager::relevance(self::RATING_SEMINAR_OTHER, 'start_time') . \" FROM seminare \"\n . IndexManager::createJoin('seminar_id') . \" WHERE Sonstiges != '')\");\n IndexManager::log(\"Indexed other\");\n }", "title": "" }, { "docid": "25a464638fc1b8b6ac464bc25f1c413f", "score": "0.62341106", "text": "public function updateIndex()\n {\n $indexer = new BusinessIndexer($this);\n $indexer->index();\n }", "title": "" }, { "docid": "1ada89f029bf0adc4579296d456c0076", "score": "0.6212727", "text": "abstract public function full_text_indexing_installed();", "title": "" }, { "docid": "6e3f6a3c3a85552355330fe3352c5db7", "score": "0.620769", "text": "function index(){}", "title": "" }, { "docid": "1d5c7e63b950d69d598e42d7a537772d", "score": "0.61896914", "text": "public function uses_file_indexing() {\n return true;\n }", "title": "" }, { "docid": "c1f5ae34d50451b400823bf6fb4481f6", "score": "0.6179097", "text": "public function getIndex($qName);", "title": "" }, { "docid": "261921e631e1c3b3303642952014d8d7", "score": "0.61755544", "text": "function _epe_db_search_api_index_base_definition($name, $machine_name, $bundles=array(), $extra_fields=array()) {\n foreach($bundles as &$bundle) {\n $bundle = '\"' . $bundle . '\":\"' . $bundle . '\"';\n }\n foreach($extra_fields as &$extra_field) {\n $extra_field = '\"' . $extra_field['field'] . '\" : { \"type\" : \"'. $extra_field['type'] .'\" }';\n }\n\n $search_index = '{\n \"name\" : \"' . $name . '\",\n \"machine_name\" : \"' . $machine_name . '\",\n \"description\" : null,\n \"server\" : \"database_service\",\n \"item_type\" : \"node\",\n \"options\" : {\n \"index_directly\" : 1,\n \"cron_limit\" : \"50\",\n \"fields\" : {\n \"nid\" : { \"type\" : \"integer\" },\n \"type\" : { \"type\" : \"string\" },\n \"title\" : { \"type\" : \"string\" },\n \"url\" : { \"type\" : \"string\" },\n \"status\" : { \"type\" : \"integer\" },\n \"promote\" : { \"type\" : \"boolean\" },\n \"created\" : { \"type\" : \"date\" },\n \"changed\" : { \"type\" : \"date\" },\n \"author\" : { \"type\" : \"integer\", \"entity_type\" : \"user\" },\n \"field_featured_status\" : { \"type\" : \"string\" },\n \"field_public_status\" : { \"type\" : \"string\" },\n \"search_api_language\" : { \"type\" : \"string\" },\n \"search_api_aggregation_1\" : { \"type\" : \"text\" },\n \"author:uid\" : { \"type\" : \"integer\" },\n \"author:name\" : { \"type\" : \"string\" },\n \"author:mail\" : { \"type\" : \"string\" },\n \"author:field_account_fname\" : { \"type\" : \"string\" },\n \"author:field_account_lname\" : { \"type\" : \"string\" },\n \"author:field_account_organization\" : { \"type\" : \"text\" },\n \"flag_favorite_resource_user\" : { \"type\" : \"integer\", \"entity_type\" : \"user\" },\n \"body:value\" : { \"type\" : \"text\" },';\n if($extra_fields) {\n $search_index .= implode(',', $extra_fields) . ',';\n }\n $search_index .= '\"body:summary\" : { \"type\" : \"text\" }\n },\n \"data_alter_callbacks\" : {\n \"search_api_alter_bundle_filter\" : {\n \"status\" : 1,\n \"weight\" : \"-10\",\n \"settings\" : { \"default\" : \"0\", \"bundles\" : { ' . implode(',', $bundles) . ' } }\n },\n \"search_api_alter_node_access\" : { \"status\" : 0, \"weight\" : \"0\", \"settings\" : [] },\n \"search_api_alter_node_status\" : { \"status\" : 0, \"weight\" : \"0\", \"settings\" : [] },\n \"search_api_alter_add_hierarchy\" : { \"status\" : 0, \"weight\" : \"0\", \"settings\" : { \"fields\" : [] } },\n \"search_api_alter_add_viewed_entity\" : { \"status\" : 0, \"weight\" : \"0\", \"settings\" : { \"mode\" : \"full\" } },\n \"search_api_alter_add_url\" : { \"status\" : 0, \"weight\" : \"0\", \"settings\" : [] },\n \"search_api_alter_add_aggregation\" : {\n \"status\" : 1,\n \"weight\" : \"0\",\n \"settings\" : { \"fields\" : { \"search_api_aggregation_1\" : {\n \"name\" : \"title_main_body_fulltext_search\",\n \"type\" : \"fulltext\",\n \"fields\" : [ \"title\", \"body:value\" ],\n \"description\" : \"A Fulltext aggregation of the following fields: Title, The main body text \\\\u00bb Text.\"\n }\n }\n }\n }\n },\n \"processors\" : {\n \"search_api_case_ignore\" : {\n \"status\" : 1,\n \"weight\" : \"0\",\n \"settings\" : { \"fields\" : {\n \"title\" : true,\n \"search_api_aggregation_1\" : true,\n \"author:name\" : true,\n \"author:field_account_fname\" : true,\n \"author:field_account_lname\" : true,\n \"body:value\" : true\n }\n }\n },\n \"search_api_html_filter\" : {\n \"status\" : 1,\n \"weight\" : \"10\",\n \"settings\" : {\n \"fields\" : { \"title\" : true, \"search_api_aggregation_1\" : true, \"body:value\" : true },\n \"title\" : 0,\n \"alt\" : 1,\n \"tags\" : \"h1 = 5\\\\r\\\\nh2 = 3\\\\r\\\\nh3 = 2\\\\r\\\\nstrong = 2\\\\r\\\\nb = 2\\\\r\\\\nem = 1.5\\\\r\\\\nu = 1.5\"\n }\n },\n \"search_api_tokenizer\" : {\n \"status\" : 1,\n \"weight\" : \"20\",\n \"settings\" : {\n \"fields\" : { \"search_api_aggregation_1\" : true, \"body:value\" : true },\n \"spaces\" : \"[^[:alnum:]]\",\n \"ignorable\" : \"[\\\\u0027]\"\n }\n },\n \"search_api_stopwords\" : {\n \"status\" : 0,\n \"weight\" : \"30\",\n \"settings\" : {\n \"fields\" : {\n \"author:name\" : true,\n \"author:field_account_fname\" : true,\n \"author:field_account_lname\" : true,\n \"body:value\" : true\n },\n \"file\" : \"\",\n \"stopwords\" : \"but\\\\r\\\\ndid\\\\r\\\\nthe this that those\\\\r\\\\netc\"\n }\n },\n \"search_api_highlighting\" : {\n \"status\" : 0,\n \"weight\" : \"35\",\n \"settings\" : {\n \"prefix\" : \"\\\\u003Cstrong\\\\u003E\",\n \"suffix\" : \"\\\\u003C\\\\/strong\\\\u003E\",\n \"excerpt\" : 1,\n \"excerpt_length\" : \"256\",\n \"highlight\" : \"always\"\n }\n }\n }\n },\n \"enabled\" : \"1\",\n \"read_only\" : \"0\",\n \"rdf_mapping\" : []\n }';\n\n return $search_index;\n}", "title": "" }, { "docid": "691c61341597d73884ff03a4372d3b93", "score": "0.61602247", "text": "abstract public function index();", "title": "" }, { "docid": "691c61341597d73884ff03a4372d3b93", "score": "0.61602247", "text": "abstract public function index();", "title": "" }, { "docid": "691c61341597d73884ff03a4372d3b93", "score": "0.61602247", "text": "abstract public function index();", "title": "" }, { "docid": "691c61341597d73884ff03a4372d3b93", "score": "0.61602247", "text": "abstract public function index();", "title": "" }, { "docid": "1dc1f763a95db77cac79eb0412bf643c", "score": "0.6150262", "text": "function change_index($data = array()) {\n global $CFG, $DB;\n\n require_once(dirname(__FILE__).'/include/comms/class.EphorusApi.php');\n\n $index = isset($data['index']) ? $data['index'] : $DB->get_field('plagiarism_eph_document', 'visible', array('guid' => $data['document_guid']));\n $index = ($index == 1) ? 2 : 1;\n if ($index) {\n $ephorus_service = new EphorusService();\n $ephorus_service->visibilityService($data['document_guid'], $index);\n }\n\n /*if(isArray($result) || !$index) {\n header(\"HTTP/1.0 500 Internal Server Error\");\n return get_string('indexError', 'plagiarism_ephorus');\n }*/\n header('Location: '.$_SERVER['HTTP_REFERER']);\n}", "title": "" }, { "docid": "f810eaa50dbdcdbee2447fe0b474ee8e", "score": "0.6135007", "text": "abstract protected function get_index_data($table_name = null, $index_name = null);", "title": "" }, { "docid": "0a50045b63a900ba7deaf83e211e0bca", "score": "0.6118153", "text": "protected abstract function index();", "title": "" }, { "docid": "7efd6802990b2a8575e6806063ab0c30", "score": "0.6100607", "text": "public static function createIndex()\n\t{\n\t\tif (!isset(self::$tempMap[self::$activeClass]['_']['index']))\n\t\t{\n\t\t\tself::$tempMap[self::$activeClass]['_']['index'] = array();\n\t\t}\n\t\t\n\t\tself::$tempMap[self::$activeClass]['_']['index'][] = func_get_args();\n\t}", "title": "" }, { "docid": "fe8840b184e044b4698f1b36b9b86a7b", "score": "0.60747063", "text": "static public function index()\n\t{\n\t\tOffer::createIndex($shards = null, $replicas = null);\n\n\t\t// Customer index\n\t\t// Customer::putMapping($ignoreConflicts = true);\n\t\t$customer_chunks = Customer::all()->chunk(50);\n\t\tforeach ($customer_chunks as $customers) {\n\t\t\t$customers->addToIndex();\n\t\t}\n\n\t\t// Invoice index\n\t\t// Invoice::putMapping($ignoreConflicts = true);\n\t\t$invoice_chunks = Invoice::all()->chunk(50);\n\t\tforeach ($invoice_chunks as $invoices) {\n\t\t\t$invoices->addToIndex();\n\t\t}\n\n\t\t// offer index\n\t\tOffer::putMapping($ignoreConflicts = true);\n\t\t$offer_chunks = Offer::all()->chunk(50);\n\t\tforeach ($offer_chunks as $offers) {\n\t\t\t$offers->addToIndex();\n\t\t}\n\n\t\t// Item index\n\t\t// Item::putMapping($ignoreConflicts = true);\n\t\t$item_chunks = Item::all()->chunk(50);\n\t\tforeach ($item_chunks as $items) {\n\t\t\t$items->addToIndex();\n\t\t}\n\t}", "title": "" }, { "docid": "6b7edb8d760097b91bb2ceb6f1e01939", "score": "0.6059391", "text": "abstract public function calculateWithIndexData();", "title": "" }, { "docid": "1a93fd066b0a6970beadd39aa1955456", "score": "0.60259295", "text": "public function create() {\n $index = $this->getRealIndex();\n $index->create($this->search_api_index->options['search_api_elasticsearch'] ?: [], TRUE);\n $index->addAlias($this->search_api_index->machine_name);\n }", "title": "" }, { "docid": "b9e363eae80e7e99d9029f4ab513ce5f", "score": "0.6015836", "text": "public function __construct($index_name,$type)\n {\n $this->connect();\n $this->index = $this->index_maped($index_name);\n $this->index_type = $type;\n $this->page = 1;\n $this->size = 10;\n $this->from = 0;\n $this->orders = [\n \"_score\"=>\"desc\",\n ];\n\n }", "title": "" }, { "docid": "4681a86f832f3b945baebee362157902", "score": "0.6002766", "text": "public function doIndex()\n {\n $this->index();\n }", "title": "" }, { "docid": "a3678c8fece039d5e415932761f668c9", "score": "0.5996445", "text": "function getIndex()\n\t{\n\t\t$data = array();\n\t\tif (we_hasPerm(\"REBUILD_INDEX\")) {\n\t\t\t$GLOBALS[\"DB_WE\"]->query(\n\t\t\t\t\t\"SELECT ID,ClassName,Path FROM \" . FILE_TABLE . \" WHERE Published > 0 AND IsSearchable='1' ORDER BY ID\");\n\t\t\twhile ($GLOBALS[\"DB_WE\"]->next_record()) {\n\t\t\t\tarray_push(\n\t\t\t\t\t\t$data, \n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\"id\" => $GLOBALS[\"DB_WE\"]->f(\"ID\"), \n\t\t\t\t\t\t\t\t\"type\" => \"document\", \n\t\t\t\t\t\t\t\t\"cn\" => $GLOBALS[\"DB_WE\"]->f(\"ClassName\"), \n\t\t\t\t\t\t\t\t\"mt\" => 0, \n\t\t\t\t\t\t\t\t\"tt\" => 0, \n\t\t\t\t\t\t\t\t\"path\" => $GLOBALS[\"DB_WE\"]->f(\"Path\"), \n\t\t\t\t\t\t\t\t\"it\" => 1\n\t\t\t\t\t\t));\n\t\t\t}\n\t\t\tif (defined(\"OBJECT_FILES_TABLE\")) {\n\t\t\t\t$GLOBALS[\"DB_WE\"]->query(\n\t\t\t\t\t\t\"SELECT ID,ClassName,Path FROM \" . OBJECT_FILES_TABLE . \" WHERE Published > 0 ORDER BY ID\");\n\t\t\t\twhile ($GLOBALS[\"DB_WE\"]->next_record()) {\n\t\t\t\t\tarray_push(\n\t\t\t\t\t\t\t$data, \n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\"id\" => $GLOBALS[\"DB_WE\"]->f(\"ID\"), \n\t\t\t\t\t\t\t\t\t\"type\" => \"object\", \n\t\t\t\t\t\t\t\t\t\"cn\" => $GLOBALS[\"DB_WE\"]->f(\"ClassName\"), \n\t\t\t\t\t\t\t\t\t\"mt\" => 0, \n\t\t\t\t\t\t\t\t\t\"tt\" => 0, \n\t\t\t\t\t\t\t\t\t\"path\" => $GLOBALS[\"DB_WE\"]->f(\"Path\"), \n\t\t\t\t\t\t\t\t\t\"it\" => 1\n\t\t\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t\t$GLOBALS[\"DB_WE\"]->query(\"DELETE FROM \" . INDEX_TABLE);\n\t\t}\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "6d400c9a53c5d012a93c439e097bc054", "score": "0.59906715", "text": "public function index(Request $request)\n {\n $search = new Search();\n $houses = new Houses();\n\n// $body = [\n// 'age'=>1,\n// 'body'=>\"yangcuiwang\",\n// 'combined'=>\"翠旺\",\n// 'first_name'=>\"杨\",\n// 'name'=>\"翠旺\",\n// 'places'=>\"北京\",\n// 'title'=>\"第三置业\",\n// 'topics'=>\"讨论学习\",\n// ];\n//\n//// dd($houses->add($body));\n//\n// dd($houses->query(['match'=>['name'=>'翠旺']]));\n\n// dd($houses->putMapping());\n// dd($houses->createIndex());\n// dd($search->deleteMapping('nndeal','houses'));\n dd($search->getMapping('nndeal'));\n// dd($search->getIndex('nndeal'));\n// dd($search->deleteIndex('nndeal'));\n die();\n\n for($i = 0; $i < 10; $i++) {\n $params['body'][] = [\n 'index' => [\n '_index' => 'my_index',\n '_type' => 'my_type',\n ]\n ];\n\n $params['body'][] = [\n 'my_field' => 'my_value',\n 'second_field' => 'some more values'\n ];\n }\n \n dd($params);\n\n\n\n $mappings = [\n 'answer_id' => [ #这里是字段名\n 'type' => 'string', #字段类型(不指定也行,elasticsearch 自己会猜)\n 'index' => 'not_analyzed' #告诉 elasticsearch,本字段不需要被分词,需要完整的读写)\n ],\n 'user_id' => ['type' => 'string', 'index' => 'not_analyzed'],\n 'questions' => [\n 'type' => 'nested',\n 'properties' => [\n 'page_id' => [\n 'type' => 'string',\n 'index' => 'not_analyzed'\n ],\n 'question_id' => ['type' => 'string', 'index' => 'not_analyzed'],\n 'question' => ['type' => 'string', 'index' => 'not_analyzed'],\n 'option' => ['type' => 'string', 'index' => 'not_analyzed']\n ]\n ],\n 'start_at' => [\n 'type' => 'date',\n 'format' => 'yyyy-MM-dd HH:mm:ss'\n ],\n 'ended_at' => ['type' => 'date', 'format' => 'yyyy-MM-dd HH:mm:ss']\n ];\n\n $setting = [\n 'number_of_shards' => 2,\n 'number_of_replicas' => 0\n ];\n var_dump($search->createIndex('answer',$setting));die();\n\n var_dump($search->existsIndex('article'));die();\n var_dump($search->deleteIndex('article'));die();\n\n\n $client = ClientBuilder::create()->build();\n\n $params = [\n 'index' => 'article',\n 'body' => [\n 'settings' => [\n 'number_of_shards' => 2,\n 'number_of_replicas' => 0\n ]\n ]\n ];\n\n $response = $client->indices()->create($params);\n\n dd($response);\n\n\n $params = [\n 'index' => 'customer',\n 'type' => 'external',\n 'body' => [\n 'query' => [\n 'match' => [\n 'name' => 'JOhn'\n ]\n ]\n ]\n ];\n\n $response = $client->search($params);\n\n dd($response);\n\n $params = [\n 'index' => 'customer',\n 'type' => 'external',\n 'id' => '1'\n ];\n\n $response = $client->getSource($params);\n dd($response);\n\n $allData = [];\n $total = 0;\n $pageSize = config('common.page_size');\n $page = $request->get('page', '1');\n $offset = max(($page - 1), \"0\") * $pageSize;\n\n $word = clear_text($request->get('keywords', '人类健康网'));\n $allData['keywords'] = $word;\n\n /**\n * 判断是不是手机访问\n */\n\n $allData['total'] = $total;\n $allData['totalPage'] = ceil($total / $pageSize);\n\n\n $pages = new Pagination($total, $pageSize);\n $pageList = $pages->fpage(array(3, 4, 5, 6, 7));\n $allData['pagelist'] = $pageList;\n\n if ($this->is_mobile()) {\n return view('Frontend.Index.Web.Search.index', compact('allData'));\n } else {\n return view('Frontend.Index.Web.Search.index', compact('allData'));\n }\n }", "title": "" }, { "docid": "bd798b74bf68eb24f0b5c1a5e151ef4f", "score": "0.5974878", "text": "public function optimize()\n {\n $this->luceneIndex->optimize();\n }", "title": "" }, { "docid": "d24e188b8c640a282f280aa825a9ac46", "score": "0.5971948", "text": "abstract public function index(): void;", "title": "" }, { "docid": "7456579529bbf5eb8bc015e06568e112", "score": "0.59717286", "text": "function get($indexName);", "title": "" }, { "docid": "9645441cf6c94995f7aa8a8b7595ebdc", "score": "0.5969149", "text": "public function build(){\n echo 'building index....';\n $index = Lucene::create( $this->getOptions()->getIndexDir() );\n\n if($this->getOptions()->getModules()){\n foreach($this->getOptions()->getModules() as $module){\n $indexes = $this->getEntityManager()->getRepository( $module['name'] )->findAll();\n foreach($indexes as $dbindex){\n $doc = new Document();\n\n // Store document URL to identify it in the search results\n $doc->addField(Field::Text('route', $module['route'] ));\n \n // produces \"->getSlug() | ->getUri()\" as the getter to allow different field for pages module\n $getter = 'get' . ucfirst($module['slug_field']);\n $doc->addField(Field::Text('slug', $dbindex->{$getter}() ));\n\n $doc->addField(Field::Text('title', $dbindex->getTitle() ));\n $doc->addField(Field::Text('description', $dbindex->getBody() ));\n\n // Indexed document contents\n $doc->addField(Field::UnStored('contents', $dbindex->getBody()));\n $index->addDocument($doc);\n\n }\n }\n }\n }", "title": "" }, { "docid": "684043f7ad1bb4767802c3facc9e0616", "score": "0.5963264", "text": "private function createIndex()\n {\n $command = $this->path . \"bin/indexer \" . $this->Dname . \" --config \" . $this->path . \"bin/sphinx.conf\";\n echo 'Executing Command: ' . $command . PHP_EOL;\n exec($command, $o);\n print_r($o);\n }", "title": "" }, { "docid": "b2d4c62c5a4cc550cf0753046def4327", "score": "0.59609556", "text": "public function startIndexing() {\n\t\t$content = '';\n\t\t$table = 'tx_a21glossary_main';\n\n\t\t// get the pages from where to index the news\n\t\t$indexPids = $this->getPidList($this->indexerConfig['startingpoints_recursive'], $this->indexerConfig['sysfolder'], $table);\n\n\t\t// add the tags of the parent page\n\t\tif($this->indexerConfig['index_use_page_tags']) {\n\t\t\t$this->pageRecords = $this->getPageRecords($indexPids);\n\t\t\t$this->addTagsToRecords($indexPids);\n\t\t}\n\n\t\t// get all the glossary records to index, don't index hidden or\n\t\t// deleted glossary records, BUT get the records with frontend user group\n\t\t// access restrictions or time (start / stop) restrictions.\n\t\t// Copy those restrictions to the index.\n\t\t$fields = '*';\n\t\t$where = 'pid IN (' . implode(',', $indexPids) . ') ';\n\t\tif (TYPO3_VERSION_INTEGER >= 7000000) {\n\t\t\t$where .= TYPO3\\CMS\\Backend\\Utility\\BackendUtility::BEenableFields($table);\n\t\t\t$where .= TYPO3\\CMS\\Backend\\Utility\\BackendUtility::deleteClause($table);\n\t\t} else {\n\t\t\t$where .= t3lib_befunc::BEenableFields($table);\n\t\t\t$where .= t3lib_befunc::deleteClause($table);\n\t\t}\n\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($fields, $table, $where);\n\t\t$indexedRecordsCounter = 0;\n\t\t$resCount = $GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\t\tif ($resCount) {\n\t\t\twhile (($record = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))) {\n\n\t\t\t\t// compile the information which should go into the index:\n\t\t\t\t// short, shortcut, longversion, shorttype, description, link\n\n\t\t\t\t$title = strip_tags($record['short']);\n\t\t\t\t$abstract = strip_tags($record['longversion']);\n\t\t\t\t$fullContent = strip_tags($record['shortcut']\n\t\t\t\t\t. \"\\n\" . $record['longversion']\n\t\t\t\t\t. \"\\n\" . $record['description']\n\t\t\t\t\t. \"\\n\" . $record['link']);\n\n\t\t\t\t// compile params for single view, example:\n\t\t\t\t// index.php?id=16&tx_a21glossary[uid]=71&cHash=9f9368211d8ae742a8d3ad29c4f0a308\n\t\t\t\t$paramsSingleView = array();\n\t\t\t\t$paramsSingleView['tx_a21glossary']['uid'] = $record['uid'];\n\t\t\t\t$params = rawurldecode('&' . http_build_query($paramsSingleView, NULL, '&'));\n\n\t\t\t\t// add tags from pages\n\t\t\t\tif ($this->indexerConfig['index_use_page_tags']) {\n\t\t\t\t\t$tags = $this->pageRecords[intval($record['pid'])]['tags'];\n\t\t\t\t} else {\n\t\t\t\t\t$tags = '';\n\t\t\t\t}\n\n\t\t\t\t// make it possible to modify the indexerConfig via hook\n\t\t\t\t$indexerConfig = $this->indexerConfig;\n\n\t\t\t\t// set additional fields\n\t\t\t\t$additionalFields = array();\n\t\t\t\t$additionalFields['orig_uid'] = $record['uid'];\n\t\t\t\t$additionalFields['orig_pid'] = $record['pid'];\n\t\t\t\t$additionalFields['sortdate'] = $record['crdate'];\n\n\t\t\t\t// hook for custom modifications of the indexed data, e.g. the tags\n\t\t\t\tif (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifya21glossaryIndexEntry'])) {\n\t\t\t\t\tforeach($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifya21glossaryIndexEntry'] as $_classRef) {\n\t\t\t\t\t\tif (TYPO3_VERSION_INTEGER >= 7000000) {\n\t\t\t\t\t\t\t$_procObj = & TYPO3\\CMS\\Core\\Utility\\GeneralUtility::getUserObj($_classRef);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$_procObj = & t3lib_div::getUserObj($_classRef);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$_procObj->modifya21glossaryIndexEntry(\n\t\t\t\t\t\t\t$title,\n\t\t\t\t\t\t\t$abstract,\n\t\t\t\t\t\t\t$fullContent,\n\t\t\t\t\t\t\t$params,\n\t\t\t\t\t\t\t$tags,\n\t\t\t\t\t\t\t$record,\n\t\t\t\t\t\t\t$additionalFields,\n\t\t\t\t\t\t\t$indexerConfig,\n\t\t\t\t\t\t\t$this\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// store this record to the index\n\t\t\t\t$this->pObj->storeInIndex(\n\t\t\t\t\t$indexerConfig['storagepid'],\t// storage PID\n\t\t\t\t\t$title, // page title\n\t\t\t\t\t'a21glossary', \t// content type\n\t\t\t\t\t$indexerConfig['targetpid'], // target PID: where is the single view?\n\t\t\t\t\t$fullContent, // indexed content, includes the title (linebreak after title)\n\t\t\t\t\t$tags, // tags\n\t\t\t\t\t$params, // typolink params for singleview\n\t\t\t\t\t$abstract, // abstract\n\t\t\t\t\t$record['sys_language_uid'],\t// language uid\n\t\t\t\t\t$record['starttime'], \t// starttime\n\t\t\t\t\t$record['endtime'], \t// endtime\n\t\t\t\t\t$record['fe_group'], \t// fe_group\n\t\t\t\t\tfalse, // debug only?\n\t\t\t\t\t$additionalFields // additional fields added by hooks\n\t\t\t\t);\n\t\t\t\t$indexedRecordsCounter++;\n\t\t\t}\n\n\t\t\t$content = '<p><b>Indexer \"' . $this->indexerConfig['title'] . '\":</b><br />' . \"\\n\"\n\t\t\t\t\t. $indexedRecordsCounter . ' glossary records have been indexed.</p>' . \"\\n\";\n\n\t\t\t$content .= $this->showErrors();\n\t\t\t$content .= $this->showTime();\n\t\t}\n\t\treturn $content;\n\t}", "title": "" }, { "docid": "7780b9da09cdaa7483404c6633032c72", "score": "0.5957607", "text": "protected function _getIndex()\n\t{\n\t\treturn Zend_Search_Lucene::open($this->_dataFolder);\n\t}", "title": "" }, { "docid": "36dd11bd5d61cd778efab93d1565fc83", "score": "0.59531534", "text": "public function get_idx_number() {\n\t}", "title": "" }, { "docid": "995ab5b17223a9338c82e41a08458196", "score": "0.59475935", "text": "public function onTNTSearchReIndex(): void\n {\n $this->GravTNTSearch()->createIndex();\n }", "title": "" }, { "docid": "3ab11d53842469bbca14324f26db9624", "score": "0.59460276", "text": "abstract public function index(Table $table);", "title": "" }, { "docid": "50e772f8a3808938ad1d7e9582a30073", "score": "0.5939534", "text": "abstract public function index($document, $id = false, array $options = array());", "title": "" }, { "docid": "23f12bfce845ff160894766591f9bd55", "score": "0.59333587", "text": "function search_api_admin_add_index(array $form, array &$form_state) {\n drupal_set_title(t('Add index'));\n\n $form['#attached']['css'][] = drupal_get_path('module', 'search_api') . '/search_api.admin.css';\n $form['#tree'] = TRUE;\n $form['name'] = array(\n '#type' => 'textfield',\n '#title' => t('Index name'),\n '#maxlength' => 50,\n '#required' => TRUE,\n );\n\n $form['machine_name'] = array(\n '#type' => 'machine_name',\n '#maxlength' => 50,\n '#machine_name' => array(\n 'exists' => 'search_api_index_load',\n ),\n );\n\n $form['item_type'] = array(\n '#type' => 'select',\n '#title' => t('Item type'),\n '#description' => t('Select the type of items that will be indexed in this index. ' .\n 'This setting cannot be changed afterwards.'),\n '#options' => array(),\n '#required' => TRUE,\n );\n foreach (search_api_get_item_type_info() as $type => $info) {\n $form['item_type']['#options'][$type] = $info['name'];\n }\n $form['enabled'] = array(\n '#type' => 'checkbox',\n '#title' => t('Enabled'),\n '#description' => t('This will only take effect if the selected server is also enabled.'),\n '#default_value' => TRUE,\n );\n $form['description'] = array(\n '#type' => 'textarea',\n '#title' => t('Index description'),\n );\n $form['server'] = array(\n '#type' => 'select',\n '#title' => t('Server'),\n '#description' => t('Select the server this index should reside on.'),\n '#default_value' => '',\n '#options' => array('' => t('< No server >'))\n );\n $servers = search_api_server_load_multiple(FALSE);\n // List enabled servers first.\n foreach ($servers as $server) {\n if ($server->enabled) {\n $form['server']['#options'][$server->machine_name] = $server->name;\n }\n }\n foreach ($servers as $server) {\n if (!$server->enabled) {\n $form['server']['#options'][$server->machine_name] = t('@server_name (disabled)', array('@server_name' => $server->name));\n }\n }\n $form['read_only'] = array(\n '#type' => 'checkbox',\n '#title' => t('Read only'),\n '#description' => t('Do not write to this index or track the status of items in this index.'),\n '#default_value' => FALSE,\n );\n $form['options']['index_directly'] = array(\n '#type' => 'checkbox',\n '#title' => t('Index items immediately'),\n '#description' => t('Immediately index new or updated items instead of waiting for the next cron run. ' .\n 'This might have serious performance drawbacks and is generally not advised for larger sites.'),\n '#default_value' => FALSE,\n );\n $form['options']['cron_limit'] = array(\n '#type' => 'textfield',\n '#title' => t('Cron batch size'),\n '#description' => t('Set how many items will be indexed at once when indexing items during a cron run. ' .\n '\"0\" means that no items will be indexed by cron for this index, \"-1\" means that cron should index all items at once.'),\n '#default_value' => SEARCH_API_DEFAULT_CRON_LIMIT,\n '#size' => 4,\n '#attributes' => array('class' => array('search-api-cron-limit')),\n );\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Create index'),\n );\n\n return $form;\n}", "title": "" }, { "docid": "3900875c3002dc8adeb14cd86f6eaf98", "score": "0.59319216", "text": "function testIndex() {\n }", "title": "" }, { "docid": "5f295c9ec30aba73d14d9c031da30718", "score": "0.5930519", "text": "public function hasIndex(){\r\n return $this->_has(10);\r\n }", "title": "" }, { "docid": "2e9bc9fbaf74299c4b22ebb2b9d77772", "score": "0.59237355", "text": "public function getIndex($name);", "title": "" }, { "docid": "4ec0488b7d53edcf781a7e8bb103358f", "score": "0.59209377", "text": "public function getIndex(){\n return $this->index;\n }", "title": "" }, { "docid": "ea368f72cfd9571aec4e682eb5cf89d9", "score": "0.59127396", "text": "public function createindex()\n\t{\n\t\tjimport('solrsearch.joomlasolr');\n\t\t\n\t\t$db = JFactory::getDBO();\n\t\t$query = \"SELECT count(*) as totals FROM #__content\";\n\t\t\n\t\t$db->setQuery($query);\n\t\t\n\t\t$total_values = $db->loadResult();\n\t\t\n\t\t//echo $total_values . '<-- ' ;\n\t\t\n\t\t$rows_per_update = 100;\n\t\t\n\t\t\n\t\t$current = JRequest::getInt('current');\n\t\t\n\t\t//echo $current . ' <-- <br />'; \n\t\t\n\t\tset_time_limit(120);\n\t\t\n\t\t$current_rows = ($total_values / 100) * $current;\n\t\t\n\t\t//echo $current_rows . ' <-- current rows <br />';\n\t\t\n\t\t$current_percentage = ( $current_rows + $rows_per_update ) / ( $total_values / 100 ) ;\n\t\t\n\t\t//echo $current_percentage . ' <-- current percentage <br />';\n\t\t\n\t\t\n\t\t\n\t\t/*\n\t\t3365 RIJEN\n\t\t200 PER KEER\n\t\t3365 / 100 33.65\n\t\t\n\t\t\n\t\t200 / 33.65 =\n\t\t*/\n\t\t$solr = new JoomlaSolr();\n\t\t\n\t\t//TODO: change this\t\n\t\t$articlesQuery = \"SELECT a.id as articleid, a.`alias`, a.* FROM #__content as a LIMIT \" . (int)$current_rows . \",\" . $rows_per_update;\n\t\t\n\t\t$db->setQuery( $articlesQuery );\n\t\t\n\t\t\n\t\t\n\t\t$articles = $db->loadObjectList();\n\t\t\n\t\t\n\t\t\tforeach($articles as $articleMass)\n\t\t\t{\n\t\t\t\t//print_r($animeMass);\n\t\t\t\t//die($animeMass->rating . ' <--');\n\n\t\t\t \n\t\t\t\t$solr->createDocument();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Update anime\n\t\t\t\t$solr->addField('id', $articleMass->articleid);\n\t\t\t\t$solr->addField('catid', $articleMass->articleid);\n\t\t\t\t\n\t\t\t\t$solr->addField('title', $articleMass->title);\n\t\t\t\t\n\t\t\t\t$solr->addField('alias', $articleMass->alias);\n\t\t\t\t\n\t\t\t\t$solr->addField('introtext', strip_tags($articleMass->introtext));\n\t\t\t\t\n\t\t\t\t$solr->saveDocument();\n\t\t\t}\n\t\tif ( $current >= 0 )\n\t\t{\n\t\t\theader('Content-Type: application/json');\n\t\t\theader(\"Connection: Keep-Alive\"); \n\t\t\theader(\"Keep-Alive: timeout=130\"); \n\t\t\techo json_encode(array('percentage' => (int)$current_percentage ) );\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo json_encode(array('percentage' => 100 ) );\n\t\t}\n\t\t\n\t\t\n\t\tdie();\n\t}", "title": "" }, { "docid": "812b3965286c998cc8ece94c97e88382", "score": "0.590399", "text": "public function sqlIndex()\n {\n IndexManager::createObjects(\"(SELECT user_id, 'user', CONCAT_WS(' ',title_front, Vorname, Nachname, title_rear), username, null FROM auth_user_md5 JOIN user_info USING (user_id))\");\n IndexManager::createIndex(\"(SELECT object_id, CONCAT_WS(' ', Vorname, Nachname, \"\n . \"CONCAT('(', username, ')')), \"\n . self::RATING_USER\n . \" FROM auth_user_md5 JOIN user_info USING (user_id) \" . IndexManager::createJoin(\"user_id\") . \")\");\n }", "title": "" }, { "docid": "495bd1021ac357eb6bb31d582ecdf187", "score": "0.58988476", "text": "public function index_get(){\n $indices = $this->indices_model->get();\n\n // Comprobar que la respuesta no sea nulo\n if ( !is_null($indices) ) {\n $this->response( array( 'indices' => $indices), 200 );\n } else {\n $this->response( array('error' => 'No hay indices en la base de datos..'), 404 );\n }\n }", "title": "" }, { "docid": "b2f0dd89bfdf89c06120f15bef06c151", "score": "0.5884177", "text": "public function add() {\n $name = $this->getNewIndexName();\n $index = $this->getRealIndex($name);\n $index->create($this->search_api_index->options['search_api_elasticsearch'] ?: [], TRUE);\n }", "title": "" }, { "docid": "ac6edc5af203cf92d01c38e96fbd5e09", "score": "0.5884104", "text": "public function stress_index($company_id, $office, $department);", "title": "" }, { "docid": "3ffa0986402f809d2df3d61825861efd", "score": "0.5882127", "text": "public function testIndexGeneretor()\n {\n $this->assertEquals(config('elasticsearch.index.name').'_' . config('elasticsearch.index.results.prefix') . '-' . date('Y-m-d'), IndexHelper::generateResultIndex());\n }", "title": "" }, { "docid": "bbbf9717d1e67d35bd18a5912a3d2298", "score": "0.58800083", "text": "public function getIndexableDocument()\n\t{\t\n\t\t$doc = new Zend_Search_Lucene_Document();\n\t\t$doc->addField(Zend_Search_Lucene_Field::keyword('content_id', $this->getId()));\t\t\n\t\t$doc->addField(Zend_Search_Lucene_Field::unIndexed('content_name', $this->name));\n\t\t$doc->addField(Zend_Search_Lucene_Field::text('content_slug', $this->slug));\n\t\t$doc->addField(Zend_Search_Lucene_Field::text('content_description', $this->description));\n\t\t$doc->addField(Zend_Search_Lucene_Field::unIndexed('content_date', $this->date));\t\t\n\t\treturn $doc;\n\t}", "title": "" }, { "docid": "258251c5ea63d989067acff240b47f15", "score": "0.5875418", "text": "public function testEnsureIndexEmbedded()\n {\n\n // Create a collection\n $collection = $this->getTestCollection();\n $collection->ensureIndex(array('user_id' => 1, 'tags.slug' => 1));\n\n $indexes = $collection->getIndexInfo();\n $this->assertArrayHasKey(1, $indexes);\n $this->assertEquals($indexes[1]['name'], 'u_1_t_s_1');\n\n }", "title": "" }, { "docid": "7782c2dbe9a18ea182a7b966e9f88fb0", "score": "0.5873405", "text": "public function enableIndex()\n {\n $this->index = true;\n }", "title": "" }, { "docid": "db608cc8445e6c1698d0b25a72e25c9e", "score": "0.5872979", "text": "protected function updateIndexes()\n {\n $indexes = [];\n\n foreach ($this->indexes as $index => $values) {\n foreach ($this->data as $id => $data) {\n if (array_key_exists($index, $data) && !empty($data[$index])) {\n $indexes[$index][$data[$index]][] = $id;\n }\n }\n }\n\n $this->indexes = $indexes;\n }", "title": "" }, { "docid": "19b018a8c2368ebeb93d6ce8dc42fb3f", "score": "0.58596593", "text": "public abstract function index();", "title": "" }, { "docid": "19b018a8c2368ebeb93d6ce8dc42fb3f", "score": "0.58596593", "text": "public abstract function index();", "title": "" }, { "docid": "19b018a8c2368ebeb93d6ce8dc42fb3f", "score": "0.58596593", "text": "public abstract function index();", "title": "" }, { "docid": "2ec76fffe3116469c609597ea6ae4bf9", "score": "0.5852283", "text": "private function buildIndex()\n {\n $docCount = array();\n foreach ($this->documents as $docId => $doc) {\n //Get the tokens for each document, as part of the token normalization process we do stemming and casefolding @see Tokenizer\n $document = \"$doc->content $doc->businessName\"; //Appending review and business name\n $tokens = Tokenizer::getTokens($document);\n //As in PHP array are dinamic we need to initialize the length of each document and scores with zero, otherwise we will get error calculating the length of the document, we would get Undefined offset: N, where N is the document.\n $this->docLength[$docId] = 0;\n $this->scores[$docId] = 0;\n ++$this->numberOfDocuments;\n $this->restaurants[$docId] = $doc;\n\n foreach ($tokens as $token) {\n if (!isset($this->index[$token])) {\n $this->index[$token] = array('df' => 0, 'postings' => array());\n }\n if (!isset($this->index[$token]['postings'][$docId])) {\n ++$this->index[$token]['df'];\n $this->index[$token]['postings'][$docId] = array('tw' => 0);\n }\n ++$this->index[$token]['postings'][$docId]['tw'];\n }\n }\n\n //Add token count information to statistic class\n ProjectStatistic::setTokenCount(Tokenizer::getTokensCount());\n ProjectStatistic::setSpellingVocabularySize(Tokenizer::getVocabularySize());\n\n new SpellChecker(Tokenizer::getRawToken());\n\n //Calculate the TF-IDF and partial calculation of the document length\n foreach ($this->index as $token => $postingsList) {\n foreach ($postingsList['postings'] as $docId => $document) {\n $tfidf = (1 + log($document['tw'])) * log(floatval($this->numberOfDocuments) / floatval($postingsList['df']));\n $this->docLength[$docId] += pow($tfidf, 2); //First part of the document length calculation\n $this->index[$token]['postings'][$docId]['tw'] = $tfidf;\n }\n }\n // Compute the actual document length |x|=sqrt(x_a^2 + x_b^2 + x_n^2).\n foreach ($this->docLength as $docId => $length) {\n $this->docLength[$docId] = sqrt($length);\n }\n\n }", "title": "" }, { "docid": "a728fbeb44ea421388a68157d279c129", "score": "0.58401567", "text": "public function actionCreate3()\n {\n \t\t\t\t//CREATING INDEX FOR AUDIOS FILES.\n\t\t\t \t$_indexFiles = '\\runtime\\search';\n\t\t\t \t//here calling create() search index to create search index.\n\t\t\t $index = Zend_Search_Lucene::create($_indexFiles);\n\t\t\t $index = new Zend_Search_Lucene(Yii::getPathOfAlias('application.' . $this->_indexFiles), true);\n\t\t\t \t$index = new Zend_Search_Lucene($this->_indexFiles,true);\n \n \t\t\t\t$posts = Asset::model()->findAll(); //LOADING ASSET MODULE TO SEARCH FOR AUDIOS\n \n \n \t \n \t\tforeach($posts as $post){\n \t\t\n\t\t\t\t\t\t\t// GETTING EXTENTION OF FILE\n\t\t\t\t\t\t\t\n\t\t\t\t \t\tif(($pos=strrpos($post->file,'.'))!==false)\n\t\t\t\t \t\t\t$ext=substr($post->file,$pos+1);\n\t\t\t\t \t\t\n \t\t //ADDING AUDIO FILE INTO SEARCH INDEX\n\t\t\t\t \t\tif ($ext==='mp3')\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\t$doc = new Zend_Search_Lucene_Document();//here creating an instance of zend lucene search.\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t //here adding verious field search document for search. \n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('title',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->file), 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \t\t\t$numericalValue = '123456789';\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Keyword('keyword', $this->numericalValue));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t//here adding name field to search document with asset id\n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('name',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->assetId), 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \n\t\t\t\t \t\t\t//here adding link to search document with url\n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('link',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->url)\n\t\t\t\t \t\t\t\t\t, 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \n\t\t\t\t \t\t\t//here adding content to search document with file \n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('content',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->file)\n\t\t\t\t \t\t\t\t\t, 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \t\t\t//here adding document to search index.\n\t\t\t\t \t\t\t$index->addDocument($doc);\n\t\t\t\t \t\t}\n\t\t\t\t \n \t }\n \n \n \n \t\t\t\t//\tHERE COMMIT THE SEARCH INDEX.\n\t\t\t \t$index->commit();\n\t\t\t \techo 'Lucene index created';\n\t\t\t \n }", "title": "" }, { "docid": "fdf40118db1db093f0c3996ac83fddc0", "score": "0.58286166", "text": "function runSphinx( $searchstring, $id_exclude_list ){\n global $taws_server_config;\n \n $s = new SphinxClient();\n $s->setServer( $taws_server_config[ 'sphinx_server' ], $taws_server_config[ 'sphinx_port' ] );\n $s->setMatchMode( SPH_MATCH_EXTENDED2 );\n $s->setMaxQueryTime( 500 ); \n if( !empty( $id_exclude_list ) ){ \n $s->SetFilter( '@id', $id_exclude_list, true );\n }\n \n // I dont really need a hundred item from a domain unless it's the only thing being searched\n if( $_POST[ 'conditions' ][ 'd' ] != '' ){ \n $s->SetFilter( 'domain_id', [ $domain_id ] );\n }else{\n $s->SetGroupby( 'domain_id', SPH_GROUPBY_ATTR, 'frequency DESC' );\n } \n \n if( $_POST[ 'conditions' ][ 'scheme' ] != -1 ){ \n $s->SetFilter( 'scheme_id', [ $_POST[ 'conditions' ][ 'scheme' ] ] );\n }\n \n if( $_POST[ 'conditions' ][ 't' ] != '' ){ \n $s->SetFilter( 'type_id', explode( \",\", $_POST[ 'conditions' ][ 't' ] ) );\n }\n if( $_POST[ 'conditions' ][ 'l' ] != '' ){ \n $s->SetFilter( 'language_id', explode( \",\", $_POST[ 'conditions' ][ 'l' ] ) );\n }\n \n $s->SetSortMode( SPH_SORT_ATTR_DESC, 'frequency' ); \n $s->SetLimits( (int)$_POST[ 'offset' ], (int)$_POST[ 'limit' ] ); \n \n // Conditions set now lets query, from idexes\n $results = $s->query( $searchstring, \"taws_idx\" );\n $s->close();//Ok got what i want, end sphinx\n return $results;\n }", "title": "" }, { "docid": "ae166e655a3936788ef20344f34a90ff", "score": "0.58264565", "text": "public function hasIndex($name);", "title": "" }, { "docid": "a83b9148d15f36a48bcfba171a5f5922", "score": "0.5823129", "text": "function setIndexData()\t{\n\t\t$setup = array();\n\t\t$setup['ruleConf'] = $this->getIndexData_ruleConf();\n\t\t$setup['dataPreset'] = $this->getIndexData_fields('dataPreset');\n\t\t$setup['dataPostset'] = $this->getIndexData_fields('dataPostset');\n\t\t$GLOBALS['SOBE']->MOD_SETTINGS['tx_damindex_indexSetup'] = serialize($setup);\n\t\t$this->extObj->processIndexSetup();\n\t}", "title": "" }, { "docid": "65f54ce10f7c842e8ccd7100fcda68a5", "score": "0.58166313", "text": "public function all() {\n \t$this->index(0);\n }", "title": "" }, { "docid": "d038c0a918479c311ea2e052795f0f1d", "score": "0.5816036", "text": "public function getIndexName(): string;", "title": "" }, { "docid": "d038c0a918479c311ea2e052795f0f1d", "score": "0.5816036", "text": "public function getIndexName(): string;", "title": "" }, { "docid": "112a897d5ec93ec624e51dc06b93e845", "score": "0.5803416", "text": "function dbplus_rsecindex($relation, $domlist, $type)\n{\n}", "title": "" }, { "docid": "aa7e98ebcaa0fe93a8e5d1705659bd5b", "score": "0.5803211", "text": "static function createIndex() {\n $client = new Everyman\\Neo4j\\Client(Config::get('database.connections.neo4j.default')['host']);\n $thesarusIndex = Node::getIndex($client);\n $thesarusIndex->save();\n }", "title": "" }, { "docid": "ae3a24b85854bb6776cca92ef3a18c27", "score": "0.57944393", "text": "protected function createFullTextIndex()\n {\n $this->call('mysql-search:init', [\n \"modelClass\" => \"Bkstar123\\BksCMS\\AdminPanel\\Admin\"\n ]);\n $this->call('mysql-search:init', [\n \"modelClass\" => \"Bkstar123\\BksCMS\\AdminPanel\\Role\"\n ]);\n $this->call('mysql-search:init', [\n \"modelClass\" => \"Bkstar123\\BksCMS\\AdminPanel\\Permission\"\n ]);\n }", "title": "" }, { "docid": "bde3e77ccaead5812645268bf01ab66e", "score": "0.57931644", "text": "public function getSearchIndexData()\n {\n $sql = \"SELECT c.content_id, \\n\"\n// . \"c.content_id AS tid, \\n\"\n . \"c.element_id, \\n\"\n . \"IFNULL(e.name, 'Other') element_name, \\n\"\n . \"c.heading, \\n\"\n . \"c.location, \\n\"\n . \"c.keyword, \\n\"\n . \"c.title_tag, \\n\"\n . \"c.desc_tag, \\n\"\n . \"c.one_line_desc, \\n\"\n . \"c.two_line_desc, \\n\"\n . \"c.three_line_desc, \\n\"\n . \"c.one_para_desc, \\n\"\n . \"c.short_desc, \\n\"\n . \"c.description, \\n\"\n . \"c.location, \\n\"\n . \"c.content_image_link, \\n\"\n . \"c.file_name, \\n\"\n . \"c.order_no \\n\"\n// . \"h.parent_id, \\n\"\n// . \"h.parent_id AS parent \\n\"\n . \"FROM nad_content c \\n\"\n . \"INNER JOIN nad_content_map h \\n\"\n . \"ON c.content_id = h.content_id \\n\"\n . \"LEFT JOIN nad_element e \\n\"\n . \"ON c.element_id = e.element_id \\n\"\n . \"WHERE 1 \\n\"\n . \"AND c.approved = 'Y' \\n\"\n . \"AND c.status = 'E' \\n\"\n . \"AND c.is_leaf = 'N' \\n\"\n . \"ORDER BY element_name, c.heading\";\n\n $resultSet = $this->getDbTable()->getDefaultAdapter()->fetchAll($sql);\n return $resultSet;\n }", "title": "" }, { "docid": "b02da33466c19b21eab2e35602056716", "score": "0.5790466", "text": "function index( ) {\n }", "title": "" }, { "docid": "9c1bb9c1ebb8d0800d0cd5562500d344", "score": "0.5787761", "text": "function refreshIndexes( $index_names = '--all' ){ \n $indexes = array( \n 'taws_ar_idx_c0',\n 'taws_ar_idx_c1',\n 'taws_zh_idx_c0',\n 'taws_zh_idx_c1',\n 'taws_en_idx_c0',\n 'taws_en_idx_c1', \n 'taws_fr_idx_c0',\n 'taws_fr_idx_c1',\n 'taws_de_idx_c0',\n 'taws_de_idx_c1',\n 'taws_it_idx_c0',\n 'taws_it_idx_c1',\n 'taws_ja_idx_c0',\n 'taws_ja_idx_c1',\n 'taws_pl_idx_c0',\n 'taws_pl_idx_c1',\n 'taws_ru_idx_c0',\n 'taws_ru_idx_c1',\n 'taws_es_idx_c0',\n 'taws_es_idx_c1',\n 'taws_idx'\n ); \n $index_names = implode( ' ', $indexes );\n \n // If sphinx is running stop it.\n \n // Typical places for the pid file to be located\n $pid_files = array(\n '/var/lib/log/searchd.pid'\n );\n \n $pid_is_running = false;\n $pid = null;\n // find the actual pid file then test if the pid is running\n foreach( $pid_files as $file ){\n if( file_exists( $file ) ){\n // get and test the pid\n $pid = file_get_contents( $file );\n \n if( shell_exec( \"ps aux | grep searchd | grep \" . (int)$pid . \" | wc -l\" ) > 1 ){\n $pid_is_running = true; \n }\n }\n }\n \n // if sphinx is running then stop it \n if( $pid_is_running ){\n echo \"Stopping Sphinx via 'searchd --stop'.\\n\";\n passthru( \"searchd --stop;\" );\n // Now wait for it to finish\n \n $count = 0;\n while( shell_exec( \"ps aux | grep searchd | grep \" . (int)$pid . \" | wc -l\" ) > 1 ){\n if( $count > 10 ){\n exit( \"ERROR: Stopping Sphinx(searchd) timed out.\" );\n }\n usleep( 500000 );\n ++$count;\n }\n }\n \n // Start indexing the database\n echo \"Staring indexer.\\n\";\n passthru( \"indexer $index_names\" );\n echo \"Indexing Done.\\n\";\n \n // start sphinx\n echo \"Starting Sphinx.\\n\";\n passthru( \"searchd\" );\n }", "title": "" }, { "docid": "d5f9e03682ba07c933eb81b7039ad714", "score": "0.5787147", "text": "public function hook_query_index(&$query)\n {\n //Your code here\n }", "title": "" }, { "docid": "fa5ab2188e59f0a0bbcb2f2b37634b89", "score": "0.5785649", "text": "public function actionCreate1()\n {\n \t //CREATING INDEX TO SEARCH\n \t $_indexFiles = '\\runtime\\search';\n $index = Zend_Search_Lucene::create($_indexFiles);\n \t $index = new Zend_Search_Lucene(Yii::getPathOfAlias('application.' . $this->_indexFiles), true);\n \t $index = new Zend_Search_Lucene($this->_indexFiles,true);\n \n \t \n \t \n \t$posts = Asset::model()->findAll();//LOADING ASSET MODUL TO SEARCH IMAGE\n \n \t \n \t\t \n \t foreach($posts as $post){\n \t\t\n \t\t \n\t\t\t\t \t\t //here we are getting the extention of file \n\t\t\t\t \t\tif(($pos=strrpos($post->file,'.'))!==false)\n\t\t\t\t \t\t\t$ext=substr($post->file,$pos+1);\n\t\t\t\t \t\t \n\t\t\t\t \t\t//here we are getting the image file and adding it to search index.\n\t\t\t\t \t\tif ($ext==='jpg'|| $ext==='gif'|| $ext==='png'|| $ext==='ani'|| $ext==='bmp'|| $ext==='cal'|| $ext==='fax'|| $ext==='img'|| $ext==='jbg'|| $ext==='jpe'|| $ext==='mac'|| $ext==='pbm'|| $ext==='pcd'|| $ext==='pcx'|| $ext==='pct'|| $ext==='pgm'|| $ext==='ppm'|| $ext==='psd'|| $ext==='ras'|| $ext==='tga'|| $ext==='tiff'|| $ext==='wma')\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\t$doc = new Zend_Search_Lucene_Document(); //here the index of zend lucene search is created\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t $numericalValue = '123456789';\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Keyword('keyword', $this->numericalValue));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\t//fields of zend search index is initialized here for searching.\n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('name',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->assetId), 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \t\t\t//here adding a tilte of search document with file name\n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('title',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->file), 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \n\t\t\n\t\t\t\t \t\t\t//here adding a link field to search document with orgnization id. \n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('link',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->orgId)\n\t\t\t\t \t\t\t\t\t, 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \n\t\t\t\t \t\t\t//here adding a content field to search document with categoryid.\n\t\t\t\t \t\t\t$doc->addField(Zend_Search_Lucene_Field::Text('content',\n\t\t\t\t \t\t\t\t\tCHtml::encode($post->categoryId)\n\t\t\t\t \t\t\t\t\t, 'utf-8')\n\t\t\t\t \t\t\t);\n\t\t\t\t \n\t\t\t\t // here adding document to search index.\n\t\t\t\t \t\t\t$index->addDocument($doc);\n \t\t } \n \n \t}\n \n \t\t\t\t //\n \t \n\t\t\t\t \t$index->commit();\n\t\t\t\t \techo 'Lucene index created';\n \n \n \n }", "title": "" }, { "docid": "01666abc228e4440aed8f4eb3e0729b5", "score": "0.5784638", "text": "static public function reindex()\n\t{}", "title": "" }, { "docid": "840a7670260dc19d241a064051d4b99d", "score": "0.5779864", "text": "public function createSearchIndexes()\r\n {\r\n $authorsTable = config('railforums.author_table_name');\r\n $authorsTableKey = config('railforums.author_table_id_column_name');\r\n $displayNameColumn = config('railforums.author_table_display_name_column_name');\r\n\r\n $query = $this\r\n ->baseQuery()\r\n ->select($this->table . '.*')\r\n ->addSelect($authorsTable . '.' . $displayNameColumn)\r\n ->join(\r\n $authorsTable,\r\n $authorsTable . '.' . $authorsTableKey,\r\n '=',\r\n $this->table . '.' . 'author_id'\r\n )\r\n ->orderBy($this->table . '.id');\r\n\r\n $query->chunk(\r\n 100,\r\n function (Collection $postsData) use ($displayNameColumn) {\r\n\r\n foreach ($postsData as $postStdData) {\r\n\r\n /** @var Post $post */\r\n $post = $this->getHydratedEntity($postStdData);\r\n\r\n $searchIndex = new SearchIndex();\r\n\r\n $searchIndex\r\n ->setHighValue(null)\r\n ->setMediumValue($post->getContent())\r\n ->setLowValue($postStdData->{$displayNameColumn})\r\n ->setPostId($post->getId())\r\n ->setThreadId($post->getThreadId())\r\n ->setCreatedAt(Carbon::now()->toDateTimeString());\r\n\r\n $searchIndex->persist();\r\n }\r\n }\r\n );\r\n\r\n }", "title": "" } ]
b3301251fef6f0cdde1aa10cee9c83f0
TODO: this needs to be done using a query to be more efficient
[ { "docid": "bfbc8ba02a24fe15d116848a6365c7dc", "score": "0.0", "text": "protected function deleteEntity($entityId)\n {\n\n $file = File::findFirstById($entityId);\n if ($file != false) {\n foreach ($file->cells as $cell)\n {\n $cell->delete();\n $this->appendErrors($cell->getErrors());\n }\n foreach ($file->columns as $column)\n {\n $column->delete();\n $this->appendErrors($column->getErrors());\n }\n foreach ($file->rows as $row)\n {\n $row->delete();\n $this->appendErrors($row->getErrors());\n }\n $file->delete();\n $this->appendErrors($file->getErrors());\n }\n }", "title": "" } ]
[ { "docid": "bc7ea5c38d25ed65eab0f01f32761daa", "score": "0.51748824", "text": "private function _query()\n\t{\n\t}", "title": "" }, { "docid": "009edeabe95a88f3bbd5f83c8c2ad11e", "score": "0.4918337", "text": "abstract public function queryValues();", "title": "" }, { "docid": "9d3006a069d9a4b47b531f0e30a3ca56", "score": "0.4899363", "text": "protected final function _getCollection() {}", "title": "" }, { "docid": "6f93d065311000017676fffb8726bda5", "score": "0.48896143", "text": "function colorItemRef($idColorRef_){\n global $db;\n $dataQuery = array();\n \n $db->where('id_color',$idColorRef_); \n $db->orderBy('nome_color','asc'); \n $queryTbl = $db->get ('tipo_color', 1, 'id_color, nome_color, color_hexa'); \n \n if(count($queryTbl)>0){\n foreach($queryTbl as $qKey){ \n $dataQuery = $qKey; \n }\n return $dataQuery;\n }\n}", "title": "" }, { "docid": "d8156d24f7fbc605d3cd0c696bb949cd", "score": "0.48120502", "text": "public function allmlookup()\n\t{\n\t\t$data = $this->db->query(\"SELECT * from tl_invoice_standard where ID_CHILD != 27 AND IDDIVISION IS NOT NULL AND IDSUB > 0 order by DUEDATE ASC\");\n\t\treturn $data->result();\n\t}", "title": "" }, { "docid": "1132bae93e4b27373e77896116a853c3", "score": "0.48055342", "text": "private function _pullDocumentCountersFromDb()\r\n\t{\r\n\t\r\n\t\t$sql = \"SELECT * FROM \".self::DOCUMENTS_CNT_TABLENAME.\"\";\r\n\t\t$data = $this->_dbh->getResults($sql);\r\n\t\tforeach ($data as $row) \r\n\t\t{\r\n\t\t\tif ($row['name'] == 'spam') {\r\n\t\t\t\t$this->_documentsCntSpam = max (1, $row['cnt']);\t\t\r\n\t\t\t}\r\n\t\t\telseif ($row['name'] == 'ham') {\r\n\t\t\t\t$this->_documentsCntHam = max (1, $row['cnt']);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7a9ca39386c93d73d30ab2bf30ed0804", "score": "0.47952878", "text": "function tallaNumItemRef($idTallaNumRef_){\n global $db;\n $dataQuery = array();\n \n $db->where('id_talla_numer',$idTallaNumRef_); \n $queryTbl = $db->get ('talla_numerico', 1, 'id_talla_numer, talla_numer'); \n \n if(count($queryTbl)>0){\n foreach($queryTbl as $qKey){ \n $dataQuery = $qKey; \n }\n return $dataQuery;\n }\n}", "title": "" }, { "docid": "d26415bddab30c63b006f469574e1e3c", "score": "0.47698656", "text": "public function returnWantedCoupons($title) {\n$coupons=$this->coupon_repository->returnCouponsWithWorkers();\nforeach ($coupons as $coupon){\nforeach ($coupon->workers as $pivot){\n//For each coupon takes the value of the title field in the pivot table and compares with the value of the fetched title variable\nif($pivot->pivot->title==$title){\n//If it returns true we are putting those coupon ids in to an array\n$ids[]=$pivot->pivot->coupon_id;\n}\n}\n}\nforeach($ids as $id){\n//For each coupon id of that array i'm finding and returning the apropriate coupon object which i'm storing in a new array\n$new[]=$this->coupon_repository->findCouponById($id);\n}\nreturn $new;\n}", "title": "" }, { "docid": "8c44796bbd8a3bac2c54b547a2388f15", "score": "0.47618708", "text": "function getDuplicates(){\n\t\t$q = Doctrine_Query::create()->from('Category c')->where(\"c.name = '\".$this->getName().\"' AND c.alias = '\".$this->getAlias().\"' AND c.type = '\".$this->getType().\"' AND c.parentid = '\".$this->getParentID().\"' AND c.sectorid = '\".$this->getSectorID().\"' AND c.id <> '\".$this->getID().\"' \");\n\t\t\n\t\t$result = $q->execute();\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "630551af81cb71ecca48f91f192724e3", "score": "0.47564688", "text": "public function findShrunken(){\n\n\t\t$whereClause = 'tinypng=1';\n\t\t$rows = $this->databaseConnection->exec_SELECTgetRows('*', $this->table, $whereClause);\n\n\t\t$itemList = array();\n\t\tif ($rows !== null) {\n\t\t\tforeach ($rows as $row) {\n\t\t\t\t$itemList[] = $this->createDomainObject($row);\n\t\t\t}\n\t\t}\n\t\treturn $itemList;\n\t}", "title": "" }, { "docid": "7131b8c67cade23d195740743dac92c1", "score": "0.47509435", "text": "private function processOrgs()\n {\n $sql = 'SELECT DISTINCT sar FROM vols';\n $stmt = $this->conn->executeQuery($sql);\n while($row = $stmt->fetch()) {\n $sar = $row['sar'];\n $this->processSar($sar);\n }\n }", "title": "" }, { "docid": "3312210b1c4b7acd3d1de20a4f02dabf", "score": "0.4747003", "text": "function title_query(){\n $titles = array();\n $result = db_quary(\"SELECT p.title FROM {MY_ENTITY_TABLE} p WHERE p.id IN (:ids)\",\n array(':ids'=>$this->value));\n foreach ($result as $entities){\n $titles[] = check_plan($entities->title);\n }\n return $titles;\n }", "title": "" }, { "docid": "075fd8afda7db7dae40f00301c6fb8e9", "score": "0.4708916", "text": "public function change()\n {\n\n\n$query =<<<'EOD'\n\nCREATE OR REPLACE FUNCTION public.normalize_bible_data()\n RETURNS integer\nAS\n$BODY$\nDECLARE\n row record;\n val_book text;\n val_chapter text;\nBEGIN\n for row in (select * from bible order by id)\n LOOP\n if(row.book is not null and val_book is null or (row.book != val_book and row.book is not null and val_book is not null))\n then\n val_book = row.book;\n END IF;\n \n if(row.chapter is not null and val_chapter is null or (row.chapter != val_chapter and row.chapter is not null and val_chapter is not null))\n then\n val_chapter = row.chapter;\n END IF;\n\n update bible\n set book= val_book,chapter = val_chapter,row = Coalesce(str2integer(split_part(page, ' ', 1)),str2integer(split_part(page, ' ', 1)))\n where id = row.id;\n\n END LOOP;\n\n return 1;\nEND;\n$BODY$\nLANGUAGE plpgsql volatile;\n\nselect normalize_bible_data();\n\nupdate bible\nset page = replace(page,row,'');\n\nupdate bible\nset page_ts_vector = to_tsvector(page);\n\ncreate table bible_parall as\nwith cte as\n(\n SELECT\n e.id,\n f.name as form_name,\n c.name as class_name,\n e.name\n FROM sg_class C, sg_entry E, sg_form F\n WHERE E.id_class = C.id AND F.id_entry = E.id\n and c.id != 22\n),prepare_data as\n(\n SELECT\n lower(replace(c.form_name,' ','')) as name,\n first(class_name) as class_name\n FROM cte AS c\n GROUP BY c.form_name\n) , prepare_parall as\n(\n SELECT\n row_number() over (ORDER BY null) as id,\n s.name,\n s.name::tsquery as ts_query_name,\n first(s.class_name) as \"group\",\n count(*) as total_word,\n NULL :: INTEGER \"0_5000_old\",\n NULL :: INTEGER \"5000_10000_old\",\n NULL :: INTEGER \"10000_15000_old\",\n NULL :: INTEGER \"15000_20000_old\",\n NULL :: INTEGER \"20000_25000_old\",\n NULL :: INTEGER \"25000_30000_old\",\n NULL :: INTEGER \"30000_35000_new\",\n NULL :: INTEGER \"35000_38546_new\"\n FROM prepare_data s\n JOIN bible AS b ON b.page_ts_vector @@ s.name :: TSQUERY\n where b.page !=''\n GROUP BY s.name\n)\nselect *\n from prepare_parall;\n\n\nEOD;\n $this->execute($query);\n }", "title": "" }, { "docid": "0123b95a4ef701e6044cd7fe07376c59", "score": "0.46902165", "text": "abstract protected function get_from_join_snippet();", "title": "" }, { "docid": "31dee22469bf9f948242304b43b6d32e", "score": "0.46793976", "text": "function findChildData($query){\r\n\t\treturn $query;\r\n\t}", "title": "" }, { "docid": "b6a6e81da43b95c5af48c19df4753a86", "score": "0.46601036", "text": "function tallaLetraItemRef($idTallaLetraRef_){\n global $db;\n $dataQuery = array();\n \n $db->where('id_talla_letras',$idTallaLetraRef_); \n $queryTbl = $db->get ('talla_letras', 1, 'id_talla_letras, nome_talla_letras'); \n \n if(count($queryTbl)>0){\n foreach($queryTbl as $qKey){ \n $dataQuery = $qKey; \n }\n return $dataQuery;\n }\n \n}", "title": "" }, { "docid": "2e4cbbf2f4c60df19c5f1eff89295827", "score": "0.4658657", "text": "function getAuthorsOfArticle($id)\n{\n // Array to output\n $authors_names = array();\n $query = \"SELECT author_id FROM write WHERE article_id='\" . $id . \"';\";\n $answer = pg_query($query);\n if ($answer == 0) {\n die('Cannot get authors ids');\n }\n for ($i = 0; $i < pg_num_rows($answer); $i++) {\n $authors_ids = pg_fetch_row($answer);\n $query = \"SELECT name FROM authors WHERE id = '\" . $authors_ids[0] . \"';\";\n $name_answer = pg_query($query);\n $name = pg_fetch_row($name_answer);\n array_push($authors_names, $name[0]);\n }\n return $authors_names;\n}", "title": "" }, { "docid": "14445a2e555db2ede77dfd05eff14e27", "score": "0.46469504", "text": "public function findNotShrunken(){\n\n\t\t$whereClause = 'tinypng=0';\n\t\t$rows = $this->databaseConnection->exec_SELECTgetRows('*', $this->table, $whereClause);\n\n\t\t$itemList = array();\n\t\tif ($rows !== null) {\n\t\t\tforeach ($rows as $row) {\n\t\t\t\t$itemList[] = $this->createDomainObject($row);\n\t\t\t}\n\t\t}\n\t\treturn $itemList;\n\t}", "title": "" }, { "docid": "1bc966cf64c3cc5be9ce9db5eabad11f", "score": "0.46465853", "text": "public function search_distinct(){\n\t}", "title": "" }, { "docid": "fb43fb562419e5ac25cfc2ecee3fa9af", "score": "0.46389937", "text": "function buscarPapaPrimero($documentId)\n{\n $query = Model::getQueryBuilder()\n ->select('C.nombre_tabla as parent_table', 'B.nombre_tabla as child_table')\n ->from('documento', 'A')\n ->join('A', 'formato', 'B', 'lower(A.plantilla)=lower(B.nombre)')\n ->join('B', 'formato', 'C', 'B.cod_padre = C.idformato')\n ->where('A.iddocumento = :documentId')\n ->setParameter('documentId', $documentId, \\Doctrine\\DBAL\\Types\\Type::INTEGER)\n ->execute()->fetch();\n\n if ($query['parent_table']) {\n $document = Model::getQueryBuilder()\n ->select('B.documento_iddocumento')\n ->from($query[\"child_table\"], 'A')\n ->join('A', $query[\"parent_table\"], 'B', \"{$query['parent_table']} = id{$query['parent_table']}\")\n ->where('A.documento_iddocumento = :documentId')\n ->setParameter('documentId', $documentId, \\Doctrine\\DBAL\\Types\\Type::INTEGER)\n ->execute()->fetch();\n\n return buscarPapaPrimero($document[\"documento_iddocumento\"]);\n } else {\n return $documentId;\n }\n}", "title": "" }, { "docid": "8716617af091419b3ab0b3dee7b5962c", "score": "0.46335426", "text": "function find_product_by_batch($product_batch){\n global $db;\n $p_name = remove_junk($db->escape($product_batch));\n $sql = \"SELECT item_name as name FROM items WHERE batch like '%$p_name%' LIMIT 5\";\n $result = find_by_sql($sql);\n return $result;\n }", "title": "" }, { "docid": "8a0f51c2ff7f1e6d6ec72d03bbf13d36", "score": "0.46264327", "text": "function getOfficerHistory()\n{\n $querystr = \"SELECT * FROM officer_history H, officer_positions P, contact C WHERE H.pos_id = P.pos_id AND H.pid = C.pid\";\n return db_connect::run_query($querystr);\n}", "title": "" }, { "docid": "c3bc53b496fa9799d15737f49b0c1c70", "score": "0.46256632", "text": "private function getQueryThee() {\r\n\t\t$result = null;\r\n\r\n\t\t$sql = '\r\n\t\t\tSELECT\r\n\t\t\t\tislc_taskdocs.downloads,\r\n\t\t\t\tislc_taskdocs.title,\r\n\t\t\t\tislc_users.user_name\r\n\t\t\tFROM\r\n\t\t\t\tislc_taskdocs\r\n\t\t\tLEFT JOIN\r\n\t\t\t\tislc_users\r\n\t\t\tON\r\n\t\t\t\tislc_users.id = islc_taskdocs.created_by\r\n\t\t\tWHERE\r\n\t\t\t\tislc_taskdocs.downloads > 0\r\n\t\t\tORDER BY\r\n\t\t\t\tislc_taskdocs.downloads\r\n\t\t\tDESC\r\n\t\t\tLIMIT 10;\r\n\t\t';\r\n\r\n $databaseWorker = $this->getDH();\r\n $result = $databaseWorker->fetchQueryAsObject($sql);\r\n\r\n\t\treturn $result;\r\n\t}", "title": "" }, { "docid": "2356e13437a273fcf0b5746cb143f999", "score": "0.46152994", "text": "abstract protected function find();", "title": "" }, { "docid": "28736750de9513a0f2489a00343dc31b", "score": "0.46006995", "text": "function get_account_manager_id($distributor_id)\n{\n // $query = \"SELECT * FROM users_parent WHERE parent=\" . $distributor_id;\n $result = db_query('SELECT * FROM {users_parent} WHERE parent=:a',array(':a'=>$distributor_id));\n $row_count = $result->rowCount();\n\n $lowest_val = 1000000;\n $lowest_key = -1;\n\n\n for ($i = 0; $i < $row_count; $i++)\n foreach($result as $row)\n {\n $row = (array)$row;\n\n// $query2 = \"SELECT * FROM member_id_pool WHERE owner=\" . $row['uid'];\n $result2 = db_query('SELECT * FROM {member_id_pool} WHERE owner=:a',array(':a'=>$row['uid']));\n $row_count2 = $result2->rowCount();\n\n if ($row_count2 < $lowest_val) {\n $lowest_val = $row_count2;\n $lowest_key = $row['uid'];\n }\n }\n\n // check for errors\n if ($lowest_key == -1) {\n return false;\n }\n\n return $lowest_key;\n}", "title": "" }, { "docid": "e382a6cbad34aab0223d0d65903ea512", "score": "0.45985386", "text": "public function findByCC($id)\n{\n $sql = 'SELECT COUNT(b1.CountryCode) as count, b1.CountryCode as Code, c1.CountryName as countryName FROM BookVisits as b1, Countries as c1 WHERE c1.CountryCode = b1.CountryCode AND b1.CountryCode =:id GROUP BY c1.CountryName ORDER BY COUNT(b1.CountryCode) DESC LIMIT 15';\n\n $statement = DatabaseHelper::runQuery($this->connection, $sql,\n Array(':id' => $id));\n return $statement->fetch();\n}", "title": "" }, { "docid": "0ec448983b7f87388886cd456de5ea5e", "score": "0.45916072", "text": "function get_coach_allocated_to_group ($weekno, $group, $badge) {\n $query = \"SELECT rid FROM role where name = '$badge'\";\n $query = db_query($query);\n\n while ($name = db_fetch_object($query)) {\n $role_id = $name->rid;\n }\n\n $query = \"SELECT `coach_name`, `coach_id` FROM coachallocatedtobadge WHERE `week_num` = $weekno AND `group_name` = '$group' AND `badge_role` = $role_id\";\n\n //print $query.\"<br />\";\n\n $result = db_query ($query);\n\n $row->coach_name = '';\n $row->coach_id = 0;\n while ($row = db_fetch_object ($result) ) {\n $return = $row;\n }\n\n return $return;\n}", "title": "" }, { "docid": "abe12b3dd1994c048b6251bc48d55107", "score": "0.45903364", "text": "function getAllOtherActivityDetails(){\n \t$q = Doctrine_Query::create()->from('SeasonActivity s')->where(\"s.seasonid = '\".$this->getID().\"'\")->orderby('s.startdate DESC');\n\t\t$result = $q->execute();\n\t\treturn $result;\n }", "title": "" }, { "docid": "30b07cdfdaf38aea8503cf79c5813fa8", "score": "0.45897838", "text": "function _populate_metadata() {\n\t\t// Get all the records from the item's metadata records\n\t\t// Return an array of things.\n\t\t$c = $this->db->query(\n\t\t\t\"select lower(fieldname) as fieldname, coalesce(value, value_large) as val\n\t\t\tfrom metadata\n\t\t\twhere item_id = \".$this->id.\"\n\t\t\t and page_id is null\"\n\t\t);\n\t\t$results = array();\n\t\tforeach ($c->result() as $row) {\n\t\t\tarray_push(\n\t\t\t\t$results, \n\t\t\t\tarray('fieldname' => $row->fieldname, 'value' => $row->val)\n\t\t\t);\n\t\t}\n\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "8f09679b8c71093b6fc6a046cd556648", "score": "0.45842162", "text": "abstract protected function buildQuery();", "title": "" }, { "docid": "fb710ca6f0f478e32140800168b5bfde", "score": "0.45789048", "text": "function forGenero(){\n global $db;\n \n $dataForGenero = array();\n \n $db->orderBy('nome_depart_prod','asc');\n $queryTbl = $db->get ('departamento_prods'); \n \n $rowQueryTbl = count($queryTbl);\n if($rowQueryTbl>0){\n foreach($queryTbl as $qKey){\n $dataForGenero[] = $qKey; \n }\n return $dataForGenero;\n }\n \n}", "title": "" }, { "docid": "553539b6c191d8d7859a244441739a52", "score": "0.45764208", "text": "abstract protected function findEntities();", "title": "" }, { "docid": "1d6ee46424b0fee14e83bff00c52ba57", "score": "0.45713404", "text": "function getPublicationRelations()\n {\n\n //Input csv is the result of the following query run on the production database\n\n // $query = $db->query(\"SELECT DISTINCT(`record_data`.`registry_object_id`),`registry_objects`.`slug`, CONVERT(`record_data`.`data` USING utf8), `data_sources`.`title`\n // FROM `dbs_registry`.`record_data`,`dbs_registry`.`registry_objects`, `dbs_registry`.`data_sources`\n // WHERE `record_data`.`data` like '%<relatedInfo type=\"publication\">%'\n // AND `record_data`.`current` = TRUE\n // AND `record_data`.`scheme` = 'rif'\n // AND `record_data`.`registry_object_id` = `registry_objects`.`registry_object_id`\n // AND `registry_objects`.`data_source_id` = `data_sources`.`data_source_id`\n // AND `registry_objects`.`status` = 'PUBLISHED'\");\n\n $handle = fopen(\"http://devl.ands.org.au/workareas/liz/publication_by_ds.csv\", \"r\");\n $handle2 = fopen(\"../pubs/publication_by_ds_out.csv\", \"w+\") or die(\"Unable to open file!\");\n $row = 0;\n $pubs = 0;\n $collections = 0;\n while (($data = fgetcsv($handle, 0, \",\")) !== FALSE) {\n $row++;\n if ($row > 1) {\n\n $xml = simplexml_load_string($data[2]);\n $json = json_encode($xml);\n $array = json_decode($json, true);\n $type = '';\n\n if (isset($array['registryObject']['collection'])) {\n $type = 'collection';\n $collections++;\n\n if (isset($array['registryObject'][$type]['relatedInfo'][0])) {\n for ($i = 0; $i < count($array['registryObject'][$type]['relatedInfo']); $i++) {\n $out[0] = $data[3];\n $out[1] = \"http://researchdata.ands.org.au/\" . $data[1] . \"/\" . $data[0];\n\n if ($array['registryObject'][$type]['relatedInfo'][$i]['@attributes']['type'] == 'publication') {\n\n if (is_string($array['registryObject'][$type]['relatedInfo'][$i]['notes'])) {\n $out[2] = $array['registryObject'][$type]['relatedInfo'][$i]['notes'] . \"\\r\\n\";\n } else {\n $out[2] = '';\n }\n\n if (is_string($array['registryObject'][$type]['relatedInfo'][$i]['title'])) {\n $out[3] = $array['registryObject'][$type]['relatedInfo'][$i]['title'] . \"\\r\\n\";\n } else {\n $out[3] = '';\n }\n\n if (is_string($array['registryObject'][$type]['relatedInfo'][$i]['identifier'])) {\n $out[4] = $array['registryObject'][$type]['relatedInfo'][$i]['identifier'] . \"\\r\\n\";\n } else {\n $out[4] = '';\n }\n\n }\n $pubs++;\n fputcsv($handle2, $out);\n }\n } else {\n $out[0] = $data[3];\n $out[1] = \"http://researchdata.ands.org.au/\" . $data[1] . \"/\" . $data[0];\n\n if (is_string($array['registryObject'][$type]['relatedInfo']['notes'])) {\n $out[2] = $array['registryObject'][$type]['relatedInfo']['notes'] . \"\\r\\n\";\n } else {\n $out[2] = '';\n }\n if (is_string($array['registryObject'][$type]['relatedInfo']['title'])) {\n $out[3] = $array['registryObject'][$type]['relatedInfo']['title'] . \"\\r\\n\";\n } else {\n $out[3] = '';\n }\n if (is_string($array['registryObject'][$type]['relatedInfo']['identifier'])) {\n $out[4] = $array['registryObject'][$type]['relatedInfo']['identifier'] . \"\\r\\n\";\n } else {\n $out[4] = '';\n }\n\n $pubs++;\n fputcsv($handle2, $out);\n\n }\n }\n\n } else {\n $out[0] = \"Data source\";\n $out[1] = \"Collection URL\";\n $out[2] = \"Publication Notes\";\n $out[3] = \"Publication Title\";\n $out[4] = \"Publication Identifier\";\n fputcsv($handle2, $out);\n }\n\n }\n echo $row . \" is the objects found<br />\";\n echo $collections . \" is the collection count<br />\";\n echo $pubs . \" is publications listed<br />\";\n\n fclose($handle);\n fclose($handle2);\n }", "title": "" }, { "docid": "f5cac3d84d9e7e944232b3ba8d361b97", "score": "0.45640963", "text": "public function find();", "title": "" }, { "docid": "f5cac3d84d9e7e944232b3ba8d361b97", "score": "0.45640963", "text": "public function find();", "title": "" }, { "docid": "bb15491847c602e39bff4182dbeb94c1", "score": "0.4563341", "text": "public function getRecordIDStack() {\n //$or_query_conditions = $or_query_conditions->predicate('EFFECTIVE_DATE', null);\n //$or_query_conditions = $or_query_conditions->predicate('EFFECTIVE_DATE', date('Y-m-d'), '>=');\n \n $result = $this->db()->db_select('STUD_HOLD', 'hold')\n ->distinct()\n ->fields('hold', array('HOLD_ID' => 'ID', 'HOLD_CODE'))\n ->condition('INACTIVE', 0)\n ->orderBy('HOLD_CODE')\n ->execute()->fetchAll();\n return $result; \n }", "title": "" }, { "docid": "17d34a253e61176d88f929f250d8d48c", "score": "0.45613483", "text": "function fbsql_field_table($result, $field_offset){}", "title": "" }, { "docid": "6386c9d58f29fd3a7bbabf28f366daec", "score": "0.45583385", "text": "function createQueryUsulanKegiatanPrioritas($arr)\n{\n $query = \"\";\n $i = 0;\n foreach ($arr as $v) {\n $i++;\n $dt = pecahSkpd($v[\"skpdTujuan\"],$v[\"urusan\"],$v[\"bidang\"]);\n $ds = target($v[\"volume2\"]);\n $duit = $v[\"apbdKota2\"] + $v[\"apbdProp2\"] + $v[\"apbn2\"] + $v[\"danaLain2\"];\n\n $query .= \" begin tran if exists ( select * from [tests].[dbo].[kegiatan] with (updlock,serializable)\";\n $query .= \" where [tahun] = \" . $v[\"Thn\"] ;\n $query .= \" and [kd_urusan] = \" . $dt[\"urusan\"];\n $query .= \" and [kd_bidang] = \" . $dt[\"bidang\"];\n $query .= \" and [kd_unit] = \" . $dt[\"unit\"];\n $query .= \" and [kd_sub] = \" . $dt['sub'];\n $query .= \" and [id_prog] = \" . $dt[\"id_prog\"];\n $query .= \" and [kd_prog] = \" . intval($v[\"program\"]);\n $query .= \" and [kd_keg] = \" . intval($v[\"kegiatan\"]) . \")\";\n\n $query .= \" begin update [tests].[dbo].[kegiatan]\";\n\n $query .= \" set [ket_kegiatan] = \" . \"'\" . removeQuote($v[\"namaKegiatan\"]) .\"',\";\n $query .= \" [lokasi] = \" . \"'\" . removeQuote($v[\"lokasi\"]) .\"',\";\n $query .= \" [pagu_anggaran] = \" . \"'\" . $duit .\"'\";\n\n $query .= \" where [tahun] = \" . $v[\"Thn\"] ;\n $query .= \" and [kd_urusan] = \" . $dt[\"urusan\"];\n $query .= \" and [kd_bidang] = \" . $dt[\"bidang\"];\n $query .= \" and [kd_unit] = \" . $dt[\"unit\"];\n $query .= \" and [kd_sub] = \" . $dt['sub'];\n $query .= \" and [id_prog] = \" . $dt[\"id_prog\"];\n $query .= \" and [kd_prog] = \" . intval($v[\"program\"]);\n $query .= \" and [kd_keg] = \" . intval($v[\"kegiatan\"]) . \";\";\n $query .= \" end else begin \";\n\n\n $query .= \"INSERT INTO [tests].[dbo].[kegiatan] ([tahun], [kd_urusan], [kd_bidang],\n [kd_unit], [kd_sub], [kd_prog], [id_prog], [kd_keg], [ket_kegiatan], [lokasi], \n [kelompok_sasaran], [status_kegiatan], [pagu_anggaran], \n [waktu_pelaksanaan], [kd_sumber]) VALUES\";\n $query .= \"('\" . $v[\"Thn\"] .\"',\"; \n $query .= \"'\" . $dt[\"urusan\"] .\"',\"; \n $query .= \"'\" . $dt[\"bidang\"] .\"',\"; \n $query .= \"'\" . $dt[\"unit\"] .\"',\"; \n $query .= \"'\" . $dt[\"sub\"] .\"',\"; \n $query .= \"'\" . intval($v[\"program\"]) .\"',\"; \n $query .= \"'\" . $dt[\"id_prog\"] .\"',\"; \n $query .= \"'\" . intval($v[\"kegiatan\"]) .\"',\"; \n $query .= \"'\" . removeQuote($v[\"namaKegiatan\"]) .\"',\"; \n $query .= \"'\" . removeQuote($v[\"lokasi\"]) .\"',\"; \n $query .= \"' ',\"; //kelompok sasaran \n $query .= \"'B',\"; //status kegiatan \n $query .= \"'\" . $duit .\"',\"; //pagu anggaran \n $query .= \"' ',\"; // waktu pelaksanaan \n $query .= \"'3');\" ; // sumber DAU \n $query .= \" end commit tran\";\n\n // if ($i == 52) break;\n } \n\n return $query;\n}", "title": "" }, { "docid": "7c840d3e26083daecf48317d2e86882a", "score": "0.4557698", "text": "function find_by_sql($sql){\n \t\tglobal $db;\n \t\t$result = $db->query($sql);\n \t\t$result_set = $db->while_loop($result);\n \t\treturn $result_set;\n\t}", "title": "" }, { "docid": "eb7cdcc9668b66ad79dbe0ffe9ca8c43", "score": "0.4552885", "text": "function getProspects() {\n require_once 'utilities.php';\n require_once 'database.php';\n $credents = getDatabaseCredentialsTest(); //TESSSSSSSSSSSSST\n $db = new Database($credents);\n //data format [ 0 => [ uid => 1, asin => 34343, lowest => 36.78 ]\n // 1 => [ uid => 1, asin => 34343, lowest => 89.43 ] ]\n $data = $db->getUpdates();\n if (!$data)\n return;\n foreach ($data as $record) {\n $uid = $record['uid'];\n $asin = $record['asin'];\n \n }\n}", "title": "" }, { "docid": "90b953372b132ffe500a85c735357187", "score": "0.45484143", "text": "function SimilarItems($pdo){\n try{\n $statement = $pdo->prepare(\n \"SELECT * FROM items ORDER BY item_views DESC LIMIT 6\"\n );\n $statement->execute();\n return $statement->fetchAll(PDO::FETCH_OBJ);\n } catch (PDOException $e) {\n $error = \"{$e->getMessage()}\";\n }\n}", "title": "" }, { "docid": "a33b987b57d08a6cccacb1622e559231", "score": "0.45470706", "text": "function find_all_product_info_by_title($title){\n global $db;\n $admin_id = $_SESSION['admin_id'];\n $sql = \"SELECT * FROM products LEFT JOIN items ON products.id=items.product_id\";\n $sql .= \" WHERE items.item_name LIKE'%$title%' AND products.admin_id = '{$admin_id}' AND items.quantity !='0'\";\n $sql .=\" LIMIT 1\";\n return find_by_sql($sql);\n }", "title": "" }, { "docid": "385067f5075ef44b4fd62fca009b8e60", "score": "0.45460042", "text": "function find_all_product_info_by_title($title){\n global $db;\n $sql = \"SELECT * FROM Product \";\n $sql .= \" WHERE Pname ='{$title}'\";\n $sql .=\" LIMIT 1\";\n return find_by_sql($sql);\n }", "title": "" }, { "docid": "0bb30b46d1e5fa0f1c436230047f29a3", "score": "0.4539677", "text": "public function getDistinctOnList(){\n return $this->_get(6);\n }", "title": "" }, { "docid": "e1097d2b8086e44bf200e54bf3b15180", "score": "0.45376697", "text": "abstract public function query(): array;", "title": "" }, { "docid": "e5b532f685ea3aca1a56e10ecef7c082", "score": "0.45349506", "text": "function getAllTreatingDetails(){\n \t$q = Doctrine_Query::create()->from('SeasonTracking s')->where(\"s.seasonid = '\".$this->getID().\"'\")->orderby('s.startdate DESC');\n\t\t$result = $q->execute();\n\t\treturn $result;\n }", "title": "" }, { "docid": "3a7989952ac3c9b3d794777de7bd4827", "score": "0.4532462", "text": "function getReponseLastId(){\n $sql = \"SELECT idQ FROM reponse ORDER BY idQ ASC\";\n $bornes = pg_query($sql); \n while($reponse = pg_fetch_object($bornes)):\n $lastid = $reponse->idQ;\n endwhile;\n return $lastid;\n \n }", "title": "" }, { "docid": "64dda7079a7ab37a756611c011c3f951", "score": "0.4532269", "text": "function sales_get_distributor_vise_orders($distributor_id){\n $query = db_select('ebay_books_order_assigned','oa');\n //$query->leftjoin('sells_records_items','i',' i.custom_label = oa.isbn ');//JOIN isbn with temp table\n $query->fields('oa',array('isbn','order_assigned_id','qty','price','order_id'));//order_assigned_id\n $query->leftjoin('catalog', 'c', 'c.isbn13 = oa.isbn'); //JOIN isbm with catalog\n //$query->fields('i',array('custom_label','item_title'));//publisher\n $query->fields('c',array('publisher','title'));//publisher\n $query->condition('oa.distrbutor_id', $distributor_id); \n $query->addExpression('SUM(oa.qty)', 'qty');\n $query->groupby('oa.isbn');\n $results = $query->execute()->fetchAll();\n return $results;\n }", "title": "" }, { "docid": "43727fa69b474c29d2b69dd5923551be", "score": "0.4528249", "text": "function fotosRef($refAlbumItemRef_){\n //SELECT `id_albun`, `nome_albun`, `portada_album`, `ref_album`, `ruta_publicacion` FROM `albun_db` WHERE 1\n \n //SELECT `id_albun`, `id_foto`, `nome_foto`, `descri_foto`, `img_foto` FROM `fotos_albun` WHERE 1\n \n global $db;\n \n $dataArr = array();\n \n $sqArr = $db->subQuery ('adb'); \n \n $sqArr->where('ref_album', $refAlbumItemRef_); \n $sqArr->get('albun_db');\n\n $db->join($sqArr, 'adb.id_albun=fa.id_albun'); \n $queryTbl = $db->get ('fotos_albun fa', null, 'adb.id_albun, adb.nome_albun, adb.portada_album, adb.ref_album, fa.id_foto, fa.nome_foto, fa.descri_foto, fa.img_foto'); \n \n $rowQueryTbl = count($queryTbl);\n if($rowQueryTbl>0){\n foreach($queryTbl as $qKey){\n $dataArr[] = $qKey; \n \n }\n //$dataArr = unique_multidim_array($dataArr, 'id_material');\n return $dataArr;\n }\n \n}", "title": "" }, { "docid": "fc98e265e02df3735f5b2f74a87250f8", "score": "0.45197982", "text": "function getAllInputDetails(){\n \t$q = Doctrine_Query::create()->from('SeasonInput s')->where(\"s.seasonid = '\".$this->getID().\"'\")->orderby('s.startdate DESC');\n\t\t$result = $q->execute();\n\t\treturn $result;\n }", "title": "" }, { "docid": "ba11e084178fd739c97ffdf6de62d1c0", "score": "0.45068955", "text": "function getNewRequestsNoIdentifiers(){\n\n $db=$this->db;\n try {\n $stmt = $db->prepare(\"select * from requests where oclc1 is null and isbn1 is null and APIstatus='new' and title is not null order by id asc\");\n $stmt->execute();\n $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n\n }\n catch (Exception $e) {\n\n echo $e;\n }\n return $rows;\n\n\n\n }", "title": "" }, { "docid": "4fd1178da0e6e907c79bba1e9d0cc178", "score": "0.45068797", "text": "protected function queryPostProcessing() {}", "title": "" }, { "docid": "eef01de9d76cd0db06042c9c61d72ec2", "score": "0.4504355", "text": "function fetchBrancheGroups() {\n global $DB;\n $query = \"SELECT trim(Branch) AS branchid, trim(AccNo) AS account FROM bafile ORDER BY AccNo\";\n $rows = $DB->execresultset($query);\n foreach ($rows as $row) {\n $branches[$row['branchid']][] = $row['account'];\n }\n return $branches;\n}", "title": "" }, { "docid": "4777db31bce910f0ce332b881d99cfd3", "score": "0.45015192", "text": "function getFull(){\n\t\t\t// $strQuery =\"SELECT COUNT(PASSENGER_ID),join_pool.JOINEDPOOL_ID,create_pool.POOL_ID FROM join_pool,create_pool WHERE join_pool.JOINEDPOOL_ID=create_pool.POOL_ID\";\n\t\t\t// $strQuery = \"Select COUNT(PASSENGER_ID),join_pool.JOINEDPOOL_ID,create_pool.MAX_CAPACITY from join_pool,create_pool where join_pool.JOINEDPOOL_ID=4\";\n\t\t\treturn $this->query($strQuery);\n\n\t\t}", "title": "" }, { "docid": "737c42326f993e1fc1137a770502d673", "score": "0.44899544", "text": "function getPresupuestosGesdent(){\n\n $id = deget()->centro;\n $desde = deget()->desde;\n\n switch ($id) {\n case '3':\n // murcia\n $subcentro = \" and Presu.IdCentro = 3 \";\n break;\n case '4':\n // molina\n $subcentro = \" and Presu.IdCentro = 2 \";\n break;\n\n default:\n $subcentro = \" \";\n break;\n }\n\n\n $rechaza = \"1 as FecRechazBool,\";\n $agrupa = \"group by Pacientes.IdPac, Presu.IdPac, Pacientes.NumPac, Nombre, Apellidos, FecPresup, Presu.FecAcepta, Titulo, Presu.NumPre, Pacientes.Tel1, Pacientes.TelMovil, Presu.Web\";\n if ($id!=-1) {\n $rechaza = \"case when Presu.FecRechaz is null then 0 else 1 end as FecRechazBool,\";\n $agrupa = \"group by Pacientes.IdPac, Presu.IdPac, Pacientes.NumPac, Nombre, Apellidos, FecPresup, Presu.FecAcepta, Titulo, Presu.NumPre, Pacientes.Tel1, Pacientes.TelMovil, Presu.FecRechaz, Presu.Web\";\n }\n\n $sql = \"\n select Pacientes.IdPac, Pacientes.NumPac, Presu.NumPre, Nombre, Apellidos,\n case when Presu.FecAcepta is null then 0 else 1 end as FecAceptaBool,\n convert(varchar, FecPresup, 103) as Entrega,\n convert(varchar, Presu.FecAcepta, 103) as FecAcepta,\n convert(varchar, Presu.FecRechaz, 103) as FecRechaz,\n case when Presu.Web like '%*OP%' then 1 else 0 end as OpcionalBool,\n Titulo, sum( (ImportePre*(100-(ISNULL(Dto,0))))/100 ) as Importe,\n (select c.Notas from Presu c where Presu.NumPre = c.NumPre and Presu.IdPac = c.IdPac) as Notas,\n\n \".$rechaza.\"\n Pacientes.Tel1, Pacientes.TelMovil,\n (select count(*)\n from TtosMed\n where TtosMed.IdPac = Presu.IdPac and TtosMed.IdTipoOdg = 11 and datepart(hh,TtosMed.FecFin) = 11 and datepart(mi,TtosMed.FecFin) = 11\n ) as tieneRecall\n\n from Presu\n\n inner join Pacientes on Presu.IdPac = Pacientes.IdPac\n inner join PresuTto on (Presu.IdPac = PresuTto.IdPac) and (Presu.NumPre = PresuTto.NumPre)\n\n where FecPresup > '\".$desde.\"'\n /*and Presu.FecAcepta is null and Presu.FecRechaz is null*/\n and PresuTto.StaTto = 7\n \".$subcentro.\"\n\n \".$agrupa.\"\n order by FecPresup desc\"\n ;\n // echo $sql;\n recupera($id,$sql);\n}", "title": "" }, { "docid": "b10f8829fa97abed563269aef1b01465", "score": "0.44896737", "text": "function getAllSalesDetails(){\n \t$q = Doctrine_Query::create()->from('Sales s')->where(\"s.seasonid = '\".$this->getID().\"'\")->orderby('s.startdate DESC');\n\t\t$result = $q->execute();\n\t\treturn $result;\n }", "title": "" }, { "docid": "09c6769f90e64abf44fb9893b9876a08", "score": "0.44881728", "text": "function getAllHarvestDetails(){\n \t$q = Doctrine_Query::create()->from('SeasonHarvest s')->where(\"s.seasonid = '\".$this->getID().\"'\")->orderby('s.startdate DESC');\n\t\t$result = $q->execute();\n\t\treturn $result;\n }", "title": "" }, { "docid": "faf71d3d310274f5a92d13365c394c5f", "score": "0.4479818", "text": "function remove_duplication() {\n\t\t$q = $this -> db -> query(\"SELECT subject_user_id, COUNT(*) AS total FROM user_relation GROUP BY subject_user_id\");\n\t\t$r = $q -> result_array();\n\t\t$c = count($r);\n\t\twhile ($c > 0) {\n\t\t\t$c--;\n\t\t\t//if ($r[$c]['total'] > 1)\n\t\t\t/*\t$q = $this -> db -> query(\"DELETE FROM members WHERE ID=$row[ID] LIMIT $row[total]-1\");\n\t\t\t $q -> result_array();\n\t\t\t */\n\t\t}\n\t}", "title": "" }, { "docid": "0dc5a1ae1fef06d1a82e58521635eb71", "score": "0.4477081", "text": "private function setData(){\n\t\tforeach ($this->query as $subarray) {\n\t\t\t$id = 0;\n\t\t\tforeach ($subarray as $key => $value) {\n\t\t\t\tif($key == \"idApliance\"){\n\t\t\t\t\t$id = $value;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$model = Apliance::findOne([\"idApliance\"=>$id]);\n\t\t\t\t\t$this->result[$model->Marca . \" \" . $model->Modelo] = $value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "157ff76e8061762beeadbde85f8b951c", "score": "0.44756308", "text": "function getAllPlantingDetails(){\n \t$q = Doctrine_Query::create()->from('SeasonPlanting s')->where(\"s.seasonid = '\".$this->getID().\"'\")->orderby('s.startdate DESC');\n\t\t$result = $q->execute();\n\t\treturn $result;\n }", "title": "" }, { "docid": "f67a157a32721b34deacfb4aae2c52ab", "score": "0.44753128", "text": "function getNumberOfObjects($coll,$type){\n\t\t$i=0;\n\t\t$where=\"\";\n \n \n\t\tif(!empty($coll)){\n\t\t\t\tforeach ($coll as $collection){\n\n\t\t\t\t\tif($i==0)$where='(collection=\"'.$collection.'\"';\n\t\t\t\t\telse $where.='or collection=\"'.$collection.'\"';\n\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t\t$where.=')';\n\t\t}\n\t\tif(count($type)==0) $type = array('pdf', 'images', 'x3d');\n \n $totalNumberOfObjects = 0;\n \n foreach($type as $tp){\n if($where) $this->db->where($where);\n $query = $this->db->get($tp);\n foreach ($query->result() as $row)\n {\n $xmlFile=$row->metadataLocation;\n \n if($tp == 'images'){\n if($xmlFile && $row->collection!='The Church of Ayia Marina') $totalNumberOfObjects++;\n \n } else{\n if($xmlFile && !$row->imageLocation==\"\" && $row->collection!='The Church of Ayia Marina') $totalNumberOfObjects++;\n \n } \n }\n \n }\n \n return $totalNumberOfObjects;\n \n }", "title": "" }, { "docid": "07dae6df5a11051f3e3caac71d41b52e", "score": "0.44744217", "text": "function sales_get_all_order_assigned_tabs(){\n $query = db_select('ebay_books_order_assigned','s'); \n $query->condition('s.status', 'assigned', '='); \n $query->fields('s',array('distrbutor_id'));\n $query->groupBy('s.distrbutor_id');\n $assignedto = $query->execute()->fetchAll(); \n return $assignedto;\n}", "title": "" }, { "docid": "6c8b40ec6ea851ff6958f2805f041891", "score": "0.44729236", "text": "private function run_query() {\n\t\t$SphQLResult = $this->SphQL->query();\n\t\tif ($SphQLResult->Errno > 0) {\n\t\t\t$this->SphResults = false;\n\t\t\treturn;\n\t\t}\n\t\tif ($this->Random && $this->GroupResults) {\n\t\t\t$TotalCount = $SphQLResult->get_meta('total_found');\n\t\t\t$this->SphResults = $SphQLResult->collect('groupid');\n\t\t\t$GroupIDs = array_keys($this->SphResults);\n\t\t\t$GroupCount = count($GroupIDs);\n\t\t\twhile ($SphQLResult->get_meta('total') < $TotalCount && $GroupCount < $this->PageSize) {\n\t\t\t\t// Make sure we get $PageSize results, or all of them if there are less than $PageSize hits\n\t\t\t\t$this->SphQL->where('groupid', $GroupIDs, true);\n\t\t\t\t$SphQLResult = $this->SphQL->query();\n\t\t\t\tif (!$SphQLResult->has_results()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t$this->SphResults += $SphQLResult->collect('groupid');\n\t\t\t\t$GroupIDs = array_keys($this->SphResults);\n\t\t\t\t$GroupCount = count($GroupIDs);\n\t\t\t}\n\t\t\tif ($GroupCount > $this->PageSize) {\n\t\t\t\t$this->SphResults = array_slice($this->SphResults, 0, $this->PageSize, true);\n\t\t\t}\n\t\t\t$this->NumResults = count($this->SphResults);\n\t\t} else {\n\t\t\t$this->NumResults = (int)$SphQLResult->get_meta('total_found');\n\t\t\tif ($this->GroupResults) {\n\t\t\t\t$this->SphResults = $SphQLResult->collect('groupid');\n\t\t\t} else {\n\t\t\t\t$this->SphResults = $SphQLResult->to_pair('id', 'groupid');\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d1ea6f2f8a7f0edc336d42040ebbd2fc", "score": "0.44713002", "text": "public function scopeOrderedElements() {\n $result = ElemPlaylist::where(\"playlist_id\",$this->id)->orderBy(\"ordine\")->get(); \n $converted_result = [];\n foreach ($result as $trk) {\n $converted_result[] = $trk->playable()->firstOrFail();\n }\n return $converted_result;\n }", "title": "" }, { "docid": "f00704e6ac62dc22bfaf5f5c9c1e3cea", "score": "0.44706807", "text": "function createQueryUsulanKegiatanRutin($arr)\n{\n $query = \"\";\n $i = 0;\n foreach ($arr as $v) {\n $i++;\n $dt = pecahSkpd($v[\"skpdTujuan\"]);\n $ds = target($v[\"volume2\"]);\n $duit = $v[\"apbdKota2\"] + $v[\"apbdProp2\"] + $v[\"apbn2\"] + $v[\"danaLain2\"];\n\n $query .= \" begin tran if exists ( select * from [tests].[dbo].[kegiatan] with (updlock,serializable)\";\n $query .= \" where [tahun] = \" . $v[\"Thn\"] ;\n $query .= \" and [kd_urusan] = \" . $dt[\"urusan\"];\n $query .= \" and [kd_bidang] = \" . $dt[\"bidang\"];\n $query .= \" and [kd_unit] = \" . $dt[\"unit\"];\n $query .= \" and [kd_sub] = \" . $dt['sub'];\n $query .= \" and [id_prog] = \" . $dt[\"id_prog\"];\n $query .= \" and [kd_prog] = \" . intval($v[\"program\"]);\n $query .= \" and [kd_keg] = \" . intval($v[\"kegiatan\"]) . \")\";\n\n $query .= \" begin update [tests].[dbo].[kegiatan]\";\n\n $query .= \" set [ket_kegiatan] = \" . \"'\" . removeQuote($v[\"namaKegiatan\"]) .\"',\";\n $query .= \" [lokasi] = \" . \"'\" . removeQuote($v[\"lokasi\"]) .\"',\";\n $query .= \" [pagu_anggaran] = \" . \"'\" . $duit .\"'\";\n\n $query .= \" where [tahun] = \" . $v[\"Thn\"] ;\n $query .= \" and [kd_urusan] = \" . $dt[\"urusan\"];\n $query .= \" and [kd_bidang] = \" . $dt[\"bidang\"];\n $query .= \" and [kd_unit] = \" . $dt[\"unit\"];\n $query .= \" and [kd_sub] = \" . $dt['sub'];\n $query .= \" and [id_prog] = \" . $dt[\"id_prog\"];\n $query .= \" and [kd_prog] = \" . intval($v[\"program\"]);\n $query .= \" and [kd_keg] = \" . intval($v[\"kegiatan\"]) . \";\";\n $query .= \" end else begin \";\n\n\n $query .= \"INSERT INTO [tests].[dbo].[kegiatan] ([tahun], [kd_urusan], [kd_bidang],\n [kd_unit], [kd_sub], [kd_prog], [id_prog], [kd_keg], [ket_kegiatan], [lokasi], \n [kelompok_sasaran], [status_kegiatan], [pagu_anggaran], \n [waktu_pelaksanaan], [kd_sumber]) VALUES\";\n $query .= \"('\" . $v[\"Thn\"] .\"',\"; \n $query .= \"'\" . $dt[\"urusan\"] .\"',\"; \n $query .= \"'\" . $dt[\"bidang\"] .\"',\"; \n $query .= \"'\" . $dt[\"unit\"] .\"',\"; \n $query .= \"'\" . $dt[\"sub\"] .\"',\"; \n $query .= \"'\" . intval($v[\"program\"]) .\"',\"; \n $query .= \"'\" . $dt[\"id_prog\"] .\"',\"; \n $query .= \"'\" . intval($v[\"kegiatan\"]) .\"',\"; \n $query .= \"'\" . removeQuote($v[\"namaKegiatan\"]) .\"',\"; \n $query .= \"'\" . removeQuote($v[\"lokasi\"]) .\"',\"; \n $query .= \"' ',\"; //kelompok sasaran \n $query .= \"'B',\"; //status kegiatan \n $query .= \"'\" . $duit .\"',\"; //pagu anggaran \n $query .= \"' ',\"; // waktu pelaksanaan \n $query .= \"'3');\" ; // sumber DAU \n $query .= \" end commit tran\";\n\n // if ($i == 52) break;\n } \n\n return $query;\n}", "title": "" }, { "docid": "ab0dfb7fdb76a48d1e5dc9d32f21a454", "score": "0.44704708", "text": "function getUnmapSchool()\n{\n $unmapschoolarray=array();\n $schoolList = \\DB::table('school_info')\n ->select(\\DB::raw('id'))\n ->whereNull('deleted_at')\n ->get();\n \n foreach ($schoolList as $key => $value)\n {\n $unmapschoolList = \\DB::table('school_vendor_mapping')\n ->select(\\DB::raw('id'))\n ->where('school_id',$value->id)\n ->whereNull('deleted_at')\n ->count();\n \n if($unmapschoolList==0)\n {\n array_push($unmapschoolarray, $value->id);\n }\n }\n return $unmapschoolarray;\n}", "title": "" }, { "docid": "c48e2a73406e8614d4ebefbd0aba185d", "score": "0.44679177", "text": "public function initUpdate(){\n\t # Truncate the two DB tables\n\t\t$this->truncateTables();\n\n\t\t# Get Auth Token from RankTrackr\n\t\t$this->getAuthToken();\n\n\t\t# Get URLs and store in DB\n\t\t$urls = $this->getUrls();\n\t\t$output = array();\n\t\tforeach($urls as $url){\n\t\t\t$last_processed_at = $this->isoToTimeStamp($url['last_processed_at']);\n\t\t\t$created_at = $this->isoToTimeStamp($url['created_at']);\n\n\t\t\t# Insert Query for URLs\n\n\t\t\t# Get Keywords for URLs and store to DB\n\t\t\t$keywords = $this->getKeywords($url['id']);\n\t\t\tforeach($keywords as $keyword){\n\t\t\t\t$last_processed_at = $this->isoToTimeStamp($keyword['last_processed_at']);\n\t\t\t\t$created_at = $this->isoToTimeStamp($keyword['created_at']);\n\n\t\t\t\t# Insert Query for Keywords\n\t\t\t}\n\t\t}\n\n\t\treturn $output;\n\t}", "title": "" }, { "docid": "da61f18d5f3fe65eb8df2865b8a37849", "score": "0.44677562", "text": "function getmappoints() {\n\t\t$sql = \"SELECT * FROM incidentes\";\n\t\t$query = $this->db->query($sql);\n\t\tif ($query->num_rows() > 0) {\n\t\t\treturn $query;\n\t\t}\n }", "title": "" }, { "docid": "4b836ffbafd3df919e6f0cef367e86bd", "score": "0.44652462", "text": "function getArrayListresidensi(){ \n $xBuffResul = array(); \n $xStr = \"SELECT \".\n \"idx\".\",title\".\r\n\",description\".\r\n\",datestart\".\r\n\",dateend\".\r\n\",image\".\r\n\",istampil\".\r\n\",keyword\".\r\n\",idartist\".\r\n\",idmetatag\".\r\n\",idbahasa\".\r\n\",idimage\".\r\n\",update\".\r\n\",iduser\".\r\n\n\" FROM residensi order by idx ASC \"; \n $query = $this->db->query($xStr); \n foreach ($query->result() as $row) \n { \n $xBuffResul[$row->idx] = $row->idx; \n } \nreturn $xBuffResul;\n}", "title": "" }, { "docid": "8d0f72fe6d277dfdedbefd23bfedd548", "score": "0.44644836", "text": "function getMinimumProductsHistory($admin_id)\n{\n\n $sql = \"SELECT * FROM items LEFT JOIN products ON products.id = items.product_id WHERE items.quantity <= 10 \";\n $sql .= \" AND items.admin_id = '{$admin_id}' AND items.sms_sent=1 ORDER BY items.id ASC\";\n return find_by_sql($sql);\n \n}", "title": "" }, { "docid": "03dd7798c5b38c03f5e3d51d9965f464", "score": "0.44644633", "text": "function getPuzzleIds()\n{ /* NOTE: Puzzles sorted by puzzle_name instead of puzzle_id */\n $ids = array();\n $sqlGetPuzzleIds = \"SELECT puzzle_id FROM puzzles ORDER BY puzzle_name\";\n $result = run_sql($sqlGetPuzzleIds);\n $num_rows = $result->num_rows;\n if ($num_rows > 0) {\n while ($row = $result->fetch_assoc()) {\n array_push($ids, $row['puzzle_id']);\n }\n }\n return $ids;\n\n}", "title": "" }, { "docid": "bb64010ea9fdc00cec6bdaed7a5db060", "score": "0.44611573", "text": "function taxonomy_fix()\n{\n $query = db_select('field_data_field_category', 'gd')\n ->fields('gd', array('entity_id','field_category_tid'))\n ->condition('bundle', 'blog');\n $results = $query->execute()->fetchAll();\n print(\"<pre>\");\n $query1= db_select('taxonomy_index','ti')\n ->fields('ti',array('nid','tid','sticky','created'));\n $results1 =$query1->execute()->fetchAll();\n // print_r($results1);\n \n foreach ($results as $values)\n {\n \n $nnid=$values->entity_id;\n $tax=$values->field_category_tid;\n \ndb_merge('taxonomy_index')\n ->insertFields(array(\n 'sticky'=> '1',\n 'created'=>time()\n ))\n ->updateFields(array(\n \n 'sticky'=> '0',\n 'created'=>time()\n ))\n ->key(array('nid' => $nnid,'tid'=>$tax))\n ->execute();\n \n \n print_r($tax .\"->\". $nnid);\n print(\"<br>\");\n }\n \n}", "title": "" }, { "docid": "d2fdde2c85c7432b94f090b53d4f6602", "score": "0.44608414", "text": "private function countAllItems()\n{\n// the query that returns the record count\n$count_query = 'SELECT COUNT(*) FROM product';\n// execute the query and fetch the result\nif ($result = $this->mMysqli->query($count_query))\n{\n// retrieve the first returned row\n$row = $result->fetch_row();\n// close the database handle\n$result->close();\nreturn $row[0];\n}\nreturn 0;\n}", "title": "" }, { "docid": "40c18e6412c2d1ba8b3c91ee547db647", "score": "0.44587737", "text": "function countContentQuery()\r\t{\r\t\t$query = 'SELECT COUNT(*)' .\r\t\t\t\t' FROM ' . $this->table .\r\t\t\t\t' WHERE id IN (%s)' .\r\t\t\t\t' AND ('.$this->state.' = 1 OR '.$this->state.' = 0)';\r\t\treturn $query;\r\t}", "title": "" }, { "docid": "c8bff90f9533ade9ff1410b6329cdfc1", "score": "0.4456971", "text": "public function miens(){\n //SELECT magasin.*, (select count(*) from magasin_has_mission mhm where mhm.`_id_magasin` = magasin.id_magasin) as nb_offres, (select count(*) from scan_qr where _id_mission in (select _id_mission from magasin_has_mission mhm where mhm._id_magasin = magasin.id_magasin)) as nb_clients FROM magasin where _id_user = $idUser\n return $this->query(\"SELECT magasin.*, (select count(*) from mission where mission._id_magasin = magasin.id_magasin) as nb_offres, (select count(*) from scan_qr where _id_mission in (select id_mission from mission where mission._id_magasin = magasin.id_magasin)) as nb_clients FROM magasin where _id_user = $idUser\");\n }", "title": "" }, { "docid": "0dbd035e5f81def003071689096d49fd", "score": "0.4448224", "text": "function getSportList()\n{\n\n $query = \"Select name\n From sport\n Order by name\";\n \n return executeQuery($query);\n \n}", "title": "" }, { "docid": "ec0a6b9745aecd439c84810b3712f94e", "score": "0.44480035", "text": "protected function processCollection()\n {\n if ($this->queryCache !== null)\n return $this->queryCache;\n\n $lastQuery = null;\n foreach ($this->collection as $tag => $data)\n {\n extract($data);\n $cleanQuery = clone $item->getQuery();\n $model = $item->getModel();\n\n $sorting = $model->getTable() . '.';\n $sorting .= $orderBy ?: $this->sortField;\n\n /*\n * Flush the select, add ID and tag\n */\n $cleanQuery = $cleanQuery->select(Db::raw($keyName.\" as id\"));\n $cleanQuery = $cleanQuery->addSelect(Db::raw(\"(SELECT '\".$tag.\"') as \".$this->tagVar));\n $cleanQuery = $cleanQuery->addSelect(Db::raw(\"(SELECT \".$sorting.\") as \".$this->sortVar));\n\n /*\n * Union this query with the previous one\n */\n if ($lastQuery) {\n if ($this->removeDuplicates)\n $cleanQuery = $lastQuery->union($cleanQuery);\n else\n $cleanQuery = $lastQuery->unionAll($cleanQuery);\n }\n\n $lastQuery = $cleanQuery;\n }\n\n return $this->queryCache = $lastQuery;\n }", "title": "" }, { "docid": "e6665ee7d25e209e5f26aca7da874d50", "score": "0.44418246", "text": "function db_2560($db){\n\n $t=array('emdeon_lab_results','emdeon_orderinsurance','emdeon_orders');\n foreach ($t as $tbls)\n {\n $sql =\"show index from $tbls where Key_name = 'order_id' \";\n\n $result = $db->query($sql);\n\n if( $db->errno ) {\n return 'Failed update in result for db_2560.php: '.$db->error;\n }\n $row = $result->fetch_row();\n if(!$row) {\n $sql2=\"ALTER TABLE $tbls ADD INDEX ( `order_id` ) \";\n $result2 = $db->query($sql2);\n if( $db->errno ) {\n return 'Failed to update result2 in db_2560.php '.$db->error;\n }\n } \n }\n\n return true;\n}", "title": "" }, { "docid": "de705c3b24f57cfefe8711c9421301f5", "score": "0.44378603", "text": "function remakeQueryArray($table, $id, &$pid, $fieldList, &$addWhere, &$orderby){\n\t\t//all workspace: LIVE and CUSTOM\n\t\tif($table == 'tx_civserv_service_sv_position_mm'){\n\t\t\t$orderby=' tx_civserv_service_sv_position_mm.sp_label'; \n\t\t\t\n\t\t\t$addWhere=' AND deleted=0'; //have to add this explicitely for mm-tables!!! \n\t\t\t//standard typo3: mm_tables have no 'deleted'-field and are never displayed at all\n\t\t}\t\n\t\t// in CUSTOM workspaces we want to see the records relating to the newest service-version as well as the\n\t\t// records relating to the actual online services.\n\t\tif($table == 'tx_civserv_service_sv_position_mm' && $GLOBALS['BE_USER']->workspace > 0){ //Custom workspace!!!\n\t\t\t//list services available in the given folder (pid = 123)\n\t\t\t$display_service_list=array();\n\t\t\t$display_count=0;\n\t\t\t$pidexploded=explode('=',$pid);\n\t\t\t$onlinepid=$pidexploded[1]; // 123\n\t\t\t// select the uids of the online-services (pid > 0) and add them to the service-list\n\t\t\t$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*','tx_civserv_service','deleted=0 AND '.$pid,'','','',''); \n\t\t\twhile ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)){\n\t\t\t\t$display_service_list[$display_count]['uid']=$row['uid'];\n\t\t\t\t$display_service_list[$display_count]['t3ver_id']=$row['t3ver_id'];\n\t\t\t\t// select the uids of offline-versions of the same service\n\t\t\t\t$res2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*','tx_civserv_service','deleted=0 AND t3ver_oid='.$row['uid'],'','','',''); \n\t\t\t\twhile ($row2 = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res2)){\n\t\t\t\t\t//which one of the service-records is newer????\n\t\t\t\t\tif(intval($row2['t3ver_id'])>intval($display_service_list[$display_count]['t3ver_id'])){\n\t\t\t\t\t\t//overwrite the older ones in the display-list\n\t\t\t\t\t\t$display_service_list[$display_count]['uid']=$row2['uid'];\n\t\t\t\t\t\t$display_service_list[$display_count]['t3ver_id']=$row2['t3ver_id'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$display_count++;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif (count($display_service_list)>0){\n\t\t\t\t$sv_uids=array();\n\t\t\t\tforeach($display_service_list as $pair){\n\t\t\t\t\t$sv_uids[]=$pair['uid'];\n\t\t\t\t}\n\t\t\t\t// we need the records associated with online records as well! (0 shouldn't be in the pid-list)\n\t\t\t\t$pid='pid in (0, -1, '.$onlinepid.')'; \n\t\t\t\t$addWhere='AND uid_local in ('.implode(',',$sv_uids).')';\n\t\t\t\t\n\t\t\t\t// make civserv-updates:\n\t\t\t\t// without call to update_position, the records appear as \"no title\" in BE!!\n\t\t\t\t// would rather have to call it with table tx_civserv_service and according uid then!!!\n\t\t\t\t$params=array('table' =>'tx_civserv_service_sv_position_mm');\n\t\t\t\t//baustelle!!!!!\n\t\t\t\t//$this->updateDB($params, 'remakeQueryArray');\n\t\t\t}\n\t\t}// CUSTOM WORKSPACE\n\t}", "title": "" }, { "docid": "0e823c90674b6b1386a483f6e214d9aa", "score": "0.4436873", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM uavm_document';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "25f22413af951606b6d9dfb721898d74", "score": "0.44347337", "text": "function requerimentosOrganizacao($db) {\n\n $query = \"SELECT id, colaborador, inicio, fim, estado, observacoes\n FROM requerimento;\";\n\n $result = execute($db, $query);\n\n $requerimentos = $result->fetchAll();\n\n return $requerimentos;\n}", "title": "" }, { "docid": "46039c26473a93b69dd624620b56f4f9", "score": "0.44327044", "text": "protected function getHits(){\n\t\t\n\t\t$record = CacheHitRecordQuery::create();\n\t\t$record = $record->filterByRecordId(CacheController::$recordKey);\n\t\t$record = $record->findOne();\n\t\tif(!isset($record)){\n\t\t\t// create dat new entry\n\t\t\t$newRecord = new \\CacheHitRecord();\n\t\t\t$newRecord->setPrimaryKey(CacheController::$recordKey);\n\t\t\t$newRecord->setMissCount(0);\n\t\t\t$newRecord->setHitCount(0);\n\t\t\t$newRecord->save();\n\t\t\treturn $newRecord->toArray();\n\t\t}\n\t\treturn $record->toArray();\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "4d948281ced6e842f6e551655f796432", "score": "0.44296485", "text": "public function testQuery(){\n $this->query = \"\n\n SELECT \n /*DISTINCT eaddr.email_address*/\n count(le.id)\n FROM \n email_addresses AS eaddr, \n email_addr_bean_rel AS ebean,\n leads AS le\n WHERE \n le.id = ebean.bean_id AND\n ebean.bean_module='Leads' AND\n ebean.email_address_id=eaddr.id AND\n le.deleted<>1 AND\n eaddr.email_address IN (\";\n $emails = \"\";\n foreach( $this->emailList as $email ){\n $emails.= \"\\\"\".$email.\"\\\", \";\n }\n $emails = substr( $emails, 0, strlen($emails)-2);\n $this->query.= $emails.\")\";\n }", "title": "" }, { "docid": "1ec4b16c2a529e85cd15b2969b57a648", "score": "0.44286942", "text": "public function findVotingPhysical();", "title": "" }, { "docid": "b8148f884f00a4d277496eab87045396", "score": "0.44284037", "text": "abstract public function getAll();", "title": "" }, { "docid": "417d84e41139412887e3ac2935baa73c", "score": "0.4427437", "text": "function getQueryTitle(){\n return \" SELECT nid, title, field_paint_times_value, field_paint_efficeincy__value\".\n \" FROM node n INNER JOIN \".\n \" field_data_field_paint_times t on t.entity_id = nid INNER JOIN \".\n \" field_data_field_paint_efficeincy_ e on e.entity_id = nid \".\n \" group by n.nid; \";\n }", "title": "" }, { "docid": "0cee60a344fcbca5d2bab713a539e8fd", "score": "0.44261658", "text": "Public Function getRefSpatialSubUnits($TableName) {\r\n\r\n// $cnn = $dc->getDBConnection(\"Survey_Data\");\r\n\r\n// $selectStr = \"Select * from \" . $TableName . \";\";\r\n\r\n $results = array();\r\n\r\n// $cmd = pg_query($cnn, $selectStr);\r\n\r\n $spatialSUMap = New SpatialSubUnits();\r\n $spatialSUMap->Name = \"Current Map Extent\";\r\n $results[] = ($spatialSUMap);\r\n\r\n\r\n// $DA = new DataAdapter();\r\n\r\n// $resultObjects = $DA->Read($cmd);\r\n\r\n if (DataAdapter::isTrustedTableName($TableName, \"Survey_Data\")) {\r\n $selectStr = \"Select * from \" . $TableName . \";\";\r\n $resultObjects = DataAdapter::DefaultPDOExecuteAndRead($selectStr, null, \"Survey_Data\");\r\n\r\n\r\n ForEach ($resultObjects->resultObject as $DR ) {\r\n $spatialSU = New SpatialSubUnits();\r\n\r\n $spatialSU->Name = Trim($DR->Item[1]);\r\n $results[] = ($spatialSU);\r\n }\r\n }\r\n\r\n Return $results;\r\n\r\n }", "title": "" }, { "docid": "c07e8a9815249fdca589349f3fa7e822", "score": "0.4424874", "text": "function map_all_qsos_for_active_station_profile() {\n $CI =& get_instance();\n $CI->load->model('stations');\n $station_id = $CI->stations->find_active();\n\n $this->db->where(\"station_id\", $station_id);\n $this->db->order_by(\"COL_TIME_ON\", \"ASC\");\n $query = $this->db->get($this->config->item('table_name'));\n\n return $query;\n }", "title": "" }, { "docid": "1273e2aaba5c1246833f7828eb31f931", "score": "0.44246885", "text": "function getCoachList()\n{\n\n $query = \"Select coachid, fname, lname\n From coach\n Order by lname\";\n \n return executeQuery($query);\n \n}", "title": "" }, { "docid": "56be0e8f7e3bccbce5627f4fdcf29383", "score": "0.4421333", "text": "abstract protected function extractAutoIDs();", "title": "" }, { "docid": "e36ebb024867ac82b92fc211b45ee597", "score": "0.44168028", "text": "function getSourceNodes()\n\t{\n\t\tglobal $store;\n\t\t$query = \"SELECT * WHERE\n\t\t{\n\t\t\t?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://sparqlr.co.uk/q/ISQuery> .\n\t\t\t?s <http://sparqlr.co.uk/q/QueryId> ?QueryId .\n\t\t\t?s <http://sparqlr.co.uk/q/DateSaved> ?DateSaved .\n\t\t}\";\n\t\t$rs = $store->query($query);\n\t\tif (!$store->getErrors())\n\t\t{\n\t\t\t$i = 0;\n\t\t\t$queryArray = array();\n\t\t\twhile (isset($rs['result']['rows'][$i]))\n\t\t\t{\n\t\t\t\t$sQuery = new SparqlrQuery();\n\t\t\t\t$queryArray[$i] = dataSetToSparqlrQuery($rs['result']['rows'][$i], $sQuery);\n\t\t\t\t//$queryArray[$i]->type = $type;\n\t\t\t\t//$queryArray[$i]->tags = getQueryTags($queryArray[$i]->queryId);\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tprint_r($store->getErrors());\n\t\t}\n\t\treturn $queryArray;\n\t}", "title": "" }, { "docid": "30eed86f13bc5ea10565b59f71195384", "score": "0.4414727", "text": "function _updateBatchTable() {\n $sql = \"SELECT l.* FROM remittance_batch b join remittance_log l on (b.id = l.batch_id) \nWHERE (b.currency is null or b.convert_currency is null ) AND (l.currency is not null or l.convert_currency is not null); \";\n\n $res = DB::query($sql);\n\n //var_dump($res[0]);\n foreach ($res as $r) {\n if (empty($r['currency']))\n continue;\n $updates = ['currency'=>$r['currency'], 'convert_currency'=>$r['convert_currency'],\n //'id'=>$r['batch_id']\n ];\n //var_dump($updates);\n //DB::update('remittance_batch', $updates, \"id=%s\", $r['batch_id']);\n }\n}", "title": "" }, { "docid": "0499952916bfe6297c604c7b65bd8122", "score": "0.44127625", "text": "private function loadToObject(){\n $this->doBeforeLoad();\n \n $dbObj = $this->db->from($this->tblName);\n foreach ($this->tblKey as $value)\n if(is_string($value))\n $dbObj = $dbObj->where($value, $this->fields[$value]);\n \n $ret = $dbObj->limit(1)->get()->result();\n $ret = $ret[0];\n \n return $this->doAfterLoad($ret);\n }", "title": "" }, { "docid": "84c0c7742a63ac56a20b210fd2cee64b", "score": "0.44061643", "text": "function getSchoolsMatchingManualQuery() { \n $query = \"REPLACE INTO `recommend_school_listedschool` (schoolId, listedschoolID) VALUES\n(57, 33812),\n(57, 35795),\n(77, 9419),\n(77, 9654),\n(92, 34865),\n(98, 56665),\n(117, 27621),\n(117, 28396),\n(120, 67078),\n(173, 54350),\n(215, 60862),\n(246, 32056),\n(264, 36931),\n(264, 37230),\n(264, 37278),\n(301, 55110),\n(301, 55113),\n(302, 35796),\n(307, 32174),\n(307, 32188),\n(307, 32760),\n(307, 33034),\n(307, 33053),\n(318, 34795),\n(319, 15213),\n(319, 15870),\n(319, 15705),\n(392, 27894),\n(397, 65523),\n(411, 48809),\n(411, 48930),\n(455, 35502),\n(468, 48118),\n(468, 48696),\n(474, 61300),\n(523, 33737),\n(523, 33822),\n(544, 58695),\n(553, 37713),\n(581, 25077),\n(628, 17906),\n(628, 18353),\n(654, 48090),\n(654, 48683),\n(718, 34852),\n(727, 66747),\n(727, 66840),\n(779, 53976),\n(779, 54499),\n(793, 28519),\n(793, 28941),\n(802, 66141),\n(802, 66736),\n(845, 30732),\n(852, 33041),\n(876, 7605),\n(878, 52387),\n(878, 53074),\n(894, 33727),\n(894, 35800),\n(938, 14409),\n(938, 15066),\n(942, 6981),\n(942, 7396),\n(946, 2218),\n(946, 2734),\n(953, 43721),\n(953, 44522),\n(953, 44697),\n(954, 18623),\n(954, 18651),\n(967, 30323),\n(967, 30897),\n(976, 37693),\n(977, 20432),\n(977, 20695),\n(992, 649),\n(992, 660),\n(992, 666),\n(992, 1165),\n(993, 9),\n(993, 10),\n(1024, 14452),\n(1024, 15058),\n(1033, 2189),\n(1033, 2190),\n(1035, 14451),\n(1035, 15060),\n(1035, 15149),\n(1053, 31420),\n(1053, 31452),\n(1053, 32016),\n(1053, 32113),\n(1072, 66023),\n(1075, 14961),\n(1075, 14367),\n(1105, 27411),\n(1116, 10479),\n(1116, 11093),\n(1141, 19530),\n(1144, 7874),\n(1144, 7894),\n(1158, 32194),\n(1158, 33042),\n(1158, 33052),\n(1161, 62192),\n(1182, 40054),\n(1182, 39765),\n(1192, 12477),\n(1192, 12531),\n(1211, 27872),\n(1211, 28347),\n(1228, 25046),\n(1228, 25929),\n(1236, 648),\n(1237, 44062),\n(1237, 44605),\n(1248, 58197),\n(1248, 58605),\n(1260, 10447),\n(1260, 11041),\n(1276, 40156),\n(1276, 40780),\n(1277, 25041),\n(1277, 25924),\n(1277, 26057),\n(1290, 49838),\n(1290, 49995),\n(1291, 48132),\n(1291, 48706),\n(1292, 8370),\n(1292, 8371),\n(1339, 41690),\n(1389, 35902),\n(1463, 35911),\n(1471, 52962),\n(1471, 53375),\n(1478, 13138),\n(1484, 15186),\n(1502, 23853),\n(1502, 24401),\n(1510, 49999),\n(1536, 19774),\n(1536, 19779),\n(1536, 20188),\n(1544, 31457),\n(1547, 13133),\n(1576, 36271),\n(1576, 36289),\n(1601, 14411),\n(1601, 14421),\n(1610, 36927),\n(1610, 37172),\n(1610, 37297),\n(1612, 60507),\n(1612, 61029),\n(1612, 61123),\n(1625, 48808),\n(1625, 48966),\n(1633, 49269),\n(1633, 49282),\n(1633, 49284),\n(1643, 46958),\n(1643, 47249),\n(1648, 38502),\n(1650, 21369),\n(1650, 22232),\n(1668, 9724),\n(1668, 9736),\n(1668, 10175),\n(1669, 30318),\n(1669, 30738),\n(1675, 60510),\n(1675, 60738),\n(1675, 61127),\n(1720, 32147),\n(1720, 32636),\n(1728, 48052),\n(1728, 48105),\n(1728, 48690),\n(1739, 31159),\n(1739, 31173),\n(1741, 33768),\n(1741, 33824),\n(1743, 6962),\n(1760, 37694),\n(1760, 38598),\n(1781, 32192),\n(1795, 45316),\n(1806, 21369),\n(1830, 35383),\n(1838, 47710),\n(1873, 19734),\n(1873, 19748),\n(1875, 24200),\n(1875, 24614),\n(1878, 60845),\n(1878, 61183),\n(1878, 61189),\n(1882, 12547),\n(1882, 12975),\n(1899, 63053),\n(1899, 63416),\n(1966, 10486),\n(1966, 11098),\n(1972, 52961),\n(1972, 53363),\n(1990, 38529),\n(1999, 47254),\n(2035, 34828),\n(2035, 34868),\n(2042, 59206),\n(2042, 59341),\n(2052, 61883),\n(2066, 10447),\n(2066, 11041)\n;\n \";\n return $query;\n}", "title": "" }, { "docid": "c47d0459e346ada85aaf37ee74e7db57", "score": "0.4404205", "text": "function msql_field_table($result, $field_offset){}", "title": "" }, { "docid": "b54adb760c26f6527f22a89f49b69aac", "score": "0.43994397", "text": "function listof_pos($table='pos'){\n\t$db= $GLOBALS['db'];\n\t$results= $db->query(\"SELECT * FROM $table\");\n\treturn $db->resToArray($results);\n}", "title": "" }, { "docid": "654e0021d7e621c1199414cbc4dcfda6", "score": "0.439816", "text": "function obtem_lista_fornecedor()\n {\n $strquery = \"select * from fornecedor order by nm_fornecedor\";\n $query = mysql_query($strquery,$this->bdcon);\n while($lin = mysql_fetch_array($query))\n $result[] = $lin;\n mysql_free_result($query);\n return $result; \n }", "title": "" }, { "docid": "045ed736d2462df8cc44c6559f49706e", "score": "0.43959644", "text": "function queryList($query){\n $rs = mysql_query($query); \n while($row = mysql_fetch_assoc($rs)){ \n \n if(sizeof(array_keys($row)) > 1){\n throw new Exception(\"The result set contains more than 1 field\"); \n } else {\n $keys = array_keys($row); \n $res[] = $row[$keys[0]]; \n } \n } \n return $res; \n}", "title": "" }, { "docid": "5453ce0075de8d7b3955d429b8c18356", "score": "0.43880254", "text": "protected function doQuery(){}", "title": "" }, { "docid": "5c89f5439f8969a7beb8a9c9b4cffc62", "score": "0.43875945", "text": "Public Function getSpatialSubUnits($TableName) {\r\n\r\n// $cnn = $dc->getDBConnection(\"Survey_Data\");\r\n\r\n// $selectStr = \"Select * from \" . $TableName . \";\";\r\n\r\n\r\n $results = array();\r\n\r\n $spatialSUAll = New SpatialSubUnits();\r\n $spatialSUAll->Name = \"All\";\r\n $results[] = ($spatialSUAll);\r\n\r\n if (DataAdapter::isTrustedTableName($TableName, \"Survey_Data\")) {\r\n $selectStr = \"Select * from \" . $TableName . \";\";\r\n\r\n $resultObjects = DataAdapter::DefaultPDOExecuteAndRead($selectStr, null, \"Survey_Data\");\r\n\r\n// $cmd = pg_query($cnn, $selectStr);\r\n\r\n\r\n// $DA = new DataAdapter();\r\n\r\n// $resultObjects = $DA->Read($cmd);\r\n\r\n ForEach ($resultObjects->resultObject as $DR ) {\r\n $spatialSU = New SpatialSubUnits();\r\n\r\n $spatialSU->Name = Trim($DR->Item[1]);\r\n $results[] = ($spatialSU);\r\n }\r\n }\r\n Return $results;\r\n\r\n }", "title": "" }, { "docid": "b6870e06539e162d0fc6074607c43c84", "score": "0.43846312", "text": "public function obtColEstadosRepDB(){\n $db = JFactory::getDbo();\n $tbl_sasfe_estados = $db->getPrefix().'sasfe_estados';\n\n $query = \"\n SELECT * FROM $tbl_sasfe_estados\n \";\n $db->setQuery($query);\n $db->query();\n $rows = $db->loadObjectList();\n\n return $rows;\n\n }", "title": "" } ]
0b6fa5be150967cf9f2f0886d67bfb29
Get only parameters alias.
[ { "docid": "f548aa48e80d5d6923600e4ab649650e", "score": "0.0", "text": "public function onlyAliases ( array $names ) : array\n { \n $output = [];\n \n foreach ( $names as $name )\n { $output[$name] = $this->getAlias($name); }\n \n return $output;\n }", "title": "" } ]
[ { "docid": "ffb21bdfae43dc5c5c4f2ebff0868e5d", "score": "0.6927879", "text": "public function aliases () : array\n { return array_values( $this->params ); }", "title": "" }, { "docid": "d94c776b101339d2d3ea65c23f646393", "score": "0.649756", "text": "public function getAlias ( string $name ) : string\n { \n $this->getOrFail($name);\n return $this->params[$name]; \n }", "title": "" }, { "docid": "13b2b77696592bb1a870fd58c7b59ee0", "score": "0.64843315", "text": "public function getNameByAlias ( string $alias ) : string\n { \n $found = array_search( $alias, $this->params );\n return empty( $found ) ? null : $found; \n }", "title": "" }, { "docid": "958fee4fd0b599ceff17a1b0c3d6db2a", "score": "0.6471818", "text": "protected function getParametersAliases()\n {\n return array_merge(parent::getParametersAliases(), array(\n \"member\" => GroupsService::PROPERTY_MEMBERS_URI\n ));\n }", "title": "" }, { "docid": "fb9105185b36461091100b9df8616b5f", "score": "0.6353388", "text": "public function getAlias();", "title": "" }, { "docid": "fb9105185b36461091100b9df8616b5f", "score": "0.6353388", "text": "public function getAlias();", "title": "" }, { "docid": "6cf704051051da614a692f147bb25785", "score": "0.6287155", "text": "abstract public function getAlias();", "title": "" }, { "docid": "0825109ae35a1fd2f62abd09385bef80", "score": "0.6282904", "text": "protected static function parameter($alias)\n {\n if (empty(static::$_params)) {\n static::$_params = static::$defaultParams;\n if (!empty(Yii::$app->langManager)) {\n if (isset(Yii::$app->langManager->params) && is_array(Yii::$app->langManager->params) ) {\n static::$_params = ArrayHelper::merge(static::$defaultParams, Yii::$app->langManager->params);\n }\n if (!empty(Yii::$app->langManager->langsConfigFname)) {\n static::$_params['langsConfigFname'] = Yii::$app->langManager->langsConfigFname;\n }\n }\n }\n return static::$_params[$alias];\n }", "title": "" }, { "docid": "438f48767095862538c4613258acd4ae", "score": "0.619814", "text": "public function getAlias(): string;", "title": "" }, { "docid": "438f48767095862538c4613258acd4ae", "score": "0.619814", "text": "public function getAlias(): string;", "title": "" }, { "docid": "438f48767095862538c4613258acd4ae", "score": "0.619814", "text": "public function getAlias(): string;", "title": "" }, { "docid": "438f48767095862538c4613258acd4ae", "score": "0.619814", "text": "public function getAlias(): string;", "title": "" }, { "docid": "438f48767095862538c4613258acd4ae", "score": "0.619814", "text": "public function getAlias(): string;", "title": "" }, { "docid": "274e984f09a1c60ea1f32200a3d56192", "score": "0.6123302", "text": "public function getAlias()\n\t{\n\t}", "title": "" }, { "docid": "cba6e3c029cec1f1b6f42784ad51b052", "score": "0.6099142", "text": "public function getAlias(): ?string;", "title": "" }, { "docid": "989d939e2ed9a90c164e5f530f98d995", "score": "0.60153717", "text": "final private function get_alias_for() {\n\t\t$args = func_get_args();\n\n\t\t$joined_args = implode(' ', $args);\n\n\t\t$lowered_joined_args = strtolower($joined_args);\n\n\t\t$cleaned_args = str_replace('*', 'all', $lowered_joined_args);\n\n\t\t$cleaned_non_words = preg_replace('/\\W/', ' ', $cleaned_args);\n\n\t\treturn preg_replace('/ /', '_', $cleaned_non_words);\n\t}", "title": "" }, { "docid": "9968d90e425cac8d9eef165a4b1d4e36", "score": "0.5994379", "text": "public function getAlias(): ?array\n\t{\n\t\treturn $this->alias;\n\t}", "title": "" }, { "docid": "d927dc14a4cf6b612d58b6b45e45e4dd", "score": "0.59902585", "text": "private function filterGetParameters($parameters) { return $parameters; }", "title": "" }, { "docid": "57976f87d14f089516fe97ad1608e0c2", "score": "0.5975596", "text": "public function getParametersPropertyName();", "title": "" }, { "docid": "c726e9936e31d680714690520dea1fdb", "score": "0.5937395", "text": "public function getAlias(): string|null;", "title": "" }, { "docid": "8135ad5f5d0199190ec37d305e255ada", "score": "0.58423585", "text": "public function getParameters(): string\n {\n return $this->Parameters;\n }", "title": "" }, { "docid": "8f239ffcf976650213b8418cd17697f4", "score": "0.56984955", "text": "private function createComplexParams( $alias ) {\n return array( \"alias\" => $alias );\n }", "title": "" }, { "docid": "d683b47cbb25f5df76ba5193c788c7cb", "score": "0.56820005", "text": "public function getAlias()\n {\n $value = $this->get(self::ALIAS);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "961d71791f4b1bafb198cd22f36814b4", "score": "0.5680319", "text": "public function getAlias(){\n\t\treturn $this->alias;\n\t}", "title": "" }, { "docid": "5e90bbac6d6fb9a1b96bf38962db74e8", "score": "0.56689435", "text": "public function getAlias(): string\n {\n\t\treturn $this->alias;\n\t}", "title": "" }, { "docid": "dba96ea1c179ff1b9fa85de948285294", "score": "0.56644744", "text": "public function getFromKeyAlias();", "title": "" }, { "docid": "463661914a432cbc392fb0b49907ae95", "score": "0.5651467", "text": "abstract public function getSeeParam(): array;", "title": "" }, { "docid": "8f28e1bf6faf7a88bcbc02e1248208c1", "score": "0.56501424", "text": "public function getAlias()\n\t{\n\t\treturn $this->alias;\n\t}", "title": "" }, { "docid": "055a44b1ef2d1df89ed64deb5bdf5454", "score": "0.5641287", "text": "public function get($alias);", "title": "" }, { "docid": "005e559ccc8930ce3899d407e3d81303", "score": "0.5634648", "text": "public function getAlias(): string\n {\n return $this->alias;\n }", "title": "" }, { "docid": "005e559ccc8930ce3899d407e3d81303", "score": "0.5634648", "text": "public function getAlias(): string\n {\n return $this->alias;\n }", "title": "" }, { "docid": "eb2ed4777df5916e386800a4c34d3c37", "score": "0.5622343", "text": "public function getParameterName() : string;", "title": "" }, { "docid": "e1709d5887c9cdde5dddbe6a4cb2dedb", "score": "0.56214285", "text": "public function getAlias(){\n return $this->alias;\n }", "title": "" }, { "docid": "d14b51cd3c2580288318a2bfa12cf3e7", "score": "0.5611098", "text": "public function getAlias()\n {\n return $this->alias;\n }", "title": "" }, { "docid": "d14b51cd3c2580288318a2bfa12cf3e7", "score": "0.5611098", "text": "public function getAlias()\n {\n return $this->alias;\n }", "title": "" }, { "docid": "afbca05fbb199e41d6e82dbc6f0f5ce5", "score": "0.5610884", "text": "public function getMappingPermission(string $aliasPermission): string;", "title": "" }, { "docid": "805b7f7874109075ec6c5e67e6ae0e31", "score": "0.56032085", "text": "public function GetAlias()\n\t{\n\t\treturn $this->alias;\n\t}", "title": "" }, { "docid": "16897aca2cb38d0833094374f16e8290", "score": "0.55813473", "text": "public function getAliasList();", "title": "" }, { "docid": "9b784da473d433787c7817e082a0ddb6", "score": "0.55672675", "text": "public function getAlias(){\n return $this->_alias;\n }", "title": "" }, { "docid": "1f109a9ea1c89a27aad0559b4226f0f0", "score": "0.5557944", "text": "public function getAlias($aliasName);", "title": "" }, { "docid": "47031d9750210afeea8ccd0a56764e3a", "score": "0.5546046", "text": "private function getUriParametersAsGetVariables()\n {\n }", "title": "" }, { "docid": "51600c475247e3e980d6dcb52abf95bb", "score": "0.55409044", "text": "final public function alias(): string\n {\n return $this->alias;\n }", "title": "" }, { "docid": "f0e9ed671b4263ee60baf42b57470733", "score": "0.5521461", "text": "public function getAliases();", "title": "" }, { "docid": "f0e9ed671b4263ee60baf42b57470733", "score": "0.5521461", "text": "public function getAliases();", "title": "" }, { "docid": "f0e9ed671b4263ee60baf42b57470733", "score": "0.5521461", "text": "public function getAliases();", "title": "" }, { "docid": "9206bcf413ff0d81480258991d51d061", "score": "0.55038035", "text": "public function getAlias() : string\n {\n return $this->alias;\n }", "title": "" }, { "docid": "431a4ce9d347a7d9ea1d890c2fcde139", "score": "0.5498661", "text": "final public function getParams() {}", "title": "" }, { "docid": "4a3a63474b598879f5c8b010b506598f", "score": "0.548229", "text": "public function alias(): string\n {\n return $this->alias;\n }", "title": "" }, { "docid": "e190e3b9e4ed6ac678e017bf28311286", "score": "0.53950113", "text": "public function names () : array\n { return array_keys( $this->params ); }", "title": "" }, { "docid": "4bcd8d1bcb6e4b03b3b26e998d8eb8d4", "score": "0.5385331", "text": "public function params() {\n\t\treturn $this->getset('params', func_get_args());\n\t}", "title": "" }, { "docid": "883962cbc79fa311d7cf149ebf16b477", "score": "0.53737575", "text": "public function getParams ();", "title": "" }, { "docid": "b135bf2ed1dc3bdc9b9846b535635370", "score": "0.5373154", "text": "public function getParam($name);", "title": "" }, { "docid": "b135bf2ed1dc3bdc9b9846b535635370", "score": "0.5373154", "text": "public function getParam($name);", "title": "" }, { "docid": "87fe6d72714993a5900cfe2f56c0c8f3", "score": "0.53569907", "text": "public function getAliases() : array;", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "befea988d37993e4148e49a726c888a7", "score": "0.53481066", "text": "public function getParameters();", "title": "" }, { "docid": "f7b0d629983a1cdb20ae7fc9673ba76c", "score": "0.5347942", "text": "public function getRelated($alias, $arguments=null){ }", "title": "" }, { "docid": "c63452e4fab05b959fe4badbed512755", "score": "0.5346831", "text": "public function getAlias($alias)\r\n {\r\n return array_key_exists($alias, $this->aliases) ? $this->aliases[$alias] : null;\r\n }", "title": "" }, { "docid": "f9c0a22eb8334a06aec2db26c1d6b01e", "score": "0.5334061", "text": "public function getParameters(): array;", "title": "" }, { "docid": "883a1c1fcbbd31682c2ee1bd16ebe82e", "score": "0.53237844", "text": "final public function getParam($param_name) {}", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "8c5cf94a9dbc90a63d98236edc80a1b6", "score": "0.53091604", "text": "public function getParams();", "title": "" }, { "docid": "d6a4520d7b5b34ede38a0d82d33cd2b8", "score": "0.5309117", "text": "function getMemberName($params)\n{\n extract($params);\n return Galette\\Entity\\Adherent::getSName($id);\n}", "title": "" }, { "docid": "e33506a6e7c0cf43c945dd2f3ff8bece", "score": "0.52978706", "text": "private function extractParameterData()\n {\n $name = $this->reflection->name;\n if (!preg_match(\n \"#@param\\s+(.*?)\\s+\\\\$$name(.*?)@#ms\",\n \"{$this->fallback}@\",\n $matches\n )) {\n return null;\n }\n $types = explode('|', $matches[1]);\n return $types[0];\n }", "title": "" }, { "docid": "8a18c0eed93917abf60257c31c7ef4c0", "score": "0.5293922", "text": "public function getAliases(): array;", "title": "" }, { "docid": "8a18c0eed93917abf60257c31c7ef4c0", "score": "0.5293922", "text": "public function getAliases(): array;", "title": "" }, { "docid": "079b43a8cf6a5ec716dbde9c6612366f", "score": "0.5281587", "text": "public static function getParams() {}", "title": "" }, { "docid": "a1b692e3fe62fa7277f1cec49c94d841", "score": "0.5280093", "text": "public function getOwnerParams($params);", "title": "" }, { "docid": "e4925d21c494f419d67da1babb0fdf2c", "score": "0.52775055", "text": "public function param($name) {\n return $this->params[$name];\n }", "title": "" }, { "docid": "faf706f653bde1b6fd36b689f0941460", "score": "0.5271141", "text": "public function getAliasName()\n {\n return $this->aliasName;\n }", "title": "" }, { "docid": "fe723669a920fda94fed025234907d17", "score": "0.5262373", "text": "public function getQueryParameters();", "title": "" }, { "docid": "318b3833c2ad0cc9e51a63f33c9c4a30", "score": "0.52551156", "text": "public function getParametersList(){\n return $this->_get(2);\n }", "title": "" }, { "docid": "d69435b3627c24a8c40bfac6364eb8e3", "score": "0.52517635", "text": "public function getParamNames()\n {\n return [];\n }", "title": "" }, { "docid": "581a1e4037109addcce61a4df42e5793", "score": "0.5250219", "text": "public function getRootParameterId();", "title": "" }, { "docid": "540605461cc1b25016dc46cd52ef9a9a", "score": "0.5248095", "text": "public function& useParams() {\r\n\t\treturn $this->_param->useItems();\r\n\t}", "title": "" }, { "docid": "42463971417aab692ab42e3cbb6da233", "score": "0.5246626", "text": "public function getParams(){ }", "title": "" }, { "docid": "207090def56da92d61f945756efb0850", "score": "0.5222441", "text": "public static function paramNames();", "title": "" }, { "docid": "2b34b92f0112937a8988911186c79c82", "score": "0.52088195", "text": "public function getAlias()\n {\n return strtolower($this->alias);\n }", "title": "" }, { "docid": "c6bcb60140aa92a4bd52b3e9be4b7673", "score": "0.51974946", "text": "public function getDefaultAlias(): string|null;", "title": "" }, { "docid": "b66ff79fd55e3b574d1a3c7a4e8f007a", "score": "0.5197199", "text": "public function getParameters(){\n\t\treturn $this->_config[\"parameters\"];\n\t}", "title": "" }, { "docid": "7088fd5e87a4d540dd1015de5a59ddea", "score": "0.5182341", "text": "public function getParametersWithoutNulls();", "title": "" }, { "docid": "e62f39c035c9710aba3b1517f15b3f10", "score": "0.51790947", "text": "public function getParams(): array;", "title": "" }, { "docid": "7aa5fa38e8baf4eec497f58c07d0eb44", "score": "0.517676", "text": "public function getParameter();", "title": "" } ]
41f6118c319e07d177c15ab32f74fe74
Used to define fields to provide the TYPO3 site to index and number of items to index per run when adding or editing a task.
[ { "docid": "902792c22bb62606f825dfe4e9b8fb3d", "score": "0.54105085", "text": "public function getAdditionalFields(array &$taskInfo, $task, tx_scheduler_Module $schedulerModule) {\n $additionalFields = array();\n\n if ($schedulerModule->CMD == 'add') {\n $taskInfo['convertIndexLimit'] = 100;\n }\n\n if ($schedulerModule->CMD == 'edit') {\n $taskInfo['convertIndexLimit'] = $task->getConvertIndexLimit();\n }\n\n $additionalFields['convertIndexLimit'] = array(\n 'code' => '<input type=\"text\" name=\"tx_scheduler[convertIndexLimit]\" value=\"' . htmlspecialchars($taskInfo['convertIndexLimit']) . '\" />',\n 'label' => 'Number of addresses to index per run',\n 'cshKey' => '',\n 'cshLabel' => ''\n );\n\n return $additionalFields;\n }", "title": "" } ]
[ { "docid": "7d783dc1903d1a3849a10d971fca1670", "score": "0.59792", "text": "function tsearch_admin_settings() {\n // Collect some stats\n $sql = <<<SQL\nSELECT count(n.nid)\nFROM node AS n\nLEFT JOIN tsearch_node AS t ON (t.nid = n.nid)\nWHERE ((\n n.changed > t.updated\n )\n OR\n (\n t.updated IS NULL\n )\n);\nSQL;\n\n $remaining = db_result(db_query($sql));\n $total = db_result(db_query(\"SELECT count(nid) FROM {node}\"));\n\n $count = format_plural($remaining, 'There is 1 item left to index.', 'There are @count items left to index.');\n $percentage = ((int)min(100, 100 * ($total - $remaining) / max(1, $total))) .'%';\n $status = '<p><strong>'. t('%percentage of the site has been indexed.', array('%percentage' => $percentage)) .' '. $count .'</strong></p>';\n $form['status'] = array('#type' => 'fieldset', '#title' => t('Indexing status'));\n $form['status']['status'] = array('#value' => $status);\n $form['status']['wipe'] = array('#type' => 'submit', '#value' => t('Re-index site'));\n\n $items = drupal_map_assoc(array(10, 20, 50, 100, 200, 500));\n\n // Indexing throttle:\n $form['indexing_throttle'] = array('#type' => 'fieldset', '#title' => t('Indexing throttle'));\n $form['indexing_throttle']['tsearch_cron_limit'] = array('#type' => 'select', '#title' => t('Number of items to index per cron run'), '#default_value' => variable_get('tsearch_cron_limit', 100), '#options' => $items, '#description' => t('The maximum number of items indexed in each pass of a <a href=\"@cron\">cron maintenance task</a>. If necessary, reduce the number of items to prevent timeouts and memory errors while indexing.', array('@cron' => url('admin/reports/status'))));\n\n $form['#validate'] = array('tsearch_admin_settings_validate');\n\n // Per module settings\n $form = array_merge($form, module_invoke_all('tsearch', 'admin'));\n return system_settings_form($form);\n}", "title": "" }, { "docid": "3526d6a85877622912aa415d09e36338", "score": "0.5860977", "text": "public function fields(Request $request)\n {\n return [\n ID::make(__('ID'), 'id')\n ->sortable()\n ->canSee(function($request) {\n return $request->user()->isDeveloper();\n }),\n\n Text::make(__('Task Number'), 'tracking_code')\n ->exceptOnForms(),\n\n BelongsTo::make(__('Task Creator'), 'auth', User::class)\n ->exceptOnForms(),\n\n // Text::make(__('Task Type'), function() {\n // return forward_static_call([Nova::resourceForModel($this->taskable_type), 'singularLabel']);\n // })->onlyOnIndex(),\n\n Badge::make(__('Status'), 'marked_as')\n ->sortable()\n ->addTypes([ \n 'draft' => 'bg-60 text-90',\n 'accepted'=> 'bg-info-light text-success-dark'\n ])\n ->map([ \n 'published' => 'info',\n 'inprogress' => 'success',\n 'completed' => 'success',\n 'rejected' => 'danger',\n 'pending' => 'warning',\n ]),\n\n static::datetimeField(__('Created At'), 'created_at') \n ->exceptOnForms()\n ->sortable(),\n\n static::datetimeField(__('Updated At'), 'updated_at') \n ->onlyOnDetail(),\n\n BelongsTo::make(__('Higher Task'), 'task', static::class)\n ->withoutTrashed()\n ->nullable()\n ->sortable()\n ->canSee(function($request) {\n return $request->viaResource() == static::uriKey();\n }),\n\n MorphTo::make(__('Task Type'), 'taskable')\n ->types(Helper::taskableResources()->all())\n ->showCreateRelationButton()\n ->withoutTrashed()\n // ->hideFromIndex()\n ->required()\n ->rules('required'),\n\n MorphTo::make(__('Member'), 'member')\n ->types([User::class, Team::class])\n ->showCreateRelationButton()\n ->withoutTrashed() \n ->required()\n ->rules('required'),\n\n BelongsTo::make(__('Task Priority'), 'priority', Priority::class)\n ->showCreateRelationButton()\n ->withoutTrashed()\n ->sortable()\n ->required()\n ->rules('required'),\n\n VoiceRecorder::make(__('Voice'), 'voice'),\n\n Trix::make(__('Task Note'), 'note')\n ->withFiles('public')\n ->help(__('Write something if need to describe the working')),\n\n Boolean::make(__('Publish Task'), 'marked_as')\n ->onlyOnForms()\n ->hideWhenUpdating()\n ->default(true)\n ->fillUSing(function($request, $model, $attribute) {\n if(boolval($request->get($attribute))) {\n $model->asPublished();\n }\n }),\n\n Board::make(__('Activities'), [ \n EventHistory::make()\n ->actionResource(Activity::class)\n ->only(static::class)\n ->onlyOnDetail(),\n ]), \n\n // HasMany::make(__('Activities'), 'activities', Activity::class),\n\n HasMany::make(__('Tasks'), 'tasks', static::class)->canSee(function($request) {\n return $request->viaResource() == static::uriKey();\n }),\n ];\n }", "title": "" }, { "docid": "54c6e4a6702b4b501195f69937d816eb", "score": "0.5671199", "text": "public function fields()\n {\n return [\n Text::make('更新站点内容数量(同步自哈希云)', 'sync_count'),\n Select::make('推送URL类型', 'type')->options([\n 'movie' => '长视频',\n 'video' => '短视频',\n 'article' => '文章',\n ]),\n Text::make('推送URL数量(100的倍数)', 'submit_count'),\n ];\n }", "title": "" }, { "docid": "f76ffbc612666f653224a49a28e55009", "score": "0.5597432", "text": "public function getCMSFields()\r\n {\r\n $fields = parent::getCMSFields();\r\n $fields->addFieldToTab('Root.Main', TextField::create('Task','Task to be completed'),'Content');\r\n $fields->addFieldToTab('Root.Main', DateField::create('Deadline','Task is due by'),'Content');\r\n $fields->addFieldToTab('Root.Main', TextField::create('Dog','Dog name'),'Content');\r\n $fields->addFieldToTab('Root.Main', TextField::create('Volunteer','Volunteer name'),'Content');\r\n $fields->addFieldToTab('Root.Main', TextareaField::create('Details')\r\n ->setDescription('This is a summary of important information about the task.'),\r\n 'Content'\r\n );\r\n\r\n return $fields;\r\n }", "title": "" }, { "docid": "03905a467fb5ccd5338cacf998254343", "score": "0.5474977", "text": "public function fieldsForIndex(Request $request)\n { \n return array_merge(parent::fields($request), [ \n BelongsToMany::make(__('Working For'), 'agencies', Agency::class),\n ]);\n }", "title": "" }, { "docid": "ea32a1155e6f178b4f83cb46d321bfa9", "score": "0.54565144", "text": "public function setTodoFieldsForExport()\n\t{\n\t\t$keysToReplace = ['taskpriority', 'activitystatus'];\n\t\t$keysValuesToReplace = ['taskpriority' => 'priority', 'activitystatus' => 'status'];\n\t\tforeach ($this->getFields() as $fieldName => $fieldModel) {\n\t\t\tif ($fieldModel->getPermissions()) {\n\t\t\t\tif (!\\in_array($fieldName, $keysToReplace)) {\n\t\t\t\t\t$todoFields[$fieldName] = 'yes';\n\t\t\t\t} else {\n\t\t\t\t\t$todoFields[$keysValuesToReplace[$fieldName]] = 'yes';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->set('todoFields', $todoFields);\n\t}", "title": "" }, { "docid": "44ba09f2460ac7478132ce53e81ad7ba", "score": "0.5422202", "text": "public function setup_fields() {\n\t\t$this->add_settings_field( [\n\t\t\t'name' => 'wpjm_job_base_slug',\n\t\t\t'label' => __( 'Listing base', 'my-listing' ),\n\t\t\t'value' => $this->permalinks['job_base'],\n\t\t\t'placeholder' => 'listing',\n\t\t\t'after' => $this->listing_type_permalink_docs(),\n\t\t] );\n\n\t\t$this->add_settings_field( [\n\t\t\t'name' => 'wpjm_job_category_slug',\n\t\t\t'label' => __( 'Category base', 'my-listing' ),\n\t\t\t'value' => $this->permalinks['category_base'],\n\t\t\t'placeholder' => 'category',\n\t\t] );\n\n\t\t$this->add_settings_field( [\n\t\t\t'name' => 'ml_region_slug',\n\t\t\t'label' => __( 'Region base', 'my-listing' ),\n\t\t\t'value' => $this->permalinks['region_base'],\n\t\t\t'placeholder' => 'region',\n\t\t] );\n\n\t\t$this->add_settings_field( [\n\t\t\t'name' => 'ml_tag_slug',\n\t\t\t'label' => __( 'Tag base', 'my-listing' ),\n\t\t\t'value' => $this->permalinks['tag_base'],\n\t\t\t'placeholder' => 'tag',\n\t\t] );\n\t}", "title": "" }, { "docid": "7b8926e6ac32afecdf86cbc5f6949080", "score": "0.5400496", "text": "function _erpal_projects_service_task_index($start = 0, $count = PHP_INT_MAX, $changed_since = 0, $details = false, $project = -1, $user = -1) {\n module_load_include('inc', 'erpal_projects_helper', 'inc/tasks');\n $query = new EntityFieldQuery();\n $query->entityCondition('entity_type', 'node')\n ->propertyCondition('type', 'erpal_task')\n ->range((int) $start, (int) $count)\n ->propertyCondition('changed', (int) $changed_since, '>=');\n if ($project != -1) {\n $query->fieldCondition('field_project_ref', 'target_id', (int) $project, '=');\n }\n if ($user != -1) {\n $query->fieldCondition('field_task_assigned_users', 'target_id', (int) $user, '=');\n }\n\n $entities = $query->execute();\n\n $tasks_out = array();\n\n if (!empty($entities['node'])) {\n //prepare for output!\n foreach (array_keys($entities['node']) as $nid) {\n $tasks_out[] = _erpal_projects_service_task_out($nid, $details);\n }\n }\n\n return $tasks_out;\n}", "title": "" }, { "docid": "82637dd70156afa5d918098a13514165", "score": "0.5397296", "text": "public function getIndexField() {\n\t\treturn 'templates.tmp_id';\n\t}", "title": "" }, { "docid": "73cbc8fabd47bba8415e05675398cef4", "score": "0.53876567", "text": "public function getAdditionalFields(array &$taskInfo, $task, \\TYPO3\\CMS\\Scheduler\\Controller\\SchedulerModuleController $schedulerModule) {\n\t\t/** @var \\DmitryDulepov\\DdGooglesitemap\\Scheduler\\Task $task */\n\t\t$additionalFields = array();\n\n\t\tif (!$task) {\n\t\t\t$url = GeneralUtility::locationHeaderUrl('/index.php?eID=dd_googlesitemap');\n\t\t\t$task = GeneralUtility::makeInstance('DmitryDulepov\\\\DdGooglesitemap\\\\Scheduler\\\\Task');\n\t\t}\n\t\telse {\n\t\t\t$url = $task->getEIdScriptUrl();\n\t\t}\n\t\t$indexFilePath = $task->getIndexFilePath();\n\t\t$maxUrlsPerSitemap = $task->getMaxUrlsPerSitemap();\n\n\t\t$additionalFields['eIdUrl'] = array(\n\t\t\t'code' => '<textarea style=\"width:350px;height:200px\" name=\"tx_scheduler[eIdUrl]\" wrap=\"off\">' . htmlspecialchars($url) . '</textarea>',\n\t\t\t'label' => 'LLL:EXT:dd_googlesitemap/locallang.xml:scheduler.eIDFieldLabel',\n\t\t\t'cshKey' => '',\n\t\t\t'cshLabel' => ''\n\t\t);\n\t\t$additionalFields['indexFilePath'] = array(\n\t\t\t'code' => '<input class=\"wide\" type=\"text\" name=\"tx_scheduler[indexFilePath]\" value=\"' . htmlspecialchars($indexFilePath) . '\" />',\n\t\t\t'label' => 'LLL:EXT:dd_googlesitemap/locallang.xml:scheduler.indexFieldLabel',\n\t\t\t'cshKey' => '',\n\t\t\t'cshLabel' => ''\n\t\t);\n\t\t$additionalFields['maxUrlsPerSitemap'] = array(\n\t\t\t'code' => '<input type=\"text\" name=\"tx_scheduler[maxUrlsPerSitemap]\" value=\"' . $maxUrlsPerSitemap . '\" />',\n\t\t\t'label' => 'LLL:EXT:dd_googlesitemap/locallang.xml:scheduler.maxUrlsPerSitemapLabel',\n\t\t\t'cshKey' => '',\n\t\t\t'cshLabel' => ''\n\t\t);\n\n\t\treturn $additionalFields;\n\t}", "title": "" }, { "docid": "db0779731a276a501343a8dbd56b6b70", "score": "0.536339", "text": "public function saveAdditionalFields(array $submittedData, tx_scheduler_Task $task) {\n $task->setConvertIndexLimit($submittedData['convertIndexLimit']);\n }", "title": "" }, { "docid": "807e47c811691f4e91ada76213d0d5b7", "score": "0.53419816", "text": "public function getProjectNotEditabeFields()\n\t{\n\t\treturn ['sum_time'];\n\t}", "title": "" }, { "docid": "c9d7f76ea96e1c0d0c9158df5543be93", "score": "0.5340563", "text": "private function setQueryFields()\n {\n $this->queryFields['searchTerms'] = $this->template->getSearchTerms();\n\n if (!is_null($this->template->getStartPage())) {\n $this->queryFields['startPage'] = $this->template->getStartPage();\n }\n\n if (!is_null($this->template->getCount())) {\n $this->queryFields['count'] = $this->template->getCount();\n }\n\n if (!is_null($this->template->getStartIndex())) {\n $this->queryFields['startIndex'] = $this->template->getStartIndex();\n }\n\n if (!is_null($this->template->getLanguage())) {\n $this->queryFields['language'] = $this->template->getLanguage();\n }\n\n if (!is_null($this->template->getInputEncoding())) {\n $this->queryFields['inputEncoding'] = $this->template->getInputEncoding();\n }\n\n if (!is_null($this->template->getOutputEncoding())) {\n $this->queryFields['outputEncoding'] = $this->template->getOutputEncoding();\n }\n\n return $this;\n }", "title": "" }, { "docid": "1eec2d02e5bdd4ca7a84826cc1f5ca0f", "score": "0.5290082", "text": "protected function AddFields()\n\t\t{\n\t\t}", "title": "" }, { "docid": "22027c8d78f736adde6d18540d95f9f5", "score": "0.5272515", "text": "function getCMSFields() {\n $f = parent::getCMSFields();\n $f->addFieldToTab( 'Root.Objectives', new HTMLEditorField(\"KeyObjectives\") );\n $f->addFieldToTab( 'Root.Objectives', new HTMLEditorField(\"AssumedKnow\") );\n $f->addFieldToTab( 'Root.MainCase', new HTMLEditorField(\"MainCase\") );\n\n $LectureGridConfig = GridFieldConfig_RelationEditor::create();\n $LectureGrid = new GridField('Lecture','Lectures', $this->Lectures(), $LectureGridConfig);\n $f->addFieldToTab( 'Root.Lectures', $LectureGrid );\n\n $ReadingGridConfig = GridFieldConfig_RelationEditor::create();\n $ReadingGrid = new GridField('Reading','Readings', $this->Readings(), $ReadingGridConfig);\n $f->addFieldToTab( 'Root.Readings', $ReadingGrid );\n\n $AddCasesGridConfig = GridFieldConfig_RelationEditor::create();\n $AddCasesGrid = new GridField('Cases','Cases', $this->Cases(), $AddCasesGridConfig);\n $f->addFieldToTab( 'Root.Cases', $AddCasesGrid );\n\n $NotesGridConfig = GridFieldConfig_RelationEditor::create();\n $NotesGrid = new GridField('Note','Notes', $this->Notes(), $NotesGridConfig);\n $f->addFieldToTab( 'Root.Notes', $NotesGrid );\n\n $QuizQuestionsGridConfig = GridFieldConfig_RelationEditor::create();\n $QuizQuestionsGrid = new GridField('QuizQuestions', 'QuizQuestions', $this->QuizQuestions(), $QuizQuestionsGridConfig) ;\n $f->addFieldToTab( 'Root.QuizQuestions', $QuizQuestionsGrid );\n\n return $f;\n }", "title": "" }, { "docid": "15120a6875b874b26b77d89ac47409a8", "score": "0.5272118", "text": "public static function fieldsSystem()\n {\n return ['page', 'pageSize', 'debug'];\n }", "title": "" }, { "docid": "51f8d151a291827df99c04b6edc11948", "score": "0.52707535", "text": "protected function AssignPageTypeFields() {\n $this->AddField('groupid', self::DT_FK); // FK to guestbook table\n $this->AddField('cancomment', self::DT_BOOLEAN, true);\n $this->AddField('registervisitors', self::DT_BOOLEAN, true);\n// $this->AddField('hascomments', DT_BOOLEAN);\n }", "title": "" }, { "docid": "a68647f31e7331f158671b8750ab19ed", "score": "0.52628124", "text": "public function instance_fields() { \n\n\t\t$fields['name'] \t= array('description'=>_('Instance Name'),'type'=>'textbox'); \n\t\t$fields['pid'] \t\t= array('description'=>_('PID File'),'type'=>'textbox'); \n\t\t$fields['playlist']\t= array('description'=>_('Playlist File'),'type'=>'textbox'); \n\t\t$fields['local_root']\t= array('description'=>_('Local Path to Files'),'type'=>'textbox'); \n\n\t\treturn $fields; \n\n\t}", "title": "" }, { "docid": "17291cdaf4655eb04729ff7b90c1a6f4", "score": "0.5220459", "text": "function _run_batch_entity_create_fields() {\n $entity_info = array(\n 'entity_type' => 'taxonomy_term', // 'node', 'taxonomy_term', 'user'\n 'bundle' => 'company',\n );\n\n $fields = _entity_fields_info();\n foreach ($fields as $field) {\n _entity_create_fields_save($entity_info, $field);\n }\n}", "title": "" }, { "docid": "dcd3ebfc88648b6c5f93ca261ca07c62", "score": "0.5213007", "text": "function _addMetadataFields()\n {\n $factory = \\NDB_Factory::singleton();\n $config = $factory->config();\n $dateOptions = array(\n 'language' => 'en',\n 'format' => 'YMd',\n 'minYear' => $config->getSetting('startYear'),\n 'maxYear' => $config->getSetting('endYear'),\n 'addEmptyOption' => true,\n 'emptyOptionValue' => null,\n );\n $this->dateOptions = $dateOptions;\n $this->addBasicDate('Date_taken', $this->indent.'Date of Administration', $dateOptions);\n //if (strrpos($this->testName, '_proband') === false) {\n // $this->addScoreColumn(\n // 'Candidate_Age',\n // 'Candidate Age (Months)',\n // 'Please enter date of administration and press Save'\n // );\n // $this->addScoreColumn(\n // 'Window_Difference',\n // 'Window Difference (+/- Days)',\n // 'Please enter date of administration and press Save'\n // );\n //}\n $examiners = $this->_getExaminerNames();\n $this->addSelect('Examiner', $this->indent.'Examiner', $examiners);\n $this->addRule(\n 'Date_taken',\n 'Date of Administration is required',\n 'required'\n );\n $this->addRule('Examiner', 'Examiner is required', 'required');\n\n }", "title": "" }, { "docid": "eb6e32982b1e09662e947d58c7db2bc4", "score": "0.5206751", "text": "protected function define()\n {\n $this->setDefaultConfigurationValue(\n self::OPTION_RETENTION_PERIOD,\n self::RETENTION_ONE_WEEK\n );\n $task = new DQualifiedNameField(self::FIELD_TASK, 'Task');\n $task->setAncestors(array(DTask::class));\n $this->addField($task);\n $action = new DEnumField('action', 'Action');\n $action->setValues(self::getActions());\n $this->addField($action);\n }", "title": "" }, { "docid": "6474ac6142606e757ec20f4f633f9775", "score": "0.5193367", "text": "public function getAdditionalFields(array &$taskInfo, $task, tx_scheduler_Module $parentObject) {\n\n\t\t\t// Initialize extra field value\n\t\tif (empty($taskInfo[self::$fieldName])) {\n\t\t\tif ($parentObject->CMD == 'add') {\n\t\t\t\t$taskInfo[self::$fieldName] = 'all';\n\t\t\t} elseif ($parentObject->CMD == 'edit') {\n\t\t\t\t\t// In case of edit, set to internal value if no data was submitted already\n\t\t\t\t$taskInfo[self::$fieldName] = $task->table . '/' . $task->index;\n\t\t\t}\n\t\t}\n\n\t\t\t// Write the code for the field\n\t\t$fieldID = 'task_' . self::$fieldName;\n\t\t$fieldCode = '<select name=\"tx_scheduler[' . self::$fieldName . ']\" id=\"' . $fieldID . '\">';\n\t\t$selected = '';\n\t\tif ($taskInfo[self::$fieldName] == 'all') {\n\t\t\t$selected = ' selected=\"selected\"';\n\t\t}\n\t\t$fieldCode .= '<option value=\"all\"' . $selected . '>' . $GLOBALS['LANG']->sL('LLL:EXT:external_import/locallang.xml:all') . '</option>';\n\t\t\t// Loop on the TCA of all tables to find those with an external import configuration\n\t\tforeach ($GLOBALS['TCA'] as $tableName => $sections) {\n\t\t\tif (isset($sections['ctrl']['external'])) {\n\t\t\t\t$externalData = $sections['ctrl']['external'];\n\t\t\t\tforeach ($externalData as $index => $externalConfig) {\n\t\t\t\t\t\t// Take only synchronized tables\n\t\t\t\t\tif (!empty($externalConfig['connector'])) {\n\t\t\t\t\t\t$code = $tableName . '/' . $index;\n\t\t\t\t\t\t$selected = '';\n\t\t\t\t\t\tif ($taskInfo[self::$fieldName] == $code) {\n\t\t\t\t\t\t\t$selected = ' selected=\"selected\"';\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$label = $GLOBALS['LANG']->sL('LLL:EXT:external_import/locallang.xml:table') . ': ' . $tableName;\n\t\t\t\t\t\t$label .= ', ' . $GLOBALS['LANG']->sL('LLL:EXT:external_import/locallang.xml:index') . ': ' . $index;\n\t\t\t\t\t\t$fieldCode .= '<option value=\"' . $code . '\"' . $selected . '>' . $label . '</option>';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$fieldCode .= '</select>';\n\t\t$additionalFields = array();\n\t\t$additionalFields[$fieldID] = array(\n\t\t\t'code' => $fieldCode,\n\t\t\t'label' => 'LLL:EXT:external_import/locallang.xml:field.' . self::$fieldName,\n\t\t\t'cshKey' => '_MOD_user_txexternalimportM1',\n\t\t\t'cshLabel' => $fieldID\n\t\t);\n\n\t\treturn $additionalFields;\n\t}", "title": "" }, { "docid": "6b44ff85313b9a9771cd2697f2539f47", "score": "0.5178062", "text": "function so_listings_field_info() {\n return array(\n 'listing_type' => array(\n 'label' => \"Listing\",\n 'description' => t(\"Display a predefined listing of nodes.\"),\n 'default_widget' => 'listing_widget',\n 'default_formatter' => 'listing_formatter',\n 'instance_settings' => array(),\n ),\n );\n}", "title": "" }, { "docid": "42bd5fd66f4fd8884d37fcea2b86aeba", "score": "0.5174492", "text": "public function fields() {\n\t\treturn [\n\t\t\t'id' => [\n\t\t\t\t'type' => Type::nonNull(Type::int()),\n\t\t\t\t'description' => 'The id of the site'\n\t\t\t],\n\t\t\t'name' => [\n\t\t\t\t'type' => Type::string(),\n\t\t\t\t'description' => 'The name of the site'\n\t\t\t],\n\t\t\t'url' => [\n\t\t\t\t'type' => Type::string(),\n\t\t\t\t'description' => 'The url of the site'\n\t\t\t],\n\t\t\t'notes' => [\n\t\t\t\t'type' => Type::string(),\n\t\t\t\t'description' => 'The notes for this site'\n\t\t\t],\n\t\t\t'created_at' => [\n\t\t\t\t'type' => Type::string(),\n\t\t\t\t'description' => 'The date created'\n\t\t\t],\n\t\t\t'updated_at' => [\n\t\t\t\t'type' => Type::string(),\n\t\t\t\t'description' => 'The date last updated'\n\t\t\t],\n\t\t\t'deleted_at' => [\n\t\t\t\t'type' => Type::string(),\n\t\t\t\t'description' => 'The date deleted'\n\t\t\t],\n\t\t\t'client' => [\n\t\t\t\t'type' => GraphQL::type('Client'),\n\t\t\t\t'description' => 'The client for this site'\n\t\t\t],\n\t\t\t'logins' => [\n\t\t\t\t'type' => Type::listOf(GraphQL::type('Login')),\n\t\t\t\t'description' => 'A list of logins for this site'\n\t\t\t]\n\t\t];\n\t}", "title": "" }, { "docid": "c89a651bf280f49747b987497c2bfe7a", "score": "0.51671594", "text": "public function fields()\n {\n return [\n Number::make('Start position', 'start_position'),\n //Text::make('Amount')->withMeta(['type' => 'hidden', 'value'=> 100])->onlyOnForms()\n ];\n }", "title": "" }, { "docid": "a963de23730199a190c2f561c70c9c07", "score": "0.5147039", "text": "public function define()\n {\n \n $this->name_task='Change quota of mailbox';\n \n $this->description_task='Change quota of a mailbox';\n \n $this->codename_task='change_quota_mailbox';\n \n $this->one_time=0;\n \n //$this->version=__DIR__.'/version'; \n }", "title": "" }, { "docid": "9678469ed6a0072fba456960ab49b155", "score": "0.51436156", "text": "public function getAdditionalFields(array &$taskInfo, $task, \\TYPO3\\CMS\\Scheduler\\Controller\\SchedulerModuleController $schedulerModule) {\r\n\t\t\t$GLOBALS['LANG']->includeLLFile('EXT:extracache/Resources/Private/Language/locallang.xml');\r\n\r\n\t\tif (empty( $taskInfo['deleteEntriesOlderThanSeconds'])) {\r\n\t\t\tif ($schedulerModule->CMD == 'add') {\r\n\t\t\t\t$taskInfo['deleteEntriesOlderThanSeconds'] = 1800;\r\n\t\t\t} elseif ($schedulerModule->CMD == 'edit') {\r\n\t\t\t\t$taskInfo['deleteEntriesOlderThanSeconds'] = $task->deleteEntriesOlderThanSeconds;\r\n\t\t\t} else {\r\n\t\t\t\t$taskInfo['deleteEntriesOlderThanSeconds'] = '';\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (empty($taskInfo['detailLogInfo'])) {\r\n\t\t\tif ($schedulerModule->CMD == 'add') {\r\n\t\t\t\t$taskInfo['detailLogInfo'] = 1;\r\n\t\t\t} else {\r\n\t\t\t\t$taskInfo['detailLogInfo'] = $task->detailLogInfo;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (empty($taskInfo['logNoticeAsError'])) {\r\n\t\t\tif ($schedulerModule->CMD == 'add') {\r\n\t\t\t\t$taskInfo['logNoticeAsError'] = 1;\r\n\t\t\t} else {\r\n\t\t\t\t$taskInfo['logNoticeAsError'] = $task->logNoticeAsError;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Write the code for the fields\r\n\t\t$additionalFields = array();\r\n\t\t$fieldID = 'task_deleteEntriesOlderThanSeconds';\r\n\t\t$fieldCode = '<input type=\"number\" name=\"tx_scheduler[deleteEntriesOlderThanSeconds]\" id=\"' . $fieldID . '\" value=\"' . $taskInfo['deleteEntriesOlderThanSeconds'] . '\" size=\"6\" />';\r\n\t\t$additionalFields[$fieldID] = array(\r\n\t\t\t'code' => $fieldCode,\r\n\t\t\t'label' => $GLOBALS['LANG']->getLL('label_schedulerFieldDeleteEntriesOlderThanSeconds')\r\n\t\t);\r\n\r\n\t\t$fieldID = 'task_detailLogInfo';\r\n\t\t$fieldCode = '<input type=\"checkbox\" name=\"tx_scheduler[detailLogInfo]\" id=\"' . $fieldID . '\" '.(htmlspecialchars($taskInfo['detailLogInfo']) ? 'checked=\"checked\"' : '') . ' />';\r\n\t\t$additionalFields[$fieldID] = array(\r\n\t\t\t'code' => $fieldCode,\r\n\t\t\t'label' => $GLOBALS['LANG']->getLL('label_schedulerFieldDetailLogInfo')\r\n\t\t);\r\n\r\n\t\t$fieldID = 'task_logNoticeAsError';\r\n\t\t$fieldCode = '<input type=\"checkbox\" name=\"tx_scheduler[logNoticeAsError]\" id=\"' . $fieldID . '\" '.(htmlspecialchars($taskInfo['logNoticeAsError']) ? 'checked=\"checked\"' : '') . ' />';\r\n\t\t$additionalFields[$fieldID] = array(\r\n\t\t\t'code' => $fieldCode,\r\n\t\t\t'label' => $GLOBALS['LANG']->getLL('label_schedulerFieldLogNoticeAsError')\r\n\t\t);\r\n\r\n\t\treturn $additionalFields;\r\n\t}", "title": "" }, { "docid": "8afadf038c48c965ac88ead1d53b6c48", "score": "0.5128929", "text": "public function fields(Request $request)\n {\n return [\n Text::make('Description')\n ->help('Provide a descriptive name for your task')\n ->sortable()\n ->rules(['required']),\n\n Select::make('Command')\n ->help('Select an artisan command to schedule')\n ->hideFromIndex()\n ->options(Totem::getCommands()->map(function (Command $command) {\n return $command->getName().' - '.$command->getDescription();\n })->toArray())\n ->displayUsingLabels()\n ->rules(['required']),\n\n Text::make('Parameters')\n ->help('Command parameters required to run the selected command')\n ->hideFromIndex(),\n\n RadioButton::make('Type', 'type')\n ->options([\n 'cron' => ['Cron Expression' => 'Use a cron expression'],\n 'frequency' => ['Frequencies' => 'Use predefined frequencies. You can add/edit frequencies from details view'],\n ])\n ->stack()\n ->hideFromIndex()\n ->toggle([\n 'frequency' => ['expression'],\n ])\n ->default(! is_null($this->expression) ? 'cron' : 'frequency'),\n\n Text::make('Cron Expression', 'expression')\n ->help('Provide a descriptive name for your task')\n ->hideFromIndex()\n ->rules(['nullable', 'required_if:type,cron', new CronExpression]),\n\n Select::make('Timezone', 'tz')\n ->help('Select a timezone for your task. App timezone is selected by default')\n ->rules(['required'])\n ->hideFromIndex()\n ->options(array_combine(timezone_identifiers_list(), timezone_identifiers_list()))\n ->withMeta(['value' => date_default_timezone_get()])\n ->displayUsingLabels(),\n\n new Panel('Information', $this->informationFields()),\n new Panel('Notification Settings', $this->notificationsFields()),\n new Panel('Server Settings', $this->configurationFields()),\n new Panel('Old Results Cleanup', $this->cleanupFields()),\n\n HasMany::make('Frequencies')\n ->canSee(function () {\n return $this->type == 'frequency';\n }),\n HasMany::make('Results'),\n ];\n }", "title": "" }, { "docid": "27c8bc0d0b6cd8dbaa3163b9a83724d1", "score": "0.511581", "text": "public function set_fields() {\n\n\t\t$this->add_field( new acf_fields\\text( 'Heading', 'heading', '202001131516a', [\n\t\t\t'instructions' => 'Keep the heading concise and under 200 characters (including spaces).',\n\t\t\t'maxlength' => 200\n\t\t] ));\n\n\t\t$this->add_field( new acf_fields\\wysiwyg( 'Content', 'content', '202001131516b' ) );\n\n\n\t\t$this->add_field( new acf_fields\\text('Link URL', 'link_url', '202002061331a', [\n\t\t 'instructions' => 'External links: use the whole URL including https://. For example https://www.pensionwise.gov.uk/en. Internal links: use the part of the link after gov.uk. For example If you want to link to www.crowncommercial.gov.uk/agreements/RM1063 you would enter /agreements/RM1063'\n ]\n ) );\n\n\n $this->add_field( new acf_fields\\text('Link Text', 'link_text', '202002031711a', [\n 'instructions' => 'Add text for the link. If you do not enter any text it will show \\'Learn more\\'.'\n ]\n ) );\n\n\t}", "title": "" }, { "docid": "9e7166f6fa0302d4b6c8656cf01d9192", "score": "0.510533", "text": "protected function getFields()\n {\n return [\n 'title' => new Field('Project title', [\n 'optionName' => 'title',\n 'description' => 'The initial project title',\n 'default' => 'Untitled Project',\n ]),\n 'region' => new OptionsField('Region', [\n 'optionName' => 'region',\n 'description' => 'The region where the project will be hosted',\n 'options' => $this->getAvailableRegions(),\n ]),\n 'plan' => new OptionsField('Plan', [\n 'optionName' => 'plan',\n 'description' => 'The subscription plan',\n 'options' => $this->getAvailablePlans(),\n 'default' => in_array('development', $this->getAvailablePlans()) ? 'development' : null,\n ]),\n 'environments' => new Field('Environments', [\n 'optionName' => 'environments',\n 'description' => 'The number of environments',\n 'default' => 3,\n 'validator' => function ($value) {\n return is_numeric($value) && $value > 0 && $value < 50;\n },\n ]),\n 'storage' => new Field('Storage', [\n 'description' => 'The amount of storage per environment, in GiB',\n 'default' => 5,\n 'validator' => function ($value) {\n return is_numeric($value) && $value > 0 && $value < 1024;\n },\n ]),\n ];\n }", "title": "" }, { "docid": "1c08d6cc9fb8ed1e0b9d43b8b649b567", "score": "0.51024586", "text": "function getCMSFields() {\n $fields = parent::getCMSFields();\n \n // the date field is added in a bit more complex manner so it can have the dropdown date picker\n $SummaryField = new TextareaField('Summary','Quick summary:');\n $fields->addFieldToTab('Root.Main', $SummaryField, 'Content');\n \n return $fields;\n }", "title": "" }, { "docid": "808879ed28c16f16d82ed2557d753afe", "score": "0.5097188", "text": "public function testReportFields() {\n $this->drupalGet('admin/reports/fields/views-fields');\n $this->assertSession()->pageTextContains('Used in views');\n $this->assertSession()->pageTextContains('No fields have been used in views yet.');\n\n // Set up the field_test field.\n $field_storage = FieldStorageConfig::create([\n 'field_name' => 'field_test',\n 'type' => 'integer',\n 'entity_type' => 'entity_test',\n ]);\n $field_storage->save();\n\n $field = FieldConfig::create([\n 'field_name' => 'field_test',\n 'entity_type' => 'entity_test',\n 'bundle' => 'entity_test',\n ]);\n $field->save();\n\n // Assert that the newly created field appears in the overview.\n $this->drupalGet('admin/reports/fields/views-fields');\n $this->assertSession()->responseContains('<td>field_test</td>');\n $this->assertSession()->responseContains('>test_field_field_test</a>');\n $this->assertSession()->pageTextContains('Used in views');\n }", "title": "" }, { "docid": "704b1f18748d5063abbf0cba717f18c0", "score": "0.5089026", "text": "public function get_view_fields()\n {\n do {\n display ( \"Enter a field: ( name:data type:max length ) \\n\" );\n $field = get_input ();\n\n if ($field != 'n') {\n $x = explode ( \":\", $field );\n\n $this->_fields[ $x[ 0 ] ] = array( 'name' => $x[ 0 ],\n 'data_type' => $x[ 1 ],\n 'length' => $x[ 2 ] );\n }\n\n } while ( $field != 'n' );\n }", "title": "" }, { "docid": "ec98e788dda03a9d6057d6fd4e250420", "score": "0.50847197", "text": "protected function getIndexFieldViewName()\n {\n return ['pages.bundles.'.$this->object->name().'.indexFields', 'pages.bundles.indexFields'];\n }", "title": "" }, { "docid": "205c7e214a224fa0b079814d9997a933", "score": "0.50843793", "text": "public function fields(Request $request)\n {\n return [\n ID::make()->sortable(),\n Text::make('Title')->rules('required'),\n Text::make('Company')->rules('required'),\n Select::make('Type')->options(\\App\\Project::getTypes()),\n Textarea::make('Description', 'main_description')->rules('required'),\n Tags::make('Tags')->hideFromIndex(),\n Text::make('Role Title', 'role_title')->rules('required')->hideFromIndex(),\n Text::make('URL', 'url')->hideFromIndex(),\n Textarea::make('Role Description', 'role_description')->rules('required'),\n Number::make('Year')->rules('required'),\n Image::make('Tile Image')->nullable()->hideFromIndex(),\n Image::make('Logo Image')->nullable(),\n Image::make('Browser Image')->nullable()->hideFromIndex(),\n Image::make('Screen Image')->nullable()->hideFromIndex(),\n Repeater::make('Features')->addField([\n 'label' => 'Features',\n 'name' => 'features',\n 'type' => 'textarea',\n 'placeholder' => 'Enter a feature description',\n 'width' => 'w-full',\n ])->addButtonText('Add New Feature')->summaryLabel('Features')->hideFromIndex(),\n Repeater::make('Tech Specs', 'specs')->addField([\n 'label' => 'Specification',\n 'name' => 'specs',\n 'type' => 'textarea',\n 'placeholder' => 'Enter a technical specification',\n 'width' => 'w-full',\n ])->addButtonText('Add New Spec')->summaryLabel('Tech Specs')->hideFromIndex(),\n Repeater::make('Facts')->addField([\n 'label' => 'Fact',\n 'name' => 'fact',\n 'type' => 'textarea',\n 'placeholder' => 'Enter a fun fact',\n 'width' => 'w-full',\n ])->addButtonText('Add New Fact')->summaryLabel('Facts')->hideFromIndex(),\n ];\n }", "title": "" }, { "docid": "3502ff37db0d7e0bef598219e50ea19d", "score": "0.50831014", "text": "function bindextdata()\n\t{\n\t\t// Need to recheck post-installation / integrity tasks after,\n\t\t// this should NOT effect RAW HTTP requests, used by AJAX ITEM binding\n\t\t// JFactory::getSession()->set('flexicontent.recheck_aftersave', true);\n\n\t\t$bind_limit = $this->input->getInt('bind_limit', 25000);\n\n\t\t// Make sure bind limit is sane\n\t\tif ($bind_limit < 1 || $bind_limit > 25000)\n\t\t{\n\t\t\t$bind_limit = 25000;\n\t\t}\n\n\t\t$model = $this->getModel($this->record_name_pl);\n\t\t$rows = $model->getUnboundedItems($bind_limit, $count_only = false, $checkNoExtData = true, $checkInvalidCat = false, $noCache = true);\n\t\t$model->bindExtData($rows);\n\t\tjexit();\n\t}", "title": "" }, { "docid": "237de3f6eae21fbb4da27b14ac7b83fc", "score": "0.50506645", "text": "public function saveAdditionalFields(array $submittedData, tx_scheduler_Task $task) {\n\t\tif ($submittedData[self::$fieldName] == 'all') {\n\t\t\t$task->table = 'all';\n\t\t\t$task->index = 0;\n\t\t} else {\n\t\t\tlist($table, $index) = explode('/', $submittedData[self::$fieldName]);\n\t\t\t$task->table = $table;\n\t\t\t$task->index = $index;\n\t\t}\n\t}", "title": "" }, { "docid": "77d4873ffba80d190a23297fd98ead82", "score": "0.5047335", "text": "public function fields();", "title": "" }, { "docid": "e4258871f39bb3d2d7e8225c006ea313", "score": "0.50456136", "text": "public function add_field() {\n\t\t$this->register();\n\t\tadd_settings_field(\n\t\t\t$this->name . '_order',\n\t\t\t$this->title,\n\t\t\tarray( $this, 'html_order' ),\n\t\t\t$this->page,\n\t\t\t$this->section\n\t\t);\n\t\tadd_settings_field( $this->name . '_by', '', array( $this, 'html' ), $this->page, $this->section );\n\t}", "title": "" }, { "docid": "da7118f7abb49cd2bba63e6c447cd4d8", "score": "0.5039662", "text": "public static function getFields() {\n return array(\n 'title' => 'Titre',\n 'description' => 'Description'\n );\n }", "title": "" }, { "docid": "b4bc0b166752cb3b3e22e367c744e935", "score": "0.5034553", "text": "function PMA_getNumberOfFieldsForForm($index)\n{\n if (isset($_REQUEST['index']) && is_array($_REQUEST['index'])) {\n // coming already from form\n $add_fields\n = count($_REQUEST['index']['columns']['names'])\n - $index->getColumnCount();\n if (isset($_REQUEST['add_fields'])) {\n $add_fields += $_REQUEST['added_fields'];\n }\n } elseif (isset($_REQUEST['create_index'])) {\n $add_fields = $_REQUEST['added_fields'];\n } else {\n $add_fields = 1;\n }// end preparing form values\n\n return $add_fields;\n}", "title": "" }, { "docid": "5ab67fbec9146cc23b2c653be96f38ff", "score": "0.5030434", "text": "function civicrm_views_add_fields( &$fields, &$data, &$skipFields, $tableName ) {\n foreach ( $fields as $name => $value ) {\n if ( CRM_Utils_Array::value( $name, $skipFields ) ||\n substr( $value['where'], 0, strlen( $tableName ) + 1 ) != \"{$tableName}.\" ) {\n continue;\n }\n\n $data[$value['name']] = array(\n 'title' => $value['title'],\n 'help' => $value['title'],\n 'field' => array( \n 'handler' => civicrm_get_field_handler ( $value['type'] ),\n 'click sortable' => true,\n ),\n 'sort' => array(\n 'handler' => civicrm_get_sort_handler ( $value['type'] ),\n ),\n 'filter' => array(\n 'handler' => civicrm_get_filter_handler( $value['type'] ),\n ),\n );\n //For date fields add in 6 arguments\n if ( $value['type'] == 4 ){\n civicrm_views_add_date_arguments($data,$value);\n }\n }\n\n}", "title": "" }, { "docid": "e1b3c523c855be761a186c3d7a88f992", "score": "0.50285053", "text": "public function fieldConfig()\r\n {\r\n if (isset($_POST) && isset($_POST['add-pid']) && isset($_POST['add-token'])){\r\n $_SESSION['addProjectConfig'] = $_POST;\r\n }\r\n\r\n $this->set(array(\r\n 'title_for_layout' => 'Configure Fields'\r\n ));\r\n $this->render(\"field_config\");\r\n\r\n }", "title": "" }, { "docid": "2492f1fc569dbbe43f242c545ce81c91", "score": "0.50171787", "text": "public function __construct()\n {\n $this->setFields([\n 'not_yet_a_map' => new StringField,\n 'not_yet_unique' => new StringField,\n 'bulk_set_values' => new IntegerField,\n 'bulk_remove_values' => new IntegerField\n ]);\n }", "title": "" }, { "docid": "73687b5aa0bb8283d94a52d02d2838ba", "score": "0.50039524", "text": "private function addFieldsOnWebform() {\n $this->drupalLogin($this->rootUser);\n $this->drupalGet(Url::fromRoute('entity.webform.civicrm', [\n 'webform' => $this->webform->id(),\n ]));\n $this->enableCivicrmOnWebform();\n\n $this->getSession()->getPage()->clickLink('Activities');\n $this->getSession()->getPage()->selectFieldOption('activity_number_of_activity', 1);\n $this->assertSession()->assertWaitOnAjaxRequest();\n $this->htmlOutput();\n $this->getSession()->getPage()->selectFieldOption('Activity Type', '- User Select -');\n $this->assertSession()->assertWaitOnAjaxRequest();\n\n $this->saveCiviCRMSettings();\n $this->assertSession()->pageTextContains('Added 4 fields to the form');\n $this->assertSession()->pageTextContains('Added field: Existing Contact');\n $this->assertSession()->pageTextContains('Added field: First Name');\n $this->assertSession()->pageTextContains('Added field: Last Name');\n $this->assertSession()->pageTextContains('Added field: Activity Type');\n $this->assertSession()->pageTextContains('Saved CiviCRM settings');\n }", "title": "" }, { "docid": "43d9c598787c94a84046be6b9786bfaa", "score": "0.49996984", "text": "public function entry() {\n\n $arr_set = $this->opm->arr_settings;\n $arr_tmp = array();\n // Get value id\n $iditem = $this->get_id();\n if ($iditem == '')\n $iditem = $this->get_last_id();\n\n $this->set('iditem', $iditem);\n //Load record by id\n if ($iditem != '') {\n $arr_tmp = $this->opm->select_one(array('_id' => new MongoId($iditem)));\n foreach ($arr_set['field'] as $ks => $vls) {\n //pr($vls);\n foreach ($vls as $field => $values) {\n if (isset($arr_tmp[$field])) {\n $arr_set['field'][$ks][$field]['default'] = $arr_tmp[$field];\n if (preg_match(\"/_date$/\", $field) && is_object($arr_tmp[$field]))\n $arr_set['field'][$ks][$field]['default'] = date('m/d/Y', $arr_tmp[$field]->sec);\n if (in_array($field, $arr_set['title_field']))\n $item_title[$field] = $arr_tmp[$field];\n if ($field == 'contact_name' && isset($arr_tmp['contact_last_name'])) {\n $arr_set['field'][$ks][$field]['default'] = $arr_tmp[$field] . ' ' . $arr_tmp['contact_last_name'];\n $item_title['contact_name'] = $arr_tmp[$field] . ' ' . $arr_tmp['contact_last_name'];\n }\n }\n }\n }\n\n $arr_set['field']['panel_1']['mongo_id']['default'] = $iditem;\n $this->Session->write($this->name . 'ViewId', $iditem);\n\n //BEGIN custom\n if (isset($arr_set['field']['panel_1']['code']['default']))\n $item_title['code'] = $arr_set['field']['panel_1']['code']['default'];\n else\n $item_title['code]'] = '1';\n $this->set('item_title', $item_title);\n\n //END custom\n\t\t\t$this->set('address_lock', '1');\n //END custom\n //show footer info\n $this->show_footer_info($arr_tmp);\n\n\n //add, setup field tự tăng\n }else {\n $this->redirect(URL.'/batches/add');\n }\n\n $this->set('arr_settings', $arr_set);\n $this->sub_tab_default = 'general';\n $this->sub_tab('', $iditem);\n parent::entry();\n\n //$this->set_entry_address($arr_tmp, $arr_set);\n }", "title": "" }, { "docid": "1cb28a494558613ec6560dd9ac2791b7", "score": "0.49933204", "text": "public function entry(){\n\n $arr_set = $this->opm->arr_settings;\n // Get value id\n $iditem = $this->get_id();\n if($iditem=='')\n $iditem = $this->get_last_id();\n\n $this->set('iditem',$iditem);\n //Load record by id\n if($iditem!=''){\n $arr_tmp = $this->opm->select_one(array('_id' => new MongoId($iditem)));\n foreach($arr_set['field'] as $ks => $vls){\n foreach($vls as $field => $values){\n if(isset($arr_tmp[$field])){\n $arr_set['field'][$ks][$field]['default'] = $arr_tmp[$field];\n if(in_array($field,$arr_set['title_field']))\n $item_title[$field] = $arr_tmp[$field];\n\n if(preg_match(\"/_date$/\",$field) && is_object($arr_tmp[$field]))\n $arr_set['field'][$ks][$field]['default'] = date('m/d/Y',$arr_tmp[$field]->sec);\n else if($this->opm->check_field_link($ks,$field)){\n $field_id = $arr_set['field'][$ks][$field]['id'];\n if(!isset($arr_set['field'][$ks][$field]['syncname']))\n $arr_set['field'][$ks][$field]['syncname'] = 'name';\n $arr_set['field'][$ks][$field]['default'] = $this->get_name($this->ModuleName($arr_set['field'][$ks][$field]['cls']),$arr_tmp[$field_id],$arr_set['field'][$ks][$field]['syncname']);\n\n }\n }\n }\n }\n $arr_set['field']['panel_1']['mongo_id']['default'] = $iditem;\n $this->Session->write($this->name.'ViewId',$iditem);\n\n //BEGIN custom\n if(isset($arr_set['field']['panel_1']['code']['default']))\n $item_title['code'] = $arr_set['field']['panel_1']['code']['default'];\n else\n $item_title['code'] = '1';\n $this->set('item_title',$item_title);\n\n //show footer info\n $this->show_footer_info($arr_tmp);\n\n\n //add, setup field tự tăng\n }else{\n $nextcode = $this->opm->get_auto_code('code');\n $arr_set['field']['panel_1']['code']['default'] = $nextcode;\n $this->set('item_title',array('code'=>$nextcode));\n }\n $this->set('arr_settings',$arr_set);\n $this->sub_tab_default = 'leave';\n $this->sub_tab('',$iditem);\n $this->set_entry_address($arr_tmp,$arr_set);\n\n parent::entry();\n }", "title": "" }, { "docid": "7befc37939bd61c747419deee97d48f1", "score": "0.49834427", "text": "private function setFields(){\n\n\t\t\t$fields = get_post_meta( $this->id, 'fields', true );\n\t\t\t$array = array();\n\n\t\t\tif( is_array( $fields ) ){\n\n\t\t\t\t$fields = Sort::byField( $fields, 'position', 'ASC' );\n\n\t\t\t\tif( $fields ){\n\n\t\t\t\t\tforeach( $fields as $id => $field ){\n\n\t\t\t\t\t\t$type = $field['type'];\n\t\t\t\t\t\tif( !is_string( $type ) )\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\t$field = $this->sanitizeFieldArgs( $id, $field );\n\t\t\t\t\t\tif( !isset( $field['choices'] ) ){\n\n\t\t\t\t\t\t\t$array[] = Field::$type(\n\n\t\t\t\t\t\t\t\t$field['name'],\n\t\t\t\t\t\t\t\t$this->id,\n\t\t\t\t\t\t\t\t$field\n\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t}else{\n\n\t\t\t\t\t\t\t$array[] = Field::$type(\n\n\t\t\t\t\t\t\t\t$field['name'],\n\t\t\t\t\t\t\t\t$this->id,\n\t\t\t\t\t\t\t\t$field['choices'],\n\t\t\t\t\t\t\t\t$field\n\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$array = apply_filters( 'chef_forms_fields', $array, $this );\n\t\t\t$this->fields = $array;\n\t\t}", "title": "" }, { "docid": "5a2858ec51cf879bc02f08e02e710c65", "score": "0.49746004", "text": "public static function get_index(){\n if (MMRPG_CONFIG_DEBUG_MODE){ mmrpg_debug_checkpoint(__FILE__, __LINE__, \"get_index()\"); }\n global $DB;\n $field_index = $DB->get_array_list(\"SELECT * FROM mmrpg_index_fields WHERE field_flag_complete = 1;\", 'field_token');\n if (!empty($field_index)){ return $field_index; }\n else { return array(); }\n }", "title": "" }, { "docid": "76a7ec1123710e99a7a9200e5b00048c", "score": "0.4969072", "text": "public function getCMSFields()\r\n {\r\n $fields = parent::getCMSFields();\r\n $fields->addFieldToTab('Root.Main', DateField::create('Date','Date of article'), 'Content');\r\n $fields->addFieldToTab('Root.Main', TextareaField::create('Teaser')\r\n ->setDescription('This is the summary that appears on the article list page.'),\r\n 'Content'\r\n );\r\n $fields->addFieldToTab('Root.Main', TextField::create('Writer','Writer of article'),'Content');\r\n $fields->addFieldToTab('Root.Main', TextField::create('Tag','Tag for article'),'Content');\r\n\r\n $fields->addFieldToTab('Root.Attachments', $Photo = UploadField::create('Photo'));\r\n\r\n//Set up default folder\r\n $Photo->setFolderName('articles-photos');\r\n\r\n return $fields;\r\n }", "title": "" }, { "docid": "3c837f6878aadb7e8de168cf62df0c93", "score": "0.49658066", "text": "public function get_index()\n\t{\n\n\t\t$this->heads = array(\n\t\t\tarray('First Name',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Last Name',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Email',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Address 1',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Address 2',array('search'=>true,'sort'=>true)),\n\t\t\tarray('City',array('search'=>true,'sort'=>true)),\n\t\t\tarray('ZIP',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Country',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Mobile',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Phone',array('search'=>true,'sort'=>true)),\n\t\t\tarray('Created',array('search'=>true,'sort'=>true,'class'=>'date')),\n\t\t\tarray('Last Update',array('search'=>true,'sort'=>true,'class'=>'date')),\n\t\t);\n\n\t\treturn parent::get_index();\n\n\t}", "title": "" }, { "docid": "271ce23ec6d2303e8e408b438bc637a6", "score": "0.4959234", "text": "function fill_in_additional_list_fields()\n\t{\n\t}", "title": "" }, { "docid": "271ce23ec6d2303e8e408b438bc637a6", "score": "0.4959234", "text": "function fill_in_additional_list_fields()\n\t{\n\t}", "title": "" }, { "docid": "8c5fad0893ff3689e073db7a1d68890c", "score": "0.49568638", "text": "public function genericSearchFields();", "title": "" }, { "docid": "090ee7562e2812c3d951d0d896c3e28d", "score": "0.49526218", "text": "public function setTask() {\n if(!$this->isAdmin()) { return $this->getLogin(); }\n\n $tpl_addtask = new Template('tasks/addtask.tpl');\n $tpl_settings = new Template('settings/settingsselect.tpl');\n\n //Read settings\n $result = '';\n\n $this->Objects->MySQL->doQuery('SELECT * FROM settings');\n\n if($this->Objects->MySQL->numResult()) {\n while($setting = $this->Objects->MySQL->arrayResult()) {\n foreach($setting as $key => $value) { $setting[$key] = $this->convertString($setting[$key]); }\n\n $tpl_settings->set('ID', $setting['ID']);\n $tpl_settings->set('Setting', $setting['Name']);\n\n $result .= $tpl_settings->result();\n }\n }\n\n $tpl_addtask->set('Settings', $result);\n\n //Validate POST Data\n if(isset($_POST['submit'])) {\n $this->Objects->MySQL->doQuery('SELECT * FROM settings WHERE ID = \\''.$this->Objects->MySQL->escapeString((int)$_POST['setting']).'\\'');\n\n if($this->Objects->MySQL->numResult()) {\n $settingsselected = $this->Objects->MySQL->arrayResult();\n $tpl_addtasknext = new Template('tasks/addtasknext.tpl');\n $tpl_countries = new Template('tasks/countries.tpl');\n\n //Countries Top 10\n $result = '';\n\n $this->Objects->MySQL->doQuery('SELECT Country, count(Country), CountryLong FROM victims GROUP BY Country ORDER BY count(Country) DESC LIMIT 0, 5');\n while($victims = $this->Objects->MySQL->arrayResult()) {\n foreach($victims as $key => $value) { $victims[$key] = $this->convertString($victims[$key]); }\n\n $tpl_countries->set('Country', strtolower($victims['Country']));\n $tpl_countries->set('CountryLong', $victims['CountryLong']);\n\n $result .= $tpl_countries->result();\n }\n\n $tpl_addtasknext->set('Countries', $result);\n $tpl_addtasknext->set('Name', $settingsselected['File']);\n $tpl_addtasknext->set('SettingsSettings', $this->parseParameters($this->removeBadChars($settingsselected['Parameters'])));\n\n if($settingsselected['Single'] !== 'single') {\n $tpl_overtime = new Template('tasks/overtime.tpl');\n $tpl_overtime->set('date', date('Y-m-d H:i:s'));\n $tpl_addtasknext->set('Overtime', $tpl_overtime->result());\n }\n\n return $this->setOutput($tpl_addtasknext->result(), 'Add task');\n }\n } else if(isset($_POST['add'])) {\n $data = array('setting' => $_POST['setting']);\n foreach($data as $key => $value) { if(empty($data[$key])) { $error = 'Error: Empty field(s) found'; break; } $data[$key] = $this->Objects->MySQL->escapeString($data[$key]); }\n\n //Optional\n if(isset($_POST['overtime']) && $_POST['overtime'] == 'yes' && empty($error)) {\n //Date Time YES\n $datestart = strtotime($_POST['start']);\n $datestop = strtotime($_POST['stop']);\n\n if($datestop <= $datestart) {\n $error = 'Error: Start and stop time are the same or invalid';\n }\n }\n\n //Read setting fields\n $param = '';\n\t\t\t //die(print_r($_POST));\n\n $this->Objects->MySQL->doQuery('SELECT * FROM settings WHERE File = \\''.$this->Objects->MySQL->escapeString($data['setting']).'\\'');\n if($this->Objects->MySQL->numResult()) {\n $fields = $this->Objects->MySQL->arrayResult();\n\n\t\t\t\t if (strlen($fields['Parameters']) > 4)\n\t\t\t\t {\n $teile = explode('#', $this->removeBadChars($fields['Parameters']));\n for ($i = 0; $i < count($teile); $i++) {\n if(!empty($teile[$i])) {\n if(isset($_POST[$teile[$i]]) && !empty($_POST[$teile[$i]])) {\n $param .= $this->Objects->MySQL->escapeString($_POST[$teile[$i]]).'#';\n } else {\n $error = 'Error: Empty field(s) found -> ' . $teile[$i] . ' ' . print_r($_POST);\n break;\n }\n }\n }\n\t\t\t\t }\n $param = substr($param, 0, -1);\n }\n\n $countries = !empty($_POST['countries']) ? $this->Objects->MySQL->escapeString($_POST['countries']) : '';\n\n if(empty($error)) {\n if(isset($_POST['overtime']) && $_POST['overtime'] == 'yes') {\n $this->Objects->MySQL->doQuery('INSERT INTO `tasks` (`Countries`, `Command`, `Parameter`, `Count`, `Start`, `Stop`) VALUES (\\''.$countries.'\\', \\''.$data['setting'].'\\', \\''.$param.'\\', \\''.$this->Objects->MySQL->escapeString($_POST['count']).'\\', \\''.$this->Objects->MySQL->escapeString($datestart).'\\', \\''.$this->Objects->MySQL->escapeString($datestop).'\\')');\n } else {\n $this->Objects->MySQL->doQuery('INSERT INTO `tasks` (`Countries`, `Command`, `Parameter`, `Count`) VALUES (\\''.$countries.'\\', \\''.$data['setting'].'\\', \\''.$param.'\\', \\''.$this->Objects->MySQL->escapeString($_POST['count']).'\\')');\n }\n\n $tpl_addtask->set('notification', 'Successfully added');\n } else {\n $tpl_addtask->set('notification', $error);\n }\n }\n\n return $this->setOutput($tpl_addtask->result(), 'Add task');\n }", "title": "" }, { "docid": "e6fd5d93d72954159bf8a3b72c9dcccf", "score": "0.4934963", "text": "public function __construct() {\n parent::__construct();\n\n $field = new StringField(\"uid\", \"Unique Order Entry Id\");\n $this->addField($field);\n \n $field= new IntegerField(\"productId\", \"Product Id\");\n $field->validation = \"required\";\n $this->addField($field);\n \n $field= new StringField(\"productName\", \"Product Name\");\n $field->validation = \"required\";\n $this->addField($field);\n \n $field= new DecimalField(\"productPrice\", \"Product Price\");\n $field->validation = \"required\";\n $this->addField($field);\n \n $field = new IntegerField(\"quantity\", \"Quantity\");\n $field->validation = \"required\";\n $this->addField($field);\n \n $field = new DecimalField(\"subtotal\", \"Subtotal\");\n $field->validation = \"required\";\n $this->addField($field);\n \n \n }", "title": "" }, { "docid": "74ff63207704e249b267a9150d0dacbd", "score": "0.49292672", "text": "function __construct()\r\n\t{\r\n\t\t$this->fld[] = new Field(\"name\",\"Заголовок\",1);\r\n\t\t$this->fld[] = new Field(\"product_id\",\"Аппарат\", 9, array(\r\n\t\t\t\t'showInList'=>0, 'editInList'=>0, 'valsFromTable'=>'products', 'valsFromCategory'=>null, \r\n\t\t\t\t'valsEchoField'=>'name'));\r\n $this->fld[] = new Field(\"min_price\",\"Минимальная цена процедуры\",1);\r\n $this->fld[] = new Field(\"max_price\",\"Максимальная цена процедуры\",1);\r\n $this->fld[] = new Field(\"step\",\"Шаг ползунка\",1);\r\n $this->fld[] = new Field(\"proc_per_day\",\"Процедур в день\",1);\r\n $this->fld[] = new Field(\"bonus\",\"Бонус\",1);\r\n $this->fld[] = new Field(\"consumables\",\"Расходники\",1);\r\n $this->fld[] = new Field(\"product_price\",\"Стоимость\",1);\r\n\t\t$this->fld[] = new Field(\"sort\",\"SORT\",4);\r\n\t\t$this->fld[] = new Field(\"creation_time\",\"Date of creation\",4);\r\n\t\t$this->fld[] = new Field(\"update_time\",\"Date of update\",4);\r\n\t}", "title": "" }, { "docid": "07464837c8d86a0db78f4cb4622696c4", "score": "0.4916288", "text": "public function & AddFields (/* ...$fields */);", "title": "" }, { "docid": "2267ddab4f30fd4d6a6abd864181c242", "score": "0.4913355", "text": "public function updateCMSFields(FieldList $fields) {\n // ->setEmptyString('(select one)');\n // $fields->addFieldToTab('Root.Main', $field);\n\n $fields->addFieldToTab('Root.Main', DropdownField::create('HeaderSize', 'Header text size', array('medium'=>'medium','large' => 'large')),'Theme');\n $fields->addFieldToTab('Root.Main', DropdownField::create('HeaderColour', 'Header text colour', array('white'=>'white','black'=>'black','blue'=>'blue','grey' => 'grey')),'Theme');\n $fields->addFieldToTab('Root.Main', new TextField('HeaderDepth', 'Header depth in pixels - defaults to 300 if left blank'));\n $fields->addFieldToTab('Root.Main', new CheckBoxField('HideHeaderText', \"Don't show header text\"));\n\n $fields->addFieldToTab('Root.Main', DropdownField::create('SiteColour', 'Site colour', array('default' => 'default', 'blue'=>'blue','green'=>'green','purple' => 'purple','silver' => 'silver')));\n $fields->addFieldToTab('Root.Main', DropdownField::create('HeaderFont', 'Header font', array('Roboto Slab' => 'Roboto','Acme' => 'Acme','Rubik' => 'Rubik','Hammersmith One' => 'Hammersmith One','Luckiest Guy' => 'Luckiest Guy','Merriweather'=>'Merriweather','Paytone One' => 'Paytone One','Baloo Bhaina'=>'Bhaina','Passion One' => 'Passion one','Open+Sans'=>'Open sans')));\n $fields->addFieldToTab('Root.Main', DropdownField::create('BodyFont', 'Body font', array('Open Sans'=>'Open sans','Roboto Slab' => 'Roboto')));\n $fields->addFieldToTab('Root.Main', new CheckBoxField('HeaderDropShadow', 'Header drop shadow'),'Theme');\n $fields->addFieldToTab('Root.Main', new CheckBoxField('HeaderBackground', 'Header solid background'),'Theme');\n $fields->addFieldToTab('Root.Main', new TextField('GoogleAnalytics', 'Google analytics ID'));\n $fields->addFieldToTab('Root.Main', new CheckBoxField('HideSearch', 'Remove the search field from the header panel'));\n\n\n $fields->addFieldToTab('Root.SocialMedia', new TextField('TwitterLink', 'link to Twitter (include http)'));\n $fields->addFieldToTab('Root.SocialMedia', new TextField('FacebookLink', 'link to Facebook (include http)'));\n $fields->addFieldToTab('Root.Footer', new TextareaField('FooterLinks', 'Footer links - one link per line. The format is: Page or external web address&lt;space&gt;Text to use as the link<br>For example - /about-us About our company <br>or http://www.google.co.uk Google'));\n $fields->addFieldToTab('Root.Header', new TextareaField('HeaderLinks', 'Header links - one link per line. The format is: Page or external web address&lt;space&gt;Text to use as the link<br>For example - /about-us About our company <br>or http://www.google.co.uk Google'));\n $mastheadField=UploadField::create('Masthead', 'Your masthead')->setDescription('The CMS will resize your image to 1580 by 400 pixels when you upload it.');\n $fields->addFieldToTab('Root.HeaderImages', $mastheadField);\n $logoField=UploadField::create('Logo', 'Your logo')->setDescription('Your organisation logo if you have one.');\n $fields->addFieldToTab('Root.HeaderImages', $logoField);\n $faviconField=UploadField::create('Favicon', 'Your Favicon')->setDescription(\"Your Favicon is a small image that will be displayed in a user's browser tab. You can leave this blank if you don't have one.\");\n $fields->addFieldToTab('Root.HeaderImages', $faviconField);\n }", "title": "" }, { "docid": "082e1bb69d6a41f77d38e6631c772077", "score": "0.4908676", "text": "function register_fields() {\n\t\t\n\t\t$this->include_file('4/repeater.php');\n\t\t\n\t}", "title": "" }, { "docid": "c1c786f6ce5513e4f05470eecd07f3c5", "score": "0.4899421", "text": "public function getFields()\n {\n return [(new IntegerField($this->getName()))->unsigned(true)->size($this->getSize())->required($this->isRequired())];\n }", "title": "" }, { "docid": "0ff3d3f46a39662d6d39beddfa924712", "score": "0.48990196", "text": "protected function defineFields()\n {\n add_action('init', function () {\n if (function_exists('acf_add_local_field_group')) {\n acf_add_local_field_group([\n 'key' => 'group_57eec1e5ec0c1',\n 'title' => '[post type] Profiles',\n 'fields' => [\n [\n 'key' => 'field_58dbc7b37dd14',\n 'label' => 'Instructions',\n 'name' => '',\n 'type' => 'message',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => [\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ],\n 'message' => 'Fill in contact fields below. Post title should be \"Last, First\" name',\n 'new_lines' => 'wpautop',\n 'esc_html' => 0,\n ],\n [\n 'key' => 'field_58dbc4fd10a41',\n 'label' => 'First Name',\n 'name' => 'txt_fname',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => [\n 'width' => '50',\n 'class' => '',\n 'id' => '',\n ],\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ],\n [\n 'key' => 'field_58dbc50a10a42',\n 'label' => 'Last Name',\n 'name' => 'txt_lname',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => [\n 'width' => '50',\n 'class' => '',\n 'id' => '',\n ],\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ],\n [\n 'key' => 'field_58dbc58241d2f',\n 'label' => 'Title',\n 'name' => 'txt_title',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => [\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ],\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ],\n [\n 'key' => 'field_58dbc58e41d30',\n 'label' => 'Email',\n 'name' => 'txt_email',\n 'type' => 'email',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => [\n 'width' => '50',\n 'class' => '',\n 'id' => '',\n ],\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n ],\n [\n 'key' => 'field_58dbc5b741d31',\n 'label' => 'Phone',\n 'name' => 'txt_phone',\n 'type' => 'text',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => [\n 'width' => '50',\n 'class' => '',\n 'id' => '',\n ],\n 'default_value' => '',\n 'placeholder' => '',\n 'prepend' => '',\n 'append' => '',\n 'maxlength' => '',\n ],\n [\n 'key' => 'field_58dbc5fe41d32',\n 'label' => 'Headshot',\n 'name' => 'med_headshot',\n 'type' => 'image',\n 'instructions' => '',\n 'required' => 0,\n 'conditional_logic' => 0,\n 'wrapper' => [\n 'width' => '',\n 'class' => '',\n 'id' => '',\n ],\n 'return_format' => 'array',\n 'preview_size' => 'thumbnail',\n 'library' => 'all',\n 'min_width' => '',\n 'min_height' => '',\n 'min_size' => '',\n 'max_width' => '500',\n 'max_height' => '500',\n 'max_size' => '',\n 'mime_types' => '',\n ],\n ],\n 'location' => [\n [\n [\n 'param' => 'post_type',\n 'operator' => '==',\n 'value' => 'profile',\n ],\n ],\n ],\n 'menu_order' => 0,\n 'position' => 'acf_after_title',\n 'style' => 'seamless',\n 'label_placement' => 'top',\n 'instruction_placement' => 'label',\n 'hide_on_screen' => 'Config.php',\n 'active' => 1,\n 'description' => '',\n ]);\n }\n }, 20);\n }", "title": "" }, { "docid": "37ba348484c5bf506f82d9bfd7dc2179", "score": "0.48961174", "text": "public function buildFields()\n {\n $this->addField('name', 'article.author.list.header.name', true);\n $this->addField('link', 'article.author.list.header.link', true);\n }", "title": "" }, { "docid": "d5cf2681e5e26c409c1d049d4c70f385", "score": "0.4895997", "text": "static public function register_fields() {\n\t\t$fields = array(\n\t\t\tarray(\n\t\t\t\t'title' => 'Consumer Key',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'args' => array(\n\t\t\t\t\t'name' => 'client_id',\n\t\t\t\t\t'id' => 'chief-sfc-client-id-field'\n\t\t\t\t)\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Consumer Secret',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'args' => array(\n\t\t\t\t\t'name' => 'client_secret',\n\t\t\t\t\t'id' => 'chief-sfc-client-secret-field'\n\t\t\t\t)\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Login URL',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'args' => array(\n\t\t\t\t\t'name' => 'client_url',\n\t\t\t\t\t'id' => 'chief-sfc-client-url',\n\t\t\t\t\t'default' => 'https://login.salesforce.com'\n\t\t\t\t)\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'title' => 'Status',\n\t\t\t\t'type' => 'status',\n\t\t\t\t'args' => array(\n\t\t\t\t\t'id' => 'status'\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\n\t\tforeach( $fields as $field ) {\n\t\t\t$func = array( __CLASS__, 'view_field_' . $field['type'] );\n\t\t\tif ( is_callable( $func ) ) {\n\t\t\t\tadd_settings_field( $field['args']['id'], $field['title'], $func, self::$slug, 'default', $field['args'] );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7f0a2223e276a3b117a1e62aa1c5622a", "score": "0.48943165", "text": "public function fields(){\n return [\n 'id'=>'INTEGER PRIMARY KEY',\n 'text'=>'varchar(255)',\n 'author'=>'varchar(255)'\n ];\n }", "title": "" }, { "docid": "c3a2490ddd6ae9fbf853723bb50ae24d", "score": "0.48872834", "text": "private function getFieldTable( array &$taskInfo, $task, $parentObject )\n {\n // Initialize extra field value\n if ( empty( $taskInfo[ 'browser_table' ] ) )\n {\n if ( $parentObject->CMD == 'add' )\n {\n // In case of new task and if field is empty, set default table address\n $taskInfo[ 'browser_table' ] = $this->defaultTable;\n }\n elseif ( $parentObject->CMD == 'edit' )\n {\n // In case of edit, and editing a test task, set to internal value if not data was submitted already\n $taskInfo[ 'browser_table' ] = $task->getTable();\n }\n else\n {\n // Otherwise set an empty value, as it will not be used anyway\n $taskInfo[ 'browser_table' ] = '';\n }\n }\n\n // Write the code for the field\n $mustCtrlFields = array(\n 'geoupdate'\n );\n $fieldID = 'browser_table';\n $fieldCode = '\n <select name=\"tx_scheduler[browser_table]\" id=\"' . $fieldID . '\" size=\"1\" style=\"width:33em;\">\n ' . $this->zzOptionsForTable( $taskInfo[ 'browser_table' ], $mustCtrlFields ) . '\n </select>\n ';\n // Write the code for the field\n\n $additionalFields = array();\n $additionalFields[ $fieldID ] = array(\n 'code' => $fieldCode,\n 'label' => 'LLL:EXT:browser/Resources/Private/Language/Scheduler/locallang.xml:label.table',\n 'cshKey' => '_MOD_system_txschedulerM1',\n 'cshLabel' => $fieldID\n );\n return $additionalFields;\n }", "title": "" }, { "docid": "9bf05b5a597c0b327c3b3f85235bf8d4", "score": "0.48869714", "text": "function indexFlex(){\n\t\tforeach($this->cObj->data['pi_flexform']['data'] as $k=>$sheet){\n\t\t\tforeach($sheet['lDEF'] as $field=>$v){\n\t\t\t\t$this->flexIndex[$field]=$k;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "260e2a85292f123c22222339b70146ae", "score": "0.4886047", "text": "static function GetTextSettings($i, &$_field, &$Page)\n {\n if ($Page->listSettings->HasItem(\"FIELD_\" . $i, \"SIZE\")) {\n $_field[\"size\"] = $Page->listSettings->GetItem(\"FIELD_\" . $i, \"SIZE\");\n }\n else {\n $_field[\"size\"] = \"\";\n }\n if ($Page->listSettings->HasItem(\"FIELD_\" . $i, \"MAXLENGTH\")) {\n $_field[\"length\"] = $Page->listSettings->GetItem(\"FIELD_\" . $i, \"MAXLENGTH\");\n }\n else {\n $_field[\"length\"] = \"\";\n }\n }", "title": "" }, { "docid": "d3b71956c076a834560a40a9be4876b6", "score": "0.488296", "text": "public function getInputfields() {\n\n // get module getInputfields set config class\n $inputfields = parent::getInputfields();\n \n /* @var InputfieldAsmSelect $f */\n $f = $this->modules->InputfieldAsmSelect;\n $f_name = 'allowed_roles';\n $f->name = $f_name;\n $f->label = $this->_('Roles that may view changes to the Page Tree');\n $f->description = $this->_('Leave this empty to enable module for all roles.');\n $roles = $this->roles->find(\"name!=guest\");\n foreach($roles as $select_option) {\n $f->addOption($select_option->name);\n }\n $f->value = $this->$f_name;\n $inputfields->add($f);\n\n\n // get InputfieldText module\n // add fieldname field to settings\n $f = $this->modules->get('InputfieldTextarea');\n $f->attr('name', 'field');\n $f->label = 'Field';\n $f->description = \"Mark pages when field is true, add pairs of values on each line delimited by a comma,\\ne.g. star, exclusive\";\n // add cron option to inputfields\n $inputfields->add($f);\n\n\n $f = $this->modules->get('InputfieldTextarea');\n $f->attr('name', 'template');\n $f->label = 'Template';\n $f->description = \"Mark pages with specific template, add pairs of values on each line delimited by a comma,\\ne.g. plus, basic-page\";\n // add textfield to inputfields\n $inputfields->add($f);\n\n\n $f = $this->modules->get('InputfieldTextarea');\n $f->attr('name', 'data_field');\n $f->label = 'Data';\n $f->description = \"Show field data in page tree list, add a list of fields to show along side its page name,\\ne.g. counter \\nname\";\n // add textfield to inputfields\n $inputfields->add($f);\n\n // return module config inputs\n return $inputfields;\n }", "title": "" }, { "docid": "68bad977776d105cfb451d3667890946", "score": "0.48813137", "text": "function getCMSFields() {\n\t\t$fields = parent::getCMSFields();\n\n\t\t//$fields->addFieldToTab(\"Root.Main\", new Tab('NewTab','A new tab'),\"Metadata\"); //add tabs in before Metadata\n\t\t\n\t\t//$fields->removeFieldFromTab('Root.Main','Content');\n\t\t\n\t\t$fields->addFieldToTab(\"Root.AnotherTab\",new TabSet('Tabs',\n\t\t\tnew Tab('SubTab1','First sub-tab'),\n\t\t\tnew Tab('SubTab2','Second sub-tab')\t\t\n \t));\t\n\t\t\n\t\t\n\t\t$demoTypes = $this->dbObject('DemoType')->enumValues();\n\t\t$demoTypeField = new CheckboxSetField(\"DemoTypeMulti\",\"Select type(s)\",$demoTypes);\t\n\t\t$fields->addFieldToTab(\"Root.NewTab\",$demoTypeField,\"Content\");\n\n\t\t$fields->addFieldToTab(\"Root.Main\", new CheckboxField('ShowSomething','A checkbox to show something'), \"Content\");\n\t\t\n\t\t$fields->addFieldToTab(\"Root.Main\", $dateField1 = new DateField(\"PubDate\", \"Publication date\"), \"Content\");\n\t\t$dateField1->setConfig('showcalendar', true);\n\t\t\n\t\t$fields->addFieldToTab(\"Root.Main\", new DropdownField('DemoSection','Section', singleton('DemoPage')->dbObject('DemoSection')->enumValues()),\"Content\");\n\n\t\t$fields->addFieldToTab(\"Root.Main\", new TreeDropDownField('RelatedPageID', 'Select related page', 'SiteTree'));\n\n\t\t$fields->addFieldToTab(\"Root.Images\", $fldDemoImage = new UploadField('DemoImage','Demo upload for images'));\n\t\t//$fldDemoImage->getValidator()->setAllowedExtensions(array('jpg', 'jpeg', 'png', 'gif'));\n\t\t$fldDemoImage->setAllowedFileCategories(\"image\");\n\t\t$fldDemoImage->setFolderName('Uploads/team');\n\t\t$fldDemoImage->getValidator()->setAllowedMaxFileSize(52428800);\n\n\t\t$pages = new ArrayList; \n\t\tforeach(Page::get() as $obj) $pages->push($obj);\n\t\tforeach(DemoPage::get() as $obj) $pages->push($obj);\n\t\t//foreach(Page::get()->filter('FieldName', 1)->sort('RAND()') as $obj) \n\t\t\n\t\tif($pages) {\n\t\t\t$pages = $pages->Map('ID', 'Title');\t//id, function name for value, no selection\n\t\t\t$pagesDropdown = new DropdownField(\"RelatedPageID\", \"Select page\", $pages);\n\t\t\t$pagesDropdown->SetEmptyString(\"-- please select --\");\t\t\n\t\t\t$fields->addFieldToTab(\"Root.Main\", $pagesDropdown, \"Content\");\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\t$DemoDOM = new DataObjectManager(\n\t\t\t$this, // Controller\n\t\t\t'DemoDataObjects', // Source name\n\t\t\t'DemoDataObject', // Source class\n\t\t\tarray(\n\t\t\t\t\"Thumbnail\" => \"Image stored against DOM\",\n\t\t\t\t\"Name\" => \"Name\",\n\t\t\t\t\"SelectedColours\" => \"Selected colours\",\n\t\t\t\t//\"BannerLink.Title\" => \"Link\"\n\t\t\t), // Headings\n\t\t\t'getCMSFields_forPopup' // Detail fields function or FieldSet\n\t\t\t// Filter clause\n\t\t\t// Sort clause\n\t\t\t// Join clause\n\t\t\t\n\t\t);\n\t\t$fields->addFieldToTab(\"Root.Content.NewTab.Tabs.SubTab1\", $DemoDOM);\t\t\t\n\t\t*/\n\t\t\n\t\t//replaces DataObjectManager\n\t\t$gridFieldConfig = GridFieldConfig::create()->addComponents(\n\t\t\tnew GridFieldToolbarHeader(),\n\t\t\tnew GridFieldAddNewButton('toolbar-header-right'),\n\t\t\tnew GridFieldSortableRows('SortOrder'),\n\t\t\tnew GridFieldSortableHeader(),\n\t\t\tnew GridFieldDataColumns(),\n\t\t\tnew GridFieldPaginator(10),\n\t\t\tnew GridFieldEditButton(),\n\t\t\tnew GridFieldDeleteAction(),\n\t\t\tnew GridFieldDetailForm()\n\t\t);\n\t\t\n\t\t$gridField = new GridField(\"DemoDataObjects\", \"DemoDataObjects List:\", $this->DemoDataObjects(), $gridFieldConfig);\n\t\t$fields->addFieldToTab(\"Root.DemoDataObjects\", $gridField);\t\t\n\t\t\n\t\t\n\t\treturn $fields;\n\t}", "title": "" }, { "docid": "96b9301941ba8d52e1f76fb337b623d4", "score": "0.48802403", "text": "public function saveAdditionalFields(array $submittedData, \\TYPO3\\CMS\\Scheduler\\Task\\AbstractTask $task) {\n\t\t/** @var \\DmitryDulepov\\DdGooglesitemap\\Scheduler\\Task $task */\n\t\t$task->setEIdScriptUrl($submittedData['eIdUrl']);\n\t\t$task->setMaxUrlsPerSitemap($submittedData['maxUrlsPerSitemap']);\n\t\t$task->setIndexFilePath($submittedData['indexFilePath']);\n\t}", "title": "" }, { "docid": "2511490dd4c24efb7cfc0cf45e78f09a", "score": "0.48729095", "text": "public function index($name, array $fields, $type = 'index', $table = null);", "title": "" }, { "docid": "81fe7c3962f148f1111ae99c40657be6", "score": "0.48643062", "text": "function setVariables() {\n\t\t$model = $this->getModel();\n\n\t\tswitch(true) {\n\t\t\t// in case a record is added initialize the fields from postData in case of error\n\t\t\tcase $this->_task == 'add' :\n\t\t\t\t$this->setRowData();\n\t\t\t// in case a record is modified initialize the fields\n\t\t\tcase $this->_task == 'edit' :\n\t\t\t\t$this->setRowData($this->_id);\n\t\t\t\tbreak;\n\t\t\t// in case one or more records are deleted\n\t\t\tcase $this->_task == 'delete' :\n\t\t\t\t$this->rows = $model->readDeleteRows();\n\t\t\t\tbreak;\n\t\t\t// or else initialize the variables to show a list of records\n\t\t\tcase $this->_task == 'display' && strlen($this->_sTask) > 0 :\n\t\t\t\t$this->filter_order = $model->filter_order;\n\t\t\t\t$this->filter_order_Dir = $model->filter_order_Dir;\n\t\t\t\t$this->limit = $model->limit;\n\t\t\t\t$this->limitstart = $model->limitstart;\n\t\t\t\t$this->filter_condition = $model->filter_condition;\n\t\t\t\t$this->filter_string = $model->filter_string;\n\t\t\t\t$this->rows = $model->readRows();\n\t\t\t\t$this->pageNav = $model->pageNav;\n\t\t\t\tbreak;\n\t\t\tdefault :\n\t\t\t\t// - nothing\n\t\t}\n\t}", "title": "" }, { "docid": "578648fa0b745fd77a57e240f5b0d173", "score": "0.4864173", "text": "public function testUniqueContextAddsFieldsToTheIndex()\n {\n $type = (new Type('applications'))->addField((new EmailField('email_address', null, true))->unique('application_id', 'shard_id'));\n\n $this->assertArrayHasKey('email_address', $type->getIndexes());\n\n $name_index = $type->getIndexes()['email_address'];\n\n $this->assertInstanceOf(IndexInterface::class, $name_index);\n\n $this->assertEquals('email_address', $name_index->getName());\n $this->assertEquals(['email_address', 'application_id', 'shard_id'], $name_index->getFields());\n }", "title": "" }, { "docid": "1d45e26fd733dd72948335a0612b3b6b", "score": "0.4856788", "text": "public function getCMSFields()\n {\n $fields = parent::getCMSFields();\n $fields->addFieldToTab('Root.Main', TextField::create('ComingSoonTitle', 'Coming Soon: Title'), 'Content');\n $fields->addFieldToTab('Root.Main', TextField::create('ComingSoonContent', 'Coming Soon: Content'), 'Content');\n $fields->addFieldToTab('Root.Main', TextField::create('ClientTextBar', 'Client Text Bar: text'), 'Content');\n $fields->addFieldToTab('Root.HomeSlides', GridField::create(\n 'HomeSlides',\n 'Slides On This Page',\n $this->HomeSlides(),\n GridFieldConfig_RecordEditor::create()\n ));\n $fields->addFieldToTab('Root.ComingSoon', GridField::create(\n 'ComingSoon',\n 'Modules Coming Soon',\n $this->ComingSoon(),\n GridFieldConfig_RecordEditor::create()\n ));\n\n return $fields;\n }", "title": "" }, { "docid": "720f18e0fbb9a8340bc343361eb6e23d", "score": "0.4853825", "text": "public function fields()\n {\n return [\n 'hasNextPage' => [\n 'type' => Type::nonNull(Type::boolean()),\n 'description' => 'When paginating forwards, are there more items?',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n return $collection->hasMorePages();\n }\n\n return false;\n },\n ],\n 'hasPreviousPage' => [\n 'type' => Type::nonNull(Type::boolean()),\n 'description' => 'When paginating backwards, are there more items?',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n return $collection->currentPage() > 1;\n }\n\n return false;\n },\n ],\n 'startCursor' => [\n 'type' => Type::string(),\n 'description' => 'When paginating backwards, the cursor to continue.',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n return $this->encodeGlobalId(\n 'arrayconnection',\n $collection->currentPage()\n );\n }\n\n return;\n },\n ],\n 'endCursor' => [\n 'type' => Type::string(),\n 'description' => 'When paginating forwards, the cursor to continue.',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n $cursor = $collection->hasMorePages()\n ? $collection->lastItem()\n : $collection->currentPage();\n\n return $this->encodeGlobalId('arrayconnection', $cursor);\n }\n },\n ],\n 'total' => [\n 'type' => Type::int(),\n 'description' => 'Total number of node in connection.',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n return $collection->total();\n }\n },\n ],\n 'count' => [\n 'type' => Type::int(),\n 'description' => 'Count of nodes in current request.',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n return $collection->count();\n }\n },\n ],\n 'currentPage' => [\n 'type' => Type::int(),\n 'description' => 'Current page of request.',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n return $collection->currentPage();\n }\n },\n ],\n 'lastPage' => [\n 'type' => Type::int(),\n 'description' => 'Last page in connection.',\n 'resolve' => function ($collection) {\n if ($collection instanceof LengthAwarePaginator) {\n return $collection->lastPage();\n }\n },\n ],\n ];\n }", "title": "" }, { "docid": "1422db3e027a18a0d4504700d3284f8a", "score": "0.4852781", "text": "function setFields( $fields ){ $this->fields = $fields; }", "title": "" }, { "docid": "f2396fee03a65f911c40ae69a5b84ad9", "score": "0.48493794", "text": "public function getCMSFields() {\r\n\t\t\r\n\t\t\r\n\t\t$fields = parent::getCMSFields();\r\n\t\t\r\n\t\t\r\n\t\t// add these fields into the Details tab first \r\n\t\t$fields->addFieldToTab('Root.Details', TextField::create('Client','Client Name'));\r\n\t\t$fields->addFieldToTab('Root.Details', DateField::create('Date','Project Date'));\r\n\t\t$fields->addFieldToTab('Root.Details', TextField::create('Website', 'Website Url'));\r\n\t\t\r\n\t\t\r\n\t\t// secondly, let's add the photo fields into the Photos tab\r\n\t\t// don't forget to mention the required photo dimension so the user are not confused\r\n\t\t$fields->addFieldToTab('Root.Photos', $ThumbSquare = UploadField::create('ThumbSquare', 'Thumbnail Square (367 x 471)'));\r\n\t\t$fields->addFieldToTab('Root.Photos', $ThumbLandscape = UploadField::create('ThumbLandscape', 'Thumbnail Landscape (1152 x 706)'));\r\n\t\t$fields->addFieldToTab('Root.Photos', $ThumbTower = UploadField::create('ThumbTower', 'Thumbnail Tower (367 x 974)'));\r\n\t\t$fields->addFieldToTab('Root.Photos', $Slide1 = UploadField::create('Slide1', 'Slide Photo 1 (1152 x 706 )'));\r\n\t\t$fields->addFieldToTab('Root.Photos', $Slide2 = UploadField::create('Slide2', 'Slide Photo 2 (1152 x 706 )'));\r\n\t\t$fields->addFieldToTab('Root.Photos', $Slide3 = UploadField::create('Slide3', 'Slide Photo 3 (1152 x 706 )'));\r\n\t\t\r\n\t\t\r\n\t\t// and finally, let's save these photos into different folders \r\n\t\t// for future easier management\r\n\t\t$ThumbSquare->setFolderName('thumb-square');\r\n\t\t$ThumbLandscape->setFolderName('thumb-landscape');\r\n\t\t$ThumbTower->setFolderName('thumb-tower');\r\n\t\t$Slide1->setFolderName('project-slide');\r\n\t\t$Slide2->setFolderName('project-slide');\r\n\t\t$Slide3->setFolderName('project-slide');\r\n\t\treturn $fields;\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "76af282bd4265da0d0b34ebd0e536c7f", "score": "0.48482507", "text": "function _elasticsearch_connector_views_handle_fields($base_table, &$data, $fields, $base_field_name = '') {\n if (!empty($fields)) {\n foreach ($fields as $field_name => $field) {\n // TODO: Restrict some fields if needed.\n // TODO: Handle boolean.\n // TODO: Handle the cases with analyzed and not analyzed.\n if (empty($field['type']) && isset($field['properties'])) {\n $field_type = 'object';\n }\n else {\n $field_type = $field['type'];\n }\n\n $filter_handler = 'elasticsearch_connector_views_standard';\n $field_handler = 'elasticsearch_connector_views_standard';\n $set = TRUE;\n switch ($field_type) {\n case 'object':\n if (!empty($field['properties'])) {\n _elasticsearch_connector_views_handle_fields($base_table, $data, $field['properties'], $base_field_name . $field_name . '.');\n }\n $set = FALSE;\n break;\n\n case 'date':\n $filter_handler = 'elasticsearch_connector_views_date';\n $field_handler = 'elasticsearch_connector_views_date';\n break;\n\n case 'boolean':\n $filter_handler = 'elasticsearch_connector_views_boolean';\n $field_handler = 'elasticsearch_connector_views_boolean';\n break;\n\n // TODO: Handle the keyword also for the text fields!\n case 'text':\n case 'string':\n case 'keyword':\n // TODO: Handle the analyser and non_analyzed fields.\n // TODO: For analysed fields we need to do fulltext search.\n if (\\Drupal::moduleHandler()\n ->moduleExists('views_autocomplete_filters')\n ) {\n // TODO: Handle autocomplete.\n //$filter_handler = 'elasticsearch_connector_views_handler_filter_string_autocomplete';\n }\n else {\n $field_handler = 'elasticsearch_connector_views_markup';\n $filter_handler = 'elasticsearch_connector_views_string';\n }\n break;\n\n // Handle numeric filter type.\n case 'integer':\n case 'long':\n case 'float':\n case 'double':\n $filter_handler = 'elasticsearch_connector_views_numeric';\n $field_handler = 'elasticsearch_connector_views_numeric';\n break;\n }\n\n if ($set) {\n $data[$base_table][$base_field_name . $field_name] = array(\n 'title' => $base_field_name . $field_name,\n 'help' => $base_field_name . $field_name,\n 'field' => array(\n 'id' => $field_handler,\n 'click sortable' => TRUE,\n ),\n 'filter' => array(\n 'id' => $filter_handler,\n ),\n 'sort' => array(\n 'id' => 'standard',\n ),\n // TODO: Handle the argument class.\n 'argument' => array(\n 'id' => 'standard',\n ),\n );\n }\n }\n }\n}", "title": "" }, { "docid": "743e11878cc6abd06a894c3f78c9511c", "score": "0.48393896", "text": "abstract public function add_fields();", "title": "" }, { "docid": "576ddaea62728636cb810f45064b2ea3", "score": "0.48385316", "text": "public function content() {\n $table = [\n '#type' => 'table',\n '#header' => [\n $this->t('View'),\n $this->t('Display'),\n $this->t('Arguments'),\n $this->t('Operations'),\n ],\n '#empty' => $this->t('No view displays are set to be indexed yet. <a href=\"@url\">Edit a view.</a>', ['@url' => $GLOBALS['base_url'] . '/admin/structure/views']),\n ];\n\n foreach ($this->sitemapViews->getIndexableViews() as $index => $view) {\n $table[$index]['view'] = ['#markup' => $view->storage->label()];\n $table[$index]['display'] = ['#markup' => $view->display_handler->display['display_title']];\n // Determine whether view display arguments are indexed.\n $arguments_status = $this->sitemapViews->getIndexableArguments($view) ? $this->t('Yes') : $this->t('No');\n $table[$index]['arguments'] = ['#markup' => $arguments_status];\n\n // Link to view display edit form.\n $display_edit_url = Url::fromRoute('entity.view.edit_display_form', [\n 'view' => $view->id(),\n 'display_id' => $view->current_display,\n ]);\n $table[$index]['operations'] = [\n '#type' => 'operations',\n '#links' => [\n 'display_edit' => [\n 'title' => $this->t('Edit'),\n 'url' => $display_edit_url,\n ],\n ],\n ];\n }\n\n // Show information about indexed displays.\n $build['simple_sitemap_views'] = [\n '#prefix' => FormHelper::getDonationText(),\n '#title' => $this->t('Indexed view displays'),\n '#type' => 'fieldset',\n 'table' => $table,\n ];\n return $build;\n }", "title": "" }, { "docid": "6060b6e1b81a02985bdee1d2bd75d410", "score": "0.4826495", "text": "public function indexAction() {\r\n try {\r\n $pageHeading = \"Tasks\";\r\n $this->view->page_heading = $pageHeading;\r\n $this->view->data_page = \"tables\";\r\n \r\n $name = $this->_request->getParam('name');\r\n $projectId = $this->_request->getParam('projectId');\r\n $assignedTo = $this->_request->getParam('assignedTo');\r\n $currentStatus = $this->_request->getParam('currentStatus');\r\n $taskType = $this->_request->getParam('taskType');\r\n $priority = $this->_request->getParam('priority');\r\n \r\n // get all the Task information...\r\n $objTaskEntity = new Base_Model_ObtorLib_App_Core_Pms_Entity_Task();\r\n $objTaskService = new Base_Model_ObtorLib_App_Core_Pms_Service_Task();\r\n \r\n $objTaskEntity->setName($name);\r\n $objTaskEntity->setProjectId($projectId);\r\n $objTaskEntity->setAssignedTo($assignedTo);\r\n $objTaskEntity->setCurrentStatus($currentStatus);\r\n $objTaskEntity->setTaskType($taskType);\r\n $objTaskEntity->setPriority($priority);\r\n \r\n $objTaskService->task = $objTaskEntity;\r\n \r\n $objPaggination = new Base_Model_ObtorLib_Base_Lib_Paggination();\r\n $page = $this->_getParam('page', 1);\r\n $objPaggination->CurrentPage = $page;\r\n $objPaggination->TotalResults = $objTaskService->searchCount();\r\n $paginationData = $objPaggination->getPaggingData();\r\n $pageLimit1 = $paginationData['MYSQL_LIMIT1'];\r\n $pageLimit2 = $paginationData['MYSQL_LIMIT2'];\r\n\r\n $limit = \" LIMIT $pageLimit1,$pageLimit2\";\r\n\r\n\r\n $objTaskService->task = $objTaskEntity;\r\n $tasksInfo = $objTaskService->search($limit);\r\n $this->view->taskInformation = $tasksInfo;\r\n \r\n $this->view->pageNum = $page;\r\n $this->view->rowsPerPage = $objPaggination->ResultsPerPage;\r\n $this->view->paggination = $objPaggination;\r\n \r\n } catch (Exception $ex) {\r\n throw new Exception('<ERROR>' . $ex->getMessage() . \"\\n\");\r\n }\r\n }", "title": "" }, { "docid": "6e7f0cf8af37c24396758860a4654472", "score": "0.48253304", "text": "public function getContent()\n {\n\t\t$this->context->controller->addCSS(($this->_path).'views/css/admin.css');\n $this->context->controller->addJS(($this->_path).'views/js/admin.js');\n if (Tools::isSubmit('submit'.$this->name)) {\n $this->postProcess();\n }\n\n $moduleUrl = $this->context->link->getAdminLink('AdminModules').'&configure='.$this->name;\n\n $fieldSets = [\n '0' => [\n 'title' => $this->l('Theme settings'),\n 'fields' => $this->getOptionFieldsGeneral(),\n\t\t\t\t'name' => 'general',\n 'submit' => [\n 'name' => 'submit'.$this->name,\n 'title' => $this->l('Save'),\n ],\n ],\n\t\t\t'1' => [\n 'title' => $this->l('Theme settings - Header'),\n 'fields' => $this->getOptionFieldsHeader(),\n\t\t\t\t'name' \t => 'header',\n 'submit' => [\n 'name' => 'submit'.$this->name,\n 'title' => $this->l('Save'),\n ],\n ],\n\t\t\t'2' => [\n 'title' => $this->l('Theme settings - Footer'),\n 'fields' => $this->getOptionFieldsFooter(),\n\t\t\t\t'name' => 'footer',\n 'submit' => [\n 'name' => 'submit'.$this->name,\n 'title' => $this->l('Save'),\n ],\n ],\n\t\t\t'3' => [\n 'title' => $this->l('Theme settings - Colors - General'),\n 'fields' => $this->getOptionFieldsColors(),\n\t\t\t\t'name' => 'colors',\n ],\n\t\t\t'4' => [\n 'title' => $this->l('Theme settings - Colors - Header'),\n 'fields' => $this->getOptionFieldsHeaderColors(),\n\t\t\t\t'name' => 'headercolors',\n ],\n\t\t\t'5' => [\n 'title' => $this->l('Theme settings - Colors - Content'),\n 'fields' => $this->getOptionFieldsContentColors(),\n\t\t\t\t'name' => 'contentcolors',\n ],\n\t\t\t'6' => [\n 'title' => $this->l('Theme settings - Colors - Footer'),\n 'fields' => $this->getOptionFieldsFooterColors(),\n\t\t\t\t'name' => 'footercolors',\n 'submit' => [\n 'name' => 'submit'.$this->name,\n 'title' => $this->l('Save'),\n ],\n ],\n\t\t\t'7' => [\n 'title' => $this->l('Theme settings - Order process'),\n 'fields' => $this->getOptionFieldsOrder(),\n\t\t\t\t'name' \t => 'order',\n ],\n\t\t\t'8' => [\n 'title' => $this->l('Theme settings - MOBILE - Order'),\n 'fields' => $this->getOptionFieldsMobileOrder(),\n\t\t\t\t'name' \t => 'mobileorder',\n 'submit' => [\n 'name' => 'submit'.$this->name,\n 'title' => $this->l('Save'),\n ],\n ],\n ];\n\n $h = new HelperOptions();\n $h->token = Tools::getAdminTokenLite('AdminModules');\n $h->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;\n $h->id = Tab::getIdFromClassName('AdminTools');\n\n\t\treturn $this->_html.'<div class=\"thememaster row \">'.$this->leftTab().'<div id=\"thememaster\" class=\"col-xs-12 col-lg-10 tab-content\">'.$h->generateOptions($fieldSets).'</div></div>';\n }", "title": "" }, { "docid": "687693a81c55c700efafe840b873f95c", "score": "0.48227313", "text": "public function run()\n {\n //\n $sub = new App\\SubField();\n $sub->name = \"Hardware\";\n $sub->department = 1;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Software\";\n $sub->department = 1;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Advance Salary Request\";\n $sub->department = 2;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Loan Status Record\";\n $sub->department = 2;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Request Form\";\n $sub->department = 3;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Complaint\";\n $sub->department = 4;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Salary Rais Request\";\n $sub->department = 4;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Meeting Request\";\n $sub->department = 4;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Harassment Request\";\n $sub->department = 4;\n $sub->save();\n\n $sub = new App\\SubField();\n $sub->name = \"Promotion Request\";\n $sub->department = 4;\n $sub->save();\n\n }", "title": "" }, { "docid": "02cf0bac91adf6e55eda62f63c3570f5", "score": "0.48154727", "text": "public abstract function fields();", "title": "" }, { "docid": "e6f643ffd04be2d44277f959285e5b84", "score": "0.48144612", "text": "public function fields(Request $request)\n {\n return [\n ID::make()->sortable(),\n Text::make('新闻标题','title')->rules('required')->updateRules('sometimes'),\n Text::make('记者','author'),\n Text::make('简介','description')->hideFromIndex(),\n\n Trix::make('新闻正文', 'content')->withFiles('oss')->rules('required')->updateRules('sometimes'),\n\n //NovaFroalaEditor::make('新闻正文', 'content')->options(['width' => 700]),\n\n //NovaTrumbowyg::make('content'),\n\n\n //NovaTinyMCE::make('content')->options([\n // 'plugins' => [\n // 'advlist autolink lists link image charmap print preview hr anchor pagebreak',\n // 'searchreplace wordcount visualblocks visualchars code fullscreen',\n // 'insertdatetime media nonbreaking save table contextmenu directionality',\n // 'emoticons template paste textcolor colorpicker textpattern'\n // ],\n // 'toolbar' => 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image media',\n // 'use_lfm' => true\n //]),\n //\n //CKEditor5Classic::make('新闻正文', 'Content')->withFiles('oss')->hideFromIndex(),\n\n\n //CKEditor::make('新闻正文', 'content')->options([\n // 'height' => 600,\n //])->hideFromIndex(),\n\n\n DateTime::make('发布时间', 'created_at')->hideFromIndex(),\n Select::make('分类', 'type')->options([\n '0' => '公司新闻',\n '1' => '圆梦乡村',\n '2' => '专题系列',\n '3' => '行业动态',\n ])->displayUsingLabels()->rules('required')->updateRules('sometimes'),\n ImageUploadPreview::make('封面图', 'cover')->disk('oss')->maxWidth(255)->creationRules('required')->deletable(false),\n\n InlineBoolean::make('是否推在首页', 'promotion')\n ->inlineOnIndex() // Use inline field on the index page\n ->inlineOnDetail() // Use inline field on the detail page\n ->enableMessage('设为推荐新闻成功') // Toast message when enabling boolean\n ->disableMessage('设为非推荐新闻成功') // Toast message when disabling boolean\n ->trueText('推荐') // Change the text describing true boolean values\n ->falseText('非推荐') // Change the text describing false boolean values\n ->showTextOnIndex() // Show true/false text beside the checkbox on the index page\n ];\n }", "title": "" }, { "docid": "cdc2cf85cf7527cef8b56c41a4e670e4", "score": "0.48087567", "text": "function getTasks() {\n\n $params = array(\n 'entity_type' => 'node',\n 'bundle' => 'oa_space',\n 'fields' => array(\n 'path',\n )\n );\n $spaces = EntitiesData::getData($params);\n\n $priority[] = array(\n 'id' => '2',\n 'title' => t('Low'),\n );\n $priority[] = array(\n 'id' => '5',\n 'title' => t('Normal'),\n );\n $priority[] = array(\n 'id' => '8',\n 'title' => t('Hight'),\n );\n\n $status[] = array(\n 'id' => 'open',\n 'title' => t('Open'),\n );\n $status[] = array(\n 'id' => 'duplicate',\n 'title' => t('Duplicate'),\n );\n $status[] = array(\n 'id' => 'deferred',\n 'title' => t('Deferred'),\n );\n $status[] = array(\n 'id' => 'closed',\n 'title' => t('Closed')\n );\n $status[] = array(\n 'id' => 'resolved',\n 'title' => t('Resolved')\n );\n\n if(!empty($_GET['filtering'])) { // compose filter conditions\n if(!empty($_GET['title'])) {\n $conditions_to_send[] = array(\n 'type' => 'property_condition',\n 'field' => 'title',\n 'value' => $_GET['title'],\n 'value_ini' => '%',\n 'value_end' => '%',\n 'operator' => 'like',\n );\n }\n if(!empty($_GET['code'])){\n $conditions_to_send[] = array(\n 'type' => 'field_condition',\n 'field' => 'field_code',\n 'column' => 'value',\n 'value' => $_GET['code'],\n 'value_ini' => '%',\n 'value_end' => '%',\n 'operator' => 'like'\n );\n }\n if(!empty($_GET['status'])){\n $conditions_to_send[] = array(\n 'type' => 'field_condition',\n 'field' => 'field_oa_worktracker_task_status',\n 'column' => 'value',\n 'value' => $_GET['status'],\n 'operator' => '='\n );\n }\n if(!empty($_GET['priority'])){\n $conditions_to_send[] = array(\n 'type' => 'field_condition',\n 'field' => 'field_oa_worktracker_priority',\n 'column' => 'value',\n 'value' => $_GET['priority'],\n 'operator' => '='\n );\n }\n if( !empty($_GET['date_start']) && !empty($_GET['date_end']) ){\n $conditions_to_send[] = array(\n 'type' => 'property_condition',\n 'field' => 'created',\n 'value_ini' => $_GET['date_start'],\n 'value_end' => $_GET['date_end'],\n 'operator' => 'BETWEEN'\n );\n }\n }\n\n $params = array(\n 'entity_type' => 'node',\n 'bundle' => 'oa_worktracker_task',\n 'fields' => array(\n 'field_code',\n 'field_oa_worktracker_task_status',\n array(\n 'field' => 'oa_section_ref',\n 'entity_type' => 'node',\n 'bundle' => 'oa_section',\n 'fields' => array(\n array(\n 'field' => 'og_group_ref',\n 'entity_type' => 'node',\n 'bundle' => 'oa_space',\n )\n )\n ),\n 'field_oa_worktracker_priority',\n 'field_oa_worktracker_duedate',\n array(\n 'field' => 'field_oa_worktracker_assigned_to',\n 'entity_type' => 'user',\n )\n ),\n 'conditions' => $conditions_to_send\n );\n\n $data = EntitiesData::getData($params);\n\n // Formating output\n $is_deleted = FALSE;\n $total_filtered = 0;\n $total_open = 0; $total_duplicate = 0; $total_deferred = 0; $total_closed = 0; $total_resolved = 0;\n $total_delayed = 0;\n\n foreach ($data as $key => $value) {\n $is_deleted = FALSE;\n if(!empty($_GET['assigned']) && $value['field_oa_worktracker_assigned_to'][0]['name'] !== $_GET['assigned']){\n unset($data[$key]);\n $is_deleted = TRUE;\n }\n if(!empty($_GET['space']) && $value['oa_section_ref'][0]['og_group_ref'][0]['nid'] !== $_GET['space']){\n unset($data[$key]);\n $is_deleted = TRUE;\n }\n if(!$is_deleted) {\n foreach ($priority as $item) {\n if($value['field_oa_worktracker_priority'] == $item['id']) {\n $data[$key]['field_oa_worktracker_priority'] = $item['title'];\n }\n }\n foreach ($status as $item) {\n if($value['field_oa_worktracker_task_status'] == $item['id']) {\n $data[$key]['field_oa_worktracker_task_status'] = $item['title'];\n }\n }\n $data[$key]['created_formated'] = format_date($value['created'], 'medium', '', NULL, 'es');\n $duedate = strtotime($value['field_oa_worktracker_duedate']);\n $data[$key]['duedate_formated'] = format_date($duedate, 'medium', '', NULL, 'es');\n\n if($value['field_oa_worktracker_task_status'] == 'open'){\n $total_open++;\n }\n if($value['field_oa_worktracker_task_status'] == 'duplicate'){\n $total_duplicate++;\n }\n if($value['field_oa_worktracker_task_status'] == 'deferred'){\n $total_deferred++;\n }\n if($value['field_oa_worktracker_task_status'] == 'closed'){\n $total_closed++;\n }\n if($value['field_oa_worktracker_task_status'] == 'resolved'){\n $total_resolved++;\n }\n if($duedate < time() && $value['field_oa_worktracker_task_status'] != 'resolved' ){\n $total_delayed++;\n }\n\n $total_filtered++;\n }\n }\n\n $data['priority'] = $priority;\n $data['spaces'] = $spaces;\n $data['status'] = $status;\n $data['statistics'] = array(\n 'total_tasks_filtered' => $total_filtered,\n 'total_open' => $total_open,\n 'total_duplicated' => $total_duplicate,\n 'total_deferred' => $total_deferred,\n 'total_closed' => $total_closed,\n 'total_resolved' => $total_resolved,\n 'total_delayed' => $total_delayed\n );\n\n return drupal_json_output($data);\n\n }", "title": "" }, { "docid": "c767158bcbb8027719328348f3c2df3c", "score": "0.48057342", "text": "public function getEditableFields()\n {\n return [\n 'date',\n 'description',\n 'merchant',\n 'total',\n 'type',\n 'reconciled',\n 'allocated',\n 'minutes'\n ];\n }", "title": "" }, { "docid": "3df837bfde67d2d62ed5d819729e9646", "score": "0.4803758", "text": "public static function fields()\n {\n return [\n 'block' => 'text',\n 'street' => 'text',\n 'unitnumber' => 'text',\n 'postalcode' => 'text',\n 'buildingtype' => 'text',\n ];\n }", "title": "" }, { "docid": "7434d2250ac0a4ab58f9074c8715bb96", "score": "0.4802447", "text": "function construct() {\n parent::construct();\n $this->additional_fields['nid'] = array(\n 'table' => 'node',\n 'field' => 'nid',\n );\n }", "title": "" }, { "docid": "0ff63536de33fb58700e34c8032ccc3c", "score": "0.4797755", "text": "protected function buildItemsFields()\n {\n //====================================================================//\n // Order Line Description\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"product_name\")\n ->inList(\"lines\")\n ->name(\"[L] \".Translate::getAdminTranslation(\"Short description\", \"AdminProducts\"))\n ->microData(\"http://schema.org/partOfInvoice\", \"description\")\n ->group(Translate::getAdminTranslation(\"Products\", \"AdminOrders\"))\n ->association(\"product_name@lines\", \"product_quantity@lines\", \"product_id@lines\", \"unit_price@lines\")\n ;\n //====================================================================//\n // Order Line Product Identifier\n $this->fieldsFactory()->create((string) self::objects()->Encode(\"Product\", SPL_T_ID))\n ->identifier(\"product_id\")\n ->inList(\"lines\")\n ->name(\"[L] \".Translate::getAdminTranslation(\"Product ID\", \"AdminImport\"))\n ->microData(\"http://schema.org/Product\", \"productID\")\n ->group(Translate::getAdminTranslation(\"Products\", \"AdminOrders\"))\n ->association(\"product_name@lines\", \"product_quantity@lines\", \"product_id@lines\", \"unit_price@lines\")\n ;\n //====================================================================//\n // Order Line Product SKU\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"product_reference\")\n ->inList(\"lines\")\n ->name(\"[L] \".Translate::getAdminTranslation(\"Reference\", \"AdminProducts\"))\n ->microData(\"http://schema.org/Product\", \"sku\")\n ->group(Translate::getAdminTranslation(\"Products\", \"AdminOrders\"))\n ->isReadOnly()\n ;\n //====================================================================//\n // Order Line Quantity\n $this->fieldsFactory()->create(SPL_T_INT)\n ->identifier(\"product_quantity\")\n ->inList(\"lines\")\n ->name(\"[L] \".Translate::getAdminTranslation(\"Quantity\", \"AdminOrders\"))\n ->microData(\"http://schema.org/QuantitativeValue\", \"value\")\n ->group(Translate::getAdminTranslation(\"Products\", \"AdminOrders\"))\n ->association(\"product_name@lines\", \"product_quantity@lines\", \"product_id@lines\", \"unit_price@lines\")\n ;\n //====================================================================//\n // Order Line Discount\n $this->fieldsFactory()->create(SPL_T_DOUBLE)\n ->identifier(\"reduction_percent\")\n ->inList(\"lines\")\n ->name(\"[L] \".Translate::getAdminTranslation(\"Discount (%)\", \"AdminGroups\"))\n ->microData(\"http://schema.org/Order\", \"discount\")\n ->group(Translate::getAdminTranslation(\"Products\", \"AdminOrders\"))\n ->association(\"product_name@lines\", \"product_quantity@lines\", \"unit_price@lines\")\n ->isReadOnly()\n ;\n //====================================================================//\n // Order Line Unit Price\n $this->fieldsFactory()->create(SPL_T_PRICE)\n ->identifier(\"unit_price\")\n ->inList(\"lines\")\n ->name(\"[L] \".Translate::getAdminTranslation(\"Price\", \"AdminOrders\"))\n ->microData(\"http://schema.org/PriceSpecification\", \"price\")\n ->group(Translate::getAdminTranslation(\"Products\", \"AdminOrders\"))\n ->association(\"product_name@lines\", \"product_quantity@lines\", \"product_id@lines\", \"unit_price@lines\")\n ;\n //====================================================================//\n // Order Line Tax Name\n $this->fieldsFactory()->create(SPL_T_VARCHAR)\n ->identifier(\"tax_name\")\n ->inList(\"lines\")\n ->name(\"[L] \".Translate::getAdminTranslation(\"Tax Name\", \"AdminOrders\"))\n ->microData(\"http://schema.org/PriceSpecification\", \"valueAddedTaxName\")\n ->group(Translate::getAdminTranslation(\"Products\", \"AdminOrders\"))\n ->association(\"product_name@lines\", \"product_quantity@lines\", \"unit_price@lines\")\n ->isReadOnly()\n ;\n }", "title": "" }, { "docid": "6c92e470d535cd84600843e00b8ecb13", "score": "0.47940874", "text": "public function help_add_bulk() {\n $data['title'] = 'Add Bulk Data Help';\n $data['config']['allow_move'] = 'False';\n $this->template->load('default_template', 'task/help_add_bulk', $data);\n }", "title": "" }, { "docid": "6ac3e4a6e23d08c379f4da9a8dfce203", "score": "0.4787249", "text": "protected static function init_fields() {\n\tif (empty(static::$fields)) {\n\t\t$primary_table = static::$internal_interface['primary_table'];\n\t\tstatic::$fields = array_keys(static::$internal_interface['tables'][$primary_table]['fields']);\n\t\tforeach (static::$internal_interface['tables'][$primary_table]['indexes'] as $index) {\n\t\t\t// we might later find a way to record compound primary keys, but we don't expect to use them\n\t\t\tif ($index['index_type'] == 'PRIMARY KEY') static::$primary_identifier = $index['fields'][0];\n\t\t}\n\t}\n}", "title": "" }, { "docid": "86c316bf91061b9d84540065004c447f", "score": "0.4784569", "text": "protected function getOrderFields() {\n return 'Title, CityCode, CountryCodeISO, ContinentCode';\n }", "title": "" }, { "docid": "b5848a087a01c7fb394eb251b9e6abcc", "score": "0.478383", "text": "public function set()\n {\n if($this->col_object)\n {\n $item = $this->col_object;\n }\n else\n {\n $item = AutoForm_Item::factory($this->type,$this->name);\n }\n\n // preposlani nekterych parametru nastavenych sloupci konkretnimu prvku\n $item->settings = $this->item_settings;\n $item->render_type = $this->render_type;\n if($this->item_value!==false) $item->value = $this->item_value;\n if($this->data_src!==false) $item->data_src = $this->data_src;\n if($this->exportable!==null) $item->export_settings = $this->exportable;\n if($this->printable!==null) $item->print_settings = $this->printable;\n\n $name=$item->entity_name;\n\n // struktura automaticky generovanych sekci (kontejneru) v list-tabulce:\n // 1. thead_section - standardni kontejner\n // 2. filtering_section - specialni \"filter\" kontejner\n // 3. data_table_section - standardni multiple kontejner\n // nadpis tabulky, horni ovladaci tlacitka, dolni ovladaci tlacitka a listovani budou soucasti sablony (nebudou v \"automatickych\" sekcich)\n\n // 1. pridani polozky do radku s nadpisem sloupce (s razenim/bez razeni)\n if($this->render_type==\"\" || ($this->render_type==\"print\" && $item->print_settings!==false) || ($this->render_type==\"export\" && $item->export_settings!==false))\n { \n if($this->sequenceable_col) $this->sequenceable=true;\n $this->thead_section->add(AutoForm_Item::factory(\"textThead\", $item->entity_name)->render_type($this->render_type)->value(($this->col_label)?$this->col_label:\"&nbsp;\")->sequencing($this->sequenceable_col));\n $html=array();\n if($this->col_class) $html[\"class\"]=$this->col_class;\n if($this->col_width) $html[\"style\"]=\"width:\".$this->col_width.\"px;\";\n \n // uzke sloupce budu automaticky centrovat\n if($this->col_width && $this->col_width<=60) $html[\"style\"].=\" text-align:center;\";\n\n if(!empty($html))$this->thead_section->$name->HTML($html);\n }\n \n // 2. pridani polozky do radku s filtrovanim - pouze pokud jde o standardni generovani\n \n if($this->filterable_col)\n {\n $this->filterable=true;\n $this->filtering_section->add_filter($item, $this->data_src, $this->filterable_col);\n }\n else\n {\n $this->filtering_section->add_filter(false, false, false);\n }\n \n \n // 3. pridani polozky do radku v oblasti generovani dat\n if($this->render_type==\"\" || ($this->render_type==\"print\" && $item->print_settings!==false) || ($this->render_type==\"export\" && $item->export_settings!==false))\n {\n $this->data_table_section->add($item);\n }\n //if($this->col_class)$this->data_table_section->$name->html(array(\"class\"=>$this->col_class));\n\n // vynulovani nastavovacich promennych pro sloupec\n $this->sequenceable_col=false;\n $this->filterable_col=false;\n $this->col_width=false;\n $this->col_class=false;\n $this->col_label=false;\n $this->col_object=false;\n $this->name=false;\n $this->type=\"text\";\n $this->item_settings=array();\n $this->item_value=false;\n $this->data_src=false;\n $this->exportable=null;\n $this->printable=null;\n }", "title": "" }, { "docid": "621f3ab859684a532464069617408f06", "score": "0.4783739", "text": "function options_form(&$form, &$form_state){\n // It is very important to call the parent function here:\n parent::options_form($form, $form_state);\n switch($form_state['section']){\n case 'batch_items':\n $form['#title'] .= t('Batch items');\n $form['batch_items'] = array(\n '#type' => 'textfield',\n '#description' => t('The number of items to process per batch run.'),\n '#default_value' => $this->get_option('batch_items')\n );\n break;\n }\n }", "title": "" }, { "docid": "f07583812ecc54661ea08680712515ea", "score": "0.4780699", "text": "public function getCMSFields()\n {\n $classnames = array_values(ClassInfo::subclassesFor(\"Product\"));\n $product_types = array();\n\n foreach ($classnames as $classname) {\n $instance = singleton($classname);\n $product_types[$classname] = $instance->i18n_singular_name();\n }\n\n // If CMS Installed, use URLSegmentField, otherwise use text\n // field for URL\n if (class_exists('SiteTreeURLSegmentField')) {\n $baseLink = Controller::join_links(\n Director::absoluteBaseURL()\n );\n \n $url_field = SiteTreeURLSegmentField::create(\"URLSegment\");\n $url_field->setURLPrefix($baseLink);\n } else {\n $url_field = TextField::create(\"URLSegment\");\n }\n\n $fields = new FieldList(\n $rootTab = new TabSet(\"Root\",\n // Main Tab Fields\n $tabMain = new Tab('Main',\n TextField::create(\"Title\", $this->fieldLabel('Title')),\n $url_field,\n HTMLEditorField::create('Content', $this->fieldLabel('Content'))\n ->setRows(20)\n ->addExtraClass('stacked'),\n ToggleCompositeField::create('Metadata', _t('CatalogueAdmin.MetadataToggle', 'Metadata'),\n array(\n $metaFieldDesc = TextareaField::create(\"MetaDescription\", $this->fieldLabel('MetaDescription')),\n $metaFieldExtra = TextareaField::create(\"ExtraMeta\", $this->fieldLabel('ExtraMeta'))\n )\n )->setHeadingLevel(4)\n ),\n $tabSettings = new Tab('Settings',\n NumericField::create(\"BasePrice\", _t(\"Catalogue.Price\", \"Price\")),\n TextField::create(\"StockID\", $this->fieldLabel('StockID'))\n ->setRightTitle(_t(\"Catalogue.StockIDHelp\", \"For example, a product SKU\")),\n DropdownField::create(\n \"TaxRateID\",\n $this->fieldLabel('TaxRate'),\n TaxRate::get()->map()\n )->setEmptyString(_t(\"Catalogue.None\", \"None\")),\n TreeMultiSelectField::create(\"Categories\", null, \"CatalogueCategory\"),\n DropdownField::create(\n \"ClassName\",\n _t(\"CatalogueAdmin.ProductType\", \"Type of product\"),\n $product_types\n )\n )\n )\n );\n\n // Help text for MetaData on page content editor\n $metaFieldDesc\n ->setRightTitle(\n _t(\n 'CatalogueAdmin.MetaDescHelp',\n \"Search engines use this content for displaying search results (although it will not influence their ranking).\"\n )\n )\n ->addExtraClass('help');\n $metaFieldExtra\n ->setRightTitle(\n _t(\n 'CatalogueAdmin.MetaExtraHelp',\n \"HTML tags for additional meta information. For example &lt;meta name=\\\"customName\\\" content=\\\"your custom content here\\\" /&gt;\"\n )\n )\n ->addExtraClass('help');\n\n if ($this->ID) {\n $fields->addFieldToTab(\n 'Root.Images',\n SortableUploadField::create(\n 'Images',\n $this->fieldLabel('Images'),\n $this->Images()\n )\n );\n\n $fields->addFieldToTab(\n 'Root.Related',\n GridField::create(\n 'RelatedProducts',\n \"\",\n $this->RelatedProducts(),\n new GridFieldConfig_CatalogueRelated(\"Product\",null,'SortOrder')\n )\n );\n }\n\n $this->extend('updateCMSFields', $fields);\n\n return $fields;\n }", "title": "" }, { "docid": "4a9f5d735a8593649cff975a2517bf94", "score": "0.47770622", "text": "public function set_num_fields()\n {\n $this->num_fields = pg_num_fields($this->resource);\n }", "title": "" }, { "docid": "a4f739584e5ad1510c8b64c42e129ae1", "score": "0.47745827", "text": "public function updateCMSFields(FieldList $fields)\n {\n # Status dropdown\n $robotsTxtStatusField = DropdownField::create('RobotsTxtStatus', 'Status', [\n 0 => 'disabled',\n 1 => 'enabled'\n ]);\n $robotsTxtStatusField->setRightTitle('Current environment: '.strtolower(Environment::getEnv('SS_ENVIRONMENT_TYPE')));\n $fields->addFieldToTab('Root.RobotsTxt', $robotsTxtStatusField);\n\n # Robots.txt (live) field\n $robotsTxtContentLiveField = TextareaField::create('RobotsTxtContentLive', 'Content (live)');\n $robotsTxtContentLiveField->setRows(10);\n $fields->addFieldToTab('Root.RobotsTxt', $robotsTxtContentLiveField);\n\n # Robots.txt (test/dev) field\n $robotsTxtContentTestField = TextareaField::create('RobotsTxtContentTest', 'Content (test/dev)');\n $robotsTxtContentTestField->setRows(10);\n $fields->addFieldToTab('Root.RobotsTxt', $robotsTxtContentTestField);\n\n # Rename tab\n $robotsTxtTab = $fields->fieldByName('Root.RobotsTxt');\n $robotsTxtTab->setTitle('Robots.txt');\n\n return $fields;\n }", "title": "" }, { "docid": "9cd7b186132e0a99182f086d8827256a", "score": "0.47717485", "text": "public function getSettingsFields() \n\t{\n\t\t$fields = parent::getSettingsFields();\n\t\t\n\t\t$fields->insertAfter( new CheckboxField('InSitemap', 'Show in sitemap?'), 'ShowInSearch');\n\t\t$fields->insertAfter( new CheckboxField('InFooter', 'Show in footer?'), 'ShowInSearch');\n\t\t\n\t\treturn $fields;\n\t}", "title": "" } ]
9ae050feeb6e9ceac9826cd72e294eb5
Delete a session variable.
[ { "docid": "5b54a2165fd2c372186a1b43a3480fa6", "score": "0.67985964", "text": "public function delete($path) {\n\t\tArrayUtils::delete($_SESSION, $path);\n\t}", "title": "" } ]
[ { "docid": "302ee7e5b87ab227b054369e2c1784d3", "score": "0.724687", "text": "public function delVar($var)\n {\n unset($_SESSION[$var]);\n return true;\n }", "title": "" }, { "docid": "a34d4ef8d14448c915582664e36e39b7", "score": "0.6957272", "text": "protected function delete()\n\t{\n\t\t$this->cookie->forget('session_payload');\n\t}", "title": "" }, { "docid": "326d8d0299469e88d7552ef2786f2614", "score": "0.6862603", "text": "static function clearVariable($key, $sessionName) {\r\n $s = NEnvironment::getSession($sessionName);\r\n $s->__unset($key);\r\n }", "title": "" }, { "docid": "532e7a14e4045d3a79acaef744013ec3", "score": "0.6858566", "text": "public function sessionDelete(string $key)\n {\n unset($_SESSION[$key]);\n }", "title": "" }, { "docid": "95203048c163d81c76330ed0fcf1ebea", "score": "0.67937005", "text": "function deleteVar( $name, $namespace = 'default' ) \n {\n $namespace = self::$_ns_prefix.$namespace;\n if( $this->_state !== 'active' ) {\n return VWP::raiseWarning(\"Session is not active!\",get_class($this),null,false);\n }\n \n if ($this->exists($name,$namespace)) {\n $value = $_SESSION[$namespace][$name];\n unset( $_SESSION[$namespace][$name] );\n } else {\n $value = VWP::raiseWarning(\"Session key not found!\",get_class($this),5,false);\n }\n return $value;\n }", "title": "" }, { "docid": "8e0d6a5f858f76c8bef3546628ed15e4", "score": "0.6787331", "text": "public function destroySession($delete_cookie);", "title": "" }, { "docid": "ede779dee5bf1ea1762f651a8b3ca431", "score": "0.6786274", "text": "static function delete($key)\n {\n unset($_SESSION[$key]);\n }", "title": "" }, { "docid": "bd74f0ca024c75f76959544a3af1a19e", "score": "0.6764728", "text": "public function delete($key){\n // On supprime de la session\n unset($_SESSION[$key]);\n }", "title": "" }, { "docid": "59cbea686e8e6178826192573fcdc95e", "score": "0.6763184", "text": "public function delete($Session_ID);", "title": "" }, { "docid": "7363ab571e78f2fa8fc7f8393d49b87d", "score": "0.67197984", "text": "public static function delete($key) {\n\t\t//Only delete if it exists\n\t\tif(self::exists($key)) {\n\t\t\tunset($_SESSION[$key]);\n\t\t}\n\t}", "title": "" }, { "docid": "62837ca7c865108d09ed939e3d14e31c", "score": "0.6685244", "text": "public static function delete($key) {\r\n if (self::check($key)) {\r\n unset($_SESSION[$key]);\r\n }\r\n }", "title": "" }, { "docid": "cf70663dc7e87a0a4f3a8fdfd7cd10bc", "score": "0.6666747", "text": "function delete($name) {\n\t\tunset($_SESSION[$name]);\n\t}", "title": "" }, { "docid": "e8d760d317a80bb3fc90b5d1b332cad5", "score": "0.6648185", "text": "public function del($key)\r\n {\r\n unset($_SESSION[$key]);\r\n }", "title": "" }, { "docid": "0d8fc49fd7710af92bdc6362a736477e", "score": "0.6624072", "text": "public static function del( $name ) {\n\t\tunset( $_SESSION[$name] );\n\t}", "title": "" }, { "docid": "6dcee634d1e67a20e56259b8ee861920", "score": "0.6616727", "text": "public function delete()\n\t{\n $this->session->sess_destroy();\n //delete values for key univ\n //$this->session->unset_userdata('univ');\n //delete values for key color1\n //$this->session->unset_userdata('color1');\n echo \"Data has been removed from session.\";\n\n\t}", "title": "" }, { "docid": "edf8a2822c805e74c88c192afd9a257d", "score": "0.6587738", "text": "public static function delete($keyName) \n{\n if(self::exists($keyName)) {\n unset($_SESSION[$keyName]);\n }\n}", "title": "" }, { "docid": "0a9b4fdbd35af056a57af86786c2c15c", "score": "0.6571004", "text": "public static function delete($name) {\n if (self::exists($name)) {\n unset($_SESSION[$name]);\n }\n }", "title": "" }, { "docid": "8d9ffac4113972f3db8188406b239c1d", "score": "0.6522184", "text": "function delete_session() {\n session_destroy();\n}", "title": "" }, { "docid": "c202438fc118791d254b7e3d4803f10f", "score": "0.64866215", "text": "public function delete($key)\n {\n $this->initSession();\n $key_name = $this->getSessionKeyName($key);\n unset($_SESSION[$key_name]);\n }", "title": "" }, { "docid": "8925b5165f3fbf0e6569fe0c844d8106", "score": "0.6480727", "text": "public function deleteSession(string $sessionToken): void;", "title": "" }, { "docid": "41d0cf7759ee16bc53975c26fc08c246", "score": "0.645637", "text": "public static function delete($label, $opt='session') {\n\n\t\tif (isset($_SESSION[$opt][$label])) unset($_SESSION[$opt][$label]);\n\n\n\t}", "title": "" }, { "docid": "6328f88219ea76d0f5560392713f48d3", "score": "0.6453407", "text": "public function delSession($key) {\n\t\treturn Yii::app()->session->remove($key);\n\t}", "title": "" }, { "docid": "e8f28f1ec30920f66c6c59eaadb7a432", "score": "0.6447401", "text": "public function delete(Request $request){\n $request->session()->forget('univ');\n //delete the values for the key color\n $request->session()->forget('color');\n //delete all data from session\n //$request->session()->flush();\n echo \"Data has been removed from session.\";\n }", "title": "" }, { "docid": "678e0070b404605565c5de1b7efc148a", "score": "0.6443223", "text": "public static function delete($name) {\n if(self::exists($name)) {\n unset($_SESSION[$name]);\n }\n }", "title": "" }, { "docid": "8f20edf2df6a052d77867cfac05f0cb3", "score": "0.64350885", "text": "public static function delete($name)\n\t{\n\t\tif(self::exists($name)){\n\t\t\tunset($_SESSION[$name]);\n\t\t}\n\t}", "title": "" }, { "docid": "2a48eafe65a0298504d8184a0df99522", "score": "0.64021564", "text": "public function delete($name)\n {\n unset($_SESSION[$name]);\n }", "title": "" }, { "docid": "078e8e4e234aba133b91a4e695613491", "score": "0.64005303", "text": "public static function delete($name)\n {\n unset($_SESSION[$name]);\n }", "title": "" }, { "docid": "37fdba5be38d06bfcbca5bb1e6770ba8", "score": "0.6399394", "text": "function clearSessionVar($name)\n{\n if (isset($_SESSION[$name])) {\n unset($_SESSION[$name]);\n }\n header('Location: session_details.php');\n}", "title": "" }, { "docid": "3a9b2edd52211910f0d8567100010ac4", "score": "0.63850486", "text": "public static function delete($key)\n {\n if ( !is_string($key) )\n throw new Exception('Session key must be string value');\n self::_init();\n unset($_SESSION[$key]);\n self::_age();\n }", "title": "" }, { "docid": "e3452d55231f2bd0321b3ea72818cff5", "score": "0.63813704", "text": "public static function delete(string $name)\n\t{\n\t\tif (array_key_exists($name, $_SESSION))\n\t\t{\n\t\t\tunset($_SESSION[$name]);\n\t\t}\n\t}", "title": "" }, { "docid": "8cd89cd67c25c2ac4939e73da34ca0b6", "score": "0.6373709", "text": "public function delete ($name = null) {\r\n\t\tif ($name === null) {\r\n\t\t\t$_SESSION = array();\r\n\t\t} else {\r\n\t\t\tunset($_SESSION[$name]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "027bc4b2abaefacdc45eb8761a5b9345", "score": "0.6372281", "text": "public function delete(Session $session) {\r\n $stmt = $this->db->prepare(\"DELETE from sessions WHERE id=?\");\r\n $stmt->execute(array($session->getSessionid()));\r\n }", "title": "" }, { "docid": "602b91a885134497e1864ced75df3268", "score": "0.6345421", "text": "public function deleteSessionAction() {\n $this->objectRepository->cleanUpSession();\n $this->redirect('list');\n }", "title": "" }, { "docid": "f6e273b9a1118ab11f05b2356624cbd8", "score": "0.6318883", "text": "public function delete($name) \n {\n if ($this->exists($name)) {\n unset($_SESSION[$name]);\n }\n }", "title": "" }, { "docid": "ffeb046773b79dab3accd729071d6ac0", "score": "0.63181216", "text": "public function deleteSession(){\n $userId = request('userId');\n Session::where('user_id', $userId)->delete();\n }", "title": "" }, { "docid": "fef97479732c4efb3b5f5ccf346886dd", "score": "0.62877357", "text": "public function delete(string $name): void\n {\n // Check to see if a session is running.\n if (!$this->sessionExists())\n {\n // No session is running.\n throw new RuntimeException('There is no session running.');\n }\n // Check to see if it exists.\n if (isset($_SESSION[$name]))\n {\n // Delete the session variable.\n unset($_SESSION[$name]);\n }\n }", "title": "" }, { "docid": "edecd277024f88165d1d2b7b3f51ab8d", "score": "0.6274808", "text": "public function delete($key)\r\n {\r\n $sessionData = $this->sessionObject->getSessionData($this->storageKey);\r\n unset($sessionData[$key]);\r\n $this->sessionObject->setAndSaveSessionData($this->storageKey, $sessionData);\r\n }", "title": "" }, { "docid": "3b5a7ece61f56ae49e9d2ba455eb33a5", "score": "0.627116", "text": "public function deleteSession()\n {\n// $this->auth->deleteSession();\n }", "title": "" }, { "docid": "d7e26ba8a3fb332c2f30786fca2ef91c", "score": "0.62595665", "text": "public function delete($session, $user_id) {}", "title": "" }, { "docid": "ad002da623f42eeaaa7e169a25affca2", "score": "0.6247524", "text": "public function deleteData($key)\n {\n if(isset($_SESSION[$key]))\n {\n unset($_SESSION[$key]);\n }\n else\n {\n return SES_VAL;\n }\n }", "title": "" }, { "docid": "3a54f27fd2883598c27123a0b91f4739", "score": "0.62475103", "text": "public function delete( $key = null ) {\n if( $key == null ) {\n return;\n } else {\n $this->request->session()->delete( \"$this->_sessionKey.$key\" );\n\n return;\n }\n }", "title": "" }, { "docid": "b64a0c8c4aeadeea15d414adda1c80da", "score": "0.62438315", "text": "public static function delete($name)\n {\n //De functie gebruikt hier de Session::exists functie om te kijken of de sessie bestaat\n if (self::exists($name)) {\n unset($_SESSION[$name]);\n }\n }", "title": "" }, { "docid": "e3703bb676eb2ffb9b7953113971cc00", "score": "0.6231894", "text": "public function deleteSession() {\n\t\t// if existing remove it\n\t\tif ($this->Session->check ( 'search_name' ))\n\t\t\t$this->Session->destroy ( 'search_name' );\n\t\t\t\n\t\t\t// check if a mail was stored in the session\n\t\t\t// if existing remove it\n\t\tif ($this->Session->check ( 'search_email' ))\n\t\t\t$this->Session->destroy ( 'search_email' );\n\t\t\t\n\t\t\t// check if a radiobutton (and / or) was stored in the session\n\t\t\t// if existing remove it\n\t\tif ($this->Session->check ( 'select_condition' ))\n\t\t\t$this->Session->destroy ( 'select_condition' );\n\t\t\t\n\t\t// check if the dropdownlist was stored in the session\n\t\t// if so -> delete it \n\t\tif ($this->Session->check ( 'search_current_step' ))\n\t\t\t$this->Session->destroy ( 'search_current_step' );\n\t\t\n\t\t\t// reload the page\n\t\theader ( \"location:/Git/ezycount/ezycount/users\" );\n\t\texit ();\n\t}", "title": "" }, { "docid": "d67bc1d624e93b0f7502e0509af1f288", "score": "0.62016165", "text": "public function delete($id)\n {\n Cookie::forget('session_payload');\n }", "title": "" }, { "docid": "efb5a79e4f7c7fd2113e2009f7884d40", "score": "0.6139495", "text": "public static function remove($key)\r\n {\r\n unset($_SESSION[$key]);\r\n }", "title": "" }, { "docid": "33e2bda710ba5b0b88caf34ee8d36f45", "score": "0.60711306", "text": "public static function destroy($key) {\r\n if ( isset($_SESSION[$key]) )\r\n unset($_SESSION[$key]);\r\n }", "title": "" }, { "docid": "0c338f56afadc3172eafd3d14ce0db3e", "score": "0.60700756", "text": "function deleteData()\n\t{\n\t\t$this->sessionKey;\n\t\tunset($_SESSION[$this->sessionKey]);\n\t\tsession_write_close();\n\t}", "title": "" }, { "docid": "ac14dab5624a67dbc8fb54208eb36ebc", "score": "0.6069684", "text": "function sess_destroy()\n {\n // Kill the session DB row\n if ($this->sess_use_mongo_database === TRUE AND isset($this->userdata['session_id']))\n {\n $this->CI->mongo_db->where((array('_id' => new MongoId($this->userdata['session_id']))))->delete($this->sess_collection_name);\n }\n\n // Kill the cookie\n setcookie(\n $this->sess_cookie_name, addslashes(serialize(array())), ($this->now - 31500000), $this->cookie_path, $this->cookie_domain, 0\n );\n }", "title": "" }, { "docid": "99bf64f260353301e3feef5d55979e15", "score": "0.60535216", "text": "public static function remove($key)\n {\n unset($_SESSION[$key]);\n }", "title": "" }, { "docid": "386ae31c1ec4661f2fa895781341507f", "score": "0.604714", "text": "public static function remove($key){\n \n if(static::has($key)){\n unset($_SESSION[$key]);\n return 1;\n }\n else\n return null;\n\n }", "title": "" }, { "docid": "84060f33cb345280333250cf2243b762", "score": "0.60338926", "text": "public function destroy(Request $request)\n {\n $psychosocialVariable = PsychosocialVariable::destroy($request->id);\n }", "title": "" }, { "docid": "703b7a1e88c5cf5025708ef8dcb3f15c", "score": "0.60318875", "text": "public function destroy(): void\n {\n $this->request->session()->remove(self::SESSION_KEY);\n }", "title": "" }, { "docid": "34fe3206eb4b9bbd0b7679696d346c29", "score": "0.6029534", "text": "public function destroy_session () {\n $delete_time = time() - 3600;\n $success = setcookie($this->cookie_name, '', $delete_time, '/', $this->domain, $this->secure);\n }", "title": "" }, { "docid": "e0c95cd64e5cc5b05b4c80bbf733e337", "score": "0.60244876", "text": "public function sessionremove($key)\r\n\t{\r\n\t\tif(isset($_SESSION[$key]))\r\n\t\t{\r\n\t\t\tunset($_SESSION[$key]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "00f97fbb682f6b3cdb73cc22cc36e775", "score": "0.60130286", "text": "public static function destroy($key = false)\n\t{\n\t\t//Verifica la existencia de un valor recibido\n\t\tif($key)\n\t\t{\n\t\t\t//Verifica si el valor recibido es un arreglo\n\t\t\tif(is_array($key))\n\t\t\t{\n\t\t\t\t//En caso de ser un arreglo, se itera el arreglo\n\t\t\t\tfor($i=0; $i< count($key); $i ++)\n\t\t\t\t{\n\t\t\t\t\t//Verifica la existencia de esa variable de session\n\t\t\t\t\tif(isset($_SESSION[$key[$i]]))\n\t\t\t\t\t{\n\t\t\t\t\t\t//En caso de su existencia, se destruye\n\t\t\t\t\t\tunset($_SESSION[$key[$i]]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Si no es un arreglo, se verifica la existencia de la variable de session\n\t\t\t\tif(isset($_SESSION[$key]))\n\t\t\t\t{\n\t\t\t\t\t//En caso de su existencia, se destruye\n\t\t\t\t\tunset($_SESSION[$key]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//En caso de no recibir un parametro, se destruye la session completa\n\t\t\tsession_destroy();\n\t\t}\n\t}", "title": "" }, { "docid": "8df192ea815c65daa60ec1e2de178d68", "score": "0.6005708", "text": "public function delete(string $key): void\n {\n $this->ensureStarted();\n unset($_SESSION[$key]);\n }", "title": "" }, { "docid": "1f6c8940e48f10b3088de4e015c51278", "score": "0.60004354", "text": "function shm_remove_var($shm_identifier, $variable_key)\n{\n}", "title": "" }, { "docid": "855b700d118d9119ad685cc6fc957460", "score": "0.59907395", "text": "public static function destroy($key)\n\t{\n\t\tunset($_SESSION[$key]);\n\t}", "title": "" }, { "docid": "b9259111cd6ab358bc61983d0f54c4a0", "score": "0.59708834", "text": "public function testDeleteSession()\n {\n $apiContext = ApiContextHandler::getApiContext();\n\n Session::delete($apiContext, self::SESSION_ID_DUMMY);\n }", "title": "" }, { "docid": "7ad00b47e12c4dbc357b6c1c362911dd", "score": "0.59697896", "text": "function deleteOtherData($sessKey)\n\t{\n\t\tunset($_SESSION[$sessKey]);\n\t\tsession_write_close();\n\t}", "title": "" }, { "docid": "f76d86895607f1aac68fb33300c0e33c", "score": "0.596383", "text": "public function delItem($name) {\n\t\tif (isset($_SESSION[$name]))\n\t\t\tunset($_SESSION[$name]);\n\t}", "title": "" }, { "docid": "a191d5ef0321a29358d4e658e120229f", "score": "0.59309536", "text": "public static function delete($key) {\r\n if (!isset(self::$_adapter)) {\r\n throw new SessionException('Incorrect call to Session::delete() with no session adapter defined');\r\n }\r\n if (isset($_SESSION[$key])) {\r\n unset($_SESSION[$key]);\r\n }\r\n }", "title": "" }, { "docid": "e3a82bf5698c3663a08fdb055b3555f9", "score": "0.5908455", "text": "public function action_deleteSetDataSession()\n {\n if ( $_POST ) {\n $this->session->delete( \"signup_data\" );\n }\n echo 1;\n exit;\n }", "title": "" }, { "docid": "08854c00976755c6e3da663bc93f2fc5", "score": "0.5904234", "text": "function ses_unset() {\n\tif( phpversion() >= \"4.1.0\" ) {\n\t\tif( isset($GLOBALS['_SESSION']) ) $a = $GLOBALS['_SESSION'];\n\t\t\twhile( list($key,) = each($a) )\n\t\t\t\t$this->var_unset($key);\n\t\t} else {\n\t\t\tif( isset($GLOBALS['HTTP_SESSION_VARS']) ) $a = $GLOBALS['HTTP_SESSION_VARS'];\n\t\t\t\twhile( list($key,) = each($a) )\n\t\t\t\t\t$this->var_unset($key);\n\t}\n}", "title": "" }, { "docid": "e6072245f6532754740132f2424c0c33", "score": "0.5903651", "text": "function del()\n\t{\n\t\tSHIN_Core::log('debug', '[SESSION] Model Session_model delete session with id='.$this->id);\n\t\tSHIN_Core::$_db[SHIN_Core::$_shdb->sys_database]->delete($this->table_name, array('id' => $this->id)); \n }", "title": "" }, { "docid": "884bff973d04574296b943cafab4f19a", "score": "0.58961517", "text": "public static function unsetSession($session_var) {\n\t\t\tself::throwExceptionIfNull($session_var);\n\t\t\tself::throwExceptionIfNotString($session_var);\n\t\t\tself::throwExceptionIfEmptyString($session_var);\n\t\t\tunset($_SESSION[$session_var]);\n\t\t}", "title": "" }, { "docid": "4f8ef11dce65da10ac9561512a7bec4e", "score": "0.5888064", "text": "function remove($key) {\n\t\tunset($_SESSION[$key]);\n\t\tunset($this->_properties[$key]);\n\t}", "title": "" }, { "docid": "7ad07bb41c4e34135f5931062133c24a", "score": "0.5888059", "text": "function user_remove_session($session_id)\n{\n global $db_tables;\n\n $sql = \"DELETE FROM \".$db_tables[DB_NAGIOSXI]['sessions'].\" WHERE session_phpid = '\".escape_sql_param($session_id, DB_NAGIOSXI).\"'\";\n exec_sql_query(DB_NAGIOSXI, $sql);\n}", "title": "" }, { "docid": "a3b879799a325bccbb89f66bdfc40982", "score": "0.5882573", "text": "function Del($Setting) {\r\n unset($_SESSION[$this->SessionName][$Setting]);\r\n }", "title": "" }, { "docid": "f9f0343643ef2280c6c3400c4a704fdc", "score": "0.58818245", "text": "function remove($key) {\n if($this->keyExists($key))\n {\n unset($_SESSION[$key]);\n }\n }", "title": "" }, { "docid": "7501740715d0df936db85c6a9f80348f", "score": "0.58668727", "text": "public static function unset(string $key)\n {\n if (isset($_SESSION[$key])) {\n unset($_SESSION[$key]);\n }\n }", "title": "" }, { "docid": "29852e7f8a51b9d993c2b48079f4e44c", "score": "0.58651054", "text": "public function remove($name)\n {\n unset($_SESSION[$name]);\n }", "title": "" }, { "docid": "b599912bb846ecfec1a9a365ff25f289", "score": "0.5855439", "text": "protected function delete()\n\t{\n\t\t$this->file->delete($this->path.$this->session['id']);\n\t}", "title": "" }, { "docid": "0dbaf991191c507b3bb3cfe3980d6a24", "score": "0.5835921", "text": "private function deleteSession()\n {\n foreach($this->sessions->get('cart') as $key => $value)\n {\n if($value[0]['id'] == $this->item)\n {\n unset($_SESSION['cart'][$key]);\n }\n\n }\n }", "title": "" }, { "docid": "bd77db0becd12aaf2c8352d1c9287f2b", "score": "0.5830355", "text": "public function delete() {\n\n $session = $this->uri->segment(3);\n $username = $this->uri->segment(4);\n $query = $this->Md->delete_query(\"Delete from location where session ='\".$session.\"'\");\n \n redirect('/user/location/'.$username, 'refresh');\n \n }", "title": "" }, { "docid": "5d257cb70b02b8fe29c9d86f9c17e9f9", "score": "0.58241934", "text": "public function drop($key) {\n unset($_SESSION[$key]);\n }", "title": "" }, { "docid": "8ceda18d1322393af68e4f0eaa245082", "score": "0.5815584", "text": "protected function clearLocalSessionValues() {\n $sessionVarname = get_class($this);\n $this->session->remove($sessionVarname);\n }", "title": "" }, { "docid": "2480fb577a25e663db1f63e02bc60522", "score": "0.58093876", "text": "public function deleteExpiredSession(): void;", "title": "" }, { "docid": "952264abb2a9f786713f61fa80577d3c", "score": "0.58072925", "text": "public function destroy($id)\n {\n // DELETE VARIABLE\n try {\n $variable = DataCalculadoras::find($id);\n $variable->delete();\n return redirect('/calculadoras')->with('status', 'Successfully deleted the variable!');\n } catch (\\Illuminate\\Database\\QueryException $e) {\n return redirect('/calculadoras')->with('anError', 'No se puede eliminar esta variable, esta en uso!');\n }\n }", "title": "" }, { "docid": "d619a319c22fd2a8052fae76644df577", "score": "0.58009666", "text": "public function deletecookie(){\n delete_cookie('cookie_name');\n redirect(\"cookie\");\n }", "title": "" }, { "docid": "44cfb6bacdd926d2c34f64eb29fb1541", "score": "0.5798901", "text": "public function destroy(){\n\t\tprint_r($_SESSION);\n\t\tunset($_SESSION[$_SERVER['HTTP_HOST']]);\n\t\tprint_r($_SESSION);\n\t}", "title": "" }, { "docid": "fb3d03bea727e7e8415d039e59d0af4f", "score": "0.5797882", "text": "function ninja_forms_delete_transient(){\n\tNinja_Forms()->session->delete();\n}", "title": "" }, { "docid": "3683ea32cd12f83fa0fee67a398fa122", "score": "0.5797183", "text": "public function delete( $key=\"\" )\n {\n $key = Sanitize::toKey( $key );\n\n if( !empty( $key ) && $this->started === true )\n {\n $path = trim( $this->container.\".\".$key, \".\" );\n $list = explode( \".\", $path );\n $last = array_pop( $list );\n $data = &$_SESSION;\n\n foreach( $list as $step )\n {\n if( !isset( $data[ $step ] ) )\n {\n return; // gone\n }\n $data = &$data[ $step ];\n }\n if( isset( $data[ $last ] ) )\n {\n // need to reference the last key for unset() to work\n $data[ $last ] = null;\n unset( $data[ $last ] );\n }\n }\n }", "title": "" }, { "docid": "b3c48bc28f3cc5387ad86c7690469448", "score": "0.57902545", "text": "private function deleteCookie()\n\t{\n\t\tsetcookie($this->sessionName, '', time() * -1 );\n\t}", "title": "" }, { "docid": "1b9d9979331756cee847ff1573d18158", "score": "0.5785764", "text": "public function sess_destroy()\r\n {\r\n session_destroy();\r\n }", "title": "" }, { "docid": "facc7664ed12c516c2412aa68b092bcc", "score": "0.5783435", "text": "public function destroy($story_id, $id)\n {\n $variable = Variable::find($id);\n \n // Check for access\n if(\n !Permission::CheckOwnership(auth()->user()->id, $variable->story->user->id)\n || !Permission::CheckOwnership($variable->story->id, $variable->story_id)\n )\n {\n return redirect('/stories/'.$variable->story->id.'/variables')->with('error', 'Access denied');\n }\n\n $variable->delete();\n return redirect('/stories/'.$variable->story->id.'/variables')->with('success', 'Variable; '.$variable->key.', deleted');\n }", "title": "" }, { "docid": "5712249b0187dc939ece5e59be6af582", "score": "0.5780232", "text": "function destroy_session()\n {\n session_unset();\n }", "title": "" }, { "docid": "4274ad002219eaa3f6ae3a4bc5b8d437", "score": "0.5779982", "text": "public function deleteSession($sessionId)\n {\n return $this->del->path('/sessions/')->subpath($sessionId);\n }", "title": "" }, { "docid": "120a2f6c9d56eb88f8e58754c35014a4", "score": "0.57754457", "text": "function delete($name) {\n @session_start();\n unset($_SESSION[$name]);\n @session_write_close();\n return true;\n }", "title": "" }, { "docid": "77b0fd5fd4446465747a13e2661b55de", "score": "0.5774426", "text": "function deleteItem($contains){\n unset($_SESSION[$contains][$_GET['id']]);\n}", "title": "" }, { "docid": "b25b4be80faad0537ef15cb3a1e0e84f", "score": "0.5763859", "text": "public function disconnect($var) {\n\n unset($_SESSION['user']);\n\n }", "title": "" }, { "docid": "4fd1f4513990f77b5216108b6a8fe0a1", "score": "0.57322603", "text": "public static function remove($sessionOption)\n {\n self::_sanitize();\n\n unset ($_SESSION[$sessionOption]);\n }", "title": "" }, { "docid": "52077d99b5688acf49814161b5847221", "score": "0.5731992", "text": "function del($name){\n if(isset($this->vars[$name])){\n unset($this->vars[$name]);\n }\n }", "title": "" }, { "docid": "a6639851ed2bbed71f4e38e2e5a17b57", "score": "0.5719959", "text": "public static function logout() {\n\t\t$id = session_id();\n\t\t$session = R::findOne('session', 'session_id = ? ', array($id));\n\t\tsession_destroy();\n\t\tif (!is_null($session))\n\t\t\tR::trash($session);\n\t}", "title": "" }, { "docid": "7623ed1142dd29e546f996fd24aca8da", "score": "0.5718088", "text": "function var_unset( $varname ) {\n\tif( !isset($varname) )\n\t\tdie(\"Function var_unset( String \\$varname ) expects a parameter!\");\n\n\tif( phpversion() >= \"4.1.0\" ) {\n\t\tif (isset($GLOBALS[$varname])) \n\t\t\tunset( $GLOBALS[$varname] );\n\tif (isset($GLOBALS['_SESSION'][$varname])) \n\t\tunset( $GLOBALS['_SESSION'][$varname] );\n\t} else {\n\t\tif (isset($GLOBALS[$varname])) \n\t\t\tunset( $GLOBALS[$varname] );\n\t\t\t\tif (isset($GLOBALS['HTTP_SESSION_VARS'][$varname])) \n\t\t\t\t\tunset( $GLOBALS['HTTP_SESSION_VARS'][$varname] );\n\t\t\t}\n}", "title": "" }, { "docid": "f26f0b8ec49e7ec04d8af053d0fc5818", "score": "0.57059324", "text": "public function __unset($key)\r\n {\r\n unset($_SESSION[$key]);\r\n }", "title": "" }, { "docid": "c7383fce380fd8d7c43c2ccb5b2eeaee", "score": "0.5703085", "text": "public static function clear() {\n self::getSession()->delete(self::$config['session_key']);\n }", "title": "" }, { "docid": "6bf154243eebb393b1f13a2af3a5c19c", "score": "0.5701948", "text": "public function destroy()\n {\n $this->getDataStore()->remove('session');\n $this->data = (object)[];\n }", "title": "" }, { "docid": "45efcb43d908304d6fddb1081e3b1348", "score": "0.56974006", "text": "public function delete($key)\n {\n if (array_key_exists($key, $_SESSION)) {\n unset($_SESSION[$key]);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "de359edce4b78e1e136f357725d88d77", "score": "0.56887287", "text": "public function delete($var=null) {\n if(array_key_exists($var,$this->val)) {\n unset($this->val[$var]);\n return $this->save();\n } else {\n return false;\n }\n }", "title": "" } ]
b15d2497953657739ea470bd3bef7746
Updates an existing CarEngineAndModelCorrespondencesEN model. If update is successful, the browser will be redirected to the 'view' page.
[ { "docid": "825a71ef0c541fdeea8638a1e8612e39", "score": "0.62551934", "text": "public function actionUpdate($ID_Mark, $ID_Engine, $ID_Model)\n {\n $model = $this->findModel($ID_Mark, $ID_Engine, $ID_Model);\n $session = Yii::$app->session;\n\n if ($model->load(Yii::$app->request->post())) {\n try {\n $model->save();\n } catch (\\Exception $e) {\n $session->setFlash('error', $e->getMessage());\n goto input;\n }\n $redirected = [\n 'index',\n 'ID_Mark' => $ID_Mark,\n 'ID_Model' => $ID_Model,\n ];\n if ($session->has('find-engine-by-model')) {\n $redirected['CarEngineAndModelCorrespondencesENSearch'] = $session['find-engine-by-model'];\n }\n\n return $this->redirect($redirected);\n } else {\n input:\n $model->ID_Model = $ID_Model;\n $model->ID_Mark = $ID_Mark;\n $model->ID_Engine = $ID_Engine;\n\n $models = ArrayHelper::map(CarModelsEN::find()\n ->andFilterWhere(['ID_Mark' => $ID_Mark])\n ->orderBy('Name')\n ->asArray()->all(), 'id', 'Name');\n\n $engines = ArrayHelper::map(CarEngineModelsEN::find()\n ->andFilterWhere(['ID_Mark' => $ID_Mark])\n ->orderBy('Name')\n ->asArray()->all(), 'id', 'Name');\n\n return $this->render('update', [\n 'model' => $model,\n 'ID_Mark' => $ID_Mark,\n 'ID_Model' => $ID_Model,\n 'models' => $models,\n 'engines' => $engines,\n ]);\n }\n }", "title": "" } ]
[ { "docid": "d9b2b7989be14fb19c6e1c83b0b78c83", "score": "0.70715207", "text": "public function actionUpdate()\n {\n $modelList = $this->viewList('models');\n $model = new UpdateCar();\n $car = $this->viewOne('car');\n\n if($this->update($model,$car)){\n $this->setFlash('success','car update success');\n }\n\n return $this->render('update',['model' => $model,'car' => $car,'modelList' => $modelList]);\n }", "title": "" }, { "docid": "e7718dc8df172459cfc253a0ca5f9072", "score": "0.6256909", "text": "public function actionSelectEngine()\n {\n $model = new SelectEngine();\n $engines = $this->viewList('engine');\n $car = $this->viewOne('car');\n\n if(BaseRequest::checkModelRequest($model)){\n $model->update($car);\n $this->setFlash('update','Engine update successful');\n }\n\n return $this->render('select-engine',['model' => $model,'engines' => $engines]);\n }", "title": "" }, { "docid": "868ab660eaf18cb0ad5b27cf68196cd4", "score": "0.60543764", "text": "private function updateCar()\n {\n $dbUpdate = new EloUpdate();\n\n try {\n\n $dbUpdate->updateCar();\n\n } catch (\\Exception $exception) {\n\n $errorMessage = $exception->getMessage();\n\n include BASEDIR . '/App/Views/error.php';\n\n return;\n\n }\n }", "title": "" }, { "docid": "2b3c0ab21d0e65e1c88c8ed5f735e775", "score": "0.5933942", "text": "public function update(){\n\t\tif($this->input->post('submit_product')){\n\n\t\t\t$id = $this->input->post('id');\n\t\t\t$title = $this->input->post('car_name');\n\t\t\t$class = $this->input->post('car_class');\n\t\t\t$description = $this->input->post('description');\n\t\t\t$seat = $this->input->post('car_seat');\n\t\t\t$tank_capacity = $this->input->post('car_tank');\n\t\t\t$tank_fuel= $this->input->post('car_fuel');\n\t\t\t$facility1 = $this->input->post('fac1');\n\t\t\t$facility2 = $this->input->post('fac2');\n\t\t\t$facility3 = $this->input->post('fac3');\n\t\t\t$facility4 = $this->input->post('fac4');\n\t\t\t$facility5 = $this->input->post('fac5');\n\t\t\t$start_price = $this->input->post('start_price');\n\n\t\t\t// $car_type = array(\n\t\t\t// \t'name_type' => 'Toyota',\n\t\t\t// \t'description'=> 'toyota'\n\t\t\t// );\n\t\t\t$data = array(\n\t\t\t\t'name'=> $title,\n\t\t\t\t'id_class' =>$class,\n\t\t\t\t'seat_capacity'=>$seat,\n\t\t\t\t'tank_capacity'=>$tank_capacity,\n\t\t\t\t'description'=>$description,\n\t\t\t\t'fuel'=>$tank_fuel,\n\t\t\t\t'facility_1'=>$facility1,\n\t\t\t\t'facility_2'=>$facility2,\n\t\t\t\t'facility_3'=>$facility3,\n\t\t\t\t'facility_4'=>$facility4,\n\t\t\t\t'facility_5'=>$facility5,\n\t\t\t\t'start_price'=>$start_price\n\t\t\t);\n\t\t\t\n\t\t\t$data['product'] = $this->m_merk->updatedataproduct($data,$id);\n\n\t\t\tredirect('Admin/Product/detail/'.$id,'refresh');\n\t\t}\n\n\t}", "title": "" }, { "docid": "aebb90058566d58989da706c025dc864", "score": "0.5896431", "text": "public function actionUpdate()\n {\n $model = $this->findModel(Yii::$app->user->id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['update']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "9f6f423bc82f6d467a36687ecf634c65", "score": "0.5758571", "text": "public function update(){\n if($this->input->post('actualizar')){\n $this->cesta->update();\n }\n redirect('cesta/ver', 'refresh');\n }", "title": "" }, { "docid": "8a15b8004015fb86419d620d09ba4f79", "score": "0.5685271", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Reportepesca']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Reportepesca'];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif(empty($model->fechaarribo))\n\t\t\t\t\t\t\t\t\t\t\t\t$model->fechaarribo=null;\n\t\t\t \n\t\t\t\t\t\t\t\t\t\t\tif(empty($model->codplantadestino))\n\t\t\t\t\t\t\t\t\t\t\t\t$model->codplantadestino=null;\n\t\t\t\n\t\t\tif($model->save()) {\n\t\t\t\n\t\t\t//nos aseguramos que las coordenadas se guarden en le historial \n\t\t\tif(!empty($model->latitud)&&!empty($model->meridiano)) {\n\t\t\t\n\t\t\t$modelocoor=NEW ReportepescaCoor;\n\t\t\t$modelocoor->latitud=$model->latitud;\n\t\t\t$modelocoor->meridiano=$model->meridiano;\n\t\t\t$modelocoor->aliaszona=$model->zonapesca;\n\t\t\t//$modelocoor->insert(array('id'=>1,'latitud'=>$model->latitud,'meridiano'=>$model->meridiano,'aliaszona'=>$model->zonapesca,'hidreporte'=>$model->id));\n\t\t\t$modelocoor->insert();\n\t\t\t}\n\t\t\t\n\t\t\t if (!empty($_GET['asDialog']))\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\t\t//Close the dialog, reset the iframe and update the grid\n\t\t\t\t\t\t\t\t\t\t\t\t\techo CHtml::script(\"window.parent.$('#cru-dialog2').dialog('close');\n\t\t\t\t\t\t\t\t\t\t\t\t\t window.parent.$('#cru-frame2').attr('src','');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.parent.$.fn.yiiGridView.update('{$_GET['gridId']}');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.parent.$.fn.yiiGridView.update('plantas-grid');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twindow.parent.$.fn.yiiGridView.update('anchoveta-grid');\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tYii::app()->end();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t //$this->redirect(array('view','id'=>$model->id));\n\t\t\tif (!empty($_GET['asDialog']))\n\t\t\t\t\t$this->layout = '//layouts/iframe';\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "edfbd9d4fccccee579c1349eb9291921", "score": "0.56814706", "text": "public function update(CarModel $carmodel, Request $request)\n {\n $this->carmodel->update($carmodel, $request->all());\n if($brand = $this->carbrand->find($request->brand_id)) {\n $carmodel->brand()->associate($brand);\n $carmodel->save();\n }\n\n return redirect()->route('admin.carrental.carmodel.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('carrental::carmodels.title.carmodels')]));\n }", "title": "" }, { "docid": "4114f99b393ce5ea68a02b25d39fd174", "score": "0.5673378", "text": "public function actionUpdate() {\n\t\tif (!Yii::app()->getRequest()->getIsPostRequest()) {\n\t\t\tthrow new CHttpException(405, \"Request method not allowed, requires POST\");\n\t\t}\n\t\t$model = $this->getModel();\n\t\tif (!$model instanceof GActiveRecord) {\n\t\t\tthrow new CException(\"Model must be an instance of GActiveRecord class\");\n\t\t} else {\n\t\t\t$m = $model;\n\t\t}\n\t\t$form = $model->form;\n\t\tif (($name = $this->getModelName()) == null) {\n\t\t\t$name = get_class($model);\n\t\t}\n\t\t$name = $name.\"Form\";\n\t\tif (!isset($_POST[$name])) {\n\t\t\tthrow new CException(\"Can't receive form's model \\\"$name\\\" via POST request method\");\n\t\t} else {\n\t\t\t$post = Yii::app()->getRequest()->getPost($name);\n\t\t}\n\t\t$model = $model->findByPk($post[\"id\"]);\n\t\tif (!$model) {\n\t\t\tthrow new CException(\"Can't resolve row in \\\"\" .$this->getModelName(). \"\\\" with \\\"{$post[\"id\"]}\\\" identification number\");\n\t\t}\n\t\t$post = Yii::app()->getRequest()->getPost($name);\n\t\tunset($post[\"id\"]);\n\t\tforeach ($post as $key => $value) {\n\t\t\t// @ - fix for default -1 value for reference with foreign key\n\t\t\tif ($value == -1 && $form->getConfig($key)[\"type\"] == \"DropDown\") {\n\t\t\t\t$value = null;\n\t\t\t}\n\t\t\t$model->$key = $value;\n\t\t\t$form->$key = $value;\n\t\t}\n\t\t$model->attributes = $post;\n\t\t$form->attributes = $post;\n\t\t$this->validateForm($form);\n\t\t$model->setAttributes($post);\n\t\tif (!$model->save()) {\n\t\t\t$this->leave([\n\t\t\t\t\"message\" => \"Произошла ошибка при обновлении данных, данные не были обновлены\",\n\t\t\t\t\"status\" => false\n\t\t\t]);\n\t\t}\n\t\t$this->after(\"update\", $model, $form);\n\t\t$this->leave([\n\t\t\t\"message\" => \"Данные были успешно обновлены\"\n\t\t]);\n\t}", "title": "" }, { "docid": "78d7142eda90d8d5d3476da88f0eee93", "score": "0.56615174", "text": "public function actionUpdate()\n {\n $request = Yii::$app->request;\n \n $ficha_no = $request->post('ficha_no');\n $titulo = $request->post('titulo');\n $autor = $request->post('autor');\n $clasificacion = $request->post('clasificacion');\n $isbn = $request->post('isbn');\n $num_adqui = $request->post('num_adqui');\n $biblioteca = $request->post('biblioteca');\n $ejemplar = $request->post('ejemplar');\n\n $model = $this->findModel($ficha_no);\n $model->titulo = $titulo;\n $model->autor = $autor;\n $model->clasificacion = $clasificacion;\n $model->isbn = $isbn;\n $model->num_adqui = $num_adqui;\n $model->biblioteca = $biblioteca;\n $model->ejemplar = $ejemplar;\n \n if ($model->save()) {\n $result = new \\stdClass();\n $result->success = true;\n $result->msg = 'Se modificó correctamente el libro.';\n echo json_encode($result);\n } else {\n $result = new \\stdClass();\n $result->success = false;\n $result->msg = 'Ocurrió un error.';\n echo json_encode($result);\n }\n }", "title": "" }, { "docid": "7651c438107a8c5ef6fb3c43e325701f", "score": "0.56510025", "text": "public function actionUpdate()\n {\n $id = Yii::$app->request->post(\"id\");\n $model = $this->findModel($id);\n $dates = Yii::$app->request->post(\"dates\", \"\");\n $content = Yii::$app->request->post(\"content\", \"\");\n $model->dates = $dates;\n $model->content = $content;\n\n if ($model->validate() && $model->save()) {\n return json_encode(['code' => 200]);\n// return $this->redirect(['view', 'id' => $model->course_id]);\n } else {\n return json_encode(['code' => 20]);\n// return $this->render('update', [\n// 'model' => $model,\n// ]);\n }\n }", "title": "" }, { "docid": "05035c11f7f94670ee256df5aa97a286", "score": "0.5634065", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadModel();\n\t\tif(isset($_POST['Post']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Post'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "e1c68894201f5b486a91f52066e96d0f", "score": "0.56041557", "text": "public function actionUpdate()\n {\n $model = $this->findModel(Yii::$app->request->post('id'));\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $model;\n }\n return $model->errors;\n }", "title": "" }, { "docid": "5f6ad9ddf4e784b6e09ca2c9a6e76ed1", "score": "0.55661064", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['ErpnetOrdem']))\n\t\t{\n\t\t\t$model->attributes=$_POST['ErpnetOrdem'];\n\t\t\tif($model->save()) {\n\t\t\t\tEQuickDlgs::checkDialogJsScript();\n\t\t\t\t$this->redirect(array('admin'));\n\t\t\t}\n\t\t}\n\n\t\tEQuickDlgs::render('update',array('model'=>$model));\n\t}", "title": "" }, { "docid": "b0f260e1bb587fa88023c6e2e2a50bf0", "score": "0.5540914", "text": "public function actionUpdate()\n {\n $id = Yii::$app->request->post('goods_id');\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post())) {\n \n if($model->validate() == true && $model->save()){\n $msg = array('errno'=>0, 'msg'=>'保存成功');\n echo json_encode($msg);\n }\n else{\n $msg = array('errno'=>2, 'data'=>$model->getErrors());\n echo json_encode($msg);\n }\n } else {\n $msg = array('errno'=>2, 'msg'=>'数据出错');\n echo json_encode($msg);\n }\n \n }", "title": "" }, { "docid": "6e1774f4288dbc6008e2a290e44f8671", "score": "0.5536536", "text": "public function update() //metodos \n {\n echo $this->atributoDetalle_model->update_atributoDetalle();\n // $this->load->view('clientes/success');\n redirect('/atributoDetalle/index/');\n }", "title": "" }, { "docid": "89e1366a64b1c3c65e3be37c43bad248", "score": "0.5532302", "text": "abstract public function update($model);", "title": "" }, { "docid": "95746c12cafc000307b4e5edadeda4a4", "score": "0.5529211", "text": "public function update(EngineerRequest $request, Engineer $engineer)\n {\n $this->authorize('edit', $engineer);\n $engineer->update($request->input('engineer'));\n/*\n foreach ($engineer->certificates()->get() as $certificate){\n $certificate->engineer()->dissociate()->save();\n }\n foreach ($request->input('certificate') as $certificate_type_id => $certificate_id) {\n if (\n !is_null($certificate_id)\n && ($certificate = Certificate::query()\n ->where('type_id', $certificate_type_id)\n ->where('id', $certificate_id))->exists()\n ) {\n $certificate->first()->engineer()->associate($engineer)->save();\n }\n }\n*/\n return redirect()->route('engineers.index')->with('success', trans('site::engineer.updated'));\n }", "title": "" }, { "docid": "a03826e6ba8e4f6ee6d32be1283881ef", "score": "0.5516272", "text": "public function actionUpdate($id)\n{\n$model=$this->loadModel($id);\n\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n\nif(isset($_POST['FindingReport']))\n{\n$model->attributes=$_POST['FindingReport'];\n\n\tif ($_POST['FindingReport']['vesselname'] <>''){\n\t\t\t\t$costumer=Vessel::model()->findByAttributes(array('VesselName'=>$_POST['FindingReport']['vesselname'],'id_vessel'=>$_POST['FindingReport']['id_vessel']));\n\t\t\t\tif($costumer===null){\n\t\t\t\t$model->addError('vesselname', 'Vessel Name Tidak terdaftar!');\n\t\t\t\t\t}\n\n\t\t\t\tif($costumer==true){\n\t\t\t\t$model->addError('vesselname', 'Vessel Name Tidak terdaftar!');\n\t\t\t\t\t\n\t\t\t\t$model->created_date=date(\"Y-m-d H:i:s\");\n\t\t\t\t$model->ip_user_updated=$_SERVER['REMOTE_ADDR'];\n\t\t\t\t$model->Status='OPEN';\n\t\t\t\t\n\n\t\t\t\tif($model->save()){\n\t\t\t\t//update vessel date of damage \n\t\t\t $Vessel = Vessel::model()->findByPk($model->id_vessel);\n\t\t\t $Vessel->LastDateofFinding=$model->Date;\n\t\t\t //$Vessel->NumberOfFinding=$Vessel->NumberOfFinding+1;\n\t\t\t $Vessel->save(false);\n\n\n\t\t\t\tYii::app()->user->setFlash('success', \" Data Saved\");\n\t\t\t\t//$this->redirect(array('view','id'=>$model->id_finding_report));\n\t\t\t\t$this->redirect(array('repair/finding','id'=>$model->id_vessel));\n\t\t\t\t}\n\t\t\t\t}\n\n}\n\n}\n\nif(Yii::app()->request->getIsAjaxRequest())\n{\n echo $this->renderPartial('update',array('model'=>$model),true,true);//This will bring out the view along with its script.\n }\n\nelse \n$this->render('update',array(\n'model'=>$model,\n));\n}", "title": "" }, { "docid": "9f677504ee2aba773f06081d8f00ce5e", "score": "0.55022794", "text": "public function actionUpdate() {\n $modelProceso = new Proceso;\n $model = $modelProceso->findByPk($_POST['idProcesoEditar']);\n $model->nombre = $_POST['nombreProcesoEdit'];\n $model->descripcion = $_POST['descripcionProcesoEdit'];\n $model->id_macroproceso = $_POST['idMacroProcesoEdit'];\n $model->save();\n $this->redirect(array('default/index'));\n }", "title": "" }, { "docid": "3de161534923fecce086637ce2c88601", "score": "0.5499826", "text": "function update_ecoupon_emarsys(){\n $this->load->model('model');\n $ecBmd = $this->get_used_ecoupon();\n $field = array([\n \"id\" => \"17585\"\n , \"name\" => \"optinmonster17585\"\n ],\n [\n \"id\" => \"17586\"\n , \"name\" => \"optinmonster17586\"\n ]);\n $resQueryContact = array();\n $rules = array();\n\n //get data2 yang diperlukan untuk update\n foreach($field as $value){\n $fl = $value['id'];\n $el = 3;\n $fi = 'id';\n $nf = $value['name'];\n $fu = 16532;\n $req_body = array(\n \"keyId\" => $fl,\n \"keyValues\" => $ecBmd,\n \"fields\" => [$el,$fl,$fu]\n );\n\n $res = $this->_query_contacts($req_body, 'POST');\n $res = explode('charset=utf-8', $res);\n $ret = json_decode($res[1]);\n if(!empty($ret->data->result)) {\n foreach ($ret->data->result as $key => $value2) {\n $resQueryContact[] = array(\n 'id' => $value2->$fi,\n 'email' => $value2->$el,\n 'ecoupon' => $value2->$fl,\n 'idField' => $fl,\n 'nameField' => $nf,\n 'usedEcoupon' => $value2->$fu\n );\n }\n }\n }\n\n //buat array data update\n for($n = 0; $n < count($resQueryContact); $n++) {\n $ue = $resQueryContact[$n]['usedEcoupon'];\n $ifs = $resQueryContact[$n]['idField'];\n $usedVoucher = \"\";\n if ($ue != \"\") {\n $usedVoucher = $ue.\" | \".$ifs;\n } else {\n $usedVoucher = $ifs;\n } \n array_push($rules, array(\n 3 => $resQueryContact[$n]['email'],\n 16532 => $usedVoucher\n ));\n }\n //update emarsys\n $req_body = array('contacts' => $rules);\n $res = $this->_contact($req_body, 'PUT');\n $res = explode('charset=utf-8', $res);\n $ret = json_decode($res[1], true);\n \n //input log update ke BMD\n if(!empty($ret['data']['ids'])){\n foreach ($ret['data']['ids'] as $value){\n foreach($resQueryContact as $key => $val){\n if($value != $val['id']) continue;\n $logIds = array(\n 'id' => $val['id'],\n 'email' => $val['email'],\n 'ecouponCode' => $val['ecoupon'],\n 'idFieldEcoupon' => $val['idField'],\n 'ecouponType' => $val['nameField'],\n 'errorMsg' => '',\n 'date_time' => date('Y-m-d H:i:s')\n );\n $this->model->post_log_ecoupon('azswd01.BI_Data.dbo.BI_Emarsys_Update_Ecoupon_Log',$logIds);\n }\n }\n }\n if(!empty($ret['data']['errors'])){\n $error = $ret['data']['errors'];\n $a=0;\n $errMsg = array();\n foreach ($error as $key) {\n $errMsg[$a] = array_keys($error)[$a].\" : \";\n $b=0;\n foreach ($key as $value) {\n $errMsg[$a] = $errMsg[$a].array_keys($key)[$b].\"-\";\n $errMsg[$a] = count($value) > 1? $errMsg[$a].$value.\",\" : $errMsg[$a].$value;\n $b++;\n }\n foreach ($resQueryContact as $item => $val) {\n $errKey = array_keys($error)[$a];\n if($errKey != $val['email']) continue;\n $logErr = array(\n 'id' => $val['id'],\n 'email' => $val['email'],\n 'ecouponCode' => $val['ecoupon'],\n 'idFieldEcoupon' => $val['idField'],\n 'ecouponType' => $val['nameField'],\n 'errorMsg' => $errMsg[$a],\n 'date_time' => date('Y-m-d H:i:s')\n );\n $this->model->post_log_ecoupon('azswd01.BI_Data.dbo.BI_Emarsys_Update_Ecoupon_Log',$logErr);\n }\n $a++;\n }\n } \n }", "title": "" }, { "docid": "b08ac6fe0643d0a0159c1a5ebc91e4b2", "score": "0.54511696", "text": "public function update(chofere $choferes, ChoRequest $request)\n {\n $choferes->update($request->validated());\n\n return redirect()->route('choferes.index', $choferes)->with('status', 'The project was update successfully'); \n\n }", "title": "" }, { "docid": "61773b6b0041ca00cd92e7027d8e0d96", "score": "0.5449172", "text": "public function actionUpdate($cat_id, $id)\n {\n $model = $this->findModel($id);\n \n $selected_categories = PartsCategories::find()->where(['id' => \\yii\\helpers\\ArrayHelper::map($model->cats, 'id', 'id')])->all();\n $selected_cars = Cars::find()->where(['id' => \\yii\\helpers\\ArrayHelper::map($model->avtos, 'id', 'id')])->all();\n $value_cats = \\yii\\helpers\\ArrayHelper::map($selected_categories, 'id', 'id');\n $value_cars = \\yii\\helpers\\ArrayHelper::map($selected_cars, 'id', 'id');\n $current_category = PartsCategories::find()->where(['id' => $cat_id])->one();\n $part_categories = \\yii\\helpers\\ArrayHelper::map(PartsCategories::find()\n ->where(['>', 'parent', 0])\n ->andWhere(['alias' => $current_category->alias])\n ->all(), 'id', 'title');\n $generations = \\yii\\helpers\\ArrayHelper::map((Generations::find()->where(['car_id' => $value_cars])->indexBy('id')->asArray()->all()), 'id', 'id');\n $engines = Engines::find()->where(['generation_id' => $generations])\n ->select(['engines.id', 'engines.title', 'engines.generation_id'])\n ->with([\n 'generation' => function($query){\n $query->select('id, alter_title');\n },\n ])\n ->indexBy('id')->asArray()->all();\n \n $cars = \\yii\\helpers\\ArrayHelper::map(Cars::find()->all(), 'id', 'title');\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash('success', \"Запчасть изменена\");\n return $this->redirect(['view', 'cat_id' => $current_category->id, 'id' => $model->id]);\n }\n return $this->render('update', [\n 'model' => $model,\n 'part_categories' => $part_categories,\n 'current_category' => $current_category,\n 'value_cats' => $value_cats,\n 'engines' => $engines,\n 'cars' => $cars,\n 'value_cars' => $value_cars,\n ]);\n }", "title": "" }, { "docid": "61dd4557ea8c92c2f00098939d964325", "score": "0.5426614", "text": "public function actionUpdate($id,$re)\n {\n if(Yii::$app->request->isAjax){\n $model = $this->findModel($id);\n if ($model->load(Yii::$app->request->post())) {\t\t\t \t\t\t \n if($model->save()){\n\t\t\t\t $cuppoid = Yii::$app->request->post()[\"PorNegociacion\"][\"cuppoid\"];\n\t\t\t\t $cuppocode = Yii::$app->request->post()[\"PorNegociacion\"][\"cuppontype\"];\n\t\t\t\t \n\t\t\t\t if($cuppoid>0){\n\t\t\t\t\t \n\t\t\t\t\t PorNegociacionCupon::deleteAll('neg_id = :neg_id', [':neg_id' => $model->neg_id]);\n\t\t\t\t\t \n\t\t\t\t\t $modelIntro = new PorNegociacionCupon();\n\t\t\t\t\t $modelIntro->neg_id = $model->neg_id;\n\t\t\t\t\t $modelIntro->tpo_id = $model->tpo_id;\n\t\t\t\t\t $modelIntro->flu_id = $cuppoid;\n\t\t\t\t\t $modelIntro->nec_tipo = $cuppocode;\n\t\t\t\t\t $modelIntro->nec_fecha_venta = date('d-m-Y H:i:s');\n\t\t\t\t\t \n\t\t\t\t\t $modelIntro->save();\n\t\t\t\t\t \n\t\t\t\t\t\t$listtpoid = Yii::$app->request->post()[\"PorNegociacion\"][\"listtpoid\"];\n\t\t\t\t\t\t$listCompras = explode(\"|\", $listtpoid);\n\t\t\t\t\t\t\n\t\t\t\t\t\tforeach ($listCompras as $value){\n\t\t\t\t\t\t\t$modelIntro = new PorNegociacionCupon();\n\t\t\t\t\t\t\t$modelIntro->neg_id = $model->neg_id;\n\t\t\t\t\t\t\t$modelIntro->tpo_id = intval ($value);\n\t\t\t\t\t\t\t$modelIntro->flu_id = $cuppoid;\n\t\t\t\t\t\t\t$modelIntro->nec_tipo = $cuppocode;\n\t\t\t\t\t\t\t$modelIntro->nec_fecha_venta = date('d-m-Y H:i:s');\n\t\t\t\t\t\t\t$modelIntro->save();\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t \n return \"Exitoso\";\n }else{\n Yii::$app->response->format = trim(Response::FORMAT_JSON);\n return ActiveForm::validate($model);\n }\n }else{\n\t\t\t\t$infoBusqueda = $this->infoCliente();\n\t\t\t\t$porId = $infoBusqueda['PortafolioId'];\n\t\t\t\t\n\t\t\t\t$searchModelGE = new PorReportoGarantiaEfectivoSearch();\n\t\t\t\t$dataGE = $searchModelGE->mostrarListado($id);\n\t\t\t\t\n\t\t\t\t$searchModelNE = new PorReportoGarantiaTitulosSearch();\n\t\t\t\t$dataTV = $searchModelNE->mostrarListado($id);\n\t\t\t\t\n\t\t\t\t$searchModel = new PorNegociacionSearch();\n\t\t\t\t$porCuponC = $searchModel->obtenerTituloCuponNego($model->neg_id,$model->tpo_id,\"'C'\");\n\t\t\t\t$porCuponCI = $searchModel->obtenerTituloCuponNego($model->neg_id,$model->tpo_id,\"'I'\");\n\t\t\t\t\n\t\t\t\t$porCuponC = array(0 => $porCuponC,1 => $porCuponCI);\n\t\t\t\t\n\t\t\t\treturn $this->renderPartial('update', [\n\t\t\t\t\t'model' => $model,\n\t\t\t\t\t'porId' => $porId,\n\t\t\t\t\t'dataGE' => $dataGE,\n\t\t\t\t\t'dataTV' => $dataTV,\n\t\t\t\t\t'cupones' => array_values($porCuponC),\n\t\t\t\t\t'readonly' => $re,\n\t\t\t\t]); \n }\n\t\t}\n }", "title": "" }, { "docid": "1f7cac1884775581a7b014be91d127d1", "score": "0.54262555", "text": "public function actionUpdateCompanyInfo(){\n $model = \\employer\\models\\Employer::findOne(Yii::$app->user->identity->employer_id);\n \n if($model){\n $model->scenario = \"updateCompanyInfo\";\n \n if(!Yii::$app->params['isDemo']){\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->getSession()->setFlash('success', Yii::t('register', 'Your company information has been updated'));\n return $this->redirect(['setting/index']);\n }\n }\n }\n \n return $this->render('updateCompanyInfo', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "7777b8f25d2786c08e2694141c00117c", "score": "0.5396071", "text": "public function update(Car $car, Request $request)\n {\n $input = array_except(Input::all(), ['_method']);\n\n\t\t$this->validate($request, [\n 'LicencePlate' => ['required','unique:cars,LicencePlate,'.$car->LicencePlate.',LicencePlate','regex:/\\b([A-Z]{3}\\s?(\\d{3}|\\d{2}|d{1})\\s?[A-Z])|([A-Z]\\s?(\\d{3}|\\d{2}|\\d{1})\\s?[A-Z]{3})|(([A-HK-PRSVWY][A-HJ-PR-Y])\\s?([0][2-9]|[1-9][0-9])\\s?[A-HJ-PR-Z]{3})\\b/'],\n 'ClientId' => ['required','exists:clients,Id'],\n\t\t]);\n\n $car->update( $input );\n\n\n return Redirect::route('cars.index')->with('message', 'Car updated');\n }", "title": "" }, { "docid": "fa61e8ce8a3c7e98aa4890d4a315d749", "score": "0.53889453", "text": "public function actionUpdate()\n\t{\n\t\tif( isset( $_POST['AvisEntreprise'] ) )\n\t\t{\n\t\t\t/*\t\tOn récupère l'entrée avec l'identifiant \t\t*/\n\t\t\t$model=$this->loadModel( intval( $_POST['AvisEntreprise']['id_avis_entreprise'] ) );\n\t\t\t/*\t\tSomme pour calculer la note moyenne\t\t*/\n\t\t\t$somme_double = 0;\n\t\t\t$nb_elements_int = 0;\n\t\t\t/*\t\tVariable utilisée pour regarder s'il y a des erreurs lors de l'insértion \t\t*/\n\t\t\t$erreurCounter_int = 0;\n\n\t\t\t/*\t\tOn boucle sur chaque critère de notation \t\t*/\n\t\t\tforeach ( $_POST as $key_str => $value_str ) \n\t\t\t{\n\t\t\t\t/*\t\tOn cherche que les paramètres POST qui sont notés ou avec un commentaire \t\t*/\n\t\t\t\tif( strpos( $key_str, \"_text\" ) )\n\t\t\t\t{\n\t\t\t\t\t$id_critere = intval( str_replace( '_text', '', $key_str ) );\n\t\t\t\t\t//var_dump( $id_critere );\n\t\t\t\t\t$critereModel_obj = EntrepriseAvisCritere::model()->findByAttributes( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_critere_notation_entreprise\" => $id_critere,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_avis_entreprise\" => $model->id_avis_entreprise \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$critereModel_obj->commentaire_evaluation_critere = trim( $value_str );\n\n\t\t\t\t\t$succes_bool_1 = $critereModel_obj->save();\n\t\t\t\t\tif( !$succes_bool_1 )\n\t\t\t\t\t\t$erreurCounter_int++;\n\n\t\t\t\t}\n\t\t\t\t/*\t\tLes paramètres qui sont notés \t\t*/\n\t\t\t\telse if ( strpos( $key_str, \"_note\" ) )\n\t\t\t\t{\n\t\t\t\t\t$id_critere = intval( str_replace( '_note', '', $key_str ) );\n\t\t\t\t\t$critereModel_obj = EntrepriseAvisCritere::model()->findByAttributes( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_critere_notation_entreprise\" => $id_critere,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_avis_entreprise\" => $model->id_avis_entreprise \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$critereModel_obj->note_entreprise_avis = trim( $value_str );\n\n\t\t\t\t\t$succes_bool_2 = $critereModel_obj->save();\n\n\t\t\t\t\tif ( $succes_bool_2 )\n\t\t\t\t\t{\n\t\t\t\t\t\t$somme_double += $value_str;\n\t\t\t\t\t\t$nb_elements_int++;\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$erreurCounter_int++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\n\t\t\t}\n\n\t\t\t$model->note_generale_avis_entreprise = $somme_double / $nb_elements_int;\n\t\t\t$resultBool_bool = $model->save();\n\n\t\t\tvar_dump( $model );\n\t\t\t\n\t\t\tif ( $resultBool_bool && $erreurCounter_int == 0 ) \n\t\t\t{\n\t\t\t\t/*\t\tOn redirige vers l'employé concerné \t\t*/\n\t\t\t\t$url = $this->createUrl( 'entreprise/view', array( \t'id' => $model->id_entreprise ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'error' => $erreurCounter_int ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'update' => 'true' ) );\n\t\t\t\t$this->redirect( $url );\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$erreurCounter_int++;\n\t\t\t\t$url = $this->createUrl( 'entreprise/view', array( \t'id' => $model->id_entreprise ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'error' => $erreurCounter_int ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'update' => 'true' ) );\n\t\t\t\t$this->redirect( $url );\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a033d7b7c72044d5281013c73bc3cc8f", "score": "0.53745896", "text": "public function actionUpdate($Kd_Urusan, $Kd_Bidang, $Kd_Prog)\n {\n $model = $this->findModel($Kd_Urusan, $Kd_Bidang, $Kd_Prog);\n // $model = new RefProgram();\n\n $data_urusan = ArrayHelper::map(RefUrusan::find()->all(),'Kd_Urusan','Nm_Urusan');\n $kamus_program = ArrayHelper::map(RefKamusProgram::find()->orderby('Nm_Program')->all(),'Nm_Program','Nm_Program');\n $data_bidang = []; // ArrayHelper::map(RefBidang::find()->all(),'Kd_Bidang','Nm_Bidang');\n $data_unit = []; // ArrayHelper::map(RefUnit::find()->all(),'Kd_Unit','Nm_Unit');\n $data_sub = []; // ArrayHelper::map(RefSubUnit::find()->all(),'Kd_Sub','Nm_Sub_Unit');\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'Kd_Urusan' => $model->Kd_Urusan, 'Kd_Bidang' => $model->Kd_Bidang, 'Kd_Prog' => $model->Kd_Prog]);\n } else {\n return $this->render('create_form', [\n 'model' => $model,\n 'data_urusan' => $data_urusan,\n 'data_bidang' => $data_bidang,\n 'data_unit' => $data_unit,\n 'data_sub' => $data_sub,\n 'kamus_program' => $kamus_program,\n ]);\n }\n\n // $model = $this->findModel($Kd_Urusan, $Kd_Bidang, $Kd_Prog);\n\n\n // $kp=$model->Kd_Prog;\n\n // if ($model->load(Yii::$app->request->post()) && $model->save()) {\n // return $this->redirect(['view', 'Kd_Urusan' => $model->Kd_Urusan, 'Kd_Bidang' => $model->Kd_Bidang, 'Kd_Prog' => $model->Kd_Prog]);\n // } else {\n // return $this->render('update', [\n // 'model' => $model,\n // 'kp' => $kp,\n // ]);\n // }\n }", "title": "" }, { "docid": "f962ddc0c6902d7ca6a8595b02a01e98", "score": "0.53745395", "text": "public function vehicle_model_edit() {\n $id = $this->uri->segment(4);\n CheckAdminLoginSession();\t\t\n\t\t$post_data = $this->input->post();\n\t\tif(!empty($post_data)) { \n\t\t\t$this->form_validation->set_error_delimiters('<span class=\"text-danger\">', '</span>');\n\t\t\t$this->form_validation->set_rules('name', 'Name', 'required|trim');\t\t\n\t\t\t$this->form_validation->set_rules('description', 'Description', 'required|trim');\t\t\t\t\n\t\t\tif($this->form_validation->run() == FALSE) { } else {\n $slug = strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', $slug_str)));\n\t\t\t\t$data = array(\t\t\t\t\t\t\t\t\t\n\t\t\t\t'name' => $this->input->post('name'),\n\t\t\t\t'description' => $this->input->post('description'),\n\t\t\t\t'status' => $this->input->post('status'),\n\t\t\t\t'modified_date' => date('Y-m-d H:i:s')\n\t\t\t\t); \n\t\t\t\t$id = $this->admin_model->setUpdateData($this->vehicle_model,$data,$id);\n\t\t\t\t$this->session->set_flashdata('message','Your Vehicle Model has been edited successfully');\n\t\t redirect('admin/vehicle/vehicle-model','refresh');\n\t\t }\n }\n $data['dataCollection'] = $this->admin_model->getDataCollectionByID($this->vehicle_model,$id);\n\n\t\t$this->load->view('admin/include/head');\n\t\t$this->load->view('admin/include/header');\n\t\t$this->load->view('admin/include/sidebar');\n\t\t$this->load->view('admin/vehicle/vehicle_model_edit',$data);\n\t\t$this->load->view('admin/include/footer');\n\t\t$this->load->view('admin/include/foot');\n\t}", "title": "" }, { "docid": "cbd8c91748bc081446a59a3716675ccb", "score": "0.53677684", "text": "public function updateEav()\n {\n /**\n * @var $model CmsUser\n */\n $model = $this->model;\n\n $model = $this->model;\n $relatedModel = $model->relatedPropertiesModel;\n\n $is_saved = false;\n $redirect = null;\n\n $rr = new RequestResponse();\n\n if ($post = \\Yii::$app->request->post()) {\n $model->load(\\Yii::$app->request->post());\n $relatedModel->load(\\Yii::$app->request->post());\n }\n\n\n if ($rr->isRequestPjaxPost()) {\n if (!\\Yii::$app->request->post(RequestResponse::DYNAMIC_RELOAD_NOT_SUBMIT)) {\n $model->load(\\Yii::$app->request->post());\n $relatedModel->load(\\Yii::$app->request->post());\n\n $model->save();\n\n if ($relatedModel->save()) {\n\n $is_saved = true;\n\n if (\\Yii::$app->request->post('submit-btn') == 'save') {\n } else {\n $redirect = $this->url;\n }\n\n //$model->refresh();\n $relatedModel = $model->relatedPropertiesModel;\n }\n }\n\n }\n\n\n return $this->render(\"update-eav\", [\n 'model' => $model,\n 'relatedModel' => $relatedModel,\n 'is_saved' => $is_saved,\n 'submitBtn' => \\Yii::$app->request->post('submit-btn'),\n 'redirect' => $redirect,\n ]);\n }", "title": "" }, { "docid": "11501963cb882610ab7cf40fa86a6c0f", "score": "0.5360227", "text": "public function update()\n {\n // TODO find diff (actual/new_in_model) and make sql\n }", "title": "" }, { "docid": "eca5e71062ac254aab536fb713f94d9d", "score": "0.53508973", "text": "public function actionUpdate($id)\n {\n\t\t $model = $this->findModel($id);\n\t\t \n\t\t Yii::$app->view->title = 'ปรับปรุงรายการ Englishtest Data: ' . $model->ID.' - '. $this->moduletitle;\n\t\t \n if ($model->load(Yii::$app->request->post())) {\n\t\t\tif($model->save()){\n\t\t\t\tAdzpireComponent::succalert('edtflsh', 'ปรับปรุงรายการเรียบร้อย');\n\t\t\treturn $this->redirect(['view', 'id' => $model->ID]);\t\n\t\t\t}else{\n\t\t\t\tAdzpireComponent::dangalert('edtflsh', 'ปรับปรุงรายการไม่ได้');\n\t\t\t}\n print_r($model->getErrors());exit();\n } \n\n return $this->render('update', [\n 'model' => $model,\n 'locarr' => MainLocation::getAutoCompleteList(),\n ]);\n \n\n }", "title": "" }, { "docid": "94d19a549285b30cf6c9d825a7ea3b22", "score": "0.534785", "text": "public function update(Modelable $model) : Modelable;", "title": "" }, { "docid": "48bdea51c347f5f95b66d9dd64649e9d", "score": "0.53433883", "text": "public function actionUpdate($Tahun, $Kd_Prov, $Kd_Kab, $Kd_Kec, $Kd_Kel, $Kd_Urut_Kel) {\n $model = $this->findModel($Tahun, $Kd_Prov, $Kd_Kab, $Kd_Kec, $Kd_Kel, $Kd_Urut_Kel);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'Tahun' => $model->Tahun, 'Kd_Prov' => $model->Kd_Prov, 'Kd_Kab' => $model->Kd_Kab, 'Kd_Kec' => $model->Kd_Kec, 'Kd_Kel' => $model->Kd_Kel, 'Kd_Urut_Kel' => $model->Kd_Urut_Kel]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f1ac09e7eb89c3ece4ea722b861cfd6c", "score": "0.53430533", "text": "public function update(Request $request, Ecom $ecom)\n {\n //\n }", "title": "" }, { "docid": "32439358fa7389fa3589869d6a084351", "score": "0.5334649", "text": "public function actionUpdate() {\n $id = Yii::$app->request->get('id');\n $model = $this->findModel($id);\n\n $fe = explode('-', $model->fecha);\n $model->fecha = $fe[2] . '-' . $fe[1] . '-' . $fe[0];\n\n if ($model->load(Yii::$app->request->post())) {\n $fe = explode('-', $model->fecha);\n $model->fecha = $fe[2] . '-' . $fe[1] . '-' . $fe[0];\n $model->save();\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f5c6c762d84f4bd59c4cd19aa470c427", "score": "0.5330367", "text": "public function actionUpdate($id) {\n $this->title_action = Yii::t('smith', Yii::t('smith', 'Atualizar Colaborador'));\n $this->pageTitle = Yii::t('smith', Yii::t('smith', 'Atualizar Colaborador'));\n $model = $this->loadModel($id);\n $modelEquipe = new Equipe;\n $modelFerias = new ColaboradorHasFerias;\n $modelEquipes = new ColaboradorHasEquipe;\n $modelSalario = new ColaboradorHasSalario;\n $modelColaboradorHasParametro = ColaboradorHasParametro::model()->findByAttributes(array('fk_colaborador' => $id));\n $modelParametros = EmpresaHasParametro::model()->findByAttributes(array('fk_empresa' => MetodosGerais::getEmpresaId()));\n\n $horario_entrada = (isset($modelColaboradorHasParametro)) ? $modelColaboradorHasParametro->horario_entrada : $modelParametros->horario_entrada;\n $horario_saida = (isset($modelColaboradorHasParametro)) ? $modelColaboradorHasParametro->horario_saida : $modelParametros->horario_saida;\n\n if (isset($_POST['Equipe'])) {\n $modelEquipe->attributes = $_POST['Equipe'];\n $user = UserGroupsUser::model()->findByPk(Yii::app()->user->id);\n if (isset($user->fk_empresa))\n $modelEquipe->fk_empresa = $user->fk_empresa;\n\n if ($modelEquipe->save()) {\n Yii::app()->user->setFlash('success', Yii::t('smith', 'Equipe inserida com sucesso.'));\n $this->refresh();\n }\n }\n\n if (isset($_POST['Colaborador'])) {\n $start = MetodosGerais::inicioContagem();\n $fk_empresa = MetodosGerais::getEmpresaId();\n $salario = MetodosGerais::real2float($_POST['Colaborador']['salario']);\n $valor_hora = MetodosGerais::real2float($_POST['Colaborador']['valor_hora']);\n\n if($salario != $model->salario){\n $chs = new ColaboradorHasSalario;\n $chs->fk_colaborador = (int)$model->id;\n $chs->fk_empresa = $fk_empresa;\n $chs->data_inicio = date('Y-m-d');\n $chs->valor = $salario;\n $chs->save();\n }\n $flag = $model->fk_equipe == $_POST['Colaborador']['fk_equipe'] ? false : true;\n $model->fk_empresa = $fk_empresa;\n $model->attributes = $_POST['Colaborador'];\n $model->nome = $_POST['Colaborador']['nome'];\n $model->sobrenome = $_POST['Colaborador']['sobrenome'];\n $model->salario = $salario;\n $model->valor_hora = $valor_hora;\n $model->fk_equipe = $_POST['Colaborador']['fk_equipe'];\n $model->ativo = 1;\n\n if ($model->save()) {\n if ($flag)\n ColaboradorHasEquipe::model()->saveRelation($id, $model->fk_equipe);\n if (!isset($modelColaboradorHasParametro)) {\n $modelColaboradorHasParametro = new ColaboradorHasParametro();\n $modelColaboradorHasParametro->fk_colaborador = $id;\n $modelColaboradorHasParametro->fk_empresa = MetodosGerais::getEmpresaId();\n $modelColaboradorHasParametro->horario_entrada = $_POST['horario_entrada'];\n $modelColaboradorHasParametro->horario_saida = $_POST['horario_saida'];\n $modelColaboradorHasParametro->save();\n } else {\n $modelColaboradorHasParametro->horario_entrada = $_POST['horario_entrada'];\n $modelColaboradorHasParametro->horario_saida = $_POST['horario_saida'];\n $modelColaboradorHasParametro->save();\n }\n\n\n LogAcesso::model()->saveAcesso('Configurações', 'Atualizar Colaborador', 'Atualizar', MetodosGerais::tempoResposta($start));\n Yii::app()->user->setFlash('success', Yii::t('smith', 'Colaborador atualizado com sucesso.'));\n $this->redirect(array('index'));\n } else {\n Yii::app()->user->setFlash('error', Yii::t('smith', 'Colaborador não pôde ser atualizado.'));\n }\n }\n\n $model->salario = MetodosGerais::float2real($model->salario);\n $model->valor_hora = MetodosGerais::float2real($model->valor_hora);\n\n $this->render('update', array(\n 'model' => $model,\n 'modelEquipe' => $modelEquipe,\n 'modelSalario' => $modelSalario,\n 'modelFerias' => $modelFerias,\n 'modelEquipes' => $modelEquipes,\n 'horario_entrada' => $horario_entrada,\n 'horario_saida' => $horario_saida\n ));\n }", "title": "" }, { "docid": "397b637da241b90ab00009c25242037e", "score": "0.53253484", "text": "public function update(Request $request)\n {\n $request->validate([\n 'librarybookCategory'=>'required',\n 'librarybookId'=>'required',\n 'librarybookName'=>'required',\n 'librarybookPrice'=>'required',\n 'librarybookDescription'=>'required'\n \n ]);\n\n $updating=DB::table('productmodels')->where('id',$request->input('id'))->update([\n 'librarybookCategory'=>$request->input('librarybookCategory'),\n 'librarybookId'=>$request->input('librarybookId'),\n 'librarybookName'=>$request->input('librarybookName'),\n 'librarybookPrice'=>$request->input('librarybookPrice'),\n \n 'librarybookDescription'=>$request->input('librarybookDescription')\n ]);\n\n \n return redirect('/productview');\n \n\n\n }", "title": "" }, { "docid": "3e8182c7010c68503c7f9d6220a55385", "score": "0.530543", "text": "public function actionUpdate($id)\n{\n$block_id\t=\t$this->getBlockId();\n$model=$this->loadModel($id);\n\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n\nif(isset($_POST['Charge']))\n{\n$model->attributes=$_POST['Charge'];\nif($model->save())\n$this->redirect(array('view','id'=>$model->id));\n}\n\n$this->render('update',array(\n'model'=>$model,'block_id'\t=>\t$block_id\n));\n}", "title": "" }, { "docid": "88621c41402dee3b427090c32ea65fa2", "score": "0.5290679", "text": "public function actionUpdate()\n {\n $id = Yii::$app->request->get('id');\n $model = $this->findModel($id);\n $pass1 = $model->pass;\n if ($model->load(Yii::$app->request->post())) {\n if($pass1 != $model->pass) {\n $model->pass = PublicController::encrypt($model->pass);\n }\n if($model->save()) {\n return $this->redirect(['index', 'id' => $model->id]);\n }else{\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "92b61827a512d159d29d6460e3f0aa88", "score": "0.52857786", "text": "public function actionUpdate($id_informacion = NULL, $id_vehiculo = NULL) {\n if (isset($_POST['GestionSolicitudCredito'])) {\n $id = $this->getIdSolicitudCredito($_POST['GestionSolicitudCredito']['id_informacion'], $_POST['GestionSolicitudCredito']['id_vehiculo']);\n } else {\n $id = $this->getIdSolicitudCredito($id_informacion, $id_vehiculo);\n }\n\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['GestionSolicitudCredito'])) {\n\n// echo '<pre>';\n// print_r($_POST);\n// echo '</pre>';\n// die();\n //die('enter post');\n $nombre_cliente = $this->getNombresInfo($_POST['GestionSolicitudCredito']['id_informacion']) . ' ' . $this->getApellidosInfo($_POST['GestionSolicitudCredito']['id_informacion']);\n $id_asesor = Yii::app()->user->getId();\n $dealer_id = $this->getConcesionarioDealerId($id_asesor);\n $cargo_id = (int) Yii::app()->user->getState('cargo_id');\n $grupo_id = (int) Yii::app()->user->getState('grupo_id');\n $result = FALSE;\n date_default_timezone_set('America/Guayaquil'); // Zona horaria de Guayaquil Ecuador\n $model->attributes = $_POST['GestionSolicitudCredito'];\n $model->id_informacion = $_POST['GestionSolicitudCredito']['id_informacion'];\n $model->id_vehiculo = $_POST['GestionSolicitudCredito']['id_vehiculo'];\n $model->estado_civil = $_POST['GestionSolicitudCredito']['estado_civil'];\n $model->year = $_POST['GestionSolicitudCredito']['year'];\n $model->status = 0;\n $model->fecha = date(\"Y-m-d H:i:s\");\n $model->trabaja_conyugue = $_POST['GestionSolicitudCredito']['trabaja_conyugue'];\n if (isset($_POST['GestionSolicitudCredito']['ruc']) && !empty($_POST['GestionSolicitudCredito']['ruc']))\n $model->ruc = $_POST['GestionSolicitudCredito']['ruc'];\n if (isset($_POST['GestionSolicitudCredito']['pasaporte']) && !empty($_POST['GestionSolicitudCredito']['pasaporte']))\n $model->pasaporte = $_POST['GestionSolicitudCredito']['pasaporte'];\n\n $valor = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['valor']);\n $valor = str_replace('.', \",\", $valor);\n $valor = (int) str_replace('$', \"\", $valor);\n\n $monto_financiar = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['monto_financiar']);\n $monto_financiar = str_replace('.', \",\", $monto_financiar);\n $monto_financiar = (int) str_replace('$', \"\", $monto_financiar);\n\n $entrada = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['entrada']);\n $entrada = str_replace('.', \",\", $entrada);\n $entrada = (int) str_replace('$', \"\", $entrada);\n\n $cuotamensual = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['cuota_mensual']);\n $cuotamensual = str_replace('.', \",\", $cuotamensual);\n $cuotamensual = (int) str_replace('$', \"\", $cuotamensual);\n\n $sueldo = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['sueldo_mensual']);\n $sueldo = str_replace('.', \",\", $sueldo);\n $sueldo = (int) str_replace('$', \"\", $sueldo);\n\n $sueldo = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['sueldo_mensual']);\n $sueldo = str_replace('.', \",\", $sueldo);\n $sueldo = (int) str_replace('$', \"\", $sueldo);\n\n $model->valor = $valor;\n $model->monto_financiar = $monto_financiar;\n $model->entrada = $entrada;\n $model->sueldo_mensual = $sueldo;\n $model->cuota_mensual = $cuotamensual;\n $model->meses_trabajo = $_POST['GestionSolicitudCredito']['meses_trabajo'];\n $model->meses_trabajo_conyugue = $_POST['GestionSolicitudCredito']['meses_trabajo_conyugue'];\n $model->numero = $_POST['GestionSolicitudCredito']['numero'];\n\n # INGRESAR NUEVOS VALORES POSIBLES EN TABLA GESTION_FINANCIAMIENTO - UPDATE\n $fin = GestionFinanciamiento::model()->find(array('condition' => \"id_informacion = {$_POST['GestionSolicitudCredito']['id_informacion']} AND id_vehiculo = {$_POST['GestionSolicitudCredito']['id_vehiculo']}\"));\n $fin->precio_vehiculo = $valor;\n $fin->valor_financiamiento = $monto_financiar;\n $fin->cuota_inicial = $entrada;\n $fin->cuota_mensual = $cuotamensual;\n $fin->plazos = $_POST['GestionSolicitudCredito']['plazo'];\n $fin->tasa = $_POST['GestionSolicitudCredito']['taza'];\n $fin->update();\n\n if (isset($_POST['GestionSolicitudCredito']['sueldo_mensual_conyugue']) && !empty($_POST['GestionSolicitudCredito']['sueldo_mensual_conyugue'])) {\n $sueldo_conyugue = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['sueldo_mensual_conyugue']);\n $sueldo_conyugue = str_replace('.', \",\", $sueldo_conyugue);\n $sueldo_conyugue = (int) str_replace('$', \"\", $sueldo_conyugue);\n $model->sueldo_mensual_conyugue = $sueldo_conyugue;\n }\n\n if (isset($_POST['GestionSolicitudCredito']['otros_ingresos']) && !empty($_POST['GestionSolicitudCredito']['otros_ingresos'])) {\n $otros_ingresos = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['otros_ingresos']);\n $otros_ingresos = str_replace('.', \",\", $otros_ingresos);\n $otros_ingresos = (int) str_replace('$', \"\", $otros_ingresos);\n $model->otros_ingresos = $otros_ingresos;\n }\n if (isset($_POST['GestionSolicitudCredito']['numero_cargas']) && !empty($_POST['GestionSolicitudCredito']['numero_cargas'])) {\n $model->numero_cargas = $_POST['GestionSolicitudCredito']['numero_cargas'];\n } \n\n if (isset($_POST['GestionSolicitudCredito']['total_ingresos']) && !empty($_POST['GestionSolicitudCredito']['total_ingresos'])) {\n $total_ingresos = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['total_ingresos']);\n $total_ingresos = str_replace('.', \",\", $total_ingresos);\n $total_ingresos = (int) str_replace('$', \"\", $total_ingresos);\n $model->total_ingresos = $total_ingresos;\n }\n if (isset($_POST['GestionSolicitudCredito']['gastos_arriendo']) && !empty($_POST['GestionSolicitudCredito']['gastos_arriendo'])) {\n $model->gastos_arriendo = $this->setFormat($_POST['GestionSolicitudCredito']['gastos_arriendo']);\n }\n if (isset($_POST['GestionSolicitudCredito']['gastos_alimentacion_otros']) && !empty($_POST['GestionSolicitudCredito']['gastos_alimentacion_otros'])) {\n $model->gastos_alimentacion_otros = $this->setFormat($_POST['GestionSolicitudCredito']['gastos_alimentacion_otros']);\n }\n if (isset($_POST['GestionSolicitudCredito']['gastos_educacion']) && !empty($_POST['GestionSolicitudCredito']['gastos_educacion'])) {\n $model->gastos_educacion = $this->setFormat($_POST['GestionSolicitudCredito']['gastos_educacion']);\n }\n if (isset($_POST['GestionSolicitudCredito']['gastos_prestamos']) && !empty($_POST['GestionSolicitudCredito']['gastos_prestamos'])) {\n $model->gastos_prestamos = $this->setFormat($_POST['GestionSolicitudCredito']['gastos_prestamos']);\n }\n if (isset($_POST['GestionSolicitudCredito']['gastos_tarjetas_credito']) && !empty($_POST['GestionSolicitudCredito']['gastos_tarjetas_credito'])) {\n $model->gastos_tarjetas_credito = $this->setFormat($_POST['GestionSolicitudCredito']['gastos_tarjetas_credito']);\n }\n if (isset($_POST['GestionSolicitudCredito']['total_egresos']) && !empty($_POST['GestionSolicitudCredito']['total_egresos'])) {\n $model->total_egresos = $this->setFormat($_POST['GestionSolicitudCredito']['total_egresos']);\n }\n $model->tipo_producto = $_POST['GestionSolicitudCredito']['tipo_producto'];\n\n $tipo_vivienda = $_POST['GestionSolicitudCredito']['habita'];\n switch ($tipo_vivienda) {\n case 'Propia':\n $vav = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['avaluo_propiedad']);\n $vav = str_replace('.', \",\", $vav);\n $vav = (int) str_replace('$', \"\", $vav);\n $model->avaluo_propiedad = $vav;\n break;\n case 'Rentada':\n $vav = str_replace(',', \"\", $_POST['GestionSolicitudCredito']['valor_arriendo']);\n $vav = str_replace('.', \",\", $vav);\n $vav = (int) str_replace('$', \"\", $vav);\n $model->valor_arriendo = $vav;\n\n break;\n case 'Vive con Familiares':\n break;\n\n default:\n break;\n }\n\n if (isset($_POST['GestionSolicitudCredito']['otros_activos']) && !empty($_POST['GestionSolicitudCredito']['otros_activos'])) {\n $model->otros_activos = $_POST['GestionSolicitudCredito']['otros_activos'];\n }\n if (isset($_POST['GestionSolicitudCredito']['otros_activos2']) && !empty($_POST['GestionSolicitudCredito']['otros_activos2'])) {\n $model->otros_activos2 = $_POST['GestionSolicitudCredito']['otros_activos2'];\n }\n for($i = 0; $i <= count($_POST['activos']); $i++){\n if(!empty($_POST['activos'][$i])){\n $model->tipo_activo1 = $_POST['activos'][$i];\n }\n }\n for($i = 0; $i <= count($_POST['activos2']); $i++){\n if(!empty($_POST['activos2'][$i])){\n $model->tipo_activo2 = $_POST['activos2'][$i];\n }\n }\n $hoja_entrega = new GestionHojaEntregaSolicitud;\n $hoja_entrega->id_informacion = $_POST['GestionSolicitudCredito']['id_informacion'];\n $hoja_entrega->id_vehiculo = $_POST['GestionSolicitudCredito']['id_vehiculo'];\n $hoja_entrega->status = 'pendiente';\n $hoja_entrega->save();\n // INSERTAR ID DEL ASESOR CREDITO FYI QUE EDITA LA SOLICITUD\n if(Yii::app()->user->getState('cargo_id') == 87){\n $model->edit = (int) Yii::app()->user->getId();\n }\n //die('before save');\n if ($model->validate()) {\n \n } else {\n echo '<pre>';\n print_r($model->getErrors());\n echo '</pre>';\n }\n if ($model->save()) {\n require_once 'email/mail_func.php';\n //---- SEND EMAIL ASESOR DE CREDITO\n //die('name concesionario: '.$this->getNameConcesionario($id_asesor));\n $asunto = 'Kia Motors Ecuador SGC - Solicitud de Crédito ';\n\n\n $general = '<body style=\"margin: 10px;\">\n <div style=\"width:600px; margin:0 auto; font-family:Arial, Helvetica, sans-serif; font-size: 12px;\">\n <div align=\"\">\n <img src=\"images/header_mail.jpg\">\n <p></p>\n <p style=\"margin: 2px 0;\">Estimado/a Asesor de Crédito</p><br />\n <p style=\"margin: 2px 0;\">Se ha realizado una solicitud de crédito:</p>\n\n <br>\n <table width=\"600\" cellpadding=\"\">';\n\n $general .= '<tr><td><strong>Cliente:</strong></td><td> ' . $nombre_cliente . '</td></tr> '\n . '<tr><td><strong>Asesor Comercial:</strong></td><td> ' . $this->getResponsable($id_asesor) . '</td></tr>\n <tr><td><strong>Concesionario:</strong></td><td>' . $this->getNameConcesionario($id_asesor) . '</td></tr> \n <tr><td><strong>Modelo:</strong></td><td> ' . $this->getModeloTestDrive($_POST['GestionSolicitudCredito']['id_vehiculo']) . '</td></tr>\n <tr><td><strong>Fecha:</strong></td><td> ' . date(\"d\") . \"/\" . date(\"m\") . \"/\" . date(\"Y\") . '</td></tr>\n <tr><td><strong>Hora:</strong></td><td>' . date(\"H:i:s\") . '</td></tr>';\n\n $general .= ' </table>\n <br/>\n <p style=\"margin: 2px 0;\"><a href=\"https://www.kia.com.ec/intranet/usuario/index.php/site/cotizacion?id_informacion=' . $_POST['GestionSolicitudCredito']['id_informacion'] . '&amp;id_vehiculo=' . $_POST['GestionSolicitudCredito']['id_vehiculo'] . '\">Ver Solicitud de Crédito</a></p>\n <p></p>\n <p style=\"margin: 2px 0;\">Saludos cordiales,</p>\n <p style=\"margin: 2px 0;\">SGC</p>\n <p style=\"margin: 2px 0;\">Kia Motors Ecuador</p>\n <img src=\"images/footer.png\">\n </div>\n </div>\n </body>';\n //die('table: '.$general);\n $codigohtml = $general;\n $headers = 'From: [email protected]' . \"\\r\\n\";\n $headers .= 'Content-type: text/html' . \"\\r\\n\";\n \n\n if((Yii::app()->user->getState('cargo_id') != 87) && (GestionFirma::model()->count(array('condition' => \"id_informacion = {$_POST['GestionSolicitudCredito']['id_informacion']}\"))) > 0){\n $emailAsesorCredito = $this->getEmailAsesorCredito($dealer_id);\n $emailJefeSucursal = $this->getEmailJefeConcesion($cargo_id, $grupo_id, $dealer_id);\n //die('email asesor: '.$emailAsesorCredito);\n sendEmailInfo('[email protected]', \"Kia Motors Ecuador\", $emailAsesorCredito, html_entity_decode($asunto), $codigohtml);\n ## ENVIO DE EMAIL A JEFE DE SUCURSAL\n sendEmailInfo('[email protected]', \"Kia Motors Ecuador\", $emailJefeSucursal, html_entity_decode($asunto), $codigohtml);\n }\n \n //die('enter save'); \n $this->redirect(array('view', 'id' => $model->id));\n }\n }\n\n $this->render('create', array(\n 'model' => $model, 'id_informacion' => $id_informacion, 'id_vehiculo' => $id_vehiculo\n ));\n }", "title": "" }, { "docid": "e5165ca5e4b6eda31519f7386ae1c07f", "score": "0.52736956", "text": "public function update(Request $request, EbayProductsModel $ebayProductsModel)\n {\n //\n }", "title": "" }, { "docid": "0f60a3eb1fa6d33ed949509b91e96b59", "score": "0.52703696", "text": "public function actionUpdate($id) {\n $model = $this->loadModel($id);\n\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Clientes'])) {\n \t\n $model->attributes = $_POST['Clientes'];\n\t\t\t\n\t\t\tif (isset($_POST['Clientes']['estrella']))\n\t\t\t\t$model->estrella = $_POST['Clientes']['estrella'];\n\t\t\telse\n\t\t\t\t$model->estrella = 0;\n\t\t\tif (($model->tipoCliente != Clientes::TYPE_INVERSOR) && ($model->tipoCliente != Clientes::TYPE_TOMADOR_E_INVERSOR)) {\n\t\t\t\t$model->porcentajeSobreInversion = 0;\n\t\t\t\t$model->estrella = 0;\n\t\t\t}\n\t\t\t\n if ($model->save())\n $this->redirect(array('view', 'id' => $model->id));\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "title": "" }, { "docid": "8da1e55ca98ec4f408020e70111dc25d", "score": "0.52607363", "text": "public function actionAsistenteupdate($id)\n {\n $model = $this->findAsistenteModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['apoyoadmin/asistenteview', 'id' => $model->id]);\n }\n\n return $this->render('/asistente/update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "120a794151aeada4cd56524aa599dcce", "score": "0.5257747", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\t\t$invoice = $model->invoice_number;\n\t\t$models = EbrSales::model()->getSalesByInvoice($model->invoice_number);\n\t\t$updatedModels = array();\n\t\t$allShops = Utilities::getShopsListForGroup($models[0]->group_id);\n\t\t//$invoicenumber = $models[0]->invoice_number;\n\t\tforeach($models as $j=>$sale){\n\t\t\t$previousQuantity[$j] = $sale->quantity;\n\t\t\t$previoudProduct[$j] = $sale->product_id;\n\t\t\t$previousVendor[$j] = $sale->vendor_id;\n\t\t\t$previousShop[$j] = $sale->shop_id;\n\t\t\t$product = EbrProducts::model()->findByPk($sale->product_id)->product_name;\n\t\t\t$vendor = EbrVendor::model()->findByPk($sale->vendor_id)->vendor_name;\n\t\t\t$models[$j]->client_id = EbrClient::model()->findByPk($sale->client_id)->client_name;\n\t\t\t$models[$j]->product_id = $product.','.$vendor;\n\t\t}\n\t\t\n\t\tif(isset($_POST['EbrSales']))\n\t\t{\n\t\t\tif(isset($_POST['rows']) && !empty($_POST['rows']) && empty($_POST['formSubmit'])){\n\t\t\t\t$rowsAdd =$_POST['rows'];\n\t\t\t\t$i=count($_POST['EbrSales']);\n\t\t\t\t$total = $i+$rowsAdd;\n\t\t\t\twhile($i<$total){\n\t\t\t\t\t$models[$i+1]=new EbrSales;\n\t\t\t\t\t$models[$i+1]->invoice_number = $invoice;\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\n\t\t\t}else if(isset($_POST['rows']) && !empty($_POST['formSubmit']) ){\n\t\t\t\t$valid=true;\n\t\t\t\t$valid2=true;\n\t\t\t\t$valid3 = true;\n\t\t\t\t$group = $_POST['EbrSales'][0]['group_id'];\n\t\t\t\t$shop = $_POST['EbrSales'][0]['shop_id'];\n\t\t\t\t$client = '';\n\t\t\t\tif($_POST['EbrSales'][0]['client_id'])\n\t\t\t\t\t$client=Utilities::getClient($_POST['EbrSales'][0]['client_id']);\n\t\t\t\t\n\t\t\t\t$date = $_POST['EbrSales'][0]['sales_date'];\n\t\t\t\t$i=0;\n\t\t\t\tforeach ($_POST['EbrSales'] as $j=>$sale) {\n\t\t\t\t\tif (isset($_POST['EbrSales'][$j])) {\n\t\t\t\t\t\t$updatedModels[$j]=$this->loadModel($_POST['EbrSales'][$j]['sale_id']);; // if you had static model only\n\t\t\t\t\t\t$updatedModels[$j]->attributes=$sale;\n\t\t\t\t\t\t$str = array();\n\t\t\t\t\t\t$productEntered[$j] = $updatedModels[$j]->product_id;\n\t\t\t\t\t\t$clientEntered[$j] = $updatedModels[$j]->client_id;\n\t\t\t\t\t\tif(isset($models[$j]->product_id)){\n\t\t\t\t\t\t\t$str = explode(',',$updatedModels[$j]->product_id);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(isset($str[0]))\n\t\t\t\t\t\t\t$product = $str[0];\n\t\t\t\t\t\tif(isset($str[1]))\n\t\t\t\t\t\t\t$vendor = $str[1];\n\t\t\t\t\t\tif(isset($vendor))\n\t\t\t\t\t\t\t$updatedModels[$j]->vendor_id= Utilities::getVendorId($vendor);\n\t\t\t\t\t\tif(isset($product))\n\t\t\t\t\t\t\t$updatedModels[$j]->product_id=Utilities::getProductId($product);\n\t\t\t\t\t\t$updatedModels[$j]->invoice_number = $invoice;\n\t\t\t\t\t\t$updatedModels[$j]->group_id=$group;\n\t\t\t\t\t\t$updatedModels[$j]->shop_id=$shop;\n\t\t\t\t\t\t$updatedModels[$j]->client_id=$client;\n\t\t\t\t\t\t$updatedModels[$j]->sales_date=$date;\n\t\t\t\t\t\t$valid=$updatedModels[$j]->validate() && $valid;\n\t\t\t\t\t\tif($valid){\n\t\t\t\t\t\t\tif($previoudProduct[$j] == $updatedModels[$j]->product_id && $previousShop[$j] == $updatedModels[$j]->shop_id && $previousVendor[$j] == $updatedModels[$j]->vendor_id){\n\t\t\t\t\t\t\t\t$valid = EbrStock::model()->checkAndUpdateStock($updatedModels[$j]->product_id, $updatedModels[$j]->shop_id, $updatedModels[$j]->vendor_id, $updatedModels[$j]->quantity,$previousQuantity[$j]);\n\t\t\t\t\t\t\t\tif($valid == 'quantityFail'){\n\t\t\t\t\t\t\t\t\t//$model->addErrors('Invalid Quantity');\n\t\t\t\t\t\t\t\t\t$valid2 = false;\n\t\t\t\t\t\t\t\t\t$updatedModels[$j]->addError('quantity', 'Quantity not available');\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$valid = EbrStock::model()->checkAndLessStock($updatedModels[$j]->product_id, $updatedModels[$j]->shop_id, $updatedModels[$j]->vendor_id, $updatedModels[$j]->quantity);\n\t\t\t\t\t\t\t\tif($valid == 'quantityFail'){\n\t\t\t\t\t\t\t\t\t//$model->addErrors('Invalid Quantity');\n\t\t\t\t\t\t\t\t\t$valid2 = false;\n\t\t\t\t\t\t\t\t\t$updatedModels[$j]->addError('quantity', 'Quantity not available');\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tEbrStock::model()->addStockandLessSale($previoudProduct[$j], $previousShop[$j], $previousVendor[$j], $previousQuantity[$j]);\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}\n\t\t\t\t\t\tif($valid && $valid2){\n\t\t\t\t\t\t\t$validModel[$i]=$updatedModels[$j];\n\t\t\t\t\t\t\t$i++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ($valid && $valid2) {\n\t\t\t\t\t$i=0;\n\t\t\t\t\t$j=count($validModel);\n\t\t\t\t\twhile ($i<$j) {\n\t\t\t\t\t\t$validModel[$i]->save(false);// models have already been validated\n\t\t\t\t\t\t$i++;\n\t\t\t\t\t}\n\t\t\t\t\t// anything else that you want to do, for example a redirect to admin page\n\t\t\t\t\tYii::app()->user->setFlash('printInvoice','Sales created succesfully with Invoice Number'.$invoice);\n\t\t\t\t\t$this->redirect(array('invoice/invoiceNumber','invoiceNumber'=>$invoice));\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tforeach ($_POST['EbrSales'] as $j=>$sale) {\n\t\t\t\t\t\tif (isset($_POST['EbrSales'][$j])) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$updatedModels[$j]->product_id = $productEntered[$j];\n\t\t\t\t\t\t\t\t$updatedModels[$j]->client_id = $clientEntered[$j];\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\t\n\t\t\t\t$models = $updatedModels;\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->render('multipleEdit',array('items'=>$models,\n\t\t\t\t'invoice'=>$invoice,\n\t\t\t\t'model'=>$model,\n\t\t\t\t'allShops'=>$allShops\n\t\t));\n\t\t\n\t}", "title": "" }, { "docid": "96af3ef2c404c7c3e3f14029d1136c84", "score": "0.52457124", "text": "public function actionUpdate($id,$hn,$tel,$name,$hn_y)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n $vn = new PdVn();\n$vn->hn=$model->hn;\n$vn->tel=$model->tel;\n$vn->name=$model->name;\n$vn->today=date(\"Y-m-d\");\n$vn->time=date(\"H:i:s\");\n$vn->hn_y=$model->hn_y;\n $vn->insert() ;\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'hn'=>$hn,\n 'tel'=>$tel,\n 'name'=>$name,\n 'hn_y'=>$hn_y,\n 'id'=>$id\n ]);\n }\n }", "title": "" }, { "docid": "5fe217da8d3bff65fab75381596c5996", "score": "0.52451044", "text": "public function update($model, array $data);", "title": "" }, { "docid": "b53fdee6426cd60e886e008b12a5e784", "score": "0.5240016", "text": "public function actionUpdateAvisEmploye() \n\t{\n\t\tif( isset( $_POST['AvisEmploye'] ) )\n\t\t{\n\t\t\t/*\t\tCompteur pour déterminer si tout a bien été réalisé \t \t*/\n\t\t\t$erreurCounter_int = 0;\n\t\t\t/*\t\tOn récupère l'entrée avec l'identifiant \t\t*/\n\t\t\t$model=$this->loadModel( intval( $_POST['AvisEmploye']['id_avis_employe'] ) );\n\t\t\t/*\t\tSomme pour calculer la note moyenne\t\t*/\n\t\t\t$somme_double = 0;\n\t\t\t$nb_elements_int = 0;\n\n\t\t\t/*\t\tOn boucle sur chaque critère de notation \t\t*/\n\t\t\tforeach ( $_POST as $key_str => $value_str ) \n\t\t\t{\n\t\t\t\t/*\t\tOn cherche que les paramètres POST qui sont notés ou avec un commentaire \t\t*/\n\t\t\t\tif( strpos( $key_str, \"_text\" ) )\n\t\t\t\t{\n\t\t\t\t\t$id_critere = intval( str_replace( '_text', '', $key_str ) );\n\t\t\t\t\t//var_dump( $id_critere );\n\t\t\t\t\t$critereModel_obj = EmployeAvisCritere::model()->findByAttributes( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_critere_notation_employe\" => $id_critere,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_avis_employe\" => $model->id_avis_employe \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$critereModel_obj->commentaire_evaluation_critere = trim( $value_str );\n\n\t\t\t\t\t$succes_bool_1 = $critereModel_obj->save();\n\t\t\t\t\t\n\t\t\t\t\tif( !$succes_bool_1 )\n\t\t\t\t\t\t$erreurCounter_int++;\n\n\t\t\t\t}\n\t\t\t\t/*\t\tLes paramètres qui sont notés \t\t*/\n\t\t\t\telse if ( strpos( $key_str, \"_note\" ) )\n\t\t\t\t{\n\t\t\t\t\t$id_critere = intval( str_replace( '_note', '', $key_str ) );\n\t\t\t\t\t$critereModel_obj = EmployeAvisCritere::model()->findByAttributes( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tarray( \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_critere_notation_employe\" => $id_critere,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"id_avis_employe\" => $model->id_avis_employe \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\t$critereModel_obj->note_employe_avis = trim( $value_str );\n\n\t\t\t\t\t$succes_bool_2 = $critereModel_obj->save();\n\t\t\t\t\t\n\t\t\t\t\tif ( $succes_bool_2 )\n\t\t\t\t\t{\n\t\t\t\t\t\t$somme_double += $value_str;\n\t\t\t\t\t\t$nb_elements_int++;\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$erreurCounter_int++;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\n\t\t\t}\n\n\n\t\t\t$model->note_generale_avis_employe = $somme_double / $nb_elements_int;\n\t\t\t$resultBool_bool = $model->save();\n\t\t\t\t\n\t\t\tif ( $resultBool_bool && $erreurCounter_int == 0 ) \n\t\t\t{\n\t\t\t\t/*\t\tOn redirige vers l'employé concerné \t\t*/\n\t\t\t\t$url = $this->createUrl( 'employe/view', array( \t'id' => $model->id_employe ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'error' => $erreurCounter_int ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'update' => 'true' ) );\n\t\t\t\t$this->redirect( $url );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$erreurCounter_int++;\n\t\t\t\t$url = $this->createUrl( 'employe/view', array( \t'id' => $model->id_entreprise ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'error' => $erreurCounter_int ,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'update' => 'true' ) );\n\t\t\t\t$this->redirect( $url );\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c988fb09ba18cca8dccf599df673ef36", "score": "0.52362627", "text": "public function update($registrationNR, CreatecarRequest $request){ //litt usikker på om der er CreateCarRequest som skal brukes her også\n\n $car = Car::findOrFail($registrationNR);\n \n $car->update($request->all());\n \\Session::flash('flash_message', Lang::get('general.changeSuccess'));\n return redirect('editpage?side=0');\n }", "title": "" }, { "docid": "3b041bc7ecad96c240c18561aa6652b1", "score": "0.5235824", "text": "function actualizarCliente(){\n $nombre = $_POST['nombre'];\n $apellidos = $_POST['apellidos'];\n $dni = $_POST['dni'];\n $direccion = $_POST['direccion'];\n $telefono = $_POST['telefono'];\n $email = $_POST['email'];\n\n //en caso de poder actualizar el campo devuelvo los nuevos valores ya modificados a la vista\n if($this->model->update(['nombre' => $nombre,'apellidos' => $apellidos,'dni' => $dni,'direccion' => $direccion,'telefono' => $telefono,'email' => $email])){\n\n $cliente = new Cliente();\n $cliente->nombre = $nombre;\n $cliente->apellidos = $apellidos;\n $cliente->dni = $dni;\n $cliente->direccion = $direccion;\n $cliente->telefono = $telefono;\n $cliente->email = $email;\n\n $this->view->cliente = $cliente;\n $this->view->mensaje = \"alumno actualizado correctamente\";\n }else{\n $this->view->mensaje = \"no se pudo actualizar el alumno\";\n }\n $this->view->render('consulta/detalle');\n }", "title": "" }, { "docid": "e0fc61cc119dcaa209836b07bb70c3fa", "score": "0.5235068", "text": "public function action_update()\n\t{\n\t\t$element = ORM::Factory($this->_orm_model, $_GET['id']);\n\t\t\n\t\t$form = Formo::form()->orm('load',$element);\n\t\t$form->add('update', 'submit', 'Save');\n\t\t\n\t\tif($form->load($_POST)->validate())\n\t\t{\n\t\t\t$this->_update_passed($form, $element);\n\t\t\t$element->save();\n\t\t\t$this->request->redirect(Route::get($this->_route_name)->uri(array('controller'=> Inflector::plural($this->_orm_model))));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_update_failed($form, $element);\n\t\t}\n\n\t\t$this->response->body(self::View('crud/'.$this->_template.'/update')\n\t\t ->set(array('name' => $this->_orm_model,\n\t\t 'form' => $form,\n\t\t 'route' => $this->_route_name))\n\t\t);\n\t}", "title": "" }, { "docid": "2ab87250bf22a6e44eee06f2bed66044", "score": "0.5221419", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['Compra']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Compra'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('view','id'=>$model->idcompra));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "f90826bcd7ce61089da0ddd8751f3a0d", "score": "0.52197737", "text": "public function update(Request $request)\n {\n \n $compte = Compte::find($request->id);\n $compte->numcompte = $request->numcompte;\n $compte->numagence = $request->numagence;\n $compte->typecompte = $request->typecompte;\n $compte->clients_id = $request->clients_id;\n $compte->users_id = Auth::id();\n $result = $compte->save();\n\n return redirect('/compte/getAll');\n //return $this->getAll();\n }", "title": "" }, { "docid": "08c7f81bb5025993d2f66f310b595df9", "score": "0.5214407", "text": "public static function recolteUpdated() {\n $ost = ModelRecolte::update(\n htmlspecialchars($_GET['producteur_id']), htmlspecialchars($_GET['vin_id']), htmlspecialchars($_GET['quantite']),\n htmlspecialchars($_GET['val1']), htmlspecialchars($_GET['val2'])\n );\n // ----- Construction chemin de la vue\n include 'config.php';\n $vue = $root . '/app/view/recolte/viewUpdated.php';\n require ($vue);\n }", "title": "" }, { "docid": "5548d981dfa3bfca714e1ed37a3ad22a", "score": "0.52002263", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['RzReport']))\n\t\t{\n\t\t\t$model->attributes=$_POST['RzReport'];\n if (isset($_POST['RzReport']['System'])) $model->System = implode(\",\", $_POST['RzReport']['System']);\n if (isset($model->Kunde) & $model->Kunde!='') $model->Kunde = implode(\",\", $_POST['RzReport']['Kunde']);\n if (isset($model->Betroffen) & $model->Betroffen!='') $model->Betroffen = implode(\",\", $_POST['RzReport']['Betroffen']);\n if (isset($model->Standort) & $model->Standort!='') $model->Standort = implode(\",\", $_POST['RzReport']['Standort']);\n $model->Korrektor=$_SERVER[\"AUTH_USER\"]; \n\t\t\tif($model->save()) {\n\t\t\t\tif (isset($_POST['ohne_email'])) { unset($model->Rid); $this->redirect(array('admin')); }\n if (isset($_POST['mit_email'])) $this->redirect(array('email','id'=>$model->Rid));\n }\n\t\t}\n \n $model->Korrektor=$_SERVER[\"AUTH_USER\"];\n $this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "7465d672ae4b72861b7638ef1cf27d4a", "score": "0.5197302", "text": "private function edit()\n\t{\n\t\t//Validate Variables\n\t\tif ($_SERVER['REQUEST_METHOD'] === 'POST' || $_SERVER['REQUEST_METHOD'] === 'PUT') \n\t\t{\n\t\t\t$id = $this->validateNumber($_GET['id']);\n\t\t\t$vin \t\t = $this->validateText($_POST['vin']);\n\t\t\t$model \t\t = $this->validateNumber($_POST['model']);\n\t\t\t$color\t\t = $this->validateNumber($_POST['color']);\n\t\t\t$year\t\t = $this->validateNumber($_POST['year']);\n\t\t\t$type \t\t = $this->validateNumber($_POST['type']);\n\t\t\t$conditions = $this->validateText($_POST['conditions']);\n\t\t\t$plates\t = $this->validateNumber($_POST['plates']);\n\n\t\t\t$result = $this->model->edit($id, $vin, $model, $color, $year , $type, $conditions, $plates);\n\t\t\tif($result)\n\t\t\t{\n\t\t\t\t//Load view\n\t\t\t\tunset($postError);\n\t\t\t\theader(\"Location: index.php?controller=vehicle\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//Ohh well... :(\n\t\t\t\t$postError = true;\n\t\t\t\t$this->smarty->assign('error','no se pudo :(');\n\t\t\t}\n\t\t}\n\t\tif($_SERVER['REQUEST_METHOD'] === 'GET' || isset($postError)){\n\t\t\t$id = $this->validateNumber($_GET['id']);\n\t\t\t$vehicle = $this->model->details($id);\n\t\t\t//select Succesfull\n\t\t\tif($vehicle != NULL)\n\t\t\t{\n\t\t\t\t$this->loadProperties();\n\t\t\t\t$this->smarty->assign('colors',$this->toAssociativeArray($this->colors->all()));\n\t\t\t\t$this->smarty->assign('carTypes',$this->toAssociativeArray($this->carTypes->all()));\n\t\t\t\t$this->smarty->assign('models',$this->toAssociativeArray($this->models->all()));\n\t\t\t\t$this->smarty->assign('vehicle',$vehicle);\n\t\t\t\t$this->smarty->display('./views/vehicle/edit.tpl');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->smarty->display('./views/error.tpl');\n\t\t\t}\n\n\t\t}\n\t}", "title": "" }, { "docid": "2d99fbed672c0720bd84b4c5876dafe1", "score": "0.5192517", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadModel();\n\t\t\n\t\tif(isset($_POST['Post']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Post'];\n\t\t\t$model->address = $_POST['Post']['address'];\n\t\t\t$file = CUploadedFile::getInstance($model,'images'); //获得一个CUploadedFile的实例 \n if(is_object($file)&&get_class($file) === 'CUploadedFile'){ // 判断实例化是否成功 \n $model->images = Yii::app()->request->hostInfo . '/upload/'.time().'_'.rand(0,9999).'.'.$file->extensionName; //定义文件保存的名称 \n }else{\n $model->images = $_POST['Post']['old_images']; // 若果失败则应该是什么图片 \n }\n\t\t\tif($model->save()){\n\t\t\t\t if(is_object($file)&&get_class($file) === 'CUploadedFile'){ \n $file->saveAs(str_replace(Yii::app()->request->hostInfo, Yii::getPathOfAlias('webroot'), $model->images)); // 上传图片 \n }\n\t\t\t\t $this->redirect(array('view','id'=>$model->id));\n\t\t\t}\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "0e014d42a0aa74d73023aa3ccc74eca0", "score": "0.5189629", "text": "public function actionUpdate($Tahun, $Kd_Musrenbang_Kecamatan, $Kd_Benua, $Kd_Benua_Sub, $Kd_Benua_Sub_Negara, $Kd_Prov, $Kd_Kab, $Kd_Kec, $Kd_Kel, $Kd_Urut_kel, $Kd_Lingkungan, $Kd_Jalan, $Kd_Usulan, $Kd_Urusan, $Kd_Bidang, $Kd_Prog, $Kd_Keg, $Kd_Klasifikasi, $Kd_Satuan, $Kd_Sasaran, $Kd_Status)\n {\n $model = $this->findModel($Tahun, $Kd_Musrenbang_Kecamatan, $Kd_Benua, $Kd_Benua_Sub, $Kd_Benua_Sub_Negara, $Kd_Prov, $Kd_Kab, $Kd_Kec, $Kd_Kel, $Kd_Urut_kel, $Kd_Lingkungan, $Kd_Jalan, $Kd_Usulan, $Kd_Urusan, $Kd_Bidang, $Kd_Prog, $Kd_Keg, $Kd_Klasifikasi, $Kd_Satuan, $Kd_Sasaran, $Kd_Status);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'Tahun' => $model->Tahun, 'Kd_Musrenbang_Kecamatan' => $model->Kd_Musrenbang_Kecamatan, 'Kd_Benua' => $model->Kd_Benua, 'Kd_Benua_Sub' => $model->Kd_Benua_Sub, 'Kd_Benua_Sub_Negara' => $model->Kd_Benua_Sub_Negara, 'Kd_Prov' => $model->Kd_Prov, 'Kd_Kab' => $model->Kd_Kab, 'Kd_Kec' => $model->Kd_Kec, 'Kd_Kel' => $model->Kd_Kel, 'Kd_Urut_kel' => $model->Kd_Urut_kel, 'Kd_Lingkungan' => $model->Kd_Lingkungan, 'Kd_Jalan' => $model->Kd_Jalan, 'Kd_Usulan' => $model->Kd_Usulan, 'Kd_Urusan' => $model->Kd_Urusan, 'Kd_Bidang' => $model->Kd_Bidang, 'Kd_Prog' => $model->Kd_Prog, 'Kd_Keg' => $model->Kd_Keg, 'Kd_Klasifikasi' => $model->Kd_Klasifikasi, 'Kd_Satuan' => $model->Kd_Satuan, 'Kd_Sasaran' => $model->Kd_Sasaran, 'Kd_Status' => $model->Kd_Status]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "36606308462b8175e24816908eae8da5", "score": "0.5183656", "text": "public function actionUpdate($numcrop_cropnum, $compartment_idCompartment)\n {\n $model = $this->findModel($numcrop_cropnum, $compartment_idCompartment);\n\n if ($model->load(Yii::$app->request->post()) ) {\n $modelOld = NumcropHasCompartment::findOne(['numcrop_cropnum' => (($model->numcrop_cropnum)-1), 'compartment_idCompartment' => $model->compartment_idCompartment]);\n $model->freeDate = date('Y-m-d', strtotime(\"$modelOld->freeDate + \". ($model->cropIdcrops->durationOfTheCrop) . \" day\"));\n $model->lastUpdatedDate = date('Y-m-d');\n\n if($model->cropIdcrops->crop == \"Not planned\"){\n $model->freeDate = null;\n }\n if ($model->save()) {\n\n $searchModel = new NumcropHasCompartmentSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n $dataProvider->query->addOrderBy('numcrop_cropnum DESC, crop_idcrops ASC');\n\n return $this->render('index', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n ]);\n }else{\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n } else {\n return $this->renderAjax('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "4323fc99353e566e68d95af90a26ff80", "score": "0.5181239", "text": "public function actionUpdate($id)\n {\n $this->layout = '//dashboard';\n \n $model = $this->findModel($id);\n if(\\Yii::$app->user->can('updateOwnEngineerProfile', ['engineer'=>$model])){\n if ($model->load(Yii::$app->request->post())) {\n $model->avatarFile = UploadedFile::getInstance($model, 'avatarFile');\n $model->coverFile = UploadedFile::getInstance($model, 'coverFile');\n $model->signatureFile = UploadedFile::getInstance($model, 'signatureFile');\n \n if($model->save()){\n if ($model->signatureFile) {\n $model->signFile ? unlink(\\Yii::getAlias('images/legal_files/signatures/'.$model->signFile->name)) : null;\n $filesgn = $model->signFile ?: null;\n $imagesignFile = $model->uploadSign();\n $model->signature = $imagesignFile;\n $model->save();\n $filesgn ? $filesgn->delete() : null;\n } \n if ($model->avatarFile) {\n $model->aFile ? unlink(\\Yii::getAlias('images/profiles/'.$model->aFile->name)) : null;\n $filea = $model->aFile ?: null;\n $imageavatarFile = $model->uploadAvatar();\n $model->avatar = $imageavatarFile;\n $model->save();\n $filea ? $filea->delete() : null;\n } \n if ($model->coverFile) {\n $model->cFile ? unlink(\\Yii::getAlias('images/profiles/'.$model->cFile->name)) : null;\n $filec = $model->cFile ?: null;\n $imagecoverFile = $model->uploadÇover();\n $model->cover_photo = $imagecoverFile;\n $model->save();\n $filec ? $filec->delete() : null;\n } \n return $this->redirect(['/home']);\n } \n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n } else {\n throw new \\yii\\web\\ForbiddenHttpException('Nemate prava da pristupite ovoj stranici.');\n }\n }", "title": "" }, { "docid": "1a3d1adab2c46b3b5fd9dee038eb4f88", "score": "0.51756567", "text": "public function actionUpdate(){\n\t\t$request = Yii::$app -> request;\n\t\t$articleInfo = $request -> post();\n\t\t$id = $articleInfo['id'];\n\t\t$data = array(\n\t\t\t'articleInfo' => $articleInfo\n\t\t);\n\t\t$article = Article::find() -> where('id=:id',[':id' => $id]) -> one();\n\t\t$article -> title = $articleInfo['title'];\n\t\t$article -> content = $articleInfo['content'];\n\t\t$article -> status = $articleInfo['status'];\n\t\t$article -> keyword = $articleInfo['keyword'];\n\t\t$article -> update_time = date('Y-m-d H:i:s');\n\n\t\t$result = $article -> save();\n\t\t// make a response for frentend\n\t\t$res = array();\n\t\tif( $result ){\n\t\t\t$res['result'] = 'success';\n\t\t}\n\t\telse {\n\t\t\t$res['result'] = 'error';\n\t\t}\n\t\techo json_encode($res);\n\t}", "title": "" }, { "docid": "b3a1d38e412023355a06ea46dabb81dd", "score": "0.5175155", "text": "public function actionUpdate($id) {\n \n $model = new EstudioEmpleado();\n if ($model->load(Yii::$app->request->post()) && Yii::$app->request->isAjax) {\n Yii::$app->response->format = Response::FORMAT_JSON;\n return ActiveForm::validate($model);\n }\n if ($model->load(Yii::$app->request->post())) { \n if ($model->validate()) {\n $table = EstudioEmpleado::find()->where(['id' => $id])->one();\n if ($table) {\n $empleado = Empleado::findOne($model->id_empleado);\n $table->id_empleado = $model->id_empleado;\n $table->documento = $empleado->identificacion; \n $table->institucion_educativa = $model->institucion_educativa;\n $table->id_tipo_estudio = $model->id_tipo_estudio;\n $table->idmunicipio = $model->idmunicipio;\n $table->titulo_obtenido = $model->titulo_obtenido;\n $table->anio_cursado = $model->anio_cursado;\n $table->fecha_inicio = $model->fecha_inicio;\n $table->fecha_terminacion = $model->fecha_terminacion;\n $table->graduado = $model->graduado;\n $table->fecha_vencimiento = $model->fecha_vencimiento;\n $table->registro = $model->registro;\n $table->validar_vencimiento = $model->validar_vencimiento;\n $table->observacion = $model->observacion;\n $table->save(false);\n return $this->redirect([\"estudio-empleado/index\"]);\n\n } \n } else {\n $model->getErrors();\n }\n }\n\n if (Yii::$app->request->get(\"id\")) {\n $table = EstudioEmpleado::find()->where(['id' => $id])->one();\n if ($table) {\n $model->id = $table->id ;\n $model->id_empleado = $table->id_empleado;\n $model->institucion_educativa = $table->institucion_educativa;\n $model->id_tipo_estudio = $table->id_tipo_estudio;\n $model->idmunicipio = $table->idmunicipio;\n $model->titulo_obtenido = $table->titulo_obtenido;\n $model->anio_cursado = $table->anio_cursado;\n $model->fecha_inicio = $table->fecha_inicio;\n $model->fecha_terminacion = $table->fecha_terminacion;\n $model->graduado = $table->graduado;\n $model->fecha_vencimiento = $table->fecha_vencimiento;\n $model->registro = $table->registro;\n $model->validar_vencimiento = $table->validar_vencimiento;\n $model->observacion = $table->observacion;\n \n } else {\n return $this->redirect([\"estudio-empleado/index\"]);\n }\n } else {\n return $this->redirect([\"estudio-empleado/index\"]);\n }\n return $this->render(\"update\", [\"model\" => $model]);\n }", "title": "" }, { "docid": "68a572970d7b12efb5d15d125eca0b36", "score": "0.51725847", "text": "public function actionUpdate()\n\t{\n $id = Yii::app()->request->getParam('id' ,0);\n\t\t$model=$this->loadModel($id);\n\n $ret['response'] = array(\n 'code'=>0,\n 'msg'=>'新建成功'\n );\n $ret['data'] = array();\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n $bms_company=Yii::app()->request->getParam('bms_company','');\n $bms_device_addr=Yii::app()->request->getParam('bms_device_addr','');\n $bms_postcode=Yii::app()->request->getParam('bms_postcode','');\n $bms_url=Yii::app()->request->getParam('bms_url','');\n $bms_tel=Yii::app()->request->getParam('bms_tel','');\n $bms_phone=Yii::app()->request->getParam('bms_phone','');\n $bms_service_phone=Yii::app()->request->getParam('bms_service_phone','');\n $bms_service_name=Yii::app()->request->getParam('bms_service_name','');\n $bms_service_contact=Yii::app()->request->getParam('bms_service_contact','');\n $bms_service_url=Yii::app()->request->getParam('bms_service_url','');\n $bms_version=Yii::app()->request->getParam('bms_version','');\n $bms_update_mark=Yii::app()->request->getParam('bms_update_mark','');\n $bms_mark=Yii::app()->request->getParam('bms_mark','');\n $modify_time=Yii::app()->request->getParam('modify_time',date('Y-m-d H:i:s'));\n if ($model) {\n $bms_company != '' && $model->bms_company = $bms_company;\n $bms_device_addr != '' && $model->bms_device_addr = $bms_device_addr;\n $bms_postcode != '' && $model->bms_postcode = $bms_postcode;\n $bms_url != '' && $model->bms_url = $bms_url;\n $bms_tel != '' && $model->bms_tel = $bms_tel;\n $bms_phone != '' && $model->bms_phone = $bms_phone;\n $bms_service_phone != '' && $model->bms_service_phone = $bms_service_phone;\n $bms_service_name != '' && $model->bms_service_name = $bms_service_name;\n $bms_service_contact != '' && $model->bms_service_contact = $bms_service_contact;\n $bms_service_url != '' && $model->bms_service_url = $bms_service_url;\n $bms_version != '' && $model->bms_version = $bms_version;\n $bms_update_mark != '' && $model->bms_update_mark = $bms_update_mark;\n $model->bms_mark = $bms_mark;\n $modify_time != '' && $model->modify_time = $modify_time;\n if ($model->save()) {\n $ret['data'] = array(\n 'id'=>$model->id,\n 'bms_company'=>$model->bms_company,\n 'bms_device_addr'=>$model->bms_device_addr,\n );\n }else{\n $ret['response'] = array(\n 'code'=>-1,\n 'msg'=>'修改BMS信息数据失败!'\n );\n }\n }else{\n $ret['response'] = array(\n 'code'=>-1,\n 'msg'=>'修改BMS信息数据失败!'\n );\n }\n echo json_encode($ret);\n\t}", "title": "" }, { "docid": "0c2f67153c36e2af1b507fd2cc70cf24", "score": "0.5171571", "text": "public function update_car( $request )\n {\n DB::beginTransaction();\n\n $this->assignInputToFields( $request, $this->map_fields_u );\n $status1 = $this->save();\n $assignment = new CarAssignment();\n $assignment->deactivateOthers( $this->id );\n $status2 = $assignment->assignAndSave( $this->id, $request['u-driver-selector'] );\n \n $this->checkAlarms();\n if( $status1 && $status2 )\n DB::commit();\n else\n DB::rollback();\n return array( 'status' => $status1 && $status2 );\n }", "title": "" }, { "docid": "838d5fef354b5b3c4520b32d8d5c967f", "score": "0.5170976", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n \n if(!empty($model->address)){\n $address = Address::findOne($model->address->id);\n }else{\n $address = new Address();\n }\n\n $contact_tec = new Contact();\n\n if(!empty($model->getContactAdmin()))\n {\n $contact_admin = $model->getContactAdmin();\n }else{\n $contact_admin = new Contact();\n }\n\n if(!empty($model->getContactTec())){\n\n $contact_tec = $model->getContactTec();\n }else{\n $contact_tec = new Contact();\n }\n\n if ($model->load(Yii::$app->request->post())) {\n // echo \"<pre>\"; \n $date_init = date_create($model->begin_contract);\n $model->begin_contract = date_format($date_init, 'Y-m-d');\n\n $date_end = date_create($model->end_contract);\n $model->end_contract = date_format($date_end, 'Y-m-d');\n\n // var_dump($model->save());\n // var_dump($model->getErrors()); die();\n if($model->save())\n {\n $post_addres = Yii::$app->request->post('Address');\n if(!empty($model->address))\n {\n $address = $model->address;\n // $address->load($post_addres);\n }else{\n $address = new Address();\n // $address->load($post_addres);\n $address->client = $id;\n }\n\n $address->street = $post_addres['street'];\n $address->ciudad = $post_addres['ciudad'];\n $address->number = $post_addres['number'];\n $address->complement = $post_addres['complement'];\n $address->postcode = $post_addres['postcode'];\n $address->country = $post_addres['country'];\n // var_dump($model->address);\n // var_dump(Yii::$app->request->post('Address'));\n // var_dump($address->save());\n // var_dump($address->getErrors()); die();\n // var_dump($address->getErrors()); die();\n\n if($address->save())\n {\n $post = Yii::$app->request->post('contact_admin');\n $contact_admin->client = $model->id;\n $contact_admin->email = $post['email'];\n $contact_admin->type_contact_id = $post['type_contact_id'];\n $contact_admin->phone = $post['phone'];\n $contact_admin->second_phone = $post['second_phone'];\n\n $post = Yii::$app->request->post('contact_tec');\n $contact_tec->client = $model->id; //die('hol');\n $contact_tec->email = $post['email'];\n $contact_tec->type_contact_id = $post['type_contact_id'];\n $contact_tec->phone = $post['phone'];\n $contact_tec->second_phone = $post['second_phone'];\n\n if($contact_admin->save() && $contact_tec->save()){\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n\n }\n \n } \n return $this->render('_form_update', [\n 'model' => $model,\n 'address' => !empty($model->address)? $model->address : $address,\n 'contact_admin' => $contact_admin,\n 'contact_tec' => $contact_tec,\n ]);\n \n }", "title": "" }, { "docid": "23482d20ee3532929f7afcfec298ef98", "score": "0.5152415", "text": "public function actionUpdate()\r\n\t{\r\n\t\tparent::actionUpdate();\r\n\t $id=$_POST['id'];\r\n\t $model=$this->loadModel($id[0]);\r\n\t\t$this->lookupdata();\r\n\t if ($model != null)\r\n {\r\n if ($this->CheckDataLock($this->menuname, $id[0]) == false)\r\n {\r\n $this->InsertLock($this->menuname, $id[0]);\r\n\t\t echo CJSON::encode(array(\r\n\t\t\t 'status'=>'success',\r\n\t\t\t 'addressbookid'=>$model->addressbookid,\r\n\t\t\t 'fullname'=>$model->fullname,\r\n\t\t\t 'taxno'=>$model->taxno,\r\n\t\t\t 'recordstatus'=>$model->recordstatus,\r\n\t\t\t 'div'=>$this->renderPartial('_form', array('model'=>$model,\r\n\t\t\t 'bankaddress'=>$this->bankaddress,\r\n\t\t\t 'bankcontact'=>$this->bankcontact,\r\n 'accpiutang'=>$this->accpiutang), true)\r\n\t\t\t ));\r\n\t\t Yii::app()->end();\r\n }\r\n\t }\r\n\t}", "title": "" }, { "docid": "b9e9999cf3dbaf35bf57ef88b3ee5cf7", "score": "0.5150717", "text": "public function update(Request $request, CarWebsiteModel $editDetailForm) // function to update current entries\n {\n $editDetailForm->update(request(['registration_no', 'type', 'fuel', 'brand', 'model', 'year']));\n return redirect()->action('CarWebsiteController@myUploads');\n }", "title": "" }, { "docid": "3a9e08603117e91cc559be9a640a22ae", "score": "0.51446575", "text": "public function update(Request $request, car $car)\n {\n $validator = Validator::make($request->all(), $this->rules());\n if($validator->fails()){\n return $validator->messages();\n }\n $user = Auth::user();\n $car->patente = $request->get('patente');\n $car->marca = $request->get('marca');\n $car->modelo = $request->get('modelo');\n $car->capacidad = $request->get('capacidad');\n $car->precio = $request->get('precio');\n $car->fecha_ida = $request->get('fecha_ida');\n $car->fecha_vuelta = $request->get('fecha_vuelta');\n $car->disponibilidad = $request->get('disponibilidad');\n $car->destiny_id = $request->get('destiny_id');\n $car->package_id = $request->get('package_id');\n $car->save();\n activity('Auto')\n ->performedOn($user)\n ->causedBy($user)\n ->withProperties([\n 'causante' => $user->name,\n ])\n ->log(\"Edita auto con id $auto->id\");\n $cars = car::all();\n Session::flash('flash_message', 'Auto editado');\n return view('cars.principal', compact('cars'));\n }", "title": "" }, { "docid": "74b107f0d78775c760da52870e18bc21", "score": "0.5142094", "text": "public function actionUpdate()\r\n {\r\n $id = Yii::$app->request->post('id');\r\n $model = $this->findModel($id);\r\n if ($model->load(Yii::$app->request->post())) {\r\n \r\n if(empty($model->create_date) == true){\r\n $model->create_date = 'CURRENT_TIMESTAMP';\r\n } \r\n \r\n if($model->validate() == true && $model->save()){\r\n $msg = array('errno'=>0, 'msg'=>'保存成功');\r\n echo json_encode($msg);\r\n }\r\n else{\r\n $msg = array('errno'=>2, 'data'=>$model->getErrors());\r\n echo json_encode($msg);\r\n }\r\n } else {\r\n $msg = array('errno'=>2, 'msg'=>'数据出错');\r\n echo json_encode($msg);\r\n }\r\n \r\n }", "title": "" }, { "docid": "d01db824089519879789578682f5b7cc", "score": "0.5116739", "text": "public function actionUpdate($id)\r\n {\r\n\t\tif(!Yii::$app->user->can('Inventory.Update')){\r\n\t\t\tthrow new \\yii\\web\\ForbiddenHttpException(Yii::t('app', 'You dont have permissions to view this page.'));\r\n\t\t}\r\n $model = $this->findModel($id);\r\n\t\t$old_file = $model->digital_file_name;\r\n\t\t\r\n\t\t// Delete Existing Records\r\n\t\tif(!empty($_REQUEST['delete_multiple_recs']))\r\n\t\t{\r\n\t\t\t$rows=$_REQUEST['selection'];\r\n\t\t\tif ($rows)\r\n\t\t\t\t$cnt = count($rows);\r\n\t\t\telse\r\n\t\t\t\t$cnt = 0;\r\n\r\n\t\t\tfor($i=0; $i<$cnt;$i++)\r\n\t\t\t{\r\n\t\t\t\tLicenseKeyCode::findOne($rows[$i])->delete();\r\n\t\t\t}\r\n\r\n\t\t\t$model->stock -= $cnt;\r\n\t\t\t$model->update();\r\n\r\n\t\t\treturn $this->redirect(['update', 'id' => $_REQUEST['id']]);\r\n\t\t}\r\n\r\n\t\tif($model->load(Yii::$app->request->post()))\r\n\t\t{\r\n\t\t\t$product = Product::findOne($model->product_id);\r\n\t\t\t$digital_ind = $product->digital;\r\n\t\t\t$license_key_code = $product->license_key_code;\r\n\r\n\t\t\tif($digital_ind)\r\n\t\t\t{\r\n\t\t\t\t$digital_file = UploadedFile::getInstance($model, 'digital_file');\r\n\t\t\t\tif(!empty($digital_file) && $digital_file->size !== 0) \r\n\t\t\t\t{\r\n\t\t\t\t\tif(!$license_key_code)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//unlink('uploads/'.$old_file);\r\n\t\t\t\t\t\tMulteModel::deleteFileFromServer($old_file, 'digital_uploads');\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$model->digital_file = $digital_file;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t$model->attribute_values = Json::encode($_REQUEST['Inventory']['attribute_values']);\r\n\t\t\tif($model->attribute_values == 'null')\r\n\t\t\t\t$model->attribute_values = NULL;\r\n\t\t\t$model->attribute_price = Json::encode($_REQUEST['Inventory']['attribute_price']);\r\n\t\t\tif($model->attribute_price == 'null')\r\n\t\t\t\t$model->attribute_price = NULL;\r\n\r\n\t\t\tif($model->save())\r\n\t\t\t{\r\n\t\t\t\tif($digital_ind && !empty($digital_file) && $digital_file->size !== 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!$license_key_code)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//$name = uniqid($model->id);\r\n\t\t\t\t\t\t$name = $model->digital_file_name;\r\n\t\t\t\t\t\t$model->digital_file_name = $name;\r\n\t\t\t\t\t\t$model->update();\r\n\r\n\t\t\t\t\t\t$model->upload($name);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Read input excel and populate code table\r\n\t\t\t\t\t\t$count = MulteModel::readInputSheet($model->id, $model->digital_file->tempName);\r\n\t\t\t\t\t\t$model->stock += $count;\r\n\t\t\t\t\t\t$model->update();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//return $this->redirect(['view', 'id' => $model->id]);\r\n\r\n\t\t\t\tif (isset($_REQUEST['inventory_detail_ids']))\r\n\t\t\t\t{\r\n\t\t\t\t\t$i=0;\r\n\t\t\t\t\tforeach($_REQUEST['inventory_detail_ids'] as $row)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$invDet = InventoryDetails::findOne($row);\r\n\t\t\t\t\t\t$invDet->attribute_price = $_REQUEST['Inventory']['attribute_price'][$i];\r\n\t\t\t\t\t\t$invDet->save();\r\n\t\t\t\t\t\t$i++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tInventoryTags::deleteAll(['=', 'inventory_id', $id]);\r\n\r\n\t\t\t\t$tags_array = explode(',', $_REQUEST['inventory_tags']);\r\n\r\n\t\t\t\tforeach($tags_array as $row)\r\n\t\t\t\t{\r\n\t\t\t\t\t$inventorytags = new InventoryTags;\r\n\t\t\t\t\t$inventorytags->inventory_id = $model->id;\r\n\r\n\t\t\t\t\t$tag = Tags::find()->where(['tag' => strtolower(trim($row))])->one();\r\n\r\n\t\t\t\t\tif($tag)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$inventorytags->tag_id = $tag->id;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$newtag = new Tags;\r\n\t\t\t\t\t\t$newtag->tag = strtolower(trim($row));\r\n\t\t\t\t\t\t$newtag->save();\r\n\r\n\t\t\t\t\t\t$inventorytags->tag_id = $newtag->id;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$inventorytags->save();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t$inventoryDetails = InventoryDetails::find()->where(\"inventory_id = $id\")->all();\r\n\r\n\t\t\t\treturn $this->render('update', [\r\n\t\t\t\t\t'model' => $model,\r\n\t\t\t\t\t'inventoryDetails' => $inventoryDetails,\r\n\t\t\t\t\t'tags' => $_REQUEST['inventory_tags']\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//print_r($model->getErrors());\r\n\t\t\t\t//var_dump($_REQUEST);\r\n\t\t\t\t//exit;\r\n\t\t\t\t$inventoryDetails = InventoryDetails::find()->where(\"inventory_id = $id\")->all();\r\n\r\n\t\t\t\treturn $this->render('update', [\r\n\t\t\t\t\t'model' => $model,\r\n\t\t\t\t\t'inventoryDetails' => $inventoryDetails\r\n\t\t\t\t]);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\t$inventoryDetails = InventoryDetails::find()->where(\"inventory_id = $id\")->all();\r\n\t\t\t$connection = \\Yii::$app->db;\r\n\t\t\t$query = \"select a.tag from tbl_tags a, tbl_inventory_tags b\r\n\t\t\t\t\t\twhere b.inventory_id = \".$id.\"\r\n\t\t\t\t\t\tand a.id = b.tag_id;\";\r\n\t\t\t$mdl = $connection->createCommand($query);\r\n\r\n\t\t\t$result = $mdl->queryAll();\r\n\t\t\t$tags = '';\r\n\r\n\t\t\tforeach ($result as $row)\r\n\t\t\t{\r\n\t\t\t\t$tags = $tags.$row['tag'].\",\";\r\n\t\t\t}\r\n\t\t\t$tags = substr($tags, 0, -1);\r\n\r\n\t\t\treturn $this->render('update', [\r\n\t\t\t\t'model' => $model,\r\n\t\t\t\t'inventoryDetails' => $inventoryDetails,\r\n\t\t\t\t'tags' => $tags\r\n\t\t\t]);\r\n\t\t}\r\n\r\n }", "title": "" }, { "docid": "547aace3f45d4d5d1b70c9c8a28b6ed4", "score": "0.5113218", "text": "public function update(Request $request, $id)\n {\n $carModel = CarModel::find($id);\n $carModel->model = $request['model']!== null ? $request['model'] : $carModel['model'];\n $carModel->brand_id =$request['brand_id']!== null ? $request['brand_id'] : $carModel['brand_id'];\n $carModel->save();\n return redirect('/models');\n }", "title": "" }, { "docid": "f834a3eb3628656290e7b02ab8d624e5", "score": "0.5111797", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\t\t// $this->performAjaxValidation($model);\n\n\t\tif(isset($_POST['SpeechTherapist']))\n\t\t{\n\t\t\t$model->attributes=$_POST['SpeechTherapist'];\n\t\t\tif($model->save()){\n if( isset($_POST['ContactBox']) ){\n $model1 = new ContactBox();\n $model1->attributes = $_POST['ContactBox'];\n $model1->user_id = Yii::app()->user->id;\n $model1->common_id = $model->id;\n $model1->type = Suppliers::SPEECH_THERAPIST;\n $model1->save();\n }\n SpeechTherapistPractices::model()->deleteAll(\n \"speech_therapist_id = :speech_therapist_id\",\n array(':speech_therapist_id' => $model->id)\n );\n $otherPractice = isset($_POST['SpeechTherapistPractice']);\n if( $otherPractice ){\n $cats = $_POST['SpeechTherapistPractice'];\n foreach ($cats as $cat_id){\n $cat = new SpeechTherapistPractices();\n $cat->speech_therapist_id = $model->id;\n $cat->practices_id = $cat_id;\n $cat->save();\n }\n }\n\n SpeechTherapistSpecialEducationSchools::model()->deleteAll(\"speech_therapist_id = :speech_therapist_id\", array(':speech_therapist_id' => $model->id ) );\n $otherHTv = isset($_POST['SpeechTherapistSpecialEducationSchools']);\n if( $otherHTv ){\n $links = $_POST['SpeechTherapistSpecialEducationSchools'];\n foreach ($links as $link_id){\n $link = new SpeechTherapistSpecialEducationSchools();\n $link->speech_therapist_id = $model->id;\n $link->special_education_schools_id = $link_id;\n $link->save();\n }\n }\n\n SpeechTherapistAgencies::model()->deleteAll(\"speech_therapist_id = :speech_therapist_id\", array(':speech_therapist_id' => $model->id ) );\n $otherA = isset($_POST['SpeechTherapistAgencies']);\n if( $otherA ){\n $links = $_POST['SpeechTherapistAgencies'];\n foreach ($links as $link_id){\n $link = new SpeechTherapistAgencies();\n $link->speech_therapist_id = $model->id;\n $link->agencies_id = $link_id;\n $link->save();\n }\n }\n\n $this->redirect(array('view','id'=>$model->id));\n }\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "95566196c9a8ba2096ee40fc023c2aed", "score": "0.5107604", "text": "public function actionUpdate($modelClass, $id)\n {\n $this->module->getAccessControl()->checkAccess($this->action->id, $this->modelConfig['url']);\n\n $model = ModelHelper::findModel($modelClass, $id);\n if ($model->load(\\Yii::$app->request->post()) && $model->save()) {\n return $this->insertUpdateRedirect($model);\n }\n return $this->render('update', [\n 'form' => $model->renderForm($this->modelConfig['url']),\n 'title' => \\Yii::t('ylab/administer', 'Update') . \" {$this->modelConfig['labels'][1]} #$id\",\n 'breadcrumbs' => $model->getBreadcrumbs(\n 'update',\n $this->modelConfig['url'],\n $this->modelConfig['labels'][0],\n $id\n ),\n 'buttons' => $model->getButtons('update', $this->modelConfig['url'], $id),\n ]);\n }", "title": "" }, { "docid": "3b9ddba604c0c9fa9a2c520b80aad807", "score": "0.51075786", "text": "public function actionActualizar(){\n\n \t $model=new Productocostos;\n \n $this->render('_viewActualizar',array(\n 'model'=>$model,\n ));\n \n }", "title": "" }, { "docid": "3440601c4e16e312a94d3d221be0e622", "score": "0.5106339", "text": "public function actionUpdate($id) {\n $this->layout='//layouts/iframe';\n\t\t//if(!Yii::app()->user->checkAccess(Params::DEFAULT_UPDATE)){throw new CHttpException(401,Yii::t('mds','You are prohibited to access this page. Contact Super Administrator'));}\n\t\t$model = $this->loadModel($id);\n\n\t\t// Uncomment the following line if AJAX validation is needed\n\n\n\t\tif (isset($_POST['AKJenispenerimaanM'])) {\n $trans = Yii::app()->db->beginTransaction();\n\t\t\t$ok = true;\n\t\t\t$model->attributes = $_POST['AKJenispenerimaanM'];\n\t\t\t\n if ($model->validate()) $ok = $ok && $model->save();\n else $ok = false;\n \n AKJnsPenerimaanRekM::model()->deleteAllByAttributes(array(\n 'jenispenerimaan_id'=>$model->jenispenerimaan_id,\n ));\n \n if (isset($_POST['detail'])) {\n foreach ($_POST['detail']['rekening5_id'] as $idx=>$item) {\n $det = new AKJnsPenerimaanRekM;\n $det->jenispenerimaan_id = $model->jenispenerimaan_id;\n $det->debitkredit = $_POST['detail']['debitkredit'][$idx];\n $det->rekening5_id = $item;\n \n if ($det->validate()) $ok = $ok && $det->save();\n else $ok = false;\n }\n $model->save();\n }\n \n if ($ok) {\n $trans->commit();\n\t\t\t\tYii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('admin','tab'=>'frame','modul_id'=>Yii::app()->session['modul_id']));\n\t\t\t} else {\n $trans->rollback();\n Yii::app()->user->setFlash('error', '<strong>Gagal!</strong> Data gagal disimpan.');\n $this->redirect(array('update'));\n }\n \n /*\n if ($model->save()) {\n\t\t\t\tYii::app()->user->setFlash('success', '<strong>Berhasil!</strong> Data berhasil disimpan.');\n\t\t\t\t$this->redirect(array('admin', 'id' => 1));\n\t\t\t} */\n\t\t}\n\n\t\t$this->render('update', array(\n\t\t\t'model' => $model,\n\t\t));\n\t}", "title": "" }, { "docid": "b8e025c06a3396c58e432aad8d33f9d3", "score": "0.51040894", "text": "public function update(Request $request, Car $car)\n {\n //\n }", "title": "" }, { "docid": "23565ef2da2eebed7f7f145c70526e28", "score": "0.51029813", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadModel();\n\t\t$thepass=$model->password;\n\t\tif(isset($_POST['User']))\n\t\t{\n\t\t\t$model->attributes=$_POST['User'];\n\t\t\tif($thepass != $_POST['User']['password'])\n\t\t\t{\n\t\t\t\t$model->password=md5($model->password);\n\t\t\t}\n\t\t\t//add atributos de rol\n\t\t\t$model->MyRol=0;\n\t\t\tif(isset($_POST['rol']))\n\t\t\t{\n\t\t\t\t$rolesActivados=$_POST['rol'];\n\t\t\t\tforeach($rolesActivados as $rol)\n\t\t\t\t\t$model->addRole($rol);\n\t\t\t}\n\t\t\t$model->perms=0;\n\t\t\tif(isset($_POST['permisos']))\n\t\t\t{\n\t\t\t\t$permisosActivados=$_POST['permisos'];\n\t\t\t\tforeach($permisosActivados as $permiso)\n\t\t\t\t\t$model->addPerms($permiso);\n\t\t\t}\n\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('update','id'=>$model->idUser,'updated'=>'1'));\n\t\t}\n\t\t$updated=0;\n\t\tif(isset($_GET[\"updated\"]))\n\t\t\t$updated=$_GET[\"updated\"];\n\t\tif($updated==0)\n\t\t\t$this->render('update',array('model'=>$model,));\n\t\telse if($updated==\"1\")\n\t\t\t$this->render('update',array('model'=>$model,'messageOk'=>\"Usuario guardado\"));\n\t}", "title": "" }, { "docid": "3c2ac4874f2be056fcebe38e49f8c301", "score": "0.51018196", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadModel();\n\t\tif(isset($_POST['Successinfo']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Successinfo'];\n $model->si_successtime = strtotime($model->si_successtime);\n\t\t\tif($model->validate()){\n $model->update();\n Yii::app()->user->setFlash('message','修改成功案例成功!');\n $this->redirect(array('index'));\n }\n\t\t}\n\n\t\t$this->render('form',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "79fe58472c1dbebc4888419ee930a1fa", "score": "0.5092551", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n $user_id = Yii::$app->user->identity->id;\n $returnCompanySeller = UserCompany::find()->where(['user_id'=>$user_id])->one();\n\n $companySeller = Company::find()->where(['_id'=>$returnCompanySeller->company])->one();\n\n $checkState = LookupState::find()->where(['id'=>$companySeller->state])->one();\n\n $model2 = ItemElastic::find()->where(['mongo_id'=>(string)$model->_id])->one();\n\n if ($model->load(Yii::$app->request->post())) {\n\n\n\n\n $model->date_update = date('Y-m-d H:i:s');\n $model->update_by = (int)Yii::$app->user->identity->id;\n $model->shippings = [[\n 'aTa' => $_POST['Item']['shippings']['aTa'],\n 'aTb' => $_POST['Item']['shippings']['aTb'],\n ]];\n $model->installations = [[\n 'installation' => $_POST['Item']['installations']['installation'],\n 'installation_price' => $_POST['Item']['installations']['installation_price'],\n ]];\n\n\n\n $model->save();\n\n $group = LookupGroup::find()->where(['id'=>$_POST['Item']['group_id']])->one();\n $brand = LookupBrand::find()->where(['id'=>$_POST['Item']['brand_id']])->one();\n $category = LookupCategory::find()->where(['id'=>$_POST['Item']['category_id']])->one();\n $sub_category = LookupSubCategory::find()->where(['id'=>$_POST['Item']['sub_category_id']])->one();\n $models = LookupModel::find()->where(['id'=>$_POST['Item']['model_id']])->one();\n $lead_time = LookupLeadTime::find()->where(['id'=>$_POST['Item']['lead_time_id']])->one();\n\n $model2->item_name = $_POST['Item']['item_name'];\n $model2->group = $group->group;\n $model2->brand = $brand->brand;\n $model2->category = $category->category;\n $model2->sub_category = $sub_category->sub_category;\n $model2->model = $models->model;\n $model2->description = $_POST['Item']['description'];\n $model2->specification = $_POST['Item']['specification'];\n $model2->lead_time = $lead_time->lead_time;\n $model2->cost = $_POST['Item']['cost'];\n $model2->stock = $_POST['Item']['stock'];\n $model2->quantity = $_POST['Item']['quantity'];\n $model2->publish = $_POST['Item']['publish'];\n $model2->date_update = date('Y-m-d H:i:s');\n $model2->update_by = (int)Yii::$app->user->identity->id;\n $model2->save();\n\n\n return $this->redirect(['index']);\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'checkState' => $checkState\n ]);\n }\n }", "title": "" }, { "docid": "a431f7f785362f815f61e6bb49b822ca", "score": "0.50912595", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n \n $modelsTeilieigentum = $model->teileigentumseinheits;\n \n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n \n $data = Yii::$app->request->post();\n \n if (isset($data['addnewZaehlerstand'])) {\n $new = new Zaehlerstand();\n $new->haus_id = $id;\n $new->save();\n \n $this->redirect(['update', 'id' => $model->id]);\n\n } else if (isset($data['addnew'])) {\n \n $new = new Teileigentumseinheit();\n $new->haus_id = $id;\n $new->einheitstyp_id = 1;\n $new->save();\n \n $this->redirect(['update', 'id' => $model->id]);\n } else {\n \n if (isset($data['Teileigentumseinheiten'])) {\n\n foreach ($data['Teileigentumseinheiten'] as $objData) {\n if (isset($objData['id']) && $objData['id'] > 0) {\n $obj = Teileigentumseinheit::findOne($objData['id']);\n $obj->load(['Teileigentumseinheit' => $objData]);\n $obj->save();\n }\n }\n }\n \n// if (isset($data['Zaehlerstaende'])) {\n// foreach ($data['Zaehlerstaende'] as $objData) {\n// if (isset($objData['id']) && $objData['id'] > 0) {\n// $obj = Zaehlerstand::findOne($objData['id']);\n// $obj->load(['Zaehlerstand' => $objData]);\n// \n// $date = \\DateTime::createFromFormat('d.m.Y', $objData['datum']); \n// if ($date) {\n// $date->setTime(0, 0, 0);\n// $obj->datum = $date->format('Y-m-d H:i:s');\n// } else {\n// $obj->datum = '';\n// }\n// $obj->save();\n// }\n// }\n// }\n \n if (Zaehlerstand::loadMultiple($model->zaehlerstands, $data)) {\n foreach ($model->zaehlerstands as $item) {\n $item->save();\n }\n }\n \n return $this->redirect(['update', 'id' => $model->id]);\n }\n \n } else {\n \n return $this->render('update', [\n 'model' => $model,\n 'modelsTeilieigentum' => $modelsTeilieigentum\n ]);\n }\n }", "title": "" }, { "docid": "f5eb82bc2163b904b4d4e4420232b09e", "score": "0.5090552", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n //empty models form\n $modellevel = new SchooldetailsLevel();\n $modelcca = new SchooldetailsCca();\n $modelinfra = new SchooldetailsInfra();\n $modelsyllabus = new SchooldetailsSyllabus();\n $modeladdress = $model->schooldetailsAddress;\n\n\n //Filling the empty model with db data to auto fill the form\n $schoolLevelsArray = [];\n\n foreach ($model->schooldetailsLevels as $schoolLevel) {\n array_push($schoolLevelsArray, $schoolLevel->school_level_id);\n }\n $modellevel->school_level_id = $schoolLevelsArray;\n\n $schoolCcasArray = [];\n\n foreach ($model->schooldetailsCcas as $schoolCca) {\n array_push($schoolCcasArray, $schoolCca->school_cca_id);\n }\n $modelcca->school_cca_id = $schoolCcasArray;\n\n $schoolInfraArray = [];\n\n foreach ($model->schooldetailsInfras as $schoolInfra) {\n array_push($schoolInfraArray, $schoolInfra->school_infra_id);\n }\n\n $modelinfra->school_infra_id = $schoolInfraArray;\n\n $schoolSyllabusArray = [];\n\n foreach ($model->schooldetailsSyllabi as $schoolSyllabus) {\n array_push($schoolSyllabusArray, $schoolSyllabus->school_syllabus_id);\n }\n\n $modelsyllabus->school_syllabus_id = $schoolSyllabusArray;\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['/school-details/view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'modellevel' => $modellevel,\n 'modelcca' => $modelcca,\n 'modelinfra' => $modelinfra,\n 'modelsyllabus' => $modelsyllabus,\n 'modeladdress' => $modeladdress,\n ]);\n }\n }", "title": "" }, { "docid": "792ed6e03ba2f077bc34506e40e66aa3", "score": "0.5087693", "text": "public function actionUpdate()\n {\n $model = User::findOne(['auth_key' => Yii::$app->request->get('auth_key')]);\n if ($model->load( Yii::$app->request->post())) {\n if($_FILES){\n $file = new UploadModel(['scenario' => UploadModel::ONE_FILE]);\n $file->imageFile = UploadedFile::getInstanceByName('file');\n $model->photo = $file->upload($model->id, 'photo/user');\n }\n $model->image_file = Yii::$app->request->post('file');\n $model->saveUpdate();\n return $model->oneFields();\n }\n return ['errors' => $model->errors];\n }", "title": "" }, { "docid": "4c3c7296cdaa6184255ed1890491cdc5", "score": "0.5081461", "text": "public function actionUpdate($id)\n\t{\n\t\t$model=$this->loadModel($id);\n\t\t\n\t\tif(isset($_POST['Projeto']))\n\t\t{\n\t\t\tif(isset($_POST['Projeto']['pessoas'])){\n\t\t\t\t$model->pessoas = $_POST['Projeto']['pessoas'];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$orcamentos = null;\n\t\t\tif(isset($_POST['Orcamento'])){\n\t\t\t\t$orcamentos = $_POST['Orcamento'];\n\t\t\t\n\t\t\t}\n\n\t\t\tif(isset($_POST['InstrumentoJuridico'])){\n\t\t\t\t$model->instrumento_juridico = json_encode($_POST['InstrumentoJuridico']);\n\t\t\t}\n\n\t\t\tif(isset($_POST['Convenio'])){\n\t\t\t\t$model->convenio = json_encode($_POST['Convenio']);\n\t\t\t}\n\n\t\t\t$model->attributes=$_POST['Projeto'];\n\n\t\t\t$connection = Yii::app()->db; \n\t\t\t$transaction=$connection->beginTransaction();\n\n\t\t\ttry\n\t\t\t{\n\t\t\t //Retira a permisssão do coordenador antigo\n\t\t\t\t//$this->deleteDafaultPermissions($model);\n\n\t\t\t if($model->save()){\n\t\t\t\t\t\n\t\t\t\t\tif(!$this->salvaOrcamento($model->cod_projeto, $orcamentos))\n\t\t\t\t\t\t$model->addError('orcamentos', \"Erro ao salvar orçamentos\");\n\t\t\t\t\t\n\t\t\t\t\t//Atualiza permissão do coordenador\n\t\t\t\t\t//$this->createDafaultPermissions($model);\n\n\t\t\t\t\tif(!$this->salvaPessoas($model->cod_projeto, explode(',', $model->pessoas))) \n\t\t\t\t\t\t$model->addError('pessoas', \"Erro ao adicionar equipe\");\n\n\t\t\t\t\t//Verifica erros e gera exceção\n\t\t\t\t\tif($model->hasErrors()) throw new CHttpException(500, \"ERRO AO SALVAR PROJETO\");\n\n\t\t\t\t\t//Salva definitivamente todas as alterações no banco\n\t\t\t\t\t$transaction->commit();\n\t\t\t\t\t//Redireciona\n\t\t\t\t\t$this->redirect(array('view','id'=>$model->cod_projeto));\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception $e) // uma exceção é disparada caso uma das consultas falhe\n\t\t\t{\n\t\t\t $transaction->rollBack();\t\n\t\t\t $model->instrumento_juridico = InstrumentoJuridico::load(json_decode($model->instrumento_juridico));\n\t\t\t\t$model->convenio = Convenio::load(json_decode($model->convenio));\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "8a403f30e5361d6d69779a3e6beccf56", "score": "0.5076054", "text": "public function actionUpdate($id,$c)\n{\n$model=$this->loadModel($id,$c);\n\n// Uncomment the following line if AJAX validation is needed\n// $this->performAjaxValidation($model);\n\nif(isset($_POST['DataPerusahaan']))\n{\n$model->attributes=$_POST['DataPerusahaan'];\nif($model->save())\n{\n\n$modeluserperusahaan =UserPerusahaan::model()->findByAttributes(array('id_perusahaan'=>$model->id_perusahaan));\n$modeluser=Users::model()->findByAttributes(array('userid'=>$modeluserperusahaan->userid));\n$modeluser->full_name=$model->nama_perusahaan;\n$modeluser->save(false);\n\nYii::app()->user->setFlash('success', \"Data Perusahaan $model->nama_perusahaan telah dirubah.\");\n$this->redirect(array('view'));\n}\n}\n\nif(Yii::app()->request->getIsAjaxRequest())\n\t\t {\n echo $this->renderPartial('update',array('model'=>$model),true,true);//This will bring out the view along with its script.\n }\n\nelse \n$this->render('update',array(\n'model'=>$model,\n));\n}", "title": "" }, { "docid": "0c8e04a5129f91462265a22cbc8069ea", "score": "0.5066277", "text": "function c_update() {\n $this->Crud_model->m_update();\n $this->c_select();\n }", "title": "" }, { "docid": "6ecbbc4c36533d3b413b60f76e34d493", "score": "0.50647", "text": "public function update(DeviceModelRequest $request, DeviceModel $devicemodel)\n {\n try{\n // dd($request->all(['name','brand_id','class_id']));\n $result=$devicemodel->update($request->all(['name','brand_id','class_id','hardconfig']));\n flash_info($result,'设备型号修改成功','设备型号修改失败');\n }catch (Exception $e) {\n flash($e->getMessage(), 'danger');\n\n }\n return redirect('/admin/devicemodel');\n\n }", "title": "" }, { "docid": "f38ea7bbd7f5cbe095a6362392424949", "score": "0.50627613", "text": "public function actionUpdate($student_id, $year, $semester, $project_code)\n {\n\n\n $model_project = ScbProject::find()->where(['project_code' => $project_code])->one();\n $proj_type = ScbProjectType::find()->all();\n $student_project = ScbStudentHasProject::find()->where(['student_id' => $student_id, 'year' => $year, 'semester' => $semester, 'project_code' => $project_code])->one();\n $semes_year = ScbYearHasSemester::find()->all();\n $adviser_central = EofficeCentralViewPisPerson::find()->where(['person_type' => '1'])->all();\n $adviser_main = ScbTeacherHasProject::find()->where(['project_code' => $project_code,'adviser_status'=>1])->one()->teacher_id_card;\n $adviser_co = ScbTeacherHasProject::find()->where(['project_code' => $project_code,'adviser_status'=>2])->one()->teacher_id_card;\n\n if (Yii::$app->request->post()) {\n $model_project->load(Yii::$app->request->post());\n try {\n $model_project->project_file = UploadedFile::getInstance($model_project, 'project_file');\n $model_project->project_file = $model_project->uploadFile();\n $model_project->project_image = UploadedFile::getInstance($model_project, 'project_image');\n $model_project->project_image = $model_project->uploadImage();\n } catch (Exception $e) {\n }\n $model_project->pro_status = 0;\n $model_project->save();\n\n $student_project->load(Yii::$app->request->post());\n $student_project->save();\n\n $adviser_main = Yii::$app->request->post('adviser_main');\n $adviser_co = Yii::$app->request->post('adviser_co');\n\n //---------- adviser_main\n if($adviser_main){\n $models_main = new ScbTeacher();\n $models_main->id_card = $adviser_main;\n $data_main = ScbTeacher::findOne($adviser_main);\n if ($data_main == null) {\n $models_main->save();\n }\n $data = ScbTeacherHasProject::find()->where(['project_code'=>$project_code,'adviser_status'=>1])->one();\n if($data){\n $data->teacher_id_card = $adviser_main;\n $data->save(false);\n }\n else{\n $model_main = new ScbTeacherHasProject();\n $model_main->teacher_id_card = $adviser_main;\n $model_main->project_code = $project_code;\n $model_main->adviser_status = 1;\n if($adviser_main != null && $adviser_main != \"\"){\n $model_main->save(false);\n }\n }\n }\n //---------- adviser_main\n\n\n //---------- adviser_co\n if($adviser_co){\n $model_co = new ScbTeacher();\n $model_co->id_card = $adviser_co;\n $data_co = ScbTeacher::findOne($adviser_co);\n if ($data_co == null) {\n $model_co->save();\n }\n $data = ScbTeacherHasProject::find()->where(['project_code'=>$project_code,'adviser_status'=>2])->one();\n if($data){\n $data->teacher_id_card = $adviser_co;\n $data->save(false);\n }else{\n $model_co = new ScbTeacherHasProject();\n $model_co->teacher_id_card = $adviser_co;\n $model_co->project_code = $project_code;\n $model_co->adviser_status = 2;\n if($adviser_co != null && $adviser_co != \"\"){\n $model_co->save(false);\n }\n }\n }\n //------------ adviser_co\n\n return $this->actionIndex();\n\n }\n\n $this->layout = \"main_module\";\n return $this->render('update', [\n 'model_project' => $model_project,\n 'student_project' => $student_project,\n 'proj_type' => $proj_type,\n 'semes_year' => $semes_year,\n 'adviser_central' => $adviser_central,\n 'adviser_main' => $adviser_main,\n 'adviser_co' => $adviser_co,\n ]);\n }", "title": "" }, { "docid": "921d3313a8abc4386bae3b238954e4c9", "score": "0.50547045", "text": "public function actionUpdate($id)\n {\n \n $model = $this->findModel($id);\n $oferta = Oferta::find()->where(['id'=> $id])->One();\n if ($model->load(Yii::$app->request->post())) {\n $oferta->comentarios = $model->comentarios;\n $oferta->oferta_serv = $model->oferta_serv;\n $oferta->save(false);\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "f9cf5dd94d572c882452e106a88d3acb", "score": "0.50545377", "text": "public function actionUploadupdate()\n {\n if(Yii::$app->user->can('site-clerk'))\n {\n $model = new Enroll();\n if ($model->load(Yii::$app->request->post()) ) {\n $model->file = UploadedFile::getInstance($model, 'file');\n if ( $model->file) //&& $model->validate()\n {\n $time = time();\n $model->file->saveAs('csv/enroll/update' .$time. '.'.$model->file->baseName . '.'. $model->file->extension);\n $model->file = 'csv/enroll/update' .$time. '.'.$model->file->baseName . '.'. $model->file->extension;\n $handle = fopen($model->file, \"r\");\n while (($fileop = fgetcsv($handle, 1000, \",\")) !== false) \n {\n $studid = $fileop[0];\n $courseid = $fileop[1];\n $resit = $fileop[2];\n $ca = $fileop[3];\n $exams = $fileop[4];\n $acyear = $fileop[5];\n $classroom = $fileop[6];\n // print_r($fileop);exit();\n $sql = \"UPDATE enroll SET studid='$studid', courseid='$courseid', resit='$resit', ca='$ca', exams='$exams', acyear='$acyear', classroom='$classroom' WHERE studid='$studid' and courseid='$courseid' and resit='$resit'\";\n $query = Yii::$app->db->createCommand($sql)->execute();\n }\n if ($query) \n {\n echo \"data upload successfull\";\n }\n }\n $model->save();\n return $this->redirect(['index']);\n } else {\n return $this->render('upload', [\n 'model' => $model,\n ]);\n }\n }else \n {\n $this->redirect(\\Yii::$app->urlManager->createURL(\"student/index\"));\n }\n }", "title": "" }, { "docid": "bc967497a4daad34f31180e91f62836c", "score": "0.50534856", "text": "public static function update($model) {\n\n LoggerHelper::log('UPDATE', trans('logs.msg.update', [\n 'resource' => MainHelper::getTable($model),\n 'id' => $model->id\n ]));\n\n }", "title": "" }, { "docid": "24b3ded97f16c0c6edf4e11f8b83a08c", "score": "0.5053227", "text": "public function updated($model)\n {\n $this->service->log(200002, $model, __FUNCTION__, $model->getAttributes());\n\n $this->success(200002);\n }", "title": "" }, { "docid": "4dd5869de639fe6ce175f7d27bef61f3", "score": "0.5049688", "text": "public function actionUpdate($id, $rate_id, $world_id, $cover_img_id)\n {\n $model = $this->findModel($id, $rate_id, $world_id, $cover_img_id);\n\n\n $modelimg = CoverImg::find()->where(['id'=>$cover_img_id])->one();\n\n Yii::$app->params['uploadPath'] = 'uploads/coverimage/';\n\n if ($model->load(Yii::$app->request->post())) {\n\n\n $image = UploadedFile::getInstance($modelimg,'cover');\n if ($image->size!=0) {\n unlink(getcwd().'/uploads/coverimage/'.$model->coverImg['filename']);\n\n // store the source file name\n $modelimg->filename = $image->name;\n $ext = end((explode(\".\", $image->name)));\n\n // generate a unique file name\n $modelimg->filename = Yii::$app->security->generateRandomString().\".{$ext}\";\n\n // the path to save file, you can set an uploadPath\n // in Yii::$app->params (as used in example below)\n $path = Yii::$app->params['uploadPath'] . $modelimg->filename;\n\n if($modelimg->save()){\n\n $image->saveAs($path);\n Image::frame($path)\n ->resize(new Box(1280, 720))\n ->save($path, ['quality' => 100]);\n $modelimg->id;\n $model->cover_img_id = $modelimg->id;\n $model->save();\n\n } else {\n // error in saving model\n }\n }\n\n return $this->redirect(['view', 'id' => $model->id, 'rate_id' => $model->rate_id, 'world_id' => $model->world_id, 'cover_img_id' => $model->cover_img_id]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n 'modelimg'=> $modelimg,\n ]);\n }\n }", "title": "" }, { "docid": "0df3ade08fb466cb33c0f3e9ede0bdca", "score": "0.50485015", "text": "public function actionUpdate()\n\t{\n\t\t$model=$this->loadModel();\n\n\t\tif(isset($_POST['User']))\n\t\t{\n\t\t\t$model->attributes=$_POST['User'];\n\t\t\tif($model->save())\n\t\t\t\t$this->redirect(array('/user/admin'));\n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n\t\t));\n\t}", "title": "" }, { "docid": "78d9858177c224dda8c15f49583aec4a", "score": "0.5048062", "text": "public function updating($model)\n {\n $this->service->log(200004, $model, __FUNCTION__, $model->getOriginal());\n\n // $this->info(100001);\n }", "title": "" }, { "docid": "9506df99b90a72baac8e8e0bbcce3b00", "score": "0.50479394", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n \n if ($model->load(Yii::$app->request->post()) ) {\n\n $transaction = Yii::$app->db->beginTransaction();\n try {\n $model->detailKendaraan = Yii::$app->request->post('d_sewa_kendaraan', []);\n $model->detailSopir = Yii::$app->request->post('d_sewa_sopir', []);\n \n if ($model->save()) {\n $transaction->commit();\n return $this->redirect(['view', 'id' => $model->id_sewa]);\n }\n \n $transaction->rollBack();\n } catch (\\Exception $ecx) {\n $transaction->rollBack();\n throw $ecx;\n }\n \n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "89d69456a4912acf9defca9bad2a808f", "score": "0.5046141", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->encomiendaID]);\n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }", "title": "" }, { "docid": "8aafdac44b9c96b9b922672903d55a80", "score": "0.5040333", "text": "function update($model, $id);", "title": "" }, { "docid": "32c5cd5db0b5b17b1f6de3627d1aa520", "score": "0.50398344", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post()))\n {\n Yii::$app->getSession()->setFlash('success', 'Data has been successfully updated');\n\n $model->ors_no = implode('*', $model->ors_no);\n $model->save(false);\n return $this->redirect(['view', 'id' => $model->id]);\n }\n return $this->render('update', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "046fb1444be246be4a7a075379c1cc4a", "score": "0.5039784", "text": "public function actionUpdate($id )\n\t{\n \n\t\t$model=$this->loadModel($id);\n $weight= Weight::model()->findAllByAttributes(array('id_guide'=>$model->id_guide));\n \n \n if(Yii::app()->user->id!=$model->id_user)\n throw new CHttpException(404, 'Usted no esta autorizado para realizar esta acción.');\n \n\t\tif(isset($_POST['Guide']))\n\t\t{\n\t\t\t$model->attributes=$_POST['Guide'];\n \n if($model->save()){\n $this->redirect(array('view','id'=>$model->id_guide));\n }\n \n\t\t}\n\n\t\t$this->render('update',array(\n\t\t\t'model'=>$model,\n 'weight'=>$weight,\n\t\t));\n\t}", "title": "" }, { "docid": "402c4aabdf7d03291c3cdf2d5c892296", "score": "0.5033118", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $estatus = new EntEstatus();\n $historial = EntEstatus::find()->where(['id_localidad' => $id])->all();\n $nombreOriginal = $model->txt_nombre;\n $model->txt_tag_estatus_tracker = explode('|', $model->txt_tag_estatus_tracker);\n \n if ($model->load(Yii::$app->request->post()) && $estatus->load(Yii::$app->request->post())) { //print_r($model->fch_asignacion);print_r($model->fch_vencimiento_contratro);exit;\n\n /**\n * Guardar datos si vienen de forma manual\n */\n if($_POST['tipo_ubicacion'] == 1){\n $model->txt_cp = $_POST['EntLocalidades']['textoCP'];\n $model->txt_calle = $_POST['EntLocalidades']['textoCalle'];\n $model->texto_colonia = $_POST['EntLocalidades']['textoColonia'];\n $model->txt_municipio = $_POST['EntLocalidades']['textoMun'];\n $model->texto_estado = $_POST['EntLocalidades']['$textoEstado'];\n\n $model->txt_colonia = null;\n }\n\n $txtTracker = '';\n foreach($_POST['EntLocalidades']['txt_tag_estatus_tracker'] as $texto){\n $txtTracker .= $texto . '|';\n }\n\n $model->txt_tag_estatus_tracker = $txtTracker;\n $model->fch_vencimiento_contratro = Utils::changeFormatDateInput($model->fch_vencimiento_contratro);\n $model->fch_asignacion = Utils::changeFormatDateInput($model->fch_asignacion);print_r($model->fch_asignacion);//print_r($model->fch_vencimiento_contratro);exit;\n\n if(!empty($_POST['EntEstatus']['txt_estatus'])){\n $estatus->id_localidad = $model->id_localidad;\n }\n \n if ($model->validate()) {\n if ($nombreOriginal != $model->txt_nombre) {\n // @TODO\n //Esto debe de renombrar la carpeta y no crear un nuevo folder marca error si tiene el mismo nombre\n $dropbox = Dropbox::moverArchivo(\"/\". ConstantesDropbox::NOMBRE_CARPETA . $nombreOriginal, \"/\". ConstantesDropbox::NOMBRE_CARPETA . $_POST[\"EntLocalidades\"][\"txt_nombre\"]);\n\n $decodeDropbox = json_decode(trim($dropbox), true);\n\n if (isset($decodeDropbox['metadata'])) {\n if($model->save()){\n if(!empty($_POST['EntEstatus']['txt_estatus'])){\n if(!$estatus->save()){\n print_r($estatus->errors);exit;\n }\n }\n return $this->redirect(['index']); \n }else{\n print_r($model->errors);exit;\n }\n } else {\n Yii::$app->session->setFlash('error', \"Ocurrió un problema con la comunicación de dropbox. Si el problema persiste contacté a soporteœ2gom.com.mx.\");\n\n }\n } else {\n if($model->save()){\n if(!empty($_POST['EntEstatus']['txt_estatus'])){\n if(!$estatus->save()){\n print_r($estatus->errors);exit; \n }\n }\n return $this->redirect(['index']);\n }else{\n print_r($model->errors);exit;\n }\n }\n }\n\n }//print_r($_POST);exit;\n\n $tareas = true;\n $flag = true;\n\n $model->fch_vencimiento_contratro = Utils::changeFormatDateNormal($model->fch_vencimiento_contratro);\n $model->fch_asignacion = Utils::changeFormatDateNormal($model->fch_asignacion);\n \n if($model->txt_colonia){\n $model->tipoUbicacion = 0;\n }else{\n $model->tipoUbicacion = 1;\n $model->textoCP = $model->txt_cp;\n $model->textoColonia = $model->texto_colonia;\n $model->textoEstado = $model->texto_estado;\n $model->textoCalle = $model->txt_calle;\n $model->textoMun = $model->txt_municipio;\n\n $model->txt_cp = null;\n $model->txt_municipio = null;\n $model->id_estado = null;\n $model->txt_calle = null;\n $model->id_estado = null;\n }\n\n return $this->render('update', [\n 'model' => $model,\n 'estatus' => $estatus,\n 'tareas' => $tareas,\n 'historial' => $historial,\n 'flag' => $flag,\n ]);\n }", "title": "" } ]
117a2e15bfb8a7f7ae0bf8d054590ccb
Methods Retrieve a new StringTokenList object
[ { "docid": "da749de01d16aba41882b747d52aa07c", "score": "0.0", "text": "public function __construct( $tokens = [] )\n\t{\n\t\t$this->clear()->rewind();\n\n\t\tif ( $tokens ) {\n\t\t\t$this->add( $tokens );\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "6eac8111e70d921f9a12689085de7c4d", "score": "0.5879291", "text": "function get_list( $end=')' ) {\n $value = implode(\",\",$this->get_array($end));\n // We inject and then return next so that the this will become\n // the current token. If we just returned the new token it wouldn't\n // do that.\n $this->tok->inject( new Modyllic_Token_List($this->tok->pos,$value) );\n return $this->next()->value();\n }", "title": "" }, { "docid": "b684a5cfffe115519d551d1c495f92d8", "score": "0.58127666", "text": "public function getTokens(){\r\n\t\tif (is_null($this->_tokens)){\r\n\t\t\t$this->_tokens = $this->_tokenize();\r\n\t\t}\r\n\t\treturn $this->_tokens;\r\n\t}", "title": "" }, { "docid": "b48842e0854fcaedf224363e2901d8e9", "score": "0.5597716", "text": "function token_get_all ($source) {}", "title": "" }, { "docid": "85a30340cb75efe83e67610d70c6800d", "score": "0.5500292", "text": "public function getToken(): Token;", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "b94c3ca06d763d3c0ea7c6ffb4b42285", "score": "0.5484372", "text": "public function getToken();", "title": "" }, { "docid": "94d03883750ec55e95dcdc9a8069ec0a", "score": "0.5476282", "text": "public function getWordList(): array;", "title": "" }, { "docid": "cf7d066a5fc675b6932893039f10e207", "score": "0.54733133", "text": "public function token();", "title": "" }, { "docid": "546fc5309465127f2bca9a16dfc6438f", "score": "0.54599684", "text": "public function getTokens()\n {\n return $this->_tokens;\n }", "title": "" }, { "docid": "57635026fbdaafe18fbc9c6ab9342579", "score": "0.5432675", "text": "public function getTokens()\n {\n return $this->tokens;\n }", "title": "" }, { "docid": "57635026fbdaafe18fbc9c6ab9342579", "score": "0.5432675", "text": "public function getTokens()\n {\n return $this->tokens;\n }", "title": "" }, { "docid": "57635026fbdaafe18fbc9c6ab9342579", "score": "0.5432675", "text": "public function getTokens()\n {\n return $this->tokens;\n }", "title": "" }, { "docid": "f0bc78086ad01f032a5b0ec8758ba5a3", "score": "0.53976256", "text": "public function getTokenString() {\r\n\t\t\treturn $this->token_string;\r\n\t\t}", "title": "" }, { "docid": "f3135576bc692d7f5490081e5bbf8748", "score": "0.53728485", "text": "protected function _toObjects()\n\t{\n\t\tforeach($this->_tokens_array as $token)\n\t\t{\n\t\t\tarray_push($this->_tokens,\n\t\t\t\tnew YaPhpDoc_Tokenizer_Token($token));\n\t\t}\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "efb1d087063a83c3415f9e760abc0d67", "score": "0.5346009", "text": "public function setToken()\n {\n return $this->adaptee->createToken();\n }", "title": "" }, { "docid": "464b5329754d43dad0ad5b8cfa0205ff", "score": "0.52945787", "text": "public function getAuthTokenClassList();", "title": "" }, { "docid": "7676c275589502e8351b8ee321c558d6", "score": "0.528287", "text": "public function tokens() {\n return $this->tokens;\n }", "title": "" }, { "docid": "687431b41c22b0c3e8b22dd9feea93d9", "score": "0.5282864", "text": "public function Token() {\n\t}", "title": "" }, { "docid": "d8a0bf52a2f3987fb1c9c857218afc84", "score": "0.5239693", "text": "static function getToken() {\n\t\treturn self::get(self::TOKEN_NAME);\n\t}", "title": "" }, { "docid": "47b0ecc0404d6105f4c2ae43b408ead8", "score": "0.5224266", "text": "static function getList($listSlug){\r\n return new ToDoList($listSlug);\r\n }", "title": "" }, { "docid": "f097e8b81a1fec0a82b88347dfcd2d72", "score": "0.5223113", "text": "public function getToken() {\n\t\t\treturn $this->sToken;\n\t\t}", "title": "" }, { "docid": "c88e4192ebf46f846570b030542342dd", "score": "0.51753336", "text": "public function getToken()\n {\n return $this->token();\n }", "title": "" }, { "docid": "0f04e077d485a0ac3b9512f0ec277bb3", "score": "0.51553047", "text": "public function getToken()\n {\n return $this->getNewToken();\n }", "title": "" }, { "docid": "b2400fa615a2db5ac9c4b3d8e190461b", "score": "0.51454216", "text": "public function setNewToken()\n {\n $this->setToken( Utils::generateString(64) );\n\n return $this;\n }", "title": "" }, { "docid": "2653ddaff0dbfd4bae3684f9016833d7", "score": "0.5131737", "text": "public function get_token()\r\n {\r\n return $this->token;\r\n }", "title": "" }, { "docid": "c34a07b1868b68d45089c91fe2ba5d9d", "score": "0.510343", "text": "public function getTokens(): array {\n return $this->tokens;\n }", "title": "" }, { "docid": "ec2ed6eb8640078471cd974d58b4a20a", "score": "0.5101695", "text": "public function getTokens()\n {\n return (array) $this->cache\n ->type('tokens')\n ->restore($this->getId());\n }", "title": "" }, { "docid": "5e444865f0d04481f04b77dbda0481c2", "score": "0.5077193", "text": "public function getTokens()\n\t{\n\t\treturn $this->tokenSet->getTokens();\n\t}", "title": "" }, { "docid": "b144c53dd2dc6c9ffa7e52addae00101", "score": "0.5055201", "text": "public function getToken()\n {\n return $this->_token;\n }", "title": "" }, { "docid": "b144c53dd2dc6c9ffa7e52addae00101", "score": "0.5055201", "text": "public function getToken()\n {\n return $this->_token;\n }", "title": "" }, { "docid": "ec18f561743f2b83383e1ce30ef02b9c", "score": "0.50542724", "text": "public static function get() {\n if (!self::$list)\n self::$list = new CriticalI_Command_List();\n return self::$list;\n }", "title": "" }, { "docid": "441ef0a6c29f769730e329dd6658607b", "score": "0.5047423", "text": "public function getToken()\n {\n //TODO vérifier la date\n\n if (!$this->_isValid) {\n $this->_generateNewToken();\n }\n return $this->_token;\n }", "title": "" }, { "docid": "10cae6bed6b8e2786960f3fd6192bdc9", "score": "0.5046555", "text": "public function getTokensFromKeywords () {\r\n $tokens = ['!fullname' => $this->name];\r\n\r\n // Sift through the keywords if it's important.\r\n $keywords = $this->keywords;\r\n switch ($this->type) {\r\n case Location::TYPE_CREATURE:\r\n $tokens['!creature'] = $keywords[1];\r\n $tokens['!creatureadj'] = $keywords[0];\r\n $tokens['!creaturefull'] = $keywords[0] . ' ' . $keywords[1];\r\n $tokens['!dwelling'] = $keywords[2];\r\n break;\r\n\r\n case Location::TYPE_DOMICILE:\r\n $tokens['!name'] = $keywords[0];\r\n $tokens['!dwelling'] = $keywords[1];\r\n break;\r\n }\r\n\r\n return $tokens;\r\n }", "title": "" }, { "docid": "4941e66214754bfd4148049e4ac534f8", "score": "0.5045768", "text": "function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "5e70670154de63382dfdbf601e375a25", "score": "0.5037102", "text": "public function getToken()\r\n {\r\n return $this->token;\r\n }", "title": "" }, { "docid": "1f4231411efdcc3adbeba0142ffa911d", "score": "0.50363284", "text": "abstract protected function extractToken($string);", "title": "" }, { "docid": "1de699a8440672b7772b039e0933735a", "score": "0.5008763", "text": "function _getTokens($string, $lngId) {\n $result = array(\n 'tokens' => array(),\n 'smalltokens' => 0,\n 'largetokens' => 0,\n 'blocktokens' => 0\n );\n if ($tokens = preg_split('~['.$this->nonWordChars.']+~', $string)) {\n foreach ($tokens as $token) {\n if ($this->caseSensitive) {\n $token = trim($token);\n } else {\n $token = papaya_strings::strtolower(trim($token));\n }\n if ('' == $token || isset($this->ignoreWords[$lngId][$token])) {\n //ignore token\n continue;\n } elseif (strlen($token) < $this->minTokenLength) {\n ++$result['smalltokens'];\n } else {\n if (strlen($token) > $this->blockTokenLength) {\n ++$result['blocktokens'];\n } elseif (strlen($token) > $this->maxTokenLength) {\n ++$result['largetokens'];\n }\n if (isset($result['tokens'][$token])) {\n ++$result['tokens'][$token];\n } else {\n $result['tokens'][$token] = 1;\n }\n }\n }\n }\n return $result;\n }", "title": "" }, { "docid": "e3c4d2780c64896e1dc514f42bcb4fe6", "score": "0.49974978", "text": "public function createToken();", "title": "" }, { "docid": "23f2c2b3a8fcfda219315fc6927f56c3", "score": "0.4987929", "text": "public function getStoredToken()\n {\n return new SettingsStoredToken();\n }", "title": "" }, { "docid": "000cfaa791890a4c483e3b03c686522d", "score": "0.49856415", "text": "public function getToken(): Token\n {\n $token = $this->token;\n $token->set($this->value, $this->id, $this->tokenLine, $this->isSingle);\n return $token;\n }", "title": "" }, { "docid": "3c7c274e9996b1e573f93a1a99c410ff", "score": "0.49765414", "text": "public function get_token() {\n\n\t\treturn $this->token;\n\t}", "title": "" }, { "docid": "c4abea6af684ad5ee37b36cca0579450", "score": "0.49715683", "text": "public function getToken() {\n return $this->_token;\n }", "title": "" }, { "docid": "ae30f3b209b469af7ac4972eef97f83b", "score": "0.49710494", "text": "public function get_list()\r\n\t{\r\n\t\treturn $this->get_attr('list');\r\n\t}", "title": "" }, { "docid": "1afd82b513076a10797259f00243681f", "score": "0.49611813", "text": "public function createList() {\n\t\ttry {\n\t\t\t$newFileHandle = $this->listFile->createListFile($this->clientRequest->getSubmittedListName());\n\t\t\t$newListName = $this->listFile->getNewListName();\n\t\t\t$this->listFile->writeToFile($newFileHandle, \"\");\n\t\t\treturn $this->viewList($newListName);\n\t\t} catch (\\Exception $e) {\n\t\t\treturn $this->mainView->getDefaultPage();\n\t\t}\n\t}", "title": "" }, { "docid": "29830d53cecb1dbc1a289e2f5246e762", "score": "0.49582002", "text": "function newTokenObj( $internalToken ) {\n\t\tif ( is_array( $internalToken ) ) {\n\t\t\treturn new ConfEditorToken( $internalToken[0], $internalToken[1] );\n\t\t} else {\n\t\t\treturn new ConfEditorToken( $internalToken, $internalToken );\n\t\t}\n\t}", "title": "" }, { "docid": "b3dac1d3e7c0402c7ae974dabf37e8d1", "score": "0.4942516", "text": "function createConstant() {\n $num = array_push($this->_tokens, new Token());\n return $this->_tokens[$num-1];\n }", "title": "" }, { "docid": "1c2b0b1468afac7d3d550f296b8be440", "score": "0.49398744", "text": "public function token()\n {\n return $this->get('_token');\n }", "title": "" }, { "docid": "1c2b0b1468afac7d3d550f296b8be440", "score": "0.49398744", "text": "public function token()\n {\n return $this->get('_token');\n }", "title": "" }, { "docid": "1c2b0b1468afac7d3d550f296b8be440", "score": "0.49398744", "text": "public function token()\n {\n return $this->get('_token');\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "8f8af9a4c534b0aa9c7c0844095ac7cb", "score": "0.49206406", "text": "public function getToken()\n {\n return $this->token;\n }", "title": "" }, { "docid": "92a783fe6f71f576ec48b4cd2591c99d", "score": "0.49195105", "text": "public function tokensToModify();", "title": "" }, { "docid": "b0e3c22d810a4a3ce32ebb37c8fd155b", "score": "0.49145824", "text": "function getConstants() {\n return $this->_tokens;\n }", "title": "" }, { "docid": "28a9f40da3db3b2e662198d7818441ed", "score": "0.49120173", "text": "public function getToken($type);", "title": "" }, { "docid": "b80b4eae037e147a76cdcce838eb20a3", "score": "0.49056324", "text": "public function getTermsRefListID()\n {\n return $this->TermsRef_ListID;\n }", "title": "" }, { "docid": "b2a7aa2730c71132ace13f5db03d1ee5", "score": "0.49034488", "text": "public function toToken() {\n $this->_token->populate(array('preferences' => array(\n 'directive' => $this->directive,\n 'questionnaire' => $this->questionnaire,\n 'member_state' => $this->memberState,\n )))->save();\n \n return $this->_token;\n }", "title": "" }, { "docid": "15bd87142bae3608bb339af92de7945a", "score": "0.4894905", "text": "public function testConstructListString()\n {\n $oListItemRun = new ListItemRun(0, 'numberingStyle');\n\n $this->assertInstanceOf('PhpOffice\\\\PhpWord\\\\Element\\\\ListItemRun', $oListItemRun);\n $this->assertCount(0, $oListItemRun->getElements());\n }", "title": "" }, { "docid": "4c35115d03a4b2ad4c1a90a7a50ba9f4", "score": "0.48924768", "text": "public function getToken() {\n\t\treturn $this->token;\n\t}", "title": "" }, { "docid": "4c35115d03a4b2ad4c1a90a7a50ba9f4", "score": "0.48924768", "text": "public function getToken() {\n\t\treturn $this->token;\n\t}", "title": "" }, { "docid": "74beca1c6413ff7f1088c13322c2d8ac", "score": "0.48897317", "text": "public static function get_tokens() {\n\t\t$class = get_called_class();\n\t\t$keyring_service_class = Keyring::get_service_by_name( $class::NAME );\n\n\t\treturn $keyring_service_class->get_tokens();\n\t}", "title": "" }, { "docid": "2832be1783d68ae136aa27325a349101", "score": "0.48866826", "text": "function createToken(){\n $str = \"qwertyuiopasdfghjklzxcvbnm123456789\"; //token will choose values from this\n $str = str_shuffle($str); //shuffling the string\n $token = substr($str, 0, 10); //taking only first 10 characters for token\n\n return $token; \n }", "title": "" }, { "docid": "4ac8e4a2562da308dc3eb67fbc35c421", "score": "0.48803547", "text": "public function getTagList();", "title": "" }, { "docid": "75eb1a6da7eea24d9b8d9bb8c7978d68", "score": "0.4877578", "text": "function getCategoryList($token) {\n\t//Returns the list of all categories in JSON Format\n}", "title": "" }, { "docid": "d6c64254ee1b24c6c7655c06ada63b91", "score": "0.4871187", "text": "public function __construct($token);", "title": "" }, { "docid": "b51ec186ee0e4af78524eece0afcdc1e", "score": "0.48710078", "text": "public function newAction()\n {\n $entity = new WordList();\n $form = $this->createCreateForm($entity);\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "title": "" }, { "docid": "e52711a8b029f8249f1af406077509b9", "score": "0.48695016", "text": "public function list ();", "title": "" }, { "docid": "77c0ee6b833a7f4aa20dd29d1d02b52c", "score": "0.48678628", "text": "public static function create_from_taglist($tagList) {\n\t\t\n\t\t// Split string\n\t\t$tagStrings = preg_split('/\\s*,\\s*/i', $tagList);\n\t\t$tags = new ArrayList();\n\t\tforeach($tagStrings as $tagString) {\n\t\t\t\n\t\t\t// Skip empty strings\n\t\t\t$tagString = trim($tagString);\n\t\t\tif(empty($tagString)) continue;\n\t\t\t\n\t\t\t// Given a tag, try to find the dataobject it relates to\n\t\t\t$tag = self::find_existing($tagString);\n\t\t\tif(!$tag || !$tag->exists()) {\n\t\t\t\t$tag = self::create();\n\t\t\t\t$tag->Title = $tagString;\n\t\t\t\t$tag->write();\n\t\t\t}\n\t\t\t$tags->add($tag);\n\t\t}\n\t\treturn $tags;\n\t}", "title": "" }, { "docid": "93d069328d65b4166fdbd2686cc7881a", "score": "0.48539683", "text": "public function stringToTokensStream(string $input): array\n {\n $this->init($input);\n\n return $this->getTokensStream();\n }", "title": "" }, { "docid": "21356ef2ff73d15b61530581dded2c16", "score": "0.48431525", "text": "public function getTokens(): array {\n $tokens = [];\n $tokens['@profile_name'] = $this->label;\n return $tokens;\n }", "title": "" }, { "docid": "97fa3948228e40b225e23b18ae2467f7", "score": "0.48371196", "text": "abstract public function getListenedTokens(): array;", "title": "" }, { "docid": "d0158b750aa9a3f4cf7c316547d295db", "score": "0.48309767", "text": "private function _generateNewToken()\n {\n $client = CDSApiClient::getInstance();\n $request = new CDSApiRequest($client->getUsername(), $client->getPassword(), $client->getTokenUrl());\n\n libxml_use_internal_errors(true);\n $xmlResult = simplexml_load_string($request->execute());\n\n //TODO gestion erreur token\n\n if ($xmlResult !== false && isset($xmlResult[0]) && ctype_alnum((string) ($xmlResult[0]))) {\n $this->_token = $xmlResult[0];\n\n if ($this->_token != null && $this->_token) {\n $this->_isValid = true;\n $this->_initdate = new DateTime();\n }\n }\n }", "title": "" }, { "docid": "a95c2f14eed9565722d29dd2f604802c", "score": "0.48286217", "text": "public function getToken()\n\t{\n\t\tif(!empty($this->token))\n\t\t{\n\t\t\treturn $this->token;\n\t\t}\n\t}", "title": "" }, { "docid": "5599b7a6bec4bad7fc77450f10a359a4", "score": "0.4809314", "text": "protected function parseList()\n {\n return PHP_EOL . ' ' . \"'\" . implode(\"',\" . PHP_EOL . \" '\", $this->list) . \"'\" . PHP_EOL;\n }", "title": "" }, { "docid": "9add43a03311451b7efa7c04f65b56ba", "score": "0.4799682", "text": "function tokenize( array $param ){\n\t\treturn $this->payfortApi->command( 'TOKENIZATION', $param );\n\t}", "title": "" }, { "docid": "6abe8fac091f3bffaa9c0706ad8b72da", "score": "0.4797334", "text": "public function testListsListnameGet()\n {\n }", "title": "" }, { "docid": "0fdadf9ce2ddb292a1d838c68eda414f", "score": "0.47909057", "text": "protected function returnToken()\n {\n return prev($this->tokens);\n }", "title": "" }, { "docid": "8b3d6095e4c3c932019b5abb6a346b07", "score": "0.4778873", "text": "function get_token_array( $end=\")\" ) {\n $value = array();\n while ( $this->next()->value() != $end ) {\n if ( $this->cur() instanceOf Modyllic_Token_EOC ) {\n throw $this->error( \"Hit end of command while looking for $end\" );\n }\n if ( ! $this->cur() instanceOf Modyllic_Token_Symbol or\n $this->cur()->value() != \",\" ) {\n $value[] = $this->cur();\n }\n }\n // We inject and then return next so that the this will become\n // the current token. If we just returned the new token it wouldn't\n // do that.\n $this->tok->inject( new Modyllic_Token_List($this->tok->pos,$value) );\n return $this->next()->value();\n }", "title": "" }, { "docid": "4b3ab816e57619e78ab02ecc46533a3a", "score": "0.4774346", "text": "private function getToken() {\r\n if ($this->token === null) {\r\n $serviceLocator = $this->getServiceLocator();\r\n $config = $serviceLocator->get('Config');\r\n $this->token = $config[\"token\"];\r\n }\r\n }", "title": "" }, { "docid": "219d236cb38c7b7af94c71e1996a7f8b", "score": "0.47688124", "text": "function getTokenName();", "title": "" }, { "docid": "d47e9c7b2e893a08556d4b98eff59c12", "score": "0.47657508", "text": "public function getToken(): string;", "title": "" }, { "docid": "8d17e66144073079d48dd20c19069533", "score": "0.475375", "text": "public function getList ()\n {\n }", "title": "" }, { "docid": "33e31138ed9a9a72ae0d93f8ed1953f3", "score": "0.47514436", "text": "public function token(string $token);", "title": "" }, { "docid": "6c052dd909684694746790bc0ee81e87", "score": "0.47470495", "text": "public function getUserList(){\n $parameters = new GetUserList();\n }", "title": "" }, { "docid": "743b35280e83ae12e80715b72621a4f4", "score": "0.47465506", "text": "public function getToken() {\n return $this->currentToken;\n }", "title": "" } ]
baff8580f031233ee66922f0d1222ede
data retrieve from patient records table ends///
[ { "docid": "c975884aa77ef79b1967eba8d20d5514", "score": "0.61067533", "text": "function patientschedule($pid)\n{\n\t$query=\"SELECT * FROM patientrequest WHERE pid='$pid'\";\n\t$results=getdata($query);\n\treturn $results;\n}", "title": "" } ]
[ { "docid": "131a1df0e07c66fb6c2c646c1793c0d4", "score": "0.7299408", "text": "function patientrecords($pid)\n{\n\t$records=\"SELECT * FROM `patientrecords` WHERE pid='$pid'\";\n\t$results=getdata($records);\n\treturn $results;\n}", "title": "" }, { "docid": "30a3b9d3bc5e6ff2100506f14748a932", "score": "0.717016", "text": "public function retrive() // Retrive the data from table: 'PATIENT':\n {\n\t\t$_surname=$this->getSurname();\n\t\t$_name=$this->getName();\n\t\t$_birthday=$this->getBirthday();\n\t\t\n $_name = strtoupper($_name);\n $_surname = strtoupper($_surname);\t\n\t\t\n\t\t$_birthday=data_convert_for_mysql($_birthday);\n\t\n\t\t$query = \"SELECT id, sex, address, telephone, note, reparto_provenienza, data_decesso FROM patient WHERE surname = '$_surname' AND name = '$_name' AND date_birthday = '$_birthday'\";\n\t\t$rs = mysql_query($query);\n\t\twhile(list($id, $sex, $address, $telephone, $note, $reparto_provenienza, $data_decesso) = mysql_fetch_row($rs))\n\t\t{\n\t\t\t$this->setID_paziente($id);\n\t\t\t$this->setSex($sex);\t\n\t\t\t$this->setAddress($address);\n\t\t\t$this->setTelephone($telephone);\n\t\t\t$this->setNote($note);\t\t\t\n\t\t\t$this->setReparto_provenienza($reparto_provenienza);\t\n\t\t\t$this->setData_decesso($data_decesso);\t\n\t\t}\n\t\t// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n\t}", "title": "" }, { "docid": "23106766b33a7810c9888c1f79a69d63", "score": "0.65654486", "text": "public function selectPatient(){\n $bdd=Connexion::getInstance();\n $req=\"select * from patient \";\n $rep=$bdd->query($req);\n return $rep->fetchall();\n \n }", "title": "" }, { "docid": "1b7f9a6d4ad4b59d7c2d2c3db1507f3a", "score": "0.65316486", "text": "function get_record()\n\t{\n\t\tglobal $app;\n\t\t$db = new db();\n\t\t$args = func_get_args();\n\t\tswitch (func_num_args()):\n\t\t\tcase 2:\n\t\t\t\t$sql = \"select * from \".$app['table'][$args[0]].\" where $args[1] limit 1\";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$sql = \"select * from \".$app['table'][$args[0]].\" where $args[1] = '$args[2]' limit 1\";\n\t\t\t\tbreak;\n\t\tendswitch;\n\t\tif (!stristr($sql,\"union\")){\t\t\t\n\t\t\t$db->query($sql, $rs, $nr);\n\t\t}\n \tif ($nr){\n \t $record = $db->fetch($rs);\n \t}else{\n \t $record[0] = \"\";\n \t}\n\t\t//print_r($rs);exit;\n\t\tmysqli_free_result($rs);\n \treturn $record;\n\t}", "title": "" }, { "docid": "98a1e68400978654573f89b2c3dc9233", "score": "0.65223414", "text": "function getPatientData($id){\r\n\t $data = array();\r\n\t\t//run the query for all the users who are assigned a patient's role\r\n\t $query = \"SELECT tl.name AS tname,tl.Dosage, m.name AS mname, u.email,u.first_name,u.last_name, o.name AS oname, t.therapyID AS tid FROM Therapy AS t INNER JOIN Therapy_List as tl ON t.TherapyList_IDtherapylist=tl.therapy_listID INNER JOIN Medicine AS m ON tl.Medicine_IDmedicine = m.medicineID INNER JOIN User AS u ON t.User_IDpatient=u.userID INNER JOIN Organization AS o ON u.Organization=o.OrganizationID WHERE u.userID = '\".$id.\"'\";\r\n \r\n $result = $this->db->query($query);\r\n while( $row = $result->fetch_assoc()){\r\n $data[] = $row; \r\n }\r\n\t \r\n\t return $data;\r\n\t}", "title": "" }, { "docid": "e191e12e4602ce5499fd88b171e9aa64", "score": "0.6492429", "text": "function getPatientsData(){\r\n\t $data = array();\r\n\t\t//run the query for all the users who are assigned a patient's role\r\n\t $query = \"SELECT tl.name AS tname,tl.Dosage, m.name AS mname, u.email,u.first_name,u.last_name, o.name AS oname, t.therapyID AS tid FROM Therapy AS t INNER JOIN Therapy_List as tl ON t.TherapyList_IDtherapylist=tl.therapy_listID INNER JOIN Medicine AS m ON tl.Medicine_IDmedicine = m.medicineID INNER JOIN User AS u ON t.User_IDpatient=u.userID INNER JOIN Organization AS o ON u.Organization=o.OrganizationID WHERE u.Role_IDrole = 1\";\r\n \r\n $result = $this->db->query($query);\r\n while( $row = $result->fetch_assoc()){\r\n $data[] = $row; \r\n }\r\n\t \r\n\t return $data;\r\n\t}", "title": "" }, { "docid": "335cf76fa086125440e033a61c0dedbb", "score": "0.6448734", "text": "function getdata_pasien($no_medrec){\n\t\t\treturn $this->db->query(\"SELECT * FROM data_pasien where no_medrec='$no_medrec'\");\n\t\t}", "title": "" }, { "docid": "3590bfea742546de64ec6609039a6720", "score": "0.6444125", "text": "public function get_record(){\n\t\t$result=new resultobject();\n\t\ttry{\n\t\t\t$dao=new dao();\n\t\t\n\t\t\t$this->log->logIt(get_class($this).\"-\".\"get record\");\n\t\t\t$str_sql = \"select PAGES.int_page_id as id,PAGES.str_page_title as `title`,PAGES.str_page_alias as `alias`,PAGES.str_page_content as `description`,\";\n\t\t\t$str_sql .= \"PAGES.int_display_order as `display_order`,PAGES.int_created_by as createdby,PAGES.dat_created_on as date,PAGES.str_modified_by as `modifiedby`\";\n\t\t\t$str_sql .= \"from \".dbtable::TblPages.\" as PAGES WHERE PAGES.int_page_id=:page_id AND `flg_deleted`='N' \";\n\t\t\t\n\t\t\t$this->log->logIt(get_class($this).\"-\".\"get page id from abut us\".\"-\".$this->page_id);\n\t\t\n\t\t\t//echo $str_sql;\n\t\t\t\n\t\t\t$dao->initCommand($str_sql);\n\t\t\t$dao->addParameter(\":page_id\",trim($this->page_id));\n\t\t\t$this->log->logIt($str_sql);\n\t\t\t$result->resultStatus=resultConstant::Success;\t\t\n\t\t\t$result->resultData[\"list\"] = $dao->executeRow();\n\t\t\treturn $result;\t\t\t\t\t\t\t\t\t \n\t\t}\n\t\tcatch(Exception $e){\n\t\t\t$this->log->logIt(get_class($this).\"-\".\"is_exists\".\"-\".$e);\n\t\t\t$result->resultStatus=resultConstant::Error;\n\t\t\t$result->exception=$e;\n\t\t}\t\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "0da6cd47c00f76e7176644fe5e1bd85c", "score": "0.6439523", "text": "public function PrintRecordData($HdrID = ''){\n $HdrID = isset($_GET['HDRID']) ? trim($_GET['HDRID']) : '';\n $sql = \"Select cms484hdr.HdrID,cms484hdr.CertType,cms484hdr.StausFLG,DATE_FORMAT(cms484hdr.InitialCertDate, '%M %d ,%Y') as InitialCertDate,DATE_FORMAT(cms484hdr.RevisedCertDate, '%M %d ,%Y') as RevisedCertDate,DATE_FORMAT(cms484hdr.RecertificationDate, '%M %d ,%Y') as RecertificationDate,patient.PatientHICN,CONCAT (if(patient.PatientFname is null,'',patient.PatientFname),' ',if(patient.PatientMidName is null,'',patient.PatientMidName),' ',if(patient.PatientLname is null,'',patient.PatientLname)) as PatientName,DATE_FORMAT(patient.PatientDOB, '%M %d ,%Y') as PatientDOB,patient.PatientSex,patient.PatientPhone,patient.PatientAddr1,patient.PatientAddr2,patient.PatientCity,patient.PatientSt,patient.PatientZip,supplier.SupplierNPI,supplier.SupplierName,supplier.SupplierAddr1,supplier.SupplierAddr2,supplier.SupplierCity,supplier.SupplierSt,supplier.SupplierZip,supplier.SupplierPhone,physician.PhysicianNPI,CONCAT (if(physician.PhysicianFirstname is null,'',physician.PhysicianFirstname),' ',if(physician.PhysicianMidname is null,'',physician.PhysicianMidname),' ',if(physician.PhysicianLastname is null,'',physician.PhysicianLastname)) as PhysicianName, physician.PhysicianAddr1,physician.PhysicianAddr2,physician.PhysicianCity,physician.PhysicianSt,physician.PhysicianZip,physician.PhysicianPhone,cms484hdr.PlaceService,cms484hdr.FacilityNPI,cms484hdr.FacilityName,cms484hdr.FacilityPhone,cms484hdr.FacilityAddr1,cms484hdr.FacilityAddr2,cms484hdr.FacilityCity,cms484hdr.FacilityST,cms484hdr.FacilityZip,cms484hdr.`HCPCS-E0431`,cms484hdr.`HCPCS-E0431SupChrg`,cms484hdr.`HCPCS-E0431MedFee`,cms484hdr.`HCPCS-E1390`,cms484hdr.`HCPCS-E1390SupChrg`,cms484hdr.`HCPCS-E1390MedFee`,cms484hdr.`HCPCS-E1392`,cms484hdr.`HCPCS-E1392MedFee`,cms484hdr.`HCPCS-E1392SupChrg`,cms484hdr.`HCPCS-K0738`,cms484hdr.`HCPCS-K0738MedFee`,cms484hdr.`HCPCS-K0738SupChrg`,cms484hdr.`HCPCS-Other1Code`,cms484hdr.`HCPCS-Other1Desc`,cms484hdr.`HCPCS-Other1MedFee`,cms484hdr.`HCPCS-Other1SupChrg`,cms484hdr.`HCPCS-Other2Code`,cms484hdr.`HCPCS-Other2Desc`,cms484hdr.`HCPCS-Other2MedFee`,cms484hdr.`HCPCS-Other2SupChrg`,cms484hdr.`HCPCS-Other3Code`,cms484hdr.`HCPCS-Other3Desc`,cms484hdr.`HCPCS-Other3MedFee`,cms484hdr.`HCPCS-Other3SupChrg`,cms484hdr.`HCPCS-Other4Code`,cms484hdr.`HCPCS-Other4Desc`,cms484hdr.`HCPCS-Other4MedFee`,cms484hdr.`HCPCS-Other4SupChrg`,cms484det.LengthNeed,CONCAT('ICD9-Diagnosis Code : ',cms484det.ICD9,' - ',icd9.ICD9ShortDesc) as ICD9,cms484det.Q1AmmHg,cms484det.Q1Bpercent,DATE_FORMAT(cms484det.Q1Cdate, '%M %d ,%Y') as Q1Cdate,cms484det.Q2cond,cms484det.Q3cond,cms484det.Q4portable,cms484det.Q5O2LPM,cms484det.Q6AmmHg,cms484det.Q6Bpercent,DATE_FORMAT(cms484det.Q6Cdate, '%M %d ,%Y') as Q6Cdate,cms484det.Q7CHF,cms484det.Q8Hypert,cms484det.Q9Herm,cms484det.SignedByName,cms484det.SignedByTitle,cms484det.SignedByEmployer,DATE_FORMAT(cms484det.LastUpdate, '%M %d ,%Y') as LastUpdate,case when (cms484det.LengthNeed is null and cms484det.ICD9 is null and cms484det.SignedByEmployer is null) then '(Not Filled Out)' End as Send from cms484hdr inner join patient on patient.PatientHICN = cms484hdr.PatientHICN Left join supplier on supplier.SupplierNPI = cms484hdr.SupplierNPI Left join physician on physician.PhysicianNPI = cms484hdr.PhysicianNPI inner join cms484det on cms484det.DetailID = cms484hdr.HdrID Left join icd9 on icd9.ICD9ID = cms484det.ICD9 Where cms484hdr.HdrID = '$HdrID';\";\n $result = mysql_query($sql);\n if($result)\n {\n $row_count = mysql_num_rows($result);\n if($row_count == 1)\n {\n $row = mysql_fetch_array($result, MYSQL_ASSOC);\n $result_arr = array('HdrID' => $row['HdrID'],\n 'CertType' => $row['CertType'],\n 'StausFLG' => $row['StausFLG'], \n 'InitialCertDate' => isset($row['InitialCertDate']) ? $row['InitialCertDate']: '', \n 'RevisedCertDate' => isset($row['RevisedCertDate']) ? $row['RevisedCertDate']: '', \n 'RecertificationDate' => isset($row['RecertificationDate']) ? $row['RecertificationDate'] : '', \n 'PatientHICN' => $row['PatientHICN'], \n 'PatientName' => $row['PatientName'],\n 'PatientDOB' => isset($row['PatientDOB']) ? $row['PatientDOB'] : '', \n 'PatientSex' => $row['PatientSex'],\n 'PatientPhone' => $row['PatientPhone'],\n 'PatientAddr1' => $row['PatientAddr1'],\n 'PatientAddr2' => $row['PatientAddr2'], \n 'PatientCity' => $row['PatientCity'],\n 'PatientSt' => $row['PatientSt'],\n 'PatientZip' => $row['PatientZip'],\n 'SupplierNPI' => $row['SupplierNPI'], \n 'SupplierName' => $row['SupplierName'], \n 'SupplierAddr1' => $row['SupplierAddr1'], \n 'SupplierAddr2' => $row['SupplierAddr2'], \n 'SupplierCity' => $row['SupplierCity'], \n 'SupplierSt' => $row['SupplierSt'], \n 'SupplierZip' => $row['SupplierZip'], \n 'SupplierPhone' => $row['SupplierPhone'], \n 'PhysicianNPI' => $row['PhysicianNPI'], \n 'PhysicianName' => $row['PhysicianName'], \n 'PhysicianAddr1' => $row['PhysicianAddr1'], \n 'PhysicianAddr2' => $row['PhysicianAddr2'], \n 'PhysicianCity' => $row['PhysicianCity'], \n 'PhysicianSt' => $row['PhysicianSt'], \n 'PhysicianZip' => $row['PhysicianZip'], \n 'PhysicianPhone' => $row['PhysicianPhone'], \n 'PlaceService' => $row['PlaceService'], \n 'FacilityNPI' => $row['FacilityNPI'], \n 'FacilityName' => $row['FacilityName'], \n 'FacilityAddr1' => $row['FacilityAddr1'], \n 'FacilityAddr2' => $row['FacilityAddr2'], \n 'FacilityCity' => $row['FacilityCity'], \n 'FacilityST' => $row['FacilityST'], \n 'FacilityZip' => $row['FacilityZip'], \n 'FacilityPhone' => $row['FacilityPhone'],\n 'HCPCS_E0431' => $row['HCPCS-E0431'],\n 'HCPCS_E0431SupChrg' => $row['HCPCS-E0431SupChrg'],\n 'HCPCS_E0431MedFee' => $row['HCPCS-E0431MedFee'],\n 'HCPCS_E1390' => $row['HCPCS-E1390'],\n 'HCPCS_E1390SupChrg' => $row['HCPCS-E1390SupChrg'],\n 'HCPCS_E1390MedFee' => $row['HCPCS-E1390MedFee'],\n 'HCPCS_E1392' => $row['HCPCS-E1392'],\n 'HCPCS_E1392MedFee' => $row['HCPCS-E1392MedFee'],\n 'HCPCS_E1392SupChrg' => $row['HCPCS-E1392SupChrg'],\n 'HCPCS_K0738' => $row['HCPCS-K0738'],\n 'HCPCS_K0738MedFee' => $row['HCPCS-K0738MedFee'],\n 'HCPCS_K0738SupChrg' => $row['HCPCS-K0738SupChrg'],\n 'HCPCS_Other1Code' => $row['HCPCS-Other1Code'],\n 'HCPCS_Other1Desc' => $row['HCPCS-Other1Desc'],\n 'HCPCS_Other1MedFee' => $row['HCPCS-Other1MedFee'],\n 'HCPCS_Other1SupChrg' => $row['HCPCS-Other1SupChrg'],\n 'HCPCS_Other2Code' => $row['HCPCS-Other2Code'],\n 'HCPCS_Other2Desc' => $row['HCPCS-Other2Desc'],\n 'HCPCS_Other2MedFee' => $row['HCPCS-Other2MedFee'],\n 'HCPCS_Other2SupChrg' => $row['HCPCS-Other2SupChrg'],\n 'HCPCS_Other3Code' => $row['HCPCS-Other3Code'],\n 'HCPCS_Other3Desc' => $row['HCPCS-Other3Desc'],\n 'HCPCS_Other3MedFee' => $row['HCPCS-Other3MedFee'],\n 'HCPCS_Other3SupChrg' => $row['HCPCS-Other3SupChrg'],\n 'HCPCS_Other4Code' => $row['HCPCS-Other4Code'],\n 'HCPCS_Other4Desc' => $row['HCPCS-Other4Desc'],\n 'HCPCS_Other4MedFee' => $row['HCPCS-Other4MedFee'],\n 'HCPCS_Other4SupChrg' => $row['HCPCS-Other4SupChrg'],\n 'LengthNeed' => $row['LengthNeed'], \n 'ICD9' => $row['ICD9'], \n 'Q1AmmHg' => $row['Q1AmmHg'], \n 'Q1Bpercent' => $row['Q1Bpercent'], \n 'Q1Cdate' => isset($row['Q1Cdate']) ? $row['Q1Cdate'] : '', \n 'Q2cond' => $row['Q2cond'], \n 'Q3cond' => $row['Q3cond'], \n 'Q4portable' => $row['Q4portable'], \n 'Q5O2LPM' => $row['Q5O2LPM'], \n 'Q6AmmHg' => $row['Q6AmmHg'], \n 'Q6Bpercent' => $row['Q6Bpercent'], \n 'Q6Cdate' => isset($row['Q6Cdate']) ? $row['Q6Cdate']: '', \n 'Q7CHF' => $row['Q7CHF'], \n 'Q8Hypert' => $row['Q8Hypert'], \n 'Q9Herm' => $row['Q9Herm'], \n 'SignedByName' => $row['SignedByName'], \n 'SignedByTitle' => $row['SignedByTitle'], \n 'LastUpdate'=> isset($row['LastUpdate']) ? $row['LastUpdate'] : '', \n 'Send' => '<b><span style=\"color: #D94E37;font-size: 15px;\">'.$row['Send'].'</span></b>',\n 'SignedByEmployer' => $row['SignedByEmployer']);\n \n return json_encode($result_arr);\n }\n \n }\n}", "title": "" }, { "docid": "150175d49b882f62036447461b9f108b", "score": "0.6432646", "text": "function get_records(){\n\t\t$output=array();\n\t\t/*data request dari client*/\n\t\t$request = $this->m_master->request_datatable();\n\t\n\t\t/*Token yang dikrimkan client, akan dikirim balik ke client*/\n\t\t$output['draw'] = $request['draw'];\n\t\n\t\t/*\n\t\t $output['recordsTotal'] adalah total data sebelum difilter\n\t\t $output['recordsFiltered'] adalah total data ketika difilter\n\t\t Biasanya kedua duanya bernilai sama pada saat load default(Tanpa filter), maka kita assignment\n\t\t keduaduanya dengan nilai dari $total\n\t\t */\n\t\t/*Menghitung total desa didalam database*/\n\t\t$total = count($this->m_master->get_table_filter($this->table));\n\t\t$output['recordsTotal']= $output['recordsFiltered'] = $total;\n\t\n\t\t/*disini nantinya akan memuat data yang akan kita tampilkan\n\t\t pada table client*/\n\t\t$output['data'] = array();\t\n\t\n\t\t/*\n\t\t * jika keyword tidak kosong, maka menjalankan fungsi search\n\t\t * untuk ditampilkan di datable\n\t\t * */\n\t\tif($request['keyword'] !=\"\"){\n\t\t\t/*menjalankan fungsi filter or_like*/\n\t\t\t$this->m_master->search_like($request['keyword'],$this->column());\n\t\t}\n\t\t/*Pencarian ke database*/\n\t\t$query = $this->m_master->get_table_filter($this->table,'',$this->column()[$request['column']],$request['sorting'],$request['length'],$request['start']);\n\t\n\t\n\t\t/*Ketika dalam mode pencarian, berarti kita harus\n\t\t 'recordsTotal' dan 'recordsFiltered' sesuai dengan jumlah baris\n\t\t yang mengandung keyword tertentu\n\t\t */\n\t\tif($request['keyword'] !=\"\"){\n\t\t\t$this->m_master->search_like($request['keyword'],$this->column());\n\t\t\t$total = count($this->m_master->get_table_filter($this->table));\n\t\t\t/*total record yg difilter*/\n\t\t\t$output['recordsFiltered'] = $total;\n\t\t}\t\n\t\n\t\t$nomor_urut=$request['start']+1;\n\t\tforeach ($query as $row) {\n\t\t\t//show in html\n\t\t\t$output['data'][]=array($nomor_urut,\n\t\t\t\t\t\t\t\t\t$row->akses_code,\n\t\t\t\t\t\t\t\t\t$row->nama_modul,\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$row->level,\n\t\t\t\t\t\t\t\t\t$row->link,\n\t\t\t\t\t\t\t\t\t$row->icon\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t);\n\t\t\t$nomor_urut++;\n\t\t}\n\t\techo json_encode($output);\n\t\n\t}", "title": "" }, { "docid": "926cc563e4f49f66383ad8cf67cbd544", "score": "0.64146656", "text": "public function getRecords();", "title": "" }, { "docid": "d7c20e9652e6e1999a4e0d271ae76fed", "score": "0.63863987", "text": "public function getRecordData(){\n\t\t\n\t\t//Grab the data we were sent\n $requestedUID = $this->params['url']['uid'];\n \n\t\t//Get the model we're dealing with\n\t\t$modelInstance \t= $this->getInstance();\n\n\t\t//Grab the requested record\n\t\t$requestedRecord = $modelInstance->find( 'first', [\n\t\t\t\t\t\t\t\t'conditions' => [\n\t\t\t\t\t\t\t\t\t'uid' => $requestedUID\n\t\t\t\t\t\t\t\t]\n\t\t\t\t\t\t\t]);\n\n //Get the model name\n $modelName \t\t= key($requestedRecord);\n\n //Return the given record\n\t\t$this->set( $modelName, $requestedRecord[$modelName] );\n\t\t$this->set( '_serialize', [\n $modelName\n ]);\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "2e438e969fe9023f0fbf67e4440b0eac", "score": "0.63712764", "text": "function au_record($au_id)\n// returns the complete DAISY record of a given assessment unit ID\n{\n\t$query = \"\n\t\tSELECT *\n\t\tFROM AssessmentUnit\n\t\tWHERE id = $au_id\n\t\";\n\treturn get_data($query);\n}", "title": "" }, { "docid": "de67825b931db219a7546044163ac276", "score": "0.636478", "text": "public function getRecords() {\n\n $this->db->select('*');\n $query = $this->db->get($this->table);\n return $query->result();\n \n \n }", "title": "" }, { "docid": "3a0873501b798f9bc59eff71b6a13767", "score": "0.63426006", "text": "function GetPatient($batchno) {\n $getbatch = \"SELECT patient from samples WHERE batchno='$batchno'\";\n $gotbatch = mysql_query($getbatch) or die(mysql_error());\n $batchrec = mysql_fetch_array($gotbatch);\n $patient = $batchrec['patient'];\n return $patient;\n}", "title": "" }, { "docid": "2f0ecb942c182b8b060597518ea08e6b", "score": "0.63413084", "text": "public function getPatientsInfo()\n {\n $this->db->query('SELECT * FROM patient_info');\n $result = $this->db->resultset();\n return $result;\n }", "title": "" }, { "docid": "17cc4996f01d950d7332ba8afb4305a7", "score": "0.6336724", "text": "private function sql_query_select_record()\n {\n // visualizza una o piu' righe\n // TODO l'ordine delle PK ritornate dalla query e` casuale\n $this->sql = \"select * from \" . $this->config[\"table_name\"]\n . \" where \" . $this->sql_pk_filter($_REQUEST[\"pk_values\"]);\n\n $this->query_result = $this->sql_mgr->query($this->sql);\n if (! $this->query_result)\n {\n $this->set_error( \"DB Error.\" );\n }\n\n return $this->query_result;\n }", "title": "" }, { "docid": "b275838125dc2747af5b720775fcf19d", "score": "0.63105494", "text": "private function retrieveData(){\n $dbo=new DB();\n\t\t$db=$dbo->db;\n\t\t$stmt = $db->prepare(\t'SELECT `room_from`, `room_to`, `direction`'.\n\t\t\t\t\t\t\t\t'FROM `passages` '.\n\t\t\t\t\t\t\t\t'WHERE door = ? '\n\t\t\t\t\t\t\t\t);\n\t $id=$this->door->getId();\n $stmt->bind_param(\"i\", $id);\n\t $stmt->bind_result($from,$to,$this->originalDirection);\n\t $stmt->execute();\n\t $stmt->fetch();\n $this->roomFrom=new Room($from);\n $this->roomTo=new Room($to);\n \t\t$stmt->close();\n }", "title": "" }, { "docid": "e695aa9b54ae730d7a6717e8f17eb55f", "score": "0.6251488", "text": "public function get_all_patient()\n {\n $query = $this->db->select('*')\n ->from(\"patient_tbl\")\n ->where('create_by',$this->session->userdata('log_id'))\n ->get();\n $result = $query->result();\n return $result;\n }", "title": "" }, { "docid": "4cf5761ba61a6f39eba4a01b6ab2f6e1", "score": "0.620106", "text": "abstract protected function getNewRecordData();", "title": "" }, { "docid": "5965d49c0b08c28bc44904b094c0cd3e", "score": "0.61835235", "text": "public function get_patient_inde_info($patient_id=NULL)\n{\n \n return $result = $query = $this->db->select(\"*\")\n ->from(\"patient_tbl\")\n ->where(\"patient_id\",$patient_id)\n ->get()->row();\n \n }", "title": "" }, { "docid": "2b37bbb23d2692c35a4330ff0295705f", "score": "0.6161474", "text": "public function getpatient($id): Patient{\n\n $patient = [];\n $pat = $this->pdo->prepare('SELECT * FROM patient WHERE id=:id');\n $pat->bindValue(':id', $id, PDO::PARAM_INT);\n $pat->execute();\n $data=$pat->fetchAll();\n foreach($data as $value){\n $patient=new Patient($value); \n }\n return $patient;\n\n }", "title": "" }, { "docid": "14cd16aee8ee169429043c072a6f123d", "score": "0.6159184", "text": "function selectRecords()\n\t{\n\t\t$data=array();\n $this->db->select('*');\n $this->db->where('josh_head_tr.staff_no',$_SESSION['no']);\n\t\t$this->db->where('substr(josh_head_tr.periode,1,4)>=','2014');\n $this->db->orderby('periode','DESC'); \n\t\t$Q=$this->db->get('josh_head_tr');\n if($Q->num_rows()> 0 )\n\t\t {\n\t\t\t foreach ($Q->result_array() as $row)\n {\n $data[]=$row;\n }\n\t\t }\n\t\t$Q->free_result();\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "85b29a6660577582a6467f3cfe9941ba", "score": "0.61506593", "text": "public function fetchData() {\n //unset($saveObj);\n\t\t\n\t\t//READ\n\t\t/*$qryObj = new QueryHandler(\"hmrs_attendance\", $this->conn); \n $qryObj->select_records(\"hmrs_attendance.regdate, hmrs_attendance.staffid, hmrs_persdet.surname, hmrs_persdet.othnames\")\n\t ->inner_join(\"hmrs_persdet\", \"hmrs_attendance.staffid\", \"hmrs_persdet.staffid\")\n\t ->where_column(\"hmrs_attendance.regdate\")->is_greater_than_or_equal_to(\"2019-05-01\")\n\t ->and_column(\"hmrs_attendance.regdate\")->is_less_than_or_equal_to(\"2019-05-31\")\n\t ->order_by(\"hmrs_attendance.regdate\");\n $qryObj->execute_sql();\n\t $result = $qryObj->result;\n $this->debug_array($qryObj->curr_sql, $result);**/\n\n\n //UPDATE\n /*$saveObj = new QueryHandler(\"users_details\", $this->conn); \n $saveObj->init_upate()\n ->update_value(\"names\", \"Apetu Gideon\")\n ->update_value(\"address\", \"1234, house address\")\n ->update_value(\"email\", \"[email protected]\")\n ->where_column(\"users_details_id\")->greater_than(11)\n ->and_column(\"names\")->is_in(['Array','Apetu Test'])\n ->execute_update();*/\n\n //DELECT\n /*$delObj = new QueryHandler(\"users_details\", $this->conn); \n $delObj->init_delete()\n ->where_column(\"users_details_id\")->greater_than(10)\n ->and_column(\"names\")->is_in(['Array','Apetu Test'])\n ->execute_delete();*/\n\n //TESTING \n //NEW THING\n \n $cr8TabObj = new QueryHandler(\"users_men\", $this->conn);\n $cr8TabObj->create_update_table()\n ->int_value('nameid', 11, ['nullabe'=>true,'unique'=>true]);\n \n /*echo \"<pre>desc\"; \n print_r($delObj);\n echo \"</pre>\";**/\n //var_dump($saveObj->save_param_value);\n }", "title": "" }, { "docid": "cd5a76008913f02251bdbc103cef4edb", "score": "0.61436313", "text": "private function getRecords(){\r\n\t\treturn $this->rgc140();\r\n\t}", "title": "" }, { "docid": "b2733507ee3d414f8d8affe9ac658fd7", "score": "0.6142558", "text": "public static function GetMedicalRecord($caretaker_id=\"\"){\n\n\t\t\tglobal $config;\n\n\t\t\t$dbconn=db::singleton();\n\t\t\t$query = \"select u.user_id, concat(u.first_name,' ', u.last_name) name, mr.* from user u INNER JOIN medical_records mr ON u.user_id = mr.recommended_by WHERE mr.patient_id in (\nSELECT u.user_id FROM user u INNER JOIN patient_caretaker ck ON u.user_id = ck.patient_id WHERE ck.caretaker_id=\".$caretaker_id.\")\";\n\n\t\t\t//echo $query; die;\n\t\t\t$dbconn->SetQuery($query);\n\n\t\t\treturn $dbconn->LoadObjectList();\n\t\t}", "title": "" }, { "docid": "5d085fe2f45dbc7d23c9f45c3535f748", "score": "0.61397064", "text": "function get_records($code){\n\t\t$where = array('B.date_add'=>null,'A.company_code'=>$code);\n\t\n\t\t/*Mempersiapkan array tempat kita akan menampung semua data\n\t\t yang nantinya akan server kirimkan ke client*/\n\t\t$output=array();\n\t\t/*data request dari client*/\n\t\t$request = $this->m_master->request_datatable();\n\t\n\t\t/*Token yang dikrimkan client, akan dikirim balik ke client*/\n\t\t$output['draw'] = $request['draw'];\n\t\n\t\t/*Menghitung total desa didalam database*/\n\t\t$total = count($this->m_master->get_stock_take($where));\n\t\t$output['recordsTotal']= $output['recordsFiltered'] = $total;\n\t\n\t\t/*disini nantinya akan memuat data yang akan kita tampilkan\n\t\t pada table client*/\n\t\t$output['data'] = array();\n\t\n\t\n\t\t/*\n\t\t * jika keyword tidak kosong, maka menjalankan fungsi search\n\t\t* untuk ditampilkan di datable\n\t\t* */\n\t\tif($request['keyword'] !=\"\"){\n\t\t\t/*menjalankan fungsi filter or_like*/\n\t\t\t$this->m_master->search_like($request['keyword'],$this->column());\n\t\t}\n\t\n\t\t/*Pencarian ke database*/\n\t\t$query = $this->m_master->get_stock_take($where,$this->column()[$request['column']],$request['sorting'],$request['length'],$request['start']);\n\t\n\t\n\t\t/*Ketika dalam mode pencarian, berarti kita harus\n\t\t 'recordsTotal' dan 'recordsFiltered' sesuai dengan jumlah baris\n\t\tyang mengandung keyword tertentu\n\t\t*/\n\t\tif($request['keyword'] !=\"\"){\n\t\t\t$this->m_master->search_like($request['keyword'],$this->column());\n\t\t\t$total = count($this->m_master->get_stock_take($where));\n\t\t\t/*total record yg difilter*/\n\t\t\t$output['recordsFiltered'] = $total;\n\t\t}\n\t\n\t\t$nomor_urut=$request['start']+1;\n\t\tforeach ($query as $row) {\n\t\t\t//show in html\n\t\t\t$status = '<span class=\"label label-danger\">Out Stand</span>';\n\t\t\t$action = '<a href=\"#modal-form\" role=\"button\" title=\"Move\" data-toggle=\"modal\" class=\"btn btn-info btn-circle\" onclick=\"modalShow(\\''.base_url('bo/'.$this->class.'/modal_move').'\\',\\''.$row->id_product.'\\',\\'modal-form\\')\"><i class=\"icon-exchange\"></i> </a>';\n\t\t\t$output['data'][]=array($nomor_urut,\n\t\t\t\t\t$row->product_code,\n\t\t\t\t\t$row->description,\n\t\t\t\t\t$row->asset_class,\n\t\t\t\t\t$row->nama_class,\n\t\t\t\t\t$row->company_code,\n\t\t\t\t\t$row->bisnis_area,\n\t\t\t\t\t$row->sub_location,\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t$status,\n\t\t\t\t\t$action\n\t\t\t);\n\t\t\t$nomor_urut++;\n\t\t}\n\t\techo json_encode($output);\n\t\n\t}", "title": "" }, { "docid": "178c2034f8ec0bed172bae31d6bc459d", "score": "0.61393523", "text": "public function get_data($row);", "title": "" }, { "docid": "104ff750e19b7a5fd6c9e7a8ffcf9ce1", "score": "0.61027193", "text": "public function getAllRecords()\n {\n }", "title": "" }, { "docid": "abf3243cdd17d7f2dbf46b7bcafb0341", "score": "0.6080769", "text": "public function fetchData()\r\n {\r\n parent::fetchData();\r\n $this->is_assoc=(is_null($this->key) ? false : true);\r\n $this->result=array();\r\n while (!$this->recordSet->EOF) {\r\n $table_obj=clone $this->search_obj;\r\n $table_obj->loadFromDBArray($this->recordSet->FetchRow());\r\n if ($this->is_assoc) {\r\n $this->result[$table_obj->{$this->key}]=$table_obj;\r\n }else{\r\n $this->result[]=$table_obj;\r\n }\r\n }\r\n $this->recordSet->close();\r\n }", "title": "" }, { "docid": "8ac90dcc913ff6a8a4f961ea5df84c44", "score": "0.6074753", "text": "public function get(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n\t\t\t\t\t ;\n return $this->db->getRows(array(\"where\"=>$condition,\"return_type\"=>\"single\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "e34222fb0cb8c908ae385fcb2bdf8ebd", "score": "0.6066865", "text": "function selectManageRecords()\n\t{\n\t\t$data=array();\n $sql =\" SELECT josh_head_tr.periode \";\n $sql.=\" FROM josh_head_tr \";\n $sql.=\" JOIN josh_details_tr ON josh_details_tr.tr_code=josh_head_tr.tr_code \";\n $sql.=\" JOIN josh_job ON josh_job.code=josh_details_tr.job_code \";\n $sql.=\" Where SUBSTR(josh_head_tr.periode,1,4)>='2015'\";\n\t if($_SESSION['level']=='P') $sql.=\" AND josh_job.Partner='\".$_SESSION['no'].\"' \";\n\t if($_SESSION['level']=='AP') $sql.=\" AND josh_job.Manager='\".$_SESSION['no'].\"' \";\n\t if($_SESSION['level']=='M') $sql.=\" AND josh_job.Manager='\".$_SESSION['no'].\"' \";\n\t if($_SESSION['level']=='AM') $sql.=\" AND josh_job.Ass_Manager='\".$_SESSION['no'].\"'\";\n\t if($_SESSION['level']=='SM') $sql.=\" AND josh_job.Senior_Manager='\".$_SESSION['no'].\"' \";\n\t if($_SESSION['level']=='S2') $sql.=\" AND josh_job.Senior='\".$_SESSION['no'].\"'\";\n\t\tif($_SESSION['level']=='S1') $sql.=\" AND josh_job.Senior='\".$_SESSION['no'].\"'\";\n\t\t$sql.=\" GROUP BY josh_head_tr.periode \"; \n\t\t$sql.=\" ORDER BY josh_head_tr.periode DESC\"; \n $Q=$this->db->query($sql);\n if($Q->num_rows()> 0 ){\n\t\t\t foreach ($Q->result_array() as $row)\n {\n $data[]=$row;\n }\n }\n\t\t$Q->free_result();\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "d4c41a3950ffcce97119fdc46add9c5c", "score": "0.60575515", "text": "function getdata($id){\n\t\t\t$sql = $this->db->query(\"SP_ViewAPPO \".$id.\"\")->row(); \n\t\t\tdie(json_encode($sql));\n\t\t}", "title": "" }, { "docid": "3f9e5b319ae0795668db330372a0ad36", "score": "0.6030041", "text": "function find_patient($reg_no){\n\t\tglobal $connection;\n\t\t$query = \"SELECT reg_no, first_name, last_name, profile_image, fuculty, course, health_info, d_o_b, contact, address, email FROM student_patient WHERE reg_no ='{$reg_no}' union ALL \";\n\t\t$query .= \"SELECT reg_no, first_name, last_name, profile_image, fuculty, position, health_info, d_o_b, contact, address, email FROM staff_patient WHERE reg_no ='{$reg_no}' \";\n\n\t\t$patient_set = mysqli_query($connection, $query);\n\t\tconfirm_query($patient_set);\n\n\t\t// pre(mysqli_fetch_array($patient_set));\n\t\treturn $patient_set;\n\t}", "title": "" }, { "docid": "d6d1db56ee385b0262d3084819398c1b", "score": "0.6027669", "text": "public function getPatients()\n {\n $this->db->query('SELECT * FROM doctorapp');\n $result = $this->db->resultset();\n return $result;\n }", "title": "" }, { "docid": "8e7bc16ce802777e6a2ccb2b2f92615f", "score": "0.6027", "text": "static private function retreiveData(){\n \n }", "title": "" }, { "docid": "7628bb87e13501883925f3a742953757", "score": "0.6023694", "text": "public function getRecord(){ }", "title": "" }, { "docid": "165aa8b1fff2c3260b111641881d06fc", "score": "0.6021363", "text": "function getVodRecords($id){\n\t\t\t$query\t\t=\t\"SELECT d.*,i.*,cur.* FROM `tblvideo_ondemand` d JOIN `tblinstrument_master` i JOIN `tblcurrency_type` cur\n\t\t\t\t\t WHERE `cur`.currency_id=d.`currency_id` AND \n\t\t\t\t\t \ti.`instrument_id`=d.`instrument_id` \";\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(!empty($id)){\n\t\t\t\t\t\t\t$query\t\t.=\t\" AND d.`tutor_id`=$id \"\t;\n\t\t\t\t\t\t}\n\t\t\t$resultArry\t\t=\t$this->getdbcontents_sql($query,0);\t\t\n\t\treturn $resultArry;\n\t\n\t}", "title": "" }, { "docid": "43b9f04e23796313b8e866b71f877ee3", "score": "0.602129", "text": "function getData($table)\n {\n $record = array();\n $sql = \"select * from $table\";\n $result = $this->conn->prepare($sql);\n $result->execute();\n if ($result->rowCount() > 0) {\n while ($row = $result->fetch(PDO::FETCH_ASSOC)) {\n $record[] = $row;\n }\n return $record;\n } else {\n return $record = false;\n }\n $this->conn = null;\n }", "title": "" }, { "docid": "a9d26be11809c27d995d0f8f832b188b", "score": "0.60185987", "text": "function &getRecordByID($id){\n\t\tglobal $db;\n\t\t\n\t\t$sql = \"select kode,nama\tfrom m_poly where kode = '$id'\";\n\t\tPerson::events($sql);\n\t\t$row =& $db->getRow($sql);\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "f6b1f30af969879d077fc5b5333d5efc", "score": "0.601208", "text": "function getRecordById($id){ }", "title": "" }, { "docid": "c76a7b90f6d9f2a3c1d9a34f14c3526f", "score": "0.60046315", "text": "function getDataForPhysician($id){\r\n\t $data = array();\r\n\t $query = \"SELECT tl.name AS tname,tl.Dosage, m.name AS mname, u.email,u.first_name,u.last_name, o.name AS oname, t.therapyID AS tid\r\n FROM Therapy AS t \r\n INNER JOIN Therapy_List as tl ON t.TherapyList_IDtherapylist=tl.therapy_listID \r\n INNER JOIN Medicine AS m ON tl.Medicine_IDmedicine = m.medicineID\r\n INNER JOIN User AS u ON t.User_IDpatient=u.userID\r\n INNER JOIN Organization AS o ON u.Organization=o.OrganizationID\r\n WHERE t.User_IDmed = '\".$id.\"'\";\r\n \r\n $result = $this->db->query($query);\r\n while( $row = $result->fetch_assoc()){\r\n $data[] = $row; \r\n }\r\n\t \r\n\t return $data;\r\n\t}", "title": "" }, { "docid": "0503768a059595cb384698d5d7296ca5", "score": "0.60045356", "text": "public function get(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n\t\t\t\t\t $condition = array(\"ids\" =>$this->ids);\n return $this->db->getRows(array(\"where\"=>$condition,\"return_type\"=>\"single\"));\n\t\t\t\t\t }", "title": "" }, { "docid": "b55fb86c0cda31069393cb8d4e973821", "score": "0.6001556", "text": "function fetch_data($id){\n\t\t\t$query = $this->db->get_where('students', array('student_id' => $id));// SELECT from table where id = id\n\t\t\tif ($query->num_rows()>0) {\n\t\t\t\t\n\t\t\t\treturn $query->row();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "title": "" }, { "docid": "2a3596aebfbcf430e8706dbd4513ce21", "score": "0.5996116", "text": "public function patientRecord($patient_id = null)\n {\n $this->paginate = [\n 'contain' => ['Patients'],\n 'limit' => 10,\n 'order' => [\n 'Medications.modified' => 'ASC'\n ],\n 'conditions' => [\n 'rec_status' => 'done',\n 'patient_id' => $patient_id\n ]\n ];\n $patients = $this->paginate(\n $this->Medications\n );\n $search = '';\n $patientInfo = $this->getPatient($patient_id);\n $this->set(compact('patients', 'patientInfo', 'search'));\n }", "title": "" }, { "docid": "784d0edac85784123d0d57e1a17754ec", "score": "0.5996051", "text": "function getListOfRecords(){\n // the orders will be display and the receipts from there \n \n $element = new Receipt();\n \n $receipts_filter_orders = cisess(\"receipts_filter_orders\");\n \n if ($receipts_filter_orders===FALSE){\n $receipts_filter_orders = \"Abierta\"; // default to abiertas\n }\n \n \n \n \n $element->order_by(\"id\",\"desc\");\n \n $all = $element->get()->all;\n //echo $element->check_last_query();\n ///die();\n $table = $this->entable($all);\n \n return $table;\n \n \n }", "title": "" }, { "docid": "6951eb304e824291e9520fd2f283bad0", "score": "0.5994416", "text": "function &getRecord(){\n\t\t$app =& Dataface_Application::getInstance();\n\t\t$rec =& $app->getRecord();\n\t\treturn $rec;\n\t\t\n\t}", "title": "" }, { "docid": "6523089264700dbc3f81bec2e2b29349", "score": "0.5991545", "text": "function getRecords(){\n\t\t$stmt = $this->con->prepare(\"SELECT id, cname, fname, number FROM Client ORDER BY created_on DESC\");\n\t\t$stmt->execute();\n\t\t$stmt->bind_result($id, $cname, $fname, $number);\n\t\t\n\t\t$Records = array(); \n\t\t\n\t\twhile($stmt->fetch()){\n\t\t\t$Record = array();\n\t\t\t$Record['id'] = $id; \n\t\t\t$Record['cname'] = $cname; \n\t\t\t$Record['fname'] = $fname; \n $Record['number'] = $number; \n \n\t\t\t\n\t\t\tarray_push($Records, $Record); \n\t\t}\n\t\t\n\t\treturn $Records; \n\t}", "title": "" }, { "docid": "ae46ac44b4cf078f3a211016be5a91aa", "score": "0.59853333", "text": "public function getRecordArray()\r\n\t{\r\n\t\tglobal $dbobj;\r\n\t\t$file1 = explode(\"-\",$this->file);\r\n\t\t$file = $file1[1];\r\n\t\t$disp_field = $this->getTableField();\r\n\t\t$ExtraPara = $this->getExtraParamArray();\r\n\t\t$ssql = $this->ssql;\r\n\t\t$tablename = $this->getTableName();\r\n\t\t$var_limit = $this->var_limit;\r\n\t\t$sort =$this->SortList();\r\n\t\t//echo $sort;exit;\r\n\t\t//echo GetVar('tabfile');exit;\r\n\t\t//echo PRJ_DB_PREFIX.'_administrator';\r\n\t\tif($tablename == PRJ_DB_PREFIX.'_administrator `adm`')\r\n\t\t{\r\n\t\t\t$disp_field .= ',eType';\r\n\t\t}\r\n\t\t$sql_select = \"select $disp_field from $tablename $ssql order by $sort $var_limit\";\r\n\t\t// echo $sql_select; exit;\r\n\t\t$db_select_rs = $dbobj->MySQLSelect($sql_select);\r\n \treturn $db_select_rs;\r\n\t}", "title": "" }, { "docid": "1e0fea4baaa4a3457cee22ee6ddf0c1c", "score": "0.5983738", "text": "function get_info($id) {\r\n $STH = $this->DBH->prepare(\"SELECT p.*, pd.*, ppd.*, ppd.pro_title AS physician FROM `persons` AS p\r\n INNER JOIN patient_details AS pd\r\n ON p.person_id = pd.person_id\r\n INNER JOIN `person_pro_data` AS ppd\r\n ON pd.physician_id = ppd.person_id\r\n WHERE p.person_id = :id\");\r\n $STH->bindParam(':id', $id); \r\n $STH->execute();\r\n return $STH->fetch();\r\n }", "title": "" }, { "docid": "ff2ae1ae5d3a4059d645000e748677cb", "score": "0.59795225", "text": "public function getCustMedicalHistory($custID){\n //var_dump($custID);\n $stmt=$this->conn->prepare(\"SELECT recordID,custID,date,type,healthCondition,comments\n FROM med_record \n WHERE custID=$custID ORDER BY recordID DESC\");\n $stmt->execute();\n return $stmt->fetchAll();\n }", "title": "" }, { "docid": "eaf16c6f70076530592982b1b6a9cece", "score": "0.59762734", "text": "function getData()\n\t{\n\t\tglobal $_gTables;\n\n\t\t$db = Db::getInstance();\n\t\t\n\t\t$sql = \"SELECT asprz.*\n\t\t\t\tFROM $_gTables[ALLEGRO_SPRZEDANE] asprz\n\t\t\t\tWHERE asprz.id = '\".(int)$this->id.\"'\";\n\n\t\t$row = $db->GetRow( $sql );\n\n\t\tif ( $row===false )\n\t\t\tCommon::log( __METHOD__, $sql );\n\n\t\t//Debug($row);\n\n\t\treturn $row;\n\t}", "title": "" }, { "docid": "ba2f887ddf16ec3ff6a9496d546a11a6", "score": "0.59638846", "text": "public function getNonRequestedRecords(){\r\n\t\t$user_id = $_SESSION['user_id'];\r\n\r\n\t\t$sql_query = \"select uRecords.user_record_id as recordId, uRecords.record_type as recordType,'patient' as userType,uRecords.created_at as createdAt, udetails.user_name as userName, udetails.user_email as userEmail, udetails.user_id as userId FROM `pe_user_records` as uRecords LEFT JOIN pe_user_details as udetails ON udetails.user_id = uRecords.user_id where uRecords.user_id = '$user_id'\";\r\n\t\tglobal $db;\r\n\t\ttry{\r\n\t\t\t$user_record_details = $db->rawQuery($sql_query);\r\n\t\t\tif(isset($user_record_details[0])){\r\n\t\t\t\treturnSuccess('Records Found',$user_record_details);\r\n\r\n\t\t\t} else {\r\n\t\t\t\treturnSuccess('No Records Found');\r\n\t\t\t}\r\n\t\t} catch (Exception $e){\r\n\t\t\treturnFailure('Some Error Occured: ' . $e->getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "195c6c8d744305f1004ed95ff28e50d8", "score": "0.59617174", "text": "function dbFetch($id_ = \"\"){\n\t\t$sql = \"Select a.* from payroll_ps_account a left join emp_benefits b on (b.psa_id=a.psa_id)where a.psa_id=?\";\n\t\t$rsResult = $this->conn->Execute($sql,array($id_));\n\t\tif(!$rsResult->EOF){\n\t\t\treturn $rsResult->fields;\n\t\t}\n\t}", "title": "" }, { "docid": "67d782154b591e2183f81912727abca8", "score": "0.5959654", "text": "public function get_record_info()\n {\n $arr = array();\n $record_code = get_request_var('record_code','');\n $devloper_code = get_request_var('devloper_code','');\n \n if(!empty($record_code))\n {\n switch ($devloper_code)\n {\n case _CONST_DEVELOPER_SAVISS_CODE:\n $arr = $this->saviss_service->lookup_record_by_id($record_code);\n break;\n case _CONST_DEVELOPER_TAM_VIET_CODE:\n $arr = $this->tamviet_service->lookup_record_by_id($record_code);\n break;\n default:\n $arr = $this->saviss_service->lookup_record_by_id($record_code);\n \n if(empty($arr))\n {\n $arr = $this->tamviet_service->lookup_record_by_id($record_code);\n }\n break;\n }\n }\n \n echo json_encode($arr);\n }", "title": "" }, { "docid": "988d19abfa668adf847129e6cec614d2", "score": "0.59330803", "text": "public function maincontact_data_show_table(){\n\t\t$query = $this->db->get('maincontact');\n\t\t$results =$query->result();\n\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "3a9433204e569680c521e2b5caa26f17", "score": "0.59315276", "text": "function get_patient_details()\n{\n global $conn;\n\n $query = \"SELECT * FROM `docapp`\";\n $result = mysqli_query($conn, $query);\n while ($row = mysqli_fetch_array($result)) {\n $id = $row['Id'];\n $fname = $row['fname'];\n $lname = $row['lname'];\n $email = $row['email'];\n $contact = $row['contact'];\n $docapp = $row['docapp'];\n $datetype = $row['datetype'];\n $paystatus = $row['paystatus'];\n\n echo \"<tr>\n <td>$id</td>\n <td>$fname</td>\n <td>$lname</td>\n <td>$email</td>\n <td>$contact</td>\n <td>$docapp</td>\n <td>$datetype</td>\n <td>$paystatus</td> \n </tr>\";\n }\n}", "title": "" }, { "docid": "e5a04232d1fe03bbf423814aedbc6275", "score": "0.59142685", "text": "public function get_lookup_record(){\n $arr = array();\n $record_status = get_request_var('record_status', '0'); \n $record_code = get_request_var('record_code', '');\n $member_code = get_request_var('member_code', ''); \n $receive_from = get_request_var('receive_from', DATE('Y-m-d'));\n $receive_to = get_request_var('receive_to', DATE('Y-m-d'));\n $name = get_request_var('name', '');\n $page = get_request_var('page', '1'); \n $row_per_page = get_request_var('row_per_page', _CONST_DEFAULT_ROWS_PER_PAGE);\n \n $arr[_CONST_DEVELOPER_SAVISS_CODE] = $this->saviss_service->lookup_record($record_status, $record_code, $member_code, $receive_from, $receive_to, $name, $page, $row_per_page);\n \n //lay danh sach cua tam viet\n $list_member = $this->model->qry_list_member(_CONST_DEVELOPER_TAM_VIET_CODE);\n $arr_all_member_tamviet = explode(',', $list_member);\n $arr_tmp = array();\n foreach($arr_all_member_tamviet as $member_code)\n {\n $arr_tmp = array_merge($arr_tmp, $this->tamviet_service->lookup_record($record_status, $record_code, $member_code, $receive_from, $receive_to, $name, $page, $row_per_page));\n }\n $arr[_CONST_DEVELOPER_TAM_VIET_CODE] = $arr_tmp;\n echo json_encode($arr);\n }", "title": "" }, { "docid": "7759ef3c053702d7e0bc9a43e8252432", "score": "0.5892665", "text": "function getRecord_get() {\n\n\n //SELECT history.idHistoty AS history_id, record.idRecord as record_id, record.University_idUniversity as university_id, record.Catagory_idCatagory AS category_type, history.Status_idStatus as status, history.InternalUser_idInternalUser as user_id FROM record INNER JOIN history ON record.idRecord = history.Record_idRecord WHERE (record.idRecord, history.Status_idStatus) IN ((18,1)) ORDER BY history.idHistoty DESC\n // query for get record\n\n\t\t$university_id = $this->uri->segment(3);\n\n $this->load->model(\"model_university\");\n $requested_university = $this->model_university->get_by(array(\"idUniversity\" => $university_id));\n if ($requested_university[\"idUniversity\"]) {\n\n $records = $this->db->query(\"SELECT idRecord as record_id FROM record WHERE University_idUniversity = {$university_id}\");\n if ($records->num_rows() > 0) {\n\n //$data = new ArrayObject();\n $data = array();\n //$data = new ArrayObject();\n\n foreach ($records->result() as $row) {\n //array_push($data, $row->record_id);\n //$data->append(array(\"record_id\" => $row->record_id));\n //$data = $row->record_id;\n\n $record_id = $row->record_id;\n\n $query = \"SELECT \";\n $query .= \"history.idHistoty AS history_id, \";\n //$query .= \"record.idRecord as record_id, \";\n $query .= \"record.Catagory_idCatagory AS category_type, \";\n $query .= \"history.Status_idStatus as status, \";\n $query .= \"history.InternalUser_idInternalUser as user_id, \";\n $query .= \"record.LikeNumber as likes, \";\n $query .= \"record.DislikeNumber as dislikes, \";\n $query .= \"content.ContentDescription as content \";\n $query .= \"FROM history \";\n $query .= \"INNER JOIN record ON \";\n $query .= \"record.idRecord = history.Record_idRecord \";\n $query .= \"INNER JOIN content ON \";\n $query .= \"history.idHistoty = content.History_idHistoty \";\n $query .= \"WHERE (record.idRecord, history.Status_idStatus) IN (({$record_id},1)) \";\n $query .= \"ORDER BY history.idHistoty DESC\";\n\n $query_result = $this->db->query($query);\n\n if ($query_result->num_rows() > 0 ) {\n array_push($data, array( \"record_id\" => $record_id,\"record_info\" => $query_result->row()));\n //$data->append(array(\"record_id\" => $record_id, \"record_info\" => $query_result->row()));\n }\n\n }\n\n }\n\n if (!$data) {\n $this->response( array(\"status\" => \"failed\", \"message\" => \"Could not find the university history content.\"), REST_Controller::HTTP_INTERNAL_SERVER_ERROR );\n } else {\n $this->response(array(\"status\" => \"success\", \"message\" => $data), REST_Controller::HTTP_OK);\n }\n\n\n } else {\n $this->response(array(\"status\" => \"failed\", \"message\" => preg_replace('#[\\n]+#', '', 'The univeristy doesn\\'t exist')));\n }\n\n\n\n\t}", "title": "" }, { "docid": "75f007417691d601682420884b8d1b48", "score": "0.5875045", "text": "function GetActualPatientID($labid) {\n $samplequery = mysql_query(\"SELECT patient FROM samples where ID='$labid' \") or die(mysql_error());\n $dd = mysql_fetch_array($samplequery);\n $patient = $dd['patient'];\n\n return $patient;\n}", "title": "" }, { "docid": "43d67ffc187af3bb1c8fa0042fe2770e", "score": "0.58746314", "text": "function getData($rowLimit=null,$startOffset=null,\n $orderField=null,$reverseOrder=false,$findParams=null){\n foreach($this->getCurrentTable()->getFields() as $f) $values[0][$f->getName()]=$f->getNote();\n\t\treturn $values;\n }", "title": "" }, { "docid": "8b27dd8eb0e57085a241687bb7a6aae3", "score": "0.58736867", "text": "public function dsitrictselectRecord(){\r\n\t\t\t$res = mysql_query(\"SELECT * FROM wc_district as d INNER JOIN wc_states as s ON s.states_id = d.districtstates_id WHERE d.district_id='\".$this->districtid.\"'\")or die(mysql_error());\r\n\t\t\treturn $res;\r\n\t\t}", "title": "" }, { "docid": "7a0c94877d8c44e60a2aaf09c11e1dd1", "score": "0.5873427", "text": "function populateRecords()\r\n{\r\n try {\r\n $dbConn = getConnection();\r\n\r\n $sqlQuery = \"SELECT recordID, recordTitle, recordYear, catDesc, recordPrice,nmc_publisher.pubID\r\n From nmc_records\r\n INNER JOIN nmc_publisher\r\n ON nmc_publisher.pubID = nmc_records.pubID\r\n INNER JOIN nmc_category\r\n ON nmc_category.catID = nmc_records.catID\r\n ORDER BY recordID\";\r\n $queryResult = $dbConn->query($sqlQuery);\r\n return $queryResult;\r\n } catch (Exception $e) {\r\n /*The error is logged to a file*/\r\n throw new Exception(\"SQL retrieval error \" . $e->getMessage(), 0, $e);\r\n log_error($e);\r\n }\r\n\r\n}", "title": "" }, { "docid": "a1013e494e0ab6ea24758d72a5d064a9", "score": "0.58573925", "text": "public function patient($caseId)\n {\n $this->loadModel('SdFieldValues');\n $this->loadModel('SdFieldValueLookUps');\n $this->loadModel('SdFields');\n $patientInfoValues = $this->SdFieldValues->find('list', [\n 'keyField' => 'sd_field_id',\n 'valueField' => 'field_value',\n 'groupField' => 'set_number'\n ])\n ->where(function ($exp, $query) use($caseId){\n $section_strucutre_related = $exp->or_(['sd_field_id'=>'236'])->add(['sd_field_id'=>'80'])->add(['sd_field_id'=>'81'])->add(['sd_field_id'=>'82'])->add(['sd_field_id'=>'83']);\n return $exp->and_([\n $section_strucutre_related,\n 'sd_case_id' => $caseId\n ]);\n })->toList();\n $patientInfoFields = $this->SdFields->find('list',[\n 'keyField' => 'id',\n 'valueField' => 'field_label',\n ])->where(function ($exp, $query){\n return $exp->or_(['id'=>'236'])->add(['id'=>'80'])->add(['id'=>'81'])->add(['id'=>'82'])->add(['id'=>'83']);\n })->toList();\n $patientInfoLookUps = $this->SdFieldValueLookUps->find('list',[\n 'keyField' => 'value',\n 'valueField' => 'caption',\n 'groupField' => 'sd_field_id'\n ])->where(function ($exp, $query){\n return $exp->or_(['sd_field_id'=>'236'])->add(['sd_field_id'=>'80'])->add(['sd_field_id'=>'81'])->add(['sd_field_id'=>'82'])->add(['sd_field_id'=>'83']);\n })->toList();\n\n\n $patientDiseaseInfoValues = $this->SdFieldValues->find('list', [\n 'keyField' => 'sd_field_id',\n 'valueField' => 'field_value',\n 'groupField' => 'set_number'\n ])\n ->where(function ($exp, $query) use($caseId){\n $section_strucutre_related = $exp->or_(['sd_field_id'=>'239'])->add(['sd_field_id'=>'99'])->add(['sd_field_id'=>'237'])->add(['sd_field_id'=>'102'])->add(['sd_field_id'=>'240'])->add(['sd_field_id'=>'241']);\n return $exp->and_([\n $section_strucutre_related,\n 'sd_case_id' => $caseId\n ]);\n })->toList();\n\n $patientDiseaseInfoFields = $this->SdFields->find('list',[\n 'keyField' => 'id',\n 'valueField' => 'field_label',\n ])->where(function ($exp, $query){\n return $exp->or_(['id'=>'239'])->add(['id'=>'237'])->add(['id'=>'99'])->add(['id'=>'102'])->add(['id'=>'240'])->add(['id'=>'241']);\n })->toList();\n $patientDiseaseInfoLookUps = $this->SdFieldValueLookUps->find('list',[\n 'keyField' => 'value',\n 'valueField' => 'caption',\n 'groupField' => 'sd_field_id'\n ])->where(function ($exp, $query){\n return $exp->or_(['sd_field_id'=>'239'])->add(['sd_field_id'=>'99'])->add(['sd_field_id'=>'237'])->add(['sd_field_id'=>'102'])->add(['sd_field_id'=>'240'])->add(['sd_field_id'=>'241']);\n })->toList();\n\n\n\n $childInfoValues = $this->SdFieldValues->find('list', [\n 'keyField' => 'sd_field_id',\n 'valueField' => 'field_value',\n 'groupField' => 'set_number'\n ])\n ->where(function ($exp, $query) use($caseId){\n $section_strucutre_related = $exp->or_(['sd_field_id'=>'263'])->add(['sd_field_id'=>'265'])->add(['sd_field_id'=>'266'])->add(['sd_field_id'=>'268']);\n return $exp->and_([\n $section_strucutre_related,\n 'sd_case_id' => $caseId\n ]);\n })->toList();\n\n $childInfoFields = $this->SdFields->find('list',[\n 'keyField' => 'id',\n 'valueField' => 'field_label',\n ])->where(function ($exp, $query){\n return $exp->or_(['id'=>'263'])->add(['id'=>'265'])->add(['id'=>'266'])->add(['id'=>'268']);\n })->toList();\n $childInfoLookUps = $this->SdFieldValueLookUps->find('list',[\n 'keyField' => 'value',\n 'valueField' => 'caption',\n 'groupField' => 'sd_field_id'\n ])->where(function ($exp, $query){\n return $exp->or_(['sd_field_id'=>'263'])->add(['sd_field_id'=>'265'])->add(['sd_field_id'=>'266'])->add(['sd_field_id'=>'268']);\n })->toList();\n\n $congentialAnomalyValues = $this->SdFieldValues->find('list', [\n 'keyField' => 'sd_field_id',\n 'valueField' => 'field_value',\n 'groupField' => 'set_number'\n ])\n ->where(function ($exp, $query) use($caseId){\n $section_strucutre_related = $exp->or_(['sd_field_id'=>'273'])->add(['sd_field_id'=>'275'])->add(['sd_field_id'=>'274'])->add(['sd_field_id'=>'276'])->add(['sd_field_id'=>'277']);\n return $exp->and_([\n $section_strucutre_related,\n 'sd_case_id' => $caseId\n ]);\n })->toList();\n\n $congentialAnomalyFields = $this->SdFields->find('list',[\n 'keyField' => 'id',\n 'valueField' => 'field_label',\n ])->where(function ($exp, $query){\n return $exp->or_(['id'=>'273'])->add(['id'=>'275'])->add(['id'=>'274'])->add(['id'=>'276'])->add(['id'=>'277']);\n })->toList();\n $congentialAnomalyLookUps = $this->SdFieldValueLookUps->find('list',[\n 'keyField' => 'value',\n 'valueField' => 'caption',\n 'groupField' => 'sd_field_id'\n ])->where(function ($exp, $query){\n return $exp->or_(['sd_field_id'=>'273'])->add(['sd_field_id'=>'275'])->add(['sd_field_id'=>'274'])->add(['sd_field_id'=>'276'])->add(['sd_field_id'=>'277']);\n })->toList();\n\n $this->set(compact('patientDiseaseInfoFields','patientDiseaseInfoValues','patientDiseaseInfoLookUps',\n 'patientInfoValues','patientInfoFields','patientInfoLookUps',\n 'congentialAnomalyFields','congentialAnomalyValues','congentialAnomalyLookUps',\n 'childInfoValues','childInfoFields','childInfoLookUps'));\n }", "title": "" }, { "docid": "40d0470dde3648dc3da6bf216154813f", "score": "0.5853525", "text": "public function getADORecordSet();", "title": "" }, { "docid": "d96cf5b05c5f23d79497314ae61e2b99", "score": "0.58419925", "text": "function scorm_get_user_data($userid) {\n/// for report.php\n\n return get_record('user','id',$userid,'','','','','firstname, lastname, picture');\n}", "title": "" }, { "docid": "56493f8639d547319df90f4fddff9174", "score": "0.58376825", "text": "function read(){\n // select all query\n $query = \"SELECT\n stud_regno, stud_name, stud_program, stud_enroll, stud_compdate,\n FROM\n \" . $this->table_name .\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n \n return $stmt;\n }", "title": "" }, { "docid": "92bf7418f0cda922942ea52a5e7a61e1", "score": "0.58337057", "text": "public function get_record_data(): array\n {\n return $this->record_data;\n }", "title": "" }, { "docid": "abd04fdaa7c858f873476b02efe22b30", "score": "0.58313906", "text": "public function read_data(){\n\t\t\t\t$query = $this->db->query('SELECT * FROM demo ORDER BY id DESC');\t\t//show the latest inserted data first\n\t\t\t\treturn $query->result_array();\n\t\t\t}", "title": "" }, { "docid": "0c25b54930ca7b0925076b8146643387", "score": "0.58255404", "text": "public function getData(){\n\t\tif($this->input->post('tbl')){\n\t\t\tif($this->input->post('tbl')=='vehicles' or $this->input->post('tbl')=='transport'){\n\t\t\t\t$tbl=$this->session->userdata('prefix').$this->input->post('tbl');\n\t\t\t\t$tableList=getTables(); // define in custom helper\n\t\t\t\t// check if the tbl exist in db \n\t\t\t\tif(in_array($tbl, $tableList)){\n\t\t\t\t\t$data=$this->Common_model->select($tbl);\n\t\t\t\t\tif($data){\n\t\t\t\t\t\techo 'OK::Data Fetched::success::'.json_encode($data);\n\t\t\t\t\t} else {\n\t\t\t\t\t\techo 'OK::Data not found::error';\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t} // end of inner if\n\t\t} // end of outermost if\n\t}", "title": "" }, { "docid": "a8756fd6b1c9de482bc4105efc256023", "score": "0.5819224", "text": "public function selectRdv(){\n $bdd=Connexion::getInstance();\n $req=\"select * from rdv r ,patient p\n where r.idPatient=p.idPatient\n ORDER BY r.dateRdv DESC, r.heureDebut,r.heureFin ASC\";\n $rep=$bdd->query($req);\n return $rep->fetchall();\n \n}", "title": "" }, { "docid": "3e547c6cb08fe01b75ebc8947b2d8056", "score": "0.581717", "text": "function get_data($sth) { return $this->d($sth); }", "title": "" }, { "docid": "6031ffec307811ea9e112e3477ded771", "score": "0.5816826", "text": "public function dentalPatientRecords()\n {\n $patientRecord = DentalLog::join('patients','patients.patientID','=','cliniclogs.patientID')\n ->join('dentalhistories','dentalhistories.patientID','=','patients.patientID')\n ->select('cliniclogs.*', 'dentalhistories.*', 'patients.*')\n ->where('cliniclogs.dentistID',Session::get('accountInfo.id'))\n ->groupBy('patients.patientID')\n ->get();\n\n\n return view('dentist.C_dentist_patient_record')->with(['patientRecord'=>$patientRecord]);\n }", "title": "" }, { "docid": "604d4449a72afac23550416afa8750d0", "score": "0.58128303", "text": "function getPatientsDataForMap(){\r\n\t $data = array();\r\n\t\t//run the query for all the users who are assigned a patient's role\r\n\t $query = \"SELECT first_name, last_name, userId, Lat, `Long` FROM User WHERE Role_IDrole = 1 AND Lat IS NOT null AND `Long` IS NOT null\";\r\n \r\n $result = $this->db->query($query);\r\n while( $row = $result->fetch_assoc()){\r\n //$data[] = array('Lat'=>$row['Lat'], 'Lng'=>$row['Long'], 'Name'=> $row['first_name'], 'surname'=> $row['last_name'], 'id'=>$row['userId']);\r\n\t\t\t$data[] = $row;\r\n }\r\n\t \r\n\t return $data;\r\n\t}", "title": "" }, { "docid": "d4a52e9b5242617efdad990b2a84f986", "score": "0.5812134", "text": "function RetrieveRecordArray($filter = null){\n $dtoArray = array();\n\n $query = \"SELECT * FROM ( \";\n $query .= \"SELECT EQP.customer AS codigoCliente, CLI.cardName AS nomeCliente, EQP.insID AS codigoEquipamento, EQP.manufSN AS serieEquipamento, MDL.id AS codigoModelo, MDL.modelo AS tagModelo, FAB.nome AS fabricante, \";\n $query .= \"LEITURA.data AS dataLeitura, CONTADOR.nome AS tipoMedidor, LEITURA.contagem AS medicao, LEITURA.ajusteContagem AS ajusteLeitura, CASE WHEN LEITURA.reset = 0 THEN 'N' ELSE 'S' END AS reset, FUNCIONARIO.firstName + ' ' + FUNCIONARIO.lastName AS assinaturaDatacopy, \";\n $query .= \"LEITURA.assinaturaCliente AS assinaturaCliente, LEITURA.obs AS observacao, FORMA.nome AS formaLeitura, ORIGEM.nome AS origemLeitura, ORIGEM.id AS idOrigemLeitura \";\n $query .= \"FROM MYSQL.addoncontratos..leitura LEITURA \";\n $query .= \"JOIN OINS EQP ON LEITURA.codigoCartaoEquipamento = EQP.insID \";\n $query .= \"JOIN OCRD CLI ON EQP.customer = CLI.cardCode \";\n $query .= \"JOIN MYSQL.addoncontratos..modeloEquipamento MDL ON EQP.U_Model = MDL.id \";\n $query .= \"JOIN MYSQL.addoncontratos..fabricante FAB ON MDL.fabricante = FAB.id \";\n $query .= \"JOIN MYSQL.addoncontratos..contador CONTADOR ON LEITURA.contador_id = CONTADOR.id \";\n $query .= \"JOIN OHEM FUNCIONARIO ON LEITURA.assinaturaDatacopy = FUNCIONARIO.empId \";\n $query .= \"JOIN MYSQL.addoncontratos..formaLeitura FORMA ON LEITURA.formaLeitura_id = FORMA.id \";\n $query .= \"JOIN MYSQL.addoncontratos..origemLeitura ORIGEM ON LEITURA.origemLeitura_id = ORIGEM.id \";\n $query .= \" ) LEITURAS \";\n if (isset($filter) && (!empty($filter))) $query = $query.\" WHERE \".$filter;\n $recordSet = sqlsrv_query($this->sqlserverConnection, $query.\" ORDER BY dataLeitura\");\n $index = 0;\n while( $record = sqlsrv_fetch_array($recordSet, SQLSRV_FETCH_ASSOC) ){\n $dto = new EquipmentReadingDTO();\n $dto->codigoCliente = $record[\"codigoCliente\"];\n $dto->nomeCliente = $record[\"nomeCliente\"];\n $dto->codigoEquipamento = $record[\"codigoEquipamento\"];\n $dto->serieEquipamento = $record[\"serieEquipamento\"];\n $dto->codigoModelo = $record[\"codigoModelo\"];\n $dto->tagModelo = $record[\"tagModelo\"];\n $dto->fabricante = $record[\"fabricante\"];\n $dto->dataLeitura = $record[\"dataLeitura\"];\n $dto->tipoMedidor = $record[\"tipoMedidor\"];\n $dto->medicao = $record[\"medicao\"];\n $dto->ajusteLeitura = $record[\"ajusteLeitura\"];\n $dto->reset = $record[\"reset\"];\n $dto->assinaturaDatacopy = $record[\"assinaturaDatacopy\"];\n $dto->assinaturaCliente = $record[\"assinaturaCliente\"];\n $dto->observacao = $record[\"observacao\"];\n $dto->formaLeitura = $record[\"formaLeitura\"];\n $dto->origemLeitura = $record[\"origemLeitura\"];\n\n $dtoArray[$index] = $dto;\n $index++;\n }\n sqlsrv_free_stmt($recordSet);\n\n return $dtoArray;\n }", "title": "" }, { "docid": "bf3e4fa9a5e60dab48459f3c95c3505b", "score": "0.58115757", "text": "public function findRecord()\n {\n $this->record=$this->findRecordBuilder();\n if ( is_null($this->record) )\n {\n $this->ShowError(\"NO SE PUDIERON CARGAR LOS DATOS\");\n }\n $this->updateFirstLast();\n return($this->record);\n }", "title": "" }, { "docid": "ebb282f1fd99c925bac5b93218248991", "score": "0.5809323", "text": "function insert_record($data) \n\t\t{\n\t\t\t$this->db->insert(TBL_SCHOOLDATA,$data);\n\t\t\t$insertId = $this->db->insert_id();\n\t\t $this->db->select('srno,usrimage');\n\t\t $this->db->from(TBL_SCHOOLDATA);\n\t\t $this->db->where('srno',$insertId);\n\t\t\treturn $this->db->get()->row_array();\n\t\t\n\t\t}", "title": "" }, { "docid": "dbedd287836ce156659c7b485b631da9", "score": "0.58000064", "text": "public function getData() {\n\t\t\t$band = $this->band;\n\t\t\t$dataSetGroup = $this->dataSetGroup; //different query if dataSetGroup != 0??\n\t\t\n\t\t\t$this->data = $this->dbPull->qdata($this->keyId, $this->fc);\n\t\t\t\n\t\t}", "title": "" }, { "docid": "001eb01c47a5278045ab00e7b3ea0f2c", "score": "0.5798712", "text": "function get_an_patient_history($id){\n\t\t$current_date = date('Y-m-d');\n\t\t$this->db->select('doctor.id as id,doctor.*,appointment.id as app_id,appointment.appointment_date,appointment.patient_id,appointment.appointment_time,degree_categories.degree_name,specialty_categories.specialty_name,visit_categories.reason,cities.country as country_name,cities.state as state_name,cities.zip as city_zip,cities.city as city_name,rate.review,rate.date,rate.doctor_id as rate_doctor_id,rate.patient_id as rate_patient_id,rate.rating,AVG(rate.rating) as avg_rating');\n\t\t$this->db->from('doctor');\n\t\t$this->db->join('appointment','appointment.doctor_id = doctor.id','left');\n\t\t$this->db->join('degree_categories','FIND_IN_SET(degree_categories.id, doctor.doctor_degree) > 0', 'left');\n\t\t$this->db->join('specialty_categories', 'FIND_IN_SET(specialty_categories.id, doctor.specialty) > 0', 'left ');\n\t\t$this->db->join('rating_doctor as rate', 'rate.doctor_id = appointment.doctor_id','left ');\n\t\t$this->db->join('visit_categories', 'FIND_IN_SET(visit_categories.id, appointment.ill_reason) > 0', 'left ');\n\t\t$this->db->join('cities','FIND_IN_SET(cities.id, doctor.cities_id) > 0', 'left');\t\t \n\t\t$this->db->group_by('appointment.id');\t\t\t\t\n\t\t$this->db->where(\"appointment.patient_id\",$id);\t\n\t\t$this->db->where(\"appointment.appointment_date <=\",$current_date);\t\t\t\t\t\n\t\t$this->db->order_by(\"appointment.appointment_date \",\"desc\");\n\t\t$this->db->order_by(\"appointment.appointment_time\",\"desc\");\n\t\t$query = $this->db->get();\n\t\treturn $result = $query->result();\t\n\t}", "title": "" }, { "docid": "990e71ac47db0c3ed6f98a1f38391387", "score": "0.5793033", "text": "public function read()\n {\n\n \t\t$id = $this->uri->segment(\"4\");\n \t$this->db->select('*');\n \t$this->db->from($this->table);\n \t$this->db->where('id', $id);\n \treturn $this->db->get()->result();\n }", "title": "" }, { "docid": "ad72b66a79e7647b7b0366b1f91bce71", "score": "0.57866585", "text": "function getrecord($id)\n {\n $this->db->select('*');\n $this->db->from('tbl_open_real_account');\n $this->db->where('isDeleted', 0);\n $this->db->where('id', $id);\n\t\t\n $query = $this->db->get();\n \n return $query->row();\n }", "title": "" }, { "docid": "52978629c66cdc133dc16faf9957e8e2", "score": "0.57855636", "text": "function fetch(){\n\t\t$this->load->database();\n\t\t$output='';\n\t\t$query ='';\n\t\t$this->load->model('Dview_model');\n\n\t\tif($this->input->post('query'))\n\t\t{\n\t\t\t$query = $this->input->post('query');\n\t\t}\n\t\t$data = $this->Dview_model->fetch_data($query);\n\t\t$output .= '\n \t\t<div class=\"table-responsive\">\n \t<table class=\"table table-bordered table-striped\">\n \t<tr>\n \t\t<th>Patient Name</th>\n \t\t<th>age</th>\n\t\t\t<th>allergy</th>\n\t\t\t<th>medical history</th>\n \t</tr>\n \t\t';\n\n\t\tif($data->num_rows() > 0) {\n\t\t\t$doctorName = $this->session->userdata['logged_in_doctor']['username'];\n\t\t\tforeach($data->result() as $row) {\n\t\t\t\t$session_data = array(\n\t\t\t\t\t'patientName' => $row->username\n\t\t\t\t);\n\t\t\t\t$this->session->set_userdata($doctorName, $row->username);\n\t\t\t\t$output .= '\n\t\t <tr>\n\t\t\t <td><a href=\"'.\n\t\t\t base_url('dcalendar').\n\t\t\t '\">' .$row->username. '</a></td>\n\t\t \t<td>'.$row->age.'</td>\n\t\t\t <td>'.$row->allergy.'</td>\n\t\t\t <td>'.$row->medicalHistory.'</td>\n\t\t \t</tr>\n\t\t';}\n\t\t}\n\t\telse{\n\t\t\t$output .= '<tr>\n <td colspan=\"5\">No Event Found</td>\n </tr>';\n\t\t}\n\t\t$output .= '</table>';\n\t\techo $output;\n\t}", "title": "" }, { "docid": "b72d06937b2030f658be2c78386088e4", "score": "0.57729626", "text": "public function getData()\n {\n\n $data = Detail::select('tbl_detail.*');\n return $data->first();\n }", "title": "" }, { "docid": "cbf52b0c749f90ed5bc92a22afe94771", "score": "0.57720506", "text": "function returnSingleDetail($dbConnect,$uid, $uidField, $table, $field)\n{\n\t$sql =\"SELECT $field from $table WHERE $uidField = $uid \";\n\t$smt = $dbConnect->prepare($sql);\n\tif ($smt->execute())\n\t{\n while ($rows = $smt->fetch(PDO::FETCH_OBJ))\n {\n\t\t$data= $rows->$field;\n\t\treturn $data;\n }\n\t}\n}", "title": "" }, { "docid": "b02f83fef876fcb6231179df86210c2b", "score": "0.5771863", "text": "function get_record($id){\n\n include(\"../include/db_connect.php\");\n $result=mysqli_Query($con,\"SELECT * FROM career WHERE career_id='$id'\");\n $row=mysqli_fetch_array($result);\n return $row;\n }", "title": "" }, { "docid": "6f51b99b1673e17d5f37f47a456028f5", "score": "0.57680386", "text": "function loadDataRow( $key )\n\t\t{\n\t\tif( !$this->fields ) $this->loadFieldDesc() ;\n\n\t\t$sql = \"select * from \" . $this->table ;\n\t\t$sql = $sql . \" where \" . $this->buildWhereCondition( $key ) ;\n\t\t$this->sql = $sql ;\n//echo( \"sql: $sql \" ) ;\n\t\t$cursor = $this->db->buildCursor( $sql ) ;\n\t\t$row = $cursor->fetchAssoc() ;\n//if( $row ) echo( \"row ok \" ) ;\n\t\tif( $row ) return $row ;\n\n\t\t$this->error = \"Error: $sql : \" . $this->db->getError() ;\n\t\treturn false ;\n\t\t}", "title": "" }, { "docid": "145fc34dfbad1545b3ac0c145795759f", "score": "0.5765222", "text": "function get_data($table)\n\t{\n\t\treturn $this->db->get($table);\n\t}", "title": "" }, { "docid": "875fcb94cd88ffdd2901c25174696785", "score": "0.5761509", "text": "public function fetch()\n {\n $data = null;\n $query = \"SELECT * FROM `records` \";\n if($sql = $this->conn->query($query))\n {\n while($row = mysqli_fetch_assoc($sql))\n {\n $data[] = $row;\n //var_dump($data);\n }\n }\n \n return $data;\n }", "title": "" }, { "docid": "354b3b2e091dae8c2bad2c1b630aca35", "score": "0.5759715", "text": "function get_recordset()\n {\n global $app;\n\t\t$db = new db();\n\t\t$args = func_get_args();\n\t\tswitch (func_num_args()):\n\t\t\tcase 1:\n\t\t\t\t$sql = \"select * from \".$app['table'][$args[0]].\"\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$sql = \"select * from \".$app['table'][$args[0]].\" where $args[1]\";\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t$sql = \"select * from \".$app['table'][$args[0]].\" where $args[1] = '$args[2]'\";\n\t\t\t\tbreak;\n\t\tendswitch;\n\t\t//echo $sql;\n\t\tif (!stristr($sql,\"union\")){\n \t\t$db->query($sql, $rs, $nr);\n\t\t}\n\t\t\n \treturn $rs;\n }", "title": "" }, { "docid": "02b23df816daaad114c46a41b82a7c00", "score": "0.57578015", "text": "function getrecord($selector,$table,$order){\n\t global $con;\n\t \t$getrec = $con->prepare(\"SELECT $selector FROM $table ORDER BY $order ASC\");\n\t\t$getrec->execute();\n\t\t$records = $getrec->fetchAll();\n\t\treturn $records;\n }", "title": "" }, { "docid": "5f972bf009a9df82464fbf8cbb3826e8", "score": "0.57544714", "text": "function get_patient_history($id){\n\t\t$this->db->select('doctor.id as id,doctor.*,appointment.appointment_date,appointment.patient_id,appointment.appointment_time,degree_categories.degree_name,specialty_categories.specialty_name,visit_categories.reason,cities.country as country_name,cities.state as state_name,cities.city as city_name,rate.review,rate.date,rate.doctor_id as rate_doctor_id,rate.patient_id as rate_patient_id,rate.rating,AVG(rate.rating) as avg_rating');\n\t\t$this->db->from('doctor');\n\t\t$this->db->join('appointment','appointment.doctor_id = doctor.id','left');\n\t\t$this->db->join('degree_categories','FIND_IN_SET(degree_categories.id, doctor.doctor_degree) > 0', 'left');\n\t\t$this->db->join('specialty_categories', 'FIND_IN_SET(specialty_categories.id, doctor.specialty) > 0', 'left ');\n\t\t$this->db->join('rating_doctor as rate', 'rate.doctor_id = appointment.doctor_id','left ');\n\t\t$this->db->join('visit_categories', 'FIND_IN_SET(visit_categories.id, appointment.ill_reason) > 0', 'left ');\n\t\t$this->db->join('cities', 'FIND_IN_SET(cities.id, doctor.cities_id) > 0', 'left ');\t\t \n\t\t$this->db->group_by('doctor.id');\t\t\t\t\n\t\t$this->db->where(\"appointment.patient_id\",$id);\t\t\t\t\n\t\t$this->db->order_by(\"doctor.id\",\"desc\");\n\t\t$query = $this->db->get();\n\t\treturn $result = $query->result();\t\t\n\t}", "title": "" }, { "docid": "e83bcb11fac06d68dca3a0532fca4a40", "score": "0.5752604", "text": "function get_member_cpd_record(){\n\t\t\t\t$sql=\"SELECT * FROM $this->table WHERE cpd_register_id=:cpdRegisterId AND member_id=:memberId\";\n\t\t\t\t$stmt = $this->dbConn->prepare($sql);\n\t\t\t\t$stmt->bindParam(\":cpdRegisterId\",$this->cpdRegisterId);\n\t\t\t\t$stmt->bindParam(\":memberId\",$_SESSION['member_id']);\n\t\t\t\tif ($stmt->execute()) {\n\t\t\t\t\t$results= $stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t\treturn json_encode($results);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tdie();\n\t\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "e10697dd5496511bdc27a2c4b1383f64", "score": "0.5749175", "text": "public function getAttendEmpData()\n {\n $this->getAttendEmpQuery();\n if($_POST['length'] && $_POST['length'] < 1) {\n $_POST['length']= '10';\n } else {\n $_POST['length']= $_POST['length'];\n }\n \n if($_POST['start'] && $_POST['start'] > 1) {\n $_POST['start']= $_POST['start'];\n }\n $this->db->limit($_POST['length'], $_POST['start']);\n $query = $this->db->get();\n return $query->result_array();\n\t}", "title": "" }, { "docid": "039d2c7847b9cb82b4e29d26af959060", "score": "0.5748199", "text": "public function getAppointments($patient_id)\n {\n $check = $this->db->query(\"select * from patients where patient_id='\".$patient_id.\"'\")->num_rows();\n if(count($check) > 0)\n {\n if($clinic_id == 0)\n {\n $data['appointments'] = $this->db->query(\"select a.*,p.first_name,p.last_name,p.title,p.mobile,p.umr_no as umr from appointments a,patients p where a.patient_id=p.patient_id and a.patient_id='\".$patient_id.\"'\")->result();\n }\n else\n {\n $data['appointments'] = $this->db->query(\"select a.*,p.first_name,p.last_name,p.title,p.mobile,p.umr_no as umr from appointments a,patients p where a.patient_id=p.patient_id and a.patient_id='\".$patient_id.\"' and a.clinic_id='\".$clinic_id.\"'\")->result();\n }\n $data['view'] = \"patients/appointments_list\";\n $this->load->view('layout', $data);\n }\n else\n {\n $this->session->set_flashdata('msg', 'Patient Not Exists');\n redirect('Patients');\n }\n }", "title": "" }, { "docid": "123bb84084ceef52c41f266ec8d42bbb", "score": "0.57371163", "text": "function getData(){\n $db = Database::getConnection();\n $show_zero_usage = false;\n $filter = null; // array for the select HAVING in case filter is on\n\n switch($this->parameters['table']){\n case 'all':\n $show_zero_usage = true;\n break;\n case '90':\n $filter = 90;\n break;\n case '10':\n $filter = 10;\n $show_zero_usage = true;\n break;\n default:\n error_log(\"Unrecognized table filter parameter? \" . $this->parameters['table']);\n die(\"Unrecognized table filter parameter? \" . $this->parameters['table']);\n }\n\n // if user inputs title ADM_REC then search for it no matter the status\n if(empty($this->parameters['title'])){\n $where = array(\n 'AND' => [\n 'date[<>]' => [$this->parameters['start'], $this->parameters['end']],\n 'STATUS' => array_keys($this->parameters['status'], true, true)\n ],\n 'GROUP' => Medoo::raw('substr(date, 1,7),ADM_REC,status')\n );\n }\n else{\n $where = array(\n 'AND' => [\n 'date[<>]' => [$this->parameters['start'], $this->parameters['end']],\n 'usage.ADM_REC' => $this->parameters['title']\n ],\n 'GROUP' => Medoo::raw('substr(date, 1,7),ADM_REC,status')\n );\n $show_zero_usage = false;\n $filter = null;\n }\n\n $select = $db->select('usage',[\n '[>]titles' => 'ADM_REC'\n ],[\n 'DATE' => Medoo::raw('substr(date, 1, 7)'),\n 'usage.ADM_REC (ADM_REC)',\n 'titles.TITLE (TITLE)',\n 'titles.CALLNO (CALLNO)',\n 'status',\n 'AVRG_UNITS' => Medoo::raw('AVG(unit_count)'),\n 'AVRG_LOANED' => Medoo::raw('AVG(loans_count/unit_count) * 100'),\n 'STD_DEV' => Medoo::raw('STDDEV_POP(loans_count/unit_count) * 100')\n ], $where);\n\n // transform the select rows into a datatable\n $data = array();\n foreach($select as $row){\n $adm_rec = (int)$row['ADM_REC'];\n if(!isset($data[$adm_rec])){\n $data[$adm_rec] = array();\n $data[$adm_rec]['TITLE'] = $row['TITLE'];\n $data[$adm_rec]['CALLNO'] = $row['CALLNO'];\n $data[$adm_rec]['UNITS'] = (int)$row['AVRG_UNITS'];\n $data[$adm_rec]['MIN'] = 0;\n $data[$adm_rec]['MAX'] = 0;\n $data[$adm_rec]['STATS'] = $this->tableHeader['stats'];\n }\n $data[$adm_rec]['STATS'][$row['DATE']]['AVRG'] = round($row['AVRG_LOANED']);\n $data[$adm_rec]['STATS'][$row['DATE']]['STD'] = round($row['STD_DEV'],1);\n }\n\n unset($select);\n // fill zero values for titles with active units but zero usage\n // these are not pulled with select from usage table (they don't have a record)\n if($show_zero_usage){\n foreach($this->activeTitles as $adm_rec => $status){\n if(!isset($data[$adm_rec])){\n $data[$adm_rec] = array();\n $data[$adm_rec]['TITLE'] = $row['TITLE'];\n $data[$adm_rec]['CALLNO'] = $row['CALLNO'];\n $data[$adm_rec]['UNITS'] = (int)$row['AVRG_UNITS'];\n $data[$adm_rec]['STATS'] = $this->tableHeader['stats'];\n }\n }\n }\n\n // Set up min and max value for the watched period\n foreach($data as $adm_rec => $title){\n $min = 100;\n $max = 0;\n foreach($title['STATS'] as $timepoint => $stats){\n if($stats['AVRG'] < $min){\n $min = $stats['AVRG'];\n }\n if($stats['AVRG'] > $max){\n $max = $stats['AVRG'];\n }\n }\n $data[$adm_rec]['MIN'] = $min;\n $data[$adm_rec]['MAX'] = $max;\n }\n if (isset($filter)){\n $data = $this->filterData($data, $filter);\n }\n //echo \"<pre>\";\n //print_r($select);\n //print_r($this->tableHeader);\n //print_r($data);\n //echo \"</pre>\";\n return $data;\n }", "title": "" }, { "docid": "01e82a27141a67a8d7d694e9c448bb43", "score": "0.57331985", "text": "public function selectPatients($userid, $endDate){\n \n $db = Database::getDB();\n $query = 'SELECT * FROM patient WHERE userid =:userID AND endDate >=:endDate';\n $statement = $db->prepare($query);\n $statement->bindValue(':userID', $userid);\n $statement->bindValue(':endDate', $endDate);\n $statement->execute();\n $results = $statement->fetchAll();\n $statement->closeCursor();\n \n \n if(!empty($results))\n { \n foreach ($results as $result){ \n $pt = new patient ($result['patientID'], \n $result['userID'], $result['fName'], \n $result['lName'], $result['dob'], $result['sex'], \n $result['begDate'], $result['endDate'],\n $result['disabled'], $result['dcsDate']);\n $pats[]= $pt;\n \n }\n return $pats;\n \n }else {\n return NULL;\n }\n \n \n \n }", "title": "" }, { "docid": "6cfb3e09cc4346e6c5f268cc96aaee21", "score": "0.57313174", "text": "public function recordAction() {\n if($this->_getParam('id',false)) {\n $this->view->recordID = $this->_getParam('id');\n $id = $this->_getParam('id');\n $findsdata = $this->getFinds()->getIndividualFind($id,$this->getRole());\n if(!empty($findsdata)) {\n $this->view->finds = $findsdata;\n } else {\n throw new Pas_Exception_NotAuthorised('You are not authorised to view this record');\n }\n $this->view->findsdata = $this->getFinds()->getFindData($id);\n $this->view->findsmaterial = $this->getFinds()->getFindMaterials($id);\n $this->view->temporals = $this->getFinds()->getFindTemporalData($id);\n $this->view->peoples = $this->getFinds()->getPersonalData($id);\n $rallyfind = new Rallies;\n $this->view->rallyfind = $rallyfind->getFindRallyNames($id);\n $coins = new Coins;\n $this->view->coins = $coins->getCoinData($id);\n $thumbs = new Slides;\n $this->view->thumbs = $thumbs->getThumbnails($id);\n $refs = new Publications;\n $this->view->refs = $refs->getReferences($id);\n } else {\n throw new Pas_Exception_Param($this->_missingParameter,500);\n }\n }", "title": "" }, { "docid": "e0cea7fa5435e59c941bfaa7305604ab", "score": "0.57310283", "text": "static function getRecords($user) : Array {\n //\n $selectAll=\"SELECT r.*, l.ShortName, ((TIMESTAMPDIFF(HOUR,r.StartedAt, NOW())+1)*s.Price) as temp_paid\n from Record as r \n JOIN Location as L \n ON r.LocationID = l.LocationID\n JOIN Space as s\n ON r.LocationID = s.LocationID and r.SpaceID = s.SpaceID\n WHERE UserID = :id\n ORDER BY r.RecordID desc\";\n \n self::$db->query($selectAll);\n\n //bind \n self::$db->bind(':id', $user);\n self::$db->execute();\n return self::$db->resultSet();\n \n }", "title": "" }, { "docid": "7fa98027b76ece91f34a572da11fb347", "score": "0.57299477", "text": "public function getRecordDetail($param) {\n $record_type = $param[\"record_type_id\"];\n $em = $this->_em;\n $currency_lable = \"EUR\";\n $currency_simble = $this->getCurrencyCode($currency_lable);\n if ($record_type == self::$CIGAINED_TYPE) {\n $repo_wallet = $em->getRepository(\"WalletBundle:WalletCitizen\");\n $range = $this->getStartEndTimeBaseOnDate($param[\"record_id\"]);\n $param[\"start_time\"] = $range[\"start_time\"];\n $param[\"end_time\"] = $range[\"end_time\"];\n $ci_array = $repo_wallet->getCiGainedByDay($param);\n $record = $this->groupCiDetail($ci_array, $em, $currency_simble, $currency_lable);\n } else {\n $repo_trs = $em->getRepository(\"TransactionSystemBundle:Transaction\"); // nyhow i needd\n $trs_array = $repo_trs->getTransactionHistory($param);\n $record = $this->groupTransactionDetail($trs_array, $currency_simble, $currency_lable);\n }\n $return[\"code\"] = \"101\";\n $return[\"message\"] = \"SUCCESS\";\n $return[\"dataInfo\"] = array();\n $return[\"response\"] = $record;\n return $return;\n }", "title": "" }, { "docid": "a572dbcb878f27712faa2a4c3388aac1", "score": "0.5726508", "text": "function getResidenceDetails($rid){\n // require 'mysql/connect.php';\n require $_SERVER['DOCUMENT_ROOT'].'/mysql/connect.php';\n $q = $pdo->prepare('SELECT M_zipCode, R_area, R_inhabitants, R_nbRooms, R_residencyType, L_address, T_name, M_name\n FROM Residency natural join Residency_Town natural join Town natural join Municipality\n WHERE R_id = :rid');\n $q->bindValue(':rid',$rid);\n $q->execute();\n $resp = $q->fetchAll(PDO::FETCH_ASSOC); //allow to know number of residence too\n $pdo=null;\n return $resp;\n}", "title": "" } ]
ef3298d76015e0e1b65c7b1796181f7f
Sets the context we want to log.
[ { "docid": "b13f0ea4f0fa699a59c94c47b708c1f0", "score": "0.6360108", "text": "public function setContext(array $context)\n {\n $this->context = $context;\n }", "title": "" } ]
[ { "docid": "702d40865cc8a1ca2170ae8183faec53", "score": "0.74404436", "text": "function setContext( $context ) {\r\n $this->context = $context;\r\n }", "title": "" }, { "docid": "a92721337d761d1adb5b2396a5145cf4", "score": "0.73841405", "text": "function setContext($context) {\r\n\r\n\t\t$this->context = $context;\r\n\r\n\t}", "title": "" }, { "docid": "7c01dc2253e9c61b81ed3292c1e3967c", "score": "0.7353794", "text": "function setContext($context) {\n\t\t$this->_context = $context;\n\t}", "title": "" }, { "docid": "7c01dc2253e9c61b81ed3292c1e3967c", "score": "0.7353794", "text": "function setContext($context) {\n\t\t$this->_context = $context;\n\t}", "title": "" }, { "docid": "19178516be1cd2dcfaec2c23d82f7bd5", "score": "0.73160577", "text": "public function setContext($context);", "title": "" }, { "docid": "19178516be1cd2dcfaec2c23d82f7bd5", "score": "0.73160577", "text": "public function setContext($context);", "title": "" }, { "docid": "19178516be1cd2dcfaec2c23d82f7bd5", "score": "0.73160577", "text": "public function setContext($context);", "title": "" }, { "docid": "616c0e82b7e170299ee45be991fdf987", "score": "0.7279665", "text": "function setContext($context)\n\t{\n\t\t$this->_context = $context;\n\t}", "title": "" }, { "docid": "616c0e82b7e170299ee45be991fdf987", "score": "0.7279665", "text": "function setContext($context)\n\t{\n\t\t$this->_context = $context;\n\t}", "title": "" }, { "docid": "be424d996e441eeb615029059bc993e0", "score": "0.723298", "text": "public function setContext($context) {\n\t\t$this->context = $context;\n\t}", "title": "" }, { "docid": "3b43b02e318261ab04ae2eab84e2fa0d", "score": "0.7214876", "text": "protected function set_context( &$context ) {\n\t\t\t$this->set_general_context( $context );\n\t\t\ttry {\n\t\t\t\t$this->set_filters_context( $context );\n\t\t\t} catch ( UnexpectedValueException $e ) {\n\t\t\t\t$this->context['exception'] = $e->getMessage();\n\t\t\t}\n\t\t\t$this->set_results_context( $context );\n\t\t}", "title": "" }, { "docid": "0ff9428443ead9d8abc0fc407a9ae325", "score": "0.71450824", "text": "public function set_context($context)\n\t{\n\t\t$this->context = $context;\n\t}", "title": "" }, { "docid": "97116e8795864df22e470c20f6b590a8", "score": "0.6755219", "text": "public function set_context($context)\n {\n $this->set_default_property(self::PROPERTY_CONTEXT, $context);\n }", "title": "" }, { "docid": "49591cf8d17828e4e77e3b5545a65de3", "score": "0.675464", "text": "public function setContext(array $context): void;", "title": "" }, { "docid": "6139f368c0de30b43c75e80642b112b1", "score": "0.6619771", "text": "public function setContext(Controller $context)\n {\n $this->_context = $context;\n }", "title": "" }, { "docid": "4f28c6c009f583cde532ae58e1b2132b", "score": "0.6614654", "text": "public function setContext(RequestContext $context): void\n {\n $this->context = $context;\n }", "title": "" }, { "docid": "8c0ae265ea20cf10917346db42116e8f", "score": "0.65121317", "text": "function setContextOptions($context)\n\t{\n\t\t$this->_contextOptions = $context;\n\t\t$this->_buildContext();\n\t}", "title": "" }, { "docid": "91dc4e508c27995b6ce3b7f930995542", "score": "0.6504044", "text": "public function setContext(RequestContext $context)\n {\n }", "title": "" }, { "docid": "526ce053bae03fd956d44231961004bf", "score": "0.64005834", "text": "public function setContext(array &$context);", "title": "" }, { "docid": "fcd8044ef4ef4d2bbb935207497fd4ec", "score": "0.6301991", "text": "public function setContext(BuilderContext $context)\n {\n }", "title": "" }, { "docid": "fe128c843aa17b90513fe4ed9dfc6aee", "score": "0.6293195", "text": "protected function _setContext($context)\n {\n $this->context = ($context !== null)\n ? $this->_normalizeContainer($context)\n : null;\n }", "title": "" }, { "docid": "c48ad70f732d44e0ca97f65f14ff007e", "score": "0.6225515", "text": "static public function setContext(array $context)\n\t{\n\t\tself::$context = array_merge(self::$context, $context);\n\t}", "title": "" }, { "docid": "1f67bf66dd93bbf9a397d93a6645e719", "score": "0.61526465", "text": "public function setUserContext($context)\n {\n $this->userContext = CMap::mergeArray($this->userContext, $context);\n\n // Set user context for PHP client\n if ($this->isPhpErrorReportingEnabled()) {\n HubAdapter::getInstance()->configureScope(function (Scope $scope): void {\n $user = array_merge($this->userContext, $this->getInitialPhpUserContext());\n $scope->setUser($user);\n });\n }\n\n // Set user context for JS client\n if ($this->isJsErrorReportingEnabled()) {\n $userContext = CJavaScript::encode($this->userContext);\n Yii::app()->clientScript->registerScript(\n 'sentry-javascript-user',\n \"Raven.setUserContext({$userContext});\"\n );\n }\n }", "title": "" }, { "docid": "93aedcc49f4d26e980a1981e976bea78", "score": "0.61329085", "text": "function setContext($context) {\n\t\treturn $this->setData('context',$context);\n\t}", "title": "" }, { "docid": "72272bbce8d56c7eb8b8a41e3f73361a", "score": "0.6060009", "text": "public function context($context = '')\n\t{\n\t\tif( ! is_value($context))\n\t\t{\n\t\t\treturn $this;\t\n\t\t}\n\t\t\n\t\t$this->sets['context'] = \"\\tcontext:$context,\".ln();\n\t\t\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "117b3ec3c88ef6c3048ec998bdee2aef", "score": "0.6020378", "text": "public function setContext($context) {\n $this->context = $context;\n return $this;\n }", "title": "" }, { "docid": "32939deb26f3cc640c7c19773e132b9c", "score": "0.59966207", "text": "public function setContext($context)\n {\n $this->_context = $context;\n return $this;\n }", "title": "" }, { "docid": "30636745920cf2040a4c3df233c9a1ef", "score": "0.594885", "text": "public function setContext(RequestContext $context)\n {\n $this->context = $context;\n\n foreach ($this->all() as $router) {\n if ($router instanceof RequestContextAwareInterface) {\n $router->setContext($context);\n }\n }\n }", "title": "" }, { "docid": "551df8d549cd7c637e6ffd92dbea9834", "score": "0.58451265", "text": "public function setRequestContext(RequestContext $requestContext);", "title": "" }, { "docid": "d7a994d3b01ff0bf46065719d2a9bfaf", "score": "0.58323795", "text": "public function informAboutContext(substrate_Context $context) {\n $this->context = $context;\n $this->initContext();\n }", "title": "" }, { "docid": "b40be2a8c81c0be162b5bc3681645956", "score": "0.57760274", "text": "public function setContext($context, $startIndex = 0) \n {\n $this->_context = $context;\n $this->_startIndices[$context] = $startIndex;\n }", "title": "" }, { "docid": "84eff227e2bb953cd1cfb22f45690560", "score": "0.57734007", "text": "public function provideContext(Context $context): void;", "title": "" }, { "docid": "3789e8b071c3cc6efe7ed374b8541bd6", "score": "0.5759967", "text": "protected function setTagsContext() {\n\t\t$objectManager = \\TYPO3\\Flow\\Core\\Bootstrap::$staticObjectManager;\n\t\t/** @var \\TYPO3\\Flow\\Utility\\Environment $environment */\n\t\t$environment = $objectManager->get('TYPO3\\Flow\\Utility\\Environment');\n\n\t\t$tags = array(\n\t\t\t'php_version' => phpversion(),\n\t\t\t'flow_context' => (string)$environment->getContext(),\n\t\t\t'flow_version' => FLOW_VERSION_BRANCH\n\t\t);\n\n\t\t$this->client->tags_context($tags);\n\t}", "title": "" }, { "docid": "b69e05cabfd7f53f6ed28c6e726857ae", "score": "0.5754097", "text": "public function __construct(Context $context) {\n $this->context = $context;\n }", "title": "" }, { "docid": "559aa8a661b6e29dd00c66be11777775", "score": "0.57073396", "text": "public function setContext($context_name)\n {\n $this->storage->setContext($context_name);\n $this->dirty = true;\n }", "title": "" }, { "docid": "18e789d1ff8fb9be5986806b6e2c8465", "score": "0.5667384", "text": "public function buildContext(Context $context): void;", "title": "" }, { "docid": "3429238704c2657b0689607a219a104b", "score": "0.56560826", "text": "final public function setContext(array $context)\n {\n $this->context = $context;\n return $this;\n }", "title": "" }, { "docid": "da2a503346f01b1659fc1bfb5f373808", "score": "0.5652753", "text": "function set_context($context) {\n\tglobal $CONFIG;\n\tif (!empty($context)) {\n\t\t$context = trim($context);\n\t\t$context = strtolower($context);\n\t\t$CONFIG->context = $context;\n\t\treturn $context;\n\t} else {\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "32521d533277270111468d5f42d2e9e8", "score": "0.56238276", "text": "public function SetLoggingOn() {\n\t}", "title": "" }, { "docid": "db3676da9c1ce880650203e507eb010b", "score": "0.558508", "text": "public function startContext()\n {\n }", "title": "" }, { "docid": "7380c591a7430d67966cabcf538f70ce", "score": "0.5578657", "text": "protected function setLogger()\n {\n $logger = new Logger();\n $this->set('logger', $logger);\n }", "title": "" }, { "docid": "8938668e1ccb3ca33fce7f5992681cc2", "score": "0.554204", "text": "private function setLogging()\n {\n if ($this->params['logging'] !== true) {\n $this->setEmptyLogger();\n return;\n }\n\n if ($this->params['logObject'] === null) {\n $this->setDefaultLogger();\n }\n\n if ($this->params['traceObject'] === null) {\n $this->setDefaultTracer();\n }\n\n }", "title": "" }, { "docid": "e56dc77fe8ad0ad87f5c500ab0a35ee2", "score": "0.55018413", "text": "public function getContext()\n {\n }", "title": "" }, { "docid": "20899b3e2ff13da8586ddea8ea3a08af", "score": "0.5484992", "text": "public function addContext( $context ) {\n\t\t$this->context = array_merge( $this->context, $context );\n\t}", "title": "" }, { "docid": "3f4dc93444612a3cd74f59a477ff8e58", "score": "0.5455942", "text": "public function setContext(Doctrine_Record $context)\n {\n \t$invoker = $this->getInvoker();\n \t\n \tif(! $context->exists()){\n \t\tthrow new Exception('Context shall exist');\n \t}\n \t\n \t$invoker->set( $this->getOption('modelIdField'), $context->id);\n \t$invoker->set( $this->getOption('modelClassField'), get_class($context));\n \t\n \t// We shall remove\n }", "title": "" }, { "docid": "9304f4ce28f5a9c86f8f276c91948589", "score": "0.5449332", "text": "static public function setDisplayContext($context)\n\t{\n\t\tif (self::_isInstanciated ()) {\n\t\t\tself::$_display->setSubContext($context);\n\t\t}\n\t}", "title": "" }, { "docid": "b54446dd64a0c702efecf8a188cdb4d2", "score": "0.5446746", "text": "public function __construct($context) {\n $this->context= $context;\n $this->context->app= $this;\n $this->init();\n }", "title": "" }, { "docid": "c11ce378b964561e77f013ed6eb88531", "score": "0.5390433", "text": "public function notify_context_set($notify_context )\n {\n $this->_context = $notify_context;\n }", "title": "" }, { "docid": "32f5ec51a21703fa3ab30f53bb921135", "score": "0.53880805", "text": "protected function setUp()\n {\n $this->contextName = 'default';\n $this->providerName = 'provider';\n $this->providerOptions = array();\n $this->filesystemName = 'filesystem';\n $this->cdnName = 'cdn';\n $this->namingStrategyName = 'namingStrategy';\n $this->variants = array(\n 'default' => array()\n );\n $this->defaultVariant = 'default';\n $this->context = new Context(\n $this->contextName,\n $this->providerName,\n $this->providerOptions,\n $this->filesystemName,\n $this->cdnName,\n $this->namingStrategyName,\n $this->variants,\n $this->defaultVariant\n );\n }", "title": "" }, { "docid": "451f335e2369e5e5282da6b8e312904a", "score": "0.53760743", "text": "function setLogOn() {\n\t\t$this->getLogFileFromConfig();\n\t\tif (@touch($this->_logFile)) $this->_controller_log=\"on\";\n\t}", "title": "" }, { "docid": "71ffa2e089352f39ec9ff93a65aa88c0", "score": "0.536307", "text": "public function setPeriodContextAction()\n {\n\n // action body\n\n \t$url = parse_url($_SERVER[\"HTTP_REFERER\"]);\n\n \t$current = $this->_request->getParam('current');\n\n if ($current != 1){\n \t $Term = $this->_request->getParam('Term');\n \t\t\t$Year = $this->_request->getParam('Year');\n\n\t $Auth = Zend_Auth::getInstance();\n\t $Auth_Storage = $Auth->getStorage();\n\t $Data = $Auth_Storage->read();\n\t $CurrentTerm = array('Term' => $Term, 'Year' => $Year);\n\n\t $Data->CurrentContext = $CurrentTerm;\n\n\t $Auth_Storage->write($Data);\n\n\t $this->view->term = $Term;\n\t $this->view->year = $Year;\n }else{\n \t$Auth = Zend_Auth::getInstance();\n \t$Auth_Storage = $Auth->getStorage();\n \t$Data = $Auth_Storage->read();\n\n \tif (isset($Data->CurrentContext))\n \t\tunset($Data->CurrentContext);\n\n \t$Auth_Storage->write($Data);\n }\n\n if (!($url['path'] == '/notermerror'))\n \t$this->_redirect($url['path']);\n else{\n \t$this->_redirect($_SESSION['redirect']);\n }\n\n }", "title": "" }, { "docid": "db0d875be31ec158fc6ea74636587bbd", "score": "0.5361143", "text": "protected function setUp()\n\t{\n \\Itkg\\Log::$config['DEFAULT_HANDLER'] = new EchoHandler();\n\t\t$this->object = \\Itkg\\Log\\Factory::getLogger();\n\t}", "title": "" }, { "docid": "bcd7af4208197f70da93c8781e03b8cd", "score": "0.535999", "text": "protected function prepareContext()\n\t{\n\t\tglobal $context;\n\n\t\t$context['config_vars'] = $this->context;\n\t}", "title": "" }, { "docid": "4fe69705d9c1bdf2c13f7b65b1aa3761", "score": "0.53325766", "text": "public function init(): void\n {\n $contextSwitch = $this->_helper->contextSwitch();\n\n // Add the new context\n $contextSwitch->setContexts([\n 'csv' => ['suffix' => 'csv'],\n 'rss' => ['suffix' => 'rss'],\n ]);\n\n $contextSwitch->addActionContext('index', 'csv')->addActionContext('index', 'rss')->initContext();\n }", "title": "" }, { "docid": "c79d4631a7c4a584146a568be110eb7b", "score": "0.531228", "text": "public function setControllerContext(ControllerContext $controllerContext);", "title": "" }, { "docid": "c432074673752abe6b1c329ced15fe3e", "score": "0.53092474", "text": "public function setUp() {\n $this->out= new MemoryOutputStream();\n $this->cat= (new LogCategory('default'))->withAppender(\n (new StreamAppender($this->out))->withLayout(new PatternLayout('%l: %m%n'))\n );\n }", "title": "" }, { "docid": "aa9c77fdabc14852525101b41f88834f", "score": "0.5304728", "text": "protected function setUp() {\n $this->object = new Context(\\Symfony\\Component\\HttpFoundation\\Request::create('/'));\n }", "title": "" }, { "docid": "183c0e474795ef0138e0b763825657b5", "score": "0.52952975", "text": "public function toLogContext()\n {\n $context = ['code' => $this->getCode(), 'message' => $this->getMessage()];\n\n if ($this->request) {\n $context['requestURL'] = $this->getRequest()->getUri();\n $context['requestMethod'] = $this->getRequest()->getMethod();\n }\n\n if ($this->response) {\n $context['requestId'] = $this->getRequestID();\n };\n\n return $context;\n }", "title": "" }, { "docid": "ec3816509e406dfb1ac2efca27db8ee5", "score": "0.5290554", "text": "public function log( $message, $context = \"Info\" ) {\n\t\t$logging_enabled = get_option( 'bitscr_logging_enabled', false );\n\t\tif ( empty( $logging_enabled ) || 'yes' !== $logging_enabled ) {\n\t\t\treturn;\n\t\t}\n\t\tif ( class_exists( 'WC_Logger' ) && ! is_a( $this->logger, 'WC_Logger' ) ) {\n\t\t\t$this->logger = new WC_Logger();\n\t\t}\n\t\t$log_message = $context . ' - ' . $message;\n\n\t\tif ( class_exists( 'WC_Logger' ) ) {\n\t\t\t$this->logger->add( 'bitscr', $log_message );\n\t\t}\n\n\t\tif ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {\n\t\t\terror_log( $log_message );\n\t\t}\n\t}", "title": "" }, { "docid": "048d36d4466c57282d7647fa863a9390", "score": "0.5269225", "text": "public function setLog($log){\n\t\t$this->log = $log;\n\t}", "title": "" }, { "docid": "73a5f6f124ded4404766f6ab8087b748", "score": "0.52594167", "text": "public function setContext($contexts) {\n\t\tif (is_string($contexts)) {\n\t\t\t$contexts = array($contexts);\n\t\t}\n\t\t$this->contexts = $contexts;\n\t}", "title": "" }, { "docid": "3d1559008bdfa7eb1930127d8f8039a2", "score": "0.5234681", "text": "function setUp()\n\t{\n\t\t// initialize the Logger instance\n\t\t$this->logger = TechDivision_Logger_Logger::forObject($this);\n\t}", "title": "" }, { "docid": "22e43a609eea505e443907ad48ccbfa7", "score": "0.52208173", "text": "protected function prepareContext(): void\n {\n // tests wouldn't normally touch but the container expects\n $this->container->set(RequestTracing::TRACE_PARAMETER_NAME, 'Root=1-1-11');\n\n $this->awsFixtures = $this->container->get(AwsMockHandler::class);\n }", "title": "" }, { "docid": "737846bb6d12a8b968f45b53b98e6532", "score": "0.5199598", "text": "function get_context() {\n return $this->context;\n }", "title": "" }, { "docid": "6dc0fa30d24e814fe045680065c006f6", "score": "0.5195816", "text": "function add_to_context( $context ) {\n $context['left_menu'] = new Timber\\Menu(16);\n $context['right_menu'] = new Timber\\Menu(17);\n $context['site'] = new Timber\\Site(\"Kesha\");\n return $context;\n}", "title": "" }, { "docid": "8c80574818b8ee6064377a6d8d77e4cc", "score": "0.5187392", "text": "public function setContext(SearchContextInterface $context);", "title": "" }, { "docid": "09399aa53b224420a7863e1159df5d24", "score": "0.518102", "text": "public function __construct(Context $context)\n {\n\n parent::__construct($context);\n\n $this->type = 'Put';\n\n }", "title": "" }, { "docid": "834bd0322d5ef27e9ba23af0d6fbb238", "score": "0.5168459", "text": "public function __construct()\n {\n // except for the authenticate method. We don't want to prevent\n // the user from retrieving their token if they don't already have it\n $this->middleware('jwt.auth', ['except' => ['index']]);\n\n // create a log channel\n $log = new Logger('name');\n $log->pushHandler(new StreamHandler('storage/logs/app.log', Logger::WARNING));\n\n // add records to the log\n $log->addWarning('todo rest called');\n }", "title": "" }, { "docid": "66180b908ae5b8e9a2cf6f25def03003", "score": "0.51659256", "text": "public function add_to_context( $context ) {\n\t\t$context['menu'] = new TimberMenu();\n\t\t$context['site'] = $this;\n\t\treturn $context;\n\t}", "title": "" }, { "docid": "7878d698d6b15f2420a3373665c78af6", "score": "0.5163359", "text": "abstract protected function context( );", "title": "" }, { "docid": "9daa8d28909c00db8ed5cef16cabe36c", "score": "0.5161059", "text": "public function setSerializationContext($context)\r\n {\r\n $this->serializationContext = $context;\r\n }", "title": "" }, { "docid": "9349e1205ecf85c26f877010cd011d45", "score": "0.5156314", "text": "protected function initLog()\n {\n $model = $this->getTask()->getModel();\n $log = $this->getLog();\n\n $log->scheduler_task_id = $model->id;\n $log->started_at = date('Y-m-d H:i:s');\n $log->save(false);\n $log->refresh();\n }", "title": "" }, { "docid": "579f9817b479d09be7ad6921583f6b1c", "score": "0.5141247", "text": "function setLogFile($logFileName)\r\n\t\t{\r\n\t\t\t$this->logFile = $logFileName;\r\n\t\t}", "title": "" }, { "docid": "087ddc6817e89872320c26fb552141c8", "score": "0.51359195", "text": "public function __construct($sh)\n {\n if (!defined('SIMPLE_HISTORY_LOG_DEBUG') || !SIMPLE_HISTORY_LOG_DEBUG) {\n return;\n }\n\n add_action('simple_history/log_argument/context', [$this, 'onLogArgumentContext'], 10, 4);\n }", "title": "" }, { "docid": "57555b1e44c9175486309730acd5aab2", "score": "0.51306266", "text": "public function __construct(string $context)\n {\n $this->context = $context;\n }", "title": "" }, { "docid": "dcfb1b18da6e91ee618471bf90c4fbf8", "score": "0.5111962", "text": "public function getContext();", "title": "" }, { "docid": "dcfb1b18da6e91ee618471bf90c4fbf8", "score": "0.5111962", "text": "public function getContext();", "title": "" }, { "docid": "dcfb1b18da6e91ee618471bf90c4fbf8", "score": "0.5111962", "text": "public function getContext();", "title": "" }, { "docid": "dcfb1b18da6e91ee618471bf90c4fbf8", "score": "0.5111962", "text": "public function getContext();", "title": "" }, { "docid": "dcfb1b18da6e91ee618471bf90c4fbf8", "score": "0.5111962", "text": "public function getContext();", "title": "" }, { "docid": "dcfb1b18da6e91ee618471bf90c4fbf8", "score": "0.5111962", "text": "public function getContext();", "title": "" }, { "docid": "dcfb1b18da6e91ee618471bf90c4fbf8", "score": "0.5111962", "text": "public function getContext();", "title": "" }, { "docid": "8befdacbcf1e36ff1004543fe74b54fb", "score": "0.51056504", "text": "public function setOnce($context, $key, $value);", "title": "" }, { "docid": "8a5402b6d1566039888a1eb3ebadb807", "score": "0.5093748", "text": "public function context(string $context): static\n {\n $context = ($current = $this->getContext())\n ? ($current . '/' . $context)\n : $context;\n\n $this->setContext($context);\n\n return $this;\n }", "title": "" }, { "docid": "d93c4a6487ef5b0d9f903dc2320a53f3", "score": "0.50733584", "text": "protected function setLogPath()\n {\n $timestamp = time();\n\n $this->logPath = base_path(\"site-migration-log-{$timestamp}.yaml\");\n\n return $this;\n }", "title": "" }, { "docid": "6f078ea4820704216ee0ae822b0f822e", "score": "0.506881", "text": "public static function with_context(\\context $context) : content_writer {\n return static::instance()\n ->get_writer_instance()\n ->set_context($context);\n }", "title": "" }, { "docid": "6c3660a91e6f68b592e73646ae7d58e3", "score": "0.50574094", "text": "public function get_context()\n {\n return $this->context;\n }", "title": "" }, { "docid": "207c86f4f131047fafca251d36dfd88e", "score": "0.5055751", "text": "public function __construct(LoggerInterface $log, array $context = [])\n {\n $this->log = $log;\n $this->context = $context;\n }", "title": "" }, { "docid": "bdd22555039a50745c3bbf4c331a304e", "score": "0.50517654", "text": "protected function prepareContext(): void\n {\n // tests wouldn't normally touch but the container expects\n $this->container->set(RequestTracing::TRACE_PARAMETER_NAME, 'Root=1-1-11');\n\n $this->apiFixtures = $this->container->get(MockHandler::class);\n $this->userService = $this->container->get(UserService::class);\n $this->lpaService = $this->container->get(LpaService::class);\n $this->lpaFactory = $this->container->get(LpaFactory::class);\n $this->viewerCodeService = $this->container->get(ViewerCodeService::class);\n $this->notifyService = $this->container->get(NotifyService::class);\n }", "title": "" }, { "docid": "806c588c656284f94ae5dcfe7aa60569", "score": "0.5048583", "text": "public function setContext($context = ''): bool\n\t{\n\t\tif ($context !== $this->context)\n\t\t{\n\t\t\t$this->context = (string) $context;\n\t\t\t$this->reset();\n\t\t\t$this->init();\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "49a40b043645006969c408787bb021cf", "score": "0.50150347", "text": "private function setLogs()\n {\n $logs = VwoSdkLogMessages::get();\n $this->infoLogs = $logs[\"infoLogs\"];\n $this->debugLogs = $logs[\"debugLogs\"];\n $this->errorLogs = $logs[\"errorLogs\"];\n $this->warnLogs = $logs[\"warnLogs\"];\n }", "title": "" }, { "docid": "509f511534b23541c1392cff2dea8979", "score": "0.501275", "text": "private function __construct()\n {\n // Write down log base directory\n $this->base_dir = LOG;\n }", "title": "" }, { "docid": "1ab056ca5d116f6b1a3c285d24e301a1", "score": "0.50082177", "text": "public function setContext(&$var)\n {\n GPBUtil::checkMessage($var, \\Xbus\\ProcessingContext::class);\n $this->context = $var;\n }", "title": "" }, { "docid": "c4c07ee7db4c7b0ee0ebba7260b8a2ca", "score": "0.50057626", "text": "function add_to_context( $context ) {\n\t\t$content[''] = new TimberMenu('');\n\t\t//globally assigned theme options\n\t\t$aka_settings = get_option('aka_options');\n\t\t$context['aka_settings'] = $aka_settings;\n\t\t$context['brand_logo'] = $aka_settings['brand_logo'];\n\t\t$context['brand_logo_inside'] = ( $aka_settings['brand_logo_inside'] == '' ) ? $context['brand_logo'] : $aka_settings['brand_logo_inside'];\n\t\t$context['domain'] = get_bloginfo('siteurl');\n\t\t$context['ajax_url'] = \tadmin_url('admin-ajax.php');\n\t\t$context['notes'] = 'These values are available everytime you call Timber::get_context();';\n\t\t$context['menu'] = new TimberMenu();\n\t\t$context['site'] = $this;\n\t\treturn $context;\n\t}", "title": "" }, { "docid": "6ee859f91e58713df1d982a21a4e2e85", "score": "0.50032675", "text": "public function setContext(string $varname, $value = null)\n {\n $this->context[$varname] = $value;\n }", "title": "" }, { "docid": "91f635c8439fad370249d8975df206d9", "score": "0.50031865", "text": "public function setTrace($cat) { \n $this->cat= $cat;\n }", "title": "" }, { "docid": "b51218a714e58697d47ac23e13e4935e", "score": "0.50023746", "text": "public function set_log( Log $log )\n\t{\n\t\t$this->log = $log;\n\t\t$this->log->set_log_level( $this->log_level );\n\t\t$this->log->set_label( $this->label );\n\t}", "title": "" }, { "docid": "3d0a5a5d11e9327a94b5d528fcd27ec2", "score": "0.49950275", "text": "public function initializeContext();", "title": "" }, { "docid": "6cacb1f34ab1340118eec1d104f10076", "score": "0.49881732", "text": "protected function assignDesignContext()\n {\n Yii::$app->set('view', $this->getView());\n Yii::$app->getResponse()->on(Response::EVENT_BEFORE_SEND, [$this, 'appendFooter']);\n }", "title": "" }, { "docid": "f2827006b6a6f8c6b4f51075df8be848", "score": "0.49848235", "text": "public function __construct()\n { // it works everywhere exept index\n $this->middleware('jwt.auth', ['except' => ['index']]);\n\n // create a log channel\n $log = new Logger('name');\n $log->pushHandler(new StreamHandler('storage/logs/app.log', Logger::WARNING));\n\n // add records to the log\n $log->addWarning('CustomerController API REST called');\n }", "title": "" } ]
f91714447fec229f175af03e6dd7a703
Writes a float value to device
[ { "docid": "99d715817be82543fb43b7c508b14a9f", "score": "0.66331005", "text": "public function WriteValueFloat(string $ident, float $value)\n {\n if (!is_float($value)) {\n trigger_error($this->Translate(\"Value is not float\"), E_USER_NOTICE);\n return false;\n }\n return $this->WriteValue($ident, (float)$value);\n }", "title": "" } ]
[ { "docid": "7caf9a3f0367bea9ebc8c99ad3c0fc2e", "score": "0.7778554", "text": "public function writeFloat($num){ }", "title": "" }, { "docid": "cf7df390e47221f3d7cadc6469674075", "score": "0.6964291", "text": "public function float($value)\n {\n $bytes = pack('f*', $value);\n if ($this->isBigEndian()) {\n $bytes = strrev($bytes);\n }\n $this->write($bytes, 4);\n }", "title": "" }, { "docid": "c264d4fde0b4c551070357206f4ae353", "score": "0.6474946", "text": "static function writeFloat(float $float): string {\n return \\pack('g', $float);\n }", "title": "" }, { "docid": "6115c15d6b4630eb33991909b99545f7", "score": "0.6337598", "text": "static function writeDouble(float $float): string {\n return \\pack('e', $float);\n }", "title": "" }, { "docid": "735df20431e59813d0b0480c48533ee8", "score": "0.61945146", "text": "function readFloat();", "title": "" }, { "docid": "95492a4e6e6abef6976edcf61d2c36dc", "score": "0.6157601", "text": "public function putFloat(string $name, ?float $value): string;", "title": "" }, { "docid": "f1f3ba639b215ff89f1ba111a8ef6ed8", "score": "0.6134524", "text": "public function appendFloat($value)\n {\n $s = pack(\"f\", $value);\n return $this->append(self::$isLittleEndian ? self::swapEndian32($s) : $s);\n }", "title": "" }, { "docid": "cc8d153311624ea0257c479cdc2e73b1", "score": "0.6026176", "text": "public function SetFloat(string $key, float $value) : void\r\n\t{\r\n\t\t$this->Set($key, $value);\r\n\t}", "title": "" }, { "docid": "941df1d238939b0458613f76871e0c16", "score": "0.5935052", "text": "public function getFloat() :float\n {\n return $this->value;\n }", "title": "" }, { "docid": "5b72749e3c3be96c74e947e01ba69313", "score": "0.58392656", "text": "public function setFNumber(?float $value): void {\n $this->getBackingStore()->set('fNumber', $value);\n }", "title": "" }, { "docid": "a72be4427c87bdf47d028d2459943455", "score": "0.5831484", "text": "public static function float() {}", "title": "" }, { "docid": "c65df74b57dbf8751a05885acbe7330b", "score": "0.5795771", "text": "public function writeDouble($num){ }", "title": "" }, { "docid": "4a0ba3240609fff8b6c2f4a293fe0cff", "score": "0.57601184", "text": "function o_castFloat($value) {\n\t\t\treturn Obj::singleton()->castFloat($value);\n\t\t}", "title": "" }, { "docid": "3614b911f88c0bdc0222ead02d0a1171", "score": "0.57481116", "text": "public function setFloat(string $key, float $value, int $ttl = 0): bool;", "title": "" }, { "docid": "7f008648e0e00825cfcca9e7e5760773", "score": "0.5714822", "text": "public function readFloat64();", "title": "" }, { "docid": "eed55dc4e71ec77bd3b924966e524628", "score": "0.56255937", "text": "public function getFFloat()\n {\n return $this->f_float;\n }", "title": "" }, { "docid": "88ba6bcc50706d26c0ad00e87b6fc091", "score": "0.5602883", "text": "function readFloat(): float {\n return \\unpack('g', $this->read(4))[1];\n }", "title": "" }, { "docid": "4df6950a0b0bc4ce3cc613e492c6467d", "score": "0.55185336", "text": "public function setFloatField($value)\n {\n return $this->set(self::FLOAT_FIELD, $value);\n }", "title": "" }, { "docid": "15358ba9b1519fb339b301bd54866d0e", "score": "0.5473717", "text": "public function & toFloat()\n\t{\n\t\t$x = float((int)$this->data);\n\t\treturn $x;\n\t}", "title": "" }, { "docid": "c1ccd42bd07d0324a561d24f1fd37c9e", "score": "0.54683524", "text": "function &float(float $value, string $namespace = 'default'): float\n{\n $var = new Variable\\FloatVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}", "title": "" }, { "docid": "11b8a101e35d749f0372e16057fa243a", "score": "0.54634", "text": "public function toFloat(): float\n {\n return (float) $this->getValue();\n }", "title": "" }, { "docid": "043ec59695c7ceff1e8e00bde39cbfbe", "score": "0.5422087", "text": "public function double($value)\n {\n $bytes = pack('d*', $value);\n if ($this->isBigEndian()) {\n $bytes = strrev($bytes);\n }\n $this->write($bytes, 8);\n }", "title": "" }, { "docid": "b5c6dba630a0efadc985d8d09eda2e33", "score": "0.53944945", "text": "public function setExposureDenominator(?float $value): void {\n $this->getBackingStore()->set('exposureDenominator', $value);\n }", "title": "" }, { "docid": "f484c5c8ec63f83531298d9d2f035184", "score": "0.53882575", "text": "private static function toFloat($value)\n {\n return (float) $value;\n }", "title": "" }, { "docid": "e8302397c6ad31952f6decde9464e1b6", "score": "0.538261", "text": "private function _writeValue($value)\n\t{\n\t\tfwrite($this->_stream, $value);\n\t}", "title": "" }, { "docid": "d92f1fa68e58ec3dcb757acff4f14f48", "score": "0.5375639", "text": "public function fill(float $value)\n {\n if($this->checkVolume($value)) {\n echo 'Volume: ' . $value . ' [L]; Use: ' . $this->name;\n } elseif ($this->adjustContainer) {\n echo 'Cannot use ' . $this->name . ' for ' . $value . ' [L]</br>';\n $this->adjustContainer->fill($value);\n } else {\n echo 'Cannot use ' . $this->name . ' for ' . $value . ' [L]</br>' . 'We have not adjust container';\n }\n }", "title": "" }, { "docid": "23a025ef246677bf65e25869d3e8fb03", "score": "0.5373829", "text": "public function set($value = null)\r\n {\r\n return parent::set((float)$value);\r\n }", "title": "" }, { "docid": "bba925dc322e19e597c1e0259abdec2d", "score": "0.53371006", "text": "public function readFloat64BE();", "title": "" }, { "docid": "28c0d6b7df0e6ff568dcfe8feb254dbf", "score": "0.53165925", "text": "abstract public function write( $value );", "title": "" }, { "docid": "6ff4bbcc73a2a48beac680b5258a19ea", "score": "0.5302254", "text": "public function testFloat()\n {\n set_error_handler([$this->instance, 'handleError'], E_NOTICE);\n $float = $this->instance+.0;\n restore_error_handler();\n\n self::assertTrue(\n is_float($float),\n 'Instance cannot be typecast to a float'\n );\n }", "title": "" }, { "docid": "f2dd4b273cfe9672c4719e9382058d73", "score": "0.5269856", "text": "private function float ($param)\n {\n $this->type = 'float';\n $this->value = (float)$this->value;\n return true;\n }", "title": "" }, { "docid": "45868c7d41d87072f5a1649348fad176", "score": "0.52620906", "text": "public function quoteFloat(?float $value): string\n {\n if ($value===null) return 'null';\n\n return (string)$value;\n }", "title": "" }, { "docid": "a492feae06ce95344197507b6e74d4ee", "score": "0.5246582", "text": "public static function float(?string $valueType = null);", "title": "" }, { "docid": "2a41775d42ddc1eee305736704580db1", "score": "0.5227364", "text": "public static function NASAtoFloat($val )\n {\n $a = unpack(\"N\",$val);\n $b = unpack(\"f\",pack( \"I\",$a[1]));\n return $b[1];\n }", "title": "" }, { "docid": "8d747f0198150bafea484e2c36b6af90", "score": "0.52202386", "text": "public static function formatToFixed($float) {}", "title": "" }, { "docid": "1c2417aaa33735a9e6f8807c0dcd4d63", "score": "0.5214311", "text": "public function floatValue($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "title": "" }, { "docid": "914761f1dfc8ff381e55207b1b673cfa", "score": "0.5203115", "text": "function o_isFloat($value) {\n\t\t\treturn Obj::singleton()->isFloat($value);\n\t\t}", "title": "" }, { "docid": "bc861ec2c9820e193e9313b1cac3d81c", "score": "0.5194335", "text": "public function getFloatField()\n {\n $value = $this->get(self::FLOAT_FIELD);\n return $value === null ? (double)$value : $value;\n }", "title": "" }, { "docid": "3b1f72fe941e36322735ceafee76ba92", "score": "0.5191837", "text": "public function setValue($var)\n {\n GPBUtil::checkFloat($var);\n $this->value = $var;\n\n return $this;\n }", "title": "" }, { "docid": "d4297c80c67c4aa469c9c00d4d26541b", "score": "0.51821655", "text": "private function float(float $value): string\n {\n return (string) $value;\n }", "title": "" }, { "docid": "50daea0470a2bfff6e75794a8cd2b3d7", "score": "0.5176125", "text": "public function readFloat32();", "title": "" }, { "docid": "2bf7eab1cadb6ed775f76948af1883eb", "score": "0.5176122", "text": "public static function ensureFloat($value)\n\t{\n\t\treturn (float)$value;\n\t}", "title": "" }, { "docid": "1436fe4ea7035b41c601d051936bdabe", "score": "0.5158943", "text": "public function setExposureNumerator(?float $value): void {\n $this->getBackingStore()->set('exposureNumerator', $value);\n }", "title": "" }, { "docid": "747aead2b40a4e06475b47c7fa4fa7cf", "score": "0.51568204", "text": "public function readFloat32BE();", "title": "" }, { "docid": "e12ff580a2fcd1bf10d66ee035f06ddd", "score": "0.51548856", "text": "private function readfloat()\n {\n $bin = fread($this->f, 4);\n if ((ord($bin[0]) >> 7) == 0) $sign = 1;\n else $sign = -1;\n if ((ord($bin[0]) >> 6) % 2 == 1) $exponent = 1;\n else $exponent = -127;\n $exponent += (ord($bin[0]) % 64) * 2;\n $exponent += ord($bin[1]) >> 7;\n\n $base = 1.0;\n for ($k = 1; $k < 8; $k++) {\n $base += ((ord($bin[1]) >> (7 - $k)) % 2) * pow(0.5, $k);\n }\n for ($k = 0; $k < 8; $k++) {\n $base += ((ord($bin[2]) >> (7 - $k)) % 2) * pow(0.5, $k + 8);\n }\n for ($k = 0; $k < 8; $k++) {\n $base += ((ord($bin[3]) >> (7 - $k)) % 2) * pow(0.5, $k + 16);\n }\n\n $float = (float)$sign * pow(2, $exponent) * $base;\n return $float;\n }", "title": "" }, { "docid": "05ace20bb9f459af885778122304f852", "score": "0.51488817", "text": "public function setValueAttribute($value)\n {\n $this->attributes['value'] = DataHelper::getReal2Float($value);\n }", "title": "" }, { "docid": "7d708c07cda09dabedf439a098939af3", "score": "0.5147172", "text": "public function set(string $name, float $value, array $labels = []): void;", "title": "" }, { "docid": "9f7424b9da1641688b6f7ab5eb1fc0bc", "score": "0.5146387", "text": "public static function aFloat($value)\n {\n return (is_float($value))?:false;\n }", "title": "" }, { "docid": "6b7399c5d74fa38d8573fb1f4433627f", "score": "0.5128832", "text": "#[@test]\n public function floatType() {\n $this->testType(new Float(0), 0, 0.0);\n }", "title": "" }, { "docid": "d5c7bc28196b83e8f174884210b7f37b", "score": "0.51242197", "text": "public function consumeFloat()\n {\n $s = $this->consume(4);\n list(, $ret) = unpack(\"f\", self::$isLittleEndian ? self::swapEndian32($s) : $s);\n return $ret;\n }", "title": "" }, { "docid": "4d3eaff9211a814065d07c20ac4ff95b", "score": "0.50794023", "text": "function floatval($var)\n{\n}", "title": "" }, { "docid": "98226feb8251a3a780956721769e286d", "score": "0.50634295", "text": "public function readFloat32LE();", "title": "" }, { "docid": "31ab61b1554d0992149fd7e6671d5527", "score": "0.50581336", "text": "function readDouble(): float {\n return \\unpack('e', $this->read(8))[1];\n }", "title": "" }, { "docid": "465b4838ec22d93a06bd01f4e1b20097", "score": "0.5053334", "text": "public function scrubFloat(float $data) : float;", "title": "" }, { "docid": "047e93171629339dbddad37a86266095", "score": "0.5052217", "text": "public function float()\n {\n $floatFilter = new stubFloatFilter();\n $this->assertSame($floatFilter, $floatFilter->setDecimals(2));\n $this->assertEquals(156, $floatFilter->execute('1.564'));\n }", "title": "" }, { "docid": "b9f83079557d9bcf0b63e94e8d021aa8", "score": "0.5007674", "text": "public function setFFloat($var)\n {\n GPBUtil::checkFloat($var);\n $this->f_float = $var;\n\n return $this;\n }", "title": "" }, { "docid": "0f1aeb01c596b345e59280d597f4a475", "score": "0.5004867", "text": "public function appendFloatPackedField($value)\n {\n return $this->append(self::FLOAT_PACKED_FIELD, $value);\n }", "title": "" }, { "docid": "f815c8ec5b2af2bbd18c100b71ea9f3f", "score": "0.49965146", "text": "public function setSize(?float $value): void {\n $this->getBackingStore()->set('size', $value);\n }", "title": "" }, { "docid": "6421ee755dc95ec5e9b9670908a9cf8d", "score": "0.498323", "text": "public function testSetAndRetrieveFloat(): void\n {\n $key = \"A test key\";\n $expected = 7.234;\n $this->testNotStrict->set($key, $expected);\n $actual = $this->testNotStrict->get($key);\n $this->assertEquals($expected, $actual);\n }", "title": "" }, { "docid": "5382d28b998df8d9e74d4848de2ba3a4", "score": "0.49710634", "text": "public function toFloat()\n {\n eval('$var = ' . $this->value . ';');\n\n return $var;\n }", "title": "" }, { "docid": "b23310ea677813b219be05d54921b8b9", "score": "0.4968478", "text": "public static function getFloat()\n\t{\n\t\treturn (float)rand() / (float)getrandmax();\n\t}", "title": "" }, { "docid": "e54fb94e432e9e29ae2b631717bd3c0c", "score": "0.49642488", "text": "public function float()\n\t{\n\t\treturn $this->filter(FILTER_SANITIZE_NUMBER_FLOAT);\n\t}", "title": "" }, { "docid": "d303990e14b1e84c10ff856e25594ca9", "score": "0.49532962", "text": "public function getDataType()\n {\n return DField::DATA_TYPE_FLOAT;\n }", "title": "" }, { "docid": "35d74ea0de1c30c2d85eb841de7b7b5b", "score": "0.49343076", "text": "public static function randomFloat(): float\n\t{\n\t\treturn mt_rand() / mt_getrandmax();\n\t}", "title": "" }, { "docid": "610db91e9be182022556de16a2fae65b", "score": "0.490479", "text": "public function getValueTo():float {\n return $this->valueTo;\n }", "title": "" }, { "docid": "aee94b11774a72a57d2098972c3c8a86", "score": "0.490047", "text": "public function readFloat64LE();", "title": "" }, { "docid": "ed5db6ad4af571cccb7962e7443caa66", "score": "0.48960802", "text": "public function invalidFloats() {}", "title": "" }, { "docid": "1e83ef9c369cadd5755a52a39677af5a", "score": "0.48917586", "text": "private static function renderFloat($value)\n {\n return Yii::$app->formatter->asDecimal($value);\n }", "title": "" }, { "docid": "9403cdfe4f6b6c6c112e2c6613d4ae10", "score": "0.48541892", "text": "public function getValue()\n {\n return (float) $this->value;\n }", "title": "" }, { "docid": "725935b50e2191e987c3aa7bc44ac29b", "score": "0.48536602", "text": "public static function readFloat()\n {\n $res = filter_var(self::readLine(), FILTER_VALIDATE_FLOAT);\n \n if($res === false)\n throw new Exception(\"valor invalido\");\n \n return $res;\n }", "title": "" }, { "docid": "de1a2fe5ecca150292b7666c419281f6", "score": "0.48519886", "text": "public static function GetFloat($key)\n {\n return (float)self::Get($key);\n }", "title": "" }, { "docid": "72238d9bd7556c521e138537396fc7fa", "score": "0.48336914", "text": "public function validFloats() {}", "title": "" }, { "docid": "2d99063582c4c589974a229a0793658f", "score": "0.48262107", "text": "public function getFloat($name);", "title": "" }, { "docid": "c09696723ef7e9a83ccd21c777fe921c", "score": "0.48083684", "text": "public function checkFloat(): float\n {\n if (!is_float($this->getValue())) {\n throw new TypeInvalidException('float', gettype($this->getValue()));\n }\n\n return $this->getValue();\n }", "title": "" }, { "docid": "e4af208482b78219ade4fae4c94d970c", "score": "0.48021853", "text": "public function fromFloat($value)\n {\n switch ((string) $value) {\n case 'Infinity':\n return INF;\n case '-Infinity':\n return -INF;\n case 'NaN':\n return NAN;\n default:\n return (float) $value;\n }\n }", "title": "" }, { "docid": "485886ee60e4af9d8139ac79558a0262", "score": "0.48012096", "text": "public function getFNumber(): ?float {\n $val = $this->getBackingStore()->get('fNumber');\n if (is_null($val) || is_float($val)) {\n return $val;\n }\n throw new \\UnexpectedValueException(\"Invalid type found in backing store for 'fNumber'\");\n }", "title": "" }, { "docid": "a5c34b91d78b1c621719afcb0eac0433", "score": "0.47988388", "text": "public function setFloat(string $key, int $value): StoreInterface {\n $field = Field::autoFactory($key);\n $field->setFloatField($key, $value);\n $field->save();\n\n return $this;\n }", "title": "" }, { "docid": "2e21a010233cca72edfdf93018344310", "score": "0.47940516", "text": "public function readFloat($offset = 0)\n {\n $s = $this->read(4, $offset);\n list(, $ret) = unpack(\"f\", self::$isLittleEndian ? self::swapEndian32($s) : $s);\n return $ret;\n }", "title": "" }, { "docid": "7106ef74f6fb315dfc0ad29915c5f778", "score": "0.47844788", "text": "public function float($value) : float|array\n\t{\n\t\treturn $this->handlers->map($value, function ($value) {\n\t\t\treturn (float)$value;\n\t\t});\n\t}", "title": "" }, { "docid": "cd5c152aaefa3c4a26d175baecf67f2b", "score": "0.47734994", "text": "public function getFloat($i);", "title": "" }, { "docid": "a92d9afc767b3aa1ca3d646afed473ac", "score": "0.4754441", "text": "private function microtime_float() \n\t{\n\t\t\n \tlist($usec, $sec) = explode(\" \", microtime());\n \treturn ((float)$usec + (float)$sec);\n \t\n\t}", "title": "" }, { "docid": "46534b9acf8a8dd89be8f2a89f1c4c22", "score": "0.47457278", "text": "public function testRandomFloat()\n {\n $initial_value = random_float();\n \n $this->assertInternalType('float', $initial_value);\n }", "title": "" }, { "docid": "4a546368132d95fcb265c04128392496", "score": "0.473992", "text": "function toFloat ($value) {\n assert(count(func_get_args()) == 1);\n if (is_scalar($value)) {\n $convertedValue = filter_var($value, FILTER_VALIDATE_FLOAT, FILTER_NULL_ON_FAILURE);\n if ($convertedValue !== null)\n return $convertedValue;\n }\n if (is_object($value) && hasMember($value, 'toFloat'))\n return toFloat($value->toFloat());\n throw new RuntimeException('Unable to convert to float.');\n}", "title": "" }, { "docid": "8d5ae99ca90cb4e2594a95fdc8d4e6ce", "score": "0.47359064", "text": "public function float($name, $length = 255, $default = null)\n {\n return self::$driver->float($name, $length, $default);\n }", "title": "" }, { "docid": "b0a08b9e8e06ac97ea49f309e0aafbe1", "score": "0.47307736", "text": "public function write();", "title": "" }, { "docid": "b0a08b9e8e06ac97ea49f309e0aafbe1", "score": "0.47307736", "text": "public function write();", "title": "" }, { "docid": "155e01ddc07331b9d1d8374cad0a49d2", "score": "0.47229886", "text": "private function microtime_float()\n\t{\n\t\tlist($usec, $sec) = explode(\" \", microtime());\n\t\treturn ((float)$usec + (float)$sec);\n\t}", "title": "" }, { "docid": "7073784af81ab542c0fecbfb24c5456d", "score": "0.47013068", "text": "public function setFocalLength(?float $value): void {\n $this->getBackingStore()->set('focalLength', $value);\n }", "title": "" }, { "docid": "1e358f3cd1aba907cbfca308228ff7d3", "score": "0.47010502", "text": "public function readF8be(): float {\n $bits = $this->readU8be();\n return $this->decodeDoublePrecisionFloat($bits);\n }", "title": "" }, { "docid": "17d227e8e01747a704b9d6c2f6ad38bd", "score": "0.46920437", "text": "function validate_float() {\n # Check if the value is a foat\n if (is_float($this->cur_val)) {\n # Remove any existing error message\n $this->error_message = \"\";\n\n # Return Value\n return $this->cur_val;\n }\n else {\n # Set Error Message\n $this->set_error( \"Validation for float ({$this->cur_val}) failed. This is type \" . gettype($this->cur_val));\n\n # Return Float Value\n return floatval($this->cur_val);\n }\n }", "title": "" }, { "docid": "fc8cc138b3f09c736eab32b2579f32bd", "score": "0.4691434", "text": "public static function float($key, $length)\n {\n return static::make($key, $length)->asFloat();\n }", "title": "" }, { "docid": "7d06ff334a167579980d8846c26d76de", "score": "0.4684725", "text": "public function setValue($value)\n {\n $r = $value['r'] / 255;\n $g = $value['g'] / 255;\n $b = $value['b'] / 255;\n\n $this->out = sprintf($this->format, $r, $g, $b, $value['t']);\n }", "title": "" }, { "docid": "e6b51cfab828b0c789adb3f059e647ed", "score": "0.46723837", "text": "public static function microtimeFloat()\t{\n\t\tlist($usec, $sec) = explode(\" \", microtime());\n\t\treturn ((float)$usec + (float)$sec);\n\t}", "title": "" }, { "docid": "ed6391f6bc10bd16f8cc8ff2c1f1b2fa", "score": "0.4668456", "text": "function readDouble();", "title": "" }, { "docid": "69d4c8dd4a5c0a140ebdebb5844ccb53", "score": "0.46652627", "text": "protected function _getFloat($input)\n {\n $f1 = str_pad(ord($input[0]), 2, '0', STR_PAD_LEFT);\n $f1 .= str_pad(ord($input[1]), 2, '0', STR_PAD_LEFT);\n $f1 .= str_pad(ord($input[2]), 2, '0', STR_PAD_LEFT);\n $f1 .= str_pad(ord($input[3]), 2, '0', STR_PAD_LEFT);\n $f2 = $f1 >> 17;\n $f3 = ($f1 & 0x0001FFFF);\n $f1 = $f2 . '.' . $f3;\n return (float) $f1;\n }", "title": "" }, { "docid": "1ad78b0336e736cf8bc26adb0cfcfd2e", "score": "0.46568435", "text": "public function readF8le(): float {\n $bits = $this->readU8le();\n return $this->decodeDoublePrecisionFloat($bits);\n }", "title": "" }, { "docid": "6baebf8939ea80182e58389468277290", "score": "0.464276", "text": "public function microtime_float()\n {\n list($usec, $sec) = explode(\" \", microtime());\n return ((float)$usec + (float)$sec);\n }", "title": "" }, { "docid": "23965a28e3db535e3ae41063e1ce1e50", "score": "0.4640928", "text": "public static function microtime_float()\n {\n list($usec, $sec) = explode(\" \", microtime());\n return ((float)$usec + (float)$sec);\n }", "title": "" }, { "docid": "a9414b8df62cf5864a03081ab24516c6", "score": "0.46245247", "text": "public function getFDouble()\n {\n return $this->f_double;\n }", "title": "" }, { "docid": "cc60e76a8133bcb514692dfefac08e75", "score": "0.4617611", "text": "public function getUnitValue(): float\n\t{\n\t\treturn $this->unitValue;\n\t}", "title": "" } ]
e74de5d31d5ee718be983f8d9fc88b07
Check if he download exists on the remote server and it status (free/chargeable)
[ { "docid": "f8a49da774f7eed8aee33a720009dacc", "score": "0.7426939", "text": "public static function check_download() {\n\n\t\t// Check the user's capabilities before proceeding\n\t\t$this->check_capabilities();\n\n\t\t$api_params = array(\n\t\t\t'edd_action' => 'check_download',\n\t\t\t'item_name' => urlencode( $_POST['download'] ),\n\t\t);\n\n\t\t// Send our details to the remote server\n\t\t$request = wp_remote_post( $this->api_url, array( 'timeout' => 15, 'sslverify' => false, 'body' => $api_params ) );\n\n\t\t// There was no error, we can proceed\n\t\tif ( ! is_wp_error( $request ) ) {\n\n\t\t\t$request = maybe_unserialize( json_decode( wp_remote_retrieve_body( $request ) ) );\n\n\t\t\tif ( 'free' == $request->download ) {\n\t\t\t\t// This is a free download.\n\t\t\t\t$response = 0;\n\t\t\t} else if ( 'chargeable' == $request->download ) {\n\t\t\t\t// This is a chargeable download.\n\t\t\t\t// We'll probably need to ask for a license.\n\t\t\t\t$response = 1;\n\t\t\t} else {\n\t\t\t\t// File does not exist\n\t\t\t\t$response = 'invalid';\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t// Server was unreacheable\n\t\t\t$response = 'Server error';\n\n\t\t}\n\n\t\tdie( json_encode( $response ) );\n\n\t}", "title": "" } ]
[ { "docid": "f03dcbf491c7cb0abad5f9c005ecc6d0", "score": "0.7402802", "text": "function remoteFileExists($url) {\n $curl = curl_init($url);\n\n //don't fetch the actual page, you only want to check the connection is ok\n curl_setopt($curl, CURLOPT_NOBODY, true);\n\n //do request\n $result = curl_exec($curl);\n\n $ret = false;\n\n //if request did not fail\n if ($result !== false) {\n //if request was ok, check response code\n $statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);\n\n if ($statusCode == 200) {\n $ret = true;\n }\n }\n\n curl_close($curl);\n\n return $ret;\n }", "title": "" }, { "docid": "cec254a437f917537794f9533a847a14", "score": "0.7167514", "text": "function check_remote_file($url) {\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $url); // specify URL\n\tcurl_setopt($ch, CURLOPT_CONNECTTIMEOUT, FEED_FETCH_TIMEOUT); // specify timeout\n\tcurl_setopt($ch, CURLOPT_NOBODY, 1); // don't download content\n\tcurl_setopt($ch, CURLOPT_FAILONERROR, 1);\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tif(curl_exec($ch) !== FALSE) {\n\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" }, { "docid": "008344e55f387fd5d45203174471b84d", "score": "0.7072826", "text": "private function remote_file_exists($url) {\n $ret = false;\n $ch = curl_init($url);\n\n curl_setopt($ch, CURLOPT_NOBODY, true); // check the connection; return no content\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 1); // timeout after 1 second\n curl_setopt($ch, CURLOPT_TIMEOUT, 2); // The maximum number of seconds to allow cURL functions to execute.\n curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 6.0; da; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11');\n\n // do request\n $result = curl_exec($ch);\n\n // if request is successful\n if ($result === true) {\n $statusCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n if ($statusCode === 200) {\n $ret = true;\n }\n }\n curl_close($ch);\n\n return $ret;\n }", "title": "" }, { "docid": "0cd9271f84aba21ddf5f8bd4e11c11f2", "score": "0.70394635", "text": "protected function checkDownloadsPossible() {}", "title": "" }, { "docid": "514439071c0cb2bd491bc736dad76389", "score": "0.7038989", "text": "function isDownloadable($url) {\n $userAgent='Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0';\n $tempoMaximoEmSegundos=10;\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_HEADER , true); // we want headers\n curl_setopt($ch, CURLOPT_NOBODY , true); // we don't need body\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_TIMEOUT, $tempoMaximoEmSegundos);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);\n $result = curl_exec($ch);\n $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n if($httpCode==200){\n return true;\n }else{\n return false;\n }\n}", "title": "" }, { "docid": "a8a665a55d0800892e58056ef6ccf2ef", "score": "0.69829524", "text": "function checkRemoteFile($url)\n{\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n // don't download content\n curl_setopt($ch, CURLOPT_NOBODY, 1);\n curl_setopt($ch, CURLOPT_FAILONERROR, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n if (curl_exec($ch) !== FALSE) {\n return true;\n } else {\n return false;\n }\n}", "title": "" }, { "docid": "de4da2ddd97e8da88f08b701a445e627", "score": "0.68905824", "text": "public function checkRemoteFile($url){\n\n\t $ch = curl_init();\n\n\t curl_setopt($ch, CURLOPT_URL,$url);\n\n\t // don't download content\n\t curl_setopt($ch, CURLOPT_NOBODY, 1);\n\t curl_setopt($ch, CURLOPT_FAILONERROR, 1);\n\t curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t if (curl_exec($ch) !== FALSE) {\n\t return true;\n\t \t}\n\t else {\n\t return false;\n\t \t}\n\t\t}", "title": "" }, { "docid": "a2fe7f3b90bb202ceaa4ca4808017369", "score": "0.6869379", "text": "public function checkRemoteFile($url){\n\n\t $ch = curl_init();\n\n\t curl_setopt($ch, CURLOPT_URL,$url);\n\n\t // don't download content\n\t curl_setopt($ch, CURLOPT_NOBODY, 1);\n\t curl_setopt($ch, CURLOPT_FAILONERROR, 1);\n\t curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n\t if (curl_exec($ch) !== FALSE) {\n\t return true;\n\t \t}\n\t else {\n\t return false;\n\t \t}\n\n\t\t}", "title": "" }, { "docid": "c61e8371809ecb4af9202a8075869dff", "score": "0.6804937", "text": "public static function remoteFileExists ($url)\n\t{\n\t\n\t\t$head = \"\";\n\t\t$url_p = parse_url ($url);\n\t\t\n\t\tif (isset ($url_p[\"host\"]))\n\t\t\t$host = $url_p[\"host\"]; \n\t\telse\n\t\t\treturn 1; \n\t\t\n\t\tif (isset ($url_p[\"path\"]))\n\t\t\t$path = $url_p[\"path\"]; \n\t\telse\n\t\t\t$path = \"\";\n\t\t\n\t\t$fp = @fsockopen ($host, 80, $errno, $errstr, 20);\n\t\tif (!$fp)\n\t\t\treturn 2; \n\t\telse\n\t\t{\n\t\t $parse = parse_url($url);\n\t\t $host = $parse['host'];\n\t\t \n\t\t fputs($fp, \"HEAD \".$url.\" HTTP/1.1\\r\\n\" );\n\t\t fputs($fp, \"HOST: \".$host.\"\\r\\n\" );\n\t\t fputs($fp, \"Connection: close\\r\\n\\r\\n\" );\n\t\t $headers = \"\";\n\t\t while (!feof ($fp))\n\t\t \t$headers .= fgets ($fp, 128); \n\t\t}\n\t\tfclose ($fp);\n\t\t$arr_headers = explode(\"\\n\", $headers);\n\n\t\tif (isset ($arr_headers[0]))\n\t\t\t$return = (strpos ($arr_headers[0], \"404\" ) === false) ? 0 : 1; \n\t\t\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "7b71f1beb362c0497d9ebb037f65d7e1", "score": "0.6783706", "text": "public function isAlreadyDownloaded(): bool\n {\n return file_exists($this->getFilePath());\n }", "title": "" }, { "docid": "066e0da291ff2514f711117f950c1faf", "score": "0.6776996", "text": "function canBeDownloaded() {\n $api = self::getAPI();\n $api_plugin = $api->getPlugin($this->plugin_key);\n\n return strlen($api_plugin['installation_url'] ?? \"\") > 0;\n }", "title": "" }, { "docid": "0dd590497a7e1a60c2487a22feb09d26", "score": "0.67186487", "text": "function bnc_url_exists($url)\n {\n// Version 4.x supported\n $handle = curl_init($url);\n if (false === $handle) {\n return false;\n }\n curl_setopt($handle, CURLOPT_HEADER, false);\n // this works\n curl_setopt($handle, CURLOPT_FAILONERROR, true);\n curl_setopt($handle, CURLOPT_NOBODY, true);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, false);\n curl_setopt($handle, CURLOPT_TIMEOUT, 1);\n $connectable = curl_exec($handle);\n $d = curl_getinfo($handle, CURLINFO_CONTENT_LENGTH_DOWNLOAD);\n return($d > 0);\n }", "title": "" }, { "docid": "3ca2368b6b4f2213e2415ad40c28caaa", "score": "0.6717084", "text": "public function isAvailable()\n {\n if (empty($this->_url)) {\n return false;\n } // if\n\n try {\n $this->sendrequest('status', null);\n } catch (Exception $e) {\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "0566ea6e87a42b9bf819b8e3e19794c7", "score": "0.66531295", "text": "function does_url_exists($url) {\r\n $ch = curl_init($url);\r\n curl_setopt($ch, CURLOPT_NOBODY, true);\r\n curl_exec($ch);\r\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\r\n \r\n if ($code == 200) {\r\n $status = true;\r\n } else {\r\n $status = false;\r\n }\r\n curl_close($ch);\r\n return $status;\r\n }", "title": "" }, { "docid": "89a69c608ab4df822d5cecd4fc12822b", "score": "0.6651122", "text": "public function urlReachable()\n {\n $handle = curl_init($this->url);\n\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);\n curl_setopt($handle, CURLOPT_TIMEOUT, 3);\n\n /* Get the HTML or whatever is linked in $url. */\n $response = curl_exec($handle);\n\n /* Check for 404 (file not found). */\n $httpCode = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n if ($httpCode == 200) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "1b266eef926021e3b65a0fff8957ecef", "score": "0.6634113", "text": "function is_url_exist($url){\n $ch = curl_init($url); \n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_exec($ch);\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n \n if($code == 200){\n $status = true;\n }else{\n $status = false;\n }\n curl_close($ch);\n return $status;\n }", "title": "" }, { "docid": "66004260cd2bd081eea8cb543103d900", "score": "0.6605558", "text": "function is_url_exist($url){\n $ch = curl_init($url); \n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_exec($ch);\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\n if($code == 200){\n $status = true;\n }else{\n $status = false;\n }\n curl_close($ch);\n return $status;\n}", "title": "" }, { "docid": "5bb22c230475097c4848cafabd750d41", "score": "0.659298", "text": "function check_file_exists( $url ) {\r\n\t\t\t$url = str_replace( ' ', '%20', $url );\r\n\t\t\t$ch = curl_init( $url );\r\n\r\n\t\t\tcurl_setopt( $ch, CURLOPT_NOBODY, true );\r\n\t\t\tcurl_exec( $ch );\r\n\t\t\t$return_code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\r\n\t\t\tcurl_close( $ch );\r\n\r\n\t\t\treturn $return_code == 200 ? true : false;\r\n\t\t}", "title": "" }, { "docid": "2d622c92b65c3da775d2c826e58e2ade", "score": "0.65235937", "text": "private function fileExists($url){\n\t\t$AgetHeaders = @get_headers($url);\n\t\tif (preg_match(\"|200|\", $AgetHeaders[0]))\n\t\treturn true;\n\t\treturn false;\n\n\t}", "title": "" }, { "docid": "3a9a6eabdab52d2f4d46a5158521308f", "score": "0.6497441", "text": "function isAvailable() ;", "title": "" }, { "docid": "3a9a6eabdab52d2f4d46a5158521308f", "score": "0.6497441", "text": "function isAvailable() ;", "title": "" }, { "docid": "93a8d88e48288c83271af47f6ce86802", "score": "0.6441125", "text": "public static function isAvailable() {}", "title": "" }, { "docid": "605387421dfc95a15ac15a9661aa2dde", "score": "0.6440005", "text": "public function download() : bool {\t\n\t\t$req = self::init_req( ( (object) self::$URLS )->download );\n\t\tif( is_null( $req ) ){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tcurl_exec( $req );\n\t\t\tself::$httpCode = curl_getinfo( $req, CURLINFO_HTTP_CODE );\n\t\t\tcurl_close( $req );\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "7c302a28e11fd8e098315d4fcac9fdf2", "score": "0.64326394", "text": "function remote_file_exists($url)\n\t{\n\t // Make sure php will allow us to do this...\n\t if ( ini_get('allow_url_fopen') )\n\t {\n\t \t$head = '';\n\t \t$url_p = parse_url ($url);\n\t\n\t \tif (isset ($url_p['host']))\n\t \t{\n\t\t\t\t$host = $url_p['host']; \n\t\t\t}\n\t \telse\n\t \t{\n\t \treturn false;\n\t \t}\n\t\n\t \tif (isset ($url_p['path']))\n\t \t{ \n\t\t\t\t$path = $url_p['path']; \n\t\t\t}\n\t \telse\n\t \t{\n\t\t\t \t$path = ''; \n\t\t\t}\n\t\n\t \t$fp = @fsockopen ($host, 80, $errno, $errstr, 20);\n\t \tif (!$fp)\n\t \t{\n\t \t\treturn false;\n\t \t}\n\t \telse\n\t \t{\n\t \t\t$parse = parse_url($url);\n\t \t\t$host = $parse['host'];\n\t\n\t\t\t\t@fputs($fp, 'HEAD '.$url.\" HTTP/1.1\\r\\n\");\n\t \t\t@fputs($fp, 'HOST: '.$host.\"\\r\\n\");\n\t \t\t@fputs($fp, \"Connection: close\\r\\n\\r\\n\");\n\t \t\t$headers = '';\n\t \t\twhile (!@feof ($fp))\n\t \t\t{ \n\t\t\t\t\t$headers .= @fgets ($fp, 128); \n\t\t\t\t}\n\t \t}\n\t \t@fclose ($fp);\n\t\n\t \t$arr_headers = explode(\"\\n\", $headers);\n\t \tif (isset ($arr_headers[0])) \n\t\t\t{\n\t \t\tif(strpos ($arr_headers[0], '200') !== false)\n\t \t\t{ \n\t\t\t\t\treturn true; \n\t\t\t\t}\n\t \t\tif( (strpos ($arr_headers[0], '404') !== false) || (strpos ($arr_headers[0], '509') !== false) || (strpos ($arr_headers[0], '410') !== false))\n\t \t\t{ \n\t\t\t\t\treturn false; \n\t\t\t\t}\n\t \t\tif( (strpos ($arr_headers[0], '301') !== false) || (strpos ($arr_headers[0], '302') !== false))\n\t\t\t\t{\n\t \t\tpreg_match(\"/Location:\\s*(.+)\\r/i\", $headers, $matches);\n\t \t\tif(!isset($matches[1]))\n\t\t\t\t\t{\n\t \t\t\treturn false;\n\t\t\t\t\t}\n\t \t\t$nextloc = $matches[1];\n\t\t\t\t\treturn $this->remote_file_exists($nextloc);\n\t \t\t}\n\t \t}\n\t \t// If we are still here then we got an unexpected header\n\t \treturn false;\n\t }\n\t else\n\t {\n\t \t// Since we aren't allowed to use URL's bomb out\n\t \treturn false;\n\t }\n\t}", "title": "" }, { "docid": "2f0e7c7291963a564860e15bf4a7e7f0", "score": "0.638837", "text": "function url_exists($url){//se passar a URL existe\n $c=curl_init();\n curl_setopt($c,CURLOPT_URL,$url);\n curl_setopt($c,CURLOPT_HEADER,1);//get the header\n curl_setopt($c,CURLOPT_NOBODY,1);//and *only* get the header\n curl_setopt($c,CURLOPT_RETURNTRANSFER,1);//get the response as a string from curl_exec(), rather than echoing it\n curl_setopt($c,CURLOPT_FRESH_CONNECT,1);//don't use a cached version of the url\n $exists = curl_exec($c);\n if(!$exists) return false; \n $httpcode=curl_getinfo($c,CURLINFO_HTTP_CODE);\n return $httpcode<400 ? $httpcode : false;\n \n // if(!curl_exec($c)){\n // echo $url.' inexists';\n // return false;\n // } else {\n // echo $url.' exists';\n // return true;\n // }\n // $httpcode=curl_getinfo($c,CURLINFO_HTTP_CODE);\n \n //return ($httpcode<400);\n}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.63571185", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.63571185", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.63571185", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6357003", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6357003", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6357003", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6357003", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "84b87984aad8bda531a6d0e5632802a6", "score": "0.6356008", "text": "public function isAvailable() {}", "title": "" }, { "docid": "04e730a0733607abc07c4aea4d9f6abf", "score": "0.6341823", "text": "public function isFileAvailable(): bool;", "title": "" }, { "docid": "854fbfbe380367f02d2f3f1f55adbf57", "score": "0.6324155", "text": "function getIsAvailable() ;", "title": "" }, { "docid": "e7c259ccf0476f7d6df9dedf72dd2211", "score": "0.6312199", "text": "private static function urlExists($url){\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_setopt($ch, CURLOPT_HEADER, true);\n curl_setopt($ch, CURLOPT_TIMEOUT, 10); // set time out to 10 seconds\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); //follow redirects\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n curl_exec($ch);\n\n $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\n if($code == 200){\n $status = true;\n } else {\n $status = false;\n }\n curl_close($ch);\n\n return $status;\n }", "title": "" }, { "docid": "bc1dee7adfa601ac3c81690274909363", "score": "0.6305927", "text": "public function isAvailable($url) \n\t{\n\t\t$this->api->parseUrl($url);\n\t\treturn $this->api->call(['command' => 'check'])->response()['RRPCode'] == 210 ? true : false;\n\t}", "title": "" }, { "docid": "0c43e0780dfbe2879fd00cd960af517f", "score": "0.62885267", "text": "public function GetDownloadInfo() \n { \n $ret = false;\n \n //verifie le type de compte\n $this->ACCOUNT_TYPE = $this->Verify(false);\n \n //Recupere l'id, s'il nest pas bon, renvoie NON PRIS EN CHARGE\n $GetFILEIDRet = $this->GetFILEID($this->Url);\n if ($GetFILEIDRet == false)\n {\n $ret[DOWNLOAD_ERROR] = ERR_NOT_SUPPORT_TYPE;\n }else\n {\n //Créé l'url en fonction du type de compte\n $this->MakeUrl();\n \n /*verifie si le lien est valide, si c'est le cas \n le nom du fichier est récupéré, sinon c'est false \n */\n $LinkInfo = $this->CheckLink($this->ORIGINAL_URL);\n \n //Renvoie que le fichier n'existe pas si le lien est obsolète\n if($LinkInfo == false)\n {\n $ret[DOWNLOAD_ERROR] = ERR_FILE_NO_EXIST;\n }else\n {\n //en fonction du type de compte, lance la fonction correspondante\n if($this->ACCOUNT_TYPE == USER_IS_PREMIUM)\n {\n $ret = $this->DownloadPremium();\n }else\n {\n $ret = $this->DownloadWaiting();\n }\n \n /*Si les fonctions précedente on retourné un tableau avec des informations,\n on y ajoute le nom du fichier aisi que les INFO_NAME (permet de mettre play/pause).\n si aucun info n'a été retourné on renvoie fichier inexistant\n */\n if($ret != false)\n {\n $ret[DOWNLOAD_FILENAME] = $LinkInfo;\n $ret[INFO_NAME] = trim($this->HostInfo[INFO_NAME]);\n }else\n {\n $ret[DOWNLOAD_ERROR] = ERR_FILE_NO_EXIST;\n }\n }\n }\n return $ret; \n }", "title": "" }, { "docid": "14e6b1e8dc81159386197f60455026b6", "score": "0.6287043", "text": "public function isAvailable();", "title": "" }, { "docid": "6d6019825b76ea6332d25443b2dd4cb5", "score": "0.6276277", "text": "function hasDownloadedScript($ip,$script_id){\n global $DB_NAME;\n $sql = \"select script_id\n from vs_script_downloads\n where script_id = $script_id\n and ip = '$ip' \";\n $result = mysql_db_query($DB_NAME,$sql);\n if(mysql_num_rows($result)==0){\n return false;\n } else {\n return true;\n }\n}", "title": "" }, { "docid": "189ee9b6c59ee31f1836e0cf1b4c4a67", "score": "0.6271247", "text": "function fileExists($url) {\n $url_p = @parse_url($url);\n $host = $url_p['host'];\n $port = isset($url_p['port']) ? $url_p['port'] : 80;\n\n if(!allow_url_fopen_support()) return false;\n $fp = @fsockopen($url_p['host'], $port, $errno, $errstr, 5);\n if(!$fp) return false;\n\n @fputs($fp, 'GET '.$url_p['path'].' HTTP/1.1'.chr(10));\n @fputs($fp, 'HOST: '.$url_p['host'].chr(10));\n @fputs($fp, 'Connection: close'.chr(10).chr(10));\n\n $response = @fgets($fp, 1024);\n $content = @fread($fp,1024);\n $ex = explode(\"\\n\",$content);\n $content = $ex[count($ex)-1];\n @fclose ($fp);\n\n if(preg_match(\"#404#\",$response)) return false;\n else return trim($content);\n}", "title": "" }, { "docid": "5dcbc13bee808041a22d6d1cc077bb67", "score": "0.62636775", "text": "function check_remote_file($url)\n {\n $content_type = '';\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_HEADER, 1);\n curl_setopt($ch, CURLOPT_NOBODY, 1);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\n $results = explode(\"\\n\", trim(curl_exec($ch)));\n foreach ($results as $line) {\n if (strtolower(strtok($line, ':')) == 'content-type') {\n $parts = explode(\":\", $line);\n $content_type = trim($parts[1]);\n }\n }\n curl_close($ch);\n $status = strpos($content_type, 'image') !== false;\n\n return $status;\n }", "title": "" }, { "docid": "a01e74a07170de2e4ec19f7bf60df852", "score": "0.62549114", "text": "abstract public function isAvailable() ;", "title": "" }, { "docid": "b50b54067632e55f19db0e8e0da20f5a", "score": "0.6243502", "text": "public function CheckOnlineStatus($url='wowarmory.com'){\r\n if (@fsockopen($url, 80, $errno, $errstr, 30)){\r\n return array($errstr,$errno);\r\n }else{\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "1128479b191da6accd89bc716816b103", "score": "0.62395227", "text": "public function checkStatus($url) {\n\t\t$stale = date('Y-m-d H:i:s', strtotime(\"-$this->process_time days\"));\n\t\t$requests = DB::query(\"SELECT * FROM requests WHERE url = %s AND (processed > %t OR processed IS NULL)\", $url, $stale);\n\t\tif (empty($requests)) { \n\t\t\treturn 0; \n\t\t} else {\n\t\t\treturn 1;\n\t\t}\n\t}", "title": "" }, { "docid": "59797a2212647c2c60c6d602879d1f01", "score": "0.6199777", "text": "public function isAvailable(): bool;", "title": "" }, { "docid": "59797a2212647c2c60c6d602879d1f01", "score": "0.6199777", "text": "public function isAvailable(): bool;", "title": "" }, { "docid": "59797a2212647c2c60c6d602879d1f01", "score": "0.6199777", "text": "public function isAvailable(): bool;", "title": "" }, { "docid": "4e4583dff4421e3633b53918b6832ae0", "score": "0.6170675", "text": "public function is_available(): bool;", "title": "" }, { "docid": "36a9248a2a81625af3487ea98760ea0d", "score": "0.6138054", "text": "public static function _check_status($url){\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch,CURLOPT_TIMEOUT,5);\n curl_exec($ch);\n $retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $retcode;\n }", "title": "" }, { "docid": "80e76908f3e7b361b9a6ad56bea21667", "score": "0.61349463", "text": "function checkExternalFile($url)\n{\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_exec($ch);\n $retCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n\n return $retCode;\n}", "title": "" }, { "docid": "38f72d8ffb3ed496c5e922fd7db57e9f", "score": "0.6081554", "text": "function isAvailable()\n {\n }", "title": "" }, { "docid": "5dd738c7c307831c8298d28fbd2367b8", "score": "0.6032345", "text": "function urlExists($url) {\n\t\t\t// Handle // urls as http://\n\t\t\tif (substr($url,0,2) == \"//\") {\n\t\t\t\t$url = \"http:\".$url;\n\t\t\t}\n\t\t\t$handle = curl_init($url);\n\t\t\tif ($handle === false) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tcurl_setopt($handle, CURLOPT_HEADER, false);\n\t\t\tcurl_setopt($handle, CURLOPT_FAILONERROR, true);\n\t\t\t// Request as Firefox so that servers don't reject us for not having headers.\n\t\t\tcurl_setopt($handle, CURLOPT_HTTPHEADER, Array(\"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15\") );\n\t\t\tcurl_setopt($handle, CURLOPT_NOBODY, true);\n\t\t\tcurl_setopt($handle, CURLOPT_RETURNTRANSFER, false);\n\t\t\t$connectable = curl_exec($handle);\n\t\t\tcurl_close($handle);\n\t\t\treturn $connectable;\n\t\t}", "title": "" }, { "docid": "029cd93f6ef0d3545543b76d2765d144", "score": "0.6016647", "text": "public function testDownloadIfNew() {\n\t\t// Try to download the file (true if it did, false if not)\n\t\t$this->assertTrue(DataDownloader::downloadIfNew($this->fileToGrab, $this->filePath, $this->fileName, $this->fileExtension));\n\n\t\t// See what files are there\n\t\t$files = glob(\"$this->filePath$this->fileName*$this->fileExtension\");\n\n\t\t// See if they're there\n\t\t$this->assertNotEmpty($files);\n\t}", "title": "" }, { "docid": "1aae669ed668879dad1309926afed9f7", "score": "0.6003815", "text": "public function isDownloadRunning()\n\t{\n\t\treturn($this->isPackageTaskRunning('downloadPoolPackages', 'startDownloadToPool'));\n\t}", "title": "" }, { "docid": "dc3cb130b972bf396670559a33e9819b", "score": "0.598498", "text": "function check_health ( $url ) {\n $url = preg_replace('/http:/', 'https:', $url);\n if ( can_connect( $url ) ) {\n $opts = array(\n 'http' => array(\n 'header' => \"X-Forwarded-For: 50.232.112.210\"\n )\n );\n\n $context = stream_context_create($opts);\n $health = @file_get_contents( $url, false, $context );\n return strpos( $health, 'successful' ) !== false;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "2470764b3394591d1f032b3c999eae96", "score": "0.59826607", "text": "function isSiteAvailable($url){\n\t\t\tif(!filter_var($url, FILTER_VALIDATE_URL)){\n\t\t\t\t//return 'URL provided wasnt valid';\n\t\t\t\treturn 'invalid';\n\t\t\t}\n\t\t\t\n\t\t\t//make the connection with curl\n\t\t\t$cl = curl_init($url);\n\t\t\tcurl_setopt($cl,CURLOPT_CONNECTTIMEOUT,10);\n\t\t\tcurl_setopt($cl,CURLOPT_HEADER,true);\n\t\t\tcurl_setopt($cl,CURLOPT_NOBODY,true);\n\t\t\tcurl_setopt($cl,CURLOPT_RETURNTRANSFER,true);\n\t\t\t\n\t\t\t//get response\n\t\t\t$response = curl_exec($cl);\n\t\t\t\n\t\t\tcurl_close($cl);\n\t\t\t\n\t\t\t//if ($response) return 'Site seems to be up and running!';\n\t\t\tif ($response) return 'success';\n\t\t\t\n\t\t\t//return 'Oops nothing found, the site is either offline or the domain doesn\\'t exist';\n\t\t\treturn 'failed';\n\t\t}", "title": "" }, { "docid": "e82bf1f6d3eed641e5bfbaa74a1995af", "score": "0.5978295", "text": "public function getIsAvailable() {}", "title": "" }, { "docid": "26e43146ce2668aad7b8502622d98a46", "score": "0.5962372", "text": "function ismscURL($link){\r\n\r\n\r\n $http = curl_init($link);\r\n\r\n\r\n curl_setopt($http, CURLOPT_RETURNTRANSFER, TRUE);\r\n\r\n $http_result = curl_exec($http);\r\n\r\n $http_status = curl_getinfo($http, CURLINFO_HTTP_CODE);\r\n\r\n curl_close($http);\r\n\r\n\r\n return $http_result;\r\n\r\n}", "title": "" }, { "docid": "9f4bc75bd697b1772cd2600f643ae0f5", "score": "0.5957315", "text": "function urlOK($url)\n{\n $headers = @get_headers($url);\n if(strpos($headers[0],'200')===false){return false;}else{return true;}\n}", "title": "" }, { "docid": "d794f0d7c2b358be139cf898bef27a60", "score": "0.59551907", "text": "function remote_file_exists($source, $extra_mile = 0) {# # EXTRA MILE = 1////////////////////////////////// Is it an image?\n if ($extra_mile === 1) {\n $img = @getimagesize($source);\n if (!$img)\n return 0;\n else {\n switch ($img[2]) {\n case 0: return 0;\n break;\n case 1:return $source;\n break;\n case 2:return $source;\n break;\n case 3:return $source;\n break;\n case 6:return $source;\n break;\n default:return 0;\n break;\n }\n }\n } else {\n if (@FClose(@FOpen($source, 'r')))\n return 1;\n else\n return 0;\n }\n }", "title": "" }, { "docid": "8bb31751e9596d8c2d06ca11ba903f55", "score": "0.59508955", "text": "public function isAvailable(\\OCP\\Files\\FileInfo $file);", "title": "" }, { "docid": "d19caeb1f3a709c17dabe7352e19ad64", "score": "0.59327966", "text": "public static function url_exists($url) {\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_NOBODY, true);\n curl_exec($ch);\n $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n\n if($status == 200 || $status > 300) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "25b27a5aeb36ed2b7f2861495c7c7e88", "score": "0.5911711", "text": "public function ping()\r\n {\r\n $ch = curl_init();\r\n curl_setopt($ch, CURLOPT_URL, \"http://\".WEMO_IP.\":\".WEMO_PORT);\r\n curl_setopt($ch, CURLOPT_NOBODY, true);\r\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\r\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\r\n curl_setopt($ch, CURLOPT_VERBOSE, false);\r\n curl_setopt($ch, CURLOPT_TIMEOUT, 5);\r\n $result = curl_exec($ch);\r\n $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);\r\n curl_close($ch);\r\n if($httpcode >= 200 && $httpcode <500){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "e6e09391da19530863567140e5df8f2e", "score": "0.59024596", "text": "public function hasDownloads()\n\t{\n\t\t// Cache downloads if not yet done\n\t\t$this->getDownloads();\n\n\t\treturn !empty($this->arrDownloads);\n\t}", "title": "" }, { "docid": "c44f73be259fe6aa5fda4b1d5254abdd", "score": "0.58996534", "text": "function ajax_action_check_url() {\n\n\t\t$hadError = true;\n\n\t\t$url = isset( $_REQUEST['url'] ) ? $_REQUEST['url'] : '';\n\n\t\tif ( strlen( $url ) > 0 && function_exists( 'get_headers' ) ) {\n\t\t\t\t\n\t\t\t$file_headers = @get_headers( $url );\n\t\t\t$exists = $file_headers && $file_headers[0] != 'HTTP/1.1 404 Not Found';\n\t\t\t$hadError = false;\n\t\t}\n\n\t\techo '{ \"exists\": '. ($exists ? '1' : '0') . ($hadError ? ', \"error\" : 1 ' : '') . ' }';\n\n\t\tdie();\n\t}", "title": "" }, { "docid": "5b99047ba1b6d2b785b70471971b579c", "score": "0.58926296", "text": "function PMBP_is_connected() {\n\t$timeout=3; //timeout in seconds\n $connected = @fsockopen(\"phpmybackup.sourceforge.net\", 80, $dontCare1,$dontCare2,$timeout);\n if ($connected){\n fclose($connected);\n return true;\n }else{\n return false;\n }\n}", "title": "" }, { "docid": "6e1e510b6f7f081a012af5d9099cd4e5", "score": "0.5860888", "text": "private function checkIsOnline() {\n\t\t$connected = @fsockopen(\"www.wifipineapple.com\", 443);\n\t\tif ($connected) {\n\t\t\tfclose($connected);\n\t\t\t$this->respond(true);\n\t\t\treturn true;\n\t\t}\n\t\t$this->respond(false);\n\t}", "title": "" }, { "docid": "4352f80f65ab687684ddb7fb50d0405e", "score": "0.58559805", "text": "public function performRemoteCheck() {\n $json = $this->fetchUrl($this->getSessionCheckUrl());\n if ($json) {\n $response = json_decode($json,true);\n \n if ($response['valid'] && $response['recheck']) {\n $this->recheck = new DateTime($response['recheck']);\n return true;\n }\n }\n \n return false;\n }", "title": "" }, { "docid": "cd245d33701e9d638aa63bb4cd0cb1e2", "score": "0.5854002", "text": "function check_cache ( $url ) {\n $this->ERROR = \"\";\n $filename = $this->file_name( $url );\n \n if ( file_exists( $filename ) ) {\n // find how long ago the file was added to the cache\n // and whether that is longer then MAX_AGE\n $mtime = filemtime( $filename );\n $age = time() - $mtime;\n if ( $this->MAX_AGE > $age ) {\n // object exists and is current\n return 'HIT';\n }\n else {\n // object exists but is old\n return 'STALE';\n }\n }\n else {\n // object does not exist\n return 'MISS';\n }\n }", "title": "" }, { "docid": "07dbc5e2e4b8314dcfcad9e4a7a3fb96", "score": "0.58529806", "text": "public function isDownloadLimitReached() {\r\n\t\treturn ($limit = $this->get('download_limit')) && $this->get('hits', 0) >= $limit;\r\n\t}", "title": "" }, { "docid": "3762f488cd582286b4e90c9791057943", "score": "0.58423203", "text": "function URLStatusChecker($url, &$code, &$error){\n $ch = curl_init();\n $agent = \"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)\";\n curl_setopt($ch, CURLOPT_USERAGENT, $agent);\n curl_setopt( $ch, CURLOPT_URL, $url );\n curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );\n curl_setopt( $ch, CURLOPT_TIMEOUT, 10 );\n curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 );\n curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, true ); \n $response = curl_exec( $ch );\n $error = curl_error( $ch );\n $code = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\n curl_close( $ch );\n return $code >= 200 && $code >= 310 && $response;\n }", "title": "" }, { "docid": "073583fe285fce88cac5eb2fad88db61", "score": "0.5841156", "text": "public function isAvailableToDownloadResults()\n {\n return $this->can_download_results;\n }", "title": "" }, { "docid": "997fdf838148fe8b12a3c8c8f61d8fb2", "score": "0.5813573", "text": "public static function exists($url)\n {\n $handle = curl_init($url);\n if (false === $handle)\n {\n return false;\n }\n\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_FAILONERROR, true);\n curl_setopt($handle, CURLOPT_HTTPHEADER, array(\"User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15\") );\n curl_setopt($handle, CURLOPT_NOBODY, true);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, false);\n $connectable = curl_exec($handle);\n curl_close($handle);\n\n return $connectable;\n }", "title": "" }, { "docid": "6b01d7471709eab861957c12b5e7217c", "score": "0.5798167", "text": "function url_exists($url){\n\t$url = str_replace(\"http://\", \"\", $url);\n\tif (strstr($url, \"/\")) {\n\t\t$url = explode(\"/\", $url, 2);\n\t\t$url[1] = \"/\".$url[1];\n\t} else {\n\t\t$url = array($url, \"/\");\n\t}\n\n\t$fh = fsockopen($url[0], 80);\n\tif ($fh) {\n\t\tfputs($fh,\"GET \".$url[1].\" HTTP/1.1\\nHost:\".$url[0].\"\\n\\n\");\n\t\tif (fread($fh, 22) == \"HTTP/1.1 404 Not Found\") { return FALSE; }\n\t\telse { return TRUE; }\n\n\t} else { \n\t\t//echo '<p>no fh</p>';\n\t\treturn FALSE;\n\t}\n}", "title": "" }, { "docid": "ea728538d373cef28be5a3c977c65d1f", "score": "0.5796349", "text": "public static function isAvailable()\n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "9b1a842b973d2c8a9b8e162c1fd82d51", "score": "0.5794402", "text": "function url_exists($url){\n\t\t$url = str_replace(\"http://\", \"\", $url);\n\t\tif (strstr($url, \"/\")) {\n\t\t\t$url = explode(\"/\", $url, 2);\n\t\t\t$url[1] = \"/\".$url[1];\n\t\t} else {\n\t\t\t$url = array($url, \"/\");\n\t\t}\n\n\t\t$fh = fsockopen($url[0], 80);\n\t\tif ($fh) {\n\t\t\tfputs($fh,\"GET \".$url[1].\" HTTP/1.1\\nHost:\".$url[0].\"\\n\\n\");\n\t\t\tif (fread($fh, 22) == \"HTTP/1.1 404 Not Found\") { return FALSE; }\n\t\t\telse { return TRUE; }\n\n\t\t} else { return FALSE;}\n\t}", "title": "" }, { "docid": "fe66fcb7bc1d7d478bc659eb16d2bc1c", "score": "0.5792265", "text": "function MapImgExists($url){\n\t\t$ch = curl_init($url); \n\t\tcurl_setopt($ch, CURLOPT_NOBODY, true);\n\t\tcurl_exec($ch);\n\t\t$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n\t\t\n\t\tif($code == 200) {\n\t\t\t$exists = 'true';\n\t\t} else {\n $exists = 'false';\n\t\t}\n\t\tcurl_close($ch);\n\t\treturn $exists;\n }", "title": "" }, { "docid": "a584d48d8f2b0739b91c1ff9d1280b4e", "score": "0.57770747", "text": "public function test_url_exist($url) {\n\n\t\t$headers = @get_headers($url);\n\n\t\tif ($headers === FALSE) {\n\n\t\t\treturn FALSE;\n\t\t} else {\n\n\t\t\treturn TRUE;\n\t\t}\n\t}", "title": "" }, { "docid": "b07ef4deb284272de5e1d8f1b8237381", "score": "0.57760286", "text": "public static function isAvailible() {\n $domain = self::SERVICE_URL;\n \n if(!filter_var($domain, FILTER_VALIDATE_URL)) {\n return false;\n }\n\n //initialize curl\n $curlInit = curl_init($domain);\n curl_setopt($curlInit,CURLOPT_CONNECTTIMEOUT,10);\n curl_setopt($curlInit,CURLOPT_HEADER,true);\n curl_setopt($curlInit,CURLOPT_NOBODY,true);\n curl_setopt($curlInit,CURLOPT_RETURNTRANSFER,true);\n\n //get answer\n $response = curl_exec($curlInit);\n\n curl_close($curlInit);\n\n if ($response) return true;\n\n return false;\n }", "title": "" }, { "docid": "c8bb1f90a34ea7728605cf635263884a", "score": "0.57719487", "text": "function verify_downloaded_file($filename) {\n\tglobal $snort_filename, $snort_filename_md5, $console_mode;\n\tob_flush();\n\tif(filesize($filename)<9500) {\n\t\tif(!$console_mode) {\n\t\t\tupdate_all_status(\"Checking {$filename}...\");\n\t\t\tcheck_for_common_errors($filename);\n\t\t}\n\t}\n\tupdate_all_status(\"Verifying {$filename}...\");\n\tif(!file_exists($filename)) {\n\t\tif(!$console_mode) {\n\t\t\tupdate_all_status(\"Could not fetch snort rules ({$filename}). Check oinkid key and dns and try again.\");\n\t\t\thide_progress_bar_status();\n\t\t} else {\n\t\t\tlog_error(\"Could not fetch snort rules ({$filename}). Check oinkid key and dns and try again.\");\n\t\t\techo \"Could not fetch snort rules ({$filename}). Check oinkid key and dns and try again.\";\n\t\t}\n\t\texit;\n\t}\n\tupdate_all_status(\"Verifyied {$filename}.\");\n}", "title": "" }, { "docid": "63ea5cc854f7081d6e9504b5baadba2e", "score": "0.5762997", "text": "public function isDownloadable()\n {\n return ($this->getBehavior('downloadBehavior') !== null);\n }", "title": "" }, { "docid": "51f246d8ff1bc4c38b17717832034fdc", "score": "0.5761521", "text": "public static function is_available()\n {\n }", "title": "" }, { "docid": "bb6cb9b2f26f682e4f24f8aac39b0e61", "score": "0.5742864", "text": "public function isAvailable(){\n\t\treturn is_dir($this->path);\n\t}", "title": "" }, { "docid": "7cda037d1ee42516fddc31573c80ba67", "score": "0.57349557", "text": "public static function isAvailable ()\n\t{\n\t\tif (!function_exists('curl_version')){\n\t\t\treturn false;\n\t\t}\n\n\t\t$versionInfo = curl_version();\n\t\t$versionTab = explode('.', $versionInfo['version']);\n\n\t\tif ($versionTab[0] < 7 || ($versionTab[0] == 7 && $versionTab[1] < 10) || ($versionTab[0] == 7 && $versionTab[1] == 10 && $versionTab[2] < 5)){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "31eefe701008f1e24bcf53f9beae0e6e", "score": "0.57199395", "text": "function is_remote($url) {\n $parts = parse_url($url);\n $host = $parts['host'];\n $local_host = $_SERVER['HTTP_HOST'];\n $is_remote = $host && $host != $local_host;\n //if($is_remote) echo(\"$url is remote: host = $host, local=$local_host<br>\");\n return $is_remote;\n}", "title": "" }, { "docid": "dbe73bc1ba56e61be5394ee9b33a22e5", "score": "0.57119596", "text": "function downloads($url) {\n include(\"../db.php\");\n $sql = \"SELECT * FROM downloads where file='$url'\";\n $result = $conn->query($sql);\n \n return $result->num_rows;\n\n}", "title": "" }, { "docid": "d26dde9506a744cc0b1157f8b92434ca", "score": "0.5709199", "text": "public function isNewVersionAvailable()\n {\n return file_exists($this->source);\n }", "title": "" }, { "docid": "bf1027546d5c63b080ca668a6afd5ae2", "score": "0.57021827", "text": "public function GetDownloadInfo()\n {\n if (trim($this->url) === '') {\n $this->logger->log('URL is empty');\n\n return false;\n }\n\n $mediathek = $this->findSupportingMediathek();\n if ($mediathek === null) {\n $this->logger->log('Failed to find mediathek for ' . $this->url);\n\n return false;\n }\n\n return $this->toDownloadInfo($mediathek->getDownloadInfo(\n $this->url,\n $this->username,\n $this->password\n ));\n }", "title": "" }, { "docid": "99efe0e21e386005efc1f76d5a176b5f", "score": "0.56999445", "text": "function checkCache()\n {\n global $rss_cache;\n \n // Does they exits? If not, return nothing\n if (file_exists($rss_cache) && strlen(file_get_contents($rss_cache)) > 0) {\n $date_diff = @(time() - filemtime($rss_cache));\n if ($date_diff < 1000) {\n $status = true;\n } else {\n $status = false;\n }\n } else {\n $status = false;\n }\n return $status;\n }", "title": "" }, { "docid": "f533f6b3769b2f26c01a5eca439d7fae", "score": "0.5692323", "text": "private function checkConnection(){\n\t\t\t\n\t\t\t$request = $this->url.$this->getMode(\"version\").\"?\".$this->key_string;\n\t\t\t$this->http->setURL($request);\n\t\t\t$response = $this->http->send();\n\t\t\t//echo $this->http->HTMLizeErrlog();\n\t\t\t$this->bn_version = str_replace(\"_\", \".\", $response[\"version\"]);\n\n\t\t\treturn $this->http->status;\n\t\t}", "title": "" } ]
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "1fde001abb5d0a2f64fbc6ec6840ce34", "score": "0.0", "text": "public function create()\n {\n $cat = [];\n return view(\"admin.reviews.create\", compact('cat'));\n }", "title": "" } ]
[ { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75663006", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.7491396", "text": "public function create()\n {\n return view('resources.create');\n }", "title": "" }, { "docid": "1f9733369c1aaf55c73aa4d1a8a80882", "score": "0.74566424", "text": "public function create()\n {\n\n return view('resources.create');\n\n }", "title": "" }, { "docid": "1da53c4d224bfa3bc44c0fabd927bedd", "score": "0.7455584", "text": "public function create()\n {\n return view ('rol.form_create');\n }", "title": "" }, { "docid": "4c4b7c47a2d71e26b29b9caea091a07c", "score": "0.7393118", "text": "public function showCreateForm()\n {\n $this->authorize('create', Project::class);\n\n return view('project.create', [\n 'action' => 'create',\n ]);\n }", "title": "" }, { "docid": "edabb98341a0b5aadd47c2864942b8db", "score": "0.7339739", "text": "protected function create()\n {\n $form = Form::create($this->resource);\n $model = $form->model;\n\n $model->hasAccessOrFail('create');\n\n $model->fill($this->getOldInput());\n\n $form->fields()->each(function (Field $field) use (&$model) {\n $field->setValue($model);\n });\n\n return view('crud::form.create', compact('form'));\n }", "title": "" }, { "docid": "4734584f2f8340a42973a0d555da6c67", "score": "0.7328834", "text": "public function create()\n {\n return view(\"superadmin.form\");\n }", "title": "" }, { "docid": "10d532d72b585493a6ca515a12bc3a2c", "score": "0.7321179", "text": "protected function showCreateForm()\n\t{\n\n\t\treturn Response::view('adm/IAS/create');\n\n\t}", "title": "" }, { "docid": "9814fd9ae63509e6eb41bf23f7a94615", "score": "0.72809595", "text": "public function create()\n {\n return view('forms.create');\n }", "title": "" }, { "docid": "6ed61a57fb61b517537e754054cffc2f", "score": "0.7257705", "text": "public function create()\n {\n return view(\"stok.form\");\n }", "title": "" }, { "docid": "d777482ca48a952bda74d0486cdad76a", "score": "0.7237927", "text": "public function create()\n {\n return \"Here is the creating form page.\";\n }", "title": "" }, { "docid": "8a257056a97a8ef04b6027c8bfb8cad1", "score": "0.723185", "text": "public function create()\n {\n\n $title = 'Add '. $this->getName();\n $form = $this->form($this->getFormClass(), [\n 'method' => 'POST',\n 'url' => route($this->getRouteFor('store')),\n ]);\n return view('.admin.form', compact('form', 'title'));\n }", "title": "" }, { "docid": "f5f050d80230f2f0b6313a13b65e7a0b", "score": "0.72228223", "text": "public function newAction()\n {\n $entity = new Faq();\n $form = $this->createCreateForm($entity);\n\n $form->add('question', 'text', array('label' => 'Ask Your Question :')); \n $form->add('answer', 'text', array('label' => 'Give an answer :'));\n $form->add('submit', 'submit', array('label' => 'Submit question'));\n\n return $this->render('FaqBundle:Faq:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "755e91a474eae625dfda22659e4c1f6c", "score": "0.72203404", "text": "public function create()\n {\n return view('form.create');\n }", "title": "" }, { "docid": "4b9c0332c0bc5feb4fa5c4c15ff4cda0", "score": "0.722023", "text": "public function create()\n {\n $this->authorize('create', $this->getResourceModel());\n\n $class = $this->getResourceModel();\n return view($this->getResourceCreatePath(), $this->filterCreateViewData([\n 'record' => new $class(),\n ] + $this->resourceData()));\n }", "title": "" }, { "docid": "7e6cbda13a4d6999c8e363f25258eeb1", "score": "0.7208485", "text": "public function showCreateForm()\n {\n return view('user.create');\n }", "title": "" }, { "docid": "85bc1c405768493e40df217a0040f018", "score": "0.7191366", "text": "function showCreateForm(){\n return view('admin.Direktori.Pendeta.create');\n }", "title": "" }, { "docid": "9493a84894964b34fd6021b3786bcc7a", "score": "0.71894634", "text": "public function create()\n {\n return view('crops.forms.create');\n }", "title": "" }, { "docid": "68716ed8c8a7c02d13766dd274f478a3", "score": "0.718268", "text": "public function create()\n {\n return view('user_resources/create');\n }", "title": "" }, { "docid": "643073da4582f0c5ee209f1f696bb305", "score": "0.7166686", "text": "public function create()\n {\n return view('admin/records/forms/record-create-form');\n }", "title": "" }, { "docid": "ca8a62edbc9efc96246dc89065570720", "score": "0.71638685", "text": "public function newAction()\n {\n $this->loggerStdout->log('UsersController: display the creation form');\n\n\n }", "title": "" }, { "docid": "86e44150333771a80ff3634ffc76f344", "score": "0.71529675", "text": "public function create()\n {\n return view('dashboard.form.create');\n }", "title": "" }, { "docid": "75889c35cd5f200bf02a5b21774293e1", "score": "0.7137003", "text": "public function create()\n {\n $this->data['titlePage'] = trans('admin.obj_new',['obj' => trans('admin.'.$this->titleSingle)]);\n $breadcrumbs = array();\n $breadcrumbs[] = [ 'title' => trans('admin.home'), 'link' => route($this->routeRootAdmin), 'icon' => $this->iconDashboard ];\n $breadcrumbs[] = [ 'title' => trans('admin.'.$this->titlePlural), 'link' => route(GetRouteAdminResource($this->resourceRoute)), 'icon' => $this->iconMain ];\n $breadcrumbs[] = [ 'title' => $this->data['titlePage'], 'icon' => $this->iconNew ];\n $this->data['breadcrumbs'] = $breadcrumbs;\n $this->data['category'] = $this->getModelArray($this->modelCategory);\n $this->data['province'] = $this->getModelArray($this->modelProvince);\n $this->data['district'] = $this->getModelArray($this->modelDistrict);\n $this->data['ward'] = $this->getModelArray($this->modelWard);\n $this->data['direction'] = $this->getModelArray($this->modelDirection);\n\n return view(GetViewAdminResource($this->resourceView, 'create'))->with($this->data);\n }", "title": "" }, { "docid": "0a067c68f8000d9eb913daf36e5e607c", "score": "0.712034", "text": "public function create()\n {\n return view('FullForm.create');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "fa84f7150b87a66588bfc89685d8fe4c", "score": "0.71158516", "text": "public function create()\n {\n return view('form');\n }", "title": "" }, { "docid": "c88daeaad1f2ef73dd9534351ceea67a", "score": "0.70962554", "text": "public function newAction()\n {\n $entity = new FormEntity();\n $entity->setTemplate('keltanasTrackingBundle:Form:form.html.twig');\n $form = $this->createCreateForm($entity);\n\n return $this->render('keltanasTrackingBundle:Form:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "c27004d00e3f9afb85f74623ec456ca9", "score": "0.708025", "text": "public function create()\n {\n //\n return view('form');\n }", "title": "" }, { "docid": "856274cb86788ad9604003f12dd5060c", "score": "0.7073722", "text": "public function create()\n {\n return view('carusel.new');\n }", "title": "" }, { "docid": "7545e6950b9a4b4ee7a1ca28789b55aa", "score": "0.7072655", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t\t$this->view->render('signin', 'create');\n\t}", "title": "" }, { "docid": "8e0fde88926c98fb2c54ba67ab5b36a7", "score": "0.7061749", "text": "public function create()\n\t{\n\t\treturn View::make('librarians.create');\n\t}", "title": "" }, { "docid": "345c70747deda30c3482e759c25c4d12", "score": "0.706081", "text": "public function create()\n {\n return view('passenger.forms.create');\n }", "title": "" }, { "docid": "2b41dd9ed0cf1461dd65f8e05b0a94a1", "score": "0.70571953", "text": "public function create()\n {\n return $this->showForm();\n }", "title": "" }, { "docid": "20ab9d62fc4da5013c56daa9183bfe28", "score": "0.70571035", "text": "public function create()\n {\n return view('admin.client.form');\n }", "title": "" }, { "docid": "b7f63db5c5ecb7bba494b8a81ce69874", "score": "0.70475084", "text": "public function create(AdminResource $resource)\n {\n $form = $resource->getForm();\n\n return view('admin::resource.form', compact('form'));\n }", "title": "" }, { "docid": "8f53ed51f8136e8e32a2c0525120a50f", "score": "0.7042422", "text": "public function create()\n {\n //\n\n \n return view('student/ResourceStd');\n\n }", "title": "" }, { "docid": "f1f40cbb0cad3cf320b4c0ec09b3b428", "score": "0.7040213", "text": "public function create()\n {\n return view('form');\n\n }", "title": "" }, { "docid": "643fd44e4ced88a8aac481ced428c5ca", "score": "0.70261294", "text": "public function create()\n {\n $title = 'CRIAR REGISTRO';\n return view('forms.create',['title' => $title]);\n }", "title": "" }, { "docid": "40e93c68e66b0c86108e5ae59cc176d2", "score": "0.70215225", "text": "public function newAction()\n {\n $this->view->setVar('form', new ClientForm(null, ['edit' => false]));\n }", "title": "" }, { "docid": "8074165780da4d1be303d3e9d8c535ba", "score": "0.7012196", "text": "public function create()\n {\n return view ('owner/form');\n }", "title": "" }, { "docid": "06af90c4292c136aaaf9329cfae0b3fc", "score": "0.70115083", "text": "public function create()\r\n {\r\n //mengarahkan ke form\r\n return view('rental.form');\r\n }", "title": "" }, { "docid": "248b476c0f07013b389c79c904231f2a", "score": "0.70046955", "text": "public function create()\n {\n return view('admin.car.add');\n }", "title": "" }, { "docid": "75fb4bc6a7a5df1f1f5cd380b0cd4aec", "score": "0.7000195", "text": "public function create()\n {\n //New Property form\n return view('properties.addproperty');\n }", "title": "" }, { "docid": "c6f4cc7fdd05567403f39d82ae477eb4", "score": "0.6994647", "text": "public function create()\n\t{\n\t\treturn view('kasus.create');\n\t}", "title": "" }, { "docid": "753f9bd767a3748b9d6409cb957dc41f", "score": "0.6994326", "text": "public function createAction()\n {\n $action = $this->view->url(['action' => 'save'], 'controllers');\n $this->view->projectForm = $this->service->getFormForCreating($action);\n }", "title": "" }, { "docid": "7fdab24f12d98bab46a40db3c2f06831", "score": "0.69885707", "text": "public function create()\n\t{\n\t\treturn View::make('back_setup/ProductForm');\n\t}", "title": "" }, { "docid": "355b502cb4384aeb8c0d1322a57b7677", "score": "0.69879013", "text": "public function create()\n {\n return view ('show.create', [\n ]); \n }", "title": "" }, { "docid": "afec885a1ddf009d317c5bca27be7983", "score": "0.6985705", "text": "public function create()\n {\n\t\treturn view('admin.pages.supplier-form-create', ['page' => 'supplier']);\n }", "title": "" }, { "docid": "93cdfcc841a0d10e976bbc17fe7020ec", "score": "0.6977717", "text": "public function create()\n {\n return view('rombel.create');\n }", "title": "" }, { "docid": "eb3ba5c68f25897de6ed50346b9959f7", "score": "0.6976043", "text": "public function create()\n {\n $crud = crud_entry(new \\App\\Employee);\n\n return view('crud::scaffold.bootstrap3-form', ['crud' => $crud]);\n }", "title": "" }, { "docid": "27f66e57741013d1d7bd227b0a1ae6cc", "score": "0.6969905", "text": "public function create()\n {\n return view('radars/create');\n }", "title": "" }, { "docid": "4e37d311d6990013b0ed72549d9fd35f", "score": "0.69635546", "text": "public function create()\n {\n return view('product.form');\n }", "title": "" }, { "docid": "58119c678c7b859b3d2fcb9d4e2544e9", "score": "0.69620776", "text": "public function create()\n {\n return view('forms.girders.create');\n }", "title": "" }, { "docid": "57611366e6e3194f52047893b6a260ec", "score": "0.6958746", "text": "public function create()\n {\n \tAppGranted::grantedAccess('add', true);\n $data['module_title'] = \"Role\";\n $data['action'] = route('kantor.store');\n $data['action_type'] = \"add\";\n\n $data['breadcrumb'] = [ \n ['title' => 'Master Data','url' => '#'],\n ['title' => 'Kantor','url' => 'kantor'],\n ['title' => 'form','url' => 'form']\n ];\n\n $data['redirect'] = route(\"kantor.create\");\n \n return view('kantor::kantor_form',$data);\n }", "title": "" }, { "docid": "6e09ea0495ecf33b6615199f96a87dd9", "score": "0.6958075", "text": "public function create()\n {\n return view('inventaris.create');\n }", "title": "" }, { "docid": "cfb06a7f594e86d7fe22432b5bd18371", "score": "0.6957784", "text": "public function newAction()\n {\n $entity = new Ministro();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ParroquiaCertificadoBundle:Ministro:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "f0a4e435f6bebfce6162cc1be7c7ee0f", "score": "0.6954809", "text": "public function create()\n {\n return view('conceptos.create');\n }", "title": "" }, { "docid": "9cc1ebbeb06fe2564e0fa603d2c72f75", "score": "0.69542176", "text": "public function create()\n {\n //\n return view('product.form');\n }", "title": "" }, { "docid": "ad86bd025139be91b2df85c83f79d4bd", "score": "0.69525295", "text": "public function create()\n {\n return view('syllabus.create');\n }", "title": "" }, { "docid": "7b8c9d5cbe582eab2f28c216421a2719", "score": "0.6951232", "text": "public function create()\n {\n return view('proyek.add');\n }", "title": "" }, { "docid": "29d1eb6a37de9bf5891c3b5b4ef4fa2d", "score": "0.69450635", "text": "public function newForm()\n {\n $this->pageTitle = \"Création d'une question\";\n\n //initialisation des selects list\n $this->initSelectList();\n\n parent::newForm();\n }", "title": "" }, { "docid": "353155b973a25b62f33cce0b6600b99c", "score": "0.693502", "text": "public function create()\n {\n $data = array(\n 'title' => 'Ingreso de un nuevo Sector',\n 'message' => 'return confirm(\"¿Esta seguro que desea guardar el sector?\")',\n 'method' => 'POST',\n );\n return view('sector.form')\n ->with('data', $data);\n }", "title": "" }, { "docid": "7c12821aa5d613a86cc8ba0cf190e6fd", "score": "0.6930994", "text": "public function create()\n {\n return view('tutores.new');\n }", "title": "" }, { "docid": "07e409b45065624d003704ab3b447aec", "score": "0.69273114", "text": "public function create()\n {\n return view('admin.product.form');\n }", "title": "" }, { "docid": "60c9cc4899b058bc51c74601c8025ebe", "score": "0.6925751", "text": "public function create()\n {\n return view('adminCreateForm');\n }", "title": "" }, { "docid": "466006539e9b1da8c7c2e06a069c4e2e", "score": "0.6921871", "text": "public function create()\n {\n return view('layout_admin.thenew.create_new');\n }", "title": "" }, { "docid": "38a6849d5b56a77b178a1fc8297c2e4e", "score": "0.69218206", "text": "public function create()\n\t{\n\t\treturn view('information.create');\n\t}", "title": "" }, { "docid": "a59dfad08f7be5f4bb5d898d16a6d3a3", "score": "0.6919321", "text": "public function newAction()\n {\n $entity = new Rector();\n $form = $this->createCreateForm($entity);\n\n return $this->render('ColegioAdminBundle:Rector:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "4bf33424414f342096092b367153c3ff", "score": "0.6918515", "text": "public function create()\n {\n return view('webinars.create');\n }", "title": "" }, { "docid": "1b49a8bc053be1715bbf5620cf797e18", "score": "0.69184965", "text": "public function create()\n\t{\n\t\treturn View::make('product.create'); //form to create new product \n\t}", "title": "" }, { "docid": "27e5069596828984f14a92c012c1e448", "score": "0.6914329", "text": "public function newAction()\n {\n $entity = new Inicio();\n $form = $this->createForm(new InicioType(), $entity);\n\n return $this->render('SisafBundle:Inicio:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "e90d65170f9bc3dd1e2b969826600c53", "score": "0.6914271", "text": "public function create()\n {\n return view('ekskul.create');\n }", "title": "" }, { "docid": "51a5131df9fc2dcd5b65b5ca8aa614d0", "score": "0.69092304", "text": "public function create()\n {\n //To show the required create page when its clicked\n return view('admin.create');\n \n \n }", "title": "" }, { "docid": "4b3f5241c4a2f638b9ee19747079b7a2", "score": "0.69069797", "text": "public function create()\n {\n return view('stus.add');\n }", "title": "" }, { "docid": "ecc913c81504bfd8529f7b7feaef7080", "score": "0.69047576", "text": "public function create(){\n return view('person/form', ['action'=>'create']);\n }", "title": "" }, { "docid": "64d616e79a29573ea35b962756917c05", "score": "0.69007623", "text": "public function create()\n {\n\t\t$d['action'] = route('product.store');\n\t\treturn view('back.pages.product.form', $d);\n }", "title": "" }, { "docid": "61066352fa31a37b0f1d8bc9fd229ea9", "score": "0.6897235", "text": "public function create()\n {\n /* $this->authorize('create'); */\n return view('refugio.refugioForm');\n }", "title": "" }, { "docid": "70820d35b4d8e319baa89b6f91a3d029", "score": "0.6895603", "text": "public function newAction() {\n $entity = new Recommandation();\n $form = $this->createCreateForm($entity);\n\n return $this->render('MyAppFrontBundle:Recommandation:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "619fa64afd3457bdc8d1c1a041acff47", "score": "0.68903565", "text": "public function create()\n {\n return View(\"$this->view_folder.form\", $this->data);\n }", "title": "" }, { "docid": "09fab99adf688ea100aa90694eab5889", "score": "0.6888845", "text": "public function create()\n {\n return view(\"Amenity::add\");\n }", "title": "" }, { "docid": "bdb0161d2f2f44cdaea93bf890a4c02e", "score": "0.68880934", "text": "public function create()\n {\n return view(\"create\");\n }", "title": "" }, { "docid": "9664795bf81cca0f3e65d94f0f595082", "score": "0.6880484", "text": "public function create()\n\t{\n\t\treturn view('questao.create');\n\t}", "title": "" }, { "docid": "623f899bed6c6f380a03ffc99508b73d", "score": "0.6879059", "text": "public function newAction()\n {\n $entity = new Candidato();\n $form = $this->createForm(new CandidatoType(), $entity);\n\n return $this->render('EleicaoAdmBundle:Candidato:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "a3b3bbcce8f8a6239dadc2917240252b", "score": "0.6878254", "text": "public function showForm()\n {\n return view('AdminView.create');\n }", "title": "" }, { "docid": "06fe0499ccb2038bd9c25e7ef14289e2", "score": "0.68774086", "text": "public function create()\n {\n //Return item details form\n return view('home.create');\n }", "title": "" }, { "docid": "47e62b5d5e96751bc9e8ab90f94e7ea4", "score": "0.6876466", "text": "public function create()\n {\n return view('manager.new');\n }", "title": "" }, { "docid": "3557ca31989d52aabfc94b29a8b4779e", "score": "0.6874666", "text": "public function create()\n {\n return view('hari.create');\n }", "title": "" }, { "docid": "b3998fa6dce49f97902e942f97d98ede", "score": "0.687325", "text": "public function newAction()\n {\n $entity = new Escuelas();\n $form = $this->createForm(new EscuelasType(), $entity);\n\n return $this->render('QQiRecordappBundle:Escuelas:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "9f18b1b1a35a9af23eb1d4bbdba665f8", "score": "0.68696606", "text": "public function create()\n {\n return view('admin.car_com.create');\n }", "title": "" }, { "docid": "96c76b820b73f95fa584de07ad04ad0a", "score": "0.6865675", "text": "public function create()\n {\n return view('nasabah/addnasabah');\n }", "title": "" }, { "docid": "e3cfac3178d9c5cb5ab322fa4785604c", "score": "0.6862222", "text": "public function create()\n {\n return view('Prenda.create');\n }", "title": "" }, { "docid": "f4672fc37d04d0e3bef9bc80e57323e9", "score": "0.6860329", "text": "public function create()\n {\n //\n $question= new Question();\n return view('dashboard.question.form', [\n \"question\" => $question\n ]);\n }", "title": "" }, { "docid": "451c07a3106f3c6e3d62757717bfa763", "score": "0.6860251", "text": "public function create()\n\t{\n\t\treturn view('horas.create');\n\t}", "title": "" }, { "docid": "95a4952039c4b40b058cc67fba7cd2d7", "score": "0.68573785", "text": "public function create () {\n $course = new Course();\n $btnText = __(\"Enviar curso para revisión\");\n\n return view('courses.form', compact('course', 'btnText'));\n }", "title": "" }, { "docid": "ca80651480f4bbbd35305ceefd136182", "score": "0.6853353", "text": "public function newAction()\n {\n $entity = new Alumni();\n $form = $this->createForm(new AlumniType(), $entity);\n\n return $this->renderTwig('Master/Alumni:form', array(\n 'entity' => $entity,\n 'edit_form' => $form->createView()\n ));\n }", "title": "" }, { "docid": "d58534453dca5d05eb6bf9759a643eaa", "score": "0.68512565", "text": "public function create()\n\t{\n\t\treturn View::make('create');\n\t}", "title": "" }, { "docid": "783d7ee63b2e492087fc641fa43b1ef1", "score": "0.684831", "text": "public function create()\n\t{\n\t\treturn View::make('fornecedors.create');\n\t}", "title": "" }, { "docid": "2d13aa784138fe895746ebaa36bda96f", "score": "0.6847265", "text": "public function create()\n {\n return view('hr.create');\n }", "title": "" }, { "docid": "1406c82292b4f07e3eecfee633a3f557", "score": "0.68437195", "text": "public function create()\n {\n return view('admin.company.form', [\n 'company' => null,\n 'route' => 'admin.company.store',\n 'method' => 'POST'\n ]);\n }", "title": "" }, { "docid": "b1d677deef4bb08323db61d502e8dcee", "score": "0.6843096", "text": "public function create()\n {\n return view('backend.book.create');\n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "13fff839b8c04954b1cd8ba42a640b03", "score": "0.0", "text": "public function update(ProductRequest $request, Product $product)\n {\n $validated = $request->validated();\n $product->update($validated);\n $product->categories()->sync($validated['category_ids']);\n\n $paths = $this->imageService->uploadImages($request, 'product-images', 'images');\n if (count($paths) > 0) {\n $product->productImages()->createMany($paths);\n }\n\n if ($validated['variants'][0]['name']) {\n $validated = $this->saveVariants($request, $validated);\n $product->productVariants()->createMany($validated['variants']);\n }\n\n if ($validated['add_ons'][0]['name']) {\n $validated = $this->saveAddOns($request, $validated);\n $product->productAddOns()->createMany($validated['add_ons']);\n }\n\n Cache::tags(['products-index'])->flush();\n\n return new ProductResource($product);\n }", "title": "" } ]
[ { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "fc2720c817b984c257395f2aea7fba5c", "score": "0.6663144", "text": "public function update(Request $request, Resource $resource) {\n $data = $request->all();\n\n DB::transaction(function() use ($resource, $data) {\n Resource::find($resource->id)->update($data);\n });\n\n return redirect()->route('resource.index')->with('message', 'updating ok!');\n }", "title": "" }, { "docid": "c9d6b203d06123d9b08923c31e92bcaa", "score": "0.661161", "text": "public function update(ResourceCreateRequest $request, Resource $resource)\n {\n if($resource->update($request->all()))\n {\n if ($request->hasFile('document')) {\n if(!empty($resource->document))\n {\n Storage::delete($resource->file);\n }\n $file = $request->document;\n $path = Storage::putFile('files/resources', $file);\n $resource->file = $path;\n $resource->save();\n }\n SweetAlert::success('Resource updated successfully', 'Resource Updated');\n }\n else\n {\n SweetAlert::error('Resource was not updated. Please correct your errors.', 'Oops!');\n return back();\n }\n return redirect('admin/resources');\n }", "title": "" }, { "docid": "7781196723789b64ec73cb4611e47f59", "score": "0.6398147", "text": "public function update($resource, $data = [])\n {\n if (is_array($data) && count($data) > 0) {\n $resource->fill($data);\n }\n\n $this->save($resource);\n\n return $resource;\n }", "title": "" }, { "docid": "0f032798d0e9c8e58a362a900a5df9d1", "score": "0.6362203", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'file' => 'required|max:2048',\n ]);\n\n $resources = Resources::find($id);\n\n if ($request->file()) {\n if ($resources->file != null) {\n unlink(public_path('' . $resources->file));\n }\n $fileName = time() . '_' . $request->file->getClientOriginalName();\n $filePath = $request->file('file')->storeAs('uploads', $fileName, 'public');\n $resources->file = '/storage/' . $filePath;\n } else {\n $resources->file = $resources->file;\n }\n $resources->title = $request->title;\n $update = $resources->save();\n if ($update) {\n return redirect()->route('resources.index');\n }\n }", "title": "" }, { "docid": "c36ab864eb8fe4e400b9bf654b24e104", "score": "0.6334678", "text": "public function updateStream($path, $resource, array $config = []);", "title": "" }, { "docid": "661eb6b724ed05cb34396082c333f011", "score": "0.6320368", "text": "public static function updateResource($path, $object, $resource = 'Resource')\n {\n if (is_array($object)) {\n $object = (object)$object;\n }\n \n $response = static::connection()->put(self::$api_path . $path, $object);\n \n return static::mapResource($resource, $response);\n }", "title": "" }, { "docid": "9ca5c8e9d8ce78bffbc615b16cc99a78", "score": "0.63142717", "text": "public function update(Request $request, Storage $storage)\n {\n $storage->update($request->all());\n return redirect()->route('shop.admin.storage.index.index');\n }", "title": "" }, { "docid": "11263a6537e0c7bea161f6d78a549cad", "score": "0.6237675", "text": "public function updateStream($path, $resource, Config $config);", "title": "" }, { "docid": "6409a18ba9f053100e088a1e3c95194e", "score": "0.6148923", "text": "public static function updateResource($path, $object = [])\n {\n if (is_array($object)) {\n $object = (object)$object;\n }\n\n return self::connection()->put(self::$api_path . $path, $object);\n }", "title": "" }, { "docid": "06dbf067b27a256f126060eaefd566f3", "score": "0.6133308", "text": "public function update($resourceId)\n {\n $exception = new Exception(\"CRUD0103\", __METHOD__);\n $exception->setHttpStatus(\"405\", \"You cannot update a family\");\n throw $exception;\n }", "title": "" }, { "docid": "285e7bad0931f662ad89d1b79ea0d179", "score": "0.60692644", "text": "public function update($resource, $data)\n {\n $json = false;\n $fs = unserialize($_SESSION['fs'][$this->getRoot()], ['allowed_classes' => false]);\n\n if (array_key_exists($resource, $fs)) {\n $fs[$resource]['name'] = $data->name;\n $fs[$resource]['mode'] = $data->mod;\n $fs[$resource]['parId'] = $data->parId;\n\n $_SESSION['fs'][$this->getRoot()] = serialize($fs);\n $json = json_encode($fs[$resource]);\n $json = preg_replace('/\"([\\d]+)\"/', '$1', $json);\n }\n\n return $json;\n }", "title": "" }, { "docid": "ebaac64c658e84ae50d01d89f70f8647", "score": "0.60281414", "text": "public function update(Request $request, $id)\n {\n //\n $action_code = 'storage_update';\n $message = usercan($action_code, Auth::user());\n if ($message) {\n return redirect()->back()->with('message', $message);\n } \n //Actual code to execute\n //Receives and updates new shop data\n $input = $request->all();\n //make sure the description is unique but \n //exclude the $id for the current shop\n $this->validate($request, [\n 'description' => 'required|unique:storages,description,'.$id.'id'\n ]);\n\n $storage = Storage::find($id);\n $storage->update($input);\n return redirect()->route('storages.index');\n }", "title": "" }, { "docid": "506be2b48359677c26ead5a3ed3a5bdb", "score": "0.6022161", "text": "public function update(Request $request, $id)\n {\n \n // Resource fields validation\n $this->validate($request,[\n\n 'category' => 'required',\n 'title' => 'required',\n 'file_type' => 'required',\n ]);\n\n\n // File upload\n if($request->hasFile('resource')){\n $filenameWithExt = $request->file('resource')->getClientOriginalName();\n \n $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME); \n $extension = $request->file('resource')->getClientOriginalExtension();\n $fileNameToStore = $filename.'_'.time().'.'.$extension;\n\n $path = $request->file('resource')->move('uploads/images/resource', $fileNameToStore);\n\n\n // Delete Old File if New File Uploaded\n $files = DB::table('KOSM_RESOURCE')\n ->select('KOSM_RESOURCE.*')\n ->where('RESOURCE_ID', $id)\n ->get();\n\n foreach ($files as $file) {\n\n File::delete('uploads/images/resource/'.$file->RESOURCE_FILE_PATH);\n }\n\n\n\t\t\t// Update Database\n $update = DB::table('KOSM_RESOURCE')\n ->where('RESOURCE_ID', $id)\n ->update([\n 'RESOURCE_CATEGORY_ID' => $request->get('category'), \n 'PROGRAM_ID' => $request->get('program'),\n 'RESOURCE_NAME' => $request->get('title'), \n 'RESOURCE_DESC' => $request->get('content'), \n 'RESOURCE_FILE_TYPE' => $request->get('file_type'), \n 'ACTIVE_STATUS' => '1', \n 'RESOURCE_FILE_PATH' => $fileNameToStore,\n 'UPDATED_BY' => Auth::user()->USER_ID, // should be auth user\n 'UPDATE_TIMESTAMP' => Carbon::now()\n ]);\n }\n else{\n \n\t\t\t// Update Database\n $update = DB::table('KOSM_RESOURCE')\n ->where('RESOURCE_ID', $id)\n ->update([\n 'RESOURCE_CATEGORY_ID' => $request->get('category'), \n 'PROGRAM_ID' => $request->get('program'),\n 'RESOURCE_NAME' => $request->get('title'), \n 'RESOURCE_DESC' => $request->get('content'), \n 'RESOURCE_FILE_TYPE' => $request->get('file_type'), \n 'ACTIVE_STATUS' => '1', \n 'UPDATED_BY' => Auth::user()->USER_ID, // should be auth user\n 'UPDATE_TIMESTAMP' => Carbon::now()\n ]);\n }\n\n\n $resource_details = DB::table('KOSM_RESOURCE')\n ->join('KOSM_RESOURCE_CATEGORY', 'KOSM_RESOURCE.RESOURCE_CATEGORY_ID', 'KOSM_RESOURCE_CATEGORY.RESOURCE_CATEGORY_ID')\n ->join('KOSM_PROGRAM', 'KOSM_RESOURCE.PROGRAM_ID', 'KOSM_PROGRAM.PROGRAM_ID')\n ->select('KOSM_RESOURCE.*','KOSM_RESOURCE_CATEGORY.RESOURCE_CATEGORY_ID', 'KOSM_RESOURCE_CATEGORY.CATEGORY_NAME', 'KOSM_PROGRAM.PROGRAM_ID', 'KOSM_PROGRAM.PROGRAM_NAME')\n ->where('KOSM_RESOURCE.RESOURCE_ID',$id)\n -> get();\n\n\n return view('dashbord_resource_view')->with('status','Resource Updated Successfully')->with('resource_details',$resource_details);\n \n }", "title": "" }, { "docid": "46879e0b88cc7ad82dae92a140a81e62", "score": "0.59811795", "text": "public function update(Request $request, $id)\n {\n //\n $resource = \\App\\Resource::find($id);\n $resource->name = $request->name;\n $resource->description = $request->description;\n $resource->cost = $request->cost;\n\n $resource->save();\n }", "title": "" }, { "docid": "67ec547e30d9bf4d3f1912067759b832", "score": "0.5914371", "text": "public function update(Request $request, $id)\n {\n\n $resource = Resource::find($id);\n $resource->resourceName = $request->input('rname');\n $resource->type = $request->input('type');\n $resource->meterial = $request->input('meterial');\n $resource->max = $request->input('max');\n $resource->rate = $request->input('rate');\n $resource->ovt = $request->input('ovt');\n $resource->cost = $request->input('cost');\n $resource->save();\n return redirect('/dash/resource');\n }", "title": "" }, { "docid": "6ef8c4963f1441fe2abdd1d40d6894f0", "score": "0.5910843", "text": "public function update(Request $request, Qualification $resource)\n {\n $validator = validator($request->all(), [\n \"name\" => \"required|unique:qualifications,name,\".$request->id,\n ]); \n if ($validator->fails()) {\n return responseJson(0, $validator->errors()->first(), \"\");\n }\n try {\n $resource->update($request->all()); \n watch(\"edit qualification \" . $resource->name, \"fa fa-graduation-cap\");\n return responseJson(1, __('done'), $resource);\n } catch (\\Exception $th) {\n return responseJson(0, $th->getMessage()); \n }\n }", "title": "" }, { "docid": "7aeaf7a9215ac5029402d42bb31bd050", "score": "0.59062845", "text": "public function save($resource)\n {\n $attributes = $resource->getDirty();\n\n if (!empty($attributes)) {\n $resource->save();\n }\n else {\n $resource->touch();\n }\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ff07e39754f41c744fcccca8e8b46d5e", "score": "0.5855162", "text": "public function update(HCResourceRequest $request, string $id): JsonResponse\n {\n /** @var HCResource $record */\n $record = $this->service->getRepository()->findOneBy(['id' => $id]);\n $record->update($request->getRecordData());\n $record->updateTranslations($request->getTranslations());\n $record->tags()->sync($request->getTags($this->resourceTagService->getRepository()));\n\n if ($record) {\n $record = $this->service->getRepository()->find($id);\n\n event(new HCResourceUpdated($record));\n }\n\n return $this->response->success('Updated', $record);\n }", "title": "" }, { "docid": "669b7ddba169492210e08b01f00468cc", "score": "0.584833", "text": "public function put($data) {}", "title": "" }, { "docid": "6ea074f31f9f60102c9794f820ef4022", "score": "0.5835871", "text": "public function updateStream($path, $resource, \\League\\Flysystem\\Config $config) {\n\t\t\treturn $this->write($path, $resource, $config);\n\t\t}", "title": "" }, { "docid": "9b56bc7994357f250ca341a17f3d507e", "score": "0.5832236", "text": "public function updateStream($path, $resource, Config $config)\n {\n // TODO: Implement updateStream() method.\n }", "title": "" }, { "docid": "05110fc36adbe68898d1b2c053518df3", "score": "0.58286124", "text": "public function update(Request $request, $id)\n {\n\n $product = Product::find($id);\n if($product->name == $request->name){\n $this->validate($request, [\n 'name' => 'required|max:255',\n 'description' => 'required|max:500',\n 'item' => 'required|integer',\n 'price' => 'required|numeric',\n 'discount' => 'sometimes|integer',\n 'image' => 'required|image'\n ]);\n } else {\n $this->validate($request, [\n 'name' => 'required|max:255|unique:products,name',\n 'description' => 'required|max:500',\n 'item' => 'required|integer',\n 'price' => 'required|numeric',\n 'discount' => 'sometimes|integer',\n 'image' => 'required|image'\n ]);\n }\n \n \n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->discount = $request->discount;\n $product->item_id = $request->item;\n\n $oldImage = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image');\n $filename = strtolower($request->name) . '.' . $image->getClientOriginalExtension();\n\n $location = storage_path($filename);\n Storage::disk('local')->put('public/products/'.$filename, File::get($image));\n\n Storage::delete('public/product/'.$oldImage);\n\n $product->image = $filename;\n }\n\n $product->save();\n\n session()->flash('success', 'Stock Product has been created successfully!');\n return redirect()->back();\n }", "title": "" }, { "docid": "c016f684e585c1569cabe89ee9d8d292", "score": "0.5825888", "text": "public function update(ResourceInterface $resource)\n\t{\n $response = Redirect::back();\n $errors = new MessageBag();\n\n if(Auth::user()->can('edit',$resource)) {\n $resource->setName(Input::get('container'));\n if( $this->repository->save($resource) ) {\n $response->with('success', trans('roles::privlege.edit success'));\n } else {\n $errors->add('message', trans('roles::resource.edit failed'));\n }\n } else {\n $errors->add('error', trans('roles::resource.edit permission denied'));\n }\n\n $response->withErrors($errors);\n\n return $response;\n\t}", "title": "" }, { "docid": "12ace39fce04e22e2d2a8de85ad40de4", "score": "0.5808502", "text": "public function update(Request $request, $id)\n {\n $update = Projects::find($id); \n Storage::disk('public')->delete('img/'.$update->src);\n $update->src = $request->file('src')->hashName();\n $update->nom = $request->nom; \n $update->description = $request->description; \n $update->tags = $request->tags; \n\n $update->save(); \n $request->file('src')->storePublicly('img', 'public');\n\n return redirect()->back(); \n\n }", "title": "" }, { "docid": "d37e88ab74b407c61e3c69f469185f13", "score": "0.5797267", "text": "public function put() {\n $data = json_decode(file_get_contents(\"php://input\"), true);\n if (isset($data[\"id\"])) {\n $id = $data[\"id\"];\n $object = $this->service->get($id);\n if (is_null($object)) {\n GenericEndpoint::sendResponse(Constants::STATUS_CODE_200_OK, true, \"Object not found. No updates were made.\");\n } else {\n $object->fromMap($data);\n $this->service->update($object);\n GenericEndpoint::sendResponse(Constants::STATUS_CODE_200_OK, true, \"Updated.\", array(\"object\" => $object->toMap()));\n }\n } else {\n GenericEndpoint::sendResponse(Constants::STATUS_CODE_400_BAD_REQUEST, false, \"Missing the parameter ID.\");\n }\n }", "title": "" }, { "docid": "9ca2aec8f4f0753f5e35663545aacb10", "score": "0.5792487", "text": "public function update(PermissionStoreRequest $request, $id)\n {\n$Permission=Permission::get()->where('id',$id)->first();\n if($Permission->update($request->toArray())) {\n return new PermissionResource($Permission);\n }\n }", "title": "" }, { "docid": "076bffe17c1e45c18906caec71663984", "score": "0.57723355", "text": "public function put($resource, $id, $request, $response)\n {\n\t\t$DOName = $this->getDOName($resource);\n\t\tif (empty($DOName)) {\n\t\t\t$response->status(404);\n\t\t\t$response->body(\"Resource '$resource' is not found.\");\n\t\t\treturn;\n\t\t}\n\t\t$dataObj = BizSystem::getObject($DOName);\n\t\t$rec = $dataObj->fetchById($id);\n\t\tif (empty($rec)) {\n\t\t\t$response->status(400);\n\t\t\t$response->body(\"No data is found for $resource $id\");\n\t\t\treturn;\n\t\t}\n\t\t$dataRec = new DataRecord($rec, $dataObj);\n\t\t$inputRecord = json_decode($request->getBody());\n foreach ($inputRecord as $k => $v) {\n $dataRec[$k] = $v; // or $dataRec->$k = $v;\n\t\t}\n try {\n $dataRec->save();\n }\n catch (ValidationException $e) {\n $response->status(400);\n\t\t\t$errmsg = implode(\"\\n\",$e->m_Errors);\n\t\t\t$response->body($errmsg);\n\t\t\treturn;\n }\n catch (BDOException $e) {\n $response->status(400);\n\t\t\t$response->body($e->getMessage());\n\t\t\treturn;\n }\n\t\t\n\t\t$format = strtolower($request->params('format'));\n\t\t\n\t\t$response->status(200);\n\t\t$message = \"Successfully updated record of $resource $id\";\n\t\tif ($format == 'json') {\n\t\t\t$response['Content-Type'] = 'application/json';\n\t\t\t$response->body($message);\n\t\t}\n\t\telse {\n\t\t\t$response['Content-Type'] = \"text/xml; charset=utf-8\"; \n\t\t\t$response->body($message);\n\t\t}\n\t\treturn;\n }", "title": "" }, { "docid": "e0c2f12a0ad5a322c0fd075b209d0145", "score": "0.5771518", "text": "public function update(Request $request, $idx_storage)\n {\n $this->Storage->updatedata($request,$idx_storage);\n return redirect()->back();\n }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "fe0e2729472f0471308979dce034251f", "score": "0.5744738", "text": "public function updateStorage($id) {\n\n\t\t$lagerobil = Storage::find($id);\n\t\treturn view('system/updatestorage', compact('lagerobil'));\n\t}", "title": "" }, { "docid": "5249ab9450bba5363a3ff6da7b2a7d65", "score": "0.5741487", "text": "public function update()\n {\n try {\n return $this->objectStorage->update($this);\n } catch (Exception $e) {\n $this->objectStorage->reloadAuthenticationData();\n return $this->objectStorage->update($this);\n }\n }", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "68611877d8742448025a8506ebac8d13", "score": "0.5723295", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.5691853", "text": "public function update($object);", "title": "" }, { "docid": "0172d6613b8a8695d2b12022c56dc08d", "score": "0.56897086", "text": "public function update($id, Request $request) {\n $this->validate($request, isset($this->model->rules_update) ? $this->model->rules_update : $this->model->rules);\n\n ${$this->resource} = $this->model->findOrFail($id);\n\n $fillable_data = array_only($request->all(), $this->model->getFillable());\n\n if ($request->password) {\n $fillable_data['password'] = bcrypt($request->password);\n }\n\n App::setLocale(Helpers::getLang());\n\n ${$this->resource}->update($fillable_data);\n\n Admin::handleFileUpload('image', ${$this->resource}, 'image');\n\n return Redirect::route($this->view_path . '.index')->with('success', 'yeah');\n }", "title": "" }, { "docid": "a369bb70101af706cb2fcae703b7f3fe", "score": "0.5685801", "text": "public function update(Request $request, Resources $resources)\n {\n //\n }", "title": "" }, { "docid": "34d891616662eb4b771248f3c460bacd", "score": "0.5678392", "text": "public function update($id, Request $request)\n {\n $data = $this->getData($request);\n try {\n ServiceProvider::validateServiceProvider($request);\n\n $resource = Resource::findOrFail($id);\n $resource->update($data);\n if (isset($data['services'])) {\n $resource->services()->sync($data['services']);\n } else {\n $resource->services()->sync([]);\n }\n $log = new Log();\n $log->record('UPDATE', 'resource', $resource->id, $resource);\n return redirect()->route('office.index')\n ->with('success_message', 'Resource was successfully updated!');\n\n } catch (Exception $exception) {\n\n return back()->withInput()\n ->withErrors(['unexpected_error' => $exception->getMessage()]);\n }\n }", "title": "" }, { "docid": "8869fb6ad9a237978ea1c1f2f09bc13f", "score": "0.56763333", "text": "public function update(Request $request, Hizmet $hizmet,$id)\n {\n $data = Hizmet::find($id);\n $data->title = $request->input('title');\n $data->keywords = $request->input('keywords');\n $data->description = $request->input('description');\n $data->slug = $request->input('slug');\n $data->status = $request->input('status');\n $data->category_id= $request->input('category_id');\n $data->price= $request->input('price');\n $data->detail= $request->input('detail');\n if($request->file('image')!=null)\n {\n $data->image = Storage::putFile('images', $request->file('image'));//File Update\n }\n $data->save();\n return redirect()->route('admin_hizmetler');\n }", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5675671", "text": "public function update($data);", "title": "" }, { "docid": "8ade7edbd848cff62fa6b5544e87b51a", "score": "0.56590796", "text": "public function update()\n {\n return $this->client->requestWithResource($this, 'PUT', '', [\n 'headers' => ['X-Contentful-Version' => $this->getSystemProperties()->getVersion()],\n 'body' => $this->asRequestBody(),\n ]);\n }", "title": "" }, { "docid": "720b5dfc78089b3c20a286f9b096340e", "score": "0.56579953", "text": "public function update(Request $request, $id)\n {\n \n $requestData = $request->all();\n if ($request->hasFile('photo')) {\n $requestData['photo'] = $request->file('photo')\n ->store('storage/uploads', 'public'); \n }\n\n $product = Product::findOrFail($id);\n $product->update($requestData);\n $category = Category::all(['id', 'category']);\n\n if (\\Auth::user()->role == 'admin') {\n return redirect('admin/stock')->with('flash_message', 'Product updated!');\n // or return route('routename');\n }\n \n return redirect('product')->with('flash_message', 'Product updated!');\n }", "title": "" }, { "docid": "9e83f94d48c6e1e5960a24d14717222b", "score": "0.5654505", "text": "public function updateStream($path, $resource, Config $config)\n {\n $resource = $this->getSeekableStream($resource);\n $this->scanStream($resource, $path);\n return $this->backingAdapter->updateStream($path, $resource, $config);\n }", "title": "" }, { "docid": "7fb409b5b5066a88aa6f18544c1b53c1", "score": "0.5631762", "text": "public function update(Request $request, $id)\n {\n\n $this->validate($request, [\n 'name' => ['required', 'max:255'],\n 'description' => 'required',\n 'price' => ['required', 'numeric'],\n 'graduation' => ['required', 'numeric'],\n 'origin' => 'required',\n 'year' => ['required', 'integer'],\n 'volume' => ['required', 'numeric'],\n 'brand_id' => 'required',\n 'category_id' => 'required',\n 'stock' => ['required', 'integer'],\n 'image' => ['image', 'nullable']\n ], [\n 'required' => 'El campo :attribute es obligatorio',\n 'image' => 'Solo se admiten imagenes en formatos apropiados',\n 'numeric' => 'El campo :attribute debe ser numerico',\n 'integer' => 'el campo :attribute debe ser un entero',\n 'max' => 'El campo :attribute supera el maximo',\n ]);\n\n\n if ($request['image']) {\n\n $route = $request['image']->store('/public/images/Products');\n\n Product::find($id)->update([\n 'name' => $request->name,\n 'description' => $request->description,\n 'price' => $request->price,\n 'graduation' => $request->graduation,\n 'origin' => $request->origin,\n 'year' => $request->year,\n 'volume' => $request->volume,\n 'brand_id' => $request->brand_id,\n 'category_id' => $request->category_id,\n 'stock' => $request->stock,\n 'user_id' => $request->user_id,\n 'image' => basename($route)\n ]);\n } else {\n Product::find($id)->update([\n 'name' => $request->name,\n 'description' => $request->description,\n 'price' => $request->price,\n 'graduation' => $request->graduation,\n 'origin' => $request->origin,\n 'year' => $request->year,\n 'volume' => $request->volume,\n 'brand_id' => $request->brand_id,\n 'category_id' => $request->category_id,\n 'stock' => $request->stock,\n 'user_id' => $request->user_id\n ]);\n }\n\n $notify = notify()->success('Producto actualizado exitosamente', 'Felicitaciones', [\"closeButton\" => true, \"positionClass\" => \"toast-bottom-right\"]);\n\n return redirect()->route('users.edit', Auth::user()->id)->with($notify);\n }", "title": "" }, { "docid": "bc13604997c59c76687cad4994f40095", "score": "0.56207305", "text": "public static function updateResource($resource, $fields, $input)\n\t{\n\t\t$input = InputUtils::nullifyDefaults($input);\n\n\t\tforeach ($fields as $field) {\n\t\t\t$resource->$field = $input[$field];\n\t\t}\n\n\t\treturn $resource->save();\n\t}", "title": "" }, { "docid": "27406687d0f55c593182aecf764d1664", "score": "0.56202066", "text": "public function update(Request $request, $id)\n {\n $product = Product::findOrFail($id);\n $product->name = $request->inputName;\n $product->description = $request->inputDescription;\n $product->price = $request->inputPrice;\n if ($request->hasFile('image')) {\n $currentImage = $product->image;\n if ($currentImage) {\n Storage::delete('/public/' . $currentImage);\n }\n $image = $request->file('image');\n $path = $image->store('images', 'public');\n $product->image = $path;\n }\n $product->save();\n\n Session::flash('success', 'Update product success');\n return redirect()->route('products.list');\n }", "title": "" }, { "docid": "80daf43ddddea2e7e93ce8de6b0941cf", "score": "0.56177044", "text": "public function update()\n {\n $validator = Validator::make(Input::all(), Product::$rules);\n\n if ($validator->passes()) {\n $product = Product::find(Input::get('id'));\n\n $product->title = Input::get('title');\n $product->category_id = Input::get('category_id');\n $product->description = Input::get('description');\n $product->price = Input::get('price');\n $product->discount = Input::get('discount');\n $product->stock = Input::get('stock');\n $product->availability = Input::get('availability');\n \n $image = Input::file('image');\n if ($image) {\n $filename = date('Y-m-d-H-i-s') . \"-\" . $image->getClientOriginalName();\n $path = public_path('assets/images/products/' . $filename);\n\n // echo dd(is_writable(public_path('assets/images/products')));\n\n Image::make($image->getRealPath())->resize(200, 200)->save($path);\n \n $product->image = 'public/assets/images/products/' . $filename;\n }\n\n $product->save();\n\n return Redirect::back()\n -> withInput()\n -> with('message', 'Product ' . $product->title . ' updated.');\n }\n\n return Redirect::back()\n -> withInput()\n -> withErrors($validator);\n }", "title": "" }, { "docid": "53557c5325a62b4c66425d9c444650d1", "score": "0.56142104", "text": "public function update(Request $request, $id)\n {\n $resource = Resource::find($id);\n if (is_null($resource) || ($request->user()->id != $resource->author_id)) {\n return redirect()->route('resources.create');\n }\n $this->validate($request, Resource::getValidationRules());\n Resource::find($id)->update($request->all());\n return redirect()->route(\n 'resources.show',\n ['id' => $resource->id]\n );\n }", "title": "" }, { "docid": "b58be573e834c0f5153d7aecec3b4b8a", "score": "0.5601091", "text": "public function frontUpdate($id, Request $request)\n {\n $this->validate($request, Resource::rules());\n\n $unit = Unit::first();\n $resource = Resource::findOrFail($id);\n $resource->update($request->only('category_id', 'title'));\n\n // Address.\n $resource->address()->update($request->only(\n 'lat',\n 'lng',\n 'address',\n 'country_id',\n 'city_id'\n ));\n\n // Update base price.\n $resource->basePrice()->update($request->only('price', 'description'));\n\n // Create extra prices.\n if ($request->has('prices')) {\n $resource->extras()->delete();\n $this->addExtras($resource, $unit->id, $request->prices, $request->descriptions);\n }\n\n // Update features.\n if ($request->has('features')) {\n $resource->acquiredFeatures()->delete();\n $this->addFeatures($resource, $request->get('features'));\n }\n\n // Update cover photo.\n if ($request->hasFile('cover')) {\n if ($resource->photos()->whereCover(1)->first()) {\n $resource->photos()->whereCover(1)->first()->update(['cover' => 0]);\n }\n $this->addCover($resource, $request->file('cover'));\n }\n\n // Upload photos.\n if ($request->has('photos')) {\n $this->addPhotos($resource, $request->photos);\n }\n\n // Update availabilities.\n // Unavailable dates.\n if ($request->has('unavailableDates')) {\n $resource->availabilities()->whereType('unavailable')->delete();\n $this->setUnavailableDates($resource, $request->unavailableDates);\n }\n // Seasonal dates.\n if (count($request->get('from'))) {\n foreach ($resource->availabilities()->whereType('seasonal')->get() as $key => $avail) {\n $avail->seasonalPrice()->delete();\n $avail->delete();\n }\n $this->setAvailabilities(\n $resource,\n $request->get('from'),\n $request->get('to'),\n $request->get('seasonalPrice'),\n $unit->id\n );\n }\n\n return redirect('/resources')->with([\n 'success' => true,\n 'message' => 'Resource updated successfully'\n ]);\n }", "title": "" }, { "docid": "c9439863442183b5f606f02e1a5c0717", "score": "0.557996", "text": "public function update($id, UpdateResourcesRequest $request)\n\t{\n\t\t$resources = $this->resourcesRepository->find($id);\n\n\t\tif(empty($resources))\n\t\t{\n\t\t\tFlash::error('Resources not found');\n\n\t\t\treturn redirect(route('resources.index'));\n\t\t}\n\n\t\t$input = $request->all();\n\n\t\tif($request->file('author_img_path')){\n\t\t\t$image = $this->uploadImage($request->file('author_img_path'),'/authors_photo/');\n\t\t\t$input['author_img_path'] = $image['resize_url'][0];\n\t\t}\n\t\t\n\t\tif($request->file('resource_icon_img')){\n\t\t\t$image = $this->uploadImage($request->file('resource_icon_img'),'/resources_photo/');\n\t\t\t$input['resource_icon_img'] = $image['resize_url'][0];\n\t\t}\n\n\t\t$this->resourcesRepository->updateRich($input, $id);\n\n\t\tFlash::success('Resources updated successfully.');\n\n\t\treturn redirect(route('resources.index'));\n\t}", "title": "" }, { "docid": "fc66fdd0dd96d318df58b9133de6559f", "score": "0.5573607", "text": "public function put(){}", "title": "" }, { "docid": "41d37236a63f352c2aba4e6b5a99b2ae", "score": "0.5568617", "text": "public function update(Request $request, $id)\n {\n if (auth()->user()->role->name == 'super admin') {\n $store = Store::find($id);\n\n if ($request->file('image')) {\n $filename = $this->globalclass->storeS3($request->file('image'), 'construction/store');\n $area = AreaThree::where('id', $request->area_three_id)->first();\n $store->update($request->except('image', 'area_two_id', 'area_one_id') + ['image' => $filename, 'area_one_id' => $area->area_one_id, 'area_two_id' => $area->area_two_id]);\n } else {\n\n $area = AreaThree::where('id', $request->area_three_id)->first();\n $store->update($request->except('area_two_id', 'area_one_id') + ['area_one_id' => $area->area_one_id, 'area_two_id' => $area->area_two_id]);\n }\n }\n return redirect()->route('stores.index');\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "fdbebe9cda7c0f7fac217e48d4a77fa4", "score": "0.5544561", "text": "public function update()\n {\n if(!isset($this->id))\n {\n throw new Exception(\"An object must exist in order to update it\");\n }\n $resp = self::call(static::$classUrl.'/'.$this->id, 'PUT', array(static::$classHandle => $this));\n $this->refresh($resp->{static::$classHandle});\n return $resp;\n }", "title": "" }, { "docid": "999651eff692b675afb82a78e9e83de9", "score": "0.5539323", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'description' => 'required'\n ]);\n $product = Product::find($id);\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n if ($request->input('rate') == '') {\n $product->rate = 0;\n } else {\n $product->rate = $request->input('rate');\n }\n $product->user_id = auth()->user()->id;\n\n if($request->hasFile('image')){\n $filenameWithExt = $request->file('image')->getClientOriginalName();\n $filename = pathinfo($filenameWithExt, PATHINFO_FILENAME);\n $extension = $request->file('image')->getClientOriginalExtension();\n $fileNameToStore = $filename.'_'.time().\".\".$extension;\n $path = $request->file('image')->storeAs('public/images', $fileNameToStore);\n $product->image = $fileNameToStore;\n }\n $product->save();\n return redirect('/products/'.$product->id)->with('success','Updated Successfully!!');\n }", "title": "" }, { "docid": "69cf4ebf2f81efee82842cf7faf08ad9", "score": "0.5532858", "text": "public function update(Request $request, $id)\n {\n $data = $request->all();\n $resource = Resource::with('category')->find($id);\n $resource->update($data);\n $resource->save();\n $resource->refresh();\n return response()->json(['message'=> 'Resource Updated Successfully','resource'=>$resource], 200);\n }", "title": "" }, { "docid": "e8f550f5481203c0e031c61be8e0224d", "score": "0.5528736", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n if(!$product) throw new ModelNotFoundException;\n $product->fill($request->all());\n if($request->hasFile('img_default')) {\n // if(file_exists($product->img_default)) {\n // Storage::delete($product->img_default);\n // }\n $path = Storage::putFile('public/products', $request->file('img_default'));\n $product->img_default = str_replace('public/', '', $path);\n // $request->file('img_default')->move(public_path('/storage/products'), $product->code.'.jpg');\n // $product->img_default = 'products/'.$product->code.'.jpg';\n }\n $product->save();\n\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "54e222c65bb8a8636c7b63d18062c9fd", "score": "0.55274415", "text": "public function update(Request $request, $id)\n {\n $request->validate([\n 'title' => 'required',\n 'description' => 'required',\n ]);\n\n Product::findOrFail($id)->update([\n 'title' => $request->title,\n 'description' => $request->description,\n ]);\n // Get photo name from databse\n $getcurrentphoto = Product::find($request->id)->photo;\n // If Current photo Will not do anything \n if($request->photo != $getcurrentphoto) {\n if($getcurrentphoto != 'default.png') {\n $delete_old_photo = base_path('public/uploads/product/' . $getcurrentphoto);\n unlink($delete_old_photo);\n }\n\n $getphoto = $request->photo;\n $image_parts = explode(\";base64,\", $getphoto);\n $image_type_aux = explode(\"image/\", $image_parts[0]);\n $image_type = $image_type_aux[1];\n $filename = $id . '.' . $image_type;\n Image::make($getphoto)->save(base_path('public/uploads/product/' . $filename), 90);\n // Save image file id name \n Product::findOrFail($id)->update([\n 'photo' => $filename,\n ]);\n }\n \n }", "title": "" }, { "docid": "4682e6d7cbf9d9105c4c3d7041ce4717", "score": "0.5523312", "text": "public function update(Request $request, $id)\n {\n $user=User::find($id);\n if(! is_null($request->file('img_url'))){\n $img = $request->file('img_url');\n $file_route = time().'_'.$img->getClientOriginalName();\n Storage::disk('user')->put($file_route, file_get_contents( $img->getRealPath() ));\n Storage::disk('user')->delete($user->img_url);\n }\n\n else $file_route=$user->img_url;\n\n $user->name= $request->name;\n $user->email= $request->email;\n $user->img_url= $file_route;\n\n $user->update(); \n \n return redirect()->action('UsersController@index'); \n }", "title": "" }, { "docid": "23a57cf71fed7e7ad93e49d195fda86f", "score": "0.5513298", "text": "public function update(Product $product);", "title": "" }, { "docid": "6cab98cc9d679195c1bfc5f8b6821e3f", "score": "0.55127966", "text": "public function update(ProductPut $request, $_product_id) {\n $product_id = hash_decode($_product_id);\n if(!$product_id) {\n return back()->with('alert-danger', trans('product::product.invalid'));\n }\n $cover = $request->file('cover');\n\n $product = Product::find($product_id, [ 'id']);\n if(!$product) {\n return back()->with('alert-danger', trans('product.not.found'));\n }\n if($cover) {\n $_company_id = hash_encode(Auth::user()->company_id);\n $disk = Storage::disk('qiniu');\n $dir = \"{$_company_id}/product/cover\";\n $cover_url = $disk->put($dir, $cover);\n $product->cover = $cover_url;\n }\n $product->unit = $request->input('unit');\n $product->introduce = $request->input('intro', 0);\n $product->name = $request->input('name');\n $product->price = $request->input('price', 0);\n $product->old_price = $request->input('old_price', 0);\n if($product->save()) {\n \n return redirect()->route('product.product.list')->with('alert-success', trans('main.success'));\n } else {\n return back()->with('alert-danger', trans('main.operate.invalid'));\n }\n }", "title": "" }, { "docid": "af083c1effa4c92e4149fb07c4144240", "score": "0.5510102", "text": "public function update(Request $request, $id)\n {\n\n $art = Art::find($id);\n $imagePathRaw = explode('/', $art->image_url);\n $imagePath = $imagePathRaw[array_key_last($imagePathRaw)];\n\n $image = $request->file('file');\n\n if($image != '')\n {\n $request->validate([\n 'file' => 'image|max:2048',\n 'title' => 'required',\n 'description' => 'required',\n ]);\n\n # Удаляем старую картинку\n Storage::disk('public')\n ->delete($art->image_url);\n\n $imagePath = $image->storeAs('my-arts', $imagePath, 'public');\n\n }\n else\n {\n $request->validate([\n 'title' => 'required',\n 'description' => 'required'\n ]);\n }\n $formData = array(\n 'title' => $request->title,\n 'description' => $request->description,\n 'image_url' => $imagePath\n );\n\n #Обновляем запись в бд\n $art->update($formData);\n\n return redirect()\n ->route('admin.arts.index');\n\n }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "2dcf368af0a0b1784b9e9fd0b9db9945", "score": "0.5506973", "text": "public function update(Request $request,$id)\n {\n $article = Article::find($id);\n\n $img_name = time(). '.' .$request->image->getClientOriginalExtension();\n $article->news = request('news');\n $article->article = request('article');\n $article->image = $img_name;\n\n $article->save();\n\n\n $request->image->move(public_path('storage'),$img_name);\n\n $article->save();\n\n return redirect(route('display'));\n }", "title": "" }, { "docid": "db18dd1a384918f806a17f09b15cc270", "score": "0.5506498", "text": "public function index()\n {\n Storage::put('file.jpg', $resource);\n }", "title": "" }, { "docid": "3e2e1c15c3f9cfc55df746418e67a944", "score": "0.55058277", "text": "public function update(ValidateRequest $request, $id)\n {\n $item = Model::updateOrCreate(['id'=>$id],$request->validated());\n return (new Resource($item))\n ->additional(['meta' => [\n 'message' => 'Slider updated',\n ]]);\n ;\n }", "title": "" }, { "docid": "880fbeef0429404b72575d4fa7e53068", "score": "0.5500054", "text": "public function update(Request $request, $id)\n {\n if (!$request->has('featured')) { // unfeature resource.\n $request['featured'] = false;\n }\n // Validations.\n // $this->validate($request, Resource::rules()); // tobe back when we add full functionality.\n $this->validate($request, [\n 'category_id' => 'required|integer',\n 'user_id' => 'required|integer',\n 'title' => 'required|string|max:255',\n 'featured' => 'boolean',\n 'address' => 'required|string|max:255',\n 'lat' => 'required|numeric',\n 'lng' => 'required|numeric'\n ]);\n\n $resource = Resource::findOrFail($id);\n $resource->update($request->input());\n\n $resource->address()->update([\n 'address' => $request->address,\n 'lat' => $request->lat,\n 'lng' => $request->lng\n ]);\n\n return redirect()->route('resources.show', $id);\n }", "title": "" }, { "docid": "17f170ad9ba2e20ec03a0c12131f0e27", "score": "0.5497549", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $product->fill([\n 'name' => $request->get('name'),\n 'description' => $request->get('description'),\n 'price' => $request->get('price'),\n ]);\n if ($request->hasFile('image')) {\n $image_url = $request->file('image')->store('public/products');\n $image_url = substr($image_url, 7);\n $product->fill([\n 'image_url' => $image_url\n ]);\n }\n $product->save();\n return redirect()->route('Product.index')->with('message', 'Le produit a bien été modifié !');\n }", "title": "" }, { "docid": "7e1321a25696b1492adea4e26596e49b", "score": "0.5496984", "text": "public function update(Request $request, $id)\n {\n $uploader = $this->uploader;\n $this->uploader->storeFile();\n $this->files->find($id)->update([\n 'name' => $uploader->getFileName(),\n 'slug' => $uploader->getFileSlug(),\n 'hash_name' => $uploader->getFileHashName(),\n ]);\n }", "title": "" }, { "docid": "b54d1bdbd730178aa8d22d20c9cb5aea", "score": "0.5496791", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate($request,[\n 'bookTitle'=>'required',\n 'bookAuthor'=>'required',\n 'bookPublisher'=>'required',\n 'bookReference'=>'required',\n 'bookDescription'=>'required',\n 'bookSupply'=>'required',\n 'bookImage'=>'image|nullable|max:1999'\n ]);\n\n if($request->hasfile('bookImage')){\n\n $filenamewithtext=$request->file('bookImage')->getClientOriginalName();\n\n $filename=pathinfo($filenamewithtext,PATHINFO_FILENAME);\n\n $extension=$request->file('bookImage')->getClientOriginalExtension();\n\n $filenametostore=$filename.'_'.time().'.'.$extension;\n\n $path=$request->file('bookImage')->storeAs('public/images',$filenametostore);\n \n }else{\n $filenametostore='noname.jpg';\n }\n\n $book=Books::find($id);\n $book->title=$request->input('bookTitle');\n $book->author=$request->input('bookAuthor');\n $book->publisher=$request->input('bookPublisher');\n $book->ref=$request->input('bookReference');\n $book->description=$request->input('bookDescription');\n $book->image=$filenametostore;\n $book->supply=$request->input('bookSupply');\n $book->save();\n\n return redirect('books')->with('success','Book '.$book->title.' has been updated');\n // return new BookResource($book);\n }", "title": "" }, { "docid": "d76f55fd8ef8c1661f437985beb01c28", "score": "0.5496445", "text": "public function update(Request $request, $id){\n //\n $product = Product::find($id);\n\n if ($request->file('avatar')){\n $image = $request->file('avatar'); \n $name_image = md5($image). '_' . time() . '.' . $image->getClientOriginalExtension(); \n $image_path = public_path() . '/img/products/';\n $image->move($image_path, $name_image); \n }else{\n $name_image = $product->avatar; \n }\n\n \n $product->title = ucwords(strtolower($request->title));\n $product->subtitle = $request->sub_title;\n $product->price = $request->price;\n $product->details = $request->details;;\n $product->more_info = $request->more_info;\n $product->avatar = $name_image;\n $product->available = $request->active;\n $product->stock_available = $request->stock_in;\n if ($product->save()) {\n return redirect()->back()->with('status', 'Se modifico el producto '.$product->title.' exitosamente.'); \n }\n }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "cd215568bf7e7830c41e6664fb29f289", "score": "0.54882056", "text": "public function updateStream($path, $resource, Config $config)\n {\n throw new \\Exception('Method updateStream() is not implemented.');\n }", "title": "" }, { "docid": "5d93df418f0bb8bad3a49356d3a4c2a8", "score": "0.54798543", "text": "public function put_update()\n {\n $id = Input::get('id');\n\n//\t\t$validation = Guitar::validate(Input::all());\n\n//\t\tif ($validation->passes()) {\n\t\t\tGuitar::update($id, array(\n\t\t\t\t'model'=> strtolower(Input::get('model')),\n 'model_friendly'=> Input::get('model_friendly'),\n\t\t\t\t'prod_id'=> Input::get('prod_id'),\n 'price'=> Input::get('price'),\n\t\t\t\t'short_desc'=> Input::get('short_desc')\n\t\t\t));\n\n return Redirect::to_route('guitars')->with('message', 'Guitar has been updated.');\n//\t\t} else {\n//\t\t\treturn Redirect::to_route('edit_guitar', $prod_id)->with_errors($validation);\n//\t\t}\n }", "title": "" }, { "docid": "2324689aacf5fb2ea9c1526725849cbf", "score": "0.5475387", "text": "public function update(Request $request)\n {\n $product = Product::find($request->input('id'));\n $product->name = $request->input('name');\n $product->tittle = $request->input('tittle');\n $product->gender = $request->input('gender');\n $product->description = $request->input('description');\n $product->country = $request->input('country');\n $product->city = $request->input('city');\n $product->address = $request->input('address');\n $product->file = $request->input('file');\n $product->save(); //persist the data\n return redirect()->route('index')->with('info','Data Updated Successfully');\n }", "title": "" }, { "docid": "ddcc4ec6eda8fbc6b6e395568c3e9134", "score": "0.5472301", "text": "function item_put()\n {\n $key = $this->get('id');\n $record = array_merge(array('id' => $key), $this->_put_args);\n \n $dbRecord = $this->supply->get($key);\n \n $dbArray = json_decode(json_encode($dbRecord), True);\n \n $record['quantity'] += $dbArray['quantity'];\n \n $this->supply->update($record);\n $this->response(array('ok'), 200);\n }", "title": "" }, { "docid": "a531ba8ea5cfe036e2721df8cfaf8bfd", "score": "0.54669493", "text": "public function update(Request $request, $id)\n {\n $book = Book::find($id);\n $book->authors()->sync($request->edit_authors);\n $book->tags()->sync($request->edit_tags);\n $book->suppliers()->sync($request->edit_suppliers);\n $book->categories()->sync($request->edit_categories);\n $book->publisher_id = $request->edit_publisher;\n\n $book->name = $request->edit_name;\n $book->price = $request->edit_book_price;\n $book->description = $request->edit_book_description;\n $book->published_date = $request->edit_book_published_date;\n\n $file = file_get_contents($request->edit_image);\n $path = '/images/books/' . $id . \"/thumb_nail.png\";\n Storage::disk('public')->put($path, $file);\n\n $book->save();\n return response()->json(null, 200);\n }", "title": "" }, { "docid": "12f4eacbd7ce34b7674e0b93198e74f7", "score": "0.54668397", "text": "public function update(Request $r, $id) {\n\t\t$data = $this->validate(request(),\n\t\t\t[\n\t\t\t\t'country_name_ar' => 'required',\n\t\t\t\t'country_name_en' => 'required',\n\t\t\t\t'mob' => 'required',\n\t\t\t\t'code' => 'required',\n\t\t\t\t'logo' => 'sometimes|nullable|'.v_image(),\n\t\t\t], [], [\n\t\t\t\t'country_name_ar' => trans('admin.country_name_ar'),\n\t\t\t\t'country_name_en' => trans('admin.country_name_en'),\n\t\t\t\t'mob' => trans('admin.mob'),\n\t\t\t\t'code' => trans('admin.code'),\n\t\t\t\t'logo' => trans('admin.logo'),\n\t\t\t]);\n\t\tif (request()->hasFile('logo')) {\n\t\t\t$data['logo'] = up()->upload([\n\t\t\t\t\t'file' => 'logo',\n\t\t\t\t\t'path' => 'countries', ///folder name\n\t\t\t\t\t'upload_type' => 'single',\n\t\t\t\t\t'delete_file' => Country::find($id)->logo,\n\t\t\t\t]);\n\t\t}\n\t\tProduct::where('id', $id)->update($data);\n\t\tsession()->flash('success', trans('admin.updated_record'));\n\t\treturn redirect(aurl('/products'));\n\t}", "title": "" }, { "docid": "7c87c859b94eb72a06d5b587cd80e422", "score": "0.54601914", "text": "public function update(Request $request, $id)\n {\n $aliado = ally::findOrFail($id);\n if($request->hasFile('imagen')){\n $imagen = $request->file('imagen')->store('public');\n $resultado = str_replace(\"public\", \"storage\", $imagen);\n }else{\n $resultado = $aliado->imagen;\n }\n $aliado->nombre = $request->nombre;\n $aliado->personal = $request->personal;\n $aliado->imagen = $resultado;\n $aliado->horario = $request->horario;\n $aliado->direccion = $request->direccion;\n $aliado->redes = $request->redes;\n $aliado->telefono = $request->telefono;\n $aliado->promociones = $request->promociones;\n\n $aliado->save();\n return redirect('/aliados');\n\n\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "a1d61f0aa122378fb9049378295f5945", "score": "0.54586715", "text": "public function update($entity)\n {\n }", "title": "" }, { "docid": "72d331190da1dd4fbf2c66ecff2d821d", "score": "0.5458588", "text": "public function update(Request $request, $id)\n {\n $data = array();\n $data['name'] = $request->name;\n $data['code'] = $request->code;\n $data['root'] = $request->root;\n $data['purchase_price'] = $request->purchase_price;\n $data['retail_price'] = $request->retail_price;\n $data['wholesale_price'] = $request->wholesale_price;\n $data['purchase_date'] = $request->purchase_date;\n $data['quantity'] = $request->quantity;\n $data['category_id'] = $request->category_id;\n $data['supplier_id'] = $request->supplier_id;\n\n $photo = $request->new_image;\n\n if ($photo) {\n $position = strpos($photo, ';');\n $sub = substr($photo, 0, $position);\n $exist = explode('/', $sub)[1];\n\n\n $name = time().\".\".$exist;\n $image = Image::make($photo)->resize(240, 200);\n $upload_path = 'backend/employees/gallery/';\n $image_url = $upload_path.$name;\n\n $success = $image->save($image_url);\n\n if ($success) {\n $data['image'] = $image_url;\n $img = Product::where('id', $id)->first();\n $image_path = $img->image;\n unlink($image_path);\n $product = Product::where('id', $id)->update($data);\n }\n\n return $product;\n } else {\n $oldImage = $request->image;\n $data['image'] = $oldImage;\n $product = Product::where('id', $id)->update($data);\n return $product;\n }\n\n }", "title": "" }, { "docid": "5ffe3b313405e461b578d1a3d51865a0", "score": "0.54574406", "text": "public function update(Request $request, $id)\n {\n $resource = AclResource::find($id);\n\n if (!$resource) {\n return Redirect::back()->withErrors('记录不存在, 请先创建');\n }\n\n $this->validate($request, $resource->rules()['update']);\n\n $resource->update($request->only($resource->getFillable()));\n\n return Redirect::route('acl.resource.index')->with('message', '修改成功');\n }", "title": "" }, { "docid": "8d37a00ab950d20e3c3391db0f734c2f", "score": "0.5452605", "text": "public function update(Request $request, Stock $stock, Product $product )\n {\n \n return $stock;\n // return $stock->products();\n // $product->update($request->all());\n // return response([\n // 'data' => new ProductResource($product)\n // ],Response::HTTP_CREATED);\n }", "title": "" }, { "docid": "7866059d59e3ac76fe1a71f510712109", "score": "0.54483366", "text": "public function putStream($path, $resource, array $config = []);", "title": "" }, { "docid": "5d0bfcefd89bc76f371d6f30aae2d854", "score": "0.54443103", "text": "public function updateStored(): void\n {\n\n\n }", "title": "" }, { "docid": "5bfdd4a210a28f5211b79be838b4fbbe", "score": "0.544344", "text": "public function update(Request $request, $id)\n {\n \n $Brands=Brand::find($id);\n \n if($request->hasFile('image')) {\n $file_name = time().'.'.$request->image->extension(); \n $path = $request->file('image')->storeAs('public/brands',$file_name);\n $Brands->image=$file_name;\n \n $Image = str_replace('/storage', '', $request->old_image);\n // dd($Image);\n #Using storage\n if(Storage::exists('public/brands/' . $Image)){\n\n $delete= Storage::delete('/public/brands/' . $Image);\n \n }\n } \n $Brands->brand_name=$request->brand_name;\n $Brands->description=$request->brand_desc;\n $Brands->meta_title=$request->meta_title;\n $Brands->meta_keywords=$request->meta_keyword;\n $Brands->meta_description=$request->meta_description;\n $Brands->slug=$request->brand_slug;\n $Brands->alt_image=$request->alt_image;\n $Brands->update();\n alert::success('Brand Updated Successfully');\n return redirect()->back();\n }", "title": "" }, { "docid": "8bf12aae58a29f6aec0d5f6c658ebb1c", "score": "0.544232", "text": "public function update(Request $request, Product $product)\n {\n $product->title = $request->title;\n $product->price = $request->price;\n $product->description = $request->description;\n $product->save();\n\n if($request->hasFile('photo')) {\n foreach ($product->photos as $photo){\n if(file_exists($photo->path)){\n @unlink($photo->path);\n }\n\n }\n\n\n $image = $request->file('photo');\n $image_filename = $product->id.$image->getClientOriginalName();\n $image->move(public_path('uploads'), $image_filename);\n if(count($product->photos) > 0){\n $product->photos()->update(['path' => 'uploads/' . $image_filename]);\n }else{\n $product->photos()->create(['path' => 'uploads/' . $image_filename]);\n }\n\n\n }\n\n return redirect()->back();\n }", "title": "" }, { "docid": "317a27c122ad5b9e1b0c641b6d509e34", "score": "0.5441468", "text": "public function update(Request $request, Articulo $articulo)\n {\n // return $request->all();\n if($request->file){\n $file= $request->file('file');\n $name = Date('dmymsv').\"_\".$articulo->id.\".jpg\";\n\n\n \\Storage::disk('local')->put($name, \\File::get($file));\n $articulo->path=$name;\n }\n \n \n $articulo->categoria_id=$request->categoria_id; \n $articulo->articulo=$request->articulo;\n $articulo->descripcion=$request->descripcion;\n $articulo->codigo=$request->codigo;\n $articulo->tipoProducto=$request->tipoProducto;\n $articulo->stock=$request->stock;\n $articulo->stock=$request->stock;\n $articulo->save();\n\n\n Session::flash('msj-info','Articulo o Servicio Modificafo satisfactoriamente!');\n return redirect('articulos');\n }", "title": "" }, { "docid": "7aa8cfd89b5dde197d80b375ae9ba8bd", "score": "0.54340184", "text": "public function put($resource, array $arguments = array()) {\n $client = new Client($this->_apiEndpoint);\n $request = $client->put($resource, null, $arguments);\n $request->addHeader('Accept', 'application/json');\n\n $this->_prepareQueryString($request);\n\n return new Response($request->send()->json());\n }", "title": "" }, { "docid": "4b07cea30fbd5aef9bac5ac9b2c7d632", "score": "0.5425006", "text": "private function putResources()\n {\n try {\n $version = $this->storage->get('version');\n }\n catch (\\Exception $e) {\n $this->putVersion();\n $resources = $this->resources();\n $this->storage->put('resources', $resources);\n }\n }", "title": "" }, { "docid": "aaa3ded6ab3e6e879c9ce8113f9ff734", "score": "0.5424148", "text": "public function updateResource( $id, $inputs )\n {\n $model = $this->model->find($id);\n return $model->update($inputs);\n\n }", "title": "" }, { "docid": "d0ee88236c578f6cf756c3d8131ebbcd", "score": "0.54209507", "text": "public function update(Request $request, $id)\n {\n $question = Questions::find($id);\n $question->question = $request->question;\n $question->categories_id = $request->category;\n if ($request->file('image') != null) {\n $path = $request->file('image')->store('images', 's3');\n Storage::disk('s3')->setVisibility($path, 'public');\n $question->image = Storage::disk('s3')->url($path);\n }\n $question->save();\n $question->AddOrUpdateTranslations($request->input('language'));\n return redirect()->back();\n }", "title": "" } ]
1238ecbb067d53a03b413d59fb2a032d
Adds the tiny_mce.js file and constructs the options
[ { "docid": "fc9b7e943912baffd4d954bb9793a194", "score": "0.66915417", "text": "function _build($fieldName, $tinyOptions = array()) {\n\t\t$lang = Configure::read('Config.language');\n\t\t//$tinyOptions['language'] = ife(strlen($lang) === 2, $lang, ClassRegistry::init('L10n', 'Core')->map($lang));\n\t\t$prefix = !empty($this->params['plugin']) ? $this->params['plugin'].'/' : '';\n\t\t$this->Html->script(\"/{$prefix}js/tiny_mce/tiny_mce.js\", array('inline' => false, 'once' => true));\n\t\t$tinyOptions['mode'] = 'textareas';\n\t\t$tinyOptions['elements'] = $this->_name($fieldName);\n\t\treturn $this->Html->scriptBlock('tinyMCE.init(' . $this->Js->object($tinyOptions) . ');');\n\t }", "title": "" } ]
[ { "docid": "e653d11eac0af613a3b022105a32f4f2", "score": "0.7368457", "text": "function tinyMCEAdvanced () {\n\t\tglobal $root;\n\t\t\n\t\treturn \"<script type=\\\"text/javascript\\\" src=\\\"\" . $root . \"system/tiny_mce/tiny_mce.js\\\"></script>\n<script type=\\\"text/javascript\\\" src=\\\"\" . $root . \"system/tiny_mce/plugins/AtD/editor_plugin.js\\\"></script>\n<script type=\\\"text/javascript\\\" src=\\\"\" . $root . \"system/javascripts/common/tiny_mce_advanced.htm\\\"></script>\";\n\t}", "title": "" }, { "docid": "3f7f36c8e5dad24712e30eda6a237e76", "score": "0.7283833", "text": "function __construct(){\n \tMT::addScripts('/jscripts/tiny_mce/tiny_mce.js','tinymce');\n \t\n \tMT::addScripts(self::RELATIVE_PATH.'/setting_tiny_mce.js','tinymce_article');\n \t\n \t\n }", "title": "" }, { "docid": "d3a0289fe9b9ce1b9c47780cba7596c8", "score": "0.709218", "text": "function my_add_tinymce_plugin( $plugin_array ) {\n\t$plugin_array['my_mce_button'] = get_template_directory_uri() . '/assets/js/mce-button/mce-button.js';\n\treturn $plugin_array;\n}", "title": "" }, { "docid": "134a680acd74c16ce4d4a1a9b1a7b91c", "score": "0.7014741", "text": "public static function add_scripts()\n {\n if (self::$_scripts_added)\n return;\n\n $layout = Layout::instance();\n\n // TinyMCE configuration script\n $layout->add_script(Modules::uri('tinymce') . '/public/js/tiny_mce_config.js');\n\n // Set up config options\n $layout->add_script(\"\n tinyMCE_config.document_base_url = '\" . URL::site() . \"';\n tinyMCE_config.editor_selector = /content/;\n tinyMCE_config.content_css = '\" . URL::base() . 'public/css/' . Kohana::config('tinymce.css') . \"';\n tinyMCE_config.body_id = 'Content';\n tinyMCE_config.body_class = 'content';\n \", TRUE);\n\n // Set up filemanager for tinyMCE\n if (Modules::registered('filemanager'))\n {\n $layout->add_script(Modules::uri('filemanager') . '/public/js/tiny_mce/filemanager_init.js');\n $layout->add_script(\"\n tinyMCE_config.filemanager_url = '\" . URL::to('backend/filemanager', array('fm_tinymce' => '1', 'fm_style' => 'thumbs')) . \"';\n \", TRUE);\n }\n\n // Load TinyMCE\n $layout->add_script(Modules::uri('tinymce') . '/public/js/tiny_mce/tiny_mce.js');\n $layout->add_script(\"\n tinyMCE.init(tinyMCE_config);\n \", TRUE);\n\n self::$_scripts_added = TRUE;\n }", "title": "" }, { "docid": "a11f7e6d7b4f3347129adcf38a9a3c82", "score": "0.6998417", "text": "function IncludeTinyMCE()\n {\n ?>\n <script type=\"text/javascript\" src=\"/sys/js/tinymce/jquery.tinymce.js\"></script>\n <script type=\"text/javascript\" src=\"/sys/js/tinymce/tiny_mce.js\"></script>\n <?\n }", "title": "" }, { "docid": "e8f81d4265a98b7aa46bdeeb24087b54", "score": "0.6992844", "text": "function custom_elements_tinymce_plugin( $plugin_array ) {\n\t$plugin_array['custom_elements_mce_button'] = get_template_directory_uri() .'/assets/js/form-insertion.js';\n\treturn $plugin_array;\n}", "title": "" }, { "docid": "c0e5f12ecead79bbfa4c8600e25433fa", "score": "0.6972243", "text": "function add_custom_tinymce_plugin( $plugin_array ) {\n\t$plugin_array['custom_mce_button'] = get_stylesheet_directory_uri() .'/js/mce-button.js';\n\treturn $plugin_array;\n}", "title": "" }, { "docid": "ec704d2229eabef8d709c3b835f89b6a", "score": "0.69680995", "text": "function themezero_tiny_mce_before_init( $settings ) {\n\n $style_formats = array(\n array(\n 'title' => 'Lead Paragraph',\n 'selector' => 'p',\n 'classes' => 'lead',\n 'wrapper' => true\n ),\n array(\n 'title' => 'Small',\n 'inline' => 'small'\n ),\n array(\n 'title' => 'Blockquote',\n 'block' => 'blockquote',\n 'classes' => 'blockquote',\n 'wrapper' => true\n ),\n\t\t\tarray(\n 'title' => 'Blockquote Footer',\n 'block' => 'footer',\n 'classes' => 'blockquote-footer',\n 'wrapper' => true\n ),\n\t\t\tarray(\n 'title' => 'Cite',\n 'inline' => 'cite'\n )\n );\n \n if ( isset( $settings['style_formats'] ) ) {\n $orig_style_formats = json_decode($settings['style_formats'],true);\n $style_formats = array_merge($orig_style_formats,$style_formats);\n }\n\n $settings['style_formats'] = json_encode( $style_formats );\n return $settings;\n}", "title": "" }, { "docid": "bb4774b814587c2272288c96f15bde64", "score": "0.696516", "text": "function add_tinymce_plugin( $plugin_array ) {\r\n\r\n\t\t$plugin_array['quick_checkout_shortcodes'] = WQC_PLUGIN_URL . '/assets/js/quick-checkout-admin-shortcode.js';\r\n\r\n\t\treturn $plugin_array;\r\n\r\n\t}", "title": "" }, { "docid": "eaf163781b2e032ddca3c63686369cf0", "score": "0.69052345", "text": "public function renderOptions()\n {\n $this->addJS([\n _PS_JS_DIR_.'tiny_mce/tiny_mce.js',\n _PS_JS_DIR_.'admin/tinymce.inc.js',\n ]);\n\n $iso = $this->context->language->iso_code;\n Media::addJsDef([\n 'iso' => file_exists(_PS_CORE_DIR_.'/js/tiny_mce/langs/'.$iso.'.js') ? $iso : 'en',\n 'path_css' => _THEME_CSS_DIR_,\n 'ad' => __PS_BASE_URI__.basename(_PS_ADMIN_DIR_),\n ]);\n\n // @TODO Custom selector for textareas with RTE option\n $hax = '';\n // $hax = '<script>$(function () { tinySetup({ editor_selector: \"textarea-autosize\" }); })</script>';\n\n return parent::renderOptions().$hax;\n }", "title": "" }, { "docid": "68b9c6f5576de7df7d4d46a3bd848596", "score": "0.6873601", "text": "public function add_tinymce_plugin() {\r\n\t\t\t// check user permissions\r\n\t\t\tif ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t// check if WYSIWYG is enabled\r\n\t\t\tif ( 'true' == get_user_option( 'rich_editing' ) ) {\r\n\t\t\t\tadd_filter( 'mce_external_plugins', array( $this, 'add_tinymce_js' ) );\r\n\t\t\t\tadd_filter( 'mce_css', array( $this, 'add_tinymce_css' ) );\r\n\t\t\t\tadd_action( 'admin_footer', array( $this, 'render_tinymce_nonce') );\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "59152d635a1b77e564185749b802bd9d", "score": "0.6847208", "text": "function fb_change_mce_options($initArray) {\n // Comma separated string od extendes tags\n // Command separated string of extended elements\n\t$ext = 'pre[id|name|class|style],iframe[align|longdesc|name|width|height|frameborder|scrolling|marginheight|marginwidth|src]';\n\tif ( isset( $initArray['extended_valid_elements'] ) ) {\n\t\t$initArray['extended_valid_elements'] .= ',' . $ext;\n\t} else {\n\t\t$initArray['extended_valid_elements'] = $ext;\n\t}\n\n // maybe; set tiny paramter verify_html\n //$initArray['verify_html'] = false;\n\treturn $initArray;\n}", "title": "" }, { "docid": "9c58e207f45ad77181a4fc515afca87a", "score": "0.68189144", "text": "function _tinymce_html($extra = array(), $replace = array(), $__this) {\n\t\tif (!is_array($extra)) {\n\t\t\treturn '';\n\t\t}\n\t\t$params = $extra['tinymce'];\n\t\tif (!is_array($params)) {\n\t\t\t$params = array();\n\t\t}\n\t\tif ($__this->_tinymce_scripts_included) {\n\t\t\treturn '';\n\t\t}\n\t\t$web_path = '';\n\t\tif (conf('tinymce::use_submodule')) {\n\t\t\t$path = $params['tinymce_path'] ? $params['tinymce_path'] : 'tinymce/tiny_mce.js';\n\t\t\t$fs_path = PROJECT_PATH. $path;\n\t\t\t$web_path = WEB_PATH. $path;\n\t\t\tif (!file_exists($fs_path)) {\n\t\t\t\treturn '';\n\t\t\t}\n\t\t} else {\n\t\t\t$web_path = '//cdnjs.cloudflare.com/ajax/libs/tinymce/3.5.8/tiny_mce.js';\n\t\t}\n\t\tif (!$web_path) {\n\t\t\treturn '';\n\t\t}\n\t\t$content_id = $extra['id'] ? $extra['id'] : 'content_editable';\n\t\t$hidden_id = $params['hidden_id'] ? $params['hidden_id'] : '';\n\n\t\t$body .= '<script src=\"'.$web_path.'\" type=\"text/javascript\"></script>'.PHP_EOL;\n#\t\tjs($web_path);\n\n/*\n\t\t\t$(function(){\n\t\t\t\tvar _content_id = \"#'.$content_id.'\";\n\t\t\t\tvar _hidden_id = \"#'.$hidden_id.'\";\n\t\t\t\t$(_content_id).parents(\"form\").submit(function(){\n\t\t\t\t\t$(\"input[type=hidden]\" + _hidden_id).val( $(_content_id).html() );\n\t\t\t\t})\n\t\t\t})\n*/\n\t\t$body .= '<script type=\"text/javascript\">\ntinymce.init({\n selector: \"#'.$content_id.'\", //\"textarea\",\n// plugins: [\n// \"advlist autolink lists link image charmap print preview anchor\",\n// \"searchreplace visualblocks code fullscreen\",\n// \"insertdatetime media table contextmenu paste moxiemanager\"\n// ],\n toolbar: \"insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image\"\n});\n\t\t\t</script>';\n\n/*\n\t\t// Theme-wide config inside stpl (so any engine vars can be processed or included there)\n\t\t$stpl_name = 'tinymce_config'; // Example filesystem location: PROJECT_PATH.'templates/admin/tinymce_config.stpl'\n\t\tif (!isset($replace['content_id'])) {\n\t\t\t$replace['content_id'] = $content_id;\n\t\t}\n\t\t$config_js .= tpl()->_stpl_exists($stpl_name) ? tpl()->parse($stpl_name, (array)$extra + (array)$replace ) : '';\n#\t\tjs($config_js);\n\t\t$body .= $config_js;\n*/\n\t\t// Avoid including tinymce scripts several times on same page\n\t\t$__this->_tinymce_scripts_included = true;\n\n\t\treturn $body;\n\t}", "title": "" }, { "docid": "5fdd880272929b317ed9a021b97b7a40", "score": "0.6778791", "text": "function wpex_shortcodes_add_tinymce_plugin( $plugin_array ) {\n\t\t$plugin_array['wpex_shortcodes_mce_button'] = wpex_asset_url( 'js/dynamic/wpex-tinymce.js' );\n\t\treturn $plugin_array;\n\t}", "title": "" }, { "docid": "d72d48aefd123200f93b92c13fabfde3", "score": "0.67785645", "text": "function saxonTheme_add_tinymce_plugin($plugin_array) {\n\t$plugin_array['theme_button'] = get_template_directory_uri() . '/functions/shortcodes/button-popup.js';\n\t$plugin_array['columns'] = get_template_directory_uri() . '/functions/shortcodes/column-popup.js';\n\t$plugin_array['list'] = get_template_directory_uri() . '/functions/shortcodes/list-popup.js';\n\n\treturn $plugin_array;\n}", "title": "" }, { "docid": "591c7917320eb5d4714fbb11cb96ab6c", "score": "0.6762574", "text": "function init_tinymce( $in ) {\n\t $in['toolbar1'] = 'bold,italic,underline,strikethrough,dropcap,highlight,bullist,numlist,blockquote,alignleft,aligncenter,alignright,alignjustify,link,unlink,wp_fullscreen,wp_adv';\n\t $in['toolbar2'] = 'formatselect,forecolor,backcolor,hr,pastetext,removeformat,charmap,outdent,indent,wp_more,spellchecker,undo,redo,wp_help';\n\t return $in;\n }", "title": "" }, { "docid": "8777973dd465e4c022515c5d38355212", "score": "0.67605734", "text": "function tinymce_pagesetup() {\n global $CFG;\n global $function;\n \n // Add JS to embed file in weblog script\n $function['files:embed:js'][] = $CFG->dirroot . \"mod/tinymce/file_embed_js.php\";\n\n // Only load the editor in the following contexts\n $function['weblogs:edit'][] = $CFG->dirroot . \"mod/tinymce/tinymce_js.php\";\n $function['weblogs:posts:view:individual'][] = $CFG->dirroot . \"mod/tinymce/tinymce_js.php\";\n $function['tinymce:include'][] = $CFG->dirroot . \"mod/tinymce/tinymce_js.php\";\n\n // What is the user preference\n $function['userdetails:editor'][] = $CFG->dirroot . \"mod/tinymce/tinymce_userdetails.php\";\n \n // TODO figure this out\n // User details editable options\n $function['userdetails:edit:details'][] = $CFG->dirroot . \"mod/tinymce/tinymce_userdetails_edit.php\";\n\n // Added editor section to enable future editor choice in user config\n $CFG->plugins->editor[\"tinymce\"] = true;\n }", "title": "" }, { "docid": "cfa3c11930297194fd71d4d3d4e9e722", "score": "0.67202574", "text": "function my_mce_before_init_insert_formats( $init_array ) { \n\t// Define the style_formats array\n\t$style_formats = array( \n\n\t\tarray( \n\t\t\t'title' => 'Featured Paragraph', \n 'selector' => 'p',\n\t\t\t'classes' => 'featured-paragraph'\n\t\t),\n array(\n 'title' => 'Button',\n 'selector' => 'a',\n 'classes' => 'btn'\n ),\n array(\n 'title' => 'Two Column List',\n 'selector' => 'ul',\n 'classes' => 'two-column-list'\n ),\n array(\n 'title' => 'Small Text',\n 'selector' => 'p',\n 'classes' => 'small-text'\n ),\n array(\n 'title' => 'No border image',\n 'selector' => 'img',\n 'classes' => 'no-shadow'\n ),\n array(\n 'title' => 'No green border image',\n 'selector' => 'img',\n 'classes' => 'no-green'\n )\n\n\t); \n\n\t$init_array['style_formats'] = json_encode( $style_formats ); \t\n\treturn $init_array;\n}", "title": "" }, { "docid": "891b09819a72a815c051ce0d0962b886", "score": "0.66921693", "text": "function custom_tinymce_plugin( $plugin_array ) {\r\n $plugin_array['custom_mce_button1'] = get_site_url(). '/wp-content/plugins/googleDoc/doc-embed-script.js';\r\n return $plugin_array;\r\n}", "title": "" }, { "docid": "e394e90da474d3e0e69bcdbaab6fa273", "score": "0.6658036", "text": "public function add_tinymce_js( $plugin_array ) {\r\n\t\t\t$plugin_array['foogallery'] = FOOGALLERY_URL . 'js/admin-tinymce.js';\r\n\t\t\treturn $plugin_array;\r\n\t\t}", "title": "" }, { "docid": "496b6495857c90496cda89e3186b3831", "score": "0.66308576", "text": "function IncludeTinyMCE4()\n {\n ?>\n <script type=\"text/javascript\" src=\"/sys/js/tinymce4/jquery.tinymce.min.js\"></script>\n <script type=\"text/javascript\" src=\"/sys/js/tinymce4/tinymce.min.js\"></script>\n <?\n }", "title": "" }, { "docid": "26c1f6ecd62a8f3b6308bb813735360f", "score": "0.6621804", "text": "function add_tinymce_plugin( $plugin_array ) {\r\n\t$plugin_array['insights'] = $this->plugin_url. '/insights-mceplugin.js';\r\n\treturn $plugin_array;\r\n}", "title": "" }, { "docid": "4050f114def8d72ee9e1507ecacb5a5c", "score": "0.6569944", "text": "function change_mce_options( $init ) {\n\t\t\t$init['theme_advanced_blockformats'] = 'p,code,h2,h3,h4,h5,h6';\n\t\t\t$init['theme_advanced_disable'] = 'forecolor';\n\t\t\t$init['wordpress_adv_hidden'] = false;\n\t\t\treturn $init;\n\t\t}", "title": "" }, { "docid": "2d93e707cf2871cc641dd6fc7a7c84c0", "score": "0.65557015", "text": "function add_myplugin_tinymce_plugin($plugin_array) {\n\t\t\t$plugin_array['wpdojoloader_plugin'] = get_bloginfo('wpurl') . '/wp-content/plugins/wpdojoloader/js/tinymce/editor_plugin.js';\n\t\t \treturn $plugin_array;\n\t\t}", "title": "" }, { "docid": "f1a62f0b0dbe5048346f23df281e124e", "score": "0.655428", "text": "function override_mce_options($initArray) {\n$opts = '*[*]';\n$initArray['valid_elements'] = $opts;\n$initArray['extended_valid_elements'] = $opts;\nreturn $initArray;\n}", "title": "" }, { "docid": "863825c0961d6b23cc416009e8cf10a7", "score": "0.6552844", "text": "function my_mce_before_init_insert_formats( $init_array ) { \n\n// Define the style_formats array\n\n\t$style_formats = array( \n\t\t// Each array child is a format with it's own settings\n\t\tarray( \n\t\t\t'title' => 'Code Violet', \n\t\t\t'block' => 'span', \n\t\t\t'classes' => 'color-code-violet',\n\t\t\t'wrapper' => true,\n\t\t\t\n\t\t),\n\t\tarray( \n\t\t\t'title' => 'Code Blue', \n\t\t\t'block' => 'span', \n\t\t\t'classes' => 'color-code-violet',\n\t\t\t'wrapper' => true,\n\t\t\t\n\t\t),\n\t\tarray( \n\t\t\t'title' => 'Code Red', \n\t\t\t'block' => 'span', \n\t\t\t'classes' => 'color-code-violet',\n\t\t\t'wrapper' => true,\n\t\t\t\n\t\t),\n\t\tarray( \n\t\t\t'title' => 'Code Orange', \n\t\t\t'block' => 'span', \n\t\t\t'classes' => 'color-code-violet',\n\t\t\t'wrapper' => true,\n\t\t\t\n\t\t),\n\t\tarray( \n\t\t\t'title' => 'Code Coment', \n\t\t\t'block' => 'span', \n\t\t\t'classes' => 'color-code-violet',\n\t\t\t'wrapper' => true,\n\t\t\t\n\t\t)\n\t); \n\n\n\t// Insert the array, JSON ENCODED, into 'style_formats'\n\t$init_array['style_formats'] = json_encode( $style_formats ); \n\t\n\treturn $init_array; \n \n}", "title": "" }, { "docid": "14e805b02d4025f60ec60d9ad32772bf", "score": "0.6551112", "text": "function TinyMCEArea( $name = '', $value = '', $rows = 4, $cols = 70, $params=NULL, $lang_id=1, $id=NULL )\n {\n ?>\n <!-- Load TinyMCE -->\n <script type=\"text/javascript\">\n $(document).ready(function() {\n $('#<?=$id?>tinymce<?=$lang_id?>').tinymce({\n // Location of TinyMCE script\n //script_url : '/sys/js/tinymce/tiny_mce.js',\n mode : \"textareas\",\n theme : \"advanced\",\n language:\"<?if( strtolower(_LANG_SHORT)==\"ua\") echo \"uk\"; else echo strtolower(_LANG_SHORT);?>\",\n plugins : \"pagebreak,style,contextmenu,table,advhr,advimage,advlink,inlinepopups,media,searchreplace,paste,fullscreen,noneditable,visualchars,nonbreaking,template,imagemanager,filemanager,umispoiler\",\n //plugins : \"autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager\",\n // Theme options\n theme_advanced_buttons1 : \"code,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect\",\n theme_advanced_buttons2 : \"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,forecolor,backcolor,|,umispoiler\",\n theme_advanced_buttons3 : \"tablecontrols,hr,removeformat,visualaid,|,charmap,iespell,media,advhr,|,fullscreen,|,styleprops,|,visualchars,nonbreaking,pagebreak,insertimage,insertfile\",\n theme_advanced_toolbar_location : \"top\",\n theme_advanced_toolbar_align : \"left\",\n theme_advanced_statusbar_location : \"bottom\",\n theme_advanced_resizing : true,\n skin : \"o2k7\",\n skin_variant : \"silver\",\n convert_urls : false,\n content_css : \"/include/css/TinyMCE.css\",\n startdir: \"/images/imagesForTinuMCE/\"\n\n\n });\n });\n </script>\n <!-- /TinyMCE -->\n <textarea id=\"<?=$id?>tinymce<?=$lang_id?>\" name=\"<?=$name;?>\" rows=\"<?=$rows?>\" cols=\"<?=$cols?>\" <?=$params?> class=\"tinymce\"><?=$value?></textarea>\n <?\n }", "title": "" }, { "docid": "4882096bf23d58476f35ae4c69b1a28c", "score": "0.65496725", "text": "function my_mce_before_init_insert_formats( $init_array ) { \r\n\t// Define the style_formats array\r\n\t$style_formats = array( \r\n\t\t// Each array child is a format with it's own settings\r\n\t\tarray( \r\n\t\t\t'title' => 'agenda item', \r\n\t\t\t'block' => 'div', \r\n\t\t\t'classes' => 'agenda',\r\n\t\t\t'wrapper' => true,\r\n\t\t\t\r\n\t\t), \r\n\t\tarray( \r\n\t\t\t'title' => 'Breakout Session', \r\n\t\t\t'block' => 'div', \r\n\t\t\t'classes' => 'breakout',\r\n\t\t\t'wrapper' => true,\r\n\t\t),\r\n\t\tarray( \r\n\t\t\t'title' => 'winner', \r\n\t\t\t'block' => 'div', \r\n\t\t\t'classes' => 'winner',\r\n\t\t\t'wrapper' => true,\r\n\t\t),\r\n\t\tarray( \r\n\t\t\t'title' => 'register', \r\n\t\t\t'block' => 'div', \r\n\t\t\t'classes' => 'register',\r\n\t\t\t'wrapper' => true,\r\n\t\t),\r\n\t); \r\n\t// Insert the array, JSON ENCODED, into 'style_formats'\r\n\t$init_array['style_formats'] = json_encode( $style_formats ); \r\n\t\r\n\treturn $init_array; \r\n \r\n}", "title": "" }, { "docid": "4844f8fa366a9890f7265e7baa44b631", "score": "0.6541279", "text": "function tinyMce(){\n ob_start();\n?>\n <script type=\"text/javascript\">\n tinyMCE.baseURL ='js/tinymce';\n tinymce.init({\n selector: \".editeur\",\n protect: [\n /\\<\\/?(if|endif)\\>/g, // Protect <if> & </endif>\n /\\<xsl\\:[^>]+\\>/g, // Protect <xsl:...>\n /<\\?php.*?\\?>/g // Protect php code\n ],\n theme: \"modern\",\n skin: \"custom\",\n language : 'fr_FR',\n plugins: [\n \"advlist autolink lists link image charmap print hr anchor pagebreak\",\n \"searchreplace visualblocks visualchars code fullscreen\",\n \"insertdatetime media nonbreaking save table contextmenu directionality\",\n \"emoticons template paste textcolor responsivefilemanager youTube\"\n ],\n toolbar1: \"insertfile undo redo | template | code | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link unlink anchor | image | media | youTube | forecolor backcolor | formatselect | fullscreen | fontselect | styleselect | fontsizeselect | searchreplace |code | removeformat | responsivefilemanager \",\n extended_valid_elements: \"*[*]\",\n image_advtab: true,\n\n external_filemanager_path:\"<?php echo RACINE ?>/responsivefilemanager/\",\n filemanager_title:\"Gestionnaire de Fichiers\" ,\n external_plugins: { \"filemanager\" : \"<?php echo RACINE ?>/responsivefilemanager/plugin.min.js\"},\n\n templates: [\n {title: 'Template 1', content: 'Template 1',url: \"<?php echo RACINE.'/'.WEBROOT ?>vues/test1.html\"},\n ],\n menubar: false,\n toolbar_items_size: 'small',\n convert_urls: false,\n //file_browser_callback: fileBrowser\n });\n function fileBrowser(field_name, url, type, win){\n if(type=='file'){\n var explorer = 'articles.php';\n }else{\n var explorer = '../media.php';\n }\n \n tinyMCE.activeEditor.windowManager.open({\n file : explorer,\n title : 'Galerie',\n width : 855,\n height : 425,\n resizable : 'yes',\n },{\n window : win,\n input : field_name\n });\n window.inputSrc = field_name\n return false;\n }\n</script>\n\n<script type=\"text/javascript\">\n tinyMCE.baseURL ='js/tinymce';\n tinymce.init({\n selector: \".editeur_small\",\n theme: \"modern\",\n skin: \"custom\",\n language : 'fr_FR',\n plugins: [\n \"advlist autolink lists link image charmap print hr anchor pagebreak\",\n \"searchreplace visualblocks visualchars code fullscreen\",\n \"insertdatetime media nonbreaking save table contextmenu directionality\",\n \"emoticons template paste textcolor responsivefilemanager \"\n ],\n toolbar1: \"bold italic | alignleft aligncenter alignright alignjustify | link unlink | bullist numlist outdent indent | image | responsivefilemanager\",\n image_advtab: true,\n\n external_filemanager_path:\"<?php echo RACINE ?>/responsivefilemanager/\",\n filemanager_title:\"Gestionnaire de Fichiers\" ,\n external_plugins: { \"filemanager\" : \"<?php echo RACINE ?>/responsivefilemanager/plugin.min.js\"},\n \n menubar: false,\n toolbar_items_size: 'small',\n convert_urls: false,\n //file_browser_callback: fileBrowser\n });\n \n</script>\n<?php\n/************** ON LIBERE LE FLUX *******************/\nob_end_flush();\n}", "title": "" }, { "docid": "380950702715b87e77c544adfb4b371c", "score": "0.6518791", "text": "function sui_register_mce_plugin(array $plugin) {\n $plugin['sui'] = plugin_dir_url(__FILE__) . 'js/lib/sui-tinymce-plugin.js';\n return $plugin;\n}", "title": "" }, { "docid": "73d243618a851cc1957d2a1885bd18c1", "score": "0.6510171", "text": "function botTinymceEditorInit() {\n\tglobal $mosConfig_live_site, $database, $mosConfig_absolute_path, $mainframe;\n\n\t// load tinymce info\n\t$query = \"SELECT params\"\n\t. \"\\n FROM #__mambots\"\n\t. \"\\n WHERE element = 'tinymce'\"\n\t. \"\\n AND folder = 'editors'\"\n\t;\n\t$database->setQuery( $query );\n\t$database->loadObject($mambot);\n\t\n\t$params = new mosParameters( $mambot->params );\n\n\t$theme = $params->get( 'theme', 'advanced' );\n\t// handling for former default option\n\tif ($theme == 'default' ) {\n\t\t$theme = 'advanced';\n\t}\n\t\n\t$toolbar \t\t\t= $params->def( 'toolbar', \t\t\t\t'top' );\n\t$html_height\t\t= $params->def( 'html_height', \t\t\t'550' );\n\t$html_width\t\t\t= $params->def( 'html_width', \t\t\t'750' );\n\t$text_direction\t\t= $params->def( 'text_direction', \t\t'ltr' );\n\t$content_css\t\t= $params->def( 'content_css', \t\t\t1 );\n\t$content_css_custom\t= $params->def( 'content_css_custom', \t'' );\n\t$invalid_elements\t= $params->def( 'invalid_elements', \t'script,applet,iframe' );\n\t$newlines\t\t\t= $params->def( 'newlines', \t\t\t0 );\n\t$cleanup\t\t\t= $params->def( 'cleanup', \t\t\t\t1 );\n\t$cleanup_startup\t= $params->set( 'cleanup_startup', \t\t0 ); // Currently disabled due to bugs in TinyMCE\n\t$compressed\t\t\t= $params->def( 'compressed', \t\t\t0 );\n\t$relative_urls\t\t= $params->def( 'relative_urls', \t\t0 );\n\t\n\t// Plugins\n\t// preview\n\t$preview\t\t\t= $params->def( 'preview', \t\t\t\t1 );\n\t$preview_height\t\t= $params->def( 'preview_height', \t\t'550' );\n\t$preview_width\t\t= $params->def( 'preview_width', \t\t'750' );\n\t// insert date\n\t$insertdate\t\t\t= $params->def( 'insertdate', \t\t\t1 );\n\t$format_date\t\t= $params->def( 'format_date', \t\t\t'%Y-%m-%d' );\n\t// insert time\n\t$inserttime\t\t\t= $params->def( 'inserttime', \t\t\t1 );\n\t$format_time\t\t= $params->def( 'format_time', \t\t\t'%H:%M:%S' );\n\t// search & replace\n\t$searchreplace\t\t= $params->def( 'searchreplace', \t\t1 );\n\t// emotions\n\t$smilies\t\t\t= $params->def( 'smilies', \t\t\t1 );\n\t// flash\n\t$flash\t\t\t\t= $params->def( 'flash', \t\t\t\t1 );\n\t// table\n\t$table\t\t\t\t= $params->def( 'table', \t\t\t\t1 );\n\t// horizontal line\n\t$hr\t\t\t\t\t= $params->def( 'hr', \t\t\t\t\t1 );\n\t// fullscreen\n\t$fullscreen\t\t\t= $params->def( 'fullscreen', \t\t\t1 );\n\t// autosave\n\t$autosave\t\t\t= $params->def( 'autosave', \t\t\t0 );\n\t// layer\n\t$layer\t\t\t\t= $params->def( 'layer', \t\t\t\t1 );\n\t// style\n\t$style\t\t\t\t= $params->def( 'style', \t\t\t\t1 );\n\t// visualchars\n\t$visualchars\t\t= $params->def( 'visualchars', \t\t\t1 );\n\t// media\n\t$media\t\t\t\t= $params->def( 'media', \t\t\t\t1 );\n\t// nonbreaking\n\t$nonbreaking\t\t= $params->def( 'nonbreaking', \t\t\t1 );\n\n\tif ( $relative_urls ) {\n\t\t$relative_urls = 'true';\n\t} else {\n\t\t$relative_urls = 'false';\n\t}\n\t\n\tif ( $content_css_custom ) {\n\t\t$content_css = 'content_css : \"'. $content_css_custom .'\", ';\n\t} else {\n\t\t$query = \"SELECT template\"\n\t\t. \"\\n FROM #__templates_menu\"\n\t\t. \"\\n WHERE client_id = 0\"\n\t\t. \"\\n AND menuid = 0\"\n\t\t;\n\t\t$database->setQuery( $query );\n\t\t$template = $database->loadResult();\n\t\t\n\t\t$file_path = $mosConfig_absolute_path .'/templates/'. $template .'/css/';\n\t\tif ( $content_css ) {\t\t\t\n\t\t\t$file = 'template.css';\n\t\t} else {\n\t\t\t$file = 'editor_content.css';\n\t\t}\n\t\t\n\t\t$content_css = 'content_css : \"'. $mosConfig_live_site .'/templates/'. $template .'/css/';\n\t\t\n\t\tif ( file_exists( $file_path .'/'. $file ) ) {\n\t\t\t$content_css = $content_css . $file .'\", ';\n\t\t} else {\n\t\t\t$content_css = $content_css . 'template_css.css\", ';\n\t\t}\n\t}\n\n\t$plugins[] \t= '';\n\t$buttons2[]\t= '';\n\t$buttons3[]\t= '';\n\t$elements[]\t= '';\n\n\tif ( $cleanup ) {\n\t\t$cleanup = 'true';\n\t} else {\n\t\t$cleanup = 'false';\n\t}\n\t\n\tif ( $cleanup_startup ) {\n\t\t$cleanup_startup = 'true';\n\t} else {\n\t\t$cleanup_startup = 'false';\n\t}\t\n\n\tif ( $newlines ) {\n\t\t$br_newlines\t= 'true';\n\t\t$p_newlines = 'false';\n\t} else {\n\t\t$br_newlines\t= 'false';\n\t\t$p_newlines = 'true';\n\t}\n\t\n\t// Tiny Compressed mode\n\tif ( $compressed ) {\t\t\n\t\t$load \t\t\t\t= '<script type=\"text/javascript\" src=\"'. $mosConfig_live_site .'/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_gzip.js\"></script>';\n\t\t$load_init \t\t\t= '\n\t\t<script type=\"text/javascript\">\n\t\ttinyMCE_GZ.init({\n\t\t\tplugins : \\'style,layer,table,save,advhr,advimage,advlink,emotions,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking\\',\n\t\t\tthemes : \\'simple,advanced\\',\n\t\t\tlanguages : \\'ru\\',\n\t\t\tdisk_cache : true,\n\t\t\tdebug : false\n\t\t});\n\t\t</script>';\n\t} else {\n\t\t$load \t\t\t\t= '<script type=\"text/javascript\" src=\"'. $mosConfig_live_site .'/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js\"></script>';\n\t\t$load_init \t\t\t= '';\n\t}\n\n\t// preview\n\tif ( $preview ) {\n\t\t$plugins[]\t= 'preview';\n\t\t$buttons2[]\t= 'preview';\n\t}\n\t// search & replace\n\tif ( $searchreplace ) {\n\t\t$plugins[]\t= 'searchreplace';\n\t\t$buttons2[]\t= 'search,replace';\n\t}\n\t\n\t$plugins[]\t= 'insertdatetime';\t\n\t// insert date\n\tif ( $insertdate ) {\n\t\t$buttons2[]\t= 'insertdate';\n\t}\n\t\n\t// insert time\n\tif ( $inserttime ) {\n\t\t$buttons2[]\t= 'inserttime';\n\t}\n\t// emotions\n\tif ( $smilies ) {\n\t\t$plugins[]\t= 'emotions';\n\t\t$buttons2[]\t= 'emotions';\n\t}\n\n\t// horizontal line\n\tif ( $hr ) {\n\t\t$plugins[]\t= 'advhr';\n\t\t$elements[] = 'hr[class|width|size|noshade]';\n\t\t$buttons3[]\t= 'advhr';\n\t}\n\t// flash\n\tif ( $flash ) {\n\t\t$plugins[]\t= 'flash';\n\t\t$buttons3[]\t= 'flash';\n\t}\n\t// table\n\tif ( $table ) {\n\t\t$plugins[]\t= 'table';\n\t\t$buttons3[]\t= 'tablecontrols';\n\t}\n\t// fullscreen\n\tif ( $fullscreen ) {\n\t\t$plugins[]\t= 'fullscreen';\n\t\t$buttons3[]\t= 'fullscreen';\n\t}\n\t// autosave\n\tif ( $autosave ) {\n\t\t$plugins[]\t= 'autosave';\n\t}\n\t// layer\n\tif ( $layer ) {\n\t\t$plugins[]\t= 'layer';\n\t\t$buttons2[]\t= 'insertlayer';\n\t\t$buttons2[]\t= 'moveforward';\n\t\t$buttons2[]\t= 'movebackward';\n\t\t$buttons2[]\t= 'absolute';\n\t}\n\t// style\n\tif ( $style ) {\n\t\t$plugins[]\t= 'style';\n\t\t$buttons3[]\t= 'styleprops';\n\t}\n\t// visualchars\n\tif ( $visualchars ) {\n\t\t$plugins[]\t= 'visualchars';\n\t\t$buttons3[]\t= 'visualchars';\n\t}\n\t// media\n\tif ( $media ) {\n\t\t$plugins[]\t= 'media';\n\t\t$buttons3[]\t= 'media';\n\t}\n\t// nonbreaking\n\tif ( $nonbreaking ) {\n\t\t$plugins[]\t\t\t= 'nonbreaking';\n\t\t$buttons3[]\t\t\t= 'nonbreaking';\n\t}\n\n\t$buttons2 \t= implode( ', ', $buttons2 );\n\t$buttons3 \t= implode( ', ', $buttons3 );\n\t$plugins \t= implode( ', ', $plugins );\n\t$elements \t= implode( ', ', $elements );\n\t\nreturn <<<EOD\n\t$load\t\n\t$load_init\t\n\t<script type=\"text/javascript\">\n\ttinyMCE.init({\n\t\ttheme : \"$theme\",\n\t\tlanguage : \"ru\",\n\t\tmode : \"specific_textareas\",\n\t\tdocument_base_url : \"$mosConfig_live_site/\",\n\t\trelative_urls : $relative_urls,\n\t\tremove_script_host : false,\n\t\tsave_callback : \"TinyMCE_Save\",\n\t\tinvalid_elements : \"$invalid_elements\",\n\t\ttheme_advanced_toolbar_location : \"$toolbar\",\n\t\ttheme_advanced_source_editor_height : \"$html_height\",\n\t\ttheme_advanced_source_editor_width : \"$html_width\",\n\t\tdirectionality: \"$text_direction\",\n\t\tforce_br_newlines : \"$br_newlines\",\n\t\tforce_p_newlines : \"$p_newlines\",\n\t\t$content_css\n\t\tdebug : false,\n\t\tcleanup : $cleanup,\n\t\tcleanup_on_startup : $cleanup_startup,\n\t\tsafari_warning : false,\n\t\tplugins : \"advlink, advimage, $plugins\",\n\t\ttheme_advanced_buttons2_add : \"$buttons2\",\n\t\ttheme_advanced_buttons3_add : \"$buttons3\",\n\t\tplugin_insertdate_dateFormat : \"$format_date\",\n\t\tplugin_insertdate_timeFormat : \"$format_time\",\n\t\tplugin_preview_width : \"$preview_width\",\n\t\tplugin_preview_height : \"$preview_height\",\n\t\textended_valid_elements : \"a[name|href|target|title|onclick], img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name], $elements\",\n\t\tdisk_cache : true,\n\t\tdebug : false,\t\n\t\tfullscreen_settings : {\n\t\t\ttheme_advanced_path_location : \"top\"\n\t\t}\n\t});\n\tfunction TinyMCE_Save(editor_id, content, node)\n\t{\n\t\tbase_url = tinyMCE.settings['document_base_url'];\n\t\tvar vHTML = content;\n\t\tif (true == true){\n\t\t\tvHTML = tinyMCE.regexpReplace(vHTML, 'href\\s*=\\s*\"?'+base_url+'', 'href=\"', 'gi');\n\t\t\tvHTML = tinyMCE.regexpReplace(vHTML, 'src\\s*=\\s*\"?'+base_url+'', 'src=\"', 'gi');\n\t\t\tvHTML = tinyMCE.regexpReplace(vHTML, 'mce_real_src\\s*=\\s*\"?', '', 'gi');\n\t\t\tvHTML = tinyMCE.regexpReplace(vHTML, 'mce_real_href\\s*=\\s*\"?', '', 'gi');\n\t\t}\n\t\treturn vHTML;\n\t}\t\n</script>\nEOD;\n}", "title": "" }, { "docid": "4b5ab6be7c08e75d7118b3d2a4c1216c", "score": "0.6495032", "text": "public function cs_init_editor() {\n echo '<div style=\"display: none;\">';\n wp_editor('', 'cs_comp_init_detail', array(\n 'textarea_name' => 'cs_comp_init_detail',\n 'editor_class' => 'text-input',\n 'teeny' => true,\n 'media_buttons' => false,\n 'textarea_rows' => 4,\n 'quicktags' => false\n )\n );\n echo '</div>';\n ?>\n <script type=\"text/javascript\">\n jQuery(document).ready(function (e) {\n if (typeof (et_tinyMCEPreInit) == 'undefined') {\n et_tinyMCEPreInit = JSON.stringify(tinyMCEPreInit);\n }\n });\n </script>\n <?php\n }", "title": "" }, { "docid": "8ad6a37b4d0b6d829d5a761c13cd1ecb", "score": "0.6479014", "text": "function my_mce_before_init_insert_formats( $init_array ) { \n // Define the style_formats array\n $style_formats = array( \n // Each array child is a format with it's own settings\n array( \n 'title' => 'Lead', \n 'block' => 'span', \n 'classes' => 'lead',\n 'wrapper' => true,\n ), \n array( \n 'title' => 'Citat', \n 'block' => 'span', \n 'classes' => 'pullquote',\n 'wrapper' => true,\n ), \n // array( \n // 'title' => 'Pullquote right', \n // 'block' => 'span', \n // 'classes' => 'pullquote-right',\n // 'wrapper' => true,\n // ), \n // array( \n // 'title' => 'Pullquote left',\n // 'block' => 'span',\n // 'classes' => 'pullquote-left',\n // 'wrapper' => true,\n // ), \n ); \n // Insert the array, JSON ENCODED, into 'style_formats'\n $init_array['style_formats'] = json_encode( $style_formats ); \n \n return $init_array; \n \n}", "title": "" }, { "docid": "7a9c745dd33c278e120692ffed534bfb", "score": "0.6466607", "text": "public function _build($textAreaId, $tinyoptions=array()) {\n\t\tif(!$this->_script) {\n\t\t\t// We don't want to add this every time, it's only needed once\n\t\t\t$this->_script = true;\n\t\t\t$this->Html->script('/plugins/tinymce/js/tinymce/tinymce.min', array('block'=>true));\n\t\t}\n\t\t$tinyoptions['selector'] = '#'.$textAreaId;\n\t\t$this->Html->scriptStart(array('block'=>true));\n\t\techo 'tinyMCE.init('.json_encode($tinyoptions).');';\n\t\t$this->Html->scriptEnd();\n\t}", "title": "" }, { "docid": "9b6b66728a85419828ca7310c47e0fa0", "score": "0.6460256", "text": "public static function extendEditor()\n {\n add_filter('mce_buttons', [__CLASS__, 'extendMceButtons']);\n add_filter('mce_external_plugins', [__CLASS__, 'extendMcePlugins']);\n }", "title": "" }, { "docid": "917da97a842b9400f30461f229f4022d", "score": "0.6424531", "text": "function of_load_only() {\r\n\r\n\tadd_action('admin_head', 'of_admin_head');\r\n\t\r\n\twp_enqueue_script('jquery-ui-core');\r\n\twp_enqueue_script('jquery-ui-sortable');\r\n\twp_register_script('jquery-input-mask', ADMIN_DIR .'js/jquery.maskedinput-1.2.2.js', array( 'jquery' ));\r\n\twp_enqueue_script('jquery-input-mask');\r\n\twp_enqueue_script('color-picker', ADMIN_DIR .'js/colorpicker.js', array('jquery'));\r\n\twp_enqueue_script('ajaxupload', ADMIN_DIR .'js/ajaxupload.js', array('jquery'));\r\n\twp_enqueue_script('cookie', ADMIN_DIR . '/js/cookie.js', 'jquery');\r\n\twp_register_script('editorC', ADMIN_DIR . \"/js/tinymce/jscripts/tiny_mce/tiny_mce.js\", 'jquery');\t\r\n wp_enqueue_script( 'editorC');\t\r\n\tfunction my_custom_js() {\r\n echo '<script type=\"text/javascript\">tinyMCE.init({\r\n\t\t\t// General options\r\n\t\t\tmode : \"textareas\",\r\n\t\t\teditor_selector : \"showEditorTextArea\",\r\n\t\t\ttheme : \"advanced\",\r\n\t\t\tplugins : \"autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template\",\r\n\r\n\t\t\t// Theme options\r\n\t\t\ttheme_advanced_buttons1 : \"bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,undo,redo,|,link,unlink,anchor,image,\",\r\n\t\t\ttheme_advanced_buttons2 : \"\" ,\r\n\t\t\ttheme_advanced_buttons3 : \"\" ,\t\r\n\r\n\r\n\r\n\t\t\ttheme_advanced_toolbar_location : \"top\",\r\n\t\t\ttheme_advanced_toolbar_align : \"left\",\r\n\t\t\ttheme_advanced_statusbar_location : \"bottom\",\r\n\t\t\ttheme_advanced_resizing : true,\r\n\t\t\trelative_urls : false,\r\n\t\t\tremove_script_host : false,\r\n\t\t\tdocument_base_url : \"/\",\r\n\r\n\t\t\t// Skin options\r\n\t\t\tskin : \"o2k7\",\r\n\t\t\tskin_variant : \"silver\",\r\n\r\n\t\t\t// Example content CSS (should be your site CSS)\r\n\t\t\tcontent_css : \"css/example.css\",\r\n\r\n\t\t\t// Drop lists for link/image/media/template dialogs\r\n\t\t\ttemplate_external_list_url : \"js/template_list.js\",\r\n\t\t\texternal_link_list_url : \"js/link_list.js\",\r\n\t\t\texternal_image_list_url : \"js/image_list.js\",\r\n\t\t\tmedia_external_list_url : \"js/media_list.js\",\r\n\r\n\t\t\t// Replace values for the template plugin\r\n\t\t\ttemplate_replace_values : {\r\n\t\t\t\t\tusername : \"Some User\",\r\n\t\t\t\t\tstaffid : \"991234\"\r\n\t\t\t}\r\n\t});</script>';\r\n\t}\r\n\tadd_action('admin_head', 'my_custom_js');\t\r\n\t\r\n\t\t// Registers custom scripts for the Media Library AJAX uploader.\r\n}", "title": "" }, { "docid": "35e7607c12811f8a7712c0045df28ba2", "score": "0.6422696", "text": "function my_mce_add_editor_styles() {\n add_editor_style( '/includes/css/editor-style.css' );\n}", "title": "" }, { "docid": "21bb6d656370f51b467fdf7f2f47676a", "score": "0.6413185", "text": "function my_mce_before_init_insert_formats( $init_array ) { \n // Define the style_formats array\n $style_formats = array( \n // Each array child is a format with it's own settings\n array( \n 'title' => '.youtube', \n 'block' => 'div', \n 'classes' => 'youtube',\n 'wrapper' => true,\n \n )\n ); \n // Insert the array, JSON ENCODED, into 'style_formats'\n $init_array['style_formats'] = json_encode( $style_formats ); \n \n return $init_array; \n \n}", "title": "" }, { "docid": "eb0846e750df5be5897fb60218873fa9", "score": "0.6397127", "text": "function my_mce_before_init_insert_formats( $init_array ) {\n // Define the style_formats array\n $style_formats = array(\n // Each array child is a format with it's own settings\n array(\n 'title' => 'Inline Tweet',\n 'inline' => 'span',\n 'classes' => 'js-inline-tweet',\n ),\n );\n // Insert the array, JSON ENCODED, into 'style_formats'\n $init_array['style_formats'] = json_encode( $style_formats );\n\n return $init_array;\n\n}", "title": "" }, { "docid": "213d6990353d64b700340aef46bb94b3", "score": "0.6374201", "text": "function my_mce4_options($init) {\n $default_colours = '\"2b2b2b\", \"Black\",\n\t\t\t\t\t \"ffffff\", \"White\",\n\t\t\t\t\t \"f7f7f7\", \"Lighter Grey\",\n\t\t\t\t\t \"a7a9ac\", \"Grey\",\n\t\t\t\t\t \"7f7f7f\", \"Dark Grey\",\n\t\t\t\t\t \"52ade0\", \"Blue\",\n\t\t\t\t\t \"e64b3b\", \"Red\",\n\t\t\t\t\t \"8ec958\", \"Green\",\n\t\t\t\t\t \"f8b413\", \"Yellow\"';\n\n $custom_colours = '\"000000\", \"Rich Black\",\n\t\t\t\t\t \"ffffff\", \"White\"';\n\n // build colour grid default+custom colors\n $init['textcolor_map'] = '['.$default_colours.','.$custom_colours.']';\n\n // enable 6th row for custom colours in grid\n $init['textcolor_rows'] = 6;\n\n return $init;\n}", "title": "" }, { "docid": "52f13ceef5d3a5e337cbb0b16d98c3dd", "score": "0.6367882", "text": "function EEXCESS_add_tinymce_plugin( $plugin_array ) {\n $plugin_array['EEXCESS_get_recommendations'] = plugins_url( 'js/tinyMCE_Get_Recommendations_Button.js', __FILE__ );\n $plugin_array['EEXCESS_alter_citations'] = plugins_url( 'js/tinyMCE_Alter_Citations_Button.js', __FILE__ );\n return $plugin_array;\n }", "title": "" }, { "docid": "d354c8aac4f07eb15ae0e5b6761f46d8", "score": "0.6359857", "text": "function axiom_edit_mce_plugins($plugins){\n $plugins[\"axiom\"] = ADMIN_INC_URL.\"shortcodes/assets/js/tinymce/plugins/axiom-btns.js\";\n return $plugins;\n}", "title": "" }, { "docid": "1d14279129fb3d9473d4e6fb94ff3b13", "score": "0.63545275", "text": "private function _addJs() {\r\n\r\n // get editor instance\r\n $editor =JFactory::getEditor();\r\n\r\n // build javascript\r\n $js = '\r\n <!--\r\n function shCollectEditorData() {\r\n var text = '\r\n . $editor->getContent( 'introtext' )\r\n . $editor->save( 'introtext' )\r\n . '$(\"introtext\").value=text;'\r\n . '\r\n };\r\n //-->\r\n ';\r\n\r\n // insert into document\r\n $document = JFactory::getDocument();\r\n $document->addScriptDeclaration( $js);\r\n\r\n }", "title": "" }, { "docid": "e28d42da80a3119c50ac6c0a533ed88a", "score": "0.63435084", "text": "function change_mce_options($init) {\r\n $default_colors = ' \"000000\", \"Black\",\r\n \"FFFFFF\", \"White\",\r\n \"4D4D4D\", \"Grey\",\r\n \"58CDCA\", \"Teal\",\r\n \"369F9C\", \"Dark Teal\"';\r\n $init['textcolor_map'] = '['.$default_colors.']';\r\n return $init;\r\n}", "title": "" }, { "docid": "b188fde1adc51656f8a4616017b8e4f3", "score": "0.6333221", "text": "public function addTinyMCEDropDown() {\n\t\t\tif ( ! count( $this->shortcodes ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( ( current_user_can('edit_posts') || current_user_can('edit_pages') ) && get_user_option('rich_editing') ) {\n\t\t\t\tadd_filter( 'mce_external_plugins', array( $this, 'addTinyMCEPlugin' ) );\n\t\t\t\tadd_filter( 'mce_buttons', array( $this, 'addTinyMCEButton' ) );\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "58ea46b6fc65fc6d09845b8da6a2f5e5", "score": "0.63152665", "text": "function rc_load_scripts() {\r\n // wp_enqueue_script( 'tinymce_buttons', get_template_directory_uri().'/assets/js/tinymce_buttons.js');\r\n\r\n /*\r\n * This is an outside function.\r\n * It returns a PHP array of the names of site options\r\n * that are storing keyboard shortcut bindings\r\n */\r\n // function roles_array() {\r\n // global $wp_roles;\r\n // $roles = $wp_roles->get_names();\r\n\r\n // // Below code will print the all list of roles.\r\n // return $roles;\r\n // }\r\n\r\n // Get site options to create array of currently saved bindings\r\n // $rolesToList = array();\r\n // foreach( $get_editable_roles_array as $role ) {\r\n // $rolesToList[] = get_option( $name );\r\n // }\r\n\r\n // 'keys' will contain an array of currently saved bindings\r\n // $dataToPass = array(\r\n // 'keys' => $bindingsToPass\r\n // );\r\n\r\n /* \r\n * Actual function to pass PHP to JavaScript. Args: \r\n * 1. The target JavaScript file has the handle 'tinymce_buttons' (this is the file we just enqueued)\r\n * 2. The data will be called 'passedData' by the JS file\r\n * 3. 'passedData' will contain the data in $dataToPass\r\n */\r\n // wp_localize_script( 'tinymce_buttons', 'userRoles', $roles);\r\n}", "title": "" }, { "docid": "6211b94a4b4cef1ac4de2aa9c6dbcf01", "score": "0.6308284", "text": "function sui_wp_admin_init() {\t\t\n add_filter('mce_external_plugins', 'sui_register_mce_plugin');\n add_filter('mce_buttons', 'sui_register_mce_buttons');\n}", "title": "" }, { "docid": "34668fec22be83aa47531e781f94c933", "score": "0.6297967", "text": "function my_mce_before_init_insert_formats( $init_array ) {\n // Define the style_formats array\n $style_formats = array(\n // Each array child is a format with it's own settings\n array(\n 'title' => 'Green Text',\n 'inline' => 'span',\n 'classes' => 'green-text',\n ),\n );\n // Insert the array, JSON ENCODED, into 'style_formats'\n $init_array['style_formats'] = json_encode( $style_formats );\n\n return $init_array;\n\n}", "title": "" }, { "docid": "7cb88e8770deb9fb2298115ef9f5ca1b", "score": "0.6279861", "text": "function add_shopsite_tinymce_plugin($plugin_array) { \r\n $path = plugin_dir_url(__FILE__).'editor_plugin.js';\r\n $plugin_array['shopsite'] = $path;\r\n return $plugin_array;\r\n}", "title": "" }, { "docid": "ed94e2f195cd09ed299205a887154b7c", "score": "0.6257427", "text": "function tinymce_include_files($hook_name, $page_data)\n{\n global $g_root_url;\n\n $curr_page = $page_data[\"page\"];\n\n if ($curr_page != \"admin_edit_submission\" && $curr_page != \"client_edit_submission\")\n return;\n\n echo \"<script src=\\\"$g_root_url/modules/field_type_tinymce/tinymce/jquery.tinymce.js\\\"></script>\";\n}", "title": "" }, { "docid": "84b11c29ad943f6d6e0a6394affefb03", "score": "0.62473875", "text": "function toHtml()\n {\n $html = null;\n // return frozen state\n if ($this->_flagFrozen) {\n return $this->getFrozenHtml();\n // return textarea if incompatible\n } elseif (!$this->IsCompatible()) {\n return parent::toHtml();\n // return textarea\n } else {\n // load tinyMCEeditor\n $config = CRM_Core_Config::singleton( );\n $browseUrl = $config->userFrameworkResourceURL . 'packages/kcfinder/browse.php?opener=tinymce&cms=civicrm&type=';\n\n // tinymce is wierd, it needs to be loaded initially along with jquery\n $html = null;\n $click = $this->getAttribute('click_wysiwyg');\n if ($click) {\n $html .= '<div id=\"' . $this->_attributes['id'] .'-plain\" class=\"$elementId replace-plain\" tabindex=0><a href=\"#\"><span class=\"icon edit-icon\">Click to edit</span></a>' . $this->getFrozenHtml() . '</div>';\n }\n $html .= parent::toHtml();\n\n $html .= sprintf( '<script type=\"text/javascript\">\n var configArray = [{\n\n theme : \"advanced\",\n editor_selector : \"form-TinyMCE\",\n plugins : \"safari,spellchecker,layer,table,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,pagebreak\",\n theme_advanced_buttons1 : \"separator,bold,italic,underline,|,fontselect,fontsizeselect\",\n theme_advanced_buttons1_add: \"separator,forecolor,backcolor,separator,link,unlink,separator,image,hr,emotions\",\n theme_advanced_buttons2 : \"separator,numlist,bullist,|,outdent,indent,cite,separator,justifyleft,justifycenter,justifyright\",\n theme_advanced_buttons2_add: \"justifyfull,separator,pastetext,pasteword,|,spellchecker,separator,removeformat,separator,|,undo,redo,|,code,|,fullscreen,help\",\n theme_advanced_buttons3 : \"\",\n theme_advanced_toolbar_location : \"top\",\n theme_advanced_toolbar_align : \"left\",\n theme_advanced_statusbar_location : \"bottom\",\n theme_advanced_resize_horizontal : false,\n theme_advanced_resizing : true,\n apply_source_formatting : true,\n spellchecker_languages : \"+English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr,German=de,Italian=it,Polish=pl,Portuguese=pt,Spanish=es,Swedish=sv\",\n convert_urls : false,\n remove_script_host : false,\n width : \"' . $this->Width .'%\",\n file_browser_callback: \"openKCFinder\",\n setup : function(ed) {\n ed.onInit.addToTop( function(){\n var height = cj(\"#\" + ed.editorId).attr(\"height\");\n cj(\"#\" + ed.editorId + \"_tbl\").css(\"height\", height);\n cj(\"#\" + ed.editorId + \"_ifr\").css(\"height\", height);\n });\n ed.onKeyUp.add(function(ed, l) {\n global_formNavigate = false;\n });\n }'.$this->getConfigString().'\n }];\n\n tinyMCE.settings = configArray[0];');\n\n if ($click) {\n $html .= sprintf('\n CRM.$(function($) {\n $(\"#' . $this->_attributes['id'] . '\").hide();\n var openWysiwyg = function() {\n $(\"#' . $this->_attributes['id'] . '-plain\").remove();\n $(\"#' . $this->_attributes['id'] . '\").show();\n //remove the control if element is already having\n tinyMCE.execCommand(\"mceRemoveControl\", false,\"' . $this->_attributes['id'] .'\");\n tinyMCE.execCommand(\"mceAddControl\" , true, \"' . $this->_attributes['id'] .'\");\n }\n $(\"#' . $this->_attributes['id'] . '-plain\").click(openWysiwyg);\n $(\"#' . $this->_attributes['id'] . '-plain\").keypress(openWysiwyg);\n });\n ');\n }\n else {\n $html .= sprintf('\n //remove the control if element is already having\n tinyMCE.execCommand(\"mceRemoveControl\", false,\"' . $this->_attributes['id'] .'\");\n tinyMCE.execCommand(\"mceAddControl\" , true, \"' . $this->_attributes['id'] .'\"); ');\n }\n\n $html .= sprintf('\n function openKCFinder(field_name, url, type, win) {\n tinyMCE.activeEditor.windowManager.open({\n file: \"'. $browseUrl .'\" + type,\n title: \"KCFinder\",\n width: 700,\n height: 500,\n resizable: \"yes\",\n inline: true,\n close_previous: \"no\",\n popup_css: false\n }, {\n window: win,\n input: field_name\n });\n return false;\n }\n</script>' );\n\n $html .= sprintf( '<script type=\"text/javascript\">\n cj(\"#' . $this->_attributes['id'] .'\").attr( \"height\",\"'.$this->Height.'px\");\n </script>' );\n return $html;\n }\n }", "title": "" }, { "docid": "568dc208da647f8c2860e723691d5a3e", "score": "0.62136525", "text": "function sith() { \n\t\t\t\tglobal $BF, $PROJECT_ADDRESS;\n\t\t\t\n?>\t<script type='text/javascript'>\n\t\tvar page = 'add';\n\t\tfunction flagchange(file) {\n\t\t\tif(file != '') {\n\t\t\t\tdocument.getElementById('filepreview').innerHTML = \"<img src='\"+BF+\"images/geoflags/\"+file+\"' alt='\"+file+\"' />\";\n\t\t\t} else {\n\t\t\t\tdocument.getElementById('filepreview').innerHTML = \"\";\n\t\t\t}\n\t\t}\n\t</script>\n\t<script type='text/javascript' src='error_check.js'></script>\n\t<script type=\"text/javascript\" src=\"<?=$BF?>components/tiny_mce/tiny_mce_gzip.js\"></script>\n\t<script type=\"text/javascript\">\n\ttinyMCE_GZ.init({\n\t\tplugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras',\n\t\tthemes : 'simple,advanced',\n\t\tlanguages : 'en',\n\t\tdisk_cache : true,\n\t\tdebug : false\n\t});\n\t</script>\n\t<!-- Needs to be seperate script tags! -->\n\t<script language=\"javascript\" type=\"text/javascript\">\n\t\ttinyMCE.init({\n\t\t\tmode : \"textareas\",\n\t\t\tplugins : \"style,layer,table,save,advhr,advimage,advlink,emotions,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,filemanager\",\n\t\t\ttheme_advanced_buttons1_add : \"fontselect,fontsizeselect\",\n\t\t\ttheme_advanced_buttons2_add : \"separator,forecolor,backcolor\",\n\t\t\ttheme_advanced_buttons2_add_before: \"cut,copy,paste,pastetext,pasteword,separator\",\n\t\t\ttheme_advanced_buttons3_add : \"emotions,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen\",\n\t\t\ttheme_advanced_toolbar_location : \"top\",\n\t\t\ttheme_advanced_path_location : \"bottom\",\n\t\t\tcontent_css : \"/example_data/example_full.css\",\n\t\t plugin_insertdate_dateFormat : \"%Y-%m-%d\",\n\t\t plugin_insertdate_timeFormat : \"%H:%M:%S\",\n\t\t\textended_valid_elements : \"hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",\n\t\t\texternal_link_list_url : \"example_data/example_link_list.js\",\n\t\t\texternal_image_list_url : \"example_data/example_image_list.js\",\n\t\t\tflash_external_list_url : \"example_data/example_flash_list.js\",\n\t\t\tfile_browser_callback : \"mcFileManager.filebrowserCallBack\",\n\t\t\ttheme_advanced_resize_horizontal : false,\n\t\t\ttheme_advanced_resizing : true,\n\t\t\tapply_source_formatting : true,\n\t\t\t\n\t\t\tfilemanager_rootpath : \"<?=realpath($BF . 'uploads')?>\",\n\t\t\tfilemanager_path : \"<?=realpath($BF . 'uploads')?>\",\n\t\t\trelative_urls : false,\n\t\t\tdocument_base_url : \"<?=$PROJECT_ADDRESS?>\"\n\t\t});\n\t</script>\n\t<!-- /tinyMCE -->\n<?\n\t\t\t}", "title": "" }, { "docid": "8846669f1dba5ad0222339d7b09a200e", "score": "0.6209801", "text": "function content() {\n echo \"\n <script>\n tinymce.init({\n selector: '#message',\n paste_data_images: true,\n plugins: [\n 'legacyoutput advlist autolink lists link image charmap print preview hr anchor pagebreak',\n 'searchreplace wordcount visualblocks visualchars code fullscreen',\n 'insertdatetime media nonbreaking save table contextmenu directionality',\n 'paste textcolor colorpicker textpattern imagetools codesample toc help'\n ],\n toolbar1: 'insertfile undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image',\n toolbar2: 'print preview media | forecolor backcolor | codesample help imageupload',\n image_title: true,\n images_upload_url: 'http://{$_SERVER['SERVER_NAME']}/mailmaid/campaign/upload',\n images_upload_base_path: 'http://{$_SERVER['SERVER_NAME']}/mailmaid',\n remove_script_host: false,\n relative_urls: false,\n file_picker_types: 'image',\n automatic_uploads: true,\n image_advtab: true,\n file_picker_callback: function(cb, value, meta) {\n var input = document.createElement('input');\n input.setAttribute('type', 'file');\n input.setAttribute('accept', 'image/*');\n\n input.onchange = function() {\n var file = this.files[0];\n var reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = function () {\n var id = 'blobid' + (new Date()).getTime();\n var blobCache = tinymce.activeEditor.editorUpload.blobCache;\n var base64 = reader.result.split(',')[1];\n var blobInfo = blobCache.create(id, file, base64);\n blobCache.add(blobInfo);\n\n cb(blobInfo.blobUri(), { title: file.name });\n };\n };\n input.click();\n }\n });\n </script>\n \";\n \n echo \"\n <form class='content' action='http://{$_SERVER['SERVER_NAME']}/mailmaid/campaign/edit' method='post'>\n <div class='main'>\n <textarea name='content' id='message'>\n {$this->params['content']}\n </textarea>\n </div>\n <div class='sidebar'>\n \";\n \n switch($this->params['status']) {\n case 1:\n echo \"<p class='status blue'>Status: Ready</p>\";\n break;\n case 2:\n echo \"<p class='status yellow'>Status: Ongoing</p>\";\n break;\n case 3:\n echo \"<p class='status red'>Status: Paused</p>\";\n break;\n case 4:\n echo \"<p class='status green'>Status: Finished</p>\";\n break;\n }\n \n echo \"\n <input name='token' type='hidden' value='{$this->params['token']}'>\n <input name='campaignId' type='hidden' value='{$this->params['id']}'>\n <label for='campaign'>Campaign Name</label>\n <input name='campaign' placeholder='Campaign Name' value='{$this->params['name']}' id='campaign' type='text' required>\n <label for='subject'>Subject</label>\n <input value='{$this->params['subject']}' name='subject' placeholder='Subject' id='subject' type='text' required>\n <label for='list'>List</label>\n \";\n \n if ($this->params['status'] != 1) {\n echo \"<select name='list' id='list' disabled>\";\n } else {\n echo \"<select name='list' id='list'>\";\n }\n \n foreach($this->params['list'] as $list) {\n if ($list['id'] == $this->params['listId']) {\n echo \"<option value='{$list['id']}' selected>{$list['name']}</option>\";\n } else {\n echo \"<option value='{$list['id']}'>{$list['name']}</option>\";\n }\n }\n \n echo \"</select>\";\n \n switch($this->params['status']) {\n case 1:\n echo \"\n <input name='save' class='blue' type='submit' value='Save'>\n <input name='operate' class='green' type='submit' value='Start'>\";\n break;\n case 2:\n echo \"\n <input onclick=\\\"return confirm('Are you sure you want to edit content? This will not affect sent mails.');\\\" name='save' class='blue' type='submit' value='Save'>\n <input name='operate' class='green' type='submit' value='Pause'>\";\n break;\n case 3:\n echo \"\n <input onclick=\\\"return confirm('Are you sure you want to edit content? This will not affect sent mails.');\\\" name='save' class='blue' type='submit' value='Save'>\n <input name='operate' class='green' type='submit' value='Resume'>\";\n break;\n }\n \n echo \"\n <input onclick=\\\"return confirm('Are you sure you want to delete this campaign?');\\\" name='delete' class='red' type='submit' value='Delete'>\n </div>\n </form>\n \";\n \n echo \"\n <div class='clearfix'></div>\n <p class='progress'>Target: {$this->params['progress']['target']} Mails | Sent: {$this->params['progress']['sent']} ({$this->params['progress']['sentPercent']}%) | Failed: {$this->params['progress']['failed']} ({$this->params['progress']['failedPercent']}%)</p>\n <div id='links' class='links'>\n <p class='title'>Traceable Links</p>\n <div class='header'>\n <span>Link</span>\n <span>Direction</span>\n <span>Operation</span>\n </div>\n \";\n \n foreach($this->params['links'] as $link) {\n echo \"\n <div id='link-{$link['id']}' class='link'>\n <span>{$link['link']}</span>\n <span>{$link['direction']}</span>\n <span>\n <button type='button' id='{$link['id']}'>Delete</button>\n </span>\n </div>\n \";\n }\n \n echo \"\n </div>\n <form class='createLink' onkeypress='return event.keyCode != 13;'>\n <input placeholder='Link (http://www.sample.com/products?id=10)' id='link' type='url' pattern='https?://.+' title='Include http://'>\n <input id='campaignId' type='hidden' value='{$this->params['id']}'>\n <button id='createLink' type='button'>Create Traceable Link</button>\n </form>\n <p id='alert' class='alert disabled'>Please use a valid URL. It should include \\\"http://\\\" or \\\"https://\\\"</p>\n \";\n \n echo \"\n <div class='canvas'>\n <canvas id='campaignEngagement'></canvas>\n <button id='ce-1' type='button'>Last 24 Hours</button>\n <button id='ce-2' type='button'>Last 7 Days</button>\n <button id='ce-3' type='button'>This Year</button>\n </div>\n \";\n \n echo \"\n <div class='canvas'>\n <canvas id='mailSent'></canvas>\n <button id='ms-1' type='button'>Last 24 Hours</button>\n <button id='ms-2' type='button'>Last 7 Days</button>\n <button id='ms-3' type='button'>This Year</button>\n </div>\n \";\n }", "title": "" }, { "docid": "20a75c288ae529a53fee841bb39bae1f", "score": "0.61934835", "text": "public function addTinyMCEPlugin( $plugins ) {\n\t\t\tif ( empty( $plugins[ self::JS_SHORTCODE_VAR ] ) ) {\n\t\t\t\t$plugins[ self::JS_SHORTCODE_VAR ] = TitanFramework::getURL( 'admin-shortcodes.js', __FILE__ );\n\t\t\t}\n\t\t\treturn $plugins;\n\t\t}", "title": "" }, { "docid": "b34352d2bcdb1d754fb466b99ec9108e", "score": "0.61907536", "text": "public function __construct()\n {\n add_action('wp_enqueue_scripts', array($this, 'style'));\n add_action('admin_init', array($this, 'editorStyle'));\n\n // Enqueue admin styles\n add_action( 'admin_enqueue_scripts', array($this, 'tr_admin_styles'));\n\n // Set front-page template\n add_action( 'init', array($this, 'tr_set_frontpage') );\n\n // Get posts by post_title\n add_filter( 'posts_where', array($this, 'title_like_posts_where'), 10, 2 );\n\n // Image plugin\n add_action('wp_enqueue_media', $func =\n function() {\n remove_action('admin_footer', 'wp_print_media_templates');\n add_action('admin_footer', array($this, 'tr_custom_image_view') );\n }\n );\n\n // Allow SVG uploads\n add_filter('upload_mimes', array($this, 'cc_mime_types') );\n\n // Attach callback to 'tiny_mce_before_init' \n add_filter( 'tiny_mce_before_init', array($this, 'tr_modify_block_formats') ); \n add_filter( 'tiny_mce_before_init', array($this, 'tr_extended_valid_elements') );\n //add_filter( 'tiny_mce_before_init', array($this, 'my_mce_before_init') );\n add_filter( 'tiny_mce_before_init', array($this, 'my_mce4_options') );\n add_filter( 'tiny_mce_before_init', array($this, 'tr_tinymce_body_class') );\n \n // Load the TinyMCE plugin : editor_plugin.js (wp2.5)\n add_filter( 'mce_external_plugins', array($this, 'myplugin_register_tinymce_javascript'));\n add_filter( 'mce_buttons_2', array($this, 'tr_register_mce_buttons') );\n add_filter( 'mce_buttons_3', array($this, 'tr_register_mce_target_audience') );\n add_filter( 'mce_buttons', array($this, 'tr_remove_mce_buttons') );\n add_filter( 'mce_buttons_2', array($this, 'tr_remove_mce_2_buttons') );\n //add_filter( 'mce_buttons_3', array($this, 'tr_register_mce_3_buttons') );\n \n\n add_filter( 'image_send_to_editor', array($this, 'html5_insert_image'), 10, 8 );\n add_filter( 'disable_captions', create_function('$a', 'return true;') );\n\n // Wrap all images in figure tag\n // add_filter( 'image_send_to_editor', array($this, 'html5_insert_image'), 10, 8 );\n \n add_filter( 'revision_text_diff_options', array($this, 'modifyVersion') );\n \n //add_filter( 'process_text_diff_html', array($this, 'custom_hook'), 10, 3 );\n \n }", "title": "" }, { "docid": "443437ff4260d0dfdeb6e4ef62daf9af", "score": "0.61864704", "text": "function addTinymcePlugins($plugin_array) {\r\n\t\t\t$baseUrl = IHomefinderUrlFactory::getInstance()->getBaseUrl() ;\r\n $optimaExpressGalleryPluginUrl= $baseUrl . '/wp-content/plugins/' . plugin_basename( dirname(__FILE__) ) . '/tinymce/optimaExpressGallery/editor_plugin.js';\r\n\t\t\t$plugin_array['optimaExpressGallery'] = $optimaExpressGalleryPluginUrl ;\t\t\t\t\t\t\r\n\t\t\treturn $plugin_array;\r\n\t\t}", "title": "" }, { "docid": "62fecec47f745016e21b19788ed39c05", "score": "0.61844504", "text": "function shortcode_button($plugin_array)\r\n{\r\n $plugin_array[\"kenplayer_button_plugin\"] = plugin_dir_url(__FILE__) . \"js/tinymce.js\";\r\n return $plugin_array;\r\n}", "title": "" }, { "docid": "8c0ea3edde724b4b924d86ba38bb0f55", "score": "0.61670107", "text": "function my_mce4_options( $init ) {\n\n\t$custom_colours = '\n\t\t\"037573\", \"Primary Color\",\n\t\t\"225e9c\", \"Secondary Color\",\n\t\t\"414141\", \"Light Gray\",\n\t\t\"444444\", \"Medium Gray\",\n\t\t\"494949\", \"Dark Gray\",\n\t\t\"037573\", \"Success\",\n\t\t\"ffae00\", \"Warning\",\n\t\t\"cc4b37\", \"Alert\",\n\t\t\"ffffff\", \"White\",\n\t\t\"000000\", \"Black\"\n\t';\n\n\t// build colour grid default+custom colors.\n\t$init['textcolor_map'] = '[' . $custom_colours . ']';\n\n\t// change the number of rows in the grid if the number of colors changes.\n\t// 8 swatches per row.\n\t$init['textcolor_rows'] = 2;\n\n\treturn $init;\n}", "title": "" }, { "docid": "0f3ba5eb4ea7002fffef39cd0e3df76e", "score": "0.6164284", "text": "public static function js_wp_editor() {\n\t\tif ( ! class_exists( '\\_WP_Editors' ) ) {\n\t\t\trequire( ABSPATH . WPINC . '/class-wp-editor.php' );\n\t\t}\n\n\t\t$set = \\_WP_Editors::parse_settings( 'wpjsfsp_id', array() );\n\n\t\tif ( ! current_user_can( 'upload_files' ) ) {\n\t\t\t$set['media_buttons'] = false;\n\t\t}\n\n\t\tif ( $set['media_buttons'] ) {\n\t\t\twp_enqueue_style( 'buttons' );\n\t\t\twp_enqueue_script( 'thickbox' );\n\t\t\twp_enqueue_style( 'thickbox' );\n\t\t\twp_enqueue_script( 'media-upload' );\n\t\t\twp_enqueue_script( 'wp-embed' );\n\n\t\t\t$post = get_post( 1 );\n\t\t\tif ( ! $post && ! empty( $GLOBALS['post_ID'] ) ) {\n\t\t\t\t$post = $GLOBALS['post_ID'];\n\t\t\t}\n\t\t\twp_enqueue_media( array(\n\t\t\t\t'post' => $post,\n\t\t\t) );\n\t\t}\n\n\t\t\\_WP_Editors::editor_settings( 'wpjsfsp_id', $set );\n\n\t\twp_localize_script( 'wpjsfsp-admin', 'wpjsfsp_wpeditor_vars', array(\n\t\t\t'url' => get_home_url(),\n\t\t\t'includes_url' => includes_url(),\n\t\t) );\n\t}", "title": "" }, { "docid": "21a7fa281a024a60e451a336b39683f1", "score": "0.6151844", "text": "function myextensionTinyMCE($init) {\n $ext = 'span[id|name|class|style]';\n if ( isset( $init['extended_valid_elements'] ) ) {\n $init['extended_valid_elements'] .= ',' . $ext;\n } else {\n $init['extended_valid_elements'] = $ext;\n }\n return $init;\n}", "title": "" }, { "docid": "acbdfce600105a5595f993d9dba4da5d", "score": "0.61471033", "text": "function override_mce_options($initArray) {\n $opts = '*[*]';\n $initArray['valid_elements'] = $opts;\n $initArray['extended_valid_elements'] = $opts;\n\n return $initArray;\n}", "title": "" }, { "docid": "07c9b3e4acabfa8605c492bd27405c34", "score": "0.6142069", "text": "public function editor_scripts() {\n \n wp_enqueue_script(\n\t\t\t\t'premium-temps-editor',\n\t\t\t\tPREMIUM_ADDONS_URL . 'assets/editor/templates/js/editor.js',\n\t\t\t\tarray(\n 'jquery',\n 'underscore',\n 'backbone-marionette'\n ),\n\t\t\t\tPREMIUM_ADDONS_VERSION,\n\t\t\t\ttrue\n\t\t\t);\n \n $button = Templates\\premium_templates()->config->get('premium_temps');\n \n wp_localize_script( 'premium-temps-editor', 'PremiumTempsData', apply_filters(\n 'premium-templates-core/assets/editor/localize',\n array(\n 'PremiumTemplatesBtn' => $button,\n 'modalRegions' => $this->get_modal_region(),\n 'license' => array(\n 'status' => Templates\\premium_templates()->config->get('status'),\n 'activateLink' => Templates\\premium_templates()->config->get('license_page'),\n 'proMessage' => Templates\\premium_templates()->config->get('pro_message')\n )\n ))\n );\n \n }", "title": "" }, { "docid": "924173d4c598dc4fe8837f0c05482352", "score": "0.613822", "text": "function spnp_add_tinymce_plugin($plugin_array) {\n\t\t$plugin_array['spnpnextpage'] = trailingslashit(get_bloginfo('wpurl')).'index.php?spnp-action=spnp-admin-js';\n\t\treturn $plugin_array;\n\t}", "title": "" }, { "docid": "8e30badaa82bbd163662c11c981b10da", "score": "0.6136857", "text": "public function editor_scripts() {\n // wp_register_script( '', CHAMAN_ADDONS_ROOT . '/assets/css/widgets/sample-widget.css' );\n }", "title": "" }, { "docid": "f00bdec0bf8a43dbf2e1e76d893f660a", "score": "0.61235553", "text": "public function init() {\n\t\tadd_shortcode( $this->shortcode , array( $this, 'replace_shortcode') );\n\t\tadd_filter('mce_external_plugins', array($this, 'register_mce_plugins') );\n\t\tadd_filter('tiny_mce_before_init', array($this, 'tinymce_settings') );\n\t\tadd_filter('aesop_avail_components', array($this, 'register_aesop_component') );\n\t}", "title": "" }, { "docid": "ef9de7b38b882a42ae2edbb7fbc85019", "score": "0.6063938", "text": "function sith() { \n\t\t\t\tglobal $BF, $PROJECT_ADDRESS;\n\t\t\t\n?>\t<script type='text/javascript'>\n\t\tvar page = 'edit';\n\t\tfunction flagchange(file) {\n\t\t\tif(file != '') {\n\t\t\t\tdocument.getElementById('filepreview').innerHTML = \"<img src='\"+BF+\"images/geoflags/\"+file+\"' alt='\"+file+\"' />\";\n\t\t\t} else {\n\t\t\t\tdocument.getElementById('filepreview').innerHTML = \"\";\n\t\t\t}\n\t\t}\n\t</script>\n\t<script type='text/javascript' src='error_check.js'></script>\n\t<script type=\"text/javascript\" src=\"<?=$BF?>components/tiny_mce/tiny_mce_gzip.js\"></script>\n\t<script type=\"text/javascript\">\n\ttinyMCE_GZ.init({\n\t\tplugins : 'style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras',\n\t\tthemes : 'simple,advanced',\n\t\tlanguages : 'en',\n\t\tdisk_cache : true,\n\t\tdebug : false\n\t});\n\t</script>\n\t<!-- Needs to be seperate script tags! -->\n\t<script language=\"javascript\" type=\"text/javascript\">\n\t\ttinyMCE.init({\n\t\t\tmode : \"textareas\",\n\t\t\tplugins : \"style,layer,table,save,advhr,advimage,advlink,emotions,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,filemanager\",\n\t\t\ttheme_advanced_buttons1_add : \"fontselect,fontsizeselect\",\n\t\t\ttheme_advanced_buttons2_add : \"separator,forecolor,backcolor\",\n\t\t\ttheme_advanced_buttons2_add_before: \"cut,copy,paste,pastetext,pasteword,separator\",\n\t\t\ttheme_advanced_buttons3_add : \"emotions,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen\",\n\t\t\ttheme_advanced_toolbar_location : \"top\",\n\t\t\ttheme_advanced_path_location : \"bottom\",\n\t\t\tcontent_css : \"/example_data/example_full.css\",\n\t\t plugin_insertdate_dateFormat : \"%Y-%m-%d\",\n\t\t plugin_insertdate_timeFormat : \"%H:%M:%S\",\n\t\t\textended_valid_elements : \"hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]\",\n\t\t\texternal_link_list_url : \"example_data/example_link_list.js\",\n\t\t\texternal_image_list_url : \"example_data/example_image_list.js\",\n\t\t\tflash_external_list_url : \"example_data/example_flash_list.js\",\n\t\t\tfile_browser_callback : \"mcFileManager.filebrowserCallBack\",\n\t\t\ttheme_advanced_resize_horizontal : false,\n\t\t\ttheme_advanced_resizing : true,\n\t\t\tapply_source_formatting : true,\n\t\t\t\n\t\t\tfilemanager_rootpath : \"<?=realpath($BF . 'uploads')?>\",\n\t\t\tfilemanager_path : \"<?=realpath($BF . 'uploads')?>\",\n\t\t\trelative_urls : false,\n\t\t\tdocument_base_url : \"<?=$PROJECT_ADDRESS?>\"\n\t\t});\n\t</script>\n\t<!-- /tinyMCE -->\n<?\n\t\t\t}", "title": "" }, { "docid": "eb3bf429d218272260c2ebf1b00e7e1f", "score": "0.6062121", "text": "function add_mce_popup() {\n\t\t\t$is_post_edit_page = in_array( basename( $_SERVER['PHP_SELF'] ), array(\n\t\t\t\t'post.php',\n\t\t\t\t'page.php',\n\t\t\t\t'page-new.php',\n\t\t\t\t'post-new.php',\n\t\t\t) );\n\t\t\tif ( ! $is_post_edit_page ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( ! post_type_supports( get_post_type(), 'editor' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t?>\n\n\t\t\t<script>\n\t\t\t\tfunction WPSEO_InsertMap() {\n\t\t\t\t\tvar wrapper = jQuery('#wpseo_add_map');\n\t\t\t\t\tvar location_id = jQuery(\"#wpseo_map_location_id\").val();\n\t\t\t\t\tvar term_id = jQuery(\"#wpseo_map_term_id\").val();\n\t\t\t\t\tvar center_id = jQuery(\"#wpseo_map_center_location_id\").val();\n\n\t\t\t\t\t<?php if ( wpseo_has_multiple_locations() ) { ?>\n\t\t\t\t\tif (location_id == '') {\n\t\t\t\t\t\talert(\"<?php _e( 'Please select a location', 'yoast-local-seo' ); ?>\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t<?php } ?>\n\n\t\t\t\t\tvar map_style = jQuery('input[name=wpseo_map_style]:checked', '.wpseo_map_style').val()\n\t\t\t\t\tvar width = jQuery(\"#wpseo_map_width\").val();\n\t\t\t\t\tvar height = jQuery(\"#wpseo_map_height\").val();\n\t\t\t\t\tvar zoom = jQuery(\"#wpseo_map_zoom\").val();\n\t\t\t\t\tvar scrollable = jQuery(\"#wpseo_map_scrollable\").is(\":checked\") ? ' scrollable=\"1\"' : ' scrollable=\"0\"';\n\t\t\t\t\tvar draggable = jQuery(\"#wpseo_map_draggable\").is(\":checked\") ? ' draggable=\"1\"' : ' draggable=\"0\"';\n\t\t\t\t\tvar show_route = jQuery(\"#wpseo_map_show_route\").is(\":checked\") ? ' show_route=\"1\"' : ' show_route=\"0\"';\n\t\t\t\t\tvar show_state = jQuery(\"#wpseo_map_show_state\").is(\":checked\") ? ' show_state=\"1\"' : ' show_state=\"0\"';\n\t\t\t\t\tvar show_country = jQuery(\"#wpseo_map_show_country\").is(\":checked\") ? ' show_country=\"1\"' : '';\n\t\t\t\t\tvar show_url = jQuery(\"#wpseo_map_show_url\").is(\":checked\") ? ' show_url=\"1\"' : '';\n\t\t\t\t\tvar show_email = jQuery(\"#wpseo_map_show_email\").is(\":checked\") ? ' show_email=\"1\"' : '';\n\t\t\t\t\tvar show_category_filter = jQuery(\"#wpseo_map_show_category_filter\").is(\":checked\") ? ' show_category_filter=\"1\"' : '';\n\n\t\t\t\t\tvar id = '';\n\t\t\t\t\tif (location_id != 'undefined' && typeof location_id != 'undefined') {\n\t\t\t\t\t\tid = \"id=\\\"\" + location_id + \"\\\" \";\n\t\t\t\t\t}\n\n\t\t\t\t\tvar term = '';\n\t\t\t\t\tif (term_id != 'undefined' && typeof term_id != 'undefined' && term_id != '') {\n\t\t\t\t\t\tterm = \"term_id=\\\"\" + term_id + \"\\\" \";\n\t\t\t\t\t}\n\n\t\t\t\t\tvar center = ''\n\t\t\t\t\tif (center_id != 'undefined' && typeof center_id != 'undefined' && center_id != '') {\n\t\t\t\t\t\tcenter = \"center=\\\"\" + center_id + \"\\\" \";\n\t\t\t\t\t}\n\n\t\t\t\t\tvar default_show_infowindow = '';\n\t\t\t\t\tif (location_id != 'all' && jQuery(\"#wpseo_show_popup_default\").is(\":checked\")) {\n\t\t\t\t\t\tdefault_show_infowindow = \" default_show_infowindow=\\\"1\\\"\";\n\t\t\t\t\t}\n\n\t\t\t\t\twindow.send_to_editor(\"[wpseo_map \" + id + term + center + \" width=\\\"\" + width + \"\\\" height=\\\"\" + height + \"\\\" zoom=\\\"\" + zoom + \"\\\" map_style=\\\"\" + map_style + \"\\\"\" + scrollable + draggable + show_route + show_state + show_country + show_url + show_email + show_category_filter + default_show_infowindow + \"]\");\n\t\t\t\t}\n\t\t\t\tfunction WPSEO_InsertAddress() {\n\t\t\t\t\tvar location_id = jQuery(\"#wpseo_address_location_id\").val();\n\t\t\t\t\tvar term_id = jQuery(\"#wpseo_address_term_id\").val();\n\n\t\t\t\t\t<?php if ( wpseo_has_multiple_locations() ) { ?>\n\t\t\t\t\tif (location_id == '') {\n\t\t\t\t\t\talert(\"<?php _e( 'Please select a location', 'yoast-local-seo' ); ?>\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t<?php } ?>\n\t\t\t\t\tvar hide_name = jQuery(\"#wpseo_hide_name\").is(\":checked\") ? ' hide_name=\"1\"' : '';\n\t\t\t\t\tvar hide_address = jQuery(\"#wpseo_hide_address\").is(\":checked\") ? ' hide_address=\"1\"' : '';\n\t\t\t\t\tvar oneline = jQuery(\"#wpseo_oneline\").is(\":checked\") ? ' oneline=\"1\"' : '';\n\t\t\t\t\tvar show_state = jQuery(\"#wpseo_show_state\").is(\":checked\") ? ' show_state=\"1\"' : ' show_state=\"0\"';\n\t\t\t\t\tvar show_country = jQuery(\"#wpseo_show_country\").is(\":checked\") ? ' show_country=\"1\"' : ' show_country=\"0\"';\n\t\t\t\t\tvar show_phone = jQuery(\"#wpseo_show_phone\").is(\":checked\") ? ' show_phone=\"1\"' : ' show_phone=\"0\"';\n\t\t\t\t\tvar show_phone_2 = jQuery(\"#wpseo_show_phone_2nd\").is(\":checked\") ? ' show_phone_2=\"1\"' : ' show_phone_2=\"0\"';\n\t\t\t\t\tvar show_fax = jQuery(\"#wpseo_show_fax\").is(\":checked\") ? ' show_fax=\"1\"' : ' show_fax=\"0\"';\n\t\t\t\t\tvar show_email = jQuery(\"#wpseo_show_email\").is(\":checked\") ? ' show_email=\"1\"' : ' show_email=\"0\"';\n\t\t\t\t\tvar show_url = jQuery(\"#wpseo_show_url\").is(\":checked\") ? ' show_url=\"1\"' : '';\n\t\t\t\t\tvar show_logo = jQuery(\"#wpseo_show_logo\").is(\":checked\") ? ' show_logo=\"1\"' : ' show_logo=\"0\"';\n\t\t\t\t\tvar show_vat = jQuery(\"#wpseo_show_vat_id\").is(\":checked\") ? ' show_vat=\"1\"' : '';\n\t\t\t\t\tvar show_tax = jQuery(\"#wpseo_show_tax_id\").is(\":checked\") ? ' show_tax=\"1\"' : '';\n\t\t\t\t\tvar show_coc = jQuery(\"#wpseo_show_coc_id\").is(\":checked\") ? ' show_coc=\"1\"' : '';\n\t\t\t\t\tvar show_opening_hours = jQuery(\"#wpseo_show_opening_hours\").is(\":checked\") ? ' show_opening_hours=\"1\"' : '';\n\t\t\t\t\tvar hide_closed = jQuery(\"#wpseo_hide_closed\").is(\":checked\") ? ' hide_closed=\"1\"' : '';\n\t\t\t\t\tvar comment_string = jQuery(\"#wpseo_comment\").val();\n\t\t\t\t\tvar orderby = '';\n\t\t\t\t\tvar order = '';\n\n\t\t\t\t\tvar id = '';\n\t\t\t\t\tif (location_id != 'undefined' && typeof location_id != 'undefined') {\n\t\t\t\t\t\tid = \"id=\\\"\" + location_id + \"\\\" \";\n\t\t\t\t\t}\n\n\t\t\t\t\tvar term = '';\n\t\t\t\t\tif (term_id != 'undefined' && typeof term_id != 'undefined' && term_id != '') {\n\t\t\t\t\t\tterm = \"term_id=\\\"\" + term_id + \"\\\" \";\n\t\t\t\t\t}\n\n\t\t\t\t\tvar shortcode_name = 'wpseo_address';\n\t\t\t\t\tif (location_id == 'all') {\n\t\t\t\t\t\tshortcode_name = 'wpseo_all_locations';\n\n\t\t\t\t\t\torderby = ' orderby=' + jQuery(\"#wpseo_address_all_locations_orderby\").val();\n\t\t\t\t\t\torder = ' order=' + jQuery(\"#wpseo_address_all_locations_order\").val();\n\t\t\t\t\t}\n\n\t\t\t\t\tvar comment = '';\n\t\t\t\t\tif (comment_string != '') {\n\t\t\t\t\t\tcomment = ' comment=\"' + comment_string + '\"';\n\t\t\t\t\t}\n\n\t\t\t\t\twindow.send_to_editor(\"[\" + shortcode_name + \" \" + id + term + hide_name + hide_address + oneline + show_state + show_country + show_phone + show_phone_2 + show_fax + show_email + show_url + show_vat + show_tax + show_coc + show_logo + show_opening_hours + hide_closed + comment + orderby + order + \"]\");\n\t\t\t\t}\n\t\t\t\tfunction WPSEO_InsertOpeningHours() {\n\t\t\t\t\tvar wrapper = jQuery('#wpseo_add_opening_hours');\n\n\t\t\t\t\tvar location_id = jQuery(\"#wpseo_oh_location_id\").val();\n\t\t\t\t\tif (location_id == '') {\n\t\t\t\t\t\talert(\"<?php _e( 'Please select a location', 'yoast-local-seo' ); ?>\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tvar id = '';\n\t\t\t\t\tif (location_id != 'undefined' && typeof location_id != 'undefined') {\n\t\t\t\t\t\tid = \"id=\\\"\" + location_id + \"\\\" \";\n\t\t\t\t\t}\n\t\t\t\t\tvar show_days = new Array();\n\n\t\t\t\t\tif (jQuery(\"#wpseo_oh_show_sunday\").is(\":checked\")) {\n\t\t\t\t\t\tshow_days.push(jQuery(\"#wpseo_oh_show_sunday\").val())\n\t\t\t\t\t}\n\t\t\t\t\tif (jQuery(\"#wpseo_oh_show_monday\").is(\":checked\")) {\n\t\t\t\t\t\tshow_days.push(jQuery(\"#wpseo_oh_show_monday\").val())\n\t\t\t\t\t}\n\t\t\t\t\tif (jQuery(\"#wpseo_oh_show_tuesday\").is(\":checked\")) {\n\t\t\t\t\t\tshow_days.push(jQuery(\"#wpseo_oh_show_tuesday\").val())\n\t\t\t\t\t}\n\t\t\t\t\tif (jQuery(\"#wpseo_oh_show_wednesday\").is(\":checked\")) {\n\t\t\t\t\t\tshow_days.push(jQuery(\"#wpseo_oh_show_wednesday\").val())\n\t\t\t\t\t}\n\t\t\t\t\tif (jQuery(\"#wpseo_oh_show_thursday\").is(\":checked\")) {\n\t\t\t\t\t\tshow_days.push(jQuery(\"#wpseo_oh_show_thursday\").val())\n\t\t\t\t\t}\n\t\t\t\t\tif (jQuery(\"#wpseo_oh_show_friday\").is(\":checked\")) {\n\t\t\t\t\t\tshow_days.push(jQuery(\"#wpseo_oh_show_friday\").val())\n\t\t\t\t\t}\n\t\t\t\t\tif (jQuery(\"#wpseo_oh_show_saturday\").is(\":checked\")) {\n\t\t\t\t\t\tshow_days.push(jQuery(\"#wpseo_oh_show_saturday\").val())\n\t\t\t\t\t}\n\t\t\t\t\tvar comment_string = jQuery(\"#wpseo_oh_comment\").val();\n\n\t\t\t\t\tvar hide_closed = jQuery(\"#wpseo_oh_hide_closed\").is(\":checked\") ? ' hide_closed=\"1\"' : '';\n\n\t\t\t\t\tvar comment = '';\n\t\t\t\t\tif (comment_string != '') {\n\t\t\t\t\t\tcomment = ' comment=\"' + comment_string + '\"';\n\t\t\t\t\t}\n\n\t\t\t\t\twindow.send_to_editor(\"[wpseo_opening_hours \" + id + hide_closed + \"show_days=\\\"\" + show_days + \"\\\"\" + comment + \"]\");\n\t\t\t\t}\n\t\t\t\t<?php if ( wpseo_has_multiple_locations() ) { ?>\n\t\t\t\tfunction WPSEO_InsertStorelocator() {\n\t\t\t\t\tvar show_map = jQuery(\"#wpseo_sl_show_map\").is(\":checked\") ? ' show_map=\"1\"' : ' show_map=\"0\"';\n\t\t\t\t\tvar scrollable = jQuery(\"#wpseo_sl_scrollable\").is(\":checked\") ? ' scrollable=\"1\"' : ' scrollable=\"0\"';\n\t\t\t\t\tvar draggable = jQuery(\"#wpseo_sl_draggable\").is(\":checked\") ? ' draggable=\"1\"' : ' draggable=\"0\"';\n\t\t\t\t\tvar show_radius = jQuery(\"#wpseo_sl_show_radius\").is(\":checked\") ? ' show_radius=\"1\"' : '';\n\t\t\t\t\tvar show_nearest_suggestion = jQuery(\"#wpseo_sl_show_nearest_suggestion\").is(\":checked\") ? ' show_nearest_suggestion=\"1\"' : ' show_nearest_suggestion=\"0\"';\n\t\t\t\t\tvar show_filter = jQuery(\"#wpseo_sl_show_filter\").is(\":checked\") ? ' show_filter=\"1\"' : '';\n\t\t\t\t\tvar radius = ' radius=\"' + jQuery(\"#wpseo_sl_radius\").val() + '\"';\n\n\t\t\t\t\tvar map_style = jQuery('input[name=wpseo_sl_map_style]:checked', '.wpseo_map_style').val()\n\t\t\t\t\tvar oneline = jQuery(\"#wpseo_sl_oneline\").is(\":checked\") ? ' oneline=\"1\"' : '';\n\t\t\t\t\tvar show_state = jQuery(\"#wpseo_sl_show_state\").is(\":checked\") ? ' show_state=\"1\"' : '';\n\t\t\t\t\tvar show_country = jQuery(\"#wpseo_sl_show_country\").is(\":checked\") ? ' show_country=\"1\"' : '';\n\t\t\t\t\tvar show_phone = jQuery(\"#wpseo_sl_show_phone\").is(\":checked\") ? ' show_phone=\"1\"' : '';\n\t\t\t\t\tvar show_phone_2 = jQuery(\"#wpseo_sl_show_phone_2nd\").is(\":checked\") ? ' show_phone_2=\"1\"' : '';\n\t\t\t\t\tvar show_fax = jQuery(\"#wpseo_sl_show_fax\").is(\":checked\") ? ' show_fax=\"1\"' : '';\n\t\t\t\t\tvar show_email = jQuery(\"#wpseo_sl_show_email\").is(\":checked\") ? ' show_email=\"1\"' : '';\n\t\t\t\t\tvar show_url = jQuery(\"#wpseo_sl_show_url\").is(\":checked\") ? ' show_url=\"1\"' : '';\n\t\t\t\t\tvar show_opening_hours = jQuery(\"#wpseo_sl_show_opening_hours\").is(\":checked\") ? ' show_opening_hours=\"1\"' : '';\n\t\t\t\t\tvar hide_closed = jQuery(\"#wpseo_sl_hide_closed\").is(\":checked\") ? ' hide_closed=\"1\"' : '';\n\t\t\t\t\tvar show_category_filter = jQuery(\"#wpseo_sl_show_category_filter\").is(\":checked\") ? ' show_category_filter=\"1\"' : '';\n\t\t\t\t\twindow.send_to_editor(\"[wpseo_storelocator \" + show_map + scrollable + draggable + show_radius + show_nearest_suggestion + radius + show_filter + \" map_style=\\\"\" + map_style + \"\\\"\" + oneline + show_state + show_country + show_phone + show_phone_2 + show_fax + show_email + show_url + show_opening_hours + hide_closed + show_category_filter + \"]\");\n\t\t\t\t}\n\n\t\t\t\tfunction WPSEO_Address_Change_Order(obj) {\n\t\t\t\t\tif (jQuery(obj).val() == 'all') {\n\t\t\t\t\t\tjQuery('#wpseo_address_all_locations_order_wrapper').slideDown();\n\t\t\t\t\t\tjQuery('#wpseo_address_term_id').removeAttr('disabled');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tjQuery('#wpseo_address_all_locations_order_wrapper').slideUp();\n\t\t\t\t\t\tjQuery('#wpseo_address_term_id').val('');\n\t\t\t\t\t\tjQuery('#wpseo_address_term_id').attr('disabled', true);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction WPSEO_Address_Change_Term_Order(obj) {\n\t\t\t\t\tif (jQuery(obj).val() != 'all' && jQuery(obj).val() != '') {\n\t\t\t\t\t\tjQuery('#wpseo_address_location_id').val('all');\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction WPSEO_Map_Change_Location(obj) {\n\t\t\t\t\tif (jQuery(obj).val() != 'all') {\n\t\t\t\t\t\tjQuery('#wpseo_map_term_id').val('');\n\t\t\t\t\t\tjQuery('#wpseo_map_center_location_id').val('');\n\t\t\t\t\t\tjQuery('#wpseo_map_term_id').attr('disabled', true);\n\t\t\t\t\t\tjQuery('#wpseo_map_center_location_id').attr('disabled', true);\n\t\t\t\t\t\tjQuery('#wpseo_show_popup_default').removeAttr('disabled');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tjQuery('#wpseo_map_term_id').removeAttr('disabled');\n\t\t\t\t\t\tjQuery('#wpseo_map_center_location_id').removeAttr('disabled');\n\t\t\t\t\t\tjQuery('#wpseo_show_popup_default').attr('disabled', true);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfunction WPSEO_Map_Change_Term(obj) {\n\t\t\t\t\tif (jQuery(obj).val() != 'all' && jQuery(obj).val() != '') {\n\t\t\t\t\t\tjQuery('#wpseo_map_location_id').val('all');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t<?php } ?>\n\t\t\t</script>\n\n\t\t\t<div id=\"wpseo_add_map\" style=\"display:none;\">\n\t\t\t\t<div class=\"wrap\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t.wpseo-textfield {\n\t\t\t\t\t\t\t\twidth: 60px;\n\t\t\t\t\t\t\t\tborder: 1px solid #dfdfdf;\n\t\t\t\t\t\t\t\t-webkit-border-radius: 3px;\n\t\t\t\t\t\t\t\tborder-radius: 3px;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.wpseo-select {\n\t\t\t\t\t\t\t\twidth: 100px;\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.wpseo-for-textfield {\n\t\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\t\twidth: 100px;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t</style>\n\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<h2><?php esc_html_e( 'Insert Google Map', 'yoast-local-seo' ); ?></h2>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<?php if ( wpseo_has_multiple_locations() ) { ?>\n\t\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t\t<label for=\"wpseo_map_location_id\" class=\"screen-reader-text\"><?php esc_html_e( 'Location:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t\t<select id=\"wpseo_map_location_id\" onchange=\"WPSEO_Map_Change_Location( this )\">\n\t\t\t\t\t\t\t\t\t<option value=\"\"> -- <?php _e( 'Select a location', 'yoast-local-seo' ); ?> --</option>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$location_args = array(\n\t\t\t\t\t\t\t\t\t\t'post_type' => 'wpseo_locations',\n\t\t\t\t\t\t\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t\t\t\t\t\t\t'orderby' => 'title',\n\t\t\t\t\t\t\t\t\t\t'order' => 'ASC',\n\t\t\t\t\t\t\t\t\t\t'fields' => 'ids',\n\t\t\t\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\tif ( current_user_can( 'edit_posts' ) ) {\n\t\t\t\t\t\t\t\t\t\t$location_args['post_status'] = array(\n\t\t\t\t\t\t\t\t\t\t\t'publish',\n\t\t\t\t\t\t\t\t\t\t\t'draft',\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$locations = get_posts( $location_args );\n\n\t\t\t\t\t\t\t\t\tif ( ! empty( $locations ) ) {\n\t\t\t\t\t\t\t\t\t\techo '<option value=\"all\">' . __( 'All locations', 'yoast-local-seo' ) . '</option>';\n\n\t\t\t\t\t\t\t\t\t\tforeach ( $locations as $location_id ) { ?>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $location_id; ?>\" <?php selected( $location_id, get_the_ID(), true ); ?>><?php echo get_the_title( $location_id ); ?></option>\n\t\t\t\t\t\t\t\t\t\t\t<?php\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?>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_map_term_id\" class=\"screen-reader-text\"><?php esc_html_e( 'Category:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t\t<select id=\"wpseo_map_term_id\" onchange=\"WPSEO_Map_Change_Term( this )\" <?php echo( in_array( get_the_ID(), $locations ) ? 'disabled' : '' ); ?>>\n\t\t\t\t\t\t\t\t\t<option value=\"\"> -- <?php _e( 'Select a category', 'yoast-local-seo' ); ?> --</option>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$categories = get_terms( 'wpseo_locations_category', array(\n\t\t\t\t\t\t\t\t\t\t'hide_empty' => false,\n\t\t\t\t\t\t\t\t\t) );\n\n\t\t\t\t\t\t\t\t\tforeach ( $categories as $category ) {\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $category->term_id; ?>\"><?php echo $category->name; ?></option>\n\t\t\t\t\t\t\t\t\t\t<?php\n\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</select> <br><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_map_center_location_id\"><?php esc_html_e( 'Center map on this location:', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t\t<select id=\"wpseo_map_center_location_id\" <?php echo( in_array( get_the_ID(), $locations ) ? 'disabled' : '' ); ?>>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$location_args = array(\n\t\t\t\t\t\t\t\t\t\t'post_type' => 'wpseo_locations',\n\t\t\t\t\t\t\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t\t\t\t\t\t\t'orderby' => 'title',\n\t\t\t\t\t\t\t\t\t\t'order' => 'ASC',\n\t\t\t\t\t\t\t\t\t\t'fields' => 'ids',\n\t\t\t\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\tif ( current_user_can( 'edit_posts' ) ) {\n\t\t\t\t\t\t\t\t\t\t$location_args['post_status'] = array(\n\t\t\t\t\t\t\t\t\t\t\t'publish',\n\t\t\t\t\t\t\t\t\t\t\t'draft',\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$locations = get_posts( $location_args );\n\n\t\t\t\t\t\t\t\t\tif ( ! empty( $locations ) ) {\n\t\t\t\t\t\t\t\t\t\techo '<option value=\"\">' . __( 'All locations', 'yoast-local-seo' ) . '</option>';\n\n\t\t\t\t\t\t\t\t\t\tforeach ( $locations as $location_id ) {\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $location_id; ?>\"><?php echo get_the_title( $location_id ); ?></option>\n\t\t\t\t\t\t\t\t\t\t\t<?php\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?>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php } ?>\n\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<h2><?php esc_html_e( 'Map style', 'yoast-local-seo' ); ?></h2>\n\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\t$map_styles = array(\n\t\t\t\t\t\t\t\t\t'ROADMAP' => __( 'Roadmap', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t\t'HYBRID' => __( 'Hybrid', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t\t'SATELLITE' => __( 'Satellite', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t\t'TERRAIN' => __( 'Terrain', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\tforeach ( $map_styles as $key => $label ) {\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<li class=\"wpseo_map_style\" style=\"display: inline-block; width: 120px; height: 150px; margin-right: 10px;text-align: center;\">\n\t\t\t\t\t\t\t\t\t\t<label for=\"wpseo_map_style-<?php echo strtolower( $key ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t<img src=\"<?php echo plugins_url( '/images/map-' . strtolower( $key ) . '.png', dirname( __FILE__ ) ); ?>\" alt=\"\"><br>\n\t\t\t\t\t\t\t\t\t\t\t<?php echo $label; ?><br>\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"wpseo_map_style\" id=\"wpseo_map_style-<?php echo strtolower( $key ); ?>\" value=\"<?php echo strtolower( $key ); ?>\" <?php checked( 'ROADMAP', $key ); ?>>\n\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t<?php\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</ul>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<label class=\"wpseo-for-textfield\" for=\"wpseo_map_width\"><?php esc_html_e( 'Width:', 'yoast-local-seo' ); ?></label> <input type=\"text\" id=\"wpseo_map_width\" class=\"wpseo-textfield\" value=\"400\"><br>\n\t\t\t\t\t\t\t<label class=\"wpseo-for-textfield\" for=\"wpseo_map_height\"><?php esc_html_e( 'Height:', 'yoast-local-seo' ); ?></label> <input type=\"text\" id=\"wpseo_map_height\" class=\"wpseo-textfield\" value=\"300\"><br>\n\t\t\t\t\t\t\t<label class=\"wpseo-for-textfield\" for=\"wpseo_map_zoom\"><?php esc_html_e( 'Zoom level:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t<select id=\"wpseo_map_zoom\" class=\"wpseo-select\" value=\"300\">\n\t\t\t\t\t\t\t\t<option value=\"-1\"><?php _e( 'Auto', 'yoast-local-seo' ); ?></option>\n\t\t\t\t\t\t\t\t<option value=\"1\">1</option>\n\t\t\t\t\t\t\t\t<option value=\"2\">2</option>\n\t\t\t\t\t\t\t\t<option value=\"3\">3</option>\n\t\t\t\t\t\t\t\t<option value=\"4\">4</option>\n\t\t\t\t\t\t\t\t<option value=\"5\">5</option>\n\t\t\t\t\t\t\t\t<option value=\"6\">6</option>\n\t\t\t\t\t\t\t\t<option value=\"7\">7</option>\n\t\t\t\t\t\t\t\t<option value=\"8\">8</option>\n\t\t\t\t\t\t\t\t<option value=\"9\">9</option>\n\t\t\t\t\t\t\t\t<option value=\"10\">10</option>\n\t\t\t\t\t\t\t\t<option value=\"11\">11</option>\n\t\t\t\t\t\t\t\t<option value=\"12\">12</option>\n\t\t\t\t\t\t\t\t<option value=\"13\">13</option>\n\t\t\t\t\t\t\t\t<option value=\"14\">14</option>\n\t\t\t\t\t\t\t\t<option value=\"15\">15</option>\n\t\t\t\t\t\t\t\t<option value=\"16\">16</option>\n\t\t\t\t\t\t\t\t<option value=\"17\">17</option>\n\t\t\t\t\t\t\t\t<option value=\"18\">18</option>\n\t\t\t\t\t\t\t\t<option value=\"19\">19</option>\n\t\t\t\t\t\t\t</select><br>\n\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_scrollable\" checked=\"checked\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_map_scrollable\"><?php _e( 'Allow scrolling of the map', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_draggable\" checked=\"checked\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_map_draggable\"><?php _e( 'Allow dragging of the map', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_show_route\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_map_show_route\"><?php _e( 'Show route planner', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_show_popup_default\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_popup_default\"><?php _e( 'Show info-popup by default', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_show_state\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_map_show_state\"><?php _e( 'Show state in info-popup', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_show_country\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_map_show_country\"><?php _e( 'Show country in info-popup', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_show_url\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_map_show_url\"><?php _e( 'Show URL in info-popup', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_show_email\"/>\n\t\t\t\t\t\t\t<label for=\"wpseo_map_show_email\"><?php _e( 'Show email in info popup', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<?php if ( ! wpseo_has_multiple_locations() ) { ?>\n\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"wpseo_map_show_category_filter\"/>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_map_show_category_filter\"><?php _e( 'Show a filter for location categories under the map', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"padding:15px;\">\n\t\t\t\t\t\t\t<input type=\"button\" class=\"button button-primary\" value=\"<?php _e( 'Insert map', 'yoast-local-seo' ); ?>\" onclick=\"WPSEO_InsertMap();\"/>&nbsp;&nbsp;&nbsp;\n\t\t\t\t\t\t\t<a class=\"button\" href=\"#\" onclick=\"tb_remove(); return false;\"><?php _e( 'Cancel', 'yoast-local-seo' ); ?></a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id=\"wpseo_add_address\" style=\"display:none;\">\n\t\t\t\t<div class=\"wrap\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<h2><?php _e( 'Insert Address', 'yoast-local-seo' ); ?></h2>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<?php if ( wpseo_has_multiple_locations() ) { ?>\n\t\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t\t<label for=\"wpseo_address_location_id\" class=\"screen-reader-text\"><?php esc_html_e( 'Location:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t\t<select id=\"wpseo_address_location_id\" onchange=\"WPSEO_Address_Change_Order( this );\">\n\t\t\t\t\t\t\t\t\t<option value=\"\"> -- <?php _e( 'Select a location', 'yoast-local-seo' ); ?> --</option>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$location_args = array(\n\t\t\t\t\t\t\t\t\t\t'post_type' => 'wpseo_locations',\n\t\t\t\t\t\t\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t\t\t\t\t\t\t'orderby' => 'title',\n\t\t\t\t\t\t\t\t\t\t'order' => 'ASC',\n\t\t\t\t\t\t\t\t\t\t'fields' => 'ids',\n\t\t\t\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\tif ( current_user_can( 'edit_posts' ) ) {\n\t\t\t\t\t\t\t\t\t\t$location_args['post_status'] = array(\n\t\t\t\t\t\t\t\t\t\t\t'publish',\n\t\t\t\t\t\t\t\t\t\t\t'draft',\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$locations = get_posts( $location_args );\n\n\t\t\t\t\t\t\t\t\tif ( ! empty( $locations ) ) {\n\t\t\t\t\t\t\t\t\t\techo '<option value=\"all\">' . __( 'Show all locations', 'yoast-local-seo' ) . '</option>';\n\n\t\t\t\t\t\t\t\t\t\tforeach ( $locations as $location_id ) {\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $location_id; ?>\" <?php selected( $location_id, get_the_ID(), true ); ?>><?php echo get_the_title( $location_id ); ?></option>\n\t\t\t\t\t\t\t\t\t\t\t<?php\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?>\n\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t$categories = get_terms( 'wpseo_locations_category', array(\n\t\t\t\t\t\t\t\t\t'hide_empty' => false,\n\t\t\t\t\t\t\t\t) );\n\t\t\t\t\t\t\t\tif ( ! is_wp_error( $categories ) && ! empty( $categories ) ) {\n\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t<label for=\"wpseo_address_term_id\" class=\"screen-reader-text\"><?php esc_html_e( 'Category:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t\t\t<select id=\"wpseo_address_term_id\" onchange=\"WPSEO_Address_Change_Term_Order( this );\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"\"> -- <?php _e( 'Select a category', 'yoast-local-seo' ); ?> --</option>\n\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\tforeach ( $categories as $category ) {\n\t\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $category->term_id; ?>\"><?php echo $category->name; ?></option>\n\t\t\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t<?php } ?>\n\n\t\t\t\t\t\t\t\t<br/>\n\n\t\t\t\t\t\t\t\t<div id=\"wpseo_address_all_locations_order_wrapper\" style=\"display: none;\">\n\t\t\t\t\t\t\t\t\t<label for=\"wpseo_address_all_locations_orderby\"><?php esc_html_e( 'Order by:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t\t\t<select name=\"wpseo_address_all_locations_orderby\" id=\"wpseo_address_all_locations_orderby\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"title\"><?php _e( 'Alphabetical', 'yoast-local-seo' ); ?></option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"date\"><?php _e( 'By publish date', 'yoast-local-seo' ); ?></option>\n\t\t\t\t\t\t\t\t\t</select><br>\n\n\t\t\t\t\t\t\t\t\t<label for=\"wpseo_address_all_locations_order\"><?php esc_html_e( 'Order:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t\t\t<select name=\"wpseo_address_all_locations_order\" id=\"wpseo_address_all_locations_order\">\n\t\t\t\t\t\t\t\t\t\t<option value=\"ASC\"><?php _e( 'Ascending', 'yoast-local-seo' ); ?></option>\n\t\t\t\t\t\t\t\t\t\t<option value=\"DESC\"><?php _e( 'Descending', 'yoast-local-seo' ); ?></option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php } ?>\n\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<label for=\"wpseo_hide_name\"><input type=\"checkbox\" id=\"wpseo_hide_name\"/> <?php _e( 'Hide business name', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_hide_address\"><input type=\"checkbox\" id=\"wpseo_hide_address\"/> <?php _e( 'Hide business address', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_oneline\"><input type=\"checkbox\" id=\"wpseo_oneline\"/> <?php _e( 'Show address on one line', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_state\"><input type=\"checkbox\" id=\"wpseo_show_state\" checked/> <?php _e( 'Show state', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_country\"><input type=\"checkbox\" id=\"wpseo_show_country\" checked/> <?php _e( 'Show country', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_phone\"><input type=\"checkbox\" id=\"wpseo_show_phone\" checked/> <?php _e( 'Show phone number', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_phone_2nd\"><input type=\"checkbox\" id=\"wpseo_show_phone_2nd\" checked/> <?php _e( 'Show 2nd phone number', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_fax\"><input type=\"checkbox\" id=\"wpseo_show_fax\" checked/> <?php _e( 'Show fax number', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_email\"><input type=\"checkbox\" id=\"wpseo_show_email\" checked/> <?php _e( 'Show email', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_url\"><input type=\"checkbox\" id=\"wpseo_show_url\"/> <?php _e( 'Show URL', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_logo\"><input type=\"checkbox\" id=\"wpseo_show_logo\"/> <?php _e( 'Show logo', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_vat_id\"><input type=\"checkbox\" id=\"wpseo_show_vat_id\"/> <?php _e( 'Show VAT ID', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_tax_id\"><input type=\"checkbox\" id=\"wpseo_show_tax_id\"/> <?php _e( 'Show Tax ID', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_coc_id\"><input type=\"checkbox\" id=\"wpseo_show_coc_id\"/> <?php _e( 'Show Chamber of Commerce ID', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_show_opening_hours\"><input type=\"checkbox\" id=\"wpseo_show_opening_hours\"/> <?php _e( 'Show opening hours', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t<label for=\"wpseo_hide_closed\"><input type=\"checkbox\" id=\"wpseo_hide_closed\"/> <?php _e( 'Hide closed days', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<label for=\"wpseo_comment\"><?php esc_html_e( 'Extra comment', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<textarea id=\"wpseo_comment\" rows=\"5\" cols=\"50\"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"padding:15px;\">\n\t\t\t\t\t\t\t<input type=\"button\" class=\"button button-primary\" value=\"<?php _e( 'Insert address', 'yoast-local-seo' ); ?>\" onclick=\"WPSEO_InsertAddress();\"/>&nbsp;&nbsp;&nbsp;\n\t\t\t\t\t\t\t<a class=\"button\" href=\"javascript:\" onclick=\"tb_remove(); return false;\"><?php _e( 'Cancel', 'yoast-local-seo' ); ?></a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div id=\"wpseo_add_opening_hours\" style=\"display:none;\">\n\t\t\t\t<div class=\"wrap\">\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<h2><?php esc_html_e( 'Insert Opening Hours', 'yoast-local-seo' ); ?></h2>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<?php if ( wpseo_has_multiple_locations() ) { ?>\n\t\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t\t<label for=\"wpseo_oh_location_id\" class=\"screen-reader-text\"><?php esc_html_e( 'Location:', 'yoast-local-seo' ); ?></label>\n\t\t\t\t\t\t\t\t<select id=\"wpseo_oh_location_id\">\n\t\t\t\t\t\t\t\t\t<option value=\"\"> -- <?php _e( 'Select a location', 'yoast-local-seo' ); ?> --</option>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$location_args = array(\n\t\t\t\t\t\t\t\t\t\t'post_type' => 'wpseo_locations',\n\t\t\t\t\t\t\t\t\t\t'posts_per_page' => -1,\n\t\t\t\t\t\t\t\t\t\t'orderby' => 'title',\n\t\t\t\t\t\t\t\t\t\t'order' => 'ASC',\n\t\t\t\t\t\t\t\t\t\t'fields' => 'ids',\n\t\t\t\t\t\t\t\t\t\t'post_status' => 'publish',\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\tif ( current_user_can( 'edit_posts' ) ) {\n\t\t\t\t\t\t\t\t\t\t$location_args['post_status'] = array(\n\t\t\t\t\t\t\t\t\t\t\t'publish',\n\t\t\t\t\t\t\t\t\t\t\t'draft',\n\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t$locations = get_posts( $location_args );\n\n\t\t\t\t\t\t\t\t\tforeach ( $locations as $location_id ) {\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $location_id; ?>\" <?php selected( $location_id, get_the_ID(), true ); ?>><?php echo get_the_title( $location_id ); ?></option>\n\t\t\t\t\t\t\t\t\t\t<?php\n\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</select> <br/>\n\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<?php } ?>\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<h2><?php esc_html_e( 'Show Days', 'yoast-local-seo' ); ?></h2>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t$days = array(\n\t\t\t\t\t\t\t\t'sunday' => __( 'Sunday', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t'monday' => __( 'Monday', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t'tuesday' => __( 'Tuesday', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t'wednesday' => __( 'Wednesday', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t'thursday' => __( 'Thursday', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t'friday' => __( 'Friday', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t'saturday' => __( 'Saturday', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\tforeach ( $days as $key => $day ) {\n\t\t\t\t\t\t\t\t/* translators: %s extends to weekdays */\n\t\t\t\t\t\t\t\techo '<label for=\"wpseo_oh_show_' . $key . '\"><input type=\"checkbox\" id=\"wpseo_oh_show_' . $key . '\" value=\"' . $key . '\" checked />' . sprintf( __( 'Show %s', 'yoast-local-seo' ), $day ) . '</label><br>';\n\t\t\t\t\t\t\t} ?>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<label for=\"wpseo_oh_hide_closed\"><input type=\"checkbox\" id=\"wpseo_oh_hide_closed\"/> <?php _e( 'Hide closed days', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t<label for=\"wpseo_oh_comment\"><?php esc_html_e( 'Extra comment', 'yoast-local-seo' ); ?></label><br>\n\t\t\t\t\t\t\t<textarea id=\"wpseo_oh_comment\" rows=\"5\" cols=\"50\"></textarea>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"padding:15px;\">\n\t\t\t\t\t\t\t<input type=\"button\" class=\"button button-primary\" value=\"<?php _e( 'Insert opening hours', 'yoast-local-seo' ); ?>\" onclick=\"WPSEO_InsertOpeningHours();\"/>&nbsp;&nbsp;&nbsp;\n\t\t\t\t\t\t\t<a class=\"button\" href=\"javascript:\" onclick=\"tb_remove(); return false;\"><?php _e( 'Cancel', 'yoast-local-seo' ); ?></a>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\n\t\t\t<?php if ( wpseo_has_multiple_locations() ) { ?>\n\t\t\t\t<div id=\"wpseo_add_storelocator\" style=\"display:none;\">\n\t\t\t\t\t<div class=\"wrap\">\n\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t\t<h2><?php _e( 'Insert Store locator', 'yoast-local-seo' ); ?></h2>\n\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t<div style=\"padding:15px 15px 0 15px;\">\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_map\"><input type=\"checkbox\" id=\"wpseo_sl_show_map\" checked=\"checked\"/> <?php _e( 'Show Map with the search results', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_scrollable\"><input type=\"checkbox\" id=\"wpseo_sl_scrollable\" checked=\"checked\"/> <?php _e( 'Allow scrolling of the map', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_draggable\"><input type=\"checkbox\" id=\"wpseo_sl_draggable\" checked=\"checked\"/> <?php _e( 'Allow dragging of the map', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_filter\"><input type=\"checkbox\" id=\"wpseo_sl_show_filter\"/> <?php _e( 'Show filter to narrow down search results', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_radius\"><input type=\"checkbox\" id=\"wpseo_sl_show_radius\"/> <?php _e( 'Show radius to limit your search', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_nearest_suggestion\"><input type=\"checkbox\" id=\"wpseo_sl_show_nearest_suggestion\" checked=\"checked\"/> <?php _e( 'Show the nearest location, if none are found within radius', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\n\t\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t\t<?php /* translators: %s extends to the chosen unit system: km or mi */ ?>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_radius\"><?php printf( __( 'Search radius (in %s)', 'yoast-local-seo' ), ( empty( $this->options['unit_system'] ) || $this->options['unit_system'] == 'METRIC' ) ? 'km' : 'mi' ); ?>\n\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"wpseo_sl_radius\" value=\"10\"/></label><br>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style=\"padding:0 15px 0 15px;\">\n\t\t\t\t\t\t\t\t<h2><?php esc_html_e( 'Map style', 'yoast-local-seo' ); ?></h2>\n\t\t\t\t\t\t\t\t<p><?php esc_html_e( 'Please specify below how the search results should look like.', 'yoast-local-seo' ); ?></p>\n\t\t\t\t\t\t\t\t<ul>\n\t\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\t$map_styles = array(\n\t\t\t\t\t\t\t\t\t\t'ROADMAP' => __( 'Roadmap', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t\t\t'HYBRID' => __( 'Hybrid', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t\t\t'SATELLITE' => __( 'Satellite', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t\t\t'TERRAIN' => __( 'Terrain', 'yoast-local-seo' ),\n\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\tforeach ( $map_styles as $key => $label ) {\n\t\t\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t\t\t<li class=\"wpseo_map_style\" style=\"display: inline-block; width: 120px; height: 150px; margin-right: 10px;text-align: center;\">\n\t\t\t\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_map_style-<?php echo strtolower( $key ); ?>\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img src=\"<?php echo plugins_url( '/images/map-' . strtolower( $key ) . '.png', dirname( __FILE__ ) ); ?>\" alt=\"\"><br>\n\t\t\t\t\t\t\t\t\t\t\t\t<?php echo $label; ?><br>\n\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"wpseo_sl_map_style\" id=\"wpseo_sl_map_style-<?php echo strtolower( $key ); ?>\" value=\"<?php echo strtolower( $key ); ?>\" <?php checked( 'ROADMAP', $key ); ?>>\n\t\t\t\t\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t\t\t<?php\n\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</ul>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_oneline\"><input type=\"checkbox\" id=\"wpseo_sl_oneline\"/> <?php _e( 'Show address on one line', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_state\"><input type=\"checkbox\" id=\"wpseo_sl_show_state\"/> <?php _e( 'Show state', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_country\"><input type=\"checkbox\" id=\"wpseo_sl_show_country\"/> <?php _e( 'Show country', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_phone\"><input type=\"checkbox\" id=\"wpseo_sl_show_phone\"/> <?php _e( 'Show phone number', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_phone_2nd\"><input type=\"checkbox\" id=\"wpseo_sl_show_phone_2nd\"/> <?php _e( 'Show 2nd phone number', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_fax\"><input type=\"checkbox\" id=\"wpseo_sl_show_fax\"/> <?php _e( 'Show fax number', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_email\"><input type=\"checkbox\" id=\"wpseo_sl_show_email\"/> <?php _e( 'Show email', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_url\"><input type=\"checkbox\" id=\"wpseo_sl_show_url\"/> <?php _e( 'Show URL', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_opening_hours\"><input type=\"checkbox\" id=\"wpseo_sl_show_opening_hours\"/> <?php _e( 'Show opening hours', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_hide_closed\"><input type=\"checkbox\" id=\"wpseo_sl_hide_closed\"/> <?php _e( 'Hide closed days', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t\t<label for=\"wpseo_sl_show_category_filter\"><input type=\"checkbox\" id=\"wpseo_sl_show_category_filter\"/> <?php _e( 'Show category filter under the map', 'yoast-local-seo' ); ?>\n\t\t\t\t\t\t\t\t</label><br>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div style=\"padding:15px;\">\n\t\t\t\t\t\t\t\t<input type=\"button\" class=\"button button-primary\" value=\"<?php _e( 'Insert Store locator', 'yoast-local-seo' ); ?>\" onclick=\"WPSEO_InsertStorelocator();\"/>&nbsp;&nbsp;&nbsp;\n\t\t\t\t\t\t\t\t<a class=\"button\" href=\"javascript:\" onclick=\"tb_remove(); return false;\"><?php _e( 'Cancel', 'yoast-local-seo' ); ?></a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t<?php } ?>\n\n\t\t\t<?php\n\t\t}", "title": "" }, { "docid": "8c16eb303aa62304a7826d9e36306779", "score": "0.6055005", "text": "function my_format_TinyMCE( $in ) {\n $style_formats = array(\n array(\n 'title' => 'Parrafo',\n 'block' => 'p',\n ),\n array(\n 'title' => 'Titulos',\n 'items' => array(\n array(\n 'title' => 'Titulo h1',\n 'format' => 'h1',\n ),\n array(\n 'title' => 'Titulo h2',\n 'format' => 'h2',\n ),\n array(\n 'title' => 'Titulo h3',\n 'format' => 'h3',\n ),\n ),\n ),\n array(\n 'title' => 'Boton',\n 'block' => 'span',\n 'classes' => 'btn',\n 'wrapper' => true\n ),\n array(\n 'title' => 'Informacion',\n 'block' => 'span',\n 'classes' => 'info',\n ),\n );\n $in['style_formats'] = json_encode( $style_formats );\n array_unshift( $in, 'styleselect' );\n // SELECCIONA LOS BOTONES A MOSTRAR EN EL EDITOR\n $in['toolbar1'] = 'styleselect,bold,italic,underline,alignleft,aligncenter,alignright,columnas,link,unlink,bullist,numlist,media,undo,redo';\n $in['toolbar2'] = '';\n $in['toolbar3'] = '';\n $in['toolbar4'] = '';\n // AL PEGAR ALGO DENTRO LO PEGA SIN FORMATO\n $in['paste_as_text'] = true;\n return $in;\n}", "title": "" }, { "docid": "5373509b00a1ce22bb9c78b5e1ea8fc2", "score": "0.6035255", "text": "function initialize_editor($data)\n\t{\n\t\t// Gather all current textile fields\n\t\t// Note: As of EE2.1.3 this now requires a query since field formatting\n\t\t// is not added to the CP markup if the formatting menu is not active.\n\t\t$textile_fields = array();\n\t\t$site_id = $this->EE->config->item('site_id');\n\t\t\n\t\t$this->EE->db->select('field_id');\n\t\t$this->EE->db->where('field_fmt', 'textile');\n\t\t$this->EE->db->where('site_id', $site_id);\n\t\t$query = $this->EE->db->get('exp_channel_fields');\n\t\t\n\t\tif($query->num_rows() > 0) {\n\t\t\tforeach($query->result() as $row)\n\t\t\t{\n\t\t\t\t$textile_fields['field_id_'.$row->field_id] = $row->field_id;\n\t\t\t}\n\t\t}\n\t\t\t\t\n // Insert CSS\n $this->EE->cp->add_to_head('<link rel=\"stylesheet\" href=\"'.trim($this->settings['teh_path']).'stylesheets/textile-editor.css\" type=\"text/css\" media=\"screen\" />');\n \n // Add settings to the global EE javacript object\n $this->EE->javascript->set_global('teh_options.view', 'extended');\n $this->EE->javascript->set_global('teh_options.image_path', trim($this->settings['teh_path']).'images/');\n $this->EE->javascript->set_global('teh_options.help_url', $this->EE->cp->masked_url(trim($this->settings['help_url'])));\n $this->EE->javascript->set_global('teh_options.encode_email', trim($this->settings['encode_email']));\n $this->EE->javascript->set_global('teh_options.fields', $textile_fields);\n\n // Insert JS\n\t\t$this->EE->cp->add_to_foot('<script type=\"text/javascript\" src=\"'.trim($this->settings['teh_path']).'javascripts/textile-editor.js\"></script>');\n\t\t$this->EE->cp->add_to_foot('<script type=\"text/javascript\" src=\"'.trim($this->settings['teh_path']).'javascripts/textile-editor-config.js\"></script>');\n\t\t$this->EE->cp->add_to_foot('<script type=\"text/javascript\" src=\"'.trim($this->settings['teh_path']).'javascripts/textile-editor-cp.js\"></script>');\n\t\t\n\t\t// Just return data to hook, thanks for calling\n\t\treturn ($this->EE->extensions->last_call !== FALSE) ? $this->EE->extensions->last_call : $data;\n }", "title": "" }, { "docid": "c9cbc06f4276be07d66c688d8c3a0373", "score": "0.60272425", "text": "function override_mce_options( $init_array ) {\n\t$opts = '*[*]';\n\n\t$init_array['valid_elements'] = $opts;\n\t$init_array['extended_valid_elements'] = $opts;\n\n\treturn $init_array;\n}", "title": "" }, { "docid": "116240e5d432f1abe2fea93975156313", "score": "0.5998653", "text": "public function tmm_team_member_mce_popup(){\r\n\t\twp_enqueue_script( 'tmm_team_member_shortcode_builder_popup', TMM_REALPATH.'assets/js/shortcode-builder-button.js' );\r\n\t?>\r\n\t\t<script>\r\n\t\t\t\r\n\t\t</script>\r\n\t\t<div id=\"tm_team_member_container\">\r\n\t\t\t<div class=\"wrap tm_team_member_shortcode\">\r\n\t\t\t\t<div>\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<h3 class=\"popup-title\">Team Member Shortcode Builder</h3>\r\n\r\n\t\t\t\t\t\t<div class=\"field-container\">\r\n\t\t\t\t\t\t\t<div class=\"label-desc\">\r\n\t\t\t\t\t\t\t\t<label for=\"team_members_to_show\">How Many Member You want to show:</label>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"content\">\r\n\t\t\t\t\t\t\t\t<input type=\"text\" name=\"team_members_to_show\" id=\"team_members_to_show\" />\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<div class=\"field-container\">\r\n\t\t\t\t\t\t\t<div class=\"label-desc\">\r\n\t\t\t\t\t\t\t\t<label for=\"image_position\">Image Position:</label>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"content\">\r\n\t\t\t\t\t\t\t\t<select id='image_position' name=\"image_position\">\r\n\t\t\t\t\t\t\t\t\t<option value=\"\">Select Option</option>\r\n\t\t\t\t\t\t\t\t\t<option value=\"top\">Top</option>\r\n\t\t\t\t\t\t\t\t\t<option value=\"bottom\">bottom</option>\r\n\t\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\r\n\t\t\t\t\t\t<div class=\"field-container\">\r\n\t\t\t\t\t\t\t<div class=\"label-desc\">\r\n\t\t\t\t\t\t\t\t<label for=\"show_button\">Show Button:</label>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<div class=\"content\">\r\n\t\t\t\t\t\t\t\t<select id=\"show_button\" name=\"show_button\">\r\n\t\t\t\t\t\t\t\t\t<option value=\"\">Select Option</option>\r\n\t\t\t\t\t\t\t\t\t<option value=\"yes\">Yes</option>\r\n\t\t\t\t\t\t\t\t\t<option value=\"no\">No</option>\r\n\t\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div>\r\n\t\t\t\t\t\t<input type=\"button\" class=\"button-primary\" value=\"Insert Shortcode\" onclick=\"InsertContainer();\"/>&nbsp;&nbsp;&nbsp;\r\n\t\t\t\t\t\t<a class=\"button\" href=\"#\" onclick=\"tb_remove(); return false;\">Cancel</a>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t<?php\r\n\t}", "title": "" }, { "docid": "56e684b66c6e966f2ec0c37d09ac4941", "score": "0.59946674", "text": "public function add_editor_assets($id = NULL) {\n $plugin = H5P_Plugin::get_instance();\n $plugin->add_core_assets();\n\n // Make sure the h5p classes are loaded\n $plugin->get_h5p_instance('core');\n $this->get_h5peditor_instance();\n\n // Add JavaScript settings\n $settings = $plugin->get_settings();\n $cache_buster = '?ver=' . H5P_Plugin::VERSION;\n\n // Use jQuery and styles from core.\n $assets = array(\n 'css' => $settings['core']['styles'],\n 'js' => $settings['core']['scripts']\n );\n\n // Use relative URL to support both http and https.\n $upload_dir = plugins_url('h5p/h5p-editor-php-library');\n $url = '/' . preg_replace('/^[^:]+:\\/\\/[^\\/]+\\//', '', $upload_dir) . '/';\n\n // Add editor styles\n foreach (H5peditor::$styles as $style) {\n $assets['css'][] = $url . $style . $cache_buster;\n }\n\n // Add editor JavaScript\n foreach (H5peditor::$scripts as $script) {\n // We do not want the creator of the iframe inside the iframe\n if ($script !== 'scripts/h5peditor-editor.js') {\n $assets['js'][] = $url . $script . $cache_buster;\n }\n }\n\n // Add JavaScript with library framework integration (editor part)\n H5P_Plugin_Admin::add_script('editor-editor', 'h5p-editor-php-library/scripts/h5peditor-editor.js');\n H5P_Plugin_Admin::add_script('editor', 'admin/scripts/h5p-editor.js');\n\n // Add translation\n $language = $plugin->get_language();\n $language_script = 'h5p-editor-php-library/language/' . $language . '.js';\n if (!file_exists(plugin_dir_path(__FILE__) . '../' . $language_script)) {\n $language_script = 'h5p-editor-php-library/language/en.js';\n }\n H5P_Plugin_Admin::add_script('language', $language_script);\n\n // Add JavaScript settings\n $content_validator = $plugin->get_h5p_instance('contentvalidator');\n $settings['editor'] = array(\n 'filesPath' => $plugin->get_h5p_url() . '/editor',\n 'fileIcon' => array(\n 'path' => plugins_url('h5p/h5p-editor-php-library/images/binary-file.png'),\n 'width' => 50,\n 'height' => 50,\n ),\n 'ajaxPath' => admin_url('admin-ajax.php?token=' . wp_create_nonce('h5p_editor_ajax') . '&action=h5p_'),\n 'libraryUrl' => plugin_dir_url('h5p/h5p-editor-php-library/h5peditor.class.php'),\n 'copyrightSemantics' => $content_validator->getCopyrightSemantics(),\n 'metadataSemantics' => $content_validator->getMetadataSemantics(),\n 'assets' => $assets,\n 'deleteMessage' => __('Are you sure you wish to delete this content?', $this->plugin_slug),\n 'apiVersion' => H5PCore::$coreApi,\n 'language' => $language\n );\n\n if ($id !== NULL) {\n $settings['editor']['nodeVersionId'] = $id;\n }\n\n $plugin->print_settings($settings);\n }", "title": "" }, { "docid": "769dc866d6fa6a3960db355a21d93e98", "score": "0.5992738", "text": "public function add_tinymce_plugin( $plugin_array ) {\n\t\t$plugin_array['snap'] = get_template_directory_uri() . '/includes/tinymce-plugin/js/tinymce-plugin.js';\n\t\treturn $plugin_array;\n\t}", "title": "" }, { "docid": "267a661beb71bad6e3f3f3046c759d14", "score": "0.59748864", "text": "function jwl_tinymce_add_stylesheet_callback_function() {\n\t $options = get_option('jwl_options_group4');\n\techo '<input name=\"jwl_options_group4[jwl_tinymce_add_stylesheet]\" id=\"jwl_tinymce_add_stylesheet\" type=\"checkbox\" value=\"1\" class=\"five\" ' . checked( 1, isset($options['jwl_tinymce_add_stylesheet']), false ) . ' /> ';\n\t?><span style=\"margin-left:15px;\"><em><?php _e('If availble in your theme, loads the editor-style.css file.','jwl-ultimate-tinymce'); ?></em></span>\n\t<span style=\"margin-left:10px;\"><a href=\"javascript:popcontact('<?php echo plugin_dir_url( __FILE__ ) ?>js/popup-help/editor_style.php')\"><img src=\"<?php echo plugin_dir_url( __FILE__ ) ?>img/popup-help.png\" style=\"margin-bottom:-5px;\" title=\"Click for Help\" /></a></span><?php\n}", "title": "" }, { "docid": "4278182a2625636bae47eb8d2c4656cf", "score": "0.59674275", "text": "function axcelerate_register_tinymce_plugin($plugin_array) {\n\t\t$VERSION = constant('AXIP_PLUGIN_VERSION');\n\t\tif($VERSION === null){\n\t\t\t$VERSION = time();\n\t\t}\n\t $plugin_array['axcelerate_enquiry'] = AXIP_PLUGIN_URL.'/js/axcelerate_tinymce.js?v='.$VERSION;\n\t \n\t return $plugin_array;\n\t}", "title": "" }, { "docid": "2c330d4c98a3d6f4477b05d8a33e4a53", "score": "0.5965244", "text": "function watson_tinymce_plugin() {\n\t\t// Don't bother loading buttons if the current user lacks permissions\n\t\tif ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) )\n\t\t\treturn;\n\n\t\t// Add only in Rich Editor mode\n\t\tif ( get_user_option( 'rich_editing' ) == 'true' ) {\n\t\t\tadd_filter( 'mce_external_plugins', 'watson_add_tinymce_plugin' );\n\t\t\tadd_filter( 'mce_buttons_3', 'watson_register_tinymce_buttons' );\n\t\t}\n\t}", "title": "" }, { "docid": "9a5eddfb6bd34da54a04b1c038900935", "score": "0.5937148", "text": "function electroserv_trx_addons_editor_load_scripts_admin() {\n\t\t// Add styles in the WP text editor\n\t\tadd_editor_style( array(\n\t\t\t\t\t\t\telectroserv_get_file_url('plugins/trx_addons/trx_addons.editor.css')\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t );\t\n\t}", "title": "" }, { "docid": "07268f6a95d8ba365adb7fe5cd3b1acd", "score": "0.5933526", "text": "function my_mce_editor_style() {\n wp_enqueue_style( 'style-name', get_stylesheet_directory_uri() .'/includes/css/editor-style.css');\n}", "title": "" }, { "docid": "021ccd977bdf54d99dc4a8c59606f649", "score": "0.5928616", "text": "function fh_mce_before_init( $settings ) {\n\t$settings['theme_advanced_blockformats'] = 'p,pre,code,h2,h3,h4,h5,h6'; // prevent selecting Heading 1 in the editor\n\treturn $settings;\n}", "title": "" }, { "docid": "5f283e65811d6a57b92f3ca26c268d19", "score": "0.592803", "text": "public function insert_shortcode_content_wp_editor() {\n ?>\n <div id=\"cv-shortcode-content-wp-editor-wrap\" style=\"display:none;\">\n <div class=\"cv-shortcode-content-wp-editor-wrap-controls\">\n <button type=\"button\" id=\"cv-shortcode-content-wp-editor-wrap-cancel\"><i class=\"icon-cancel\"></i></button>\n <button type=\"button\" id=\"cv-shortcode-content-wp-editor-wrap-submit\"><i class=\"icon-check\"></i></button>\n </div>\n <div class=\"cv-shortcode-content-wp-editor\">\n <?php wp_editor( '', 'shortcode_wp_editor_content', array(\n 'editor_height' => 400,\n 'tinymce'=> array(\n 'toolbar1' => 'bold,italic,underline,strikethrough,bullist,numlist,blockquote,hr,alignjustify,alignleft,aligncenter,alignright,link,unlink,wp_adv',\n 'toolbar2' => 'formatselect,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo',\n 'toolbar3' => '',\n ),\n ) ); ?>\n </div>\n </div>\n <?php\n }", "title": "" }, { "docid": "f7d12be486bb66348aac75bf08ceae9b", "score": "0.59038734", "text": "function iwm_tinymce_external_plugins( $plugins) { \r\n\r\n $plugins['code'] = plugins_url( '/includes/js/tinymce.code.js', __FILE__);\r\n return $plugins;\r\n}", "title": "" }, { "docid": "5cd27136e597fe1117e7c7f8b162e354", "score": "0.5898651", "text": "function mytheme_tinymce_config( $init ) {\n\t$valid = 'h4[*]';\n\tif ( isset( $init['extended_valid_elements'] ) ) {\n\t\t$init['extended_valid_elements'] .= ',' . $valid;\n\t} else {\n\t\t$init['extended_valid_elements'] = $valid;\n\t}\n\treturn $init;\n}", "title": "" }, { "docid": "927c26f9d5fa7457831acb7c635382f3", "score": "0.58865273", "text": "function enqueue_editor_assets() { // phpcs:ignore\n\twp_register_script(\n\t\t'select-editor-template',\n\t\tplugins_url( '/build/index.js', dirname( __FILE__ ) ),\n\t\tarray(\n\t\t\t'wp-blocks',\n\t\t\t'wp-i18n',\n\t\t\t'wp-element',\n\t\t\t'wp-editor',\n\t\t\t'wp-plugins',\n\t\t\t'wp-edit-post',\n\t\t),\n\t\tfilemtime( plugin_dir_path( __DIR__ ) . 'build/index.js' ),\n\t\ttrue\n\t);\n\n\t// Provide a `SelectEditorTemplate` object containing a previously saved\n\t// template key if found.\n\tif ( is_admin() && 'post' === get_current_screen()->id ) {\n\t\t$post = get_post();\n\t\t$template = get_post_meta( $post->ID, 'select_editor_template', true );\n\n\t\tif ( $template ) {\n\t\t\twp_localize_script( 'select-editor-template', 'SelectEditorTemplate', array( 'template' => esc_js( $template ) ) );\n\t\t}\n\t}\n\twp_enqueue_script( 'select-editor-template' );\n\n\twp_enqueue_style( 'select_template-panel', plugins_url( 'build/editor.css', dirname( __FILE__ ) ) );\n}", "title": "" }, { "docid": "2b049f8fcfdf299b24df7aba626a4868", "score": "0.588414", "text": "public function loadEditor($options) {\r\n\t\t global $_whomp_head_data, $_whomp_storage_url;\r\n\t\t \r\n\t\t $_whomp_head_data['script'][] = '<script src=\"' . $_whomp_storage_url . '/extensions/whomp/editor/bxe/bxeLoader.js\" type=\"text/javascript\"></script>';\r\n\t\t $_whomp_head_data['meta'][] = '<meta name=\"bxeNS\" content=\"xhtml=http://www.w3.org/1999/xhtml\"/>';\r\n\t\t $_whomp_head_data['meta'][] = '<meta name=\"bxeNS\" content=\"lenya=http://apache.org/cocoon/lenya/page-envelope/1.0\"/>';\r\n\t\t $_whomp_head_data['meta'][] = '<meta name=\"bxeNS\" content=\"dc=http://purl.org/dc/elements/1.1/\" />';\r\n\t\t $_whomp_head_data['meta'][] = '<meta name=\"bxeNS\" content=\"unzih=http://unizh.ch/doctypes/elements/1.0\" />';\r\n\t\t $_whomp_head_data['meta'][] = '<meta name=\"bxeNS\" content=\"dcterms=http://purl.org/dc/terms/\" />';\r\n\t\t $_whomp_head_data['meta'][] = '<meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" />';\r\n\t\t $_whomp_head_data['style'][] = '<link rel=\"stylesheet\" href=\"' . $_whomp_storage_url . '/extensions/whomp/editor/bxe/css/editor.css\" type=\"text/css\" />';\r\n\t }", "title": "" }, { "docid": "10225916cbb700bad62eb0020558907b", "score": "0.5875212", "text": "function mtn_editor_styles() {\n\tadd_editor_style( 'assets/css/editor-style.css' );\n}", "title": "" }, { "docid": "1069aad51838642a8890fff01ccf2ae7", "score": "0.58731484", "text": "function load_editor()\n {\n $this->CLASS['kr_header']->addjssrc($this->myPath . \"ckeditor/ckeditor.js\");\n }", "title": "" }, { "docid": "f82934f9c5b4965845f70507fc9f7711", "score": "0.58722985", "text": "protected function _showLiveEditorSetting(){\n $this->context->controller->addJS( __PS_BASE_URI__.'js/jquery/ui/jquery.ui.dialog.min.js' ); \n $this->context->controller->addJS( __PS_BASE_URI__.'js/jquery/ui/jquery.ui.draggable.min.js' ); \n $this->context->controller->addJS( __PS_BASE_URI__.'js/jquery/ui/jquery.ui.droppable.min.js' ); \n $this->context->controller->addJS( __PS_BASE_URI__.'modules/leomenusidebar/assets/admin/form.js' ); \n $this->context->controller->addCss( __PS_BASE_URI__.'modules/leomenusidebar/assets/admin/liveeditor.css' ); \n $this->context->controller->addJS( __PS_BASE_URI__.'modules/leomenusidebar/assets/admin/liveeditor.js' ); \n $tcss = _PS_ROOT_DIR_.'/themes/'.$this->context->shop->getTheme().'/css/modules/leomenusidebar/leomenusidebar.css';\n \n if( file_exists($tcss) ){ \n $this->context->controller->addCss( _THEMES_DIR_.$this->context->shop->getTheme().'/css/modules/leomenusidebar/leomenusidebar.css' ); \n }else {\n $this->context->controller->addCss( __PS_BASE_URI__.'modules/leomenusidebar/leomenusidebar.css' ); \n } \n\n $liveedit_action = $this->base_config_url.'&liveeditor=1&do=livesave' ; \n $action_backlink = $this->base_config_url; \n\t\t$action_widget \t\t= _MODULE_DIR_.$this->name.'/widget.php';\n\t\t$action_addwidget = $this->base_config_url.'&liveeditor=1&do=addwidget'; \n $ajxgenmenu = $this->base_config_url.'&liveeditor=1&do=ajxgenmenu'; \n $ajxmenuinfo = $this->base_config_url.'&liveeditor=1&do=ajxmenuinfo'; \n\t\t$id_shop = $this->context->shop->id;\n\t\t$shop \t\t= Shop::getShop($id_shop);\n\t\t\tif(!empty($shop))\n\t\t\t\t$live_site_url = $shop['uri'];\n\t\t\telse\n\t\t\t\t$live_site_url = __PS_BASE_URI__;\n $model = $this->widget;\n $widgets = $model->getWidgets($id_shop);\n\t\t$type_menu = array('carousel','categoriestabs','manucarousel','map','producttabs');\n\t\tforeach($widgets as $key=>$widget){\n\t\t\tif(in_array($widget['type'],$type_menu))\n\t\t\t\tunset($widgets[$key]);\n\t\t}\n\t\t$typesub = Configuration::get('LEO_MENUSIDEBAR_TYPE');\n ob_start();\n require_once ( dirname(__FILE__) . '/liveeditor.php' );\n $output = ob_get_contents();\n ob_end_clean();\n return $output;\n }", "title": "" }, { "docid": "0049abeedb94da905aa85e029f578cae", "score": "0.5869554", "text": "function bbp_enable_visual_editor( $args = array() ) {\n $args['tinymce'] = true;\n return $args;\n}", "title": "" }, { "docid": "091a8e33e557cf8d275ede4bd98e19d6", "score": "0.58631897", "text": "function my_mce_before_init_insert_formats( $init_array ) { \n \t// Define the style_formats array\n \t$style_formats = array( \n \t\t// Each array child is a format with it's own settings\n \t\tarray( \n \t\t\t'title' => '10pt', \n \t\t\t'block' => 'span', \n \t\t\t'classes' => 'text-10pt',\n \t\t\t'wrapper' => true,\n \t\t), \n \t\tarray( \n \t\t\t'title' => '12pt', \n \t\t\t'block' => 'span', \n \t\t\t'classes' => 'text-12pt',\n \t\t\t'wrapper' => true,\n \t\t), \n \t\tarray( \n \t\t\t'title' => '14pt (Default Size)', \n \t\t\t'block' => 'span', \n \t\t\t'classes' => 'text-default',\n \t\t\t'wrapper' => true,\n \t\t), \n \t\tarray( \n \t\t\t'title' => '16pt', \n \t\t\t'block' => 'span', \n \t\t\t'classes' => 'text-16pt',\n \t\t\t'wrapper' => true,\n \t\t), \n \t\tarray( \n \t\t\t'title' => '18pt', \n \t\t\t'block' => 'span', \n \t\t\t'classes' => 'text-18pt',\n \t\t\t'wrapper' => true,\n \t\t), \n \t); \n \t// Insert the array, JSON ENCODED, into 'style_formats'\n \t$init_array['style_formats'] = json_encode( $style_formats ); \n \t\n \treturn $init_array; \n \n }", "title": "" }, { "docid": "99d91580949d14c3336fdf34ccdfe929", "score": "0.58546793", "text": "public function registerClientScript()\n {\n $this->options['element'] = new JsExpression(\"jQuery('#{$this->options['id']}')[0]\");\n $mdeOptions = Json::encode($this->mdeOptions);\n $mdeName = Inflector::classify('editor' . $this->options['id']);\n $js = \"var {$mdeName} = new SimpleMDE({$mdeOptions});\";\n $this->getView()->registerJs($js);\n }", "title": "" }, { "docid": "6d54e7ede4bb4daa538e2eef1d4a24b4", "score": "0.5848076", "text": "public function registerTinyMceJavascript($plugin_array)\n {\n $plugin_array['rddownloads_button'] = plugins_url('/assets/js/admin/Hooks/ClassicEditor/tinymce-dialog.js', RDDOWNLOADS_FILE);\n return $plugin_array;\n }", "title": "" }, { "docid": "a9b28ae8ff958e6a7a663f79c701181f", "score": "0.58376145", "text": "function TinyMCEArea4( $name = '', $value = '', $rows = 4, $cols = 70, $params=NULL, $lang_id=1, $id=NULL )\n {\n $id = $id.'tinymce'.$lang_id;\n $width = $cols*10.2;\n $height = $rows*10.2;\n ?>\n <!-- Load TinyMCE -->\n <script type=\"text/javascript\">\n $(document).ready(function() {\n tinymce.init({\n selector: \"textarea#<?=$id;?>\",\n theme: \"modern\",\n width: <?=$width;?>,\n height: <?=$height;?>,\n language:\"<?if( strtolower(_LANG_SHORT)==\"ua\") echo \"uk\"; else echo strtolower(_LANG_SHORT);?>\",\n plugins: [\n \"moxiecut advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker\",\n \"searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking\",\n \"save table contextmenu directionality emoticons template paste textcolor\"\n ],\n content_css: \"css/content.css\",\n toolbar1: 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image ',\n toolbar2: 'print preview media | table | hr removeformat | subscript superscript | forecolor backcolor emoticons | code',\n image_advtab: true,\n relative_urls: false,\n templates: [\n { title: 'Test template 1', content: 'Test 1' },\n { title: 'Test template 2', content: 'Test 2' }\n ]\n });\n });\n </script>\n <!-- /TinyMCE -->\n <textarea id=\"<?=$id;?>\" name=\"<?=$name;?>\" rows=\"<?=$rows?>\" cols=\"<?=$cols?>\" <?=$params?> class=\"tinymce\"><?=$value?></textarea>\n <?\n }", "title": "" }, { "docid": "539d9f12e718e95205b8946b99317a7a", "score": "0.58259284", "text": "function customize_editor_toolbar( $args ) {\n\t\t$args['tinymce']['toolbar1'] = 'formatselect,|,bold,italic,underline,|,bullist,numlist,|,link,unlink,|,undo,redo';\n\t\treturn $args;\n\t}", "title": "" }, { "docid": "850d64213c3914ab5ba986e314f40110", "score": "0.5797217", "text": "function __construct() {\n\n // Load localization domain\n load_plugin_textdomain( 'memepost', false, dirname(plugin_basename(__FILE__)) . '/languages' );\n\n // Register hooks\n add_action( 'admin_menu', array(&$this, 'register_settings_page') );\n add_action( 'admin_init', array(&$this, 'add_settings') );\n\n /* Use the admin_menu action to define the custom boxes */\n add_action('admin_menu', array(&$this, 'add_custom_box'));\n\n /* Use the save_post action to do something with the data entered */\n add_action('save_post', array(&$this, 'save_postdata'));\n\n // Enqueue the script\n add_action('template_redirect', array(&$this, 'add_script'));\n\n // Register filters\n add_filter('the_content', array(&$this, 'append_memepost_button') , 99);\n\n // register short code\n add_shortcode('memepost', array(&$this, 'shortcode_handler'));\n\n $plugin = plugin_basename(__FILE__);\n add_filter(\"plugin_action_links_$plugin\", array(&$this, 'add_action_links'));\n\n // for outputing js code\n $this->deliver_js();\n }", "title": "" }, { "docid": "cdd4f8be53c341b2e2d43f4347573208", "score": "0.5797197", "text": "function gp_tiny_mce_custom_styles( $init_array ) {\n // Each array child is a format with it's own settings\n $style_formats = array(\n // array(\n // 'title' => 'Smaller spacing',\n // 'block' => 'p',\n // 'classes' => 'spacing-small',\n // 'wrapper' => false,\n // 'selector' => 'p, h1, h2, h3, h4, h5, h6',\n // ),\n // array(\n // 'title' => 'Very small spacing',\n // 'block' => 'p',\n // 'classes' => 'spacing-very-small',\n // 'wrapper' => false,\n // 'selector' => 'p, h1, h2, h3, h4, h5, h6',\n // ),\n // array(\n // 'title' => 'No spacing',\n // 'block' => 'p',\n // 'classes' => 'spacing-none',\n // 'wrapper' => false,\n // 'selector' => 'p, h1, h2, h3, h4, h5, h6',\n // ),\n );\n\n $sizes = array(\n // 'size-h1-xxl' => 'Size: Header 1 XXL',\n // 'size-h1-xl' => 'Size: Header 1 XL',\n // 'size-h1-lg' => 'Size: Header 1 Large',\n // 'size-h1' => 'Size: Header 1',\n // 'size-h2' => 'Size: Header 2',\n // 'size-h3' => 'Size: Header 3',\n // 'size-h4' => 'Size: Header 4',\n // 'size-h5' => 'Size: Header 5',\n // 'size-h6' => 'Size: Header 6',\n // 'size-p' => 'Size: Paragraph', // todo: might need to style this if we end up using it....\n // 'color-orange' => 'Color: Orange',\n );\n\n if ( ! empty( $sizes ) ) {\n foreach ( $sizes as $css => $label ) {\n $style_formats[] = array(\n 'title' => $label,\n 'inline' => $css,\n 'classes' => $css,\n 'wrapper' => false,\n 'selector' => 'p, h1, h2, h3, h4, h5, h6',\n );\n }\n }\n\n $style_formats[] = array(\n 'title' => 'Color: Orange',\n 'inline' => 'span',\n 'classes' => 'text-orange',\n 'wrapper' => false,\n );\n $style_formats[] = array(\n 'title' => 'Color: Yellow',\n 'inline' => 'span',\n 'classes' => 'text-yellow',\n 'wrapper' => false,\n );\n\n // $style_formats[] = array(\n // 'title' => 'add Animation Container',\n // 'block' => 'div',\n // 'classes' => 'animation-container',\n // 'wrapper' => true,\n // );\n\n // $style_formats[] = array(\n // 'title' => 'Reduced Spacing',\n // 'inline' => 'reduced-spacing',\n // 'classes' => 'reduced-spacing',\n // 'wrapper' => false,\n // 'selector' => 'p, h1, h2, h3, h4, h5, h6, li',\n // );\n\n // Insert the array, JSON ENCODED, into 'style_formats'\n $init_array[ 'style_formats' ] = json_encode( $style_formats );\n\n return $init_array;\n}", "title": "" }, { "docid": "b7cb6b6c821ca7c8bf241884eedebde3", "score": "0.57967204", "text": "protected function prepareTinyMCEIfSelected() {\n\t\t$tinyMCELoaded = ExtensionManagementUtility::isLoaded('tinymce');\n\t\t$this->view->assign('tinyMCELoaded', $tinyMCELoaded);\n\t\tif (!$tinyMCELoaded) {\n\t\t\treturn;\n\t\t}\n\t\t$tinyMCESelected = $this->session->getDataByKey('tinyMCESelected');\n\t\t$this->view->assign('tinyMCESelected', $tinyMCESelected);\n\n\t\tif (!$tinyMCESelected) {\n\t\t\treturn;\n\t\t}\n\t\t$pathTinyMCEConfig = PATH_site . ExtensionManagementUtility::siteRelPath('lfeditor')\n\t\t\t. 'Resources/Public/Scripts/TinyMCEConfig.js';\n\t\t$tinyMCE = $this->objectManager->get('SGalinski\\Tinymce\\Loader');\n\t\t$tinyMCE->loadConfiguration($pathTinyMCEConfig);\n\n\t\t/** @var PageRenderer $pageRenderer */\n\t\t$pageRenderer = $this->objectManager->get('TYPO3\\CMS\\Core\\Page\\PageRenderer');\n\t\t$tinyMCE->loadJsViaPageRenderer($pageRenderer);\n\t}", "title": "" }, { "docid": "0339c57aa3e12f6b16dc17112fe986a6", "score": "0.57760954", "text": "function wpex_shortcodes_add_mce_button() {\n\t\tif ( ! current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) ) {\n\t\t\treturn;\n\t\t}\n\t\tif ( 'true' == get_user_option( 'rich_editing' ) ) {\n\t\t\tadd_filter( 'mce_external_plugins', 'wpex_shortcodes_add_tinymce_plugin' );\n\t\t\tadd_filter( 'mce_buttons', 'wpex_shortcodes_register_mce_button' );\n\t\t}\n\t}", "title": "" }, { "docid": "3e5e42ff3730f7e82622789f6c444ef2", "score": "0.5773612", "text": "function admin_tinymce(){\r\n\t\t$this->loadModel('Post');\r\n\t\t$this->layout = 'modal'; \r\n\t\t$d['posts'] = $this->Post->find();\r\n\t\t$this->set($d);\r\n\t}", "title": "" }, { "docid": "f5bcd7e4e9d4683bfa9cef4839ea9b40", "score": "0.5752564", "text": "public function clientOptions()\n {\n $contentCss = '';\n if ($this->skinUrl === null) {\n $bundle = EditorSkinAsset::register($this->getView());\n $this->skinUrl = $bundle->baseUrl;\n if (is_file($bundle->basePath . '/' . $this->skin . '/bigcms_styles.css')) {\n $contentCss = $this->skinUrl . '/' . $this->skin . '/bigcms_styles.css';\n }\n }\n\n $setup = '';\n if ($this->useReadMore) {\n $setup .= 'editor.addMenuItem(\"bigcmsreadmore\", {\n text: \"' . Yii::t('cms', 'Read more') . '\",\n icon: \"map-pin\",\n context: \"insert\",\n prependToContext: true,\n onclick: function() {\n if (editor.getContent().match(/<hr\\s+id=(\"|\\\\\\')system-readmore(\"|\\\\\\')\\s*\\/*>/i))\n {\n alert(\"' . Yii::t('cms', \"There is already one 'Read more' link in the editor. Only one is allowed.\") . '\");\n return false;\n } else {\n editor.insertContent(\"<hr id=\\\"system-readmore\\\" /> \");\n }\n }\n });';\n }\n $setup .= 'editor.addMenuItem(\"bigcmsinsertblock\", {\n text: \"' . Yii::t('cms', 'Block') . '\",\n icon: \"insertblock\",\n id: \"block-button\",\n context: \"insert\",\n prependToContext: true,\n onclick: function() {\n editor.insertContent(\"<div>{block ' . Yii::t('cms', 'INSERT_BLOCK_TITLE') . '}</div><p>&nbsp;</p>\");\n }\n });';\n\n \treturn [\n 'skin_url' => $this->skinUrl . '/' . $this->skin,\n 'skin' => $this->skin,\n 'content_css' => $contentCss,\n 'style_formats_merge' => true,\n 'style_formats' => [\n [\n 'title' => Yii::t('cms', 'Image Left'),\n 'selector' => 'img',\n 'styles' => [\n 'float' => 'left',\n 'margin' => '0 10px 10px 0',\n ]\n ],\n [\n 'title' => Yii::t('cms', 'Image right'),\n 'selector' => 'img',\n 'styles' => [\n 'float' => 'right',\n 'margin' => '0 0 10px 10px',\n ]\n ],\n ],\n 'plugins' => 'contextmenu advlist autolink lists link image charmap print preview anchor searchreplace visualblocks code fullscreen insertdatetime media table contextmenu paste',\n 'toolbar' => 'insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image readmorebtn',\n 'setup' => new JsExpression('function(editor) {\n ' . $setup . '\n }'),\n ];\n }", "title": "" }, { "docid": "d2195484406b8fe0a1546431251b241b", "score": "0.5751283", "text": "function add_js()\r\n\t{\r\n\t\tglobal $config;\r\n\t\t$js = array();\r\n\r\n\t\t$js[] = '<script src=\"' .$config['BASE_URL'] .'/assets/js/jquery-1.7.2.min.js\" type=\"text/javascript\" charset=\"utf-8\"></script>';\r\n\t\t$js[] = '<script src=\"' .$config['BASE_URL'] .'/assets/js/bootstrap.min.js\" type=\"text/javascript\" charset=\"utf-8\"></script>';\r\n\t\t$js[] = '<script src=\"http://maps.googleapis.com/maps/api/js?key=AIzaSyDY0kkJiTPVd2U7aTOAwhc9ySH6oHxOIYM&sensor=false\"></script>';\r\n\t\t$js[] = '<script src=\"' .$config['BASE_URL'] .'/assets/js/comment_insert.js\" type=\"text/javascript\" charset=\"utf-8\"></script>';\r\n\t\t// $js[] = '<script src=\"'.$config['BASE_URL']. '/assets/js/masonry.pkgd.min.js\" type=\"text/javascript\" charset=\"utf-8\"></script>';\r\n\r\n\t\t/** Load Icon Hover Effects Script */\r\n\t\t$js[] = '<script src=\"' .$config['BASE_URL'] .'/assets/IconHoverEffects/js/modernizr.custom.js\"></script>';\r\n\r\n\t\t/** <!-- Load the Mootools Framework --> */\r\n\t\t//$js[] = '<script src=\"http://www.google.com/jsapi\" type=\"text/javascript\" charset=\"utf-8\"></script>';\r\n\t\t//$js[] = '<script>google.load(\"mootools\", \"1.2.1\");</script>';\t\r\n\r\n\t\t/** <!-- Load the MenuMatic Class --> */\r\n\t\t$js[] = '<script src=\"' .$config['BASE_URL'] .'/assets/js/MenuMatic_0.68.3.js\" type=\"text/javascript\" charset=\"utf-8\"></script>';\r\n\t\t/**<!-- Create a MenuMatic Instance -->*/\r\n\t\t$js[] = \"<script type='text/javascript'>\r\n\t\t\twindow.addEvent('domready', function() {\t\t\t\r\n\t\t\t\tvar myMenu = new MenuMatic();\r\n\t\t\t});\t\r\n\t\t\t\t\r\n\t\t</script>\";\r\n\t\t\r\n\t\treturn $js;\r\n\t}", "title": "" } ]
8712f9185f19edef96cb5c44c7e81388
Initializes the writer. Has to be called before first use of the writer.
[ { "docid": "ec9c3f89aeed607bddd462fab841f2c8", "score": "0.0", "text": "public abstract function init();", "title": "" } ]
[ { "docid": "12fa3c6ee49dc87a7a8ca7b78d62af94", "score": "0.7402555", "text": "protected function init()\n {\n $this->hasChanged = false;\n $this->filePath = null;\n\n $this->reader->load(null);\n $this->writer->setBuffer([]);\n }", "title": "" }, { "docid": "5927af6fcd1c4551d4cbaac0c593d992", "score": "0.72459024", "text": "public function __construct() {\n\t\t$this->writer = new XMLWriter ();\n\t\t$this->writer->openMemory ();\n\t\t$this->writer->setIndent ( true );\n\t}", "title": "" }, { "docid": "c7795b64b73a0bc31f06de9744087f6d", "score": "0.69071513", "text": "protected final function initialize() {\n\t\t$this->outBuf='';\n\t\t$this->buffers=array();\n\t\t$this->todo=array();\n\t\t$this->bufferPush();\n\t}", "title": "" }, { "docid": "d57ebcaa5056e9a209bcbb98a5cba96c", "score": "0.6898615", "text": "public function __construct()\n {\n $this->writer = Writer::createFromFileObject(new SplTempFileObject);\n }", "title": "" }, { "docid": "8f4ae587ea4d2b8febd330c5f0bd5b8c", "score": "0.6743181", "text": "public static function init()\r\n {\r\n return new Writer();\r\n }", "title": "" }, { "docid": "81c49011680a357438fcfc71ccab5159", "score": "0.6646815", "text": "protected function setUp()\n {\n $this->writer = new FileWriter();\n }", "title": "" }, { "docid": "a38e4a0673ff05889eb90517363bf09f", "score": "0.65117306", "text": "public function initialize()\n {\n // Create bold style\n $this->_io->styles('bold', ['bold' => true]);\n }", "title": "" }, { "docid": "d679e02cf84ab46547adbefbbb8d0d76", "score": "0.6465543", "text": "public function __construct() {\n\t\t\n\t\t// start buffer\n\t\tob_start();\n\t}", "title": "" }, { "docid": "f4d08611ff1a1dc4fb5483d2415b5574", "score": "0.6456856", "text": "public function init()\n\t{\n\t\tob_start();\n\t\tob_implicit_flush(false);\n\t}", "title": "" }, { "docid": "094cf0d02d47ef23ba269ec7257e3330", "score": "0.6420287", "text": "public function init() {\n\t\tif(!file_exists($this->_logFile)) {\n\t\t\t$fh = fopen($this->_logFile, 'w+');\n\t\t\tfclose($fh);\n\t\t\t\n\t\t\t$this->_writeLog('Log File Created', $this->_logFile);\n\t\t}\n\t}", "title": "" }, { "docid": "0e8455345d11585ac466842c78ef0abe", "score": "0.6338165", "text": "public function init() {\n $this->_disableView();\n $this->getResponse()->setHeader('Content-Type', 'text/xml');\n $this->doc = new DOMDocument('1.0', 'UTF-8');\n $this->doc->formatOutput = true;\n }", "title": "" }, { "docid": "505840d38a035bfbceb1f9682965096d", "score": "0.62347513", "text": "protected function initXml()\n {\n if($this->xml === null) {\n $this->xml = Mage::helper('Antidot/xmlWriter');\n $debug = Mage::getStoreConfig('antidot/export/debug_xml_enabled');\n $this->xml->init($debug);\n }\n }", "title": "" }, { "docid": "34075e736e7794be3660d43c486becd5", "score": "0.6231415", "text": "public function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->stream = fopen('php://output', 'w');\n\t}", "title": "" }, { "docid": "15527702c5a439b1e021881b890f4778", "score": "0.61929", "text": "protected function setUp()\n {\n parent::setUp();\n $this->writer = new MockWriter;\n return;\n }", "title": "" }, { "docid": "28abce7ecd89ca173f561ff881c6f3ba", "score": "0.61785", "text": "private function initWriter($writerConfig)\n {\n $writerClass = $writerConfig ['class'];\n $this->writer = new $writerClass();\n $parameter = array ();\n if (array_key_exists('parameter', $writerConfig))\n {\n $parameter = $writerConfig['parameter'];\n }\n \\LiveTest\\Functions::initializeObject($this->writer, $parameter);\n }", "title": "" }, { "docid": "6cfffab853b1eacb0da72900ee0188a8", "score": "0.60763586", "text": "function PhpdocXMLWriter() {\n $this->fileHandler = new PhpdocFileHandler;\n }", "title": "" }, { "docid": "8cc9ed88d5408784ebc91544959ba9bf", "score": "0.6072827", "text": "public function setUp() {\n $this->out= new MemoryOutputStream();\n $this->cat= create(new LogCategory('default'))->withAppender(\n create(new StreamAppender($this->out))->withLayout(new PatternLayout('%l: %m%n'))\n );\n }", "title": "" }, { "docid": "f7a3add61e17b9aa272c79abbbcc87ce", "score": "0.60542506", "text": "function __construct()\n {\n $this->readOutSettings();\n }", "title": "" }, { "docid": "1be8f4a7ddced32ef2f59866274c13f8", "score": "0.60220164", "text": "public function init() {\n\n\t\tparent::init();\n\n\t\tself::include_logger();\n\n\t}", "title": "" }, { "docid": "16943de5499d4d62f985cece4c9052a2", "score": "0.60159475", "text": "protected function initializeWriters(){\n $groups = array_keys(CeneoGroup::$groups);\n\n $uniq = uniqid('', true);\n\n foreach($groups as $g){\n $path = sprintf('%s/%s_%s.tmp', $this->tempDirectory, $uniq, $g);\n\n $writer = new \\XMLWriter();\n $writer->openUri($path);\n $writer->setIndent(true);\n $writer->startDocument();\n $writer->startElement('group');\n $writer->writeAttribute('name', $g);\n\n $this->writers[$g] = $writer;\n $this->paths[$g] = $path;\n $this->counters[$g] = 0;\n }\n\n }", "title": "" }, { "docid": "fad8657dab9351484045130ed357ef1a", "score": "0.60156476", "text": "protected function init() { }", "title": "" }, { "docid": "fad8657dab9351484045130ed357ef1a", "score": "0.60156476", "text": "protected function init() { }", "title": "" }, { "docid": "bdf7fb6d8a2d87bacb600071bcf2433b", "score": "0.60134023", "text": "public function initializeObject() {\n\t\tparent::initializeObject();\n\t\t$this->cacheLog = t3lib_div::makeInstance('Tx_Cachemgm_Cache_MemoryLogWriter');\n\t}", "title": "" }, { "docid": "f6c1e3817a1ce61df593515c4190661d", "score": "0.6010304", "text": "public function initialize() {\n $this->pagerHelper->setStrict(true);\n $this->loggerHelper\n ->setOrder(Logger::LOG_ORDER_NORMAL)\n ->enable($this->activeLogger);\n }", "title": "" }, { "docid": "e6dee626dc29cf95bfb266ebcbc18c6e", "score": "0.5999672", "text": "public function __construct(){\r\n \t$this->options['serialize'] = \"system\";\r\n \t$this->writeTimes = 0;\r\n \t$this->options['prefix'] = '';\r\n \t$this->options['data_compress'] = 0;\r\n }", "title": "" }, { "docid": "b80967e688f7a7f614de17535171204a", "score": "0.5998285", "text": "protected function init()\n\t{}", "title": "" }, { "docid": "939a2c1e2f18948dc299fe2e8f2093cc", "score": "0.59633046", "text": "public function init()\n {\n parent::init(); // TODO: Change the autogenerated stub\n if (!$this->keepFileName) {\n $this->filename = $this->generateNewFilename();\n }\n if (empty($this->uploadDirectory)) {\n $this->uploadDirectory = Media::getCurrentDirectory();\n }\n }", "title": "" }, { "docid": "5931cf3924d3749cd7fdae1aa02ec4d4", "score": "0.5960533", "text": "public function __construct()\n\t{\n\t\t// We store the file out of the public directory to stop it being downloaded through the browser\n\t\t$this->setDataFile('../data/data.ser');\n\t}", "title": "" }, { "docid": "27743546d7def838aa509e2f54c6ed52", "score": "0.5948204", "text": "protected function initialize() : void\n\t{\n\t\t// Set error reporting\n\t\terror_reporting(E_ALL ^ E_WARNING);\n\n\t\t// Get temp directory\n\t\tif ($this->_tmp_dir === NULL) {\n\t\t\t$this->_tmp_dir = sys_get_temp_dir();\n\t\t}\n\n\t\t// Delete if dirs already exist to avoid false content\n\t\t$this->delete_dirs();\n\n\t\t// Try to create required asset dir\n\t\tif ($this->_parse_doc && ( ! mkdir($this->_asset_dir, 0777, TRUE) && ! is_dir($this->_asset_dir)))\n\t\t{\n\t\t\t$this->kill('Directory \"'.$this->_asset_dir.'\" could not been created. Please check your permissions.');\n\t\t}\n\n\t\t// Try to create required documentation dir\n\t\tif ($this->_parse_doc && ( ! mkdir($this->_documentation_dir, 0777, TRUE) && ! is_dir($this->_documentation_dir)))\n\t\t{\n\t\t\t$this->kill('Directory \"'.$this->_documentation_dir.'\" could not been created. Please check your permissions.');\n\t\t}\n\n\t\t// Try to create required api dir\n\t\tif ($this->_parse_api && ( ! mkdir($this->_api_dir, 0777, TRUE) && ! is_dir($this->_api_dir)))\n\t\t{\n\t\t\t$this->kill('Directory \"'.$this->_api_dir.'\" could not been created. Please check your permissions.');\n\t\t}\n\n\t\t// Set Autoloader for classes\n\t\tif ($this->_parse_api) {\n\t\t\tspl_autoload_register(['Documentation_Generator', 'auto_load']);\n\t\t}\n\n\t}", "title": "" }, { "docid": "2a45eb663f05b4b177f605c07f20ada4", "score": "0.5943322", "text": "public function init() {\n\t\t// all output will be store at class output class\n\t\t$this->output = new stdClass();\n\t\t$this->getView()->output = $this->output;\n\t\t// set the actions autoloader\n\t\tYaf_Loader::getInstance(APPLICATION_PATH . '/application/helpers')->registerLocalNamespace(\"Action\");\n\t\t$this->setActions();\n\t\t$this->setOutputMethod();\n\t}", "title": "" }, { "docid": "c41deb021c32b4b05456fbde5a15525d", "score": "0.59322613", "text": "public function init() {\n }", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.5926397", "text": "protected function init() {}", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.5926397", "text": "protected function init() {}", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.5926397", "text": "protected function init() {}", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.5926397", "text": "protected function init() {}", "title": "" }, { "docid": "faf4a7d6149456e7e7453474cd1d0838", "score": "0.5926397", "text": "protected function init() {}", "title": "" }, { "docid": "70afdabf15c74e84c88b1870406338a1", "score": "0.58944196", "text": "public function init() {\n\t }", "title": "" }, { "docid": "31ee5fdff66fa92f29e4179bb9f3dd86", "score": "0.58903015", "text": "function __construct() {\r\n if (GZIP_MODE)\r\n ob_start(\"ob_gzhandler\");\r\n }", "title": "" }, { "docid": "bd709103b086151f9095de9da61cfade", "score": "0.5887948", "text": "public function init()\n {\n parent::init(); \n \n $this->response->addHeader('Content-Type','text/plain');\n }", "title": "" }, { "docid": "a374525b91b8525289f8e4245cc2581b", "score": "0.5879134", "text": "protected function init() {\n $self = $this;\n $self->dataset = [];\n $self->dataset_name = 'Data';\n $self->dataset_id = 'data_data';\n }", "title": "" }, { "docid": "583c8d19dbc9ba9712b078e0a3d457c4", "score": "0.58662534", "text": "public function init()\n {\n $this->open();\n \n parent::init();\n }", "title": "" }, { "docid": "f7818d3b689ecb0d9a486164564b9c96", "score": "0.5858595", "text": "public function init()\n {\n $this->getResponse()->setHeader('Content-Type', 'application/json');\n }", "title": "" }, { "docid": "0e6e864e80a98aa08db362cf9785424f", "score": "0.5854814", "text": "protected function init()\n {}", "title": "" }, { "docid": "c13d3625c160e595500791dd4cda74a6", "score": "0.5854013", "text": "public function __construct($xml_version = \"1.0\") { \n $this->xml_data = new XMLWriter();\n \n $this->xml_data->openMemory();\n \n $this->xml_data->startDocument($xml_version);\n \n $this->xml_data->setIndent(true);\n }", "title": "" }, { "docid": "a9d6a25184a9a38a148141641026b46a", "score": "0.5846121", "text": "public function __construct() {\n\t\t$this->newFile = \"\";\n\t}", "title": "" }, { "docid": "aa5685953171493b89d749d8863e7b74", "score": "0.58421165", "text": "function init() {\n\t\t$this->valid \t\t\t= false ;\n\t\t$this->fname\t\t = \"\" ;\n\t\t$this->magic\t\t\t= \"\" ;\n\t\t$this->compressed = false ;\n\t\t$this->version \t\t= 0 ;\n\t\t$this->width \t\t\t= 0 ;\n\t\t$this->height\t\t\t= 0 ;\n\t\t$this->size\t\t\t\t= 0 ;\n\t\t$this->frames\t\t\t= 0 ;\n\t\t$this->fps[] \t\t\t= Array() ;\n\t\t#if ($this->debug) echo \"DEBUG: Data values initialized<br>\" ;\n\t }", "title": "" }, { "docid": "5bf2b824090758677f220b35af50f8bf", "score": "0.58291805", "text": "function init() {\n $this->title = get_string('title', 'block_php_report');\n\n $this->version = 2011042800;\n $this->revision = '1.9.0';\n }", "title": "" }, { "docid": "a11336ffb042579aad3d654e8e7eb8f5", "score": "0.5813426", "text": "protected function init(){\n\t\t//overwrite me\n\t}", "title": "" }, { "docid": "29bc52f24b3763bd2ae8276c5bb0a99d", "score": "0.58092767", "text": "private function __construct()\n {\n $this->set();\n }", "title": "" }, { "docid": "fc05f18050083908a90f7225b0d23fe0", "score": "0.58088773", "text": "protected function __construct() {\n\t\t$this->document\t= new DOMDocument();\n\t\t$this->head\t\t= $this->document->createElement('head');\n\t\t$this->body\t\t= $this->document->createElement('body');\n\t}", "title": "" }, { "docid": "013b5d2b99bc319967b442888c668b8a", "score": "0.57965374", "text": "public function init()\n {\n \t\n }", "title": "" }, { "docid": "013b5d2b99bc319967b442888c668b8a", "score": "0.57965374", "text": "public function init()\n {\n \t\n }", "title": "" }, { "docid": "80a281e06e8905abaff0ac3db7c09b8e", "score": "0.57964265", "text": "protected function init(){}", "title": "" }, { "docid": "1ac5a2c6102ad8ab9e12f23847805bb8", "score": "0.57847744", "text": "public function init()\n\t{\n\n\t\t\t\n\t}", "title": "" }, { "docid": "c4ce48174ab77ea421d5b929190f07ae", "score": "0.57846993", "text": "function _initialize() {\r\n if ($this->_using_tmpfile == false) {\r\n return;\r\n }\r\n\r\n if ($this->_tmp_dir === '' && ini_get('open_basedir') === false) {\r\n // open_basedir restriction in effect - store data in memory\r\n // ToDo: Let the error actually have an effect somewhere\r\n $this->_using_tmpfile = false;\r\n return new PEAR_Error('Temp file could not be opened since open_basedir restriction in effect - please use setTmpDir() - using memory storage instead');\r\n }\r\n\r\n // Open tmp file for storing Worksheet data\r\n if ($this->_tmp_dir === '') {\r\n $fh = tmpfile();\r\n } else {\r\n // For people with open base dir restriction\r\n $tmpfilename = tempnam($this->_tmp_dir, \"Spreadsheet_Excel_Writer\");\r\n $fh = @fopen($tmpfilename, \"w+b\");\r\n }\r\n\r\n if ($fh === false) {\r\n // If tmpfile() fails store data in memory\r\n $this->_using_tmpfile = false;\r\n } else {\r\n // Store filehandle\r\n $this->_filehandle = $fh;\r\n }\r\n }", "title": "" }, { "docid": "2cb5977dd8dc70fb043c4bb487b47212", "score": "0.5779074", "text": "public function __construct()\n {\n $this->XMLData = [];\n $this->processed_data = [];\n }", "title": "" }, { "docid": "ed9cac5a36907b0244306719e265671a", "score": "0.57692087", "text": "public function setUp()\n {\n $this->memory = new MemoryOutputStream();\n $this->filteredOutputStream = new FilteredOutputStream(\n $this->memory,\n function($value)\n {\n return 'foo' === $value;\n }\n );\n }", "title": "" }, { "docid": "ff94dfecebfe4d1bf986f240c5935235", "score": "0.57657754", "text": "public function init()\n {\n // TODO: Implement init() method.\n }", "title": "" }, { "docid": "7caf8b6fe8fe3e4d2774756f2344fccc", "score": "0.5763723", "text": "private function init()\n {\n if (empty($this->attributes)) {\n $this->attributes = $this->defaultAttributes;\n }\n\n $this->currentLevel = -1;\n $this->parsedObjects = array();\n $this->currentObject = $this->getNewEmptyObject();\n }", "title": "" }, { "docid": "c433acabef1e509cf466a6c4f3532fae", "score": "0.5757418", "text": "public function __construct() {\r\n $this->exporter = new HW_Export(null);\r\n $this->setup_actions();\r\n }", "title": "" }, { "docid": "67620b0a1ff7a74ea1ff20efab217de4", "score": "0.5753481", "text": "function __construct($output='php://output', $indent=true)\n {\n// parent::__construct($output, $indent);\n $this->xw = new XMLWriter();\n $this->xw->openMemory();\n $this->xw->setIndent($indent);\n $this->tu = new TemplateUtil($this);\n }", "title": "" }, { "docid": "a463f7ea2a8acc6bd3c6e66d6adb0cff", "score": "0.5745724", "text": "protected function init() {\n\t}", "title": "" }, { "docid": "168fa7d5f41f1c164465fe2c2aff22cf", "score": "0.57447845", "text": "protected function setUp()\n {\n $this->path = new \\SplFileInfo(sys_get_temp_dir() . '/compact-log-' . Random::alphaNum(6) . '/test.log' );\n $this->object = new FileRecorder($this->path);\n }", "title": "" }, { "docid": "ebb013831119266406c86dfdea155d63", "score": "0.57398057", "text": "public function __construct()\n {\n // Initialise variables\n $this->_author\t\t= 'Author';\n $this->_text\t\t= new PHPExcel_RichText();\n $this->_fillColor\t= new PHPExcel_Style_Color('FFFFFFE1');\n $this->_alignment\t= PHPExcel_Style_Alignment::HORIZONTAL_GENERAL;\n }", "title": "" }, { "docid": "aadc5e844b87b4400ae5e67220e1c2fe", "score": "0.5736763", "text": "public function initializeFile()\n {\n }", "title": "" }, { "docid": "6ce9051e6624dfb8d0eb2de819b7a194", "score": "0.5735133", "text": "protected function init()\r\n\t{\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2876e43e6d4cf4bbf79a916d895968db", "score": "0.573337", "text": "public function initialize()\n {\n $this->registerStream();\n $this->exposeManager();\n $this->prepareIncludePath();\n }", "title": "" }, { "docid": "c2d5a5b2c37e00663f4b2a2c49b2ff11", "score": "0.57311225", "text": "protected function init()\n {\n }", "title": "" }, { "docid": "c2d5a5b2c37e00663f4b2a2c49b2ff11", "score": "0.57311225", "text": "protected function init()\n {\n }", "title": "" }, { "docid": "4e487c8ee50f66f9035b637db4a0d306", "score": "0.5729173", "text": "protected function init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "ddcb52003c2958c5e44470040b9bdd79", "score": "0.57096964", "text": "public function init()\r\n {}", "title": "" }, { "docid": "bf14095236a1885b30a3e95e0632dde9", "score": "0.5706054", "text": "protected function _init() {}", "title": "" }, { "docid": "e8326d564e168dfe9da0549f8bec5ed7", "score": "0.57040215", "text": "public function init()\n {\n $this->reset();\n }", "title": "" }, { "docid": "38d493245fa3135ecc009ea5fec97a01", "score": "0.56973934", "text": "public function __construct()\n {\n $this->resetBodyStream();\n }", "title": "" }, { "docid": "af441fc9d21cdee60a76c371892a4298", "score": "0.5697387", "text": "protected function initialize()\n {\n parent::initialize();\n self::$path = config('path.');\n $this->autoWriteTimestamp = $this->timeUpdate;\n }", "title": "" }, { "docid": "48323e67f4047120ba9c2f275449c698", "score": "0.569677", "text": "public function onBeforeWrite()\n {\n parent::onBeforeWrite();\n }", "title": "" }, { "docid": "e01c373f41f3acaba38bc75f1509d6b8", "score": "0.56948704", "text": "public function __construct( RedBean_QueryWriter $writer ) {\n $this->writer = $writer;\n }", "title": "" }, { "docid": "17d2f23bf8927883a02e258182fdc22a", "score": "0.56931317", "text": "protected function __init()\n\t{\n\t\t// Empty. Extending classes should override this.\n\t}", "title": "" }, { "docid": "74023db80e51adeb0d4899fa62cb3cc3", "score": "0.56925875", "text": "public function __construct()\n {\n $this->debug = false;\n $this->column = array();\n $this->customColumns = array();\n $this->hideFooter = false;\n }", "title": "" }, { "docid": "8408740560afe5f102d52da0ba1092aa", "score": "0.5680262", "text": "function init() {\n\t\t\t\t\t\t\n\t\t}", "title": "" }, { "docid": "2d2b9c923c71e6b2f93921843b5b7fa9", "score": "0.5675937", "text": "public function init() {\n if($this->_db->mode == 'w' && !file_exists($this->_path)) {\n mkdir($this->_path, 0755, true);\n }\n\n // create the file if it doesn't exist when in \"write\" mode\n if($this->_db->mode == 'w' && !$this->exists()) {\n touch($this->_filename);\n touch($this->_metaFilename);\n $this->_fileWasJustCreated = true;\n // If this shard is a later date than the last known shard, update that file\n if(file_exists($this->_db->lastShardFile())) {\n $last = new DateTime(file_get_contents($this->_db->lastShardFile()), new DateTimeZone('UTC'));\n if($this->_date > $last) {\n $updateLastShard = $this->_date;\n } else {\n $updateLastShard = false;\n }\n } else {\n $updateLastShard = $this->_date;\n }\n if($updateLastShard) {\n file_put_contents($this->_db->lastShardFile(), $updateLastShard->format('Y-m-d'));\n }\n }\n\n // open the file pointer\n if($this->exists()) { \n // Set the fopen mode to read or write\n $mode = ($this->_db->mode == 'w' ? 'a' : 'r');\n $file = new SplFileObject($this->_filename);\n $this->_fp = $file->openFile($mode);\n $meta = new SplFileObject($this->_metaFilename);\n $this->_mp = $meta->openFile('r+');\n if($this->_fileWasJustCreated) {\n $this->_mp->fwrite(\"0\\n\");\n }\n }\n }", "title": "" }, { "docid": "2af7e930700d52aa490693fae3ae7232", "score": "0.56667423", "text": "function __construct()\n {\n $this->fileManager = new FileManager();\n $this->pdf = new DocumentPDF('P', 'mm', 'A4', true, 'UTF-8', false);\n return;\n }", "title": "" }, { "docid": "ddd5ff14af697aa79fe51da2d3100d10", "score": "0.56648624", "text": "public function init() {\r\n }", "title": "" }, { "docid": "c335ef684421c65bb016315405b39e04", "score": "0.56637853", "text": "public function __construct()\n\t{\n\t\t$this->_lines = array();\n\t\t$this->_line = '';\n\t\t$this->_group = '';\n\t\t$this->_tag = '';\n\t}", "title": "" }, { "docid": "06b9df18e0620ae0a915fd38813c43fa", "score": "0.5659578", "text": "public function init() {\r\n }", "title": "" }, { "docid": "cf5c74b9d93d314f1286f6b6384e38eb", "score": "0.56580824", "text": "public function init()\n {\n $this->disableLayout();\n $this->disableView();\n $this->_response->setBody(null);\n $this->_response->setHttpResponseCode(200); // 200 OK\n }", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.56569964", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.56569964", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.56569964", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.56569964", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.56569964", "text": "public function init() {}", "title": "" }, { "docid": "301b396f2e10e9368a994b407609017e", "score": "0.56569964", "text": "public function init() {}", "title": "" }, { "docid": "24fbd3a0f706bee8cf5fd21d06b09689", "score": "0.56514865", "text": "private function __construct() {\n $this->openLogFile();\n }", "title": "" }, { "docid": "89a069fe497510a5050bbed453d5aef4", "score": "0.5645574", "text": "function __construct()\n\t\t\t{\n\t\t\t\t$this->Count = 0;\n\t\t\t}", "title": "" }, { "docid": "c9c787ae6feb278d18f9f3c991cc1959", "score": "0.5644752", "text": "private function init()\n\t{\n\t\treturn;\n\t}", "title": "" }, { "docid": "05b135ab3f6aedf2651984ce62cbf3a2", "score": "0.5642107", "text": "public function init() { }", "title": "" }, { "docid": "a49d7e52d726cf642b7b0edbaef6572e", "score": "0.56416905", "text": "private function __construct()\n {\n $this->m_dataRead = false;\n $this->m_attachments = array();\n }", "title": "" }, { "docid": "8b09a10203adc7b82600674918f471f7", "score": "0.5637235", "text": "function init() {\n\t\t}", "title": "" }, { "docid": "d02745e9be0ee7d5ea66e828d1575852", "score": "0.5631996", "text": "final public static function init(): bool {\r\n $config = workhorse::getConfig();\r\n\r\n self::$egressFile = driver::$currentExport['output']['location'];\r\n\r\n if (file_exists(self::$egressFile) === true) {\r\n unlink(self::$egressFile);\r\n } else {}\r\n\r\n fileio::createEmptyFile(self::$egressFile);\r\n\r\n if (file_exists(self::$egressFile) === true && is_readable(self::$egressFile) === true) {\r\n self::$xmlWriter = new XMLWriter();\r\n self::$xmlWriter->openMemory();\r\n self::$xmlWriter->setIndent(true);\r\n self::$xmlWriter->setIndentString(' ');\r\n self::$xmlWriter->startDocument('1.0', 'UTF-8');\r\n }\r\n else {\r\n log::logAlert(errors::$outputFileNotFoundorNotWritable);\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "title": "" }, { "docid": "394962d57828ba8a0363f997c4c873ce", "score": "0.56280917", "text": "protected function init(): void\r\n {\r\n }", "title": "" }, { "docid": "f8fc0d561b9314897887e06e5eb0dbdb", "score": "0.56246954", "text": "public function setUp() {\n\t\t\n\t\t$f = @fopen(LOG_FILE_PATH, \"r+\");\n\t\t\n\t\tif ($f !== false) {\n\t\t ftruncate($f, 0);\n\t\t fclose($f);\n\t\t}\t\n\t\t\t\n\t\tparent::setUp ();\n\t}", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "34bbf390f9061cdcf96b58ff20ffbb10", "score": "0.0", "text": "public function update(Request $request, procedures $procedures)\n {\n $procedures -> fill($request->all());\n\n $procedures->save();\n\n session()->flash('mensagem', 'procedimento atualizado com sucesseo!');\n return redirect()->route('procedures.show',$procedures->id);\n }", "title": "" } ]
[ { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.7056844", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.7056844", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "f926d67103b49c3b708938347c012581", "score": "0.7040125", "text": "public function updateResource($resourceId, $record);", "title": "" }, { "docid": "de2d52f9def3aad6f8d87d580d39c262", "score": "0.6885914", "text": "public function update() {\n\t\t$this->storage->updateStorage();\n\t}", "title": "" }, { "docid": "24dae383ef96f6cd3c2ae0eb901b0e6e", "score": "0.653078", "text": "public function update_storage()\n {\n }", "title": "" }, { "docid": "4036e5a75462edf3f0d824f080ae7c19", "score": "0.65144604", "text": "public function update(StorageRequest $request, Storage $storage)\n {\n $campos = $request->validated();\n\n $storage = $this->storageRepository->update($campos, $storage);\n\n return $this->showOne(new StorageResource($storage), 200);\n }", "title": "" }, { "docid": "4a53e7dd3c2aa1884a6b78cfa1931df7", "score": "0.6364551", "text": "public function updateFromResource(\n $resourceResource,\n $exerciseResource\n );", "title": "" }, { "docid": "a37451d53b2edd450cd43846406cd904", "score": "0.6324401", "text": "public function updated(Resource $resource)\n {\n $this->deleteCacheDepartments();\n }", "title": "" }, { "docid": "1d3b0af7b4ec814b473b06c1a2a208fd", "score": "0.6139885", "text": "public function update(UpdateRequest $request, Resource $resource)\n {\n $resource->update($request->only('name', 'type','resource_starts','resource_ends','exclude_weekends'));\n\n return redirect(route('resources.show', $resource->id))->withSuccess('Updated successfully!');\n }", "title": "" }, { "docid": "4e3b6ab51e63f6ffae63a329de90b240", "score": "0.6122597", "text": "abstract public function updateResource($resource, ResourceNode $node, Workspace $workspace, User $user, SyncInfo $wsInfo, $path, $syncDate);", "title": "" }, { "docid": "4f4808380f22218aaf7fbea02c9916cb", "score": "0.6092762", "text": "public function update(Request $request, $resourceId)\n {\n $resource = $this->resource->find($resourceId);\n\n $this->validate($request, [\n 'title' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'slug' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'model' => 'required|unique:laramanager_resources,title,' . $resourceId . '|max:255',\n 'namespace' => 'required|max:255',\n 'order_column' => 'required|integer',\n 'order_direction' => 'required|in:asc,desc'\n ]);\n\n $resource->update($request->all());\n\n return redirect()->back()->with('success', 'Resource updated');\n }", "title": "" }, { "docid": "fae18446ab6ba766002815d7efd6d0f2", "score": "0.6016204", "text": "public function updateStream($resource)\n {\n return $this->filesystem->updateStream($this->path, $resource);\n }", "title": "" }, { "docid": "109ed515c823d7a78d782a8290a576d2", "score": "0.59708524", "text": "public function update($resourceId)\n {\n $exception = new Exception(\"CRUD0103\", __METHOD__);\n $exception->setHttpStatus(\"501\", \"Not yet implemented\");\n throw $exception;\n }", "title": "" }, { "docid": "74defa123e70820a991135800b36505a", "score": "0.5949736", "text": "static public function update () {\n\n $METHOD = Request::getMethod();\n $PATH = Request::getPath();\n\n Log::debug('--- Matched / with PUT method ---');\n\n $DATA = new EditableJSON(REST_DATA_FILE);\n\n $DATA->setValue(Request::getInput());\n\n Log::info(\"$METHOD $PATH: Changed resource completely\");\n\n return $DATA;\n\n }", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59388787", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "aa3074b4db1abeb89a38b5e15dee9e7c", "score": "0.58978814", "text": "public function updateStream($path, $resource, array $config)\r\n\t{\r\n\t\treturn $this->upload($path, $resource, $config);\r\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5892445", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5892445", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac66e1d66c388debefca8f97ea91a2b7", "score": "0.5842214", "text": "public function putUpdate()\n {\n $this->postUpdate();\n }", "title": "" }, { "docid": "f9e2fce00b6006820375e4adc0b03778", "score": "0.58395267", "text": "public function update($id, Request $request)\n {\n //\n $this->validate($request, ['storage_type' => 'required|in:Local HDD,Network HDD,Local SSD,Network SSD']);\n\n $st = StorageType::findOrFail($id);\n $st->storage_type = $request->storage_type;\n\n return redirect()->route('storagetypes.index');\n }", "title": "" }, { "docid": "58d5142b37ce0114e53d3fe56c2f6c03", "score": "0.5810709", "text": "protected function storeVersion(PuliResource $resource)\n {\n if (null !== $this->changeStream) {\n $this->changeStream->append($resource);\n }\n }", "title": "" }, { "docid": "3ebf4ac6712058cf5111ea2fb1b3f69d", "score": "0.57907015", "text": "public function updateStream($path, $resource, Config $config)\n {\n $this->delete($path);\n\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "b7efc8833e2707d2c41ccbb075ab62b4", "score": "0.5751257", "text": "public function updateExisting();", "title": "" }, { "docid": "eaf18f66946228a152f8b83c6b49e31e", "score": "0.57475007", "text": "public function update($id, $data) {}", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57359827", "text": "public function setResource($resource);", "title": "" }, { "docid": "e298ed6e92031fa9134c5a6ed2507d24", "score": "0.569224", "text": "public function update($object);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5674568", "text": "public function update($data);", "title": "" }, { "docid": "6429c73de2ef2191c3d2be22fbf0f39c", "score": "0.5674568", "text": "public function update($data);", "title": "" }, { "docid": "9515a7f9c7d4d49fd0e91b13594a00d6", "score": "0.56706846", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'question'=>'required',\n 'description'=>'required',\n \n ]);\n $frequently=Frequently::where('id',$id)->first();\n $old_image=$request->old_image;\n $path=$old_image;\n if($request->hasFile('thumbnail')){\n if($path!=null&&file_exists(\"/storage/$path\")){\n unlink('storage/'.$path);\n }\n $path=$request->file('thumbnail')->store('Frequentlys');\n }\n $frequently->question=$request->question;\n $frequently->description=$request->description;\n $frequently->photo=$path;\n $frequently->save();\n return redirect()->route('listFrequently');\n }", "title": "" }, { "docid": "9ddd9520efc51e699e82bfa708a3c5e5", "score": "0.56640106", "text": "public function update($path, $cachedData);", "title": "" }, { "docid": "b3535d5367a1c20a3d356e026d81c210", "score": "0.5644709", "text": "public function update(Request $request, $id)\n {\n $product = Products::findOrFail($id);\n if($request->hasFile('avatar')){\n $imagen = $request->file('avatar')->store('public');\n $resultado = str_replace(\"public\", \"storage\", $imagen);\n $product->imagen = $resultado;\n }\n $product->nombre = $request->get('nombre');\n $product->codigoBarra = $request->codigoBarra;\n $product->cantidad = $request->cantidad ;\n $product->categoria = $request->categoria ;\n $product->descripcion = $request->descripcion ;\n $product->costo = $request->costo ;\n $product->precio = $request->precio;\n $product->save();\n return redirect()->route('products.index');\n }", "title": "" }, { "docid": "3538e1075fd6fc7f2d59249215667663", "score": "0.5641608", "text": "public function update(Request $request, $id)\n {\n $id = $request->input('Id');\n $editPoll = $this->bucket->get(\"poll::\" . $id)->value;\n if (!(is_object($editPoll))) {\n $editPoll = json_decode($editPoll);\n }\n $created_at = $request->input('CreatedAt');\n $question = $request->input('Question');\n $status = $request->input('Status');\n $tags = $request->input('Tags');\n $tags_new = explode(\",\", $tags);\n $options = $editPoll->options;\n\n if ($file = $request->file('ImageName')) {\n unlink(\"imgs/\" . $request->input('PreviousImage'));\n $member_image = $file->getClientOriginalName();\n $file->move('imgs', $member_image);\n } else {\n $member_image = $request->input('PreviousImage');\n }\n\n $this->bucket->replace(\"poll::\" . $id, ['Id' => $id, 'created_at' => $created_at, 'options' => $options,\n 'question' => $question, \"status\" => $status, \"tags\" => $tags_new, 'ImageName' => $member_image]);\n return redirect(\"polls\");\n }", "title": "" }, { "docid": "e5e1cb25ba53fcc2b79ddb3fe3b7304a", "score": "0.563941", "text": "public function update($object)\n {\n $this->persistenceManager->update($object);\n }", "title": "" }, { "docid": "9d32dd86baa4f1169783965d8d08b640", "score": "0.56381184", "text": "public function testResourcesCanBeUpdated()\n {\n $admin = factory(User::class)->states('admin')->create();\n $resource = factory(Resource::class)->create();\n\n $response = $this->actingAs($admin)->put('resources/'.$resource->id, [\n 'name' => 'New Resource Name',\n ]);\n\n $response->assertRedirect('/resources');\n $this->assertDatabaseHas('resources', [\n 'name' => 'New Resource Name',\n ]);\n }", "title": "" }, { "docid": "e4d9cc7693ad36b031389e0564fbaf8b", "score": "0.56243694", "text": "public function update(StoreEditEngagement $request, $id)\n {\n $engagement = Engagement::find($id);\n\n $engagement->titre = $request->titre;\n $engagement->contenu = $request->contenu;\n \n if ($request->image != null)\n {\n Storage::disk('imgEngagement')->delete($engagement->image);\n \n \n $image = [\n \"name\" => $request->image,\n \"disk\" => \"imgEngagement\",\n \"w\" => 1000,\n \"h\" => 1000\n ];\n \n $engagement->image = $this->imageResize->imageStore($image);\n }\n $engagement->save();\n return redirect()->route('engagements.index',['engagement'=> $engagement->id]);\n }", "title": "" }, { "docid": "b580434b2e577708f365194b901193c3", "score": "0.5620627", "text": "public function update() {\n\t\tif ($this->get('id') !== null) {\n\t\t\t$this->save();\n\t\t}\n\t}", "title": "" }, { "docid": "02b2a8f5c6ceb76c08e4a6597e2c8da0", "score": "0.56179917", "text": "public function updateProduct(): void\n {\n $product = $this->fetchProduct($this->product->product_name, $this->product->product_nr);\n if (!$product) {\n $this->product->last_scan = now();\n $this->product->save();\n\n return;\n }\n\n $this->product->product_url = $product['details']['url'];\n $this->product->stock_status = $product['details']['stock'];\n $this->product->last_scan = now();\n\n $inStock = $this->store->productHasStock($product['node']);\n if ($inStock) {\n $this->product->notifyInStock();\n $this->product->found = 1;\n }\n\n $this->product->save();\n }", "title": "" }, { "docid": "1c49f93e51c7bc32222ecde454e3f4ab", "score": "0.56161153", "text": "public function update(Request $request, $id)\n {\n $item = Item::findOrFail($id);\n\n $request->validate([\n 'description' => 'required|string',\n 'name' => 'required|string',\n 'price' => 'required|numeric',\n 'type' => 'required', Rule::in(['drink', 'dish']),\n ]);\n\n if($request->file('file')){\n $request->validate([\n 'file' => 'image'\n ]);\n if($item->photo_url != null){\n Storage::delete('public/items/'.$item->photo_url);\n }\n $item->photo_url = basename($request->file('file')->store('public/items'));\n }\n\n \n $item->description = $request['description'];\n $item->name = $request['name'];\n $item->price = $request['price'];\n $item->type = $request['type'];\n $item->save();\n return new ItemResource($item);\n }", "title": "" }, { "docid": "b6ca8c191b9b71b8ef7393647dcd5cd6", "score": "0.5610479", "text": "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n if (!$product) return response()->json(['message' => 'Product not found.'], 404);\n\n $validator = Validator::make($request->all(), [\n 'name' => 'min:3|max:100',\n 'description' => 'min:5',\n 'price' => 'integer',\n 'quantity' => 'integer',\n 'image' => 'image|mimes:jpg,jpeg,svg,png'\n ]);\n\n $newPath = \"\";\n if ($request->hasFile('image')) {\n Storage::delete('products/' . $product->image);\n $newPath = $request->file('image')->store('public/products');\n }\n\n if ($validator->fails()) {\n return response()->json($validator->errors(), 422);\n }\n\n $product->name = $request->get('name', $product->name);\n $product->description = $request->get('description', $product->description);\n $product->price = $request->get('price', $product->price);\n $product->quantity = $request->get('quantity', $product->quantity);\n $product->image = $request->get($newPath, $product->image);\n\n $product->save();\n return new ProductResource($product);\n }", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.560249", "text": "public function update($id, $request);", "title": "" }, { "docid": "861587caf58c3f620dbafce99fe22615", "score": "0.560249", "text": "public function update($id, $request);", "title": "" }, { "docid": "111aff7dc652d737e04484d721049c98", "score": "0.559757", "text": "public function setResource($resource) { $this->resource = $resource; }", "title": "" }, { "docid": "751d0245849a838786b28b82bde8a4c7", "score": "0.55953914", "text": "public function updateStream($path, $resource, Config $config) {\n echo \"updateStream\";exit;\n }", "title": "" }, { "docid": "2ce24d19906aa703a63656bcd981224d", "score": "0.559396", "text": "public function update(Request $request, $id)\n {\n $article=Article::findOrFail($id);\n $article->stock=$request->input('stock');\n if($article->save()) {\n return new ArticleResource($article);\n }\n }", "title": "" }, { "docid": "87604b965f2923e2345b489944eb16ab", "score": "0.5582773", "text": "public function update(IEntity $entity);", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55672973", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "23b36aabfd1baef1df2a84b64db8a004", "score": "0.5563349", "text": "public function update(Request $request, $id)\n {\n $data = $request->all();\n\n //validation\n $request->validate($this->Validation());\n\n $product = Product::find($id);\n\n $data['slug'] = Str::slug($data['name'], '-');\n\n if (!empty($data['image'])) {\n // RIMUOVERE VECCHIA IMG\n if (!empty($product->image)) {\n Storage::disk('public')->delete($product->image);\n }\n $data['image'] = Storage::disk('public')->put('images', $data['image']);\n }\n\n $updated = $product->update($data);\n\n if($updated){\n return redirect()->route('products.show', $product->slug);\n } else {\n return redirect()->route('homepage');\n } \n }", "title": "" }, { "docid": "04c0feb8d31bb9e3b0c25e72f6a0c700", "score": "0.5560607", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path, $resource, $config);\n }", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55602384", "text": "public function update($id, $data);", "title": "" }, { "docid": "29033c29e8cd8e769333ca2adef8fc91", "score": "0.55587864", "text": "public function update(Request $request, $id)\n {\n $single=Slider_image::findorfail($id);\n $image = $single->image;\n\n if ($request->file() != null){\n\n Storage::delete('upload/slider_image/'.$image);\n\n $upload = $request->file('image1');\n\n\n $file_name = time().'_'.$upload->getClientOriginalExtension();\n\n $path = $upload->storeAs('upload/slider_image',$file_name);\n\n $single->update([\n 'image'=>$file_name,\n 'slider_target'=>$request->slider_target\n ]);\n }else{\n\n $single->update([\n 'image'=>$request->img,\n 'slider_target'=>$request->slider_target\n ]);\n }\n\n\n return redirect('admin/SliderItem');\n }", "title": "" }, { "docid": "23b13183e49a64c42b369b76ee72ff0a", "score": "0.5549417", "text": "public function put($resource, $arOptions)\n {\n // TODO: Implement put() method.\n if (false) {\n $this->utilSetHttpStatus(200, \"OK\");\n } else {\n $this->utilSetHttpStatus(404, \"Not found\");\n }\n }", "title": "" }, { "docid": "47dd85ccb548e5327aa6f0cd02b5fef8", "score": "0.5541174", "text": "public function update(Request $request, $id) //Atualizar um dado inteiro, usando o Put\n {\n //\n }", "title": "" }, { "docid": "a08f6b774130b5c3d30282ec86fc268e", "score": "0.55411553", "text": "public function update(Request $request)\n {\n DB::table('cruds')->where('id',$request->id)->update([\n 'name'=>$request->name,\n 'price'=>$request->price,\n 'image'=>$request->file('image')->store('media'),\n 'description'=>$request->description,\n ]);\n return redirect('index/show');\n\n\n }", "title": "" }, { "docid": "cd6123bf3edfbe468d12565bcc198dd6", "score": "0.5539958", "text": "public function update($data, $id, $withTrashed = false);", "title": "" }, { "docid": "6f5dfe25ea3a353e2c34d4da9909c65a", "score": "0.5533607", "text": "public function update(Request $request, $model, $id)\n {\n $class = 'App\\\\' . ucfirst($model);\n $resource = $class::find($id);\n if(empty($resource)){\n return response([\n \"error\" => \"Resource not found\"\n ], 404);\n }\n $update = [];\n $fillable_attributes = $resource->getFillable();\n foreach($fillable_attributes as $attribute){\n if(strpos($attribute, 's3_url')){\n if(!empty($request->file($attribute))){\n $url = AmazonS3Helper::UploadtoS3(file_get_contents($request->file($attribute)), 'framework/' . $model . '/' . $request->file($attribute)->hashName(),'image/' . $request->file($attribute)->extension());\n $update[$attribute] = $url;\n }\n }else{\n $update[$attribute] = $request->$attribute;\n }\n }\n $resource->update($update);\n return response([\n \"data\" => $resource\n ], 200);\n }", "title": "" }, { "docid": "91fa0e4ea0a8c7896101b28b83ae1ab3", "score": "0.55269194", "text": "public function update(Request $request)\n {\n //\n $producto = Product::findOrFail($request->id_producto);\n $producto->category_id = $request->id;\n $producto->nombre = $request->nombre;\n $producto->precio = $request->precio;\n $producto->descripcion = $request->descripcion;\n $producto->stock = 0;\n $producto->estado = '1';\n $imagen = $request->file('imagen');\n \n $imagenes = 'storage/app/products/'.$producto->imagen;\n \n // Guardar imagen\n if($imagen){\n Storage::delete($imagenes);\n $image_path_name = time().$imagen->getClientOriginalName();\n Storage::disk('products')->put($image_path_name, File::get($imagen));\n $producto->imagen = $image_path_name;\n }\n $producto->save();\n return Redirect::to(\"admin/producto\");\n }", "title": "" }, { "docid": "d8af827654eda9b47beb831dca58018e", "score": "0.55243725", "text": "public function put($resource, $id, $data = array())\n {\n $token = $this->getToken();\n if (empty($token)) {\n $token = $this->requestToken();\n }\n $data['token'] = $token;\n $ret = $this->getClient()->put(\"{$resource}/{$id}\", $data);\n //$ret = $this->getClient()->put(\"{$resource}/{$id}?token=\" . $token, $data);\n if (empty($ret)) {\n throw new Exception('Quartic Api returned empty result.');\n }\n if (!isset($ret['body']['status']) || strtolower($ret['body']['status']) != 'ok') {\n $this->getHelper()->log(var_export(\"{$resource}/{$id}\", true));\n $this->getHelper()->log(var_export($data, true));\n $this->getHelper()->log(var_export($ret, true));\n if (isset($ret['body']['data']['error_code'])) {\n throw new Exception('Quartic Api returned error: ' . $ret['body']['data']['error_message']);\n } else {\n throw new Exception('Quartic Api returned error: ' . print_r($ret['body'], true));\n }\n }\n return $ret;\n }", "title": "" }, { "docid": "a89f939420a4ce0f66a76f1e13ccde13", "score": "0.55239207", "text": "public function update(UpdateProductRequest $request, Product $product)\n {\n\n $data=$request->only(['title','description','published_at','price','category_id','content']);\n if ($request->hasFile('image')){\n //check if new image\n $image=$request->image->store('products');\n //upload it\n Storage::delete($product->image);\n //delete old one\n\n $data['image']=$image;\n }\n $product->update($data);\n\n\n session()->flash('success','Product updated successfully');\n\n return redirect(route('products.index'));\n }", "title": "" }, { "docid": "c49ab96374b0772bd28cd7ae8c2d6bfe", "score": "0.5520672", "text": "public function update(Request $request, $id)\n {\n //Actualizamos Datos en la DB\n $product = Product::findOrFail($id);\n if ($request->hasFile('image')) {\n $product->image = $request->file('image')->store('public/img/product/body');\n }\n $product->update($request->all());\n //Redireccionar al index\n return redirect()->route('product.index');\n }", "title": "" }, { "docid": "b5d2b22e695863a96f5a335c883dea91", "score": "0.5515183", "text": "public function update($item);", "title": "" }, { "docid": "429de32ce0a6f737ded9b4f0b77dc398", "score": "0.55149543", "text": "public function update(ProductEditRequest $request, $id)\n {\n //\n $url = $request->input('url');\n try {\n $product = Product::findOrFail($id);\n\n // if ($file = $request->file('image')) { // since its a one to many relationship\n // foreach ($product->images as $image) {\n // if (file_exists($old_file = public_path().'/images/product/'.$image->name)) { // no need to unlink since product can have many images\n // unlink($old_file); // unlink the old image\n // }\n // }\n\n // $name = 'product_'.$id.'_'.time().'.'.$file->getClientOriginalExtension();\n // $file->move('images/product', $name);\n // $product->images()->create(['product_id' => $product->id, 'name' => $name]);\n // }\n\n $product->name = $request->input('name');\n $product->category_id = $request->input('category_id');\n $product->stock = $request->input('stock');\n $product->price = $request->input('price');\n $product->status = $request->input('status');\n $product->description = $request->input('description');\n $result = $product->push();\n\n if ($result) {\n Session::flash('message', 'Update Success');\n } else {\n Session::flash('message', 'Update Failed');\n }\n } catch (\\Exception $e) {\n // do task when error\n Session::flash('error', 'Failed '.$e->getMessage());\n }\n return redirect($url);\n }", "title": "" }, { "docid": "ca50926bc80f12da80aa1ee555d0ab40", "score": "0.5511821", "text": "public function update(){\n Lore::app()->getPersistence()->getRepository($this->metadata()->getRepositoryName())->update($this);\n }", "title": "" }, { "docid": "59cc7aa6a27c614e6dbea168303030cb", "score": "0.5509832", "text": "public function update(Request $request, Memory $memory)\n {\n //\n }", "title": "" }, { "docid": "a6dd9080de61feef7df50e26b70511c5", "score": "0.5509689", "text": "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [ \n 'name' => 'required|string|max:255',\n 'logo' => 'sometimes|mimes:jpeg,bmp,png,jpg'\n ]);\n\n if ($validator->fails()) {\n $message = 'Validation Error.';\n $status = 400;\n\n $response = [\n 'status' => $status,\n 'success' => false,\n 'message' => $message,\n 'data' => $validator->errors(),\n ];\n\n return response()->json($response, 400);\n }\n else\n {\n $brand = Brand::find($id);\n\n if (is_null($brand)) {\n\n $status = 400;\n $message = 'Brand not found.';\n\n $response = [\n 'status' => $status,\n 'success' => false,\n 'message' => $message,\n ];\n\n return response()->json($response, 404);\n\n }\n else{\n\n $name = $request->name;\n $photo = $request->logo;\n\n // File Upoload\n if ($request->hasFile('photo')) {\n $imageName = time().'.'.$photo->extension(); \n \n $photo->move(public_path('images/brand'), $imageName);\n\n $filepath = 'images/brand/'.$imageName;\n\n $oldphoto = $brand->logo;\n\n if(\\File::exists(public_path($oldphoto))){\n \\File::delete(public_path($oldphoto));\n }\n }\n else{\n $filepath = $brand->logo;\n\n }\n\n // Data insert\n $brand->name = $name;\n $brand->logo = $filepath;\n $brand->save();\n \n\n $status = 200;\n $result = new BrandResource($brand);\n $message = 'Brand updated successfully.';\n\n $response = [\n 'status' => $status,\n 'success' => true,\n 'message' => $message,\n 'data' => $result,\n ];\n\n return response()->json($response, 200);\n }\n }\n }", "title": "" }, { "docid": "fd275acf4c99e35a1942adcba55b5168", "score": "0.55083764", "text": "public function update(Request $request, $id)\n {\n $data = Slider::find($id);\n $data->short_title = $request->short_title;\n $data->long_title = $request->long_title;\n $data->updated_by = Auth::user()->id;\n if ($request->file('image')) {\n $file = $request->file('image');\n @unlink(public_path('/upload/slider_image/'.$data->image));\n $filename =date('YmdHi').$file->getClientOriginalName();\n $file->move(public_path('/upload/slider_image'),$filename);\n $data['image']= $filename;\n }\n $data->save();\n return redirect()->route('view-slider')->with('success','Data updated successfully!');\n }", "title": "" }, { "docid": "5764299e1bb6a4a7925c46ed1072ca62", "score": "0.54995906", "text": "public function put($uri = null, $data = array(), $request = array());", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54958415", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54958415", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54958415", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54958415", "text": "public function update($id);", "title": "" }, { "docid": "048d9fb1be8f80b9c6a16e67a98faaff", "score": "0.5494185", "text": "public function update(StoreInventory $request, $id)\n {\n // Grab the inventory item so we can update it\n $inventory = Inventory::findOrFail($id);\n\n $inventory->fill($request->validated());\n \n return (new InventoryResource($inventory))\n ->response()\n ->setStatusCode(201);\n }", "title": "" }, { "docid": "09d3177310ace6bf104fcfebfdca9181", "score": "0.5492087", "text": "public function update($data)\n {\n return $this->client->put($this->fullPath(), null, $data);\n }", "title": "" }, { "docid": "85714b33bdb1da52c9f3c38b3fb0e4fd", "score": "0.54889137", "text": "abstract public function update($id);", "title": "" }, { "docid": "85e1d4766b8ee562913fc2a3fc7a60db", "score": "0.54889125", "text": "public function update(Request $request, $id)\n {\n //\n $this->validate(request(),[\n 'photo' => 'required|image|max:2048'\n ]);\n\n $photo = request()->file('photo')->store('public');\n \n\n Photo::update([\n 'url' => Storage::url($photo),\n 'activity_id'=> $activity->id,\n ]);\n\n }", "title": "" }, { "docid": "dea8abf6fe11ceeaef21c557a4920a01", "score": "0.5488478", "text": "public function update(Request $request, $id)\n {$product = Product::FindOrFail($id);\n $product->name = $request->name;\n $product->price = $request->price;\n $product->old_price= $request->old_price;\n $product->description = $request->description;\n $product->sub_category_id = $request->sub_category;\n if ($request->hasFile('picture')) {\n $picName = \"GRO\".uniqid().time().'.'.$request->picture->getClientOriginalExtension();\n $request->picture->move(public_path().'/uploads/', $picName);\n $product->picture='uploads/'.$picName;\n }\n $product->save();\n flash('Product updated successfully');\n return redirect('/');\n }", "title": "" }, { "docid": "2aeec2d1db1eb88cf92a885873ec7eed", "score": "0.5483294", "text": "public function update(Request $request, Executive $executive)\n {\n $this->validateRequestUpdate();\n $this->checkAndDeleteOldImage($executive);\n $executive->update($this->validateRequestUpdate());\n $this->storeImage($executive);\n return redirect(route('executive.index'));\n }", "title": "" }, { "docid": "4ba6c1fe9ed4a5352f8497193c138598", "score": "0.54825747", "text": "public function update(Request $request, $id)\n {\n $resource = Resource::find($id);\n $resource->update($request->except('files'));\n\n if ($request->hasFile('files')) {\n $resource->addMultipleMediaFromRequest(['files'])\n ->each(function ($file) {\n $file->toMediaCollection();\n });\n }\n\n $response = [\n 'resource' => $resource->load('media'),\n 'msg' => 'Resource updated successfully.'\n ];\n\n return response($response, 200);\n }", "title": "" }, { "docid": "4dd2aec8bd2e4b5b1bffb4aec68a91da", "score": "0.5482362", "text": "public function update(Request $request, Role_resource $role_resource)\n {\n //\n }", "title": "" }, { "docid": "61dacb3f91f0a855850458a18f5e4183", "score": "0.54811", "text": "public function update(Request $request, $id)\n {\n $input = $request->all();\n if($this->repo->update($input, $id)){\n return $this->respondOK(\"resource updated\");\n }else{\n return $this->errorNotFound('resource not updated');\n }\n }", "title": "" }, { "docid": "70932022b6ff9363043b59bcdecbdea9", "score": "0.54809225", "text": "public function update(Request $request, $id)\n {\n //$idTag=Tag::findOrFail($id);\n $this->authorize('update'/* ,$idTag */);\n $tag = new TagResource(Tag::findOrFail($id));\n $tag->update($request->all());\n return response($tag, 200);\n }", "title": "" }, { "docid": "154f3dfd07c1b3de458996ea6d67633a", "score": "0.54765296", "text": "protected function httpPut() {\n\n // First we'll do a check to see if the resource already exists\n try {\n $info = $this->tree->getNodeInfo($this->getRequestUri(),0); \n \n // Checking potential locks\n if (!$this->validateLock()) throw new Sabre_DAV_LockedException('The resource you tried to edit is locked');\n\n // We got this far, this means the node already exists.\n // This also means we should check for the If-None-Match header\n if ($this->httpRequest->getHeader('If-None-Match')) {\n\n throw new Sabre_DAV_PreconditionFailedException('The resource already exists, and an If-None-Match header was supplied');\n\n }\n \n // If the node is a collection, we'll deny it\n if ($info[0]['type'] == self::NODE_DIRECTORY) throw new Sabre_DAV_ConflictException('PUTs on directories are not allowed'); \n\n $this->tree->put($this->getRequestUri(),$this->httpRequest->getBody());\n $this->httpResponse->sendStatus(200);\n\n } catch (Sabre_DAV_FileNotFoundException $e) {\n\n // If we got here, the resource didn't exist yet.\n\n // Validating the lock on the parent collection\n $parent = dirname($this->getRequestUri());\n if (!$this->validateLock($parent)) throw new Sabre_DAV_LockedException('You\\'re creating a new file, but the parent collection is currently locked');\n\n // This means the resource doesn't exist yet, and we're creating a new one\n $this->tree->createFile($this->getRequestUri(),$this->httpRequest->getBody());\n $this->httpResponse->sendStatus(201);\n\n }\n\n }", "title": "" }, { "docid": "3a87aca1ec17bb66ec8a99811ab99ab3", "score": "0.5471252", "text": "public function updateProduct(Request $request, $id)\n {\n \n // Update Product\n //return(Product::where('product_id','=',$id)->first());\n\n $Product =Product::where('product_id','=',$id)->first();\n $Product->product_name = $request->product_name; \n $Product->product_description = $request->product_description;\n $Product->product_qty = $request->product_qty;\n $Product->product_status = $request->product_status;\n $Product->save();\n\n $url=\"http://127.0.0.1:8000/storage/\";\n $file=$request->file('product_img');\n $extension=$file->extension();\n $path=$request->file('product_img')->storeAs('Product', $Product->product_id.'.'.$extension);\n \n Product::where('product_id','=',$Product->product_id)->update([\n 'product_img' => $url.$path\n ]);\n \n // return($Product);\n \n if($Product){\n return response()->json($data=[\n 'status'=>'success',\n 'message'=>'Upadte product Successfull',\n 'product' => $Product\n \n ], 200);\n }\n else{\n return response()->json($data=[\n 'status'=>'failed',\n 'message'=>'something went wrong'\n ],203);\n } \n }", "title": "" }, { "docid": "0e4d84200a41553d02c2dd28fc577124", "score": "0.5464129", "text": "public function updateObject($objectPath,$content) { }", "title": "" }, { "docid": "333db29e9caf217f39a61608ae6c94ca", "score": "0.5462594", "text": "public function update(Request $request, $id)\n {\n // Validation des données du formulaire\n $this->validate($request, [\n 'name' => 'required|min:5|max:100',\n 'description' => 'required',\n 'price' => 'required|numeric',\n 'picture' => 'image:max:3000',\n 'status' => 'required|in:published,unpublished',\n 'sales' => 'required|in:onSales,standard',\n 'reference' => 'required|alpha_num|min:16|max:16',\n 'category_id' => 'required|integer',\n 'sizes' => 'required'\n ]);\n\n $product = Product::find($id);\n \n $datas = $request->all();\n\n $file = $request->file('picture');\n if(!empty($file)){ // si l'utilisateur ne change pas son image\n $imageName = $request->picture->hashName(); //hashage du nom de l'image à enregistrer\n $datas['picture'] = $imageName;\n\n $categoryId = $datas['category_id'];\n $img = $request->file('picture');\n $img->move(public_path('/img/'.$categoryId),$datas['picture']);// insertion de l'image dans le dossier de catégorie choisie\n }else{\n if($product->category_id != $datas['category_id']){ // si l'utilisateur change de catégorie\n $newCategoryId = $datas['category_id'];\n $oldPath = public_path('/img/'.$product->category_id.'/'.$product->picture);\n $newPath = public_path('/img/'.$newCategoryId.'/'.$product->picture);\n File::move($oldPath,$newPath);// insertion de l'image dans le dossier de catégorie choisie\n }\n \n }\n\n \n $product->update($datas);\n $product->size()->sync($request->sizes);\n\n //Redirection vers la page admin des produits\n return redirect()->route('product.index')->with('message', 'Le produit a bien été mise à jour');\n }", "title": "" }, { "docid": "5dfe400f13e0d453a75d37d2c1296a55", "score": "0.5459792", "text": "public function update(Request $request, $id)\n {\n try{\n DB::beginTransaction();\n $data = [\n 'name' => $request->slide_name,\n 'description' => $request->desc_slide\n ];\n\n if($request->hasFile('image_slide')){\n $imageSlide = $this->storageTraitUpload($request,'image_slide','slide');\n $data['image'] = $imageSlide['file_path'];\n }\n $this->slide->find($id)->update($data);\n DB::commit();\n return redirect()->route('admin.slide.index');\n }catch(Exception $exception){\n DB::rollBack();\n Log::error('message'.$exception->getMessage().'line'.$exception->getLine());\n }\n }", "title": "" }, { "docid": "a6b372ff8f044bee76bd1ac8500ec932", "score": "0.5457705", "text": "public function testUpdate()\n {\n Document::exists() || Document::factory()->create();\n $document = Document::latest('id')->first();\n\n $documentType = DocumentType::factory()->create();\n $student = Student::factory()->create();\n $debrief = Debrief::factory()->create();\n\n $data = [\n 'filename' => $document->filename,\n 'relative_path' => $document->relative_path,\n 'disk' => $document->disk,\n 'extension' => $document->extension,\n 'document_type' => $documentType->getKey(),\n 'student' => $student->getKey(),\n 'debrief' => $debrief->getKey()\n ];\n\n $response = $this->actingAs($this->adminUser)->putJson('/api/documents/' . $document->getKey(), $data);\n if ($response->exception) {\n dd($response->exception);\n }\n\n $document = $document->fresh();\n\n $expectedResponseContent = (new DocumentResource($document))->toArray(request());\n\n $response->assertOk()\n ->assertJson([\n 'data' => $expectedResponseContent\n ]);\n\n // $this->actingAs($this->unauthorizedUser)->putJson('/api/documents/' . $tutor->getKey(), $data)\n // ->assertForbidden();\n }", "title": "" }, { "docid": "ed8de68c7d88f1904a744dc02701808c", "score": "0.54502374", "text": "public function update(Request $request, $id)\n {\n //\n //highlight sidebar\n $this->setActiveParent();\n\n $validator = $this->custom_validation($request, 'update');\n\n $products = Product::findOrFail($id);\n\n //check if $validator is true && record is found\n if( $validator === true && $products ){\n\n \n //begin transaction\n $transaction = DB::transaction(function() use($request, $products) {\n\n $request['fk_updatedby'] = Auth::id();\n\n //to be remove from storage\n $oldfilename = $products->pictx; \n\n //dd($request->all());\n\n $products->update($request->all());\n\n //check if user removed the logo\n if( $request->removepictx && $request->removepictx == 'on' ){\n \n AppStorage::remove($oldfilename);\n\n //update DB for correct filename @pictx\n $products->update([\n 'pictx'=> null\n ]);\n\n }//END check if user removed the logo\n\n\n //if request uploaded picture\n if( $request->pictx ){\n\n AppStorage::remove($oldfilename);\n \n //update DB for correct filename @pictx\n $products->update([\n 'pictx'=> AppStorage::store('products', $request->pictx)\n ]);\n\n }//END check if request uploaded picture\n\n\n\n session()->flash('success', \"$request->name has been updated!\");\n\n //return redirect(\"/products/edit/$products->pk_products\");\n return redirect()->back();\n\n\n\n });//END transaction\n\n return $transaction;\n \n\n\n \n }else{\n\n //null = current request\n $form_fields = DynamicForm::form_fields('update', $products, null, Product::form_fields() );\n\n $this->setPrerequisites();\n $categories = $this->categories;\n $supplier = $this->supplier;\n\n return view('products.edit', compact('form_fields', 'products', 'categories', 'supplier'))->withErrors($validator); \n //return redirect()->back()->withInput()->withErrors($validator);\n\n\n\n\n }\n\n\n\n\n\n }", "title": "" }, { "docid": "88a70023be7208ea677c3d6e556c61fb", "score": "0.54485035", "text": "public function update(Request $request, $id)\n {\n //\n \n \n $requestData = $request->all();\n \n $file = $request->file('foto');\n if($request->hasFile('foto')){\n \n $requestData['foto']=$file->openFile()->fread($file->getSize());\n /*\n \n $requestData = $request->all();\n \n if ($request->hasFile('foto')) {\n $requestData['foto'] = $request->file('foto')\n ->store('uploads', 'public');\n \n*/\n }\n\n $perfilestudiante = PerfilEstudiante::findOrFail($id);\n $perfilestudiante->update($requestData);\n\n $redireccion='perfil-estudiante/'.$id.'/edit';\n return redirect($redireccion)->with('flash_message', 'PerfilEstudiante updated!')->with('menu','usuario_docente');\n }", "title": "" }, { "docid": "6c0c4f37dc5881fde1e7b8d7f270ec97", "score": "0.5447841", "text": "public function update($id) {\n\n }", "title": "" }, { "docid": "d9c8b0075dcc91c0089aaf5fd99a7f55", "score": "0.544579", "text": "public function update(Request $request, $id)\n {\n $this->validate($request,[\n 'service_name'=>'required',\n 'description'=>'required'\n ]);\n $path=$request->old_image;\n if($request->hasFile('thumbnail')){\n if($request->old_image!=null){\n unlink('storage/'.$request->old_image);\n }\n $path=$request->file('thumbnail')->store('Thumbnials');\n }\n // $attachment=$request->old_attachment;\n // if($request->hasFile('attachment')){\n // if($attachment!=null){\n // // unlink('storage/'.$request->old_attachment);\n // }\n // $attachment=$request->file('attachment')->store('Attachment');\n // }\n $data=[\n 'service_name'=>$request->service_name,\n // 'attachment'=>$attachment,\n 'description'=>$request->description,\n 'thumbnail'=>$path\n ];\n Service::where('id',$id)->update($data);\n return redirect()->route('listService');\n }", "title": "" }, { "docid": "33f614d65ce49db36128bb80e0048cd2", "score": "0.5442308", "text": "public function update() { if (is_null($this->id))\n trigger_error(\"Reference::update(): Attempt to update a Reference object that does not have its ID property set.\", E_USER_ERROR);\n\n // Update the Article\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $sql = \"UPDATE reference SET RefFile=:refFile UploaderID=:uploaderID Source=:source WHERE ReferenceID = :id\";\n $st = $conn->prepare($sql);\n $st->bindValue(\":refFile\", $this->refFile, PDO::PARAM_STR);\n $st->bindValue(\":uploaderID\", $this->uploaderID, PDO::PARAM_INT);\n $st->bindValue(\":source\", $this->source, PDO::PARAM_STR);\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "title": "" }, { "docid": "181ee26d73bd3c1143b1d276e6b7bb91", "score": "0.5436986", "text": "public function update(Request $request, $id)\n {\n $store = Store::where('id',$id)->first();\n $store->name = $request->name;\n $store->address = $request->address;\n $store->phone = $request->Phone;\n $store->opening = $request->opening;\n if($request->has('image')){\n unlink(public_path('back/images/store/'.$store->image));\n $imageName = time().'.'.$request->image->getClientOriginalExtension();\n $request->image->move(public_path('back/images/store'), $imageName);\n $store->image = $imageName;\n }\n $store->save();\n return redirect()->back()->with('success','Store has been updated successfully!');\n }", "title": "" }, { "docid": "70c454fe61b8abc6777a08b358712c67", "score": "0.54297984", "text": "public function update($id){\n \n }", "title": "" }, { "docid": "ee62ec950231813104ded30d5cdda483", "score": "0.5426703", "text": "public function update(StoreParameter $request, $id)\n {\n $data = $request->all();\n $parameter = Parameter::find($id);\n $this->checkAndUploadImage($request, 'image', 'posters', $parameter);\n $parameter->update($data);\n Session::flash('message', 'Успешно изменено');\n return redirect()->route('parameters.index');\n }", "title": "" }, { "docid": "0ae71e0ed59055b44c4c0b240eb670ae", "score": "0.5426216", "text": "public function update($id)\n\t{\n\t\t$manager = App::make(\\BackupManager\\Manager::class);\n\t\t$manager->makeRestore()->run('local', 'storage_path('.$id.')');\n\t}", "title": "" }, { "docid": "e7a9ed5515a2a2ec06d6aca33efe6caf", "score": "0.5416784", "text": "public function update(Request $request, $id)\n {\n //\n $product = Product::query()->findOrFail($id);\n if($product->photo !== null){\n File::delete($product->photo->file);\n }\n\n\n if ($file = $request->file('photo_id')) {\n $name = Time() . $file->getClientOriginalName();\n $file->move('images', $name);\n $photo = Photo::create(['file' => $name]);\n $input['photo_id'] = $photo->id;\n }\n $product->update($request->all());\n return redirect('/admin/products');\n }", "title": "" }, { "docid": "b50ec68239e495a6eac6681b6be2bd10", "score": "0.5416663", "text": "public function put($resource, $data, array $parameters = array())\n {\n // Pass the request on\n return $this->sendData($resource, $data, $parameters, \"PUT\");\n }", "title": "" }, { "docid": "55601806ef2a9d7e3f71d62851e418fc", "score": "0.5415449", "text": "public function updateById($data, $id);", "title": "" }, { "docid": "a28ba9c40e06592529f38d6d19b89b16", "score": "0.5415394", "text": "public function update($id) {\n \n }", "title": "" }, { "docid": "bc24b326261d7a5dcbc2c4576e30536b", "score": "0.54149365", "text": "public function update(Request $request, $id)\n {\n $single=Brand::findorfail($id);\n $image = $single->image;\n\n\n if ($request->file() != null){\n\n Storage::delete('upload/brands/'.$image);\n\n $upload = $request->file('image');\n\n\n $upload = $request->file('image');\n\n\n $file_name = 'brand_image_'.time().'.'.$upload->getClientOriginalExtension();\n\n $path = $upload->storeAs('upload/brands/',$file_name);\n $single->update([\n 'name'=>$request->name,\n 'image'=>$file_name\n ]);\n }else{\n\n $single->update([\n 'name'=>$request->name,\n 'image'=>$request->img_name\n ]);\n }\n\n\n return redirect('admin/brands');\n }", "title": "" }, { "docid": "10ffb6f2bcc02987225b2f72d4364775", "score": "0.54059875", "text": "function update($id, $data);", "title": "" } ]
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a33ca38c440dddab12232fa379bc243a", "score": "0.0", "text": "public function edit(Cliente $cliente)\n {\n if(in_array(Auth::user()->UsRol, Permisos::CLIENTE) || in_array(Auth::user()->UsRol2, Permisos::CLIENTE)){\n return view('clientes.edit', compact('cliente'));\n }else{\n abort(403);\n }\n }", "title": "" } ]
[ { "docid": "dd595e2401a651c870eaf18d7e9760a3", "score": "0.8056069", "text": "public function edit(Resource $resource)\n {\n //\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "4699678dcf8e1179c0197353cd91326b", "score": "0.77389544", "text": "public function edit(Resource $resource)\n {\n /* dd($resource); */\n return view('resource.edit' , compact('resource'));\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "1d94403d2acd74d9393297956ff20089", "score": "0.76159143", "text": "function edit()\n {\n $this->_form('edit');\n }", "title": "" }, { "docid": "b7bd85f6505eaaa0e3a455e1f55cb3ad", "score": "0.76099056", "text": "public function edit(Resource $resource): View\n {\n $categoryOptions = Category::orderBy('name')->pluck('name', 'id');\n $groupOptions = Group::orderBy('name')->pluck('name', 'id');\n\n return view('resources.edit')->with(compact([\n 'resource',\n 'categoryOptions',\n 'groupOptions',\n ]));\n }", "title": "" }, { "docid": "9d3a38b20920e77ce2eff48e395afb74", "score": "0.7549802", "text": "function form_edit($id = 0)\n {\n\n $data['data'] = $this->resources_model->get_resource($id);\n $tamplate['_B'] = 'resources/edit_resource_view.php';\n $this->load->template_view($this->template_base, $data, $tamplate);\n }", "title": "" }, { "docid": "039ff036e8221b2585c3c113a5cd32fd", "score": "0.74767417", "text": "public function edit($id)\n {\n /* Check if logged user is authorized to update resources */\n $this->authorize('update', [$this->model, $id]);\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Displays the edit resource page */\n return view('admin.' . $this->name . '.edit')\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "title": "" }, { "docid": "8d801a89707c44b7882739b411cff7ef", "score": "0.7410825", "text": "public function edit($id)\n\t{\n\t\t$resource = Resource::findOrFail($id);\n\t\treturn view('admin.resources.edit', compact('resource'));\n\t}", "title": "" }, { "docid": "5c1544b2225be56677d1ab886a3b9ab7", "score": "0.7275615", "text": "protected function editAction()\n {\n SessionManager::clearSubformFromSession();\n return $this->renderForm('edit');\n }", "title": "" }, { "docid": "518ca2900cb6a7f47cf6c6cb3bb47305", "score": "0.71867603", "text": "public function edit($id)\n\t{\n\t\treturn view('resources.edit');\n\t}", "title": "" }, { "docid": "521678534e38ace8f31ee2c7c31109ce", "score": "0.71408635", "text": "public function editResource(Resource $resource)\n {\n if ($resource->type == 'CLASSROOM') {\n $types = ResourceType::where('type', 'CLASSROOM')->get();\n $rcharacteristics = Characteristic::where('type', 'CLASSROOM')->get();\n return view('SpecificViews.Admin.Resource.edit', compact('types', 'rcharacteristics', 'resource'));\n } else {\n $rcharacteristics = Characteristic::where('type', 'INSTRUMENT')->get();\n $types = ResourceType::where('type', 'INSTRUMENT')->get();\n return view('SpecificViews.Admin.Resource.edit', compact('types', 'rcharacteristics', 'resource'));\n }\n\n }", "title": "" }, { "docid": "b56a61d0b2c2bb662234e314a5c3fbd3", "score": "0.7139057", "text": "public function edit($id)\n {\n $resource = resource::find($id);\n\n return view('resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "1714331f57ac8dc71fb554550626fa1e", "score": "0.7134124", "text": "public function edit() {\n \n $role = $this->role_model->get_by_id($this->input->get('id'));\n if (!is_null($role)) {\n echo $this->load->view('role/edit_form', array(\n 'id' =>$role->id,\n 'description' => $role->description,\n 'help_text' => $role->help_text,\n 'email_text' => $role->email_text\n ), TRUE);\n }\n else {\n echo show_404('The resource you requested was not found');\n } \n }", "title": "" }, { "docid": "67ece17efa862f295ce9431e50ca77e6", "score": "0.71021336", "text": "public function edit($id)\n {\n // TODO: return view with form\n }", "title": "" }, { "docid": "bd2eb7b4b851671a6d52d11c4bdca5a3", "score": "0.70816964", "text": "public function Editing()\n {\n $this->routeAuth();\n\n $arguments = [\n 'required' => ['route' => 'default'],\n 'method' => 'get',\n ];\n $parameters = $this->getArguments($arguments);\n\n $this->standardView('EditForm', $parameters);\n }", "title": "" }, { "docid": "cf800ac28142461ee3e96006e2779e1a", "score": "0.7012804", "text": "function edit_resource()\n {\n\n $this->form_validation->set_rules('resourcename', lang('label_name'), 'required|trim');\n\n $this->form_validation->set_error_delimiters('<div class=\"error\">', '</div>');\n\n $id = $this->input->post('resourceid');\n\n if ($this->form_validation->run() == FALSE) {\n $this->form_edit($id);\n } else {\n\n $name = $this->input->post('resourcename');\n\n $this->resources_model->update($id, $name);\n\n set_flash_message(lang('msg_update_resource_success'));\n redirect('resources/');\n }\n\n }", "title": "" }, { "docid": "5a02684925f991ee39abcb153d80d058", "score": "0.7008457", "text": "public function edit()\r\n {\r\n return view('hr::edit');\r\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.70006657", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "77a5d7e834f9c51c192908fd0d47f95d", "score": "0.69608295", "text": "public function edit($id)\n\t{\n\t\t$product = Product::findOrFail($id);\n\t\treturn view('forms.edit', ['product' => $product]);\n\t}", "title": "" }, { "docid": "5d07386682cee2e28df5b9387838d3ad", "score": "0.6952048", "text": "public function edit($id) {\n $viewData = $this->getDefaultFormViewData();\n $viewData[\"employee\"] = Employee::find($id);\n $viewData[\"mode\"] = \"edit\";\n\n return view(\"pages.hr.employees.form\", $viewData);\n }", "title": "" }, { "docid": "021ba3eb9870bc8904cac5ce9993521f", "score": "0.69348085", "text": "public function edit()\r\n {\r\n return view('superadmin::edit');\r\n }", "title": "" }, { "docid": "d1bc76ee10d3c1987d93adb885f351c7", "score": "0.6924496", "text": "public function show_editform() \n {\n $this->item_form->display();\n }", "title": "" }, { "docid": "f06cd09f9eac7562cc61bd57dbe667d1", "score": "0.6913356", "text": "public function edit($id)\n {\n $source = Source::orderBy('source_label', 'asc')->get();\n $author = Author::orderBy('author_label', 'asc')->get();\n $sub_category = Category::orderBy('category_label', 'asc')->get();\n $resource = Resource::find($id);\n\n $view_data = [\n 'resource' => $resource,\n 'source' => $source,\n 'author' => $author,\n 'sub_category' => $sub_category,\n ];\n\n return view('resource.edit', $view_data);\n }", "title": "" }, { "docid": "a2c4b9f94f63ae15d25e58aeec857d8a", "score": "0.69070923", "text": "public function actionEdit()\n {\n $template = __DIR__ . '/../../../templates/admin/edit.html';\n $this->view->display($template);\n }", "title": "" }, { "docid": "9ffa222823dcb1dfb2177f10ed5d14a6", "score": "0.69015515", "text": "public function editAction()\n {\n $this->title = \"Edit Book\";\n // get id value from route and set default value is missed 0 \n $id = $this->params()->fromRoute(\"id\",0);\n if(!$id || $id == 0){\n // to display 404 not found exception in case id is missed in Request \n return $this->notFoundAction(); \n // another way to display 404 not found exception\n //$this->getResponse()->setStatusCode(404);\n //return; \n }\n $form = new BookForm();\n //$form->bind($book);\n $form->get('submit')->setValue('Edit');\n \n $request = $this->getRequest();\n if($request->isPost()){\n \n }\n \n return new ViewModel(array(\n 'title' => $this->title,\n 'id' => $id,\n 'form' => $form,\n ));\n }", "title": "" }, { "docid": "9f065931f724059e1f1d001cf6deafdb", "score": "0.689776", "text": "public function edit($id)\n {\n $record = $this->getResourceModel()::findOrFail($id);\n\n $this->authorize('update', $record);\n\n return view($this->filterEditView('_resources.edit'), $this->filterEditViewData($record, [\n 'record' => $record,\n 'resourceAlias' => $this->getResourceAlias(),\n 'resourceRoutesAlias' => $this->getResourceRoutesAlias(),\n 'resourceTitle' => $this->getResourceTitle(),\n ]));\n }", "title": "" }, { "docid": "45f4946b9d690da6ca602cafd8acd6f6", "score": "0.6875199", "text": "public function edit($id)\n {\n return view('senioroperationmanager::edit');\n }", "title": "" }, { "docid": "5cebb6c2bc9c34e957b1521b8e0171da", "score": "0.6868003", "text": "public function edit($id)\n\t{\n\t\t$employee = Employee::find($id);\n if (is_null ($employee)) {\n App::abort(404);\n }\n return View::make('business/employees/form')->with('employee', $employee);\n\t}", "title": "" }, { "docid": "9443931fcf9450e4082ea1fcc8f7947f", "score": "0.685467", "text": "public function editAction()\n {\n $category = $this->_helper->db->findById();\n $form = $this->_getForm($category);\n $this->view->form = $form;\n $this->_processPageForm($category, $form, 'edit'); \n }", "title": "" }, { "docid": "a695b4f4340bb78a765476c7a7b02c4c", "score": "0.68351203", "text": "public function edit()\n {\n return view('clientapp::edit');\n }", "title": "" }, { "docid": "a695b4f4340bb78a765476c7a7b02c4c", "score": "0.68351203", "text": "public function edit()\n {\n return view('clientapp::edit');\n }", "title": "" }, { "docid": "704bd05bb5b342386c8ae64a2f251b47", "score": "0.68310094", "text": "protected function editAction()\n {\n if ($this->request->isXmlHttpRequest()) {\n return $this->ajaxEdit();\n }\n\n $id = $this->request->query->get('id');\n if (!$item = $this->em->getRepository($this->entity['class'])->find($id)) {\n throw $this->createNotFoundException(sprintf('Unable to find entity (%s #%d).', $this->entity['name'], $id));\n }\n\n $fields = $this->entity['edit']['fields'];\n $editForm = $this->createEditForm($item, $fields);\n $deleteForm = $this->createDeleteForm($this->entity['name'], $id);\n\n $editForm->handleRequest($this->request);\n if ($editForm->isValid()) {\n $this->prepareEditEntityForPersist($item);\n $this->em->flush();\n\n return $this->redirect($this->generateUrl('admin', array('action' => 'list', 'view' => 'list', 'entity' => $this->entity['name'])));\n }\n\n return $this->render('@EasyAdmin/edit.html.twig', array(\n 'form' => $editForm->createView(),\n 'entity_fields' => $fields,\n 'item' => $item,\n 'delete_form' => $deleteForm->createView(),\n 'view' => 'edit',\n ));\n }", "title": "" }, { "docid": "ed2633bdcfc7ed5a550c62d352c24a77", "score": "0.6819932", "text": "public function edit($id)\n {\n $instance = $this->getRepository()->find($id);\n\n $this->addBreadcrumb($instance, 'edit');\n $this->authorize('update', $instance);\n\n return $this->view('edit')\n ->with('type', $this->resourceType)\n ->with('instance', $instance)\n ->with('isUpdate', true);\n }", "title": "" }, { "docid": "cd9f7e39075ec0fc916971721af0cd2e", "score": "0.68143326", "text": "public function edit()\n {\n return view('core::edit');\n }", "title": "" }, { "docid": "a66e6ee3bd0d4fa614c8f657ecc1c30e", "score": "0.68047357", "text": "public function edit(Form $form)\n {\n //\n }", "title": "" }, { "docid": "e3fad094d4252fd72e2502d403dfc367", "score": "0.67960227", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.6791791", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "28a90ab6820643f9d5748374ed81131a", "score": "0.67907906", "text": "public function edit($id)\n {\n $this->view->employee = $this->model->edit($id);\n $this->view->render($this->path . '/edit');\n \n }", "title": "" }, { "docid": "5f2fd3cbab0d2a100dddd7a4ae2cefaf", "score": "0.6773027", "text": "public function edit($id)\n {\n // get the nerd\n\t\t$smstemplate = DocumentMaster::find($id);\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('documentmaster.edit')\n\t\t\t->with('documentmaster', $smstemplate);\n }", "title": "" }, { "docid": "cb920409ab954b104075c11c511d2022", "score": "0.67672926", "text": "public function editAction()\n {\n $post_id = $this->route_params['id'];\n $post = $this->post->findByID($post_id);\n\n View::renderWithLayout(Config::VIEWS_PATH . 'Posts/edit.php', [\n 'post' => $post\n ]);\n\n }", "title": "" }, { "docid": "ec74296c4873a04773215f9df3ec56e8", "score": "0.6763203", "text": "public function edit()\n {\n return view('product::edit');\n }", "title": "" }, { "docid": "af1ae147b46a5dbc0c8b9ec58527eeb0", "score": "0.67458534", "text": "public function edit()\n {\n return view('catalog::edit');\n }", "title": "" }, { "docid": "12b7e5d3d9cb665e40626307c8c40c99", "score": "0.6741306", "text": "public function edit($id)\n\t{\n\t\t$form = \\View::make('company.form');\n\t\t$form->company = Company::find($id);\n\t\t$form->action = array('action' => array('Powerhouse\\Core\\CompanyController@update', $form->company->id),'class'=>'form-signup');\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "38d2e406d7a5e9d1f5004a85617a73b9", "score": "0.67376304", "text": "public function edit($id)\n\t{\n\t\t$form_data = ['route' => [self::$prefixRoute . 'update', $this->specialty->id], 'method' => 'PUT'];\n\n\t\treturn view(self::$prefixView . 'form', compact('form_data'))->with('specialty', $this->specialty);\n\t}", "title": "" }, { "docid": "cc6904fdf00085583ae76b949cdbe589", "score": "0.67358285", "text": "public function edit()\n {\n return view('volunteer::edit');\n }", "title": "" }, { "docid": "2beb90fadbb01fc51d9f15bef5d11b8d", "score": "0.67250276", "text": "public function edit()\n {\n return view('pagebuilder::edit');\n }", "title": "" }, { "docid": "393a2fa5abb84b3941411dac40f443fc", "score": "0.67221594", "text": "public function edit()\n {\n return view('bap::edit');\n }", "title": "" }, { "docid": "865bc4c469754948f370362e3c6b1e50", "score": "0.6716827", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AppBundle:Rio')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Rio entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AppBundle:Rio:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "c7bfd7a6f571abbdb67f79d194c13774", "score": "0.67109", "text": "public function edit($id)\n\t{\n\t\t$form = \\View::make('project.form');\n\t\t$form->project = Project::find($id);\n\t\t$form->action = array('action' => array('Powerhouse\\Core\\ProjectController@update', $form->project->id),'class'=>'form-signup');\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "ffc3a067cfe92bdc0fefd0aa6bc1dee1", "score": "0.67088896", "text": "public function renderEdit($id = 0)\n\t{\n\t\t$form = $this['itemForm'];\n\t\tif (!$form->isSubmitted()) {\n\t\t\t$row = $this->model->find($id);\n\t\t\tif (!$row) {\n\t\t\t\tthrow new BadRequestException(RECORD_NOT_FOUND);\n\t\t\t}\n\t\t\t$form->setDefaults($row);\n\t\t\t\n\t\t\t$this->template->title = $row->label_en . ' - edit';\n\t\t}\n\t\t\n\t\t$this->setView('edit');\n\t}", "title": "" }, { "docid": "16b6d7cd6d5562240bfe7b4bf5ec4668", "score": "0.670842", "text": "public function edit($id)\n {\n return view('employees.form', compact('id'));\n }", "title": "" }, { "docid": "ecfa5a508c2f03ea2cc02d899a44d64d", "score": "0.6707534", "text": "protected function _edit() {\r\n\t\treturn $this->_editForm();\r\n\t}", "title": "" }, { "docid": "92f68c748cd68d5b2199de006850d464", "score": "0.6706401", "text": "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('AppBundle:Programacion')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('No existe la programacion.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('AppBundle:Programacion:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "f3efa78ffee8d0f21fbf25bc688f193b", "score": "0.6703318", "text": "public function edit($id)\n {\n $role = self::ROLE;\n // Uncomment the next line if the current_user_type is bound\n //$role = app('current_user_type') ? app('current_user_type') : 'manager';\n\n // get the product\n $product = LaravelProduct::find($id);\n\n // show the edit form and pass the product\n return View::make(self::UNIQUE_IDENTIFIER . '::edit')\n ->with('product', $product)\n ->with('role', $role);\n }", "title": "" }, { "docid": "aee289138ff45ed6516c6a9415fea5d5", "score": "0.669913", "text": "public function edit($id)\n {\n //\n $taskform = TaskForm::find($id);\n return view('taskforms.edit')->with('taskform', $taskform);\n }", "title": "" }, { "docid": "23200564e1a0aae4cc038b5f14f092e0", "score": "0.6688913", "text": "public function edit($id)\n\t{\n\t\t$model = GlobalModel::findOrFail($id);\n\t\t$globalModel = GlobalModel::getGlobalModel();\n\t\t$action_model = 'Editar '.$globalModel->singular_name.': '.$model->singular_name;\n\n\t\t$form_data = array('route' => array('dashboard.'.$globalModel->route.'.update', $model->id), 'method' => 'PUT', 'files' => true);\n\t\treturn View::make('pages/models/form', compact('action_model', 'model', 'form_data', 'globalModel'));\n\t}", "title": "" }, { "docid": "cbf068dcf001d30958187dba4e095caa", "score": "0.66679794", "text": "public function edit()\n {\n return view('appointment::edit');\n }", "title": "" }, { "docid": "252c7cca674ef213dfcafb1dd1941cb1", "score": "0.6664591", "text": "public function edit($id)\n {\n //\n $partner = Partner::find($id);\n return view('Partners/Admin/editForm' , compact('partner' , 'id'));\n }", "title": "" }, { "docid": "af795f73955d9d9446aec697e8d1585a", "score": "0.6663389", "text": "public function showEditForm($id)\n {\n $article = Article::find($id);\n\n return view('admin.edit', ['article' => $article]);\n\n }", "title": "" }, { "docid": "12507f1c00440ad43eb757af75bf6e99", "score": "0.66590947", "text": "public function edit($id)\n {\n $product_to_edit = $this->products->findOrFail($id);\n\n return view('products.form',['product'=>$product_to_edit]);\n }", "title": "" }, { "docid": "8994b22c3f812417a5c00ae1c359e901", "score": "0.66563636", "text": "public function edit()\n {\n $this->layout->with('title', $this->title);\n $this->layout->with('subtitle', 'change my details');\n\n $user = Sentry::getUser();\n\n $this->layout->content =\n View::make('account.edit')\n ->with('account', $user);\n }", "title": "" }, { "docid": "7fc64d7adaff4c5696f9313516372fbc", "score": "0.66486734", "text": "public function edit($id)\n {\n return view('hrm::edit');\n }", "title": "" }, { "docid": "56e8e9b08c0406905beb3036122cd7af", "score": "0.6642529", "text": "public function edit()\n {\n return view('home::edit');\n }", "title": "" }, { "docid": "dadbd75e82b4f1a967d8ac7cb27bc98b", "score": "0.6641678", "text": "protected function changePageInSubformInEditModeAction()\n {\n $this->changePageInSubform();\n return $this->renderForm('edit');\n }", "title": "" }, { "docid": "063b81780fe8c5a543c8d12e2a95630a", "score": "0.66360956", "text": "public function editAction() {\n $parameters = $this->route_parameters;\n $product = Product::getSingleProduct($parameters['id']);\n $users = User::getAll($product['product_owner_id']);\n\n if ($product) {\n View::renderTemplate('Products/edit.html.twig', [\n 'product' => $product,\n 'users' => $users\n ]);\n } else {\n View::renderTemplate('404.html.twig', []);\n }\n }", "title": "" }, { "docid": "e457de999a03c9e7cf356e63e7069e9d", "score": "0.6632596", "text": "public function edit($id)\n {\n //FormEditar\n $professores = Professor::all();\n $disciplina = Disciplina::find($id);\n $action = route('disciplinas.update', $disciplina->id);\n return view('admin.disciplinas.form', compact('disciplina', 'action', 'professores'));\n }", "title": "" }, { "docid": "8590c55c1c70061cc325176390a29404", "score": "0.66302156", "text": "public function edit(\n $resource,\n $userId\n );", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.6627662", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "9218599a4f6abb8fe13ddcb4a391b018", "score": "0.6624856", "text": "public function edit($id)\n {\n return view('asset::Admin/Form', [\n 'asset' => $this->page->getById($id)\n ]);\n }", "title": "" }, { "docid": "df5a01f36557a67c42c488dcf336da1d", "score": "0.6623992", "text": "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('realEstateBundle:Offre')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Offre entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('realEstateBundle:Offre:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "f24b3d4bab18a9d75efa91fc56a2b062", "score": "0.6621693", "text": "public function edit()\n {\n return view('housekeeping::edit');\n }", "title": "" }, { "docid": "e2d64baf531444993f439d05239f2f4d", "score": "0.6615924", "text": "public function edit()\n {\n return view('officeautomation::edit');\n }", "title": "" }, { "docid": "d6c2c7e0ddbac0b65be0ee74a7fcd796", "score": "0.6614968", "text": "public function edit($id)\n {\n return view('consultas::edit');\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "035eb13b2ca5fd52c8005c0d17b6d221", "score": "0.66086483", "text": "public function edit()\n {\n return view('dashboard::edit');\n }", "title": "" }, { "docid": "ced00a3017255bbcbba274e84e79e0e1", "score": "0.6589034", "text": "function editRecord() {\n\t\t$this->checkPermission();\n\t\t$this->loadRecord();\n\t\treturn $this->getEditForm();\n\t}", "title": "" }, { "docid": "e77b4a1d450f192da67f95bae41d70d2", "score": "0.65879726", "text": "public function edit()\n {\n return view('shopify::edit');\n }", "title": "" }, { "docid": "e77b4a1d450f192da67f95bae41d70d2", "score": "0.65879726", "text": "public function edit()\n {\n return view('shopify::edit');\n }", "title": "" }, { "docid": "baa3acf391e7308a964fe78d9b259912", "score": "0.6587864", "text": "public function editAction($id)\n { \n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CommonBundle:Nomenclator')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('El nomenclador especificado no existe');\n }\n\n $editForm = $this->createForm(new NomenclatorType(), $entity);\n \n $entity_catalog = new Catalog();\n $form_catalog = $this->createForm(new CatalogType(), $entity_catalog);\n\n return $this->render('CommonBundle:Nomenclator:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'form_catalog' => $form_catalog->createView()\n ));\n }", "title": "" }, { "docid": "7a7a712372a288997a1ff5accdfb7ce8", "score": "0.6585886", "text": "public function editAction(Request $request, Resource $resource)\n {\n $deleteForm = $this->createDeleteForm($resource);\n $editForm = $this->createForm('Unisystem\\AdminBundle\\Form\\ResourceType', $resource);\n $editForm->handleRequest($request);\n\n if ($editForm->isSubmitted() && $editForm->isValid()) {\n $em = $this->getDoctrine()->getManager();\n $em->persist($resource);\n $em->flush();\n $request->getSession()->getFlashBag()->add( 'success', 'resource.edit.flash' );\n\n return $this->redirect($request->headers->get('referer'));\n }\n\n return $this->render('resource/edit.html.twig', array(\n 'resource' => $resource,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "title": "" }, { "docid": "30545216eb33c24f8a152e2021bb6edf", "score": "0.6580906", "text": "public function editAction()\n {\n \t$entreprise = $this->getCurrentEntreprise(); \n \tif (!$entreprise) {\n \t\tthrow $this->createNotFoundException('Unable to find Entreprise entity.');\n \t}\n \t$editForm = $this->createEditForm($entreprise);\n \treturn array(\n \t\t\t'entity' => $entreprise,\n \t\t\t'edit_form' => $editForm->createView(),\n \t);\n }", "title": "" }, { "docid": "11c76396ae44707c625948a1f1dd84b3", "score": "0.65796006", "text": "public function edit()\n {\n return view('provinsi::edit');\n }", "title": "" }, { "docid": "814d2dfc5e5447d0374c91d664a1faf2", "score": "0.6575626", "text": "public function editar()\n {\n if (isset($_GET[\"id\"])) {\n $id = (int)$_GET[\"id\"];\n\n\n //traemos todos los datos del usuario para mostrarlos en el formulario\n $administrador = new Administrador($this->adapter);\n $administrador = $administrador->getById($id);\n\n //Cargamos la vista para mostrar formulario de insert\n $this->view(\"Administrador/actualizar\", array(\n \"i\" => $administrador\n ));\n }\n }", "title": "" }, { "docid": "1a75786a7e2eadb5eb40fa30d9a98768", "score": "0.6573916", "text": "public function edit($id)\n {\n return view('enquirymanager::edit');\n }", "title": "" }, { "docid": "0a7f2f549c7de9a031f48dc6b499e7a1", "score": "0.65731585", "text": "public function edit($id) {\n $viewData = $this->getDefaultViewData();\n $viewData[\"mode\"] = \"EDIT\";\n $viewData[\"student\"] = Student::find($id);\n\n if ($viewData[\"student\"]) {\n return view('pages.students.form', $viewData);\n } else {\n return response(\"Student Not Found\", 404);\n }\n }", "title": "" }, { "docid": "9de8689c73fd572b594366f1bf5b5d98", "score": "0.6571643", "text": "public function edit($question)\n {\n $this->authorize(\"update\", $question);\n return view('questions.edit',compact('question'));\n }", "title": "" }, { "docid": "926e7ef2a770c60ad69c87162cacaa1a", "score": "0.65703654", "text": "public function edit()\n\t{\n\t\treturn View::make('user.edit');\n\t}", "title": "" }, { "docid": "ced44e573e48269f7e18b7046bf3c7b8", "score": "0.6569834", "text": "public function edit()\r\n {\r\n if($this->getSessionHandler()->isLoggedIn())\r\n {\r\n $id = $this->getRequestObject()->getParameter('id');\r\n $record = accounts::create()->findOne($id);\r\n \r\n $v = new EditAccountView();\r\n $v->injectData(array('data' => $record, 'id' => $id));\r\n echo $v->render();\r\n }\r\n else\r\n {\r\n $this->displayMessage('You must login to view this area!');\r\n }\r\n\r\n }", "title": "" }, { "docid": "87f80527ccf944a69125ffa41418e52d", "score": "0.656931", "text": "public function edit()\n {\n return view('inventory::edit');\n }", "title": "" }, { "docid": "af8a9e0d1d88de030c77bb2167000ca0", "score": "0.65597636", "text": "public function edit($id)\n\t{\n\t\treturn view('inventario::edit');\n\t}", "title": "" }, { "docid": "cec3fe3579905a040dbaed46e1a19e54", "score": "0.6557795", "text": "public function edit($id) {\n $fornecedor = $this->fornecedorRepository->show($id);\n return view('admin.fornecedores.edit')->with(compact('fornecedor'));\n }", "title": "" }, { "docid": "ecf60fd8dfae8412b0c1aa1136588163", "score": "0.6553316", "text": "public function edit($id)\n {\n $employee = Employee::where('id', $id)->first();\n return view('employees.edit',compact('employee'));\n }", "title": "" }, { "docid": "734c624b34c52ff6cb3c2642809dfdbc", "score": "0.6546303", "text": "protected function actionEdit() {\n\t\t\n\t\t// generate templates list\n\t\t$this->showDataLayoutContent();\n\t}", "title": "" }, { "docid": "93510eba883af2fed17214477f36d50f", "score": "0.6544809", "text": "public function edit($id)\n\t{\n return View::make('housholds.edit');\n\t}", "title": "" }, { "docid": "531deb797a3602e8ea456bf473e6c600", "score": "0.6543909", "text": "public function edit($id)\n\t{\n\t\t$record = Record::find($id);\n\n\t\treturn View::make('records.edit', compact('record'));\n\t}", "title": "" }, { "docid": "f9a4ee7989004e790bdc4a38a9983005", "score": "0.6542725", "text": "public function edit(Formulario $formulario)\n {\n //\n }", "title": "" }, { "docid": "08ed65e68f0c2c0f6cafaf66915c4e56", "score": "0.6542544", "text": "public function edit($id)\n\t{\n\t\t$form = $this->form->find($id);\n\n\t\tif (is_null($form))\n\t\t{\n\t\t\treturn Redirect::route('forms.index');\n\t\t}\n\n\t\treturn View::make('forms.edit', compact('form'));\n\t}", "title": "" }, { "docid": "f45506e1eb4c9818c7c6486f9f220b97", "score": "0.65383214", "text": "public function edit($id)\n {\n //see modal controller\n }", "title": "" } ]
a0c9b8a4c882c7a15c748b21a034e9ad
///////PRODUCT DETAIL PAGE FUNCTIONS START///////////////
[ { "docid": "7d2ee3081792b8c6dc264ba04b16b69c", "score": "0.0", "text": "function is_wp_admin()\n{\n\tif(strstr($_SERVER['REQUEST_URI'],'/wp-admin/'))\n\t{\n\t\treturn true;\n\t}\n\treturn false;\n}", "title": "" } ]
[ { "docid": "a3d7201c3751096378640500a1c2ce57", "score": "0.7787995", "text": "function showProductDetail(){\r\n\t\t$rLanguage = CheckLanguageChange();\r\n\t\t/*$q_product_desc=getResultSet(\"SELECT product_id, model, image, price FROM \".DB_PREFIX.\"product WHERE product_id=\".$product_id);*/\r\n\t\techo '<meta name=\"title\" content=\"'.$this->getProductName().'\" />';\r\n\t\techo '<meta name=\"description\" content=\"'.$this->getShopName().' $'.$this->getProductPrice().': '.strip_tags($this->getProductDescription()).'\" />';\r\n\t\techo '<link rel=\"image_src\" href=\"'.$this->getProductImage().'\" />';\r\n\t\techo '<table border=\"0\" width=\"100%\"><tr>';\r\n\t\t\techo '<td><div class=\"photo_view\">';\r\n\t\t\t\techo '<ul id=\"gallery\" class=\"gallery clearfix\">';\r\n\t\t\t\t\techo '<li><a href=\"'.$this->getProductImage().'\" rel=\"prettyPhoto[gallery2]\" title=\"\"><img src=\"'.$this->getProductImage().'\" /></a></li> ';\r\n\t\t\t\t\techo $this->getProductAllImage();\r\n\t\t\t\techo '</ul>';\t\r\n\t\t\techo '</div></td>';\r\n\t\t\techo '<td valign=\"top\">';\r\n\t\t\t\techo '<div class=\"product_desc\">';\r\n\t\t\t\t\techo '<div class=\"product_name\">'.$this->getProductName().'</div>';\t\r\n\t\t\t\t\t//href=\"#\" link to store profile\r\n\t\t\t\t\t//echo '<div class=\"shop_name\"><span class=\"label\">Store:</span> <a href=\"'.$this->getShopUrl().'\"><span style=\"border: 1px #F00 solid;\">'.$this->getShopName().'</span></a></div>';\r\n\t\t\t\t\techo '<div class=\"shop_name\"><a href=\"'.$this->getShopUrl().'\"><span class=\"bg_icon\" style=\"background-image: url('.HTTP_DOMAIN.'store/image/icon/store_icon.png);\">'.$this->getShopName().'</span></a></div>';\r\n\t\t\t\t\t//echo ' <div class=\"price\"><span class=\"label\">Price:</span><span class=\"cost\"> $'.$this->getProductPrice().'</span></div>';\r\n\t\t\t\t\techo ' <div class=\"price\"><span class=\"cost\" style=\"background-image: url('.HTTP_DOMAIN.'store/image/icon/price_tag.png);\"> $'.$this->getProductPrice().'</span></div>';\r\n\t\t\t\t\t//href=\"#\" link to add to cart page of shop\r\n\t\t\t\t\techo '<div class=\"row\" style=\"text-align: right;height: 37px;\"><a href=\"'.$this->getShopUrl().'index.php?route=product/product&product_id='.$this->product_id.'\" style=\"text-decoration:none;\"><img src=\"'.HTTP_DOMAIN.'store/image/icon/btn_gotobuy.png\" style=\"border: none;\"></img></a></div>';//'.$rLanguage->text(\"Go to buy\").'\r\n\t\t\t\t\techo '<div class=\"row\" style=\"height: 33px;\">';\r\n\t\t\t\t\t\techo '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">';\r\n\t\t\t\t\t\t\techo '<tr>';\r\n\t\t\t\t\t\t\t\techo '<td>';\r\n \techo '<div class=\"fb-like\" data-href=\"'.HTTP_DOMAIN.'?page=productdetail&product='.$this->product_id.'\" data-send=\"false\" data-layout=\"button_count\" data-width=\"30\" data-show-faces=\"false\" data-font=\"tahoma\" style=\"width: 80px;margin-bottom: 8px;\"></div>';\r\n\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\techo '<td>';\r\n\t\t\t\t\t\techo '<div style=\"margin-bottom: 10px;\"><a class=\"facebook fb-share-button\" href=\"http://www.facebook.com/share.php?u='.HTTP_DOMAIN.'\" onclick=\"return fbs_click()\" target=\"_blank\"><span>Share</span></a></div>';\r\n\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\t\techo '<td>';\r\n\t\t\t\t\t\techo '<div style=\"padding-left: 10px;margin:0px;\"><g:plusone size=\"medium\" annotation=\"bubble\" href=\"'.HTTP_DOMAIN.'?page=productdetail&product='.$this->product_id.'\"></g:plusone></div>';\r\n\t\t\t\t\t\t\t\techo '</td>';\r\n\t\t\t\t\t\t\techo '</tr>';\r\n\t\t\t\t\t\techo '</table>';\r\n echo '</div>';\r\n\t\t\t\t\techo '<div class=\"row shop_name\" style=\"font-size: 12px;\"><a href=\"?page=store&id='.$this->getShopId().'&product='.$this->product_id.'\"><span style=\"background-image: url('.HTTP_DOMAIN.'store/image/icon/info.png);background-position: 0px center; background-repeat: no-repeat; padding: 2px 2px 2px 20px; border:0px #F00 solid; font-size: 12px;\">'.$rLanguage->text(\"About Store\").'</span></a></div>';\r\n\t\t\t\techo '</div>';\r\n\t\t\techo '</td>';\r\n\t\techo '</tr></table>';\r\n\t}", "title": "" }, { "docid": "95cb72692e900e598c28a535fd9c1739", "score": "0.7504854", "text": "public function viewProductDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $productsModel = Admin_Model_Products::getInstance();\n $productId = $this->getRequest()->getParam(\"productId\");\n $result = $productsModel->getAllProductdetails($productId);\n if ($result) {\n $this->view->allproductdetails = $result;\n } else {\n echo 'controller error occured';\n }\n }", "title": "" }, { "docid": "18abcf9ce9f3aaca8cd83bf8771e7eda", "score": "0.7450807", "text": "public function viewStoreProductDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $productsModel = Admin_Model_Products::getInstance();\n $productId = $this->getRequest()->getParam(\"productId\");\n $result = $productsModel->getAllStoreProductdetails($productId);\n if ($result) {\n $this->view->allproductdetails = $result;\n } else {\n echo 'controller error occured';\n }\n }", "title": "" }, { "docid": "61f853a18887cc55b9738b3491b6212a", "score": "0.7417929", "text": "function product_detail( $name, $id,$vendor, Request $request)\t//Shows product detail\n\t{\n\t\t//echo $name.\",\".$id.\",\".$vendor;exit;\t\t\n\t\t// Redirects to product_detail_new function if product is comparitive product.. \n\t\tif( empty( $vendor ) && !isset( $vendor ) )\n\t\t{\n\t\t\treturn redirect( 'product/'.$name.\"/\".$id );\n\t\t}\n\t\t$bname = explode(\"-\", $name );\n\t\t// Checks if the product is BOOK.. \n\t\tif( end( $bname ) == \"book\" )\n\t\t{\n\t\t\t$args = \"&isBook=true\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$args = \"\";\n\t\t}\n\t\t$id=$id.\"-\".$vendor;\n\t\t//SOLR URL for getting product detail\n\t\t$url = composer_url( 'ext_prod_detail.php?_id='.$id.$args );\n\t\t$data['product'] = file_get_contents( $url );\t\t\n\t\t$data['product'] = json_decode($data['product']);\n\n\t\t//List of PRODUCTS> \n\t\tif( isset( $data['product']->return_txt ) )\n\t\t\t$data['product'] = $data['product']->return_txt;\n\t\telse\n\t\t\t$data['product'] = \"\";\n\n\t\tif( end( $bname ) == \"book\" && is_object( $data['product'] ) )\n\t\t{\n\t\t\t$data['product']->grp = \"books\";\n\t\t}\n//echo \"<pre>\";print_r($data);exit;\n\t\t//IF PRODUCT FOUND..\n\t\tif(!empty($data['product']))\n\t\t{ \t\t\t\n\t\t\tif($name !== create_slug($data['product']->name) && ($data['product']->grp != \"books\") )\n\t\t\t{\n\t\t\t\t#if URL name doesn't match to product name\t\t\t\t\n\t\t\t\treturn redirect( \"product/\".create_slug($data['product']->name).\"/\".$data['product']->id.\"-\".$data['product']->vendor );\n\t\t\t}\n\n\t\t\t/*****Creating Title***/\n\t\t\tif(isset($data['product']->seo_title) && (!empty($data['product']->seo_title)))\n\t\t\t{\n\t\t\t\t$data['title'] = $data['product']->seo_title;\n\t\t\t}\n\t\t\t//// RELATED PRODUCTS list.. \n\t\t\t$viewurl = composer_url( 'site_view_also.php?info='.urlencode($data['product']->name).'&cat='.urlencode($data['product']->category).'&pid='.$id.$args );\t\t\t\n\t\t\t$data['ViewAlso'] = file_get_contents($viewurl);\t\t\t\n\t\t\t$data['ViewAlso'] = json_decode($data['ViewAlso']);\n\t\t\t$data['ViewAlso'] = $data['ViewAlso']->return_txt;\t\t\t\n\t\t\t$data['full'] = false;\n\t\t\t$data['moreimage'] = false;\t\t\t\t\t\t\t\n\t\t\t$data['page_title'] = \"\";\n\n\t\t\t/*** PROCESS RECENTLY VIEWED PRODUCT START *****/\n\t\t\t$recently_viewed = $request->cookie('recently_viewed');\n\n\t\t\t$r_prods = $this->get_recent_viewed( $recently_viewed );\n\n\t\t\tif( !empty( $recently_viewed ) )\n\t\t\t{\n\t\t\t\t$ids = json_decode( $recently_viewed );\n\n\t\t\t\tif( !is_array( $ids ) )\n\t\t\t\t{\n\t\t\t\t\t$ids = array();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ids = array();\n\t\t\t}\t\t\t\n\t\t\tif( !in_array($id, $ids) )\n\t\t\t{\n\t\t\t\tarray_unshift( $ids, $id );\n\t\t\t}\n\t\t\t$ids = array_slice( $ids, 0, 12 );\n\t\t\t\n\t\t\t$data['views']['r_prods']\t= $r_prods; // LIST OF Recently Viewed Products.. \n\n\t\t\t/*** PROCESS RECENTLY VIEWED PRODUCT ENDS *****/\n\n\t\t\tif( isset( $data['product']->category ) )\n\t\t\t{\n\t\t\t\t$data['c_name'] = $data['product']->category; // Category name to be used in DETAIL VIEW file.. \n\t\t\t}\n\n\t\t\t$response = new \\Illuminate\\Http\\Response( view(\"v1.product_detail\",$data) );\n\t\t\t// SENDS the current product ID to the USER COOKIE...\n\t\t\t$response->withCookie( cookie()->forever('recently_viewed', json_encode( $ids ) )); \n\t\t\t\n\t\t\treturn $response;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn redirect( 'search?search_text='.unslug($name).'&group=all' );\n\t\t\t//404 Page, as the product not found.. \n\t\t\tabort(404);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "0679a4709bcc5ed5fcf4cacbf924a6e4", "score": "0.72699636", "text": "function product_detail_new( $name, $id, Request $request )\t//Show a product detail\n\t{\n\t\t//echo $name.\",\".$id;exit;\n\t\t$part = explode(\"-\", $id );\n\n\t\t//IF non comparitive then REDIRECT...\n\t\tif( !empty( $part[1] ) && isset( $part[1] ) )\n\t\t{\n\t\t\treturn redirect( 'product/'.$name.\"/\".$id );\n\t\t}\n\n\t\t/// Get the product details from SOLR\n\t\t$data['product'] = file_get_contents( composer_url( 'site_prod_detail.php?_id='.$id ) );\t\t\t\n\t\t\n\t\t$data['product'] = json_decode($data['product']);\n\t\t$data['product'] = $data['product']->return_txt;\n\t\t\n\t\tif(!empty($data['product']))\n\t\t{\n\t\t\t//Correcting Product name\n\t\t\tif($name !== create_slug($data['product']->name))\n\t\t\t{\n\t\t\t\t#if URL name doesn't match to product name\n\t\t\t\treturn redirect( \"product/\".create_slug($data['product']->name).\"/\".$data['product']->id );\n\t\t\t}\n\t\t\t/*****Creating Title***/\n\t\t\tif(isset($data['product']->seo_title) && (!empty($data['product']->seo_title)))\n\t\t\t{\n\t\t\t\t$data['title'] = $data['product']->seo_title;\n\t\t\t}\n\t\t\t// RELATED PRODUCT LIST\n\t\t\t$viewurl = composer_url( 'site_view_also.php?info='.urlencode($data['product']->name).'&cat_id='.urlencode($data['product']->category_id).'&cat='.urlencode($data['product']->category).'&pid='.$id );\n\n\t\t\t$data['ViewAlso'] \t= file_get_contents($viewurl);\n\t\t\t$data['ViewAlso'] \t= json_decode($data['ViewAlso']);\n\t\t\t$data['ViewAlso'] \t= $data['ViewAlso']->return_txt;\t\t\t\n\t\t\t$data['full'] \t\t= false;\n\t\t\t$data['moreimage'] \t= false;\n\t\t\t\n\t\t\t//List of all the VENDORS for the product i.e Flipkart, Amazon, Snapdeal ETC..\n\t\t\t$data['vendor'] = file_get_contents(composer_url( 'vendor_details.php?id='.$id) );\t\n\t\t\t$data['vendor'] = json_decode($data['vendor']);\n\t\t\t$data['vendor'] = $data['vendor']->return_txt;\n\t\t\t\n\t\t\tif( !empty($data['vendor']->hits->hits ))\n\t\t\t{\n\t\t\t\t$data['hasVendor'] = true;\n\t\t\t}\n\n\t\t\t$pop['show'] \t\t\t= true;\n\t\t\t$pop['size'] \t\t\t= 1;\n\t\t\t$pop['from'] \t\t\t= 0;\n\t\t\t$pop['brand_size'] \t\t= 32;\n\t\t\t$pop['brand_min_count']\t= 10;\n\t\t\t$pop['category_id'] \t= $data['product']->category_id;\n\t\t\t$pop['term'] \t\t\t= json_encode( $pop );\n\t\t\t$searchAPI \t\t\t\t= composer_url( 'search.php' );\n\t\t\t$result\t\t\t \t\t= file_get_contents($searchAPI.'?query='.urlencode($pop['term']));\n\t\t\t$result \t\t\t\t= json_decode($result);\n\t\t\t\n\t\t\t//POPULAR Brand suggestion on Poplular Brands Tabs on detail page.. \n\t\t\t$data['bsuggests'] \t\t= $result->return_txt->aggregations->brand->buckets;\n\n\t\t\t$recently_viewed = $request->cookie('recently_viewed');\n\n\t\t\t$r_prods = \"\";\n\n\t\t\t/******** RECENTLY VIEWED PRODUCTS START *******/\n\t\t\tif( !empty( $recently_viewed ) )\n\t\t\t{\n\t\t\t\t$r_prods = file_get_contents(composer_url( 'query_mget.php?ids='.$recently_viewed) );\n\n\t\t\t\tif( !empty( $r_prods ) )\n\t\t\t\t{\n\t\t\t\t\t$r_prods = json_decode( $r_prods );\n\t\t\t\t\t$r_prods = $r_prods->docs;\n\n\t\t\t\t\tforeach ( $r_prods as $key => $prod )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( !isset( $prod->_source ) || empty( $prod->_source ) )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tunset( $r_prods[$key] );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$r_prods = array_filter($r_prods);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$r_prods = array();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif( !empty( $recently_viewed ) )\n\t\t\t{\n\t\t\t\t$ids = json_decode( $recently_viewed );\n\n\t\t\t\tif( !is_array( $ids ) )\n\t\t\t\t{\n\t\t\t\t\t$ids = array();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$ids = array();\n\t\t\t}\n\t\t\t\n\t\t\tif( !in_array($id, $ids) )\n\t\t\t{\n\t\t\t\tarray_unshift( $ids, $id );\n\t\t\t}\n\n\t\t\t$ids = array_slice( $ids, 0, 12 );\n\n\t\t\t$data['views']['r_prods']\t= $r_prods;\n\n\t\t\t/********RECENTLY VIEWED PRODUCT ENDS************/\n\n\t\t\t$data['mobile'] = $this->isMobile;\n\t\t\t\n\t\t\tif( isset( $data['product']->category ) )\n\t\t\t{\n\t\t\t\t$data['c_name'] = $data['product']->category;\n\t\t\t}\n \t\n \t\t\t//Prepare response with COOKIES....\n\t\t\t$response = new \\Illuminate\\Http\\Response( view(\"v1.product_detail_new\",$data) );\n\t\t\t$response->withCookie( cookie()->forever('recently_viewed', json_encode( $ids ) ));\n\t\t\t\n\t\t\treturn $response;\n\n\t\t}\n\t\telse\n\t\t{\t\t\t\n\t\t\t//// 404, Product NOT found..\n\t\t\treturn redirect( 'search?search_text='.unslug($name).'&group=all' );\n\t\t\t// dd(unslug($name));\n\t\t\tabort(404);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "ffa9bda531e3a450ae8da86c5670ad5c", "score": "0.7195779", "text": "protected function getDetails()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// strip the pid from the product url\r\n\t\t\t$pid = explode('product/', $this->url);\r\n\t\t\t$pid = end($pid);\r\n\t\t\t$pid = explode('/', $pid);\r\n\t\t\t$pid = reset($pid);\r\n\t\t\t$this->product->setPid($pid);\r\n \t\t\t\r\n\t\t\t$this->product->setImage('http://cache.net-a-porter.com/images/products/'.$pid.'/'.$pid.'_in_pp.jpg');\r\n\t\t\t$this->product->setName(ucwords($this->services->getCrawler()->filter('#product-details h2')->text()).' '.$this->services->getCrawler()->filter('#product-details h1')->text());\t\t\t\r\n\t\t\t$this->product->setUrl($this->url);\r\n\r\n\t\t\t// only update the thumbnail if we don't have one already\r\n\t\t\tif ($this->product->getThumbnail() == null) {\r\n\t\t\t\t$this->product->setThumbnail('http://cache.net-a-porter.com/images/products/'.$pid.'/'.$pid.'_in_pp.jpg');\r\n\t\t\t}\r\n\r\n\t\t\t// try and build a description for the page (Asos only has lists, so this may need tweaking)\r\n\t\t\ttry\r\n\t\t\t{\t\r\n\t\t\t\t$description = $this->services->getCrawler()->filter('.tabBody1 .en-desc')->text();\r\n\t\t\t\t$this->product->setDescription($description);\r\n\t\t\t}\r\n\t\t\tcatch (\\Exception $e) \r\n\t\t\t{ \r\n\t\t\t\t$this->services->getLogger()->warning('Parsing product description failed for '.$this->url.': '.$e->getMessage());\r\n\t\t\t}\r\n\r\n\t\t\t// confirm the parsing as successfully\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch (\\Exception $e)\r\n\t\t{\r\n\t\t\t// parsing failed\r\n\t\t\t$this->services->getLogger()->error('Parsing product details failed for '.$this->url.': '.$e->getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7661c4dc92f1e17ce401699a3973f0be", "score": "0.7174675", "text": "public function showProductDetails(int $productId) {\n \n }", "title": "" }, { "docid": "372bd942f858480fdc121b87f551e375", "score": "0.7171798", "text": "function DisplayProductDetails($implicit=0)\r\n\t{\r\n\t\tglobal $_POST;\r\n\t\tglobal $_REQUEST;\r\n\t\tglobal $_SETTINGS;\r\n\t\t\r\n\t\t$display = 0;\r\n\t\t\r\n\t\t$flag = $_SETTINGS['product_detail_page_clean_url'];\r\n\t\tif($flag == $_REQUEST['page']){\t\t\r\n\t\t\t$display = 1;\r\n\t\t}\r\n\t\t\r\n\t\t// CHECK IF IMPLICIT\r\n\t\tif($implicit == 1){\r\n\t\t\t$display = 1;\r\n\t\t}\r\n\t\t\r\n\t\tif($display == 1){\r\n\t\t\r\n\t\t\t$productArray = explode(\":\",$_REQUEST['FORM1']);\r\n\t\t\t$product = $productArray[0];\r\n\t\t\tif($productArray[1] == 'edit'){\r\n\t\t\t\t$cartitem_id = $productArray[2];\r\n\t\t\t\t$edit = 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// GET PRODUCT\r\n\t\t\t$selproduct = \"SELECT * FROM ecommerce_products WHERE name='\".$product.\"' AND active='1' AND status='Published' LIMIT 1\";\r\n\t\t\t$resproduct = doQuery($selproduct);\r\n\t\t\t$rowproduct = mysql_fetch_array($resproduct);\r\n\t\t\t\r\n\t\t\t// CHECK IF A FREE PROMO PRODUCT\r\n\t\t\tif($rowproduct['hidden_promo'] == '1'){\r\n\t\t\t\t// GET THE PROMO CODE\r\n\t\t\t\t$selcode = \"SELECT * FROM ecommerce_coupon_codes WHERE free_promo_product_id='\".$rowproduct['product_id'].\"' AND coupon_id='\".$_SESSION['promo_code_id'].\"' LIMIT 1\";\r\n\t\t\t\t$rescode = doQuery($selcode);\r\n\t\t\t\t$numcode = mysql_num_rows($rescode);\r\n\t\t\t\tif($numcode > 0){\r\n\t\t\t\t\ttrue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$report = \"You do not have permission to see this page_\";\r\n\t\t\t\t\t$success = \"1\";\r\n\t\t\t\t\theader(\"Location: \".$_SETTINGS['website'].\"\".$_SETTINGS['products_page_clean_url'].\"\");\r\n\t\t\t\t\texit();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// CHECK IF THE ITEM IS ALREADY IN THE CART\r\n\t\t\t\tif($edit != 1){\r\n\t\t\t\t\t$cartid = $this->getCartId();\r\n\t\t\t\t\t// GET THE ITEMS IN THE CART\r\n\t\t\t\t\t$prodselect = \t\"SELECT a.product_id,c.name FROM ecommerce_product_cart_relational a \".\r\n\t\t\t\t\t\t\t\t\t\"LEFT JOIN ecommerce_products c ON a.product_id=c.product_id \".\r\n\t\t\t\t\t\t\t\t\t\"WHERE a.shopping_cart_id='\".$cartid.\"'\";\r\n\t\t\t\t\t$prodresult = doQuery($prodselect);\r\n\t\t\t\t\t$prodnum \t= mysql_num_rows($prodresult);\r\n\t\t\t\t\t$p = 0;\r\n\t\t\t\t\twhile($p<$prodnum){\r\n\t\t\t\t\t\t$prodrow = mysql_fetch_array($prodresult);\r\n\t\t\t\t\t\tif($prodrow['product_id'] == $rowproduct['product_id']){\r\n\t\t\t\t\t\t\t$report = \"This item is already in your cart_ Click edit in your cart to update this item's options_\";\r\n\t\t\t\t\t\t\t$success = \"1\";\r\n\t\t\t\t\t\t\theader(\"Location: \".$_SETTINGS['website'].\"\".$_SETTINGS['shopping_cart_page_clean_url'].\"/0/\".$report.\"/\".$success.\"/0\");\r\n\t\t\t\t\t\t\texit();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$p++;\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\t$catdescription = \"\";\r\n\t\t\t$ammendcatdescription = \"\";\r\n\t\t\t\r\n\t\t\t// GET PRODUCT CATEGORY\r\n\t\t\t$selcat = \"SELECT * FROM ecommerce_product_category_relational WHERE product_id='\".$rowproduct['product_id'].\"'\";\r\n\t\t\t$rescat = doQuery($selcat);\r\n\t\t\twhile($rowcat = mysql_fetch_array($rescat)){\t\t\t\r\n\t\t\t\t$ammendcatdescription = lookupDbValue('ecommerce_product_categories','description',$rowcat['category_id'],'category_id');\r\n\t\t\t\tif($ammendcatdescription != \"\"){ \r\n\t\t\t\t\t$catdescription .= \"<li>\".$ammendcatdescription.\"</li>\";\r\n\t\t\t\t}\r\n\t\t\t\t$catname = lookupDbValue('ecommerce_product_categories','name',$rowcat['category_id'],'category_id');\r\n\t\t\t\t$catid = $rowcat['category_id'];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//$selcat = \"SELECT * FROM ecommerce_product_categories WHERE category_id='\".$rowcat['category_id'].\"' LIMIT 1\";\r\n\t\t\t//$rescat = doQuery($selcat);\r\n\t\t\t//$rowcat = mysql_fetch_array($rescat);\r\n\t\t\t\r\n\t\t\t//$catdescription = $rowcat['description'];\r\n\t\t\t\r\n\t\t\t// ZOOM SETTING\r\n\t\t\t$zoom = '0';\r\n\t\t\tif($_SETTINGS['product_zoom'] == '1' || $rowproduct['zoom'] == '1'){\r\n\t\t\t\t$zoom = '1';\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$description\t= $rowproduct['description'];\r\n\t\t\t//if($description != \"\"){ $description .= \"<br>\"; }\r\n\t\t\t//$description \t.= $catdescription;\r\n\t\t\t\r\n\t\t\t$name\t\t\t= $rowproduct['name'];\r\n\t\t\t\r\n\t\t\t//\r\n\t\t\t// FORMAT PRICE\r\n\t\t\t//\r\n\t\t\t$discount = '0.00';\r\n\t\t\tif($rowproduct['flat_discount'] != '0.00' || $rowproduct['rate_discount'] != '0.00'){\r\n\t\t\t\t\r\n\t\t\t\t// IF FLAT DISCOUNT\r\n\t\t\t\tif($rowproduct['flat_discount'] != '0.00'){\r\n\t\t\t\t\t$discount = $rowproduct['flat_discount'];\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t// IF RATE DISCOUNT\r\n\t\t\t\telseif($rowproduct['rate_discount'] != '0.00'){\r\n\t\t\t\t\t$discount = $rowproduct['price'] * $rowproduct['rate_discount'];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$list_price\t= $this->currency.money_format('%i',$rowproduct['price']);\r\n\t\t\t$new_price = $rowproduct['price'] - $discount;\r\n\t\t\t$new_price = $this->currency.money_format('%i',$new_price);\t\r\n\r\n\t\t\t// PAGE TITLE / PRDUCT NAME\r\n\t\t\techo \t\"<h1>\".$_REQUEST['FORM1'].\"</h1> \";\r\n\t\t\t\t\t\t\r\n\t\t\techo \t\"<p class='breadcrumbs'> \";\r\n\t\t\techo \t\"<a href='\".$_SETTINGS['website'].$_SETTINGS['products_page_clean_url'].\"' >Items</a> >> \";\r\n\t\t\techo \t\"<a href='\".$_SETTINGS['website'].$_SETTINGS['products_page_clean_url'].\"/\".$catname.\"-\".$catid.\"'>\".$catname.\"</a> >> \";\r\n\t\t\techo\t\"\".$name.\"\".\r\n\t\t\t\t\t\"</p>\";\r\n\t\t\t\r\n\t\t\t// BEGIN PRODUCT BOX\r\n\t\t\techo \t\"<div class='productbox'>\";\t\r\n\t\t\t\r\n\t\t\tif($list_price != $new_price){\r\n\t\t\t\techo \"<div class='salebubble'>This item is on sale. Save \".$this->currency.money_format('%i',$discount).\"!</div>\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//if($rowproduct['description']){\r\n\t\t\t\techo \"<div class='salebubble' style='display:none;'></div>\";\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\t// MAIN IMAGE\r\n\t\t\techo\t\"\t<div class='productimagegallery'>\";\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif($rowproduct['droppable'] == \"1\"){ $droppable = \"droppable\"; }\r\n\t\t\techo \t\"\t\t<div class='mainimage \".$droppable.\" product'>\";\t\r\n\t\t\t\r\n\t\t\t// GET IMAGE NAME\r\n\t\t\tif($rowproduct['naming_convention'] == '1'){\r\n\t\t\t\t$imagenameFormated = strtolower(str_replace(\" \",\"_\",$name).\".jpg\");\t\r\n\t\t\t} else {\r\n\t\t\t\t$imagenameFormated = $rowproduct['image'];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$thumbnailpath = $this->formatThumbnail($imagenameFormated);\r\n\t\t\t\r\n\t\t\t// If HI RES THEN GET THE LARGEST SIZE IMAGE\r\n\t\t\tif($_SETTINGS['hi_res_images'] == '1'){ \r\n\t\t\t\t$mainImage = $this->formatLargest($imagenameFormated);\r\n\t\t\t}\r\n\t\t\t// IF NORMAL THEN GET THE MAIN IMAGE SIZE FROM SETTING\r\n\t\t\telse {\r\n\t\t\t\t$mainImage = $this->formatMain($imagenameFormated);\r\n\t\t\t}\r\n\t\t\t$size = lookupDbValue('ecommerce_thumbnail_sizes', 'name', $_SETTINGS['detail_page_main_image_size'], 'size_id');\r\n\t\t\tif($zoom == '1'){\r\n\t\t\t\techo\t\"\t\t<a id='main-image-zoom-a' href='\".$this->formatLargest($imagenameFormated).\"' class='jqzoom productlightbox' style='' title=''>\";\r\n\t\t\t\techo\t\"\t\t\t<img style='width:\".$size.\"px;' id='main-detail-image' class='main-detail-image' src='\".$mainImage.\"'>\";\r\n\t\t\t\techo\t\"\t\t</a>\";\t\t\t\t\t\r\n\t\t\t} else {\t\t\t\t\t\r\n\t\t\t\techo\t\"\t\t<img style='width:\".$size.\"px;' id='main-detail-image' class='main-detail-image' src='\".$mainImage.\"'>\";\t\t\t\t\r\n\t\t\t}\t\t\t\t\r\n\t\t\techo\t\t\t\"</div>\"; // END MAIN IMAGE\r\n\t\t\t\r\n\t\t\t// LOOP GALLERY IMAGES\r\n\t\t\t$selimage1 = \t\"SELECT * FROM ecommerce_product_images WHERE \".\r\n\t\t\t\t\t\t\t\"(active='1' AND product_id='\".$rowproduct['product_id'].\"') \".\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\"ORDER BY sort_level ASC\";\r\n\t\t\t$resimage1 =\tdoQuery($selimage1);\r\n\t\t\t$numimage1 = \tmysql_num_rows($resimage1);\r\n\t\t\t$iimage1 =\t\t0;\t\t\r\n\t\t\tif($numimage1 > 0){\r\n\t\t\t\techo\t\"\t<div class='gallerythumbnails'>\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\twhile($iimage1<$numimage1){\r\n\t\t\t\t\t\t$rowimage1 = mysql_fetch_array($resimage1);\r\n\t\t\t\t\t\tif($masterimage != $rowimage1['image']){\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo \t\"<div class='gallerythumbnail draggable product'>\".\r\n\t\t\t\t\t\t\t\t\t\"\t<a id='image\".$iimage1.\"' class='image\".$iimage1.\"' href='#' rel='\".$rowimage1['description'].\"' title='\".$rowimage1['description'].\"'>\".\r\n\t\t\t\t\t\t\t\t\t\"\t\t<img src='\".$_SETTINGS['website'].\"uploads-products/\".$this->getSmallImage($rowimage1['image']).\"' rel='\".$rowimage1['description'].\"' title='\".$rowimage1['description'].\"'>\".\r\n\t\t\t\t\t\t\t\t\t\"\t</a>\";\r\n\t\t\t\t\t\t\techo \t\"\r\n\t\t\t\t\t\t\t\t\t\t<script type='text/javascript'>\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t$('#image\".$iimage1.\"').click(function() {\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t// SET THE MAIN IMAGE AS THIS IMAGE\r\n\t\t\t\t\t\t\t\t\t\t\t$('#main-detail-image').attr('src','\".$_SETTINGS['website'].\"uploads-products/\".$this->getMainImage($rowimage1['image']).\"');\r\n\t\t\t\t\t\t\t\t\t\t\t// SET THE MAIN IMAGE ZOOMER AS THE ORIGINAL \r\n\t\t\t\t\t\t\t\t\t\t\t$('#main-image-zoom-a').attr('href','\".$_SETTINGS['website'].\"uploads-products/\".$rowimage1['image'].\"');\r\n\t\t\t\t\t\t\t\t\t\t\t// SET THE IMAGE DESCRIPTION\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t\";\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\tif($rowimage1['description'] != \"\"){\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \"\t$('.salebubble').css('display','block');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$('.salebubble').html('\".$rowimage1['description'].\"');\";\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\techo \" \t$('.salebubble').css('display','none');\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t$('.salebubble').html('');\";\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo \"\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t</script>\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\";\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo \t\"</div>\"; // end gallery ITEM\r\n\t\t\t\t\t\t} // end if the first item\r\n\t\t\t\t\t\t$iimage1++;\r\n\t\t\t\t\t}\t\r\n\r\n\t\t\t\t\techo \"<div class='gallerythumbnail draggable product'><a id='image00' class='image00' href='#'><img src='\".$_SETTINGS['website'].\"uploads-products/\".$this->getSmallImage($imagenameFormated).\"' style-'width:94px;'></a></div>\";\r\n\t\t\t\t\techo \"<script>\";\r\n\t\t\t\t\techo \"$('#image00').click(function() {\";\r\n\t\t\t\t\techo \"$('#main-detail-image').attr('src','\".$_SETTINGS['website'].\"uploads-products/\".$this->getMainImage($imagenameFormated).\"');\";\r\n\t\t\t\t\techo \"$('#main-image-zoom-a').attr('href','\".$_SETTINGS['website'].\"uploads-products/\".$imagenameFormated.\"');\";\r\n\t\t\t\t\tif($rowproduct['description'] != \"\"){\r\n\t\t\t\t\t\techo \"\t$('.salebubble').css('display','block');\r\n\t\t\t\t\t\t\t$('.salebubble').html('\".$rowproduct['description'].\"');\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\techo \" \t$('.salebubble').css('display','none');\r\n\t\t\t\t\t\t\t$('.salebubble').html('');\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\techo \"});\";\r\n\t\t\t\t\techo \"</script>\";\r\n\t\t\t\t\t\r\n\t\t\t\techo\t\"\t\t<br clear='all'>\".\r\n\t\t\t\t\t\t\"\t</div>\"; // end GALLERY\r\n\t\t\t} // end if numimage1\r\n\t\t\t// END THE IMAGE GALLERY\r\n\t\t\t\r\n\t\t\t// SCRIPT FOR ZOOM\r\n\t\t\tif($zoom == '1'){\r\n\t\t\t\techo \t\"\t<script>\".\r\n\t\t\t\t\t\t\"\t\tvar options = { \".\r\n\t\t\t\t\t\t\"\t\tposition: 'left', \".\r\n\t\t\t\t\t\t\"\t\tzoomWidth: 300, \".\r\n\t\t\t\t\t\t\"\t\tzoomHeight: 250 \".\r\n\t\t\t\t\t\t\"\t\t}; \".\r\n\t\t\t\t\t\t\"\t\t$(function() { \".\r\n\t\t\t\t\t\t\"\t\t\t$('.jqzoom').jqzoom(options); \".\r\n\t\t\t\t\t\t\"\t\t}); \".\r\n\t\t\t\t\t\t\"\t</script>\";\r\n\t\t\t}\r\n\t\t\techo\t\"\t</div>\";// END IMAGE GALLERY\r\n\t\t\t\r\n\t\t\t// START FORM\r\n\t\t\techo \t\"\t<form class='product-form' method='post'>\";\r\n\t\t\techo \t\"\t<div class='productinfobox'>\".\r\n\t\t\t\t\t\"\t\t<div class='productdescription'>\";\r\n\t\t\t\r\n\t\t\t// TOP ADD TO CART BUTTON\r\n\t\t\t$displaybutton = 0;\r\n\t\t\tif($rowproduct['take_inventory'] == '1'){\r\n\t\t\t\tif($rowproduct['inventory'] < 0){ $rowproduct['inventory'] = 0; }\r\n\t\t\t\tif($rowproduct['inventory'] > 0){\r\n\t\t\t\t\t$displaybutton = 1;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$displaybutton = 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($displaybutton == 1){\r\n\t\t\t\tif($edit == 1){\r\n\t\t\t\t\techo \t\"\t<p class='p-add-to-cart'><input type='hidden' name='cartitem_id' value='\".$cartitem_id.\"'><input class='add-to-cart-button button' type='submit' name='UPDATEITEM' value='Update Item'></p>\";\r\n\t\t\t\t} else {\t\r\n\t\t\t\t\techo \t\"\t<p class='p-add-to-cart'><input class='add-to-cart-button button' type='submit' name='ADDTOCART' value='Add To Cart'></p>\";\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t// PRODUCT DESCRIPTION\r\n\t\t\tif($description != \"\"){\r\n\t\t\t\tif(strstr($description,\"Intention:\" ) AND strstr($description,\"Affirmation:\") AND $_SESSION['filter_heshe'] == \"intention\"){\r\n\t\t\t\t\t$description = str_replace(\"Intention:\",\"\",$description);\r\n\t\t\t\t\t$descriptionArray = explode(\"Affirmation:\",$description);\r\n\t\t\t\t\t@$intentionString = $descriptionArray[0];\r\n\t\t\t\t\t@$affirmationString = $descriptionArray[1];\r\n\t\t\t\t\techo\t\"\t\t<span class='productdescription-heading'>Intention:</span>\";\r\n\t\t\t\t\techo \t\"\t\t\".$intentionString.\"\";\r\n\t\t\t\t\techo\t\"\t\t<span class='productdescription-heading'>Affirmation:</span>\";\r\n\t\t\t\t\techo\t\"\t\t\".$affirmationString.\"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo\t\"\t\t\t<span class='productdescription-heading'>Details:</span>\";\r\n\t\t\t\t\techo\t\"\t\t\t\".$description.\"\";\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\techo\t\"\t\t\t<span class='productdescription-heading'>Details:</span>\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// CAT DESCRIPTION\r\n\t\t\tif($_SESSION['filter_heshe']!= 'intention'){\r\n\t\t\t\tif($catdescription != \"\")\r\n\t\t\t\t{\r\n\t\t\t\t\techo \"<ul class='prod-details'>\";\r\n\t\t\t\t\tif(strstr($catdescription,\"--\")){\r\n\t\t\t\t\t\techo \"\".str_replace(\"--\",\"</li><li>\",$catdescription).\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\techo $catdescription;\r\n\t\t\t\t\t}\r\n\t\t\t\t\techo \"</ul>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// PRODUCT PRICE\t\r\n\t\t\tif($list_price != $new_price){\r\n\t\t\t\techo \"<span class='productdescription-heading'>Price:</span> List Price: <del>\".$list_price.\"</del><Br>\";\r\n\t\t\t\techo \"Your Price: <strong>\".$new_price.\"</strong>\";\r\n\t\t\t} else {\r\n\t\t\t\techo \"<span class='productdescription-heading'>Price:</span> \".$list_price.\"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t// PRODUCT QUANTITY\t\r\n\t\t\t$_POST['quantity'] == $_POST['QTY'];\r\n\t\t\tif($edit == 1){\r\n\t\t\t\t// GET THE QUANTITY FROM THE CART\r\n\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_cart_relational WHERE item_id='\".$cartitem_id.\"' LIMIT 1\";\r\n\t\t\t\t$res = doQuery($sel);\r\n\t\t\t\t$item = mysql_fetch_array($res);\r\n\t\t\t\t$_POST['quantity'] = $item['qty'];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif($_POST['quantity'] == \"\"){ $_POST['quantity'] = \"1\"; }\r\n\t\t\techo \t\"\t\t\t<span class='productdescription-heading'>Quantity:</span>\";\r\n\t\t\t\r\n\t\t\t$display = 1;\t\t\t\r\n\t\t\t// IF INVENTORY THEN DISPLAY IT\r\n\t\t\tif($rowproduct['take_inventory'] == '1'){\r\n\t\t\t\tif($rowproduct['inventory'] < 0){ $rowproduct['inventory'] = 0; }\r\n\t\t\t\tif($rowproduct['inventory'] > 0){\r\n\t\t\t\t\techo \"<input type='text' class='product-qty' style='width:30px;' name='QTY' value='\".$_POST['quantity'].\"'> \";\r\n\t\t\t\t\techo \"<small> Available Inventory: \".$rowproduct['inventory'].\"</small>\";\t\t\t\r\n\t\t\t\t} elseif($rowporduct['inventory'] == 0) {\r\n\t\t\t\t\techo \"<small> Available Inventory: \".$rowproduct['inventory'].\" left. </small>\";\r\n\t\t\t\t\t$display = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// NOT TAKING INVENTORY\r\n\t\t\telse {\r\n\t\t\t\tif($rowproduct['hidden_promo'] == '1'){\r\n\t\t\t\t\techo \t\"1 <input type='hidden' class='' style='' name='QTY' value='\".$_POST['quantity'].\"'>\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\techo \t\"<input type='text' class='product-qty' style='width:30px;' name='QTY' value='\".$_POST['quantity'].\"'>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif($display == 1){\r\n\t\t\t\t// ATTRIBUTES\t\t\r\n\t\t\t\t$sele = \"SELECT * FROM ecommerce_product_attributes WHERE active='1' ORDER BY sort_level ASC\";\r\n\t\t\t\t$rese = doQuery($sele);\r\n\t\t\t\t$nume = mysql_num_rows($rese);\r\n\t\t\t\t$ie\t = 0;\r\n\t\t\t\twhile($ie<$nume)\r\n\t\t\t\t{\r\n\t\t\t\t\t$numa = 0;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// CHECK IF ATTRIBUTE MATCHES PRODUCT\r\n\t\t\t\t\t$row = mysql_fetch_array($rese);\r\n\t\t\t\t\t$selcheck = \"SELECT * FROM ecommerce_product_attribute_relational WHERE product_id='\".$rowproduct['product_id'].\"' AND attribute_id='\".$row['attribute_id'].\"' LIMIT 1\";\r\n\t\t\t\t\t$rescheck = doQuery($selcheck);\r\n\t\t\t\t\t//echo \"<br>$selcheck<br>\";\r\n\t\t\t\t\t$numa = mysql_num_rows($rescheck);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// CHECK IF ATTRIBUTE MACHES CATEGORY\r\n\t\t\t\t\t$selcheck = \"SELECT * FROM ecommerce_product_category_relational WHERE product_id='\".$rowproduct['product_id'].\"' AND category_id != '0'\";\r\n\t\t\t\t\t$rowcheck = doQuery($selcheck);\r\n\t\t\t\t\twhile($rowc = mysql_fetch_array($rowcheck)){\r\n\t\t\t\t\t\t// CHECK IF ATTRIBUTE MATCHES\r\n\t\t\t\t\t\t// echo \"<br>\".$rowc['category_id'].\" --- \".$row['category_id'].\"<br>\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif($rowc['category_id'] == $row['category_id']){\r\n\t\t\t\t\t\t\t$numa = 1;\r\n\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\t\r\n\t\t\t\t\tif($numa == 1){\r\n\t\t\t\t\t\t//$rowa = mysql_fetch_array($rescheck);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//echo \"<Br>ATTRIBUTE: \".$row['name'].\"<br>\";\r\n\t\t\t\t\t\t//echo \"TEXT VALUE: \".$_POST['value'].\"<Br>\";\r\n\t\t\t\t\t\t//echo \"CARTITEM ID: \".$cartitem_id.\"<br>\";\r\n\t\t\t\t\t\t//echo \"ATTRIBUTE ID:\".$row['attribute_id'].\"<br>\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif($edit == 1){\r\n\t\t\t\t\t\t\t// GET THE ATTRIBUTE VALUE FROM THE CART RELATIONAL ITEM\r\n\t\t\t\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_attribute_cart_relational WHERE relational_item_id='\".$cartitem_id.\"' AND attribute_id='\".$row['attribute_id'].\"'\";\r\n\t\t\t\t\t\t\t$res = doQuery($sel);\r\n\t\t\t\t\t\t\t$item = mysql_fetch_array($res);\r\n\t\t\t\t\t\t\t$_POST['value'] = $item['value'];\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//echo \"ATTRIBUTE VALUE: \".$_POST['value'].\"\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// ATTRIBUTE NAME\r\n\t\t\t\t\t\techo\t\"\t\t<span class='productdescription-heading'>\".$row['label'].\":</span>\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// DESCRIPTION\r\n\t\t\t\t\t\tif($row['description'] != \"\"){\r\n\t\t\t\t\t\t\techo\t\"\t<p class='product-description'>\".$row['description'].\"</p>\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// TEXTBOX ATTRIBUTE\r\n\t\t\t\t\t\tif($row['type'] == 'Textbox'){\r\n\t\t\t\t\t\t\techo\t\"\t<input name='attribute[]' type='text' value='\".$_POST['value'].\"'>\";\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// TEXTAREA ATTRIBUTE\r\n\t\t\t\t\t\tif($row['type'] == 'Textarea'){\r\n\t\t\t\t\t\t\techo\t\"\t<textarea name='attribute[]'>\".$_POST['value'].\"</textarea>\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif($edit == 1){\r\n\t\t\t\t\t\t\t// GET THE ATTRIBUTE VALUE FROM THE CART RELATIONAL ITEM\r\n\t\t\t\t\t\t\t//$sel = \"SELECT * FROM ecommerce_product_attribute_cart_relational WHERE item_id='\".$cartitem_id.\"' AND attribute_id='\".$row['attribute_id'].\"'\";\r\n\t\t\t\t\t\t\t//$res = doQuery($sel);\r\n\t\t\t\t\t\t\t//$item = mysql_fetch_array($res);\r\n\t\t\t\t\t\t\t$_POST['value'] = $item['attribute_value_id'];\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// CHECK DEFAULT GET DEFAULT ATTRIBUTE VALUE\r\n\t\t\t\t\t\t\t$sel1 = \"SELECT * FROM ecommerce_product_attribute_values WHERE `default`='1' AND attribute_id='\".$row['attribute_id'].\"' LIMIT 1\";\r\n\t\t\t\t\t\t\t$res1 = doQuery($sel1);\r\n\t\t\t\t\t\t\t$row1 = mysql_fetch_array($res1);\r\n\t\t\t\t\t\t\t$_POST['value'] = $row1['attribute_value_id'];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//echo \"<Br>ATTRIBUTE ID VALUE: \".$_POST['value'].\"<Br>\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// SELECT ATTRIBUTE\r\n\t\t\t\t\t\tif($row['type'] == 'Select'){\r\n\t\t\t\t\t\t\techo\t\"\t<select name='attribute[]'>\";\r\n\t\t\t\t\t\t\t\t//$table = \"ecommerce_product_attribute_values\";\r\n\t\t\t\t\t\t\t\t//$options = getSqlSelectArray($table);\r\n\t\t\t\t\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_attribute_values WHERE attribute_id='\".$row['attribute_id'].\"' AND active='1'\";\r\n\t\t\t\t\t\t\t\t$options = doQuery($sel);\r\n\t\t\t\t\t\t\t\twhile($row1 = mysql_fetch_array($options)){\r\n\t\t\t\t\t\t\t\t\t$selected = \"\";\r\n\t\t\t\t\t\t\t\t\tif($row1['attribute_value_id'] == $_POST['value']){ $selected = \" SELECTED \"; }\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\techo\t\"\t<option value='\".$row1['attribute_value_id'].\"' \".$selected.\">\".$row1['name'].\"</option>\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\techo \t\"\t</select>\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// CHECKBOX GROUP\r\n\t\t\t\t\t\tif($row['type'] == 'Checkbox Group'){\r\n\t\t\t\t\t\t\techo \t\"\t<ul class='attribute-list attribute-ul-\".$row['attribute_id'].\"'>\"; // BEGIN ATTRIBUTE LOOPED LIST\r\n\t\t\t\t\t\t\t//$table = \"ecommerce_product_attribute_values\";\r\n\t\t\t\t\t\t\t//$options = getSqlSelectArray($table);\r\n\t\t\t\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_attribute_values WHERE attribute_id='\".$row['attribute_id'].\"' AND active='1'\";\r\n\t\t\t\t\t\t\t$options = doQuery($sel);\r\n\t\t\t\t\t\t\twhile($row1 = mysql_fetch_array($options)){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif($edit == 1){\r\n\t\t\t\t\t\t\t\t\t// GET THE RELATIONAL ATTRIBUTE ITEMS FOR THIS ATTRIBUTE IN THE CART FOR THIS CART ITEM\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_attribute_cart_relational WHERE relational_item_id='\".$cartitem_id.\"' AND attribute_id='\".$row['attribute_id'].\"' AND attribute_value_id='\".$row1['attribute_value_id'].\"'\";\r\n\t\t\t\t\t\t\t\t\t$res = doQuery($sel);\r\n\t\t\t\t\t\t\t\t\t$item = mysql_fetch_array($res);\r\n\t\t\t\t\t\t\t\t\t$_POST['value'] = $item['attribute_value_id'];\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//echo \"<Br>ATTRIBUTE ID VALUE: \".$_POST['value'].\"<Br>\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$selected = \"\";\r\n\t\t\t\t\t\t\t\tif($row1['attribute_value_id'] == $_POST['value']){ $selected = \" CHECKED \"; }\r\n\t\t\t\t\t\t\t\techo\t\"\t\t<li class='attribute-li-\".$row1['attribute_value_id'].\"' style='background-image:url(\".$_SETTINGS['website'].\"uploads/\".$row1['image'].\"); background-repeat:no-repeat;'>\";\r\n\t\t\t\t\t\t\t\techo \t\"\t\t\t<input type='checkbox' \".$selected.\" name='attribute[]' value='\".$row1['attribute_value_id'].\"'> \";\r\n\t\t\t\t\t\t\t\techo \t\"\t\t\t<label>\".$row1['name'].\"</label>\";\r\n\t\t\t\t\t\t\t\techo\t\"\t\t</li>\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo\t\"\t</ul><br clear='all'\"; // END ATTRIBUTE LOOPED LIST\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// RADIO GROUP\r\n\t\t\t\t\t\tif($row['type'] == 'Radio Group'){\r\n\t\t\t\t\t\t\techo \t\"\t<ul class='attribute-list attribute-ul-\".$row['attribute_id'].\"'>\"; // BEGIN ATTRIBUTE LOOPED LIST\r\n\t\t\t\t\t\t\t//$table = \"ecommerce_product_attribute_values\";\r\n\t\t\t\t\t\t\t//$options = getSqlSelectArray($table);\r\n\t\t\t\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_attribute_values WHERE attribute_id='\".$row['attribute_id'].\"' AND active='1'\";\r\n\t\t\t\t\t\t\t$options = doQuery($sel);\r\n\t\t\t\t\t\t\twhile($row1 = mysql_fetch_array($options)){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif($edit == 1){\r\n\t\t\t\t\t\t\t\t\t// GET THE RELATIONAL ATTRIBUTE ITEMS FOR THIS ATTRIBUTE IN THE CART FOR THIS CART ITEM\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_attribute_cart_relational WHERE relational_item_id='\".$cartitem_id.\"' AND attribute_id='\".$row['attribute_id'].\"' AND attribute_value_id='\".$row1['attribute_value_id'].\"'\";\r\n\t\t\t\t\t\t\t\t\t$res = doQuery($sel);\r\n\t\t\t\t\t\t\t\t\t$item = mysql_fetch_array($res);\r\n\t\t\t\t\t\t\t\t\t$_POST['value'] = $item['attribute_value_id'];\t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//echo \"<Br>ATTRIBUTE ID VALUE: \".$_POST['value'].\"<Br>\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t$selected = \"\";\r\n\t\t\t\t\t\t\t\tif($row1['attribute_value_id'] == $_POST['value']){ $selected = \" CHECKED \"; }\r\n\t\t\t\t\t\t\t\techo\t\"\t\t<li class='attribute-li-\".$row1['attribute_value_id'].\"' style='background-image:url(\".$_SETTINGS['website'].\"uploads/\".$row1['image'].\"); background-repeat:no-repeat;'>\";\r\n\t\t\t\t\t\t\t\techo \t\"\t\t\t<input type='radio' \".$selected.\" name='attribute[]' value='\".$row1['attribute_value_id'].\"'> \";\r\n\t\t\t\t\t\t\t\techo \t\"\t\t\t<label>\".$row1['name'].\"</label>\";\r\n\t\t\t\t\t\t\t\techo\t\"\t\t</li>\";\r\n\t\t\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo\t\"\t\t<li class='attribute-li-\".$row1['attribute_value_id'].\"' style=''>\";\r\n\t\t\t\t\t\t\techo \t\"\t\t\t<input type='radio' \".$selected.\" name='attribute[]' value=''> \";\r\n\t\t\t\t\t\t\techo \t\"\t\t\t<label>None</label>\";\r\n\t\t\t\t\t\t\techo\t\"\t\t</li>\";\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\techo\t\"\t</ul><br clear='all'><br>\"; // END ATTRIBUTE LOOPED LIST\r\n\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\t$ie++;\t\t\t\t\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// PRODUCT NOTE \r\n\t\t\t\tif($edit == 1){\r\n\t\t\t\t\t// GET THE NOTE FROM THE CART\r\n\t\t\t\t\t$sel = \"SELECT * FROM ecommerce_product_cart_relational WHERE item_id='\".$cartitem_id.\"' LIMIT 1\";\r\n\t\t\t\t\t$res = doQuery($sel);\r\n\t\t\t\t\t$item = mysql_fetch_array($res);\r\n\t\t\t\t\t$_POST['NOTE'] = $item['note'];\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\techo \t\"\t\t\t<span class='productdescription-heading'>Note:</span>\".\r\n\t\t\t\t\t\t\"\t\t\t<textarea class='product-note' name='NOTE' >\".$_POST['NOTE'].\"</textarea>\";\r\n\t\t\t\t\r\n\t\t\t\techo\t\"\t\t\t<input type='hidden' class='addtocart-hidden' name='PRODUCTID' value='\".$rowproduct['product_id'].\"'\";\r\n\t\t\t\t//echo\t\"\t\t\t<input type='hidden' class='addtocart-hidden' name='QTY' value='1'\";\r\n\t\t\t\tif($edit == 1){\r\n\t\t\t\t\techo \t\"\t\t\t<p class='p-add-to-cart'><input type='hidden' name='cartitem_id' value='\".$cartitem_id.\"'><input class='add-to-cart-button button' type='submit' name='UPDATEITEM' value='Update Item'></p>\";\r\n\t\t\t\t} else {\t\r\n\t\t\t\t\t//if($rowproduct['take_inventory'] == '1' ){\r\n\t\t\t\t\t//\tif($rowproduct['inventory'] > 0){\r\n\t\t\t\t\techo \t\"\t\t<p class='p-add-to-cart'><input class='add-to-cart-button button' type='submit' name='ADDTOCART' value='Add To Cart'></p>\";\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\t\r\n\t\t\techo \t\"\t\t</div>\"; // END PRODUCT DESCRIPTION\r\n\t\t\techo \t\"\t</div>\"; // END PRODUCT INFO BOX\t\t\r\n\t\t\t//echo \t\"\t<br clear='all'>\";\r\n\t\t\techo \t\"\t</form>\"; // END FORM\r\n\t\t\t\r\n\t\t\t// IF THERE ARE REVIEW FOR THIS PRODUCT\r\n\t\t\t// SHOW THE VIEW TAB\r\n\t\t\t$seltestimonial = \"SELECT comment_id FROM ecommerce_product_comments WHERE product_id='\".$rowproduct['product_id'].\"' AND active='1' AND status='Published'\";\r\n\t\t\t$restestimonial = doQuery($seltestimonial);\r\n\t\t\t$numtestimonial = mysql_num_rows($restestimonial);\r\n\t\t\t\r\n\t\t\techo \"<div id='tabs'>\r\n\t\t\t\t\t<ul>\";\r\n\t\t\t\r\n\t\t\tif($numtestimonial){\t\t\r\n\t\t\t\techo \"\t<li><a href='#tabs-reviews'>Product Reviews</a></li>\";\r\n\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\techo \"\t\t<li><a href='#tabs-write'>Write a Review</a></li>\";\r\n\t\t\techo \"\t\t<li><a href='#tabs-related'>You'll also like...</a></li>\";\r\n\t\t\techo \"\t\t<li><a href='#tabs-packaging'>Packaging</a></li>\";\r\n\t\t\t\r\n\t\t\tif($_SESSION['filter_heshe'] == 'intention')\r\n\t\t\t{\r\n\t\t\t\techo \"\t<li><a href='#tabs-manifestation'>Manifestation Card</a></li>\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\techo \"\t</ul>\";\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tif($numtestimonial){\t\t\r\n\t\t\t\techo \"\t<div id='tabs-reviews'>\";\r\n\t\t\t\t\t\t$this->DisplayComments($rowproduct['product_id']);\t\t\t\t\t\t\t\r\n\t\t\t\techo \"\t</div>\";\r\n\t\t\t}\t\t\t\r\n\t\t\techo \"\t<div id='tabs-write'>\";\r\n\t\t\t\t\t\t$this->DisplayCommentForm($rowproduct['product_id']);\t\t\t\t\t\t\t\r\n\t\t\techo \"\t</div>\r\n\t\t\t\t\t<div id='tabs-related'>\";\t\t\t\t\t\t\r\n\t\t\t\t\t\t$this->SBDisplayRelatedProducts();\t\t\t\t\t\t\t\r\n\t\t\techo \"\t</div>\";\r\n\t\t\t\r\n\t\t\techo \"<div id='tabs-packaging' style='text-align:center;'>\";\r\n\t\t\techo \"\t<img src='\".$_SETTINGS['website'].\"uploads/packaging.jpg' style='margin:25px 0;'>\";\r\n\t\t\techo \"</div>\";\r\n\t\t\t\r\n\t\t\tif($_SESSION['filter_heshe'] == 'intention')\r\n\t\t\t{\r\n\t\t\t\techo \"\t<div id='tabs-manifestation' style='text-align:center;'><a class='productlightbox' href='\".$_SETTINGS['website'].\"uploads/manifestation.jpg'><img src='\".$_SETTINGS['website'].\"uploads/manifestation.jpg' style='margin:25px 0; width:550px;'></a></div>\";\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\techo \"</div>\";\r\n\r\n\t\t\techo \"\r\n\t\t\t<script>\r\n\t\t\t\t$( '#tabs' ).tabs();\r\n\t\t\t</script>\t\t\t\r\n\t\t\t\";\r\n\t\t\t\r\n\t\t\techo \"<br clear='all'>\";\r\n\t\t\t\r\n\t\t\techo\t\"</div>\"; // END PRODUCT BOX\r\n\t\t} // display\r\n\t}", "title": "" }, { "docid": "00e2803f060fff622632de4cb8bfbd71", "score": "0.7157344", "text": "public function productDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $productsModel = Admin_Model_Products::getInstance();\n $hotelModel = Admin_Model_HotelDetails::getInstance();\n $hoteldetails = $hotelModel->selectAllHotels();\n\n if ($hoteldetails) {\n $this->view->hotelslist = $hoteldetails;\n }\n $result = $productsModel->getProductsdetails();\n if ($result) {\n $this->view->productdetails = $result;\n } else {\n echo 'controller error occured';\n }\n\n if ($this->_request->isPost()) {\n $hotelId = $this->getRequest()->getPost('hotelname');\n if ($hotelId) {\n $res = $productsModel->getProductsByHotelId($hotelId);\n if ($res) {\n $this->view->productsbyhotels = $res;\n } else {\n $this->view->productdetails = $result;\n }\n } else {\n $this->view->productdetails = $result;\n }\n }\n }", "title": "" }, { "docid": "b7621a565b151c603981d4dfeb3e84da", "score": "0.7152194", "text": "function product_detail_new_amp( $name, $id, Request $request )\t//Show a product detail\n\t{\n\t\t//echo $name.\",\".$id;exit;\n\t\t$part = explode(\"-\", $id );\n\n\t\t//IF non comparitive then REDIRECT...\n\t\tif( !empty( $part[1] ) && isset( $part[1] ) )\n\t\t{\n\t\t\treturn redirect( 'product/'.$name.\"/\".$id.\"/amp\" );\n\t\t}\n\n\t\t/// Get the product details from SOLR\n\t\t$data['product'] = file_get_contents( composer_url( 'site_prod_detail.php?_id='.$id ) );\t\t\t\n\t\t\n\t\t$data['product'] = json_decode($data['product']);\n\t\t$data['product'] = $data['product']->return_txt;\n\t\t\n\t\tif(!empty($data['product']))\n\t\t{\n\t\t\t//Correcting Product name\n\t\t\tif($name !== create_slug($data['product']->name))\n\t\t\t{\n\t\t\t\t#if URL name doesn't match to product name\n\t\t\t\treturn redirect( \"product/\".create_slug($data['product']->name).\"/\".$data['product']->id.\"/amp\" );\n\t\t\t}\n\t\t\t/*****Creating Title***/\n\t\t\tif(isset($data['product']->seo_title) && (!empty($data['product']->seo_title)))\n\t\t\t{\n\t\t\t\t$data['title'] = $data['product']->seo_title;\n\t\t\t}\n\t\t\t// RELATED PRODUCT LIST\n\t\t\t$viewurl = composer_url( 'site_view_also.php?info='.urlencode($data['product']->name).'&cat_id='.urlencode($data['product']->category_id).'&cat='.urlencode($data['product']->category).'&pid='.$id );\n\n\t\t\t$data['ViewAlso'] \t= file_get_contents($viewurl);\n\t\t\t$data['ViewAlso'] \t= json_decode($data['ViewAlso']);\n\t\t\t$data['ViewAlso'] \t= $data['ViewAlso']->return_txt;\t\t\t\n\t\t\t$data['full'] \t\t= false;\n\t\t\t$data['moreimage'] \t= false;\n\t\t\t\n\t\t\t//List of all the VENDORS for the product i.e Flipkart, Amazon, Snapdeal ETC..\n\t\t\t$data['vendor'] = file_get_contents(composer_url( 'vendor_details.php?id='.$id) );\t\n\t\t\t$data['vendor'] = json_decode($data['vendor']);\n\t\t\t$data['vendor'] = $data['vendor']->return_txt;\n\t\t\t\n\t\t\tif( !empty($data['vendor']->hits->hits ))\n\t\t\t{\n\t\t\t\t$data['hasVendor'] = true;\n\t\t\t}\n\n\t\t\t$pop['show'] \t\t\t= true;\n\t\t\t$pop['size'] \t\t\t= 1;\n\t\t\t$pop['from'] \t\t\t= 0;\n\t\t\t$pop['brand_size'] \t\t= 32;\n\t\t\t$pop['brand_min_count']\t= 10;\n\t\t\t$pop['category_id'] \t= $data['product']->category_id;\n\t\t\t$pop['term'] \t\t\t= json_encode( $pop );\n\t\t\t$searchAPI \t\t\t\t= composer_url( 'search.php' );\n\t\t\t$result\t\t\t \t\t= file_get_contents($searchAPI.'?query='.urlencode($pop['term']));\n\t\t\t$result \t\t\t\t= json_decode($result);\n\n\n\t\t\t$data['mobile'] = $this->isMobile;\n\t\t\t\n\t\t\tif( isset( $data['product']->category ) )\n\t\t\t{\n\t\t\t\t$data['c_name'] = $data['product']->category;\n\t\t\t}\n \t\n \t\t\t//echo \"<pre>\";print_r($data);exit;\n \t\t\t//echo amp_desc($data['product']->description);exit;\n\t\t\t$response = new \\Illuminate\\Http\\Response( view(\"v1.amp.product_detail_new\",$data) );\n\t\t\treturn $response;\n\t\t}\n\t\telse\n\t\t{\t\t\t\n\t\t\t//// 404, Product NOT found..\n\t\t\treturn redirect( 'search?search_text='.unslug($name).'&group=all' );\n\t\t\t// dd(unslug($name));\n\t\t\tabort(404);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "6c6b96065a6add9e08ef57fdc0368ba9", "score": "0.7130097", "text": "function product_detail_amp( $name, $id,$vendor, Request $request)\t//Shows product detail\n\t{\n\t\t//echo $name.\",\".$id.\",\".$vendor;exit;\t\t\n\t\t// Redirects to product_detail_new function if product is comparitive product.. \n\t\tif( empty( $vendor ) && !isset( $vendor ) )\n\t\t{\n\t\t\treturn redirect( 'product/'.$name.\"/\".$id.\"/amp\" );\n\t\t}\n\t\t$bname = explode(\"-\", $name );\n\t\t// Checks if the product is BOOK.. \n\t\tif( end( $bname ) == \"book\" )\n\t\t{\n\t\t\t$args = \"&isBook=true\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$args = \"\";\n\t\t}\n\t\t$id=$id.\"-\".$vendor;\n\t\t//SOLR URL for getting product detail\n\t\t$url = composer_url( 'ext_prod_detail.php?_id='.$id.$args );\n\t\t$data['product'] = file_get_contents( $url );\t\t\n\t\t$data['product'] = json_decode($data['product']);\n\n\t\t//List of PRODUCTS> \n\t\tif( isset( $data['product']->return_txt ) )\n\t\t\t$data['product'] = $data['product']->return_txt;\n\t\telse\n\t\t\t$data['product'] = \"\";\n\n\t\tif( end( $bname ) == \"book\" && is_object( $data['product'] ) )\n\t\t{\n\t\t\t$data['product']->grp = \"books\";\n\t\t}\n\n\t\t//IF PRODUCT FOUND..\n\t\tif(!empty($data['product']))\n\t\t{ \t\t\t\n\t\t\tif($name !== create_slug($data['product']->name) && ($data['product']->grp != \"books\") )\n\t\t\t{\n\t\t\t\t#if URL name doesn't match to product name\t\t\t\t\n\t\t\t\treturn redirect( \"product/\".create_slug($data['product']->name).\"/\".$data['product']->id.\"-\".$data['product']->vendor.\"/amp\" );\n\t\t\t}\n\t\t\t/*****Creating Title***/\n\t\t\tif(isset($data['product']->seo_title) && (!empty($data['product']->seo_title)))\n\t\t\t{\n\t\t\t\t$data['title'] = $data['product']->seo_title;\n\t\t\t}\n\t\t\t//// RELATED PRODUCTS list.. \n\t\t\t$viewurl = composer_url( 'site_view_also.php?info='.urlencode($data['product']->name).'&cat='.urlencode($data['product']->category).'&pid='.$id.$args );\t\t\t\n\t\t\t$data['ViewAlso'] = file_get_contents($viewurl);\t\t\t\n\t\t\t$data['ViewAlso'] = json_decode($data['ViewAlso']);\n\t\t\t$data['ViewAlso'] = $data['ViewAlso']->return_txt;\t\t\t\n\t\t\t$data['full'] = false;\n\t\t\t$data['moreimage'] = false;\t\t\t\t\t\t\t\n\t\t\t$data['page_title'] = \"\";\t\t\t\n\n\t\t\tif( isset( $data['product']->category ) )\n\t\t\t{\n\t\t\t\t$data['c_name'] = $data['product']->category; // Category name to be used in DETAIL VIEW file.. \n\t\t\t}\n\n\t\t\t$response = new \\Illuminate\\Http\\Response( view(\"v1.amp.product_detail\",$data) );\n\t\t\treturn $response;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn redirect( 'search?search_text='.unslug($name).'&group=all' );\n\t\t\t//404 Page, as the product not found.. \n\t\t\tabort(404);\n\t\t}\t\t\n\t}", "title": "" }, { "docid": "54bedb016cf8254312074ad61b34b9f8", "score": "0.7033927", "text": "public function productPane(){\n \t// allow for filtering\n \t// this is available on all pages\n }", "title": "" }, { "docid": "c4f55f9b5d64b3458523822a88207b49", "score": "0.6959049", "text": "public function product($urlParams) {\n $productId = $urlParams['id'];\n echo 'page du produit #'.$productId;\n // $this->show('product', ['id' => $productId]); \n }", "title": "" }, { "docid": "62bd4151c1f152e0474794f30a8591d5", "score": "0.69571745", "text": "public function detail() {\n\n\t\t$data = array ();\n\n\t\t$data['module'] = $this->module;\n\t\t$data['module_label'] = $this->module_label;\n\n\t\t$data['pro_obj'] = '';\n\t\t$data['pro_saved_item'] = '';\n\n\t\t$data['cart_product_count'] = 0;\n\t\t$data['cart_product_detail'] = '';\n\n\t\t$pro_slug = trim($this->uri->segment(4));\n\n\t\t$buyer = get_logged_buyer_details();\n\n\t\t/*Cart details*/\n\t\t$cart_return = $this->cart_details();\n\n\t\t$data['cart_product_list'] = $cart_return['cart_product'];\n\t\t$data['cart_time'] = json_decode(json_encode($cart_return['cart_time']),true);\n\t\t$data['cart_item_ref'] = json_decode(json_encode($cart_return['cart_item_ref']),true);\n\t\t/*Category and company wise list Product*/\n\t\t$options = array('secure_token'=> $buyer['buyer_access_token'], 'buyer_company_id' => $buyer['buyer_company_id'],'buyer_id' => $buyer['buyer_id'],'pro_slug' => $pro_slug);\n\n\t\t$this->mcurl->add_call ( 'product_response', 'GET', BUYER_API_URL . 'product/product_list',$options);\n\t\t$this->mcurl->add_call ( 'product_saved_response', 'GET', BUYER_API_URL . 'product/product_saved_item',$options);\n\n\t\t$curl_result = $this->mcurl->execute ();\n\n\t\t$response = json_decode($curl_result['product_response']['response']);\n\n\t\tif($response->status == 'ok') {\n\n\t\t\tif(isset($response->result_set)) {\n\n\t\t\t\t$data['pro_obj'] = $response->result_set[0];\n\n\t\t\t\t$company_id = $data['pro_obj']->company_id;\n\t\t\t\t$product_id = $data['pro_obj']->product_id;\n\n\t\t\t\t$data['image_source'] = $response->common->image_source;\n\t\t\t\t$data['image_path'] = $response->common->image_path;\n\t\t\t\t\n\t\t\t\t$options = array('secure_token'=> $buyer['buyer_access_token'], 'unit_type' => $data['pro_obj']->product_unit_type);\n\t\t\t\t$this->mcurl->add_call ( 'unittype', 'GET', BUYER_API_URL . 'product/allowDecimal',$options);\n\t\t\t\t$result = $this->mcurl->execute ();\n\t\t\t\t$response = json_decode($result['unittype']['response']);\n\t\t\t\tif($response->status == 'ok') {\n\n\t\t\t\t\tif(isset($response->result_set)) {\n\t\t\t\t\t\t$data['allow_decimal'] = $response->result_set->allow_decimal;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t$response = json_decode($curl_result['product_saved_response']['response']);\n\t\t\tif($response->status == 'ok') {\n\n\t\t\t\tif(isset($response->result_set)) {\n\t\t\t\t\t$data['pro_saved_item'] = $response->result_set;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*Cart count basis supplier*/\n\t\t\t$cart_return = $this->cart_details($company_id);\n\t\t\t$cart_product_list = $cart_return['cart_product'];\n\t\t\t$data['cart_product_count'] = count($cart_product_list);\n\n\t\t\t/*Cart product details*/\n\t\t\t$cart_product_detail = $this->cart_details_product($company_id,$product_id);\n\t\t\tif(!empty($cart_product_detail[0]->product))\n\t\t\t{\n\t\t\t\t$data['cart_product_detail'] = $cart_product_detail[0]->product[0];\n\t\t\t} else {\n\t\t\t\t$data['cart_product_detail'] = '';\n\t\t\t}\n\t\t}\n\n\t\t$this->template->set_data ($data);\n\t\t$this->template->load($this->folder.'product_detail',$data);\n\n\t}", "title": "" }, { "docid": "3594a1ce6ca75eed3dde5a62a226e146", "score": "0.6939331", "text": "public function productView(){\n \t\t$pid = $_REQUEST['productNo'];\n \t\t$product = $this->model->selectProduct($pid);\n\n\n \t\tif (!$product) {\t//such product does not exist\n \t\t\trequire_once $_SERVER[\"DOCUMENT_ROOT\"].\"/view/404.php\";\n \t\t\texit;\n \t\t}\n\n if ($product['p_quantity']>0){\n $instock = \"In Stock\";\n }else $instock =\"Sold Out\";\n\n \t\tif (!isset($_SESSION))\tsession_start();\n\n $navbar = $this->navbar();\n $sidebar = $this->sidebar();\n\n \t\trequire_once $_SERVER[\"DOCUMENT_ROOT\"].\"/view/header.php\";\n\t\t\trequire_once $_SERVER[\"DOCUMENT_ROOT\"].\"/view/product_detail.php\";\n\t\t\trequire_once $_SERVER[\"DOCUMENT_ROOT\"].\"/view/footer.php\";\n\t\t}", "title": "" }, { "docid": "bb397a49bd3a59260d7d74517df793f2", "score": "0.68797785", "text": "public function viewAction() {\n /**\n * Get the ID Value\n */\n $id = ( int ) Mage::app ()->getRequest ()->getParam ( 'id' );\n /**\n * Declaring the empty array to \"$productIds\"\n */\n $productIds = array ();\n $productIds [0] = $id;\n /**\n * Save the product ID into Session\n */\n Mage::getSingleton ( 'core/session' )->setProductIds ( $productIds );\n /**\n * Load the Layout\n */\n $this->loadLayout ();\n if (isset ( $id )) {\n /**\n * Getting product model\n */\n $model = Mage::getModel ( 'catalog/product' );\n /**\n * Load the Id to the 'catalog/product' Model\n */\n $_product = $model->load ( $id );\n /**\n * Property in disabled model\n */\n if ($_product->getStatus () != 1 || $_product->getPropertyapproved () != 1) {\n /**\n * Adding the Error Notification\n */\n Mage::getSingleton ( 'core/session' )->addError ( $this->__ ( 'Property not found' ) );\n $this->_redirectUrl ( Mage::getBaseUrl () );\n return;\n }\n /**\n * Check weather the Product Meta Tile is enabled\n * or otherwise set hte default Title\n */\n if ($_product->getMetaTitle ()) {\n /**\n * Get the layout for Block of 'head'\n */\n $this->getLayout ()->getBlock ( 'head' )->setTitle ( htmlspecialchars ( $_product->getMetaTitle () ) );\n } else {\n $this->getLayout ()->getBlock ( 'head' )->setTitle ( htmlspecialchars ( $_product->getName () ) );\n }\n /**\n * create the layout for Keywords\n */\n $this->getLayout ()->getBlock ( 'head' )->setKeywords ( htmlspecialchars ( $_product->getMetaKeyword () ) );\n /**\n * create the layout for description file.\n */\n $this->getLayout ()->getBlock ( 'head' )->setDescription ( htmlspecialchars ( $_product->getMetaDescription () ) );\n }\n /**\n * Rendering the Layout\n */\n $this->renderLayout ();\n }", "title": "" }, { "docid": "4fed18f731a4ffb8a9112557f0cb3a13", "score": "0.68769324", "text": "function productDetails(){\r\n\tglobal $conn ;\r\n\t\r\n\tif(isset($_GET['pro_id'])){\r\n\t\t$product_id=$_GET['pro_id'];\r\n\t\t\t$sql=\"Select * from products where product_id='$product_id'\";\r\n\t\t\t\t\t\t\t$result=mysqli_query($conn, $sql);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile($res=mysqli_fetch_array($result))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$product_id=$res['product_id'];\r\n\t\t\t\t\t\t\t\t$cat_id=$res['cat_id'];\r\n\t\t\t\t\t\t\t\t$brand_id=$res['brand_id'];\r\n\t\t\t\t\t\t\t\t$product_title=$res['product_title'];\r\n\t\t\t\t\t\t\t\t$product_desc=$res['product_desc'];\r\n\t\t\t\t\t\t\t\t$product_price=$res['product_price'];\r\n\t\t\t\t\t\t\t\t$product_img=$res['product_img'];\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\techo \"<div id='single_product'>\r\n\t\t\t\t\t\t\t\t\t\t<h3>$product_title</h3>\r\n\t\t\t\t\t\t\t\t\t\t<img src='admin_area/product_imgs/$product_img' widht='180' height='180'/>\r\n\t\t\t\t\t\t\t\t\t\t</br>\r\n\t\t\t\t\t\t\t\t\t\t<p><b>Price:</b>&nbsp;$product_price</p>\r\n\t\t\t\t\t\t\t\t\t\t</br>\r\n\t\t\t\t\t\t\t\t\t\t<p>$product_desc</p>\r\n\t\t\t\t\t\t\t\t\t\t</br>\r\n\t\t\t\t\t\t\t\t\t\t<a href='index.php' style='float:left;'>Go Back</a>\r\n\t\t\t\t\t\t\t\t\t\t<a href='index.php?add_cart=$product_id'><button style='float:right;'>Add to Cart</button></a>\r\n\t\t\t\t\t\t\t\t\t</div>\";\r\n\t\t\t\t\t\t\t}\r\n\t}\r\n}", "title": "" }, { "docid": "6bd788339a7208cf27a9f9c279ce3387", "score": "0.68761617", "text": "function productDetail()\n\t{\n\t\t$this->lastViewedProducts($_GET['prodid']);\n\t\t$_SESSION['prodid']=$_GET['prodid'];\n\t\t$sql=\"SELECT quantity,msrp FROM msrp_by_quantity_table WHERE product_id =\".(int)$_GET['prodid'];\n\t\t$pquery = new Bin_Query();\n\t\tif($pquery->executeQuery($sql))\n\t\t{\t\t\n\t\t\t$flag = $pquery->totrows;\n\t\t\t\n\t\t}\n\t\tif($flag==0)\n\t\t{\n\t\t\t\n\t\t\t$sql= \"SELECT * FROM product_inventory_table a \n\t\t\tINNER JOIN products_table b ON a.product_id = b.product_id\n\t\t\tWHERE b.product_id =\".(int)$_GET['prodid'];\n\t\t\n\t\t\t$query = new Bin_Query();\n\t\t\t$rating=$this->reviewRating();\n\t\t\t$reviewcount=$this->reviewCount();\n\t\t\t$count=$reviewcount[0]['review'];\n\t\t\t\n\t\t\tif($query->executeQuery($sql))\n\t\t\t{\t\t\n\t\t\t\treturn Display_DProductDetail::productDetail($query->records,$rating,$count);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn \"Products Not Available in Stock\";\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\t$sql=\"SELECT b.product_id,b.title,b.cse_enabled,b.price as oprice,b.msrp,c.msrp as\n\t\t\tprice,c.quantity,b.description,b.sku,b.tag,b.brand,b.weight,b.dimension,b.image,b.model,a.soh,b.meta_desc,b.meta_keywords \n\t\t\tFROM product_inventory_table a\n\t\t\tINNER JOIN products_table b ON a.product_id = b.product_id \n\t\t\tINNER JOIN msrp_by_quantity_table c ON b.product_id=c.product_id WHERE c.product_id =\".(int)$_GET['prodid'];\n\t\t\t$query = new Bin_Query();\n\t\t\t$rating=$this->reviewRating();\n\t\t\t$reviewcount=$this->reviewCount();\n\t\t\t\n\t\t\tif($query->executeQuery($sql))\n\t\t\t{\t\t\n\t\t\t\treturn Display_DProductDetail::productDetail($query->records,$rating,$reviewCount);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn \"Not Found\";\n\t\t\t}\n\t\t}\n\n\t\t\n\t}", "title": "" }, { "docid": "56ae319fb160bb74a243f056cd728e74", "score": "0.68463117", "text": "public function detail($product_id=\"\")\n\t{\n\t\n\t\tif(empty($product_id)){redirect(site_url(''),'refresh');}\n\t\t\n\t\t//$this->breadcrumbs->push('Live Auction', '/'); //second parameter is link\n\t\t\n\t\t//store current date in local variable.\n\t\t$this->current_date = $this->general->get_local_time('time');\n\t\t$this->data['current_date'] = $this->current_date;\n\t\t$this->data['page_for'] = 'bid';\n\t\t$this->data['user_id'] = $this->session->userdata(SESSION.'user_id');\n\n\t\t//var_dump($this->data['paypal_verified']); exit;\n\t\t\n\t\t$this->data['product'] = $this->home_module->get_auction_product_details($host_id);\n\t\t//echo \"<pre>\"; print_r($this->data['product']); echo \"</pre>\";\n\t\t\n\t\t//redirect to home page if no data found\n\t\tif(!$this->data['product'])\t{ redirect(site_url(''),'refresh');\t}\n\t\t\n\t\t//now get additional fields in product \n\t\t$this->data['custom_fields'] = $this->home_module->get_custom_fields_values_by_product_id($this->data['product']->product_id);\n\t\t\n\t \t$this->page_title = WEBSITE_NAME;\n\t\t$this->data['meta_keys'] = WEBSITE_NAME;\n\t\t$this->data['meta_desc'] = WEBSITE_NAME;\n\t\t\n\t\t$this->template\n\t\t\t->set_layout('general')\n\t\t\t->enable_parser(FALSE)\n\t\t\t->title($this->page_title)\t\n\t\t\t->build('v_auction_detail', $this->data);\t\n\t}", "title": "" }, { "docid": "aa15ea87aef1e4ee2f656dd3fc6264f0", "score": "0.68431985", "text": "public function show(){\n\t // without an id we just redirect to the error page as we need the post id to find it in the database\n if (!isset($_GET['id']))\n return call('pages', 'error');\n\n // we use the given id to get the right product\n $product = Product::find($_GET['id']);\n\t\t require_once('views/products/show.php');\n\t }", "title": "" }, { "docid": "24a485de6811945e0ca0408d6a5bdc00", "score": "0.67926884", "text": "public function products(){\n\t\t$this->verify();\n\t\t$data['title']=$this->cafeteria_model->fetch_cafeteria()->NAME.\" :: Products\";\n\t\t$this->load->view('administrator/parts/head',$data);\n\t\t$this->load->view('administrator/products/products',$data);\n\t\t$this->load->view('administrator/parts/bottom',$data);\n\t}", "title": "" }, { "docid": "fb6132e59f6874e80c83f6ebfdad1490", "score": "0.6783527", "text": "public function actionDetail()\r\n {\n #Region Init Param\r\n $arr_errorEnt = array();\r\n $s_errorMsg = null;\r\n $o_product = null;\n $arr_category = null;\n $s_urlCategory = null;\n $s_urlCateParent = null;\n #EndRegion Init Param\n\n #Region Check Request Param\n $b_result = self::checkDetailParam();\n if( ErrorEntity::isErrorEntity($b_result) )\r\n {\r\n array_push($arr_errorEnt, $b_result);\r\n $o_product = null;\r\n }\n #EndRegion Check Request Param\n\n #Region Set Category Entity to array\n $arr_category = self::getCategoryProduct();\n if( ErrorEntity::isErrorEntity($arr_category) )\n {\n array_push($arr_errorEnt, $arr_category);\n $arr_category = null;\n }\n #EndRegion\n\n #Region Set detail of product\n if ( count($arr_errorEnt) == 0 )\n {\n $i_key = $_REQUEST[\"key\"];\n $o_product = Product::model()->findByPk($i_key);\n }\n\n if ( is_null($o_product) )\r\n {\r\n $o_product = null;\r\n $o_error = new ErrorEntity();\r\n $o_error->errCode = \"ERR_5\";\r\n $o_error->param = null;\r\n array_push($arr_errorEnt, $o_error);\r\n }\n else \n {\n $s_urlCategory = Yii::app()->createAbsoluteUrl( \"product/search\",\r\n array ( \"urlMapping\" => $o_product->category0->url_mapping,\r\n \"category\" => $o_product->category0->identification,\r\n \"page\" => 1\r\n )\r\n );\r\n\r\n if ($o_product->category0->parent > 0) \n {\n $o_categoryParent = Category::model()->findByPk($o_product->category0->parent);\n\n if ( $o_categoryParent instanceof Category )\n {\n $o_product->category0->parent_name = $o_categoryParent->name;\r\n $s_urlCateParent = Yii::app()->createAbsoluteUrl( \"product/search\",\r\n array ( \"urlMapping\" => $o_categoryParent->url_mapping,\r\n \"category\" => $o_categoryParent->identification,\r\n \"page\" => 1\r\n )\r\n );\n }\n }//End if\n }//End else\n #EndRegion\n\n //Set error Message if exist\r\n if ( count($arr_errorEnt) > 0 )\r\n {\r\n $s_errorMsg = self::getErrorMessage($arr_errorEnt);\r\n }\n\n //Set render to template\n $this->render(\r\n \"detail\",\r\n array(\n \"s_urlCategory\" => $s_urlCategory,\n \"s_urlCateParent\" => $s_urlCateParent,\n \"arr_category\" => $arr_category,\r\n \"o_product\" => $o_product,\r\n \"s_errorMsg\" => $s_errorMsg\r\n )\r\n );//End render\n }", "title": "" }, { "docid": "b282e62411ed80f6e5526153e53bc54c", "score": "0.67727786", "text": "public function storeProductDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $productsModel = Admin_Model_Products::getInstance();\n $storeModel = Admin_Model_StoreDetails::getInstance();\n $storedetails = $storeModel->getAllStore();\n\n if ($storedetails) {\n $this->view->storelist = $storedetails;\n }\n $result = $productsModel->getStoreProductsdetails();\n if ($result) {\n $this->view->productdetails = $result;\n } else {\n echo 'controller error occured';\n }\n\n if ($this->_request->isPost()) {\n $storeId = $this->getRequest()->getPost('storename');\n if ($storeId) {\n $res = $productsModel->getProductsByStoreId($storeId);\n if ($res) {\n $this->view->productsbyhotels = $res;\n } else {\n $this->view->productdetails = $result;\n }\n } else {\n $this->view->productdetails = $result;\n }\n }\n }", "title": "" }, { "docid": "f00c8c7e02a37927eed8a449dbd24557", "score": "0.6761005", "text": "function showProducts()\n\t{\n\t\t$sql= \"SELECT product_id,title,thumb_image FROM products_table ORDER BY title ASC\";\n\t\t$query = new Bin_Query();\n\t\tif($query->executeQuery($sql))\n\t\t{\t\t\n\t\t\treturn Display_DProductDetail::showProducts($query->records);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \"No Products Found\";\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "33e59f786340a289aa1f3444b9403b0b", "score": "0.6735763", "text": "function getDetailAssociatedProducts($module, $focus) {\n\tglobal $log, $adb, $theme, $app_strings;\n\t$log->debug('> getDetailAssociatedProducts ' . $module . ',' . get_class($focus));\n\n\tif (strpos(GlobalVariable::getVariable('Inventory_DoNotUseLines', '', $module), $module)!==false) {\n\t\treturn '';\n\t}\n\tif (vtlib_isModuleActive('Products')) {\n\t\t$hide_stock = 'no';\n\t} else {\n\t\t$hide_stock = 'yes';\n\t}\n\tif ($module != 'PurchaseOrder') {\n\t\tif (GlobalVariable::getVariable('Application_B2B', '1')=='1') {\n\t\t\t$acvid = (isset($focus->column_fields['account_id']) ? $focus->column_fields['account_id'] : (isset($focus->column_fields['accid']) ? $focus->column_fields['accid'] : 0));\n\t\t} else {\n\t\t\t$acvid = (isset($focus->column_fields['contact_id']) ? $focus->column_fields['contact_id'] : (isset($focus->column_fields['ctoid']) ? $focus->column_fields['ctoid'] : 0));\n\t\t}\n\t} else {\n\t\t$acvid = $focus->column_fields['vendor_id'];\n\t}\n\n\t$cbMap = cbMap::getMapByName($module.'InventoryDetails', 'MasterDetailLayout');\n\t$MDMapFound = ($cbMap!=null && isPermitted('InventoryDetails', 'index')=='yes');\n\tif ($MDMapFound) {\n\t\t$cbMapFields = $cbMap->MasterDetailLayout();\n\t}\n\n\t//Get the taxtype of this entity\n\t$taxtype = getInventoryTaxType($module, $focus->id);\n\t$currencytype = getInventoryCurrencyInfo($module, $focus->id);\n\n\t$output = '';\n\t//Header Rows\n\t$output .= '\n\t<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"5\" cellspacing=\"0\" class=\"crmTable detailview_inventory_table\" id=\"proTab\">\n\t<tr valign=\"top\" class=\"detailview_inventory_header\">\n\t\t<td colspan=\"2\" class=\"dvInnerHeader\"><b>' . $app_strings['LBL_ITEM_DETAILS'] . '</b></td>\n\t\t<td class=\"dvInnerHeader\" align=\"center\" colspan=\"2\"><b>' .\n\t\t\t$app_strings['LBL_CURRENCY'] . ' : </b>' . getTranslatedCurrencyString($currencytype['currency_name']) . ' (' . $currencytype['currency_symbol'] . ')\n\t\t</td>\n\t\t<td class=\"dvInnerHeader\" align=\"center\" colspan=\"2\"><b>' .\n\t\t\t$app_strings['LBL_TAX_MODE'] . ' : </b>' . $app_strings[$taxtype] . '\n\t\t</td>\n\t</tr>\n\t<tr valign=\"top\" class=\"detailview_inventory_subheader\">\n\t\t<td width=40% class=\"lvtCol\"><font color=\"red\">*</font>\n\t\t\t<b>' . $app_strings['LBL_ITEM_NAME'] . '</b>\n\t\t</td>';\n\n\t//Additional information column\n\t$output .= '<td width=20% class=\"lvtCol\"><b>' . $app_strings['LBL_INFORMATION'] . '</b></td>';\n\n\t$price_label = $_REQUEST['module'] == 'PurchaseOrder' ? $app_strings['LBL_PURCHASE_PRICE'] : $app_strings['LBL_LIST_PRICE'];\n\t$output .= '\n\t\t<td width=10% class=\"lvtCol\"><b>' . $app_strings['LBL_QTY'] . '</b></td>\n\t\t<td width=10% class=\"lvtCol\" align=\"right\"><b>' . $price_label . '</b></td>\n\t\t<td width=10% nowrap class=\"lvtCol\" align=\"right\"><b>' . $app_strings['LBL_TOTAL'] . '</b></td>\n\t\t<td width=10% valign=\"top\" class=\"lvtCol\" align=\"right\"><b>' . $app_strings['LBL_NET_PRICE'] . '</b></td>\n\t</tr>';\n\n\tif (in_array($module, getInventoryModules())) {\n\t\t$query = \"select case when vtiger_products.productid != '' then vtiger_products.productname else vtiger_service.servicename end as productname,\" .\n\t\t\t\" case when vtiger_products.productid != '' then 'Products' else 'Services' end as entitytype,\" .\n\t\t\t\" case when vtiger_products.productid != '' then vtiger_products.unit_price else vtiger_service.unit_price end as unit_price,\" .\n\t\t\t\" case when vtiger_products.productid != '' then vtiger_products.qtyinstock else 'NA' end as qtyinstock, vtiger_inventoryproductrel.* \" .\n\t\t\t\" from vtiger_inventoryproductrel\" .\n\t\t\t\" left join vtiger_products on vtiger_products.productid=vtiger_inventoryproductrel.productid \" .\n\t\t\t\" left join vtiger_service on vtiger_service.serviceid=vtiger_inventoryproductrel.productid \" .\n\t\t\t\" where id=? ORDER BY sequence_no\";\n\t}\n\n\t$result = $adb->pquery($query, array($focus->id));\n\t$num_rows = $adb->num_rows($result);\n\t$netTotal = '0.00';\n\tfor ($i = 1; $i <= $num_rows; $i++) {\n\t\t$sub_prod_query = $adb->pquery('SELECT productid from vtiger_inventorysubproductrel WHERE id=? AND sequence_no=?', array($focus->id, $i));\n\t\t$subprodname_str = '';\n\t\tif ($adb->num_rows($sub_prod_query) > 0) {\n\t\t\tfor ($j = 0; $j < $adb->num_rows($sub_prod_query); $j++) {\n\t\t\t\t$sprod_id = $adb->query_result($sub_prod_query, $j, 'productid');\n\t\t\t\t$sprod_name = getProductName($sprod_id);\n\t\t\t\t$str_sep = '';\n\t\t\t\tif ($j > 0) {\n\t\t\t\t\t$str_sep = ':';\n\t\t\t\t}\n\t\t\t\t$subprodname_str .= $str_sep . ' - ' . $sprod_name;\n\t\t\t}\n\t\t}\n\t\t$subprodname_str = str_replace(':', '<br>', $subprodname_str);\n\n\t\t$productid = $adb->query_result($result, $i - 1, 'productid');\n\t\t$entitytype = $adb->query_result($result, $i - 1, 'entitytype');\n\t\t$productname = $adb->query_result($result, $i - 1, 'productname');\n\t\t$productname = '<a href=\"index.php?action=DetailView&record='.$productid.'&module='.$entitytype.'\">'.$productname.'</a>';\n\t\t$productname.= \"<span type='vtlib_metainfo' vtrecordid='{$productid}' vtfieldname='\".($entitytype=='Products' ? 'productname' : 'servicename').\"' vtmodule='$entitytype' style='display:none;'></span>\";\n\t\tif ($subprodname_str != '') {\n\t\t\t$productname .= \"<br/><span style='color:#C0C0C0;font-style:italic;'>\" . $subprodname_str . \"</span>\";\n\t\t}\n\t\t$comment = $adb->query_result($result, $i - 1, 'comment');\n\t\t$qtyinstock = $adb->query_result($result, $i - 1, 'qtyinstock');\n\t\t$qtyinstockshow = CurrencyField::convertToUserFormat($qtyinstock, null, true);\n\t\t$qty = $adb->query_result($result, $i - 1, 'quantity');\n\t\t$qtyshow = CurrencyField::convertToUserFormat($qty, null, true);\n\t\t$listprice = $adb->query_result($result, $i - 1, 'listprice');\n\t\t$total = $qty * $listprice;\n\n\t\t//Product wise Discount calculation - starts\n\t\t$discount_percent = $adb->query_result($result, $i - 1, 'discount_percent');\n\t\t$discount_amount = $adb->query_result($result, $i - 1, 'discount_amount');\n\t\t$totalAfterDiscount = $total;\n\n\t\t$productDiscount = '0.00';\n\t\tif ($discount_percent != 'NULL' && $discount_percent != '') {\n\t\t\t$productDiscount = $total * $discount_percent / 100;\n\t\t\t$totalAfterDiscount = $total - $productDiscount;\n\t\t\t//if discount is percent then show the percentage\n\t\t\t$discount_info_message = \"$discount_percent % \" . $app_strings['LBL_LIST_OF'] . ' '.\n\t\t\t\t\t\t\t\t\t\tCurrencyField::convertToUserFormat($total, null, true).\" = \".\n\t\t\t\t\t\t\t\t\t\tCurrencyField::convertToUserFormat($productDiscount, null, true);\n\t\t} elseif ($discount_amount != 'NULL' && $discount_amount != '') {\n\t\t\t$productDiscount = $discount_amount;\n\t\t\t$totalAfterDiscount = $total - $productDiscount;\n\t\t\t$discount_info_message = $app_strings['LBL_DIRECT_AMOUNT_DISCOUNT'] . \" = \". CurrencyField::convertToUserFormat($productDiscount, null, true);\n\t\t} else {\n\t\t\t$discount_info_message = $app_strings['LBL_NO_DISCOUNT_FOR_THIS_LINE_ITEM'];\n\t\t}\n\t\t//Product wise Discount calculation - ends\n\n\t\t$netprice = $totalAfterDiscount;\n\t\t//Calculate the individual tax if taxtype is individual\n\t\tif ($taxtype == 'individual') {\n\t\t\t$taxtotal = '0.00';\n\t\t\t$tax_info_message = $app_strings['LBL_TOTAL_AFTER_DISCOUNT'] . \" = \".CurrencyField::convertToUserFormat($totalAfterDiscount, null, true).\" \\\\n\";\n\t\t\tforeach (getTaxDetailsForProduct($productid, 'all', $acvid) as $taxItem) {\n\t\t\t\t$tax_name = $taxItem['taxname'];\n\t\t\t\t$tax_label = $taxItem['taxlabel'];\n\t\t\t\t$tax_value = getInventoryProductTaxValue($focus->id, $productid, $tax_name);\n\t\t\t\t$individual_taxamount = $totalAfterDiscount * $tax_value / 100;\n\t\t\t\t$taxtotal = $taxtotal + $individual_taxamount;\n\t\t\t\t$tax_info_message .= \"$tax_label : $tax_value % = \".CurrencyField::convertToUserFormat($individual_taxamount, null, true).\" \\\\n\";\n\t\t\t}\n\t\t\t$tax_info_message .= \"\\\\n \" . $app_strings['LBL_TOTAL_TAX_AMOUNT'] . \" = \". CurrencyField::convertToUserFormat($taxtotal, null, true);\n\t\t\t$netprice = $netprice + $taxtotal;\n\t\t}\n\n\t\t$sc_image_tag = '';\n\t\tif ($module == 'Invoice') {\n\t\t\tswitch ($entitytype) {\n\t\t\t\tcase 'Services':\n\t\t\t\t\tif (vtlib_isModuleActive('ServiceContracts')) {\n\t\t\t\t\t\t$sc_image_tag = '<a href=\"index.php?module=ServiceContracts&action=EditView&service_id=' . $productid . '&sc_related_to='\n\t\t\t\t\t\t\t. $focus->column_fields['account_id'] . '&start_date=' . DateTimeField::convertToUserFormat($focus->column_fields['invoicedate'])\n\t\t\t\t\t\t\t. '&return_module=' . $module . '&return_id=' . $focus->id . '\"><img border=\"0\" src=\"' . vtiger_imageurl('handshake.gif', $theme)\n\t\t\t\t\t\t\t. '\" title=\"' . getTranslatedString('LBL_ADD_NEW', $module).\" \".getTranslatedString('ServiceContracts', 'ServiceContracts')\n\t\t\t\t\t\t\t. '\" style=\"cursor: pointer;\" align=\"absmiddle\" /></a>';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'Products':\n\t\t\t\t\tif (vtlib_isModuleActive('Assets')) {\n\t\t\t\t\t\t$sc_image_tag = '<a onclick=\"return window.open(\\'index.php?module=Assets&return_module=Invoice&action=Popup&popuptype=detailview&select=enable'\n\t\t\t\t\t\t\t. '&form=EditView&form_submit=false&return_action=DetailView&productid='.$productid.'&invoiceid='.$focus->id.'&return_id=' . $focus->id\n\t\t\t\t\t\t\t. '&recordid='.$focus->id.'\\', \\'test\\', cbPopupWindowSettings)\"'\n\t\t\t\t\t\t\t. ' onmouseout=\"vtlib_listview.trigger(\\'invoiceasset.onmouseout\\', this)\" onmouseover=\"vtlib_listview.trigger(\\'cell.onmouseover\\', this)\">'\n\t\t\t\t\t\t\t. '<img border=\"0\" src=\"' . vtiger_imageurl('barcode.png', $theme) . '\" title=\"' . getTranslatedString('LBL_ADD_NEW', $module)\n\t\t\t\t\t\t\t. ' '.getTranslatedString('Assets', 'Assets'). '\" style=\"cursor: pointer;\" align=\"absmiddle\" /><span style=\"display:none;\" '\n\t\t\t\t\t\t\t. 'vtmodule=\"Assets\" vtfieldname=\"invoice_product\" vtrecordid=\"'.$focus->id.'::'.$productid.'::'.$i.'\" type=\"vtlib_metainfo\"></span></a>';\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sc_image_tag = '';\n\t\t\t}\n\t\t}\n\n\t\t//For Product Name\n\t\t$output .= '\n\t\t\t<tr valign=\"top\" class=\"detailview_inventory_row\">\n\t\t\t\t<td class=\"crmTableRow small lineOnTop detailview_inventory_namecell\" '\n\t\t\t\t\t.'onmouseover=\"vtlib_listview.trigger(\\'cell.onmouseover\\', this);\" onmouseout=\"vtlib_listview.trigger(\\'cell.onmouseout\\', this);\">'\n\t\t\t\t\t. $productname . '&nbsp;' . $sc_image_tag . '<br>' . $comment\n\t\t\t\t\t. '</td>';\n\t\t//Upto this added to display the Product name and comment\n\n\t\t$output .= '<td class=\"crmTableRow small lineOnTop detailview_inventory_stockcell\">';\n\t\tif ($module != 'PurchaseOrder' && $hide_stock == 'no') {\n\t\t\t$output .= '<b>'.$app_strings['LBL_QTY_IN_STOCK'].':</b>&nbsp;'.$qtyinstockshow;\n\t\t}\n\t\tif ($MDMapFound) {\n\t\t\t$invdTabid = getTabid('InventoryDetails');\n\t\t\tforeach ($cbMapFields['detailview']['fields'] as $mdfield) {\n\t\t\t\tif ($mdfield['fieldinfo']['name']=='id') {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$output .= '<br>';\n\t\t\t\t$output .= '<b>'.$mdfield['fieldinfo']['label'].'</b>:&nbsp;';\n\t\t\t\t$crmEntityTable = CRMEntity::getcrmEntityTableAlias('InventoryDetails');\n\t\t\t\t$mdrs = $adb->pquery(\n\t\t\t\t\t'select '.$mdfield['fieldinfo']['name'].',vtiger_inventorydetails.inventorydetailsid from vtiger_inventorydetails\n\t\t\t\t\t\tinner join '.$crmEntityTable.' on vtiger_crmentity.crmid=vtiger_inventorydetails.inventorydetailsid\n\t\t\t\t\t\tinner join vtiger_inventorydetailscf on vtiger_inventorydetailscf.inventorydetailsid=vtiger_inventorydetails.inventorydetailsid\n\t\t\t\t\t\twhere vtiger_crmentity.deleted=0 and related_to=? and lineitem_id=?',\n\t\t\t\t\tarray($focus->id,$adb->query_result($result, $i - 1, 'lineitem_id'))\n\t\t\t\t);\n\t\t\t\tif ($mdrs) {\n\t\t\t\t\t$col_fields = array();\n\t\t\t\t\t$col_fields[$mdfield['fieldinfo']['name']] = $adb->query_result($mdrs, 0, $mdfield['fieldinfo']['name']);\n\t\t\t\t\t$col_fields['record_id'] = $adb->query_result($mdrs, 0, 'inventorydetailsid');\n\t\t\t\t\t$foutput = getDetailViewOutputHtml($mdfield['fieldinfo']['uitype'], $mdfield['fieldinfo']['name'], $mdfield['fieldinfo']['label'], $col_fields, 0, $invdTabid, $module);\n\t\t\t\t\tif ($foutput[2]==69) { // image\n\t\t\t\t\t\t$foutput = str_replace('style=\"max-width: 500px;\"', 'style=\"max-width: 100px;\"', $foutput[1]);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$foutput = $foutput[1];\n\t\t\t\t\t}\n\t\t\t\t\t$output .= $foutput;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$output .= '</td>';\n\t\t$output .= '<td class=\"crmTableRow small lineOnTop detailview_inventory_qtycell\">' . $qtyshow . '</td>';\n\t\t$output .= '\n\t\t\t<td class=\"crmTableRow small lineOnTop detailview_inventory_lpricecell\" align=\"right\">\n\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align=\"right\">' . CurrencyField::convertToUserFormat($listprice, null, true) . '</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align=\"right\">\n\t\t\t\t\t\t\t(-)&nbsp;<b><a href=\"javascript:;\" onclick=\"alert(\\'' . $discount_info_message . '\\'); \">' . $app_strings['LBL_DISCOUNT'] . ' : </a></b>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td align=\"right\" nowrap>' . $app_strings['LBL_TOTAL_AFTER_DISCOUNT'] . ' : </td>\n\t\t\t\t\t</tr>';\n\t\tif ($taxtype == 'individual') {\n\t\t\t$output .= '\n\t\t\t\t<tr>\n\t\t\t\t\t<td align=\"right\" nowrap>\n\t\t\t\t\t\t(+)&nbsp;<b><a href=\"javascript:;\" onclick=\"alert(\\'' . $tax_info_message . '\\');\">' . $app_strings['LBL_TAX'] . ' : </a></b>\n\t\t\t\t\t</td>\n\t\t\t\t</tr>';\n\t\t}\n\t\t$output .= '\n\t\t\t\t</table>\n\t\t\t</td>';\n\n\t\t$output .= '\n\t\t\t<td class=\"crmTableRow small lineOnTop detailview_inventory_totalscell\" align=\"right\">\n\t\t\t\t<table width=\"100%\" border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n\t\t\t\t\t<tr><td align=\"right\">' . CurrencyField::convertToUserFormat($total, null, true) . '</td></tr>\n\t\t\t\t\t<tr><td align=\"right\">' . CurrencyField::convertToUserFormat($productDiscount, null, true) . '</td></tr>\n\t\t\t\t\t<tr><td align=\"right\" nowrap>' . CurrencyField::convertToUserFormat($totalAfterDiscount, null, true) . '</td></tr>';\n\n\t\tif ($taxtype == 'individual') {\n\t\t\t$output .= '<tr><td align=\"right\" nowrap>' . CurrencyField::convertToUserFormat($taxtotal, null, true) . '</td></tr>';\n\t\t}\n\n\t\t$output .= '\n\t\t\t\t</table>\n\t\t\t</td>';\n\t\t$output .= '<td class=\"crmTableRow small lineOnTop detailview_inventory_npricecell\" valign=\"bottom\" align=\"right\">';\n\t\t$output .= CurrencyField::convertToUserFormat($netprice, null, true) . '</td>';\n\t\t$output .= '</tr>';\n\t\tlist($v1, $v2, $v3, $v4, $output) = cbEventHandler::do_filter('corebos.filter.inventory.itemrow.detail', array($module, $focus, $result, $i, $output));\n\t\t$netTotal = $netTotal + $netprice;\n\t}\n\n\t$output .= '</table>';\n\n\t//$netTotal should be equal to $focus->column_fields['hdnSubTotal']\n\t$netTotal = empty($focus->column_fields['hdnSubTotal']) ? $focus->column_fields['hdnsubtotal'] : $focus->column_fields['hdnSubTotal'];\n\n\t//Display the total, adjustment, S&H details\n\t$output .= '<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\" class=\"crmTable detailview_inventory_totals\">';\n\t$output .= '<tr id=\"detailview_inventory_subtotalrow\">';\n\t$output .= '<td width=\"88%\" class=\"crmTableRow small\" align=\"right\"><b>' . $app_strings['LBL_NET_TOTAL'] . '</td>';\n\t$output .= '<td width=\"12%\" class=\"crmTableRow small\" align=\"right\"><b>' . CurrencyField::convertToUserFormat($netTotal, null, true) . '</b></td>';\n\t$output .= '</tr>';\n\n\t//Decide discount\n\t$finalDiscount = '0.00';\n\t$final_discount_info = '0';\n\t$hdnDiscountPercent = empty($focus->column_fields['hdnDiscountPercent']) ? $focus->column_fields['hdndiscountpercent'] : $focus->column_fields['hdnDiscountPercent'];\n\t$hdnDiscountAmount = empty($focus->column_fields['hdnDiscountAmount']) ? $focus->column_fields['hdndiscountamount'] : $focus->column_fields['hdnDiscountAmount'];\n\tif ($hdnDiscountPercent != '0') {\n\t\t$finalDiscount = ($netTotal * $hdnDiscountPercent / 100);\n\t\t$final_discount_info = $hdnDiscountPercent . ' % ' . $app_strings['LBL_LIST_OF'] . ' '\n\t\t\t.CurrencyField::convertToUserFormat($netTotal, null, true) . ' = '. CurrencyField::convertToUserFormat($finalDiscount, null, true);\n\t} elseif ($hdnDiscountAmount != '0') {\n\t\t$finalDiscount = $hdnDiscountAmount;\n\t\t$final_discount_info = CurrencyField::convertToUserFormat($finalDiscount, null, true);\n\t}\n\n\t//Alert the Final Discount amount even it is zero\n\t$final_discount_info = $app_strings['LBL_FINAL_DISCOUNT_AMOUNT'] . \" = $final_discount_info\";\n\t$final_discount_info = 'onclick=\"alert(\\'' . $final_discount_info . '\\');\"';\n\n\t$output .= '<tr id=\"detailview_inventory_totaldiscrow\">';\n\t$output .= '<td align=\"right\" class=\"crmTableRow small lineOnTop\">';\n\t$output .= '(-)&nbsp;<b><a href=\"javascript:;\" ' . $final_discount_info . '>' . $app_strings['LBL_DISCOUNT'] . '</a></b></td>';\n\t$output .= '<td align=\"right\" class=\"crmTableRow small lineOnTop\">' . CurrencyField::convertToUserFormat($finalDiscount, null, true) . '</td>';\n\t$output .= '</tr>';\n\n\tif ($taxtype == 'group') {\n\t\t$taxtotal = '0.00';\n\t\t$final_totalAfterDiscount = $netTotal - $finalDiscount;\n\t\t$tax_info_message = $app_strings['LBL_TOTAL_AFTER_DISCOUNT'] . \" = \". CurrencyField::convertToUserFormat($final_totalAfterDiscount, null, true).\" \\\\n\";\n\t\t//First we should get all available taxes and then retrieve the corresponding tax values\n\t\t$ipr_cols = $adb->getColumnNames('vtiger_inventoryproductrel');\n\t\t//if taxtype is group then the tax should be same for all products in vtiger_inventoryproductrel table\n\t\tforeach (getAllTaxes('available', '', 'edit', $focus->id) as $taxItem) {\n\t\t\t$tax_name = $taxItem['taxname'];\n\t\t\t$tax_label = $taxItem['taxlabel'];\n\t\t\tif (in_array($tax_name, $ipr_cols)) {\n\t\t\t\t$tax_value = $adb->query_result($result, 0, $tax_name);\n\t\t\t} else {\n\t\t\t\t$tax_value = $taxItem['percentage'];\n\t\t\t}\n\t\t\tif ($tax_value == '' || $tax_value == 'NULL') {\n\t\t\t\t$tax_value = '0.00';\n\t\t\t}\n\n\t\t\t$taxamount = ($netTotal - $finalDiscount) * $tax_value / 100;\n\t\t\t$taxtotal = $taxtotal + $taxamount;\n\t\t\t$tax_info_message .= \"$tax_label : $tax_value % = \". CurrencyField::convertToUserFormat($taxamount, null, true) .\" \\\\n\";\n\t\t}\n\t\t$tax_info_message .= \"\\\\n \" . $app_strings['LBL_TOTAL_TAX_AMOUNT'] . \" = \". CurrencyField::convertToUserFormat($taxtotal, null, true);\n\n\t\t$output .= '<tr id=\"detailview_inventory_taxtotalrow\">';\n\t\t$output .= '<td align=\"right\" class=\"crmTableRow small\">';\n\t\t$output .= '(+)&nbsp;<b><a href=\"javascript:;\" onclick=\"alert(\\'' . $tax_info_message . '\\');\">' . $app_strings['LBL_TAX'] . '</a></b></td>';\n\t\t$output .= '<td align=\"right\" class=\"crmTableRow small\">' . CurrencyField::convertToUserFormat($taxtotal, null, true) . '</td>';\n\t\t$output .= '</tr>';\n\t}\n\n\t$hdnS_H_Amount = empty($focus->column_fields['hdnS_H_Amount']) ? $focus->column_fields['hdns_h_amount'] : $focus->column_fields['hdnS_H_Amount'];\n\t$shAmount = ($hdnS_H_Amount != '') ? $hdnS_H_Amount : '0.00';\n\tif (GlobalVariable::getVariable('Inventory_Show_ShippingHandlingCharges', 1, $module)) {\n\t\t$output .= '<tr id=\"detailview_inventory_shippingrow\">';\n\t\t$output .= '<td align=\"right\" class=\"crmTableRow small\">(+)&nbsp;<b>' . $app_strings['LBL_SHIPPING_AND_HANDLING_CHARGES'] . '</b></td>';\n\t\t$output .= '<td align=\"right\" class=\"crmTableRow small\">' . CurrencyField::convertToUserFormat($shAmount, null, true) . '</td>';\n\t\t$output .= '</tr>';\n\t}\n\n\t//calculate S&H tax\n\t$shtaxtotal = '0.00';\n\t//First we should get all available taxes and then retrieve the corresponding tax values\n\t//if taxtype is group then the tax should be same for all products in vtiger_inventoryproductrel table\n\t$shtax_info_message = $app_strings['LBL_SHIPPING_AND_HANDLING_CHARGE'] . \" = \". CurrencyField::convertToUserFormat($shAmount, null, true) .\"\\\\n\";\n\t$shtaxexist = false;\n\tforeach (getAllTaxes('available', 'sh', 'edit', $focus->id) as $taxItem) {\n\t\t$shtaxexist = true;\n\t\t$shtax_name = $taxItem['taxname'];\n\t\t$shtax_label = $taxItem['taxlabel'];\n\t\t$shtax_percent = getInventorySHTaxPercent($focus->id, $shtax_name);\n\t\t$shtaxamount = $shAmount * $shtax_percent / 100;\n\t\t$shtaxtotal = $shtaxtotal + $shtaxamount;\n\t\t$shtax_info_message .= \"$shtax_label : $shtax_percent % = \". CurrencyField::convertToUserFormat($shtaxamount, null, true) .\" \\\\n\";\n\t}\n\t$shtax_info_message .= \"\\\\n \" . $app_strings['LBL_TOTAL_TAX_AMOUNT'] . \" = \". CurrencyField::convertToUserFormat($shtaxtotal, null, true);\n\n\tif ($shtaxexist) {\n\t\t$output .= '<tr id=\"detailview_inventory_shiptaxrow\">';\n\t\t$output .= '<td align=\"right\" class=\"crmTableRow small\">(+)&nbsp;<b><a href=\"javascript:;\" onclick=\"alert(\\'' . $shtax_info_message . '\\')\">';\n\t\t$output .= $app_strings['LBL_TAX_FOR_SHIPPING_AND_HANDLING'] . '</a></b></td>';\n\t\t$output .= '<td align=\"right\" class=\"crmTableRow small\">' . CurrencyField::convertToUserFormat($shtaxtotal, null, true) . '</td>';\n\t\t$output .= '</tr>';\n\t}\n\n\t$txtAdjustment = empty($focus->column_fields['txtAdjustment']) ? $focus->column_fields['txtadjustment'] : $focus->column_fields['txtAdjustment'];\n\t$adjustment = ($txtAdjustment != '') ? $txtAdjustment : '0.00';\n\t$output .= '<tr id=\"detailview_inventory_adjustrow\">';\n\t$output .= '<td align=\"right\" class=\"crmTableRow small\">&nbsp;<b>' . $app_strings['LBL_ADJUSTMENT'] . '</b></td>';\n\t$output .= '<td align=\"right\" class=\"crmTableRow small\">' . CurrencyField::convertToUserFormat($adjustment, null, true) . '</td>';\n\t$output .= '</tr>';\n\n\t$hdnGrandTotal = empty($focus->column_fields['hdnGrandTotal']) ? $focus->column_fields['hdngrandtotal'] : $focus->column_fields['hdnGrandTotal'];\n\t$grandTotal = ($hdnGrandTotal != '') ? $hdnGrandTotal : '0.00';\n\t$output .= '<tr id=\"detailview_inventory_grandtotrow\">';\n\t$output .= '<td align=\"right\" class=\"crmTableRow small lineOnTop\"><b>' . $app_strings['LBL_GRAND_TOTAL'] . '</b></td>';\n\t$output .= '<td align=\"right\" class=\"crmTableRow small lineOnTop\" data-qagrandtotal=\"'.$grandTotal.'\">'.CurrencyField::convertToUserFormat($grandTotal, null, true).'</td>';\n\t$output .= '</tr>';\n\t$output .= '</table>';\n\n\t$log->debug('< getDetailAssociatedProducts');\n\treturn $output;\n}", "title": "" }, { "docid": "67e5e3605bd71171c32009591df33c19", "score": "0.6686879", "text": "public function viewAction()\r\n {\r\n \t/* @var $hlp Amasty_Xlanding_Helper_Data */\r\n \t$hlp = Mage::helper('amlanding');\r\n \t\r\n $pageId = $this->getRequest()\r\n ->getParam('page_id', null);\r\n\t\t\r\n /* @var $page Amasty_Xlanding_Model_Page */ \r\n $page = Mage::getModel('amlanding/page')->load($pageId);\r\n if (!$page) {\r\n \treturn;\r\n }\r\n \r\n /*\r\n * Store page for future to use in helper\r\n */\r\n Mage::register('amlanding_page', $page);\r\n \r\n $page->applyPageRules();\r\n \r\n \r\n\r\n $opt = $page->getAttributesAsArray();\r\n Mage::register('amlanding_attributes', $opt);\r\n \r\n $this->loadLayout();\r\n \r\n $this->enableLayeredNavigation();\r\n \r\n /*\r\n * Apply custom template and layout update if set\r\n */\r\n\t\t$root = $this->getLayout()->getBlock('root');\r\n\t\tif ($root) {\r\n\t\t\t$pageLayout = $page->getRootTemplate();\r\n\t\t\tif ($pageLayout != 'empty') {\r\n\t $this->getLayout()->helper('page/layout')->applyTemplate($pageLayout);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$layoutUpdate = $page->getLayoutUpdateXml();\r\n\t\t\tif ($layoutUpdate != '') {\r\n\t\t\t\t$this->loadLayoutUpdates();\r\n \t\t$this->getLayout()->getUpdate()->addUpdate($layoutUpdate);\r\n \t\t$this->generateLayoutXml()->generateLayoutBlocks();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n \t/*\r\n * Set Meta Information If Set\r\n */\r\n\t\t$head = $this->getLayout()->getBlock('head');\r\n\t\tif ($page->getMetaTitle() != '') {\r\n\t\t\t$head->setTitle($this->trim($page->getMetaTitle()));\r\n\t\t}\r\n\t\tif ($page->getMetaKeywords() != '') { \r\n\t\t\t$head->setDescription($this->trim($page->getMetaKeywords()));\r\n\t\t}\r\n\t\tif ($page->getMetaDescription() != '') {\r\n $head->setKeywords($this->trim($page->getMetaDescription()));\r\n\t\t}\r\n\r\n\t\t/*\r\n\t\t * Set Custom Column Count\r\n\t\t */\r\n\t\t$list = $this->getLayout()->getBlock('product_list');\r\n\t\tif ($list) {\r\n\t\t\t$list->setColumnCount($page->getColumnsCount() > 0 ? $page->getColumnsCount() : $hlp->getColumnCount());\r\n\t\t}\r\n\r\n\t\tif ($topBlock = $page->getLayoutStaticTop()) {\r\n\t\t\t$this->getLayout()->getBlock('content')->insert($this->getLayout()\r\n ->createBlock('cms/block')\r\n ->setBlockId($topBlock));\t\r\n\t\t}\r\n\t\t\r\n \tif ($bottomBlock = $page->getLayoutStaticBottom()) {\r\n\t\t\t$this->getLayout()->getBlock('content')->append($this->getLayout()\r\n ->createBlock('cms/block')\r\n ->setBlockId($bottomBlock));\t\r\n\t\t}\r\n\t\t\r\n\t\t$this->includeNavigation($page);\r\n\t\t$this->renderLayout();\r\n }", "title": "" }, { "docid": "bbc43d01d122823259c7f52fe72bce27", "score": "0.6679558", "text": "public function displayProducts()\r\n {\r\n }", "title": "" }, { "docid": "18cdd035e2d84c719486cd3b38e55044", "score": "0.66711813", "text": "public function show(ProductDetail $productDetail)\n {\n //\n }", "title": "" }, { "docid": "e0c78e0fddd18b12864066e7dab1ceaa", "score": "0.66708547", "text": "public function showProductDetail()\n {\n // this is the way if you want to call function inside the parent class\n parent::showProductDetail();\n\n // this line is behavior of Electronic class\n echo \"Detail Info \\nElectronic name : \" . $this->name. \" Electronic price : $this->price\". PHP_EOL;\n }", "title": "" }, { "docid": "b6605de3e0af50e00cc45864735b05f9", "score": "0.6656078", "text": "function index_product_details($data) {\n $register = $this->xml_select->IndexPage->selectproducthome;\n $result = $this->mysqli->query($register);\n if ($result->num_rows) {\n while ($row = $result->fetch_assoc()) {\n $products[] = $row;\n }\n }\n return $products;\n }", "title": "" }, { "docid": "9c13c11e0798143604c1cb7548099cea", "score": "0.6615284", "text": "function __displayStoreItemsProduct(&$template, $StoreID, $proID=0, $isEdit=false, $hasFeatured=false,$ispage=0)\n\t{\n\t\tglobal $templateSet;\n\t\t$arrResult\t=\tnull;\n\t\t$limit \t\t=\t$templateSet[$template['TemplateName']]['product'];\n\t\t$colnum\t\t=\t1;\n\n\t\t/**\n\t\t * modified by jackyleft join auction table to get auction product information\n\t\t * 080731 Jessee: add state info, left join bu_detail and state\n\t\t * 081231 Jessee: left join images for new image display\n\t\t */\n\t\t$strcategory = \"\";\n\t\tif(isset($_REQUEST['STRORE_category'])&&$_REQUEST['STRORE_category']!=\"\"){\n\t\t\t$strcategory = \" and t2.fid = {$_REQUEST['STRORE_category']} \";\n\t\t}\n\t\tif(isset($_REQUEST['sub_category'])&&$_REQUEST['sub_category']!=\"\"){\n\t\t\t$strcategory .= \" and t2.id = {$_REQUEST['sub_category']} \";\n\t\t}\n\t\tif(isset($_REQUEST['custom_subcat'])&&$_REQUEST['custom_subcat']!=\"\"){\n\t\t\t$strcategory = \" and t1.custom_subcat = '{$_REQUEST['custom_subcat']}' \";\n\t\t}\n\n\t\t$timelefts = isset($_REQUEST['timelefts'])?$_REQUEST['timelefts']:\"0\";\n\t\t$buytypeState = isset($_REQUEST['buytypeState'])&&$_REQUEST['buytypeState']?$_REQUEST['buytypeState']:\"'yes','no'\";\n\t\tif(get_magic_quotes_gpc()){\t$buytypeState = stripslashes($buytypeState);}\n\n\t\t$query =\"Select t1.*,t2.name as catName, t3.name as catNameF, t3.id as fid, t4.initial_price, \".\n\t\t\" t4.end_date, t4.end_time, t4.end_stamp,t4.end_stamp as end_stamp2, t4.cur_price, t4.bid, t4.winner_id, t4.status,t4.reserve_price,t4.cur_price, t6.description as state, t6.stateName,t5.bu_suburb, \".\n\t\t\" t5.bu_name,t5.bu_urlstring, t7.smallPicture, t7.picture, t4.reserve_price \";\n\n\t\t$wheresql = \" from \".$this->table.\"product as t1 \".\n\t\t\" left join \".$this->table.\"product_category as t2 on t1.category=t2.id \".\n\t\t\" left join \".$this->table.\"product_category as t3 on t2.fid=t3.id \".\n\t\t\" left join \".$this->table.\"product_auction as t4 on t1.pid=t4.pid \".\n\t\t\" left join \".$this->table.\"bu_detail as t5 on t1.StoreID=t5.StoreID \".\n\t\t\" left join \".$this->table.\"state as t6 on t5.bu_state=t6.id \".\n\t\t\" left join \".$this->table.\"image as t7 on t1.StoreID=t7.StoreID and t1.pid=t7.pid and t7.attrib=0 and t7.sort=0 \".\n\t\t\" where t1.StoreID='$StoreID' and t1.deleted='' $strcategory \";\n\n\t\tif ($proID) {\n\t\t\t$wheresql .=\" and t1.pid='$proID' \";\n\t\t}else{\n\t\t\t$timenow = time();\n\t\t\t$wheresql .=\" AND t1.is_auction in($buytypeState) \\n\";\n\t\t\tif($buytypeState==\"'yes'\"){\n $tmp_time=$timelefts+$timenow;\n\t\t\t\t$wheresql .=\" AND ((t1.is_auction='yes' AND \".($timelefts>0?\" t4.end_stamp<=$tmp_time AND \":\"\").\" t4.end_stamp>$timenow AND t4.starttime_stamp <= $timenow ) OR t1.is_auction<>'yes') \";\n\t\t\t}else{\n\t\t\t\t$wheresql .=\" AND ((t1.is_auction='yes' AND t4.end_stamp>$timenow AND t4.starttime_stamp <= $timenow) OR t1.is_auction<>'yes') \";\n\t\t\t}\n\t\t}\n\n\t\tif ($hasFeatured) {\n\t\t\t$wheresql .= \" order by isfeatured desc, t1.datem desc,t1.item_name \";\n\t\t}else{\n\t\t\tif($ispage){\n\t\t\t\t$order = \" t3.name ASC, \";\n\t\t\t}else{\n\t\t\t\t$order = \"\";\n\t\t\t}\n\t\t\t$wheresql .= \" order by $order t1.datem desc,t1.item_name \";\n\t\t}\n\n\t\tif ($limit && $hasFeatured) {\n\t\t\t$wheresql .= \" limit 0,$limit\";\n\t\t}\n\n\t\tif($ispage){\n\t\t\t$cquery = \"SELECT COUNT(*) \\n\".$wheresql;\n\t\t\t$this->dbcon->execute_query($cquery);\n\t\t\t$total = $this->dbcon->fetch_records(true);\n\t\t\t$total = $total[0]['COUNT(*)'];\n\t\t\t$pageSize = 25;\n\t\t\t$clsPage = new Page($total, $pageSize);\n\t\t\t$wheresql .= $clsPage->get_limit();\n\t\t}\n\n\t\t$query = $query.$wheresql;\n\t\t$this -> dbcon -> execute_query($query);\n\t\t$arrTemp = $this -> dbcon -> fetch_records(true);\n\t\tif (is_array($arrTemp)) {\n\t\t\tforeach ($arrTemp as $key=>$val){\n\t\t\t\t$_tsql = \"select make,makeUser,model,modelUser from \".$this->table.\"product_automotive where pid='{$val['pid']}'\";\n\t\t\t\t$this -> dbcon -> execute_query($_tsql);\n\t\t\t\t$tmpary = $this -> dbcon -> fetch_records(true);\n\t\t\t\tif($tmpary[0]['make']=='-2'){\n\t\t\t\t\t$arrTemp[$key]['makeName']\t = $tmpary[0]['makeUser'];\n\t\t\t\t\tif($tmpary[0]['model']=='-2'){\n\t\t\t\t\t\t$arrTemp[$key]['modelName'] = $tmpary[0]['modelUser'];\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif($tmpary[0]['model']=='-2'){\n\t\t\t\t\t\t$arrTemp[$key]['modelName'] = $tmpary[0]['modelUser'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($colnum>1) {\n\t\t\t\t$i\t=\t0;\n\t\t\t\tforeach ($arrTemp as $temp)\n\t\t\t\t{\n\t\t\t\t\t$objUI\t=\tnew uploadImages();\n\t\t\t\t\t$temp['images']\t=\t$objUI -> getDisplayImage('store', $temp['StoreID'], $temp['pid']);\n\t\t\t\t\t$temp['simage']\t=\t$objUI -> getDefaultImage($temp['smallPicture'], true, 0, 0, 4);\n\t\t\t\t\t$temp['limage']\t=\t$objUI -> getDefaultImage($temp['smallPicture'], true, 0, 0, 15);\n\t\t\t\t\t$temp['bimage']\t=\t$objUI -> getDefaultImage($temp['picture'],false,0,0,9);\n\t\t\t\t\t$temp['images_count'] = $temp['images']['imagesCount'];\n\t\t\t\t\tunset($objUI);\n\n\t\t\t\t\t//add a url bu_name by jessee 080804\n\t\t\t\t\t$temp['url_bu_name'] = clean_url_name($temp['bu_urlstring']);\n\t\t\t\t\t//set price format by jessee 080325\n\t\t\t\t\t$temp['price'] = number_format($temp['price'],2,'.',',');\n\t\t\t\t\t$temp['end_stamp'] = $temp['end_stamp']-time()>0?$temp['end_stamp']-time():0;\n\t\t\t\t\t//set payments\n\t\t\t\t\tif (!empty($temp['payments'])) {\n\t\t\t\t\t\t$temp['payments'] = unserialize($temp['payments']);\n\t\t\t\t\t\tunset($arrTemp2);\n\t\t\t\t\t\t$k=0;\n\t\t\t\t\t\t$len = sizeof($temp['payments']);\n\t\t\t\t\t\tforeach ($temp['payments'] as $temp2){\n\t\t\t\t\t\t\t$arrTemp2[$temp2][0]\t=\ttrue;\n\t\t\t\t\t\t\t$k++;\n\t\t\t\t\t\t\tif ($k < $len) {\n\t\t\t\t\t\t\t\t$arrTemp2[$temp2][1]\t=\ttrue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//echo $arrTemp2[$temp2][1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$temp['payments'] = $arrTemp2;\n\t\t\t\t\t}\n\n\t\t\t\t\t$temp['description'] = strip_tags($temp['description']);\n\t\t\t\t\t$temp['description'] = str_replace('&nbsp;', ' ', $temp['description']);\n\n\t\t\t\t\t/*if (!empty($this -> lang['Delivery'][strval($temp['deliveryMethod'])]['text'])){\n\t\t\t\t\t\t$temp['deliveryMethod'] = $this -> lang['Delivery'][strval($temp['deliveryMethod'])]['text'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$temp['deliveryMethod'] = \"\";\n\t\t\t\t\t}*/\n\n\t\t\t\t\tif ($colnum >=3) {\n\t\t\t\t\t\tif ($i % 3 == 2) {\n\t\t\t\t\t\t\t$arrResult[2][]=$temp;\n\t\t\t\t\t\t}elseif ($i % 3 == 1){\n\t\t\t\t\t\t\t$arrResult[1][]=$temp;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$arrResult[0][]=$temp;\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$arrResult[]=$temp;\n\t\t\t\t\t}\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tforeach ($arrTemp as $temp)\n\t\t\t\t{\n\t\t\t\t\t//set default images\n\t\t\t\t\tif ($proID>0){\n\t\t\t\t\t\t$temp['image_name'] = $this -> imageDisplayWH($temp['picture'],2,241,241);\n\t\t\t\t\t}elseif ($template['TemplateName'] == 'tmp-n-e'){\n\t\t\t\t\t\t$temp['image_name'] = $this -> imageDisplayWH($temp['picture'],3,243,212);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$temp['image_name'] = $this -> imageDisplayWH($temp['smallPicture'],4,79,79);\n\t\t\t\t\t\tif ($limit > 1) {\n\t\t\t\t\t\t\t$temp['description'] = strip_tags($temp['description']);\n\t\t\t\t\t\t\t$temp['description'] = str_replace('&nbsp;', ' ', $temp['description']);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$objUI\t=\tnew uploadImages();\n\t\t\t\t\t$temp['images']\t=\t$objUI -> getDisplayImage('store', $temp['StoreID'], $temp['pid']);\n\t\t\t\t\t$temp['simage']\t=\t$objUI -> getDefaultImage($temp['smallPicture'], true, 0, 0, 4);\n\t\t\t\t\t$temp['bimage']\t=\t$objUI -> getDefaultImage($temp['picture'],false,0,0,9);\n\t\t\t\t\t$temp['limage']\t=\t$objUI -> getDefaultImage($temp['picture'],false,0,0,15);\n\t\t\t\t\t$temp['images_count'] = $temp['images']['imagesCount'];\n\t\t\t\t\tunset($objUI);\n\t\t\t\t\t$temp['image_name']['padding'] = 80 - $temp['image_name']['width'];\n\n\t\t\t\t\t//add a url bu_name by jessee 080804\n\t\t\t\t\t$temp['url_bu_name'] = clean_url_name($temp['bu_urlstring']);\n\t\t\t\t\t//set price format by jessee 080325\n\t\t\t\t\t$temp['price'] = number_format($temp['price'],2,'.',',');\n\t\t\t\t\t$temp['end_stamp'] = $temp['end_stamp']-time()>0?$temp['end_stamp']-time():0;\n\t\t\t\t\t/*if (!empty($this -> lang['Delivery'][strval($temp['deliveryMethod'])]['text'])){\n\t\t\t\t\t\t$temp['deliveryMethod'] = $this -> lang['Delivery'][strval($temp['deliveryMethod'])]['text'];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$temp['deliveryMethod'] = \"\";\n\t\t\t\t\t}*/\n\n\t\t\t\t\t$arrResult[]\t=\t$temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif($ispage){\n\t\t\t$arrResult['linkStr'] = $clsPage->get_link('soc.php?cp=disprolist&StoreID='. $_REQUEST['StoreID'] .'&STRORE_category='. $_REQUEST['STRORE_category'].'&sub_category='.$_REQUEST['sub_category'].\"&timelefts=$timelefts&buytypeState=$buytypeState\", $pageSize);\n\t\t}\n\t\t$arrResult[0]['youtubevideo'] = getobjurl($arrResult[0]['youtubevideo'])?getobjurl($arrResult[0]['youtubevideo']):\"\";\n\t\trequire_once('class.producttag.php');\n\t\t$protags = new producttag();\n\t\t$tmpstr = $protags->get_pro_tags_ByPorID($arrResult[0]['pid'],0);\n\t\tif($tmpstr){\n\t\t\t$tmpary = explode(',',$tmpstr);\n\t\t\t$tmpary2 = array();\n\t\t\tforeach ($tmpary as $pass):\n\t\t\t\tif($pass!=\"\"){\n\t\t\t\t\t$tmpary2[] = \"<a href=\\\"/soc.php?cp=searchTag&pro_tags=$pass\\\">$pass</a>\";\n\t\t\t\t}\n\t\t\tendforeach;\n\t\t\t$tmpstr = implode(', ',$tmpary2);\n\t\t}\n\t\t$arrResult[0]['pro_tags'] = $tmpstr;\n\t\t//var_dump($arrResult);\n\t\treturn $arrResult;\n\t}", "title": "" }, { "docid": "488cdb02e211447d45724190d9b331a0", "score": "0.6609473", "text": "function product_page($page) {\n\t\t\n\t\t$product = $this->Product->findByPage($page);\n\t\t$storeNumber = isset($this->passedArgs['store']) ? $this->passedArgs['store'] : 1;\n\t\t\n\t\tif (!empty($product)) {\n\t\t\t$this->__product($product, $storeNumber);\n\t\t\t\n\t\t\tif (isset($this->params['requested'])) {\n\t\t\t\treturn $product;\n\t\t\t}\n\t\t\t\n\t\t\t$this->render(\"product\");\n\t\t} else {\n\t\t\t$this->redirect(\"/\");\n\t\t}\n\t}", "title": "" }, { "docid": "2a86dc4384f92743dcec90f97fb4e468", "score": "0.6608575", "text": "public function singleproduct() {\n $id = $_GET['id'];\n $data = array();\n $all = $this->db->query(\"SELECT * from product where id = $id\");\n $data['result'] = $all->result();\n $result = $this->db->query(\"SELECT * from product_journal where product_id = $id\");\n $data['journal'] = $result->result();\n $data['header'] = $this->load->view('print/header', $data, true);\n $data['footer'] = $this->load->view('print/footer', $data, true);\n $this->load->view('print/singleproduct', $data);\n }", "title": "" }, { "docid": "76a1feb370cb75bd5965174a3a18f0d3", "score": "0.6603895", "text": "public function viewAction() {\n \n $this->view->title = \"View Content\";\n $product_model = new Model_Product();\n $select_products = $product_model->select();\n $select_products->setIntegrityCheck(false)\n ->from(\"products\")\n ->joinInner('platforms', 'products.platform_id = platforms.id', 'name as platform')\n //->joinLeft(\"statistics_products\", \"statistics_products.product_id = products.id\",array('date as hitsdate','hits'))\n // ->joinLeft(\"statistics_downloads\", \"statistics_downloads.product_id = products.id\",array('date as downloaddate','count'))\n ->where(\"user_id = ?\", Zend_Auth::getInstance()->getIdentity()->id)\n ->where(\"deleted != ?\", 1)\n ->group('products.id')\n ->order('products.id DESC') ;\n $products = $product_model->fetchAll($select_products);\n\n $rowCount = count($products);\n\n if (0 == $rowCount) {\n $this->view->show_empty_msg = true;\n }\n\n $page = $this->getRequest()->getParam('page', 0);\n $paginator = Zend_Paginator::factory($products);\n $paginator->setItemCountPerPage(10);\n $paginator->setCurrentPageNumber($page);\n \n $this->view->products = $paginator;\n \n $userMeta = new Model_UserMeta();\n $userMeta->setEntityId($this->_getCpId());\n $this->view->nexpagerState = $userMeta->ACTIVE_NEXPAGE;\n \n \n \n \n }", "title": "" }, { "docid": "ebeca73e13a588e0e5b81c20eb0117c0", "score": "0.6593002", "text": "function ec_print_editor_product_details( ){\n\techo \"<div class=\\\"ec_editor_panel\\\" id=\\\"ec_productdetails_menu\\\">\";\n\t\techo \"<div class=\\\"ec_editor_select_row\\\"><input type=\\\"button\\\" value=\\\"BACK\\\" class=\\\"ec_editor_button backlink\\\"></div>\";\n\t\techo \"<div class=\\\"ec_editor_error\\\" id=\\\"ec_productdetails_error\\\"><span>Please Select a Product</span></div>\";\n\t\techo \"<div class=\\\"ec_editor_help_text\\\">This shortcode displays a single product's details on the specified page.</div>\";\n\t\techo \"<div class=\\\"ec_editor_select_row\\\"><span class=\\\"ec_editor_select_row_label\\\">Product Model Number:</span><span class=\\\"ec_editor_select_row_input\\\">\";\n\t\tec_print_productdetails_select( 'ec_editor_productdetails_select' );\n\t\techo \"</div>\";\n\t\techo \"<div class=\\\"ec_editor_submit_row\\\"><span class=\\\"ec_editor_select_row_input\\\"><input type=\\\"button\\\" value=\\\"ADD SHORTCODE\\\" id=\\\"ec_add_productdetails\\\" class=\\\"ec_editor_button\\\"></span></div>\";\n\t\t\n\techo \"</div>\";\n}", "title": "" }, { "docid": "64db325ef06a026e4e893d96fbdfbef3", "score": "0.65665644", "text": "public function viewOrderDetailsAction() {\n $adminproducts = Admin_Model_Products::getInstance();\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $order_id = $this->getRequest()->getParam('oId');\n $ordersModel = Admin_Model_Orders::getInstance();\n $result = $ordersModel->getAllOrdersById($order_id);\n $productID = json_decode($result['product_id'], true);\n $quantity = json_decode($result['quantity'], true);\n $amount = json_decode($result['product_amount'], true);\n $i = 0;\n foreach ($productID as $productname) {\n $productname = $adminproducts->getProductsById($productname);\n $productnames[$i] = $productname['name'];\n $i++;\n }\n if ($result) {\n $this->view->orderdetails = $result;\n $this->view->productnames = $productnames;\n $this->view->quantity = $quantity;\n $this->view->amount = $amount;\n }\n }", "title": "" }, { "docid": "d8588077c25c3219d1eec21778f1f584", "score": "0.6565642", "text": "function product_list()\n\t{\n\t\tif(!$this->session->userdata('AdminAccessMail')) redirect(\"ouradminmanage\");\n\t\t$data['title']=\"Product List | Butikbd.com\";\n\t\t$data['product_list'] = $this->Index_model->getTable('product','product_id','desc');\n\t\t$data['main_content']=\"admin/product/product_list\";\n $this->load->view('admin_template',$data);\n\t}", "title": "" }, { "docid": "68b54f2014eda11f7946a97894092fce", "score": "0.6562616", "text": "public function view_product()\n {\n if ($this->checkLogin('A') == '') {\n redirect('admin_ror');\n } else {\n $this->data['heading'] = 'View Property';\n $product_id = $this->uri->segment(4, 0);\n $condition = array('id' => $product_id);\n $sortArr1 = array('field' => 'imgPriority', 'type' => 'ASC');\n //$this->data['product_details'] = $this->product_model->get_all_details(PRODUCT,$condition);\n $this->data['product_details'] = $this->product_model->view_product1($product_id);\n if ($this->data['product_details']->num_rows() == 1) {\n $this->data['catList'] = $this->product_model->get_cat_list($this->data['product_details']->row()->category_id);\n $this->data['RentalCountry'] = $this->product_model->get_all_details(COUNTRY_LIST, array('status' => 'Active'));\n $this->data['RentalState'] = $this->product_model->get_all_details(STATE_TAX, array('status' => 'Active'));\n $this->data['RentalCity'] = $this->product_model->get_all_details(CITY, array('status' => 'Active'));\n $this->data['product_image'] = $this->product_model->get_all_details(PRODUCT_PHOTOS, array('property_id' => $this->data['product_details']->row()->id), $sortArr1);\n //$this->data['Product_Rate_Package'] = $this->product_model->get_all_details(PRODUCT_PACKAGES,array('product_id'=>$this->data['product_details']->row()->id));\n $this->data['listNameCnt'] = $this->product_model->get_all_details(ATTRIBUTE, array('status' => 'Active'));\n $this->data['listValueCnt'] = $this->product_model->get_all_details(LIST_VALUES, array('status' => 'Active'));\n $this->data['ReservedDetails'] = $this->product_model->get_all_details(RESERVED_INFO, array('property_id' => $this->data['product_details']->row()->id));\n $this->data['product_source_details'] = $this->product_model->get_all_details(SOURCE_INFO, array('property_id' => $this->data['product_details']->row()->id));\n\n $sourceData = $this->data['product_source_details']->row()->datavalues;\n $this->data['source_info'] = unserialize(stripslashes($sourceData));\n $list_valueArr = explode(',', $this->data['product_details']->row()->list_value);\n $listIdArr = array();\n foreach ($this->data['listValueCnt']->result_array() as $listCountryValue) {\n $listIdArr[] = $listCountryValue['list_id'];\n }\n if ($this->data['listNameCnt']->num_rows() > 0) {\n foreach ($this->data['listNameCnt']->result_array() as $listCountryName) {\n $this->data['listCountryValue'] .='<br /><span class=\"cat1\"><!-- <input name=\"list_name[]\" class=\"checkbox\" type=\"checkbox\" value=\"' . $listCountryName['id'] . '\" tabindex=\"7\"> --><strong>' . ucfirst($listCountryName['attribute_name']) . ' &nbsp;</strong></span><br />';\n foreach ($this->data['listValueCnt']->result_array() as $listCountryValue) {\n if ($listCountryValue['list_id'] == $listCountryName['id']) {\n if (in_array($listCountryValue['id'], $list_valueArr)) {\n $checkStr = 'checked=\"checked\"';\n } else {\n $checkStr = '';\n }\n $this->data['listCountryValue'] .='\n\t\t\t\t\t\t\t\t<div style=\"float:left; margin-left:10px;\">\n\t\t\t\t\t\t\t\t<span>\n\t\t\t\t\t\t\t\t<input name=\"list_value[]\" disabled=\"disabled\" class=\"checkbox\" ' . $checkStr . ' type=\"checkbox\" value=\"' . $listCountryValue['id'] . '\" tabindex=\"7\">\n\t\t\t\t\t\t\t\t<label class=\"choice\">' . ucfirst($listCountryValue['list_value']) . '</label></span></div>';\n }\n }\n }\n }\n\n $this->load->library('googlemaps');\n $config['center'] = $this->data['product_details']->row()->latitude . ',' . $this->data['product_details']->row()->longitude;\n $config['zoom'] = 'auto';\n $this->googlemaps->initialize($config);\n $marker = array();\n $marker['position'] = $this->data['product_details']->row()->latitude . ',' . $this->data['product_details']->row()->longitude;\n $marker['draggable'] = true;\n $marker['ondragend'] = 'updateDatabase(event.latLng.lat(), event.latLng.lng());';\n $this->googlemaps->add_marker($marker);\n $this->data['map'] = $this->googlemaps->create_map();\n\n $this->load->view('admin/product/view_product', $this->data);\n } else {\n redirect('admin_ror');\n }\n }\n }", "title": "" }, { "docid": "2ce3512223ea98d8ed4e2c533da72ef8", "score": "0.6555232", "text": "public function showDetail()\n {\n Helper::checkSessionTime();\n Helper::updateSessionTimeout();\n View::renderTemplate('detailpage.html',[\"Item\" => $this->Item->getItemByID($this->route_params['id'])]);\n }", "title": "" }, { "docid": "3309a1bbb4632a83ee406bd528282ea5", "score": "0.6554349", "text": "public function detail()\n {\n\n try {\n\n $data = [];\n $data['is_mobile'] = $this->isMobile();\n $url = $this->uri->segment(1);\n\n $data['session'] = $this->sessionData;\n $this->load->model(\"producer_model\");\n $this->load->model(\"parent_menu_model\");\n $this->load->model(\"product_model\");\n $this->load->model(\"img_product_model\");\n $this->load->model(\"type_product_model\");\n\n //GET MENU PARENT\n $params = [\n 'limit' => [15, 0],\n 'active' => 1\n ];\n $parent_menu = $this->parent_menu_model->get($params);\n\n foreach ($parent_menu as $k => $object) {\n\n $params['parent_id'] = $object->id;\n $child_menu = $this->producer_model->get($params);\n $parent_menu[$k]->child_menu = $child_menu;\n\n }\n $data['parent_menu'] = $parent_menu;\n\n // GET PRODUCT BY PARAMS MENU\n $params = [];\n $params['url'] = $url;\n $parent_menu = $this->parent_menu_model->get($params);\n // New and Khuyến mãi\n if ($url == 'new' || $url == 'khuyen-mai') {\n\n // Get product by ID\n $params = [\n 'limit' => [72, 0],\n 'active' => 1\n ];\n\n if ($url == 'khuyen-mai') {\n $params['sale_off'] = 1;\n $data['search_str'] = ['name' => 'Khuyễn mãi'];\n } else if ($url == 'new') {\n\n $data['search_str'] = ['name' => 'Sản phẩm mới'];\n }\n $data['search_str'] = json_decode(json_encode($data['search_str']));\n $params['order_by'] = ['id' => 'desc'];\n $data_product = $this->product_model->get($params);\n\n // Check data rediect 404\n if (count($data_product) < 1) {\n\n $this->not_found();\n return false;\n }\n\n // Get img for product\n foreach ($data_product as $k => $ob) {\n\n $params = [];\n $params['product_id'] = $ob->id;\n $data_img_product = $this->img_product_model->get($params);\n $data_product[$k]->img_product = $data_img_product;\n }\n\n $data['list_product'] = $data_product;\n\n $data['title'] = $data['search_str']->name;\n $data['keywords'] = $data['search_str']->name;\n $data['description'] = $data['search_str']->name;\n\n $this->load->view('header', $data);\n $this->load->view('product_by_menu', $data);\n $this->load->view('footer', $data);\n\n } else if (count($parent_menu) > 0) {\n\n //Get search area\n $producer = $this->producer_model->get(\n ['parent_id' => $parent_menu[0]->id]\n );\n $data['producer'] = $producer;\n\n // Get product by ID\n $params = [\n 'limit' => [72, 0],\n 'active' => 1\n ];\n $params['parent_id'] = $parent_menu[0]->id;\n $params['order_by'] = ['id' => 'desc'];\n $data_product = $this->product_model->get($params);\n\n // Check data rediect 404\n if (count($data_product) < 1) {\n\n $this->not_found();\n return false;\n }\n\n // Get img for product\n foreach ($data_product as $k => $ob) {\n\n $params = [];\n $params['product_id'] = $ob->id;\n $data_img_product = $this->img_product_model->get($params);\n $data_product[$k]->img_product = $data_img_product;\n }\n\n $data['search_str'] = $parent_menu[0];\n $data['list_product'] = $data_product;\n\n $data['title'] = $parent_menu[0]->title != '' ? $parent_menu[0]->title: $parent_menu[0]->name;\n $data['keywords'] = $parent_menu[0]->des;\n $data['description'] = $parent_menu[0]->des;\n\t\t\t\n $this->load->view('header', $data);\n $this->load->view('product_by_menu', $data);\n $this->load->view('footer', $data);\n\n } else { // PAGE DETAIL\n\n // Get product by ID\n $params = [];\n $params['url'] = $url;\n $data_product = $this->product_model->get($params);\n $this->load->model(\"province_model\");\n $this->load->model(\"district_model\");\n\n // Check data rediect 404\n if (count($data_product) < 1) {\n\n $this->not_found();\n return false;\n\n }\n\n // Get img for product\n foreach ($data_product as $k => $ob) {\n\n $params = [];\n $params['product_id'] = $ob->id;\n $data_img_product = $this->img_product_model->get($params);\n $data_product[$k]->img_product = $data_img_product;\n }\n\n $params = [];\n if ($data_product[0]->parent_id != '0') {\n\n $params['parent_id'] = $data_product[0]->parent_id;\n $data['parent_menu_item'] = $this->parent_menu_model->get(['id' => $data_product[0]->parent_id])[0];\n }\n\n if ($data_product[0]->tp_id != '0') {\n\n $params['tp_id'] = $data_product[0]->tp_id;\n $data['type_product_item'] = $this->type_product_model->get(['id' => $data_product[0]->tp_id])[0];\n }\n if ($data_product[0]->pror_id != '0') {\n\n $params['pror_id'] = $data_product[0]->pror_id;\n $data['producer_item'] = $this->producer_model->get(['id' => $data_product[0]->pror_id])[0];\n }\n\n $params['limit'] = [100, 0];\n $params['not_id'] = $data_product[0]->id;\n\n $data['product_rela'] = $this->product_model->get($params);\n $data['product_detail'] = $data_product[0];\n // Get default is HCM\n $data['province'] = $this->province_model->get(['limit' => [10000, 0]]);\n $data['district'] = $this->district_model->get(['limit' => [10000, 0], 'provinceid' => 79]);\n\n $data['title'] = $data['product_detail']->name;\n $data['keywords'] = $data['product_detail']->s_content;\n $data['description'] = $data['product_detail']->s_content;\n\n $this->load->view('header', $data);\n $this->load->view('detail', $data);\n $this->load->view('footer', $data);\n }\n\n } catch (Exception $err) {\n\n header('Location: ' . base_url() . 'not-found');\n }\n }", "title": "" }, { "docid": "2211e9605a70024759bf4930575fee11", "score": "0.6546773", "text": "public function show($product)\n {\n //\n }", "title": "" }, { "docid": "0342c15e1f01c185d7e6869424f2f4a1", "score": "0.6539157", "text": "public function viewStoreOrderDetailsAction() {\n $adminproducts = Admin_Model_Products::getInstance();\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $order_id = $this->getRequest()->getParam('oId');\n $ordersModel = Admin_Model_Orders::getInstance();\n $result = $ordersModel->getAllStoreOrdersById($order_id);\n $productID = json_decode($result['product_id'], true);\n $quantity = json_decode($result['quantity'], true);\n $amount = json_decode($result['product_amount'], true);\n $i = 0;\n foreach ($productID as $productname) {\n $productname = $adminproducts->getProductsById($productname);\n $productnames[$i] = $productname['name'];\n $i++;\n }\n if ($result) {\n $this->view->orderdetails = $result;\n $this->view->productnames = $productnames;\n $this->view->quantity = $quantity;\n $this->view->amount = $amount;\n }\n }", "title": "" }, { "docid": "2b2c2b0077d8b7a466e76cb200cedfae", "score": "0.65391415", "text": "public function productControll() {\n //shows categories on startpage\n $this->categories =$this->productRepository->getAllCategories();\n $this->productView->setCategories($this->productModel->replaceCharWithSpace($this->categories));\n\n //gets array of chosen category articles and shows them\n if($this->productView->getArticles()){\n $this->productModel->storeCategory($this->productModel->replaceSpaceWithChar($this->productView->getChosenCategory()));\n\n $this->category = $this->productModel->getStoredCategory();\n\n $this->articles = $this->productRepository->getArticlesFromChosenCategory($this->category);\n $this->productView->setArticles($this->productModel->replaceCharWithSpace($this->articles));\n }\n\n //gets specific article\n if($this->productView->getArticleInfo()){\n $this->productView->unsetEditArray();\n if($this->loginModel->loginSESSIONExist()){\n $this->productView->setEditArticleInfo();\n }\n $this->category = $this->productModel->getStoredCategory();\n //replace functions changes whitespace to characters for because of database issues.\n $this->article = $this->productModel->replaceSpaceWithChar($this->productView->getChosenArticle());\n $this->article = $this->productModel->replaceCharWithSpace($this->productRepository->getArticleInfo($this->article,$this->category));\n $this->productView->setArticleInfo($this->article);\n }\n }", "title": "" }, { "docid": "156212ef0af279c57782cd39b153665a", "score": "0.65380657", "text": "function viewProductPage($offset, $number_of_records){\n $product = new productModel();\n $product->spid = $_SESSION['SpID'];\n return $product -> viewProdPage($offset, $number_of_records);\n }", "title": "" }, { "docid": "1840f71e59325a3b7338aad290069550", "score": "0.6536023", "text": "function getDetailView(itx_ms3commerce_plugin $plugin = null, tx_ms3commerce_db $db = null)\n\t{\n\t\t$plugin = $this->plugin;\t// Intellisense\n\t\t$db = $this->db;\t\t// Intellisense\n\t\t$content = '';\n\t\t\t\n\t\tif ($this->debug_enabled) \n\t\t{\n\t\t\t$content .= 'The detail view content.<br>';\n\t\t\t$content .= 'TemplateFile: <code>'.$this->conf['templateFile'].'</code><br>';\n\t\t\t$content .= 'productId: <code>'.$this->productId.'</code><br>';\n\t\t}\t\t\n\t\t$template = $plugin->getTemplate('###DETAILVIEW###');\n\t\t// Fill-out the 'BREADCRUMB' subpart.\n\t\t$template = $this->fillBreadcrumbSubpart($template);\n\n\t\t// Preload product template, as in some cases, the parent might substitute it\n\t\t// (e.g., relation to some other product)\n\t\t$productTemplate = $this->tplutils->getSubpart($template, '###PRODUCT###');\n\t\t\n\t\t// Fill-out the 'PARENT' subpart, which contains information about the parent\n\t\t// group. The subpart is optional.\n\t\t$parentTemplate = $this->tplutils->getSubpart($template, '###PARENT###');\n\t\tif (!empty($parentTemplate))\n\t\t{\n\t\t\t$markerValues = $this->fillGroupMarkerContentArray($this->tplutils->getMarkerArray($parentTemplate));\n\t\t\t$parentTemplate = $this->tplutils->substituteMarkerArray($parentTemplate, $markerValues);\n\n\t\t\t$template = $this->tplutils->substituteSubpart($template, '###PARENT###', $parentTemplate, FALSE);\n\t\t}\n\t\t\n\t\t//is this prod visible?\n\t\tif(($this->productId)&&($this->tplutils->checkProductVisibility($this->productId)==true))\n\t\t{\t\n\t\t\t// Fill-out the 'PRODUCT' subpart, which contains information about the product\n\t\t\t// group. The subpart is optional.\n\t\t\tif (!empty($productTemplate))\n\t\t\t{\n\t\t\t\t$markerValues = $this->fillProductMarkerContentArray($this->tplutils->getMarkerArray($productTemplate),$this->productId,$this->currentMenuId);\n\t\t\t\t$productTemplate = $this->tplutils->substituteMarkerArray($productTemplate, $markerValues);\n\n\t\t\t\t$template = $this->tplutils->substituteSubpart($template, '###PRODUCT###', $productTemplate);\n\t\t\t}\n\t\t} else{\n\t\t\t\t$template = $this->tplutils->substituteSubpart($template, '###PRODUCT###', '');\n\t\t}\n\t\t\n\t\t\n\t\t// Fill-out the 'DOCUMENTS' subpart, which contains information about the Document\n\t\t// group. The subpart is optional.\n\t\tif (($this->documentId)&&($this->tplutils->checkDocumentVisibility($this->documentId)==true))\n\t\t{\n\t\t\t$documentTemplate = $this->tplutils->getSubpart($template, '###DOCUMENT###');\n\t\t\tif (!empty($documentTemplate))\n\t\t\t{\n\t\t\t\t$markerValues = $this->fillDocumentMarkerContentArray($this->tplutils->getMarkerArray($documentTemplate),$this->documentId,$this->currentMenuId);\n\t\t\t\t$documentTemplate = $this->tplutils->substituteMarkerArray($documentTemplate, $markerValues);\n\n\t\t\t\t$template = $this->tplutils->substituteSubpart($template, '###DOCUMENT###', $documentTemplate);\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$template = $this->tplutils->substituteSubpart($template, '###DOCUMENT###', '');\n\t\t}\n\t\t\n\t\t//from existst valueexists wrappers\n\t\t$template = $this->tplutils->substituteSubpart($template, \"###REMOVE_SUBPART###\", '');\n\t\treturn $template;\n\t}", "title": "" }, { "docid": "afec5260ba1ec19985a03733498529d1", "score": "0.65264904", "text": "public function getProductPreview(array $scriptProperties = array()) {\n $this->modx->log(\\modX::LOG_LEVEL_INFO, print_r($scriptProperties,true),'','Moxycart PageController:'.__FUNCTION__);\n $product_id = (int) $this->modx->getOption('product_id', $scriptProperties);\n $Obj = new Product($this->modx); \n if (!$result = $Obj->find($product_id)) {\n return $this->sendError('Page not found.');\n }\n header('Location: '.MODX_SITE_URL . $result->get('uri'));\n exit; \n }", "title": "" }, { "docid": "33ee6a4aadc1bd92880333f6354dc861", "score": "0.65152425", "text": "public function product_page($str,$id){\n\t\t$data['baseurl'] = $this->config->item('base_url');\n\t\t\n\t\t$data['products'] = $this->User_model->getproductsingle($str,$id);\n\t\t$data['cart'] = $this->User_model->getCart();\n\t\t$data['pagename'] = $str;\n\t\t$data['header'] = $this->load->view('header', $data, TRUE);\n\t\t$data['footer'] = $this->load->view('footer', $data, TRUE);\n\t\t$this->load->view('product_page',$data);\n\n\t}", "title": "" }, { "docid": "f9f9bd87e03462d94afbcd422d763d69", "score": "0.6514826", "text": "public function actionProductDetail($product) {\r\n\r\n if (isset(Yii::$app->user->identity->id)) {\r\n $user_id = Yii::$app->user->identity->id;\r\n } else {\r\n $user_id = '';\r\n }\r\n $shipping_limit = Settings::findOne('1')->value;\r\n $product_details = Product::find()->where(['canonical_name' => $product, 'status' => '1'])->one();\r\n if (!empty($product_details)) {\r\n $related_poduct = Product::find()->where(['brand' => $product_details->brand, 'gender_type' => $product_details->gender_type])->andwhere(['<>', 'id', $product_details->id])->all();\r\n $this->RecentlyViewed($product_details);\r\n $product_reveiws = \\common\\models\\CustomerReviews::find()->where(['product_id' => $product_details->id, 'status' => '1'])->all();\r\n \\Yii::$app->view->title = $product_details->meta_title;\r\n \\Yii::$app->view->registerMetaTag(['name' => 'keywords', 'content' => $product_details->meta_keywords]);\r\n \\Yii::$app->view->registerMetaTag(['name' => 'description', 'content' => $product_details->meta_description]);\r\n return $this->render('product_detail', [\r\n 'product_details' => $product_details,\r\n 'product_reveiws' => $product_reveiws,\r\n 'user_id' => $user_id,\r\n 'shipping_limit' => $shipping_limit,\r\n 'related_poduct' => $related_poduct,\r\n ]);\r\n } else {\r\n return $this->redirect(['site/error']);\r\n }\r\n }", "title": "" }, { "docid": "20f1f5644d62060d956312eeb1aefeca", "score": "0.6503987", "text": "protected function productAction() {\n\t\tif (Tools_Security_Acl::isAllowed(self::RESOURCE_STORE_MANAGEMENT)) {\n\n\t\t\t$this->_view->generalConfig = $this->_configMapper->getConfigParams();\n\n\t\t\t$this->_view->templateList = Application_Model_Mappers_TemplateMapper::getInstance()->findByType(Application_Model_Models_Template::TYPE_PRODUCT);\n\t\t\t$this->_view->brands = Models_Mapper_Brand::getInstance()->fetchAll();\n\n\t\t\t$listFolders = Tools_Filesystem_Tools::scanDirectoryForDirs($this->_websiteConfig['path'] . $this->_websiteConfig['media']);\n\t\t\tif (!empty ($listFolders)) {\n\t\t\t\t$listFolders = array('select folder') + array_combine($listFolders, $listFolders);\n\t\t\t}\n\t\t\t$this->_view->imageDirList = $listFolders;\n\n\t\t\t$this->_view->plugins = array();\n\t\t\tforeach (Tools_Plugins_Tools::getPluginsByTags(array('ecommerce')) as $plugin) {\n\t\t\t\tif ($plugin->getTags() && in_array('merchandising', $plugin->getTags())) {\n\t\t\t\t\tarray_push($this->_view->plugins, $plugin->getName());\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($this->_request->has('id')) {\n\t\t\t\t$id = filter_var($this->_request->getParam('id'), FILTER_VALIDATE_INT);\n\t\t\t\tif ($id) {\n\t\t\t\t\t$this->_view->product = Models_Mapper_ProductMapper::getInstance()->find($id);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->_view->websiteConfig = $this->_websiteConfig;\n\n\t\t\t$this->_layout->content = $this->_view->render('product.phtml');\n\t\t\t$this->_layout->sectionId = Tools_Misc::SECTION_STORE_ADDEDITPRODUCT;\n\t\t\techo $this->_layout->render();\n\t\t}\n\t}", "title": "" }, { "docid": "eae948007654d3739d0f0085d9d059a9", "score": "0.6503614", "text": "public function product_report_details() {\n\t\t$dataarr = array();\n\t\t$metadata = array();\n\t\t$metadata = $this->M_common->session_info();\n\t\t$metadata[\"title\"] \t\t= 'Product Report Details :: Metro Lifestyle';\n\t\t$dataarr['metadata'] \t= $metadata;\n\n\t\t$dataarr['productreportdetails'] = $this->M_product->product_report_details();\n\t\t$this->load->view( 'admin/products/reports/report-details', $dataarr );\n\t}", "title": "" }, { "docid": "95ebf950327f41b42e7f743fbc9cef51", "score": "0.6486518", "text": "function viewProductDetails($ProductID){\n $product = new productModel();\n $product->ProductID = $ProductID;\n return $product->viewProductDetails();\n }", "title": "" }, { "docid": "d4f1b0bd24b6ab5861009aaa0164bc34", "score": "0.64612716", "text": "function print_product($data)\n{\n\t$id = $data['id'];\n\t$name = $data['name'];\n\t$info = $data['info'];\n\t$priority = $data['priority'];\n\t$imgsrc = $data['picture'];\n\t$added = $data['added'];\n\t$category = $data['Category'];\n\t\n?>\n\n\t\t<div id=\"item\">\n\t\t\n\t\t<?php print_control_block($id); ?>\n\t\t\n\t\t\t<table class=\"item-table\">\n\t\t\t\t<tr><td><strong>Name:</strong> <?=$name?> <td rowspan=\"5\"><img height = \"50px\" src=\"images/<?=$imgsrc?>\"/></td></tr>\n\t\t\t\t<tr><td><strong>Category:</strong> <?=$category?> </td></tr>\n\t\t\t\t<tr><td><strong>Priority:</strong> <?=$priority?> </td></tr>\n\t\t\t\t<tr><td><strong>Added:</strong> <?=$added?> </td></tr>\n\t\t\t</table>\n\t\t</div>\n\n\n\n<?php\n}", "title": "" }, { "docid": "ea944b7c745cd1fa62ed7d48aeb29394", "score": "0.64608836", "text": "public function viewdetailsAction()\n {\n $purchaseId = $this->_getParam('purchase_id');\n $purchaseModel = new Core_Model_Finance_Purchase($purchaseId);\n $this->view->purchaseId = $purchaseId;\n $this->view->purchaseRecord = $purchaseModel->fetch();\n $this->view->purchaseItems = $purchaseModel->getItems();\n }", "title": "" }, { "docid": "712b918bdfee22d0c7b4d80cc25aa9b9", "score": "0.64080626", "text": "function bosa_voucher_product_page($id = NULL,$delta = NULL){\n global $user;\n\n if(!$user->uid) {\n return drupal_render(drupal_get_form('user_login_block'));\n }\n\n // Redirect to all products page\n if($id == 'all') {\n return bosa_voucher_product_all_page();\n }\n\n return '<a href=\"/bosa/voucher/product/all\"><h3>&lt;&lt; See for other product</h3></a>' . drupal_render(drupal_get_form('bosa_voucher_ticket_form')) . '<div id=\"bosa_voucher_load\" style=\"display:none;\">Opdaterer...</div><div id=\"bosa_voucher_attendees\"></div>';\n}", "title": "" }, { "docid": "5c94ab439984cedceea39d0f1c2dd92f", "score": "0.6407935", "text": "public function show($productId) {\n $build = [\n '#theme' => 'tipser_product_page',\n '#productId' => $productId,\n '#article_url' => $_GET['article'],\n ];\n\n if (\n (isset($_GET['parent_id']) && is_numeric($_GET['parent_id']) && $parent_id = $_GET['parent_id']) &&\n (isset($_GET['parent_type']) && is_string($_GET['parent_type']) && $parent_type = $_GET['parent_type'])\n ) {\n if (\n ($parent_type == 'node' && $entity = Node::load($parent_id))\n ||\n ($parent_type == 'taxonomy_term' && $entity = Term::load($parent_id))\n ||\n ($parent_type == 'user' && $entity = User::load($parent_id))\n ) {\n $view_mode = 'full';\n $datalayer_variables = infinite_datalayer_get_variables($entity, $view_mode);\n infinite_datalayer_add($build, $entity->uuid(), $datalayer_variables);\n }\n }\n return $build;\n }", "title": "" }, { "docid": "a3b7fe8a099a0948e8cee5faae50a4a2", "score": "0.63909173", "text": "function viewProductsCategoryProductShows()\n\t{\n\t\t if(isset($_GET[\"categoryName\"]) && !isset($_GET[\"subcategoryName\"]))\n\t\t\t{\n\t\t\t\t$categoryName=$_GET[\"categoryName\"];\n\t\t\t\t$products_set=get_products_details_for_category($categoryName);\n\t\t\t\t$outputProducts =\"\";\n\t\t\t\t$alterColor=0;\n\t\t\t\twhile ($productsDetails = mysql_fetch_array($products_set)) {\n\t\t\t\t\n\t\t\t\t\tif($alterColor%2==0){\n\t\t\t\t\t$outputProducts .=\"<tr class=\\\"secondtd\\\" >\"; \n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$outputProducts .=\"<tr class=\\\"firsttd\\\" >\"; \n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$outputProducts .=\"<td>{$productsDetails[\"productName\"]}&nbsp;&nbsp;&nbsp;&nbsp;</td>\";\n\t\t\t\t\t$outputProducts .=\"<td>{$productsDetails[\"price\"]}&nbsp;&nbsp;&nbsp;&nbsp;</td>\";\n\t\t\t\t\t$outputProducts .=\"<td>{$productsDetails[\"discount\"]}&nbsp;&nbsp;&nbsp;&nbsp;</td>\";\n\t\t\t\t\t$outputProducts .=\"<td>{$productsDetails[\"actualPrice\"]}&nbsp;&nbsp;&nbsp;&nbsp;</td>\";\n\t\t\t\t\t$outputProducts .=\"<td>{$productsDetails[\"quantity\"]}&nbsp;&nbsp;&nbsp;&nbsp;</td>\";\n\t\t\t\t\t$outputProducts .=\"<td>{$productsDetails[\"frontDisplay\"]}&nbsp;&nbsp;&nbsp;&nbsp;</td>\";\n\t\t\t\t\t$outputProducts .=\"<td><a href=\\\"editProducts.php?productId=\" . urlencode($productsDetails[\"productId\"]) . \"\\\" class=\\\"button\\\">EDIT</a></td>\";\n\t\t\t\t\t$outputProducts .=\"</tr>\";\n\t\t\t\t\t$alterColor++;\n\t\t\t\t}\n\t\n\t\t\t/*if it is null then it will not display errors */\n\t\t\t\tif (!empty($outputProducts)) {\n\n\t\t\t\t\techo $outputProducts;\n\t\t }\t\t\t\n\t\t }\n\t}", "title": "" }, { "docid": "c79c3231576f56ca6ae913fa65d4bf5f", "score": "0.6387142", "text": "function get_products_in_shop_page(){\n\t//select all the products from the table\n\t$query = query(\"SELECT * FROM products\");\n\n\t//make sure the query we sent worked\n\tconfirm($query);\n\n\t//print out the results\n\twhile ($row = fetch_array($query)) {\n\t\n\t\t$product_image = display_image($row['product_image']);\n\t\t$product_image_secondary = display_image($row['product_image_secondary']);\n\n\t\t//heredoc is used to make the html into a string, and you dont need to worry about changing the single quotes to double quotes\n\t\t//add this to delimiter if needed <p>{$row['short_desc']}.</p>\n\t\t$product = <<<DELIMITER\n\n\t\t <div class=\"col-md-3 col-sm-6 hero-feature\">\n <div class=\"thumbnail\">\n <img src=\"../resources/{$product_image}\" data-mouseover=\"../resources/{$product_image_secondary}\" alt=\"\">\n <div class=\"caption\">\n <h3>{$row['product_title']}</h3>\n <p>\n <a href=\"../resources/cart.php?add={$row['product_id']}\" class=\"btn btn-primary\">Buy Now!</a> <a href=\"item.php?id={$row['product_id']}\" class=\"btn btn-default\">More Info</a>\n </p>\n </div>\n </div>\n </div>\nDELIMITER;\n\n\t\techo $product;\n\t}\n\n}", "title": "" }, { "docid": "47906537a4787efe93c239b8fcda8994", "score": "0.6384486", "text": "public function DisplayProductDetails($id){\n\n $array = $this->ReadPerProduct($id);\n// var_dump($array);\n\n $naam = $array['naam'];\n $image = $array[\"foto\"];\n $prijs = $array[\"prijs\"];\n $geschikt = $array[\"geschikt\"];\n $specificatie = $array[\"specificaties\"];\n $aanbieding = $array[\"aanbieding\"];\n\n $html = '<div class=\"card\" style=\"width: 25rem; margin-left: 33%;\">';\n\n $html .= \"<img class='card-img-top' src= '$image' alt='Card image cap''>\";\n\n $html .= \"<div class='card-body'>\";\n $html .= \"<h5 class='card-title'>$naam</h5>\";\n $html .= \"<p class='card-text'>$specificatie</p>\";\n $html .= '</div>';\n\n $html .= \"<ul class='list-group list-group-flush'>\";\n $html .= \"<li class='list-group-item'>Geschikt voor: $geschikt</li>\";\n $html .= \"<li class='list-group-item'>Prijs: $prijs €</li>\";\n $html .= \"<li class='list-group-item'>In aanbieding: $aanbieding</li>\";\n $html .= \"</ul>\";\n\n $html .= \"<div class='card-body'>\";\n $html .= \"<a href='index.php?op=producten' class='card-link'>Terug naar producten</a>\";\n $html .= \"<a href='#' class='card-link'>Bestellen</a>\";\n $html .= \"</div>\";\n\n $html .= \"</div>\";\n;\n\n\n\n return $html;\n }", "title": "" }, { "docid": "67a24040233de6211b9a30d8e86debd1", "score": "0.6371909", "text": "function indexAction()\n {\n global $langCode;\n $error = array();\n $success = array();\n $warning = array();\n \n \n $paginateUrl = $this->registry->conf['rooturl_admin'].'product/index/'; \n \n \n //tim tong so\n $total = Core_Product::getProducts($formData, $sortby, $sorttype, '', true); \n $totalPage = ceil($total/$this->recordPerPage);\n $curPage = $page;\n \n \n //get latest account. $cats: Nhung con meo :)\n $products = Core_Product::getProducts($formData, '', '', '', false);\n //build redirect string\n $redirectUrl = $paginateUrl;\n if($curPage > 1)\n $redirectUrl .= 'page/' . $curPage;\n \n \n $redirectUrl = base64_encode($redirectUrl);\n \n \n $this->registry->smarty->assign(array( 'products' => $products,\n 'formData' => $formData,\n 'success' => $success,\n 'error' => $error,\n 'warning' => $warning,\n 'paginateurl' => $paginateUrl, \n 'redirectUrl' => $redirectUrl,\n 'total' => $total,\n 'totalPage' => $totalPage,\n 'curPage' => $curPage,\n ));\n \n \n $contents = $this->registry->smarty->fetch($this->registry->smartyControllerContainer.'index.tpl');\n \n $this->registry->smarty->assign(array( 'menu' => 'productlist',\n 'pageTitle' => $this->registry->lang['controller']['pageTitle_list'],\n 'contents' => $contents));\n $this->registry->smarty->display($this->registry->smartyControllerGroupContainer . 'index.tpl');\n \n }", "title": "" }, { "docid": "2e60b2e1ffef336df560ba3ef8a3b304", "score": "0.6366004", "text": "function show_product_list($vendor_id,$alert='')\n\t{\n\t\tglobal $db,$ecom_siteid;\n\t\t// Get the list of paroduct assigned for the static page group\n\t $sql_products = \"select p.product_id,p.product_name,pdvd.map_id FROM\nproducts p,product_vendor_map pdvd\nWHERE pdvd.products_product_id=p.product_id AND pdvd.sites_site_id=$ecom_siteid\nAND pdvd.product_vendors_vendor_id=$vendor_id\";\n\t\t$ret_products = $db->query($sql_products);\n\t?>\n<div class=\"editarea_div\">\n<table width=\"100%\" cellpadding=\"1\" cellspacing=\"1\" border=\"0\">\n <tr>\n <td colspan=\"5\" align=\"left\" valign=\"middle\" class=\"helpmsgtd\" ><div class=\"helpmsg_divcls\"><?=get_help_messages('EDIT_PROD_VENDOR_ASSIGN') ?></div></td>\n </tr>\n\t\t\t\t\t<?php \n\t\t\t\t\t\tif($alert)\n\t\t\t\t\t\t{\n\t\t\t\t\t?>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td colspan=\"5\" align=\"center\" class=\"errormsg\"><?php echo $alert?></td>\n\t\t\t\t\t\t\t</tr>\n\t\t\t\t <?php\n\t\t\t\t \t\t}\n\t\t\t\t\n\t\t\t\t // Check whether Products are added to this vendor\n\t\t\t$sql_product_in_vendor = \"SELECT products_product_id FROM product_vendor_map\n\t\t\t\t\t\t WHERE product_vendors_vendor_id=$vendor_id\";\n\t\t\t$ret_product_in_vendor = $db->query($sql_product_in_vendor);\t\n\t\t\t?>\n\t\t\t <tr>\n <td colspan=\"5\" align=\"right\" valign=\"middle\" class=\"tdcolorgray\" ><input name=\"Addmore\" type=\"button\" class=\"red\" id=\"Addmore\" value=\"Assign More\" onclick=\"document.frmAddCountry.fpurpose.value='list_assign_products';document.frmAddCountry.submit();\" />\n\t\t\t\t<a href=\"#\" onmouseover =\"ddrivetip('<?=get_help_messages('EDIT_STAT_GROUP_ASSPROD')?>')\"; onmouseout=\"hideddrivetip()\"><img src=\"images/helpicon.png\" width=\"17\" height=\"13\" border=\"0\" /></a>&nbsp;&nbsp;\n\t\t\t\t<?php\n\t\t\t\tif ($db->num_rows($ret_product_in_vendor))\n\t\t\t\t{\n\t\t\t\t?>\n\t\t\t\t\t<div id=\"productsunassign_div\" class=\"unassign_div\" >\n\t\t\t\t\t&nbsp;&nbsp;&nbsp;<input name=\"products_unassign\" type=\"button\" class=\"red\" id=\"products_unassign\" value=\"Un Assign\" onclick=\"call_ajax_deleteall('product','checkboxproducts[]')\" />\n\t\t\t\t\t<a href=\"#\" onmouseover =\"ddrivetip('<?=get_help_messages('EDIT_STAT_GROUP_UNASSPROD')?>')\"; onmouseout=\"hideddrivetip()\"><img src=\"images/helpicon.png\" width=\"17\" height=\"13\" border=\"0\" /></a>\t\t\t\t\t</div>\t\n\t\t\t\t<?php\n\t\t\t\t}\t\t\t\t\n\t\t\t\t?></td>\n </tr>\n\t\t\t\n\t\t\t<?PHP\t\t\n\t\t\t\t\t\tif ($db->num_rows($ret_products))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$table_headers = array('<img src=\"images/checkbox.gif\" border=\"0\" onclick=\"select_all(document.frmAddCountry,\\'checkboxproducts[]\\')\"/><img src=\"images/uncheckbox.gif\" border=\"0\" onclick=\"select_none(document.frmAddCountry,\\'checkboxproducts[]\\')\"/>','Slno.','Product Name');\n\t\t\t\t\t\t\t$header_positions=array('center','center','left','center');\n\t\t\t\t\t\t\t$colspan = count($table_headers);\n\t\t\t\t\t\t\techo table_header($table_headers,$header_positions); \n\t\t\t\t\t\t\t$cnt = 1;\n\t\t\t\t\t\t\twhile ($row_products = $db->fetch_array($ret_products))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$cls = ($cnt%2==0)?'listingtablestyleA':'listingtablestyleB';\n\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<tr>\n\t\t\t\t\t\t\t\t\t<td width=\"5%\" align=\"center\" class=\"<?php echo $cls?>\"><input type=\"checkbox\" name=\"checkboxproducts[]\" value=\"<?php echo $row_products['map_id'];?>\" /></td>\n\t\t\t\t\t\t\t\t\t<td width=\"5%\" align=\"center\" class=\"<?php echo $cls?>\"><?php echo $cnt++?>.</td>\n\t\t\t\t\t\t\t\t\t<td align=\"left\" class=\"<?php echo $cls?>\"><a href=\"home.php?request=products&fpurpose=edit&checkbox[0]=<?php echo $row_products['product_id'];?>\" class=\"edittextlink\" title=\"Edit\"><?php echo stripslashes($row_products['product_name']);?></a></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t}\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?>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t <td colspan=\"4\" align=\"center\" valign=\"middle\" class=\"norecordredtext_small\">No product Assigned to this Vendor. \n\t\t\t\t\t\t\t\t <input type=\"hidden\" name=\"products_norec\" id=\"products_norec\" value=\"1\" /></td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\t\n</table>\t\n</div>\n\t<?php\t\n\t}", "title": "" }, { "docid": "24e7603e4589a87a38d273abbd8d5ec8", "score": "0.63612896", "text": "function buildProductsDisplay($products){\r\n $pd = '<ul id=\"prod-display\">';\r\n foreach ($products as $product) {\r\n $pd .= '<li><figure>';\r\n $pd .= \"<a href='?action=viewProduct&id=$product[invId]'><h2>$product[invName]</h2>\";\r\n $pd .= \"<img src='$product[invThumbnail]' alt='Image of $product[invName] on Acme.com'></a>\";\r\n $pd .= \"<figcaption><strong>Price:</strong> $$product[invPrice]</figcaption>\";\r\n $pd .= '</figure></li>';\r\n }\r\n $pd .= '</ul>';\r\n return $pd;\r\n }", "title": "" }, { "docid": "5ddef61dd3fef77fb5d35fe510c26763", "score": "0.63535476", "text": "public function productsdetails_get()\n\n {\n\n // $token = $_SERVER['HTTP_TOKEN'];\n\n $p_id = $this->input->get('p_id');\n\n $pf_id = $this->input->get('pf_id');\n\n $data = array(\n\n 'status' => 0,\n\n 'code' => -1,\n\n 'msg' => 'Bad Request',\n\n 'data' => null\n\n );\n\n $getProductDetails = $this->Api_model->getProductDetails($p_id,$pf_id);\n\n if (isset($getProductDetails)) {\n\n $data = array(\n\n 'status' => 1,\n\n 'code' => 1,\n\n 'msg' => 'success',\n\n 'data' => $getProductDetails\n\n );\n\n }else{\n\n $data = array(\n\n 'status' => 1,\n\n 'code' => 1,\n\n 'msg' => 'success',\n\n 'data' => null\n\n );\n\n }\n\n $this->response($data, REST_Controller::HTTP_OK);\n\n }", "title": "" }, { "docid": "6ac3c2ea1822d87d3719949ac756b1ec", "score": "0.6346664", "text": "public function fetch_sales_product_info(){\n\t\t$this->verify();\n\t\t$this->load->library('form_validation');\n\t\t$this->form_validation->set_rules('id', 'ID', 'required|numeric');\n\t\tif($this->form_validation->run()){\n\t\t\t$data['product']= $this->cafeteria_model->fetch_sales_product_info($this->input->post('id'));\n\t\t\t$this->load->view('administrator/products/salesproductInfo', $data);\n\t\t}\n\t}", "title": "" }, { "docid": "236db76ff182c6ad9dc896e444487d0b", "score": "0.63441926", "text": "public function collectImage()\n {\n $products = $this->productsLogic->createCarouselImage($_GET['id']);\n $result = $this->productsLogic->createCarousel($products);\n $product = $this->productsLogic->readProduct($_GET['id']);\n $table = $this->productsLogic->printDetailTable($product);\n\n include 'view/details.php';\n\n }", "title": "" }, { "docid": "5e2f21ebbb8beca75d7c2d552bec391c", "score": "0.6341082", "text": "public function detail($slug = \"\") {\n\t\t// list categories\n\t\t$data['header']['list_categories'] = $this->m_category->get_all_categories();\n\t\t// list brands\n\t\t$data['header']['list_brands'] = $this->m_brand->get_all_brands();\n\t\t// detail brand\n\t\t$brand = $this->m_brand->get_detail(array('brand_slug' => $slug));\n\t\t// data product\n\t\t$where = array('products.brand_id' => $brand['brand_id']);\n\t\t$data['list_products'] = $this->m_product->get_product_by_condition($where);\n\t\t// load view detail product\n\t\t$this->load->view('brand-detail', $data);\n\t}", "title": "" }, { "docid": "723a923c90e583ea5fe6d5baeefb86e9", "score": "0.63408947", "text": "function getProduct();", "title": "" }, { "docid": "077a96de54f895fff65c00922c8f0f50", "score": "0.63342273", "text": "function display_featured_item($product) {\r\n\t$id = $product['item_number'];\r\n\tprint '<table cellpadding=\"15\">\r\n\t\t\t<tr>\r\n\t\t\t\t<td><img width=\"128\" src=\"./display_image.php?item_number='.$id.'\" /></td>\r\n\t\t\t\t<td>\r\n\t\t\t\t\t<p><a href=\"./browse.php?type=brand&value='.$product['brand'].'\">'.$product['brand'].'</a><br />\r\n\t\t\t\t\t<b>'.$product['name'].'</b></p>\r\n\t\t\t\t</td>';\r\n\tprint '<td>'.get_availability_text($product['quantity_available']).'</td>';\r\n\tprint add_remove_for($product);\r\n\tprint \t'</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td></td>\r\n\t\t\t\t<td>Processor: '.$product['processor'].'<br>\r\n\t\t\t\tMemory: '.$product['memory'].'</td>\r\n\t\t\t\t<td>Hard Drive: '.$product['hard_drive'].'<br>\r\n\t\t\t\tScreen Size: '.$product['screen_size'].'<br>\r\n\t\t\t\t</td>\r\n\t\t\t\t<td>weight: <a href=\"./browse.php?type=weight&value='.$product['weight'].'\">'.$product['weight'].'</a>\r\n\t\t\t\t</td></tr>\r\n\t\t\t<tr><td></td><td colspan=\"3\" width=\"550\">'.$product['description'].'</td></tr>\r\n\t\t\t</table>';\r\n}", "title": "" }, { "docid": "49a7785722c5cc472b079ac1a674f947", "score": "0.63331497", "text": "function xxMainBodyContent()\n\t{\t$this->VarDump($this->product->details);\n\t\techo '<div class=\"col3-wrapper\"><h2>', $this->InputSafeString($this->product->details['title']), '</h2>', $this->product->BuyButton(), '</div>';\n\t}", "title": "" }, { "docid": "aa5f2a6a97c62ed7c4939e93140368c6", "score": "0.6318628", "text": "public function detail($slug,$id)\n {\n $products = Product::where('id',$id)->limit(1)->get();\n $gallerys = Gallrey::where('product_id',$id)->get();\n $rating = Rating::where('product_id',$id)->avg('rating');\n $count_rating = Rating::where('product_id',$id)->count('rating');\n $rating = round($rating);\n $category = Category::where('status','=',1)->get();\n //Tăng lượt xem mỗi lẩn click vào page\n $views_product = Product::where('id',$id)->first();\n $views_product->views = $views_product->views +1;\n $views_product->save();\n //create related products\n\n foreach($products as $pro){\n $category_id = $pro->category_id;\n }\n $product_offer= Product::where('category_id',$category_id)->whereNotIn('id',[$id])->paginate(4);\n $data = [\n 'category' => $category,\n 'products' => $products, \n 'gallerys' => $gallerys,\n 'count_rating' => $count_rating,\n 'rating' => $rating,\n 'product_offer' => $product_offer,\n ];\n \n return view('home.page.product_detail',$data);\n }", "title": "" }, { "docid": "feb615afe42de34379ef3bad0c8eb23b", "score": "0.6309793", "text": "function viewProductList(){\n $product = new productModel();\n if(isset($_GET['category'])){\n $product->prodcategory = $_GET['category'];\n }\n\n if(isset($_GET['sales'])){\n $product->prodsortsales = $_GET['sales'];\n }\n\n return $product->viewProdList();\n }", "title": "" }, { "docid": "6afe39bfe9ba1764ecbfb3e92d8cfe2b", "score": "0.6309061", "text": "public function show($product_id,$review_id)\n {\n //\n }", "title": "" }, { "docid": "eb2f825a69cf742077534fa5626f4638", "score": "0.62965435", "text": "public function Detail()\n {\n $idd = $this->uri->segment(3);\n $this->load->model('ProduitsModel');\n $detP = $this->ProduitsModel->ProduitsDet($idd);\n $deVew[\"Produit_detail\"] = $detP;\n $this->load->view('haed');\n $this->load->view('details', $deVew);\n $this->load->view('footer');\n }", "title": "" }, { "docid": "defa113cb284eb27f63796f120b8d6a4", "score": "0.6296388", "text": "protected function product()\n\t{\n\t\t$_slug = preg_replace( '#' . app_setting( 'url', 'shop' ) . 'product/?#', '', uri_string() );\n\n\t\tif ( $_slug ) :\n\n\t\t\t$this->_product_single( $_slug );\n\n\t\telse :\n\n\t\t\tshow_404();\n\n\t\tendif;\n\t}", "title": "" }, { "docid": "b133309480cbab46dafbc1518379c2ec", "score": "0.6290128", "text": "function loadProductDetails() \n{\n if(isset($_GET['id']))\n {\n $id = $_GET['id'];\n $db = $GLOBALS['db'];\n $stmt = $db->query(\"SELECT * FROM drinks WHERE id = '$id'\");\n\n $product = $stmt->fetch(PDO::FETCH_ASSOC);\n\n if(!$product)\n {\n exit('Product does not exist!');\n }\n else\n {\n return $product;\n }\n }\n else\n {\n exit('Product does not exist!');\n }\n}", "title": "" }, { "docid": "8f1bcfc7bb2b54ba526a21ab5ce47e93", "score": "0.6289944", "text": "function list_view()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '区域总代理商品列表';\n $this->global['pageName'] = 'product';\n $this->global['typelist'] = $this->product_util_model->getProductTypeList();\n $this->global['brandlist'] = $this->product_util_model->getProductBrandList();\n $data['searchType'] = '0';\n $data['searchName'] = '';\n $data['searchKind'] = '0';\n $data['searchBrand'] = '0';\n\n $this->loadViews(\"product_manage/product\", $this->global, $data, NULL);\n }\n }", "title": "" }, { "docid": "4851c3bf9fb7c7b8cf6dc21761a4c3f4", "score": "0.6289883", "text": "function loadProduct()\n {\n if (isset($_GET['url']) && $_GET['id']) {\n $url = $_GET['url']; \n $id = $_GET['id']; \n $model = new ProductModel;\n $product = $model->getProductDetail($url, $id); // chi tiêt san pham\n\n if ($product) {\n //load view ok thi \n $title = $product->name;\n\n $data = [\n 'product' => $product,\n ];\n return $this->loadView('product', $title, $data);\n } else {\n header('Location: error.php');\n }\n } else {\n // loi thi tro ve trang bao loi \n header('Location: error.php');\n }\n }", "title": "" }, { "docid": "0ef660a93adba2839d285b69fac4ad7b", "score": "0.62852925", "text": "public function show(product $product){\n //\n }", "title": "" }, { "docid": "99b41d624cf0569216304a6e03701e1e", "score": "0.6273941", "text": "public function page_service() {\n $id = 221;\n if(is_numeric($id) == false) {\n $this->load->view('common/page_404');\n }else {\n $item = $this->model->getDetail($id);\n $data = array(\n \t\t\t'item'=>$item\n \t\t);\n //$this->template->write('title',$item->title);\n \t\t$this->template->write_view('content','FRONTEND/detail',$data);\n \t\t$this->template->render();\n }\n \n \n }", "title": "" }, { "docid": "f61277cc6200c683becdd9c4125d2899", "score": "0.62632173", "text": "function CreateProductList()\n {\n if(!isset($_GET['page'])|| $_GET['page' ]== '1'){\n $startPage = 0;\n $currentPage = 1;\n } else {\n $startPage = ($_GET['page'] - 1) * self::PAGESIZE;\n $currentPage = $_GET['page'];\n }\n $coffeeModel = new CoffeeModel();\n $numberRows = $coffeeModel->CountRows('%');\n $coffeeArray = $coffeeModel->GetCoffeeByType('%', $startPage, self::PAGESIZE);\n\n $this->tpl->assign('numberRows', $numberRows);\n $this->tpl->assign('pageSize', self::PAGESIZE);\n $this->tpl->assign('page', $currentPage);\n $this->tpl->assign('action',$this->action);\n $paging = $this->tpl->fetch('Paging.tpl');\n\n $this->tpl->assign('coffeeArray', $coffeeArray);\n $this->tpl->assign('paging', $paging);\n $result = $this->tpl->fetch('Products.tpl');\n return $result;\n }", "title": "" }, { "docid": "6c129852e31b91e589ff2af89107539e", "score": "0.6261163", "text": "public function product_details(){\n\t\t$editpdata = $this->input->post('editpdata');\n\t\t$this->output\n\t\t\t->set_content_type('application/json')\n\t\t\t->set_output(json_encode(array('status' => 'success','prodetails' => $this->M_product->get_productdetails($editpdata) )));\n\t}", "title": "" }, { "docid": "cc466f646db22d787e12cf584a9775d8", "score": "0.62523", "text": "function chooseWhatToDisplay($page,$image_src){\n\tif(isset($_GET['productId'])){\n \t\t\t\tdisplayOneProduct($_GET['productId'],$image_src,$page);\n \t\t\t\t}\n\tif(isset($_GET['categories'])){\n\t\t\t\t\t\tdisplayByColumnType((int)$_GET['categories'],'product_cat',$page,$image_src);\n\t\t\t\t\t}\n\tif(isset($_GET['brands'])){\n\t\t\t\t\tdisplayByColumnType((int)$_GET['brands'],'product_brand',$page,$image_src);\n\t}\n\tif(isset($_GET['search-button'])){\n\t\t\t\t\tsearchFunction($page,$image_src);\n\t}\n\n}", "title": "" }, { "docid": "a21fc55442d9937573f8705ef02dfe86", "score": "0.6249973", "text": "function load_product_details()\n{\n //the variable $build holds the HTML content that is generated by the function\n\t$build = '';\n\t\n\t//set up a query and execute it\n\t//pull out necessary data from the table and sort descending by product name\n\t$query = \"SELECT product_id, club, details FROM \".TABLE_PRODUCTS.\" ORDER BY club ASC\"; \n $result = mysql_query($query) or die(mysql_error());\n \n\tif(mysql_num_rows($result) == 0)\n {\n\t\t//if there is no data returned, show below message\n\t\t$build .= \"<p><b>No product found.</b></p>\";\n }\n else\n {\n while($row = mysql_fetch_array($result))\n {\n\t\t\t//wrap the entry by HTML\n $build .= \"<h3 class=\\\"product_title\\\">\".$row['club'].\"</h3>\";\n\t\t\t$build .= \"<div>\";\n $build .= \"<p class=\\\"product_image\\\"><img src=\\\"images/\".$row['product_id'].\".jpg\\\" align=\\\"left\\\" hspace=\\\"10\\\" /></p>\";\n $build .= \"<p class=\\\"product_details\\\"><b>Details: </b><br>\".$row['details'].\"</p>\"; \t\t\n $build .= \"</div>\";\n }\n }\n return $build;\n}", "title": "" }, { "docid": "7cf1903e49384d1f2d3cfeb41f716eda", "score": "0.6243529", "text": "function show_catalog_items(){\n\t$val1=0;\n\t$file = file_get_contents('catalog.xml');\n\t$dom = new DOMDocument();\n\t\n\t// load the XML file\n\t$dom->loadXML($file);\n\t\n\t$all_products= $dom->getElementsByTagName('product');\n\t//echo \"length:\" . $all_products->length;\n\t\t\t\t\t\t\t\n $string= '';\n\techo \"<hr />\";\n\techo \"<h2 class='heading'>CATALOG ITEMS</h2>\";\n\tforeach($all_products as $product){\n\t\n\t\n\t if (isset($_REQUEST['page'])) {\n\t$currentPage = $_REQUEST['page'];\n } else {\n\t$currentPage = 0;\n }\n\t\n\t$description = $product->getElementsByTagName('description');\n\t$price = $product->getElementsByTagName('price');\n\t$quantity = $product->getElementsByTagName('quantity');\n\t$image = $product->getElementsByTagName('image_name');\n\t$sale_price = $product->getElementsByTagName('sale_price');\n\t$desc_value= @$description->item(0)->nodeValue;\n\t$price_value= @$price->item(0)->nodeValue;\n\t$quantity_value= @$quantity->item(0)->nodeValue-1;\n\t$image_value= @$image->item(0)->nodeValue;\n\t$sale_value= @$sale_price->item(0)->nodeValue;\n\t//$quantity_value=$quantity_value-1;\n\t\n\t$product_name= $product->getAttribute('name');\n\tif($sale_value==0){\n echo \"<br />\";\n echo \"<a href='permalink.php?item=$val1'>$product_name</a>\";\n echo \"<br />\";\n echo \"<div class='img'> <img src='images/$image_value' height=150 width=140 alt='product image' /> </div>\";\n \n echo \"<strong>Product description: </strong>$desc_value\";\n echo \"<br />\";\n echo \"<strong>Retail price: </strong>\".\"$\".$price_value;\n echo \"<br />\";\n echo \"<strong>Quantity left: </strong>$quantity_value\";\n echo \"<br />\";\n echo \"<form action='index.php?page=\" . ($currentPage ) . \"' method='POST' > <input type='submit' name='add1' value='Add To Cart' /><input type='hidden' name='item1' value = '$val1' /></form>\";\n \n echo \"<br />\";\n echo \"<br />\";\n echo \"<br />\";\n }\n\t//echo $_GET['item'];\n $val1=$val1+1;\n }\n\t\n\t echo \"<form action='index.php' method='POST'>\";\n echo \"<div id='dropdown'>\";\n\techo \"Select number of items to view: <select name='dropdown'> \n <option value='5'>5</option>\n <option value='6'>6</option>\n <option value='7'>7</option>\n <option value='8'>8</option>\n\n </select>\";\n echo \"<input type='submit' name='select' value='Choose' />\";\n\techo \"</div>\";\n echo \"</form>\";\n\n\t if ( isset( $_POST['add1'] )){\n\t $item1= $_POST['item1'];\n\t //echo $item1;\n\t $file = file_get_contents('catalog.xml');\n\t$dom = new DomDocument();\n\t\n\t// load the XML file\n\t$dom->loadXML($file);\n\t$product= $dom->getElementsByTagName('product')->item($item1);\n\t \t\n\t$description = $product->getElementsByTagName('description');\n\t$price = $product->getElementsByTagName('price');\n\t$quantity = $product->getElementsByTagName('quantity');\n\t$image = $product->getElementsByTagName('image_name');\n\t$sale_price = $product->getElementsByTagName('sale_price');\n\t$desc_value= $description->item(0)->nodeValue;\n\t$price_value= $price->item(0)->nodeValue;\n\t$quantity_value= $quantity->item(0)->nodeValue;\n\t$image_value= $image->item(0)->nodeValue;\n\t$sale_value= $sale_price->item(0)->nodeValue;\n\t\n\t$product_name= $product->getAttribute('name');\n \n \n\techo \"<br />\";\n // create a new DomDocument instance\n\t$file1 = 'cart.xml';\n\t$dom1 = new DomDocument();\n\t$dom1->load($file1);\n \n\n\t$products= $dom1->createElement('products');\n\t$prod= $dom1->createElement('product');\n\t\n\t$prod_name=$dom1->createTextNode($product_name);\n\t$prod->appendChild($prod_name);\n\t$products->appendChild($prod);\n\t//$dom1->documentElement->appendChild($prod);\n\t\n\t// $dom1->appendChild($prod);\n\t\n\t$desc=$dom1->createElement('description');\n\t$desc_val=$dom1->createTextNode($desc_value);\n\t$desc->appendChild($desc_val);\n\t$products->appendChild($desc);\n\t\n\t\n\t$price= $dom1->createElement('price');\n\t$price_val= $dom1->createTextNode($price_value);\n\t$price->appendChild($price_val);\n\t$products->appendChild($price);\n\t\n\t$quan=$dom1->createElement('quantity');\n\t$quan_val= $dom1->createTextNode($quantity_value);\n\t$quan->appendChild($quan_val);\n\t$products->appendChild($quan);\n\t\n\t$img= $dom1->createElement('image_name');\n\t$img_val= $dom1->createTextNode($image_value);\n\t$img->appendChild($img_val);\n\t$products->appendChild($img);\n\t\n\t$sale= $dom1->createElement('sale_price');\n\t$sale_val= $dom1->createTextNode($sale_value);\n\t$sale->appendChild($sale_val);\n\t$products->appendChild($sale);\n\t\n\t$dom1->documentElement->appendChild($products);\n\t\n\t$dom1->save($file1);\n\t\n\t$file = file_get_contents('catalog.xml');\n\t$dom6 = new DomDocument();\n\t\n\t// load the XML file\n\t$dom6->loadXML($file);\n\t$product = $dom6->getElementsByTagName('product')->item($item1); \n\t//echo \"Item no is:\" .$item1;\n\t$quantity_value = $quantity_value-1;\n\tif($quantity_value<=0){\n echo \"<h2 class='message'>Can't add item</h2>\";\n $quantity_value=0;\n }\n\t$product->getElementsByTagName('quantity')->item(0)->nodeValue = $quantity_value;\n\t$dom6->save('catalog.xml');\n }\n\t}", "title": "" }, { "docid": "8941d1e48c6e5da457510213f3ef4e42", "score": "0.62346274", "text": "public function test_getDetailProduct(){\r\n $productId = 1;\r\n $_SERVER['REQUEST_METHOD'] = 'GET';\r\n $_GET['product'] = $productId;\r\n $db = new TestCrud();\r\n $db->objToReturn = $this->createProduct($productId);\r\n $pageModel = new PageModel(null, new TestRequest(), 'test.txt');\r\n $productModel = new ProductModel($pageModel, $db);\r\n $productModel->products = null;\r\n \r\n $productModel->getDetailProduct();\r\n \r\n $this->assertNotEmpty($productModel->products, 'is products not empty?');\r\n $this->assertEquals(array($db->objToReturn), $productModel->products, 'contains the products variable the correct product information?');\r\n $this->assertSingleQueryExecuted($db, array('product_id'=> $productId));\r\n \r\n }", "title": "" }, { "docid": "4444b8e5fd254f4960afa5f2995d59ca", "score": "0.6215772", "text": "public function productDetailsShow(){\n if(Auth::check()){\n if(Auth::user()->user == 1){\n $products = ProductAddModel::where('marchent_id', '=', Auth::user()->user_id)->orderBy('id', 'DESC')->get();\n $bnbproducts = ProductAddModel::orderBy('id', 'DESC')->get();\n return view('backend.product.productManage', compact('products', 'bnbproducts'));\n }\n else{\n Session::flash('error', 'Sorry access denied!');\n return redirect::to('home');\n }\n }\n else{\n Session::flash('error', 'Please try again later...');\n return redirect::to('/');\n }\n }", "title": "" }, { "docid": "92c15a05d229a5c38fcfc1022be87f29", "score": "0.62017196", "text": "public function viewProduct($id);", "title": "" }, { "docid": "de4b249c7a48f06af28d20a11336907b", "score": "0.6201208", "text": "function displayStoreProductMore()\n\t{\n\t\t$arrResult \t= \tarray();\n\t\t$StoreID\t=\t$_REQUEST['StoreID'];\n\n\t\tif ($StoreID) {\n\t\t\t//get website color info (added by jessee 080812)\n\t\t\t$query\t=\t\"select * from \" . $this->table. \"template_details where StoreID='$StoreID'\";\n\t\t\t$this -> dbcon -> execute_query($query);\n\t\t\t$arrTemp = $this -> dbcon -> fetch_records(true);\n\t\t\tif (is_array($arrTemp)) {\n\t\t\t\t$arrResult['template']\t=\t$arrTemp[0];\n\t\t\t\t$arrResult['bgcolor'] = $this->getTemplateColor($arrTemp[0]['TemplateBGColor']);\n\t\t\t\t$arrResult['tpl_type']\t=\t$arrTemp[0]['tpl_type'];\n\n\t\t\t\t//get store style\n\t\t\t\t$arrResult['style']\t\t= \t$this -> _displayStoreStype($arrResult['template'], $StoreID);\n\t\t\t}\n\n\t\t\t//get store infomation\n\t\t\t$arrResult['info']\t\t= \t$this -> _displayStoreInfo($arrResult['template'], $StoreID);\n\n\t\t\t$arrResult['template']['subAttrib']\t=\t$arrResult['info']['subAttrib'];\n\n\n\t\t\t$strcategory = \"\";\n\t\t\tif(isset($_REQUEST['STRORE_category'])&&$_REQUEST['STRORE_category']!=\"\"){\n\t\t\t\t$strcategory = \" and t2.fid = {$_REQUEST['STRORE_category']} \";\n\t\t\t}\n\t\t\tif(isset($_REQUEST['sub_category'])&&$_REQUEST['sub_category']!=\"\"){\n\t\t\t\t$strcategory = \" and t2.id = {$_REQUEST['sub_category']} \";\n\t\t\t}\n\t\t\tif(isset($_REQUEST['custom_subcat'])&&$_REQUEST['custom_subcat']!=\"\"){\n\t\t\t\t$strcategory = \" and t1.custom_subcat = '{$_REQUEST['custom_subcat']}' \";\n\t\t\t}\n\n\t\t\tif ($arrResult['tpl_type'] <= 1) {\n\n\t\t\t\t$query\t=\t\"select DISTINCT t1.category,t2.fid,t3.`name` as parentName from `\" . $this->table. \"product` as t1 \".\n\t\t\t\t\" left join `\" . $this->table. \"product_category` as t2 on t1.category = t2.`id` \".\n\t\t\t\t\" left join `\" . $this->table. \"product_category` as t3 on t2.fid = t3.`id` \".\n\t\t\t\t\" where t1.StoreID='$StoreID' $strcategory and t1.deleted='' and t2.fid>0 \".\n\t\t\t\t\" group by t2.`fid` order by t3.name, t2.`sort` \";\n\t\t\t\t$this -> dbcon -> execute_query($query);\n\t\t\t\t$arrTemp = $this -> dbcon -> fetch_records(true);\n\n\t\t\t\tif (is_array($arrTemp)) {\n\t\t\t\t\t//get store others item\n\t\t\t\t\t$arrProduct\t=\t$this -> __displayStoreItemsProduct($arrResult['template'],$StoreID, 0, false, false,1);\n\t\t\t\t\tif(isset($arrProduct['linkStr'])){\n\t\t\t\t\t\t$tmplinkStr = $arrProduct['linkStr'];\n\t\t\t\t\t}\n\t\t\t\t\tif (is_array($arrProduct)) {\n\t\t\t\t\t\t$i=0;\n\t\t\t\t\t\tforeach ($arrTemp as $temp){\n\n\t\t\t\t\t\t\t$j = 0;\n\t\t\t\t\t\t\tforeach ($arrProduct as $temp1){\n\t\t\t\t\t\t\t\tif(isset($_REQUEST['sub_category'])&&$_REQUEST['sub_category']!=\"\"){\n\t\t\t\t\t\t\t\t\tif ($temp[\"category\"] == $temp1[\"category\"]) {\n\t\t\t\t\t\t\t\t\t\t$urlParam = \"StoreID=$StoreID&cp=disprodes&proid=\".$temp1['pid'];\n\t\t\t\t\t\t\t\t\t\t// comment by jessee 080805 for listing problem\n\t\t\t\t\t\t\t\t\t\t//$temp1['description']\t=\tsubStoreDetail($temp1['description'],$urlParam,110,80,'soc.php?');\n\t\t\t\t\t\t\t\t\t\t$temp1['description'] = strip_tags($temp1['description']);\n\t\t\t\t\t\t\t\t\t\t$desc_length = strlen($temp1['description']);\n\t\t\t\t\t\t\t\t\t\t$temp1['description'] = interceptChar($temp1['description'],110,true);\n\t\t\t\t\t\t\t\t\t\t$temp1['description'] = str_replace('&nbsp;', ' ', $temp1['description']);\n\n\t\t\t\t\t\t\t\t\t\tif ($desc_length > 110){\n\t\t\t\t\t\t\t\t\t\t\t//$temp1['description'].= ' &nbsp; <a href=\"soc.php?'.$urlParam.'\" style=\"display:inline\">more&gt;&gt;</a>';\n\t\t\t\t\t\t\t\t\t\t\t$temp1['description'].= ' &nbsp; <a href=\"/'.$arrResult['info']['bu_urlstring'].'/'.$temp1['url_item_name'].'\" style=\"display:inline\">more&gt;&gt;</a>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif ($j % 2 == 1) {\n\t\t\t\t\t\t\t\t\t\t\t$temp1['bgcHas']\t=\ttrue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$arrProList[$i]['product'][$j]\t=\t$temp1;\n\n\t\t\t\t\t\t\t\t\t\t$j++;\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tif ($temp[\"fid\"] == $temp1[\"fid\"]) {\n\t\t\t\t\t\t\t\t\t\t$urlParam = \"StoreID=$StoreID&cp=disprodes&proid=\".$temp1['pid'];\n\t\t\t\t\t\t\t\t\t\t// comment by jessee 080805 for listing problem\n\t\t\t\t\t\t\t\t\t\t//$temp1['description']\t=\tsubStoreDetail($temp1['description'],$urlParam,110,80,'soc.php?');\n\t\t\t\t\t\t\t\t\t\t$temp1['description'] = strip_tags($temp1['description']);\n\t\t\t\t\t\t\t\t\t\t$desc_length = strlen($temp1['description']);\n\t\t\t\t\t\t\t\t\t\t$temp1['description'] = interceptChar($temp1['description'],110,true);\n\t\t\t\t\t\t\t\t\t\t$temp1['description'] = str_replace('&nbsp;', ' ', $temp1['description']);\n\t\t\t\t\t\t\t\t\t\tif ($desc_length > 110){\n\t\t\t\t\t\t\t\t\t\t\t//$temp1['description'].= ' &nbsp; <a href=\"soc.php?'.$urlParam.'\" style=\"display:inline\">more&gt;&gt;</a>';\n\t\t\t\t\t\t\t\t\t\t\t$temp1['description'].= ' &nbsp; <a href=\"/'.$arrResult['info']['bu_urlstring'].'/'.$temp1['url_item_name'].'\" style=\"display:inline\">more&gt;&gt;</a>';\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tif ($j % 2 == 1) {\n\t\t\t\t\t\t\t\t\t\t\t$temp1['bgcHas']\t=\ttrue;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t$arrProList[$i]['product'][$j]\t=\t$temp1;\n\n\t\t\t\t\t\t\t\t\t\t$j++;\n\n\t\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}\n\t\t\t\t\t\t\tif($j!=0){\n\t\t\t\t\t\t\t\t$arrProList[$i]['name']\t=\t$temp['parentName'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$i ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$arrProList\t=\t$this -> __displayStoreItemsProductByOther($arrResult['template'],$StoreID,0,false,25);\n\t\t\t}\n\t\t\t$arrResult[\"product\"]\t=\t$arrProList;\n\t\t\tunset($arrProduct);\n\n $time = time();\n\n\t\t\tif(isset($_REQUEST['STRORE_category'])&&$_REQUEST['STRORE_category']!=\"\"){\n\t\t\t\t$subcat_query = \"SELECT DISTINCT cat.id,cat.fid,cat.name FROM `\" . $this->table. \"product` AS `product`\n\t\t\t\t\tLEFT JOIN `\" . $this->table. \"product_category` AS `cat` ON cat.id = product.category\n\t\t\t\t\tLEFT JOIN `\" . $this->table. \"bu_detail` AS `detail` ON detail.StoreID = product.StoreID\n LEFT JOIN `\" . $this->table. \"product_auction` as auction on product.pid = auction.pid\n\t\t\t\t\tWHERE product.Deleted = ''\n AND IF(product.is_auction='yes',auction.end_stamp>$time AND auction.starttime_stamp <=$time ,1)\n\t\t\t\t\tAND NOT(detail.bu_name IS NULL)\n\t\t\t\t\tAND detail.CustomerType = 'seller'\n\t\t\t\t\tAND detail.StoreID = $StoreID\n\t\t\t\t\tAND cat.fid = {$_REQUEST['STRORE_category']}\n\t\t\t\t\tORDER BY cat.name ASC;\";\n\t\t\t\t$this->dbcon->execute_query($subcat_query);\n\t\t\t\t$subcatResult = $this->dbcon->fetch_records(true);\n\t\t\t}\n\n\t\t\t$custom_subcat_query = \"SELECT DISTINCT custom_subcat AS name FROM `\" . $this->table. \"product` AS `product`\n\t\t\t\tLEFT JOIN `\" . $this->table. \"product_category` AS `cat` ON cat.id = product.category\n\t\t\t\tLEFT JOIN `\" . $this->table. \"product_category` AS `cat2` ON cat.fid = cat2.id\n\t\t\t\tLEFT JOIN `\" . $this->table. \"bu_detail` AS `detail` ON detail.StoreID = product.StoreID\n\t\t\t\tLEFT JOIN \".$this->table.\"product_auction as auction on product.pid = auction.pid\n\t\t\t\tWHERE product.Deleted = ''\n\t\t\t\tAND IF(product.is_auction='yes',auction.end_stamp>$time AND auction.starttime_stamp <=$time ,1)\n\t\t\t\tAND product.custom_subcat!=''\n\t\t\t\tAND NOT(detail.bu_name IS NULL)\n\t\t\t\tAND detail.CustomerType = 'seller'\n\t\t\t\tAND detail.StoreID = $StoreID\n\t\t\t\tORDER BY cat2.name ASC;\";\n\t\t\t$this->dbcon->execute_query($custom_subcat_query);\n\t\t\t$customSubcatResult = $this->dbcon->fetch_records(true);\n\n\t\t\t$category_query = \"SELECT DISTINCT cat2.id, cat2.name FROM `\" . $this->table. \"product` AS `product`\n\t\t\t\tLEFT JOIN `\" . $this->table. \"product_category` AS `cat` ON cat.id = product.category\n\t\t\t\tLEFT JOIN `\" . $this->table. \"product_category` AS `cat2` ON cat.fid = cat2.id\n\t\t\t\tLEFT JOIN `\" . $this->table. \"bu_detail` AS `detail` ON detail.StoreID = product.StoreID\n\t\t\t\tLEFT JOIN \".$this->table.\"product_auction as auction on product.pid = auction.pid\n\t\t\t\tWHERE product.Deleted = ''\n\t\t\t\tand IF(product.is_auction='yes',auction.end_stamp>$time AND auction.starttime_stamp <=$time ,1)\n\t\t\t\tAND NOT(detail.bu_name IS NULL)\n\t\t\t\tAND detail.CustomerType = 'seller'\n\t\t\t\tAND detail.StoreID = $StoreID\n\t\t\t\tORDER BY cat2.name ASC;\";\n\t\t\t$this->dbcon->execute_query($category_query);\n\t\t\t$categoriesResult = $this->dbcon->fetch_records(true);\n\n\t\t\t$categories = array();\n\t\t\tif (!empty($categoriesResult)) {\n\t\t\t\tforeach ($categoriesResult as $category) {\n\t\t\t\t\tif ($category['id'] && $category['name']) {\n\t\t\t\t\t\t$categories[] = array('id' => $category['id'], 'name' => $category['name']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$subcat = array();\n\t\t\tif (!empty($subcatResult)) {\n\t\t\t\tforeach ($subcatResult as $sub_category) {\n\t\t\t\t\tif ($sub_category['id'] && $sub_category['name']) {\n\t\t\t\t\t\t$subcat[] = array('id' => $sub_category['id'], 'name' => $sub_category['name']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$arrResult['categories'] = $categories;\n\t\t\t$arrResult['subcat'] = $subcat;\n\t\t\t$arrResult['custom_subcat'] = $customSubcatResult;\n\t\t\tif(isset($_REQUEST['STRORE_category'])&&$_REQUEST['STRORE_category']!=\"\"){\n\t\t\t\t$arrResult['select_category'] = $_REQUEST['STRORE_category'];\n\t\t\t}\n\t\t\tif(isset($_REQUEST['sub_category'])&&$_REQUEST['sub_category']!=\"\"){\n\t\t\t\t$arrResult['select_subcategory'] = $_REQUEST['sub_category'];\n\t\t\t}\n\t\t\tif(isset($_REQUEST['custom_subcat'])&&$_REQUEST['custom_subcat']!=\"\"){\n\t\t\t\t$arrResult['select_customsubcat'] = $_REQUEST['custom_subcat'];\n\t\t\t}\n\n\t\t}\n\n\t\t$arrResult['linkStr'] = $tmplinkStr;\n\n\t\treturn $arrResult;\n\t}", "title": "" }, { "docid": "2ae9ad8dcf97b7880f1f4723c24ee13e", "score": "0.62011766", "text": "public function orderProductDetails($id)\n {\n \n \t$repo = $this->em->getRepository('App\\Entity\\Commerce\\OrderProduct');\n \t$orderRepo = $this->em->getRepository('App\\Entity\\Commerce\\Order');\n \t$results = $repo->getCustomOrder(array('op_id'=> $id));\n \tif(isset($results[0])){\n \t\t$order = $orderRepo->getOrderById($results[0]['orderId']);\n \n \t\treturn view('pages.orders.order-product')->with('data', array('order' => $order, 'orderP'=> $results[0]));\n \t}\n \treturn view('pages.error.not-found');\n \t\n }", "title": "" }, { "docid": "41fe62977b3130c1bcdbad3dd9ee74d3", "score": "0.61892265", "text": "function getAllComPro(){\n\t global $conn;\n\tif (isset($_GET['comProName'])){\n \n\t $proCom = $_GET['comProName'];\n\t\n\t$SearchProCom = \"SELECT *FROM Product WHERE CompanyName='$proCom'\";\n\t$resultSearchProCom = mysqli_query($conn, $SearchProCom);\n\tif ((mysqli_num_rows($resultSearchProCom ))>0){\n\twhile($rowProCom=mysqli_fetch_array($resultSearchProCom)){\n\t\n\t\n\t\t$newName = $rowProCom['ProductName'];\n\t\t$newPrice = $rowProCom['Price'];\n\t\t$newImg = $rowProCom['image'];\n\t\t$newID = $rowProCom['ProductID'];\n\t\techo\"<div class='col-sm-3'>\n <div class='panel panel-primary'>\n <div class='panel-body'><a href='details.php?proID=$newID'><img src='$newImg' alt='Image' style='width:200px; height:200px; border:1px solid black'></a></div>\n <div class='panel-footer'>$newName</div>\n <div class='panel-footer'>£ $newPrice</div>\n </div>\n </div>\";\n\t\t\t\n\t\t\n\t}\n\n\t} else {\n\t\techo\"there is no product available under this company\";\n\t}\n\n\t\n} \n}", "title": "" }, { "docid": "fb15bfddb59dc265ba4e253f1b6be214", "score": "0.6187892", "text": "public function sales_product(){\n\t\t$this->verify();\n\t\t$data['title']=$this->cafeteria_model->fetch_cafeteria()->NAME.\" :: Sales Products\";\n\t\t$data['products']=$this->cafeteria_model->fetch_product_list();\n\t\t$this->load->view('administrator/parts/head',$data);\n\t\t$this->load->view('administrator/products/salesProduct',$data);\n\t\t$this->load->view('administrator/parts/bottom',$data);\n\t}", "title": "" }, { "docid": "6107dcd8f8b76a64113610762b1f3708", "score": "0.6183959", "text": "public function product($urlParams) {\n $product = $this->dbData->getProductDetailsJoinedCategoryAndBrand($urlParams['id']);\n \n $productId = $urlParams['id'];\n $this->show('product', [\n 'productId' => $productId,\n 'product' => $product\n ]);\n }", "title": "" }, { "docid": "1fc4794bfa920d0bb7f30134f842bb33", "score": "0.61701965", "text": "function getcatproduct()\n {\n\t\tglobal $con;\n\t\tif(isset($_GET['cat'])){\n\t\t$cata= \t$_GET['cat'];\t\n\t\t$gettingcatproduct=\"select * from products where product_catagory='$cata'\"; \n\n\t\t$run_cat_pro= mysqli_query($con,$gettingcatproduct);\n \n\t\twhile ($row_cat_product = mysqli_fetch_array($run_cat_pro))\n\t\t {\n\t\t\t$Product_id = $row_cat_product['product_id'];\n\t\t\t$Product_catagory = $row_cat_product['product_catagory'];\n\t\t\t$Product_title = $row_cat_product['product_title'];\n\t\t\t$Product_price = $row_cat_product['product_price'];\n\t\t\t$Product_description = $row_cat_product['product_description'];\n\t\t\t$Product_image = $row_cat_product['product_image'];\n\n\t\t\techo \" <div id='single_product'>\n\t\t\t\t\t<h3>$Product_title</h3>\n\t\t\t\t\t<img src='admin_area/product_images/$Product_image' width=180px;height=180px;/>\n\t\t\t\t\t<p><strong> Price :$Product_price tk</strong></p>\n\t\t\t\t\t<a href='details.php?product_id=$Product_id' float:left >Details</a>\n\t\t\t\t\t\n\t\t\t\t </div>\";\n\n\t\t }\n\t}\n}", "title": "" }, { "docid": "146c9dcbb4d59af47b23f14f79d87158", "score": "0.616066", "text": "function listProducts($page,$image_src){\n\n\t$conn = OpenConnection();\n\t$result = $conn->query('select product_id,product_title,product_image,product_price,product_cat,product_brand from products');\n\tcloseConnection($conn);\n\t\tif ($result->num_rows > 0) {\n\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\techo '<div class=\"item-card\">\n\t\t\t\t\t<br><br>\n\n\t\t\t\t\t<center>\n\t\t\t\t\t\t<img src=\"'.$image_src.''.$row['product_image'].'\" height=\"150\" width=\"150\" alt=\"\">\n\t\t\t\t\t\t<p>'.$row['product_title'].'</p>\n\t\t\t\t\t\t<p>Price: GHS '.$row['product_price'].'.00</p>\n\t\t\t\t\t</center>\n\t\t\t\t\t\n\t\t\t\t\t<form method=\"post\" class=\"add-to-cart-form\">\n\t\t\t\t\t\t\t<input type=\"hidden\" name=\"cart-item\" value='.$row['product_id'].'>\n\t\t\t\t\t\t\t<br>\n\t\t\t\t\t\t\t<input type=\"submit\" name=\"add-to-cart\" value=\"add to cart\" class=\"add-to-cart\">\n\t\t\t\t\t\t\n\t\t\t\t\t\tQuantity:\t<select name=\"quantity\">\n\t\t\t\t\t\t\t\t\t\t<option value=1 selected>1</option>\n\t\t\t\t\t\t\t\t\t\t<option value=2>2</option>\n\t\t\t\t\t\t\t\t\t\t<option value=3>3</>\n\t\t\t\t\t\t\t\t\t\t<option value=4>4</option>\n\t\t\t\t\t\t\t\t\t\t<option value=5>5</option>\n\t\t\t\t\t\t\t\t\t</select>\n\t\t\t\t\t</form>\n\t\t\t\t\t<a href=\" '.$page.'.php?productId='.$row['product_id'].' \">View</a>\t\n\t\t\t\t\t\t<br><br>\n\t\t\t\t</div>';\n\t\t}\n\t}\n\n}", "title": "" }, { "docid": "80b72937b276b8fa7e8761623c8285d2", "score": "0.6154167", "text": "public function show(product $product)\n {\n\n }", "title": "" }, { "docid": "2a637784fbf0238c09eb18577947fc1c", "score": "0.6153298", "text": "function admin_listing(){\r\r\n \t\t\r\r\n\t\t$this->layout='backend/backend';\r\r\n\t\t$this->set(\"title_for_layout\",PRODUCT_LISTING);\r\r\n\t\t\r\r\n\t\t$category_list = $this->find_categories_list();\r\r\n\t\t$this->set(\"category_list\",$category_list);\r\r\n\t\t\r\r\n\t\t$vendor_list = $this->find_vendor_listing();\r\r\n\t\t$this->set(\"vendor_list\",$vendor_list);\r\r\n\t\t\r\r\n\t\t$conditions=array(\"Product.is_deleted\"=>0);\r\r\n\t\t\r\r\n\t\t$title = isset($this->params['url']['title'])?$this->params['url']['title']:(isset($this->params['named']['title'])?$this->params['named']['title']:\"\");\r\r\n\t\tif(trim($title) != \"\"){\r\r\n\t\t\t$conditions = array_merge($conditions ,array(\"Product.title like\"=>\"%\".trim($title).\"%\"));\r\r\n\t\t}\t\t\r\r\n\t\t\r\r\n\t\t$is_active = isset($this->params['url']['is_active'])?trim($this->params['url']['is_active']):(isset($this->params['named']['is_active'])?$this->params['named']['is_active']:\"\");\r\r\n\t\tif(trim($is_active) != \"\"){\r\r\n\t\t\t$conditions = array_merge($conditions ,array(\"Product.is_active\"=>$is_active));\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\t$from = isset($this->params['url']['from'])?$this->params['url']['from']:(isset($this->params['named']['from'])?$this->params['named']['from']:\"\");\r\r\n\t\t$to = isset($this->params['url']['to'])?$this->params['url']['to']:(isset($this->params['named']['to'])?$this->params['named']['to']:\"\");\r\r\n \r\r\n\t\tif(trim($from) != \"\"){\r\r\n\t\t\t$from = $this->covertToSystemDate($from);\r\r\n\t\t\t$conditions = array_merge($conditions ,array(\"DATE_FORMAT(Product.created,'%Y-%m-%d') >=\"=>trim($from)));\r\r\n\t\t}\r\r\n\t\tif(trim($to) != \"\"){\r\r\n\t\t\t$to = $this->covertToSystemDate($to);\r\r\n\t\t\t$conditions = array_merge($conditions ,array(\"DATE_FORMAT(Product.created,'%Y-%m-%d') <=\"=>trim($to)));\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\t$sort = isset($this->params['url']['sort'])?$this->params['url']['sort']:(isset($this->params['named']['sort'])?$this->params['named']['sort']:\"created\");\r\r\n\t\t\r\r\n\t\t$direction = isset($this->params['url']['direction'])?$this->params['url']['direction']:(isset($this->params['named']['direction'])?$this->params['named']['direction']:\"desc\");\r\r\n\t\t$order = $sort.\" \".$direction;\r\r\n\t\t\r\r\n\t\t$lt = (isset($this->params['url']['lt']) && ($this->params['url']['lt'] != \"\"))?$this->params['url']['lt']:((isset($this->params['named']['lt']) && ($this->params['named']['lt'] != \"\"))?$this->params['named']['lt']:PRODUCT_LIMIT);\r\r\n\t\t\r\r\n\t\t\r\r\n\t\t$this->paginate = array(\"recursive\"=>-1,'limit' =>$lt,'conditions'=>$conditions,'order' =>$order);\r\r\n\t\t\r\r\n\t\t$product_data = $this->paginate('Product'); \r\r\n\t\t$this->set('product_data',$product_data);\r\r\n\t\t\r\r\n\t\t$csv_export = isset($this->params['url']['export_to_csv'])?$this->params['url']['export_to_csv']:(isset($this->params['named']['export_to_csv'])?$this->params['named']['export_to_csv']:\"paginate\");\r\r\n\t\tif($csv_export==\"csv\"){\r\r\n\t\t $this->layout = \"\";\r\r\n\t\t $this->generate_product_report_csv($product_data);\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\t$pdf_export = isset($this->params['url']['export_to_pdf'])?$this->params['url']['export_to_pdf']:(isset($this->params['named']['export_to_pdf'])?$this->params['named']['export_to_pdf']:\"paginate\");\r\r\n\t\tif($pdf_export == \"pdf\"){\r\r\n\t\t\t$this->layout = \"\";\r\r\n\t\t\t$this->generate_product_report_pdf($product_data);\r\r\n\t\t}\r\r\n\t}", "title": "" }, { "docid": "17e1ade2511f4f19086d4375e9448203", "score": "0.61462176", "text": "public function addProductDetailsAction() {\n $adminModel = Admin_Model_Users::getInstance();\n $result = $adminModel->getAdminDetails(); // showing image\n if ($result) {\n $this->view->admindetails = $result;\n }\n $productsModel = Admin_Model_Products::getInstance();\n $agentModel = Admin_Model_Agents::getInstance();\n $agentdetails = $agentModel->getAgentsDetails();\n if ($agentdetails) {\n $this->view->agentlist = $agentdetails;\n }\n if ($this->_request->isPost()) {\n\n $productdata['agent_id'] = $this->getRequest()->getPost('agent_id');\n $productdata['hotel_id'] = $this->getRequest()->getPost('hotel_id');\n $productdata['item_type'] = $this->getRequest()->getPost('item_type');\n $productdatatype = $this->getRequest()->getPost('product_type');\n $productdatatype1 = $this->getRequest()->getPost('product_type1');\n $productdata['prod_type'] = $productdatatype . \",\" . $productdatatype1 . \"\";\n $productdata['category_id'] = $this->getRequest()->getPost('category_id');\n $productdata['cuisine_id'] = $this->getRequest()->getPost('cusine_id');\n $productdata['name'] = $this->getRequest()->getPost('name');\n $productdata['prod_desc'] = $this->getRequest()->getPost('prod_desc');\n $productdata['imagelink'] = $this->getRequest()->getPost('imagelink');\n $productdata['cost'] = $this->getRequest()->getPost('cost');\n $productdata['product_discount'] = $this->getRequest()->getPost('product_discount');\n $productdata['product_discount_type'] = $this->getRequest()->getPost('product_discount_type');\n $productdata['delivery_time'] = $this->getRequest()->getPost('delivery_time');\n $productdata['prod_status'] = $this->getRequest()->getPost('prod_status');\n $productdata['servicetax'] = $this->getRequest()->getPost('servicetax');\n\n if ($productdata) {\n $productId = $productsModel->addProductsdetails($productdata);\n\n if ($productId) {\n $coverphoto = $_FILES[\"fileToUpload\"][\"name\"];\n $dirpath = getcwd() . \"/assets/productimages/$productId/\";\n if (!file_exists($dirpath)) {\n mkdir($dirpath, 0777, true);\n }\n if (!empty($coverphoto)) {\n $imagepath = $dirpath . $coverphoto;\n $savepath = \"/assets/productimages/$productId/$coverphoto\";\n $imageTmpLoc = $_FILES[\"fileToUpload\"][\"tmp_name\"];\n $ext = pathinfo($coverphoto, PATHINFO_EXTENSION);\n if ($ext != \"jpg\" && $ext != \"png\" && $ext != \"jpeg\" && $ext != \"gif\") {\n echo json_encode(\"Something went wrong image upload\");\n } else {\n $imagemoveResult = (move_uploaded_file($_FILES[\"fileToUpload\"][\"tmp_name\"], $imagepath));\n if ($imagemoveResult) {\n $link = $this->_appSetting->hostLink;\n $product['imagelink'] = $link . $savepath;\n $result3 = $productsModel->updateProductsdetails($productId, $product);\n if ($result3) {\n $this->redirect('/admin/product-details');\n } else {\n $this->view->errormessage = 'Product image not updated ';\n }\n } else {\n $this->view->errormessage = 'Product image not updated ';\n }\n }\n } else {\n $this->redirect('/admin/product-details');\n }\n }\n }\n }\n }", "title": "" }, { "docid": "a224e3b37ad52a025098610db58adfd3", "score": "0.6143891", "text": "function getproductdata()\n\t\t{\n\t\t\t$productdata['allproducts'] = $this->ProductModel->GetProductDetail();\n\t\t\t\n\t\t\t//echo '<pre>';\t\n\t\t\t//print_r($productdata);\n\t\t\t//echo \"</pre>\";\n\t\t}", "title": "" }, { "docid": "8e1a03fca576752ee458c3f1e57b9c9f", "score": "0.6141683", "text": "function showitem($Id)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '商品详情';\n $this->global['pageName'] = 'product_detail';\n $this->global['typelist'] = $this->product_util_model->getProductTypeList();\n $data['empty'] = NULL;\n\n $product = $this->getProductInfo($Id);\n\n $this->global['product'] = $product;\n $this->loadViews(\"product_manage/product_detail\", $this->global, $data, NULL);\n }\n }", "title": "" }, { "docid": "def23ef77454ca9972ac502b4a43bc96", "score": "0.61335814", "text": "function getBrandPro(){\n \n global $db;\n \n if(isset($_GET['brand'])){\n \n $brand_id= $_GET['brand'];\n \n $get_products = \"select * from products where brand_id='$brand_id'\";\n \n $run_products = mysqli_query($db, $get_products);\n \n $count = mysqli_num_rows($run_products);\n if($count==0){\n echo \"<h2>No Products found in this brand!</h2>\";\n }\n \n while($row_products = mysqli_fetch_array($run_products)){\n \n $pro_id = $row_products['product_id'];\n $pro_title = $row_products['product_title'];\n $pro_desc = $row_products['product_desc'];\n $pro_price = $row_products['product_price'];\n $pro_image = $row_products['product_img1'];\n \n \n echo \"\n <div id='single_product'>\n \n <h3>$pro_title</h3>\n \n <img src='admin_area/product_images/$pro_image' width='180' height='180' /><br>\n \n <p><b> Price:€$pro_price</b></p>\n <a href='details.php?pro_id=$pro_id' style='float:left;'>Details</a>\n \n <a href='index.php?add_cart=$pro_id'><button style='float:right;'>Add to Cart</button></a>\n \n </div>\n \n \";\n \n }\n \n }\n \n}", "title": "" }, { "docid": "73511ee06c8144a602c31c505696f13f", "score": "0.61277694", "text": "public function fetch_sales_product_list_current(){\n\t\t$data['products']=$this->cafeteria_model->fetch_sales_product_list(date('Y-m-d'));\n\t\t$this->load->view('administrator/products/salesproductList', $data);\t\n\t}", "title": "" }, { "docid": "ab33e46688c8448380a0a22b507d5783", "score": "0.6125115", "text": "public function _printPage() {\n\t\tglobal $page;\n\t\tif (isset($this->params_url[1]) && $this->params_url[1] == 'save') {\n\t\t\t$this->saveCart();\n\t\t} else if (isset($this->params_url[1]) && $this->params_url[1] == 'getorderedproducts') {\n\t\t\t$this->getOrderedProducts();\n\t\t} else {\n\t\t\t$head_include = array('<script type=\"text/javascript\"> order.base_path = \\''._BASEPATH.'\\'; </script>');\n\t\t\tdefine('_ISORDER', true);\n\t\t\t$breadcrumb = array(array('url' => '/order/', 'title' => 'Ordini'));\n\t\t\t$logged = $page->checkLogin();\n\t\t\tlist($oid, $shippable) = $this->getShippableOrder(true);\n\t\t\t$order = new Order($oid);\n\t\t\tif ($order->exists()) {\n\t\t\t\t$id_user = \\User::getLoggedUser();\n\t\t\t\t$is_closed = in_array($order->get('status'), array(Order::STATUS_DELIVERING, Order::STATUS_DELIVERED));\n\t\t\t\t$has_actual_qty = false;\n\t\t\t\tif ($is_closed) {\n\t\t\t\t\tif (isset($_POST['product_vote'])) {\n\t\t\t\t\t\t$this->saveVotes($order);\n\t\t\t\t\t}\n\t\t\t\t\t$p = new Product();\n\t\t\t\t\t$products = $p->getList(array(\n\t\t\t\t\t\t'select' => array(\n\t\t\t\t\t\t\tarray('value' => 'products.*', 'no_quote' => true),\n\t\t\t\t\t\t\t'carts.qty',\n\t\t\t\t\t\t\t'carts.actual_qty',\n\t\t\t\t\t\t\t'carts.waste',\n\t\t\t\t\t\t\t'carts.vote',\n\t\t\t\t\t\t\t'carts.vote_descr'\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'join' => array(\n\t\t\t\t\t\t\t'carts' => array('carts.product', 'products.id'),\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'where' => array(\n\t\t\t\t\t\t\tarray('field' => 'carts.order', 'value' => $order->get('id')),\n\t\t\t\t\t\t\tarray('field' => 'carts.user', 'value' => $id_user)\n\t\t\t\t\t\t)\n\t\t\t\t\t));\n\t\t\t\t\tunset($p);\n\t\t\t\t\tif ($order->get('status') == Order::STATUS_DELIVERING) {\n\t\t\t\t\t\t$oe = new OrderExporter($order->get('id'));\n\t\t\t\t\t\t$json = @json_decode($oe->getCurrentExport('json'), true);\n\t\t\t\t\t\tunset($oe);\n\t\t\t\t\t\t$export_json_qty = is_array($json) && isset($json['qty']) && is_array($json['qty']) && isset($json['qty'][$id_user]) && is_array($json['qty'][$id_user]) ? $json['qty'][$id_user] : array();\n\t\t\t\t\t\tunset($json);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$export_json_qty = array();\n\t\t\t\t\t}\n\t\t\t\t\t$price_total = 0;\n\t\t\t\t\t$counter = count($products);\n\t\t\t\t\tfor ($i = 0; $i < $counter; $i++) {\n\t\t\t\t\t\tif (!is_null($products[$i]['actual_qty'])) {\n\t\t\t\t\t\t\t$has_actual_qty = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($order->get('status') == Order::STATUS_DELIVERING) {\n\t\t\t\t\t\t\t$products[$i]['export_qty'] = isset($export_json_qty[$products[$i]['id']]) && is_numeric($export_json_qty[$products[$i]['id']])\n\t\t\t\t\t\t\t\t? floatval($export_json_qty[$products[$i]['id']])\n\t\t\t\t\t\t\t\t: 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$products[$i]['price_total'] = $products[$i]['price'] * $products[$i]['actual_qty'];\n\t\t\t\t\t\t$price_total += $products[$i]['price_total'];\n\t\t\t\t\t}\n\t\t\t\t\tunset($i, $counter, $export_json_qty);\n\t\t\t\t\t$extras = \\DB::queryRows(\\DB::createSql(array(\n\t\t\t\t\t\t'table' => 'carts_extras',\n\t\t\t\t\t\t'where' => array(\n\t\t\t\t\t\t\tarray('field' => 'order', 'value' => $order->get('id')),\n\t\t\t\t\t\t\tarray('field' => 'user', 'value' => $id_user)\n\t\t\t\t\t\t),\n\t\t\t\t\t\t'order' => array(\n\t\t\t\t\t\t\t'extra' => 'ASC'\n\t\t\t\t\t\t)\n\t\t\t\t\t)));\n\t\t\t\t\tif (is_array($extras)) {\n\t\t\t\t\t\t$counter = count($extras);\n\t\t\t\t\t\tfor ($i = 0; $i < $counter; $i++) {\n\t\t\t\t\t\t\tif ($extras[$i]['extra'] != 'XV' || $extras[$i]['qty'] != 0) {\n\t\t\t\t\t\t\t\t$arr = array(\n\t\t\t\t\t\t\t\t\t'title' => $extras[$i]['title'],\n\t\t\t\t\t\t\t\t\t'um' => $extras[$i]['um'],\n\t\t\t\t\t\t\t\t\t'qty' => $extras[$i]['qty'],\n\t\t\t\t\t\t\t\t\t'actual_qty' => $extras[$i]['qty'],\n\t\t\t\t\t\t\t\t\t'price' => $extras[$i]['price'],\n\t\t\t\t\t\t\t\t\t'price_total' => $extras[$i]['price'] * $extras[$i]['qty']\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t$products[] = $arr;\n\t\t\t\t\t\t\t\t$price_total += $arr['price_total'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tunset($arr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($i, $counter);\n\t\t\t\t\t}\n\t\t\t\t\tunset($extras);\n\t\t\t\t} else {\n\t\t\t\t\t/*if ($is_closed) {\n\t\t\t\t\t\t$orderObj = new OrderExporter($order->get('id'));\n\t\t\t\t\t\t$orderObj->downloadCurrentExport('html');\n\t\t\t\t\t\tunset($orderObj);\n\t\t\t\t\t}*/\n\t\t\t\t\t$pt = new ProductType();\n\t\t\t\t\t$arr = $pt->getList();\n\t\t\t\t\tunset($pt);\n\t\t\t\t\t$types = array();\n\t\t\t\t\t$counter = count($arr);\n\t\t\t\t\tfor ($i = 0; $i < $counter; $i++) {\n\t\t\t\t\t\t$types[$arr[$i]['id']] = $arr[$i];\n\t\t\t\t\t}\n\t\t\t\t\tunset($i, $counter, $arr);\n\t\t\t\t\t$price_total = 0;\n\t\t\t\t\t$c = new Category();\n\t\t\t\t\t$categories = $c->getList(array(\n\t\t\t\t\t\t'where' => array(array('field' => 'order', 'value' => $order->get('id'))),\n\t\t\t\t\t\t'order' => array('pos' => 'ASC')\n\t\t\t\t\t));\n\t\t\t\t\tunset($c);\n\t\t\t\t\t$prepared_products = 'order_products_category';\n\t\t\t\t\t$p = new Product();\n\t\t\t\t\t\\DB::prepare($prepared_products, $p->getSql(array(\n\t\t\t\t\t\t'where' => array(array('field' => 'category', 'value' => '?', 'value_type' => 'sql')),\n\t\t\t\t\t\t'order' => array('pos' => 'ASC')\n\t\t\t\t\t)));\n\t\t\t\t\tunset($p);\n\t\t\t\t\t$counter = count($categories);\n\t\t\t\t\tfor ($i = 0; $i < $counter; $i++) {\n\t\t\t\t\t\t$products = \\DB::queryRows(\\DB::execPrepared($prepared_products, array($categories[$i]['id'])));\n\t\t\t\t\t\t$counter2 = count($products);\n\t\t\t\t\t\tfor ($j = 0; $j < $counter2; $j++) {\n\t\t\t\t\t\t\tif (isset($types[$products[$j]['type']])) {\n\t\t\t\t\t\t\t\t$products[$j]['product_type'] = $types[$products[$j]['type']]['title'];\n\t\t\t\t\t\t\t\t$products[$j]['color'] = $types[$products[$j]['type']]['color'];\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$products[$j]['product_type'] = '';\n\t\t\t\t\t\t\t\t$products[$j]['color'] = '';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$products[$j]['ordered'] = Product::getOrdered($products[$j]['id']);\n\t\t\t\t\t\t\t$products[$j]['user_ordered'] = $logged ? Product::getOrdered($products[$j]['id'], $id_user) : 0;\n\t\t\t\t\t\t\t$products[$j]['price_total'] = $products[$j]['user_ordered'] * $products[$j]['price'];\n\t\t\t\t\t\t\tif ($products[$j]['qty_package'] <= 0) {\n\t\t\t\t\t\t\t\t$products[$j]['qty_package'] = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$ordered = $products[$j]['ordered'];\n\t\t\t\t\t\t\twhile ($ordered > 0) {\n\t\t\t\t\t\t\t\t$ordered -= $products[$j]['qty_package'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$products[$j]['completed'] = floor($products[$j]['ordered'] / $products[$j]['qty_package']);\n\t\t\t\t\t\t\t$products[$j]['to_complete'] = abs($ordered);\n\t\t\t\t\t\t\tunset($ordered);\n\t\t\t\t\t\t\t$price_total += $products[$j]['price_total'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunset($j, $counter2);\n\t\t\t\t\t\t$categories[$i]['products'] = $products;\n\t\t\t\t\t\tunset($products);\n\t\t\t\t\t}\n\t\t\t\t\tunset($i, $counter, $prepared_products);\n\t\t\t\t}\n\t\t\t\t$title = $order->get('title');\n\t\t\t\t$url = Order::getURL($order);\n\t\t\t\t$breadcrumb[] = array('url' => $url, 'title' => $title);\n\t\t\t\tsetBreadCrumb($breadcrumb);\n\t\t\t\tunset($breadcrumb);\n\t\t\t\t$u = new \\User($order->get('admin'));\n\t\t\t\t$admin = $u->exists() ? $u->getData() : array();\n\t\t\t\tunset($u);\n\t\t\t\t$content = $this->printTemplate('order.php', array(\n\t\t\t\t\t'order' => array_merge($order->getData(), array(\n\t\t\t\t\t\t'price_total' => $price_total,\n\t\t\t\t\t\t'order_total' => $order->getUserTotal($id_user),\n\t\t\t\t\t\t'url' => $url,\n\t\t\t\t\t\t'is_closed' => $is_closed,\n\t\t\t\t\t\t'has_actual_qty' => $has_actual_qty\n\t\t\t\t\t)),\n\t\t\t\t\t'admin' => $admin,\n\t\t\t\t\t'c' => isset($categories) ? $categories : null,\n\t\t\t\t\t'products' => isset($products) ? $products : null,\n\t\t\t\t\t'logged' => $logged,\n\t\t\t\t\t'shippable' => $shippable,\n\t\t\t\t\t'was_shippable' => $shippable || Order::isShippable($order->get('id'), 0, true)\n\t\t\t\t));\n\t\t\t\tunset($has_actual_qty, $is_closed, $id_user);\n\t\t\t\t$new_content = \\Hook::run('gastmo_print_order_html_content', array($content, $order), true);\n\t\t\t\tif (is_string($new_content)) {\n\t\t\t\t\t$content = $new_content;\n\t\t\t\t}\n\t\t\t\tunset($new_content);\n\t\t\t\treturn array(\n\t\t\t\t\t'title' => 'Ordine: '.$title,\n\t\t\t\t\t'content' => $content,\n\t\t\t\t\t'url' => $url,\n\t\t\t\t\t'head_include' => $head_include\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\t$url = '/order/';\n\t\t\t\tif (isset($this->params_url[1]) && $this->params_url[1] == 'delivered') {\n\t\t\t\t\t$is_delivered = true;\n\t\t\t\t\t$title = 'Ordini consegnati';\n\t\t\t\t\t$url .= 'delivered/';\n\t\t\t\t\t$breadcrumb[] = array('url' => $url, 'title' => $title);\n\t\t\t\t} else {\n\t\t\t\t\t$is_delivered = false;\n\t\t\t\t\t$title = 'Ordini';\n\t\t\t\t}\n\t\t\t\tsetBreadCrumb($breadcrumb);\n\t\t\t\tunset($breadcrumb);\n\t\t\t\t$content = $this->printTemplate('orders.php', array_merge(array(\n\t\t\t\t\t'login' => $logged,\n\t\t\t\t\t'is_delivered' => $is_delivered\n\t\t\t\t), $is_delivered ? array(\n\t\t\t\t\t'orders' => Order::getUserOrders(null, array('status' => Order::STATUS_DELIVERED))\n\t\t\t\t) : array(\n\t\t\t\t\t'orders' => Order::getUserOrders(null, array('status' => Order::STATUS_OPEN)),\n\t\t\t\t\t'delivering_orders' => Order::getUserOrders(null, array('status' => Order::STATUS_DELIVERING)),\n\t\t\t\t\t'delivered_orders' => Order::getUserOrders(null, array('status' => Order::STATUS_DELIVERED, 'limit' => 5))\n\t\t\t\t)));\n\t\t\t\t$new_content = \\Hook::run('gastmo_print_orders_html_content', array($content, $is_delivered), true);\n\t\t\t\tif (is_string($new_content)) {\n\t\t\t\t\t$content = $new_content;\n\t\t\t\t}\n\t\t\t\tunset($new_content);\n\t\t\t\treturn array(\n\t\t\t\t\t'title' => $title,\n\t\t\t\t\t'content' => $content,\n\t\t\t\t\t'url' => $url,\n\t\t\t\t\t'head_include' => $head_include\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
d6b055d65beefb058efb8be388ddaa9f
Collect output from subscribers of a layout event
[ { "docid": "2c50a2aea35058232dd2cd393703fa53", "score": "0.0", "text": "public function hook($hookname, $args=array())\n {\n $args['_viewname'] = $this->param('view_name');\n $result = BPubSub::i()->fire('BLayout::hook.'.$hookname, $args);\n return join('', $result);\n }", "title": "" } ]
[ { "docid": "22a9836953adc20820c8e34adbbfcab6", "score": "0.56051207", "text": "private function registerOutputEvents()\n {\n Event::listen('magpie.moveBackupStarted', function($path) {\n $this->output->newLine();\n $this->info(\"Starting to move {$path} backup file...\");\n });\n\n Event::listen('magpie.moveBackupComplete', function($path) {\n $this->output->newLine();\n $this->comment(\"Finished moving {$path} backup file.\");\n });\n }", "title": "" }, { "docid": "e0dd83577344069a5922eb93d50e78f3", "score": "0.54821175", "text": "public function incoming_call() {\n\n $this->layout = 'xml';\n \n }", "title": "" }, { "docid": "bf318d5b05635416e1c80d17a8e6c614", "score": "0.54047304", "text": "public function events_markup_collect(){\n\n // Return the events markup array\n return $this->events;\n\n }", "title": "" }, { "docid": "1a87b0250bdb9c35d1d665ca348564a4", "score": "0.5167238", "text": "public function _wpsc_dynamic_output_buffer_init()\r\n {\r\n\tadd_action('wp_footer', array( $this, '_wpsc_output_buffer' ));\r\n }", "title": "" }, { "docid": "64265301a902dcd8d4fe7077a2f0bfc1", "score": "0.5148019", "text": "protected function OnOutput()\n\t{\n\t\t$vars = array('user' => $this->user, 'categories' => $this->categories, 'numberOfUsers' => $this->numberOfUsers, 'bestFreelancers' => $this->bestFreelancers, 'numberOfProjects' => $this->numberOfProjects);\n\t\t$this->content = $this->Template('view/tpl_index.php',$vars);\n\t\tparent::OnOutput();\n\t}", "title": "" }, { "docid": "34e8fcca92a99b65e1d6eefd5466790d", "score": "0.49147263", "text": "abstract public function onRender();", "title": "" }, { "docid": "931e9f08c62f02a9ae60930891976dd8", "score": "0.49115688", "text": "private function _prepareLayout() {\n\n $this->layout = array();\n $this->layout['content'] = null;\n }", "title": "" }, { "docid": "b9a6f71874bd7583a2123a96004a3506", "score": "0.48791826", "text": "public function subscribeEvents()\n\t{\n\t}", "title": "" }, { "docid": "507d05688532a17061c49a405e530fe5", "score": "0.4842261", "text": "private function prepareOutput() {\n // Close output buffers\n Kohana::close_buffers(FALSE);\n // Clear any output\n Event::add('system.display', function() { Kohana::$output = \"\"; });\n }", "title": "" }, { "docid": "e8315809437df4f9cc42a5abc583a3e1", "score": "0.48178524", "text": "public function onViewComposer($event)\n {\n //\n }", "title": "" }, { "docid": "95bd6b116e3f98d30425e24239389327", "score": "0.48019475", "text": "public function process($jsLayout);", "title": "" }, { "docid": "73b5aec431a6b0b783ec9b15027203f2", "score": "0.47962233", "text": "public function setOutput(EventOutputInterface $eventOutput);", "title": "" }, { "docid": "f791ae3e36f8436c81b6d98c4180ba73", "score": "0.47911116", "text": "function all_events_layout()\n {\n return event_frontend::custom_page_layout();\n }", "title": "" }, { "docid": "3bf4403c869352dd3e0ee6e4d4f91a5e", "score": "0.47407815", "text": "public function tagLayout(Response $response, Layout $layout): void;", "title": "" }, { "docid": "9bf5728804d0d754ead53611f41e3a73", "score": "0.47212976", "text": "public function getOutputManager();", "title": "" }, { "docid": "070abe21209904bcd58beaf7f40afcc1", "score": "0.47141424", "text": "function _output() {\n\t\t$this->controller->afterFilter();\n\t\techo($this->controller->output);\n\t}", "title": "" }, { "docid": "acb6fca8b97541db7707fc95516df47c", "score": "0.46970236", "text": "function com_event_sink($comobject, $sinkobject, $sinkinterface = null) {}", "title": "" }, { "docid": "8323e8f31417bf1dcb688af5c4601db5", "score": "0.46839142", "text": "function display(){\n\tview::$output = $this->output;\n}", "title": "" }, { "docid": "6bb223f6654c0d39b1688d11e23868bf", "score": "0.4659293", "text": "abstract public function events();", "title": "" }, { "docid": "993770c759960d725fe50bc063b1d8b5", "score": "0.46297044", "text": "private function layout ($layout)\n\t{\n\t\t$this->layoutRender = $layout;\n\t}", "title": "" }, { "docid": "307a965222984443b13aa5e19d39a273", "score": "0.46136317", "text": "public function onDebugOutput(Event $event)\n {\n $debug = $event->getSubject();\n $files = $debug->utilities->getIncludedFiles();\n $files = \\array_filter($files, function ($file) {\n $exclude = array(\n // __FILE__,\n '/vendor/',\n '/framework/',\n '/protected/components/system/',\n // '/protected/extensions',\n );\n $return = true;\n foreach ($exclude as $str) {\n if (\\strpos($file, $str) !== false) {\n $return = false;\n break;\n }\n }\n return $return;\n });\n $files = \\array_values($files);\n $debug->log('files', $files, $debug->meta('detectFiles', true));\n }", "title": "" }, { "docid": "f202d134de6c25581221f9633e1f3c7d", "score": "0.4610792", "text": "abstract public function output_view( );", "title": "" }, { "docid": "ea71bd0f6547dbff20245316a3d5c357", "score": "0.4605314", "text": "protected function onProcessed(): void\n {\n parent::onProcessed();\n\n $this->eventMethodsCalled[] = 'onProcessed';\n }", "title": "" }, { "docid": "5b2b3185e3bd4b9a811d902fc42b07db", "score": "0.45978573", "text": "final public function parseEvents() {\n\t\t$listeners = array();\n\t\t$events = $this->getEvents();\n\t\tif ($this->hasEvents()) {\n\t\t\tforeach ($events as $type => $objects) {\n\t\t\t\tforeach ($objects as $event) {\n\t\t\t\t\t$listeners[] = $this->JsFactory->Listener(array(\n\t\t\t\t\t\t'node' => $this,\n\t\t\t\t\t\t'type' => $type,\n\t\t\t\t\t\t'code' => $event\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (isset($this->events)) {\n\t\t\tif ($this->allowsEvents()) {\n\t\t\t\tforeach ($this->events as $type => $event) {\n\t\t\t\t\t$listeners[] = $this->JsFactory->Listener(array(\n\t\t\t\t\t\t'node' => $this,\n\t\t\t\t\t\t'type' => $type,\n\t\t\t\t\t\t'code' => $event\n\t\t\t\t\t));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (count($listeners) > 0) {\n\t\t\t$factory = $this->getFactory();\n\t\t\t$buffer = (isset($factory->settings['buffer']))? $factory->settings['buffer'] : $this->buffer;\n\t\t\tif (!empty($buffer)) {\n\t\t\t\t$view = $factory->getView();\n\t\t\t\t$view->append((is_string($buffer))? $buffer : 'script', new CtkContent($view, '<script type=\"text/javascript\">' . implode('', $listeners) . '</script>'));\n\t\t\t} else {\n\t\t\t\treturn '<script type=\"text/javascript\">' . implode('', $listeners) . '</script>';\n\t\t\t}\n\t\t}\n\t\treturn '';\n\t}", "title": "" }, { "docid": "2ac2d208844c1ee7b21b06377abb2311", "score": "0.45864892", "text": "public function getSubscribedEvents();", "title": "" }, { "docid": "3612538dba94d1b59183b669152e085d", "score": "0.45710263", "text": "function display(){\r\n\t\t\tview::$output = $this->output;\r\n\t\t}", "title": "" }, { "docid": "532b709aa8c99788a7ba027a8544a804", "score": "0.45628083", "text": "private function _signals() {\n\t\t$this->widgets['trvMain']->connect(\"drag-data-received\", array($this, \"trvMain_ondrop\"));\n\t\t$this->widgets['frmMain']->connect(\"destroy\", array($this, \"frmMain_unload\"));\n\t}", "title": "" }, { "docid": "a5ce8d9e79ab3e57a0d51e4498dda79f", "score": "0.45536283", "text": "public function get_collector()\n {\n }", "title": "" }, { "docid": "982464553fc707bb2ece0bcf4ca0b71a", "score": "0.45480028", "text": "public function process()\n {\n $aVideo = $this->getParam('aVideo');\n $sGroup = $this->getParam('sGroup', '');\n\n $aItems = array(\n Phpfox::getPhrase('videochannel.added') => Phpfox::getTime(Phpfox::getParam('videochannel.video_time_stamp'), $aVideo['time_stamp'])\n );\n\n if (Phpfox::isModule('comment'))\n {\n $aItems[Phpfox::getPhrase('videochannel.comments')] = $aVideo['total_comment'];\n }\n\n $this->template()->assign(array(\n 'aVideoDetails' => $aItems,\n 'sGroup' => $sGroup\n )\n );\n }", "title": "" }, { "docid": "b575b2b033361d6e68e11f16e5c52bb9", "score": "0.4541004", "text": "public static function getSubscribedEvents()\n {\n return [\n 'view.init' => ['init', 5],\n 'view.postfetch' => ['postFetch', 5]\n ];\n }", "title": "" }, { "docid": "4ebc55e1cd96b3d2e48edda4d3e7d157", "score": "0.4540913", "text": "public function onPageRendered( &$output )\n {\n $this->debug_info['onPageRendered'] = 'output (len): ' . strlen( $output );\n $debug = '<div style=\"background: rgba( 255, 204, 22, 0.8 ); border: 1px solid red; color: #222; position: fixed; bottom: 0; font-size: 12px; margin: 0; overflow-y: scroll; padding: 5px; width: 100%; height: 25%; z-index: 99999;\"><table style=\"width: 100%\">';\n foreach( $this->debug_info as $key => $value ) $debug .= '<tr><td style=\"border-bottom: 1px dashed #d50\"><i>' . $key . '</i>&nbsp;&nbsp;</td><td style=\"border-bottom: 1px dashed #d50\">' . $value . \"</td></tr>\\n\";\n $debug .= \"</table></div>\\n\";\n // $debug = '<div style=\"background: rgba( 255, 204, 22, 0.8 ); border: 1px dotted red; color: #222; position: fixed; bottom: 0; font-size: 12px; font-family: \\'Consolas\\', monospace; margin: 10px 0 0 0; overflow-y: scroll; padding: 5px; width: 100%; height: 25%; z-index: 99999;\">';\n // foreach( $this->debug_info as $key => $value ) $debug .= '[' . $key . ']&nbsp; ' . $value . \"<br/>\\n\";\n // $debug .= \"</div>\\n\";\n $output = substr_replace( $output, $debug, strpos( $output, '</body>' ), 0 );\n }", "title": "" }, { "docid": "d835cd9f85b3dc247c87efc39145c653", "score": "0.45338455", "text": "public static function getSubscribedEvents();", "title": "" }, { "docid": "d835cd9f85b3dc247c87efc39145c653", "score": "0.45338455", "text": "public static function getSubscribedEvents();", "title": "" }, { "docid": "540c0d898a610d4a578d2ee552378460", "score": "0.45320097", "text": "public function render()\n {\n $this->_lines = $this->opsToLines($this->getOps());\n\n foreach ($this->_lines as $line) {\n $this->processListeners($line, Listener::TYPE_INLINE);\n $this->processListeners($line, Listener::TYPE_BLOCK);\n }\n\n $this->renderListeneres(Listener::TYPE_INLINE);\n $this->renderListeneres(Listener::TYPE_BLOCK);\n\n $buff = null;\n foreach ($this->_lines as $line) {\n $buff.= $line->output;\n }\n\n return $buff;\n }", "title": "" }, { "docid": "caa62991f47f8e1556dd7f947c6ef01a", "score": "0.45319527", "text": "public function enableOutput();", "title": "" }, { "docid": "3ba60bda59bdd955f9a8778ae079d46d", "score": "0.4524109", "text": "public function storeRenderSignal($paramRenderSignal);", "title": "" }, { "docid": "653bf22f621ab720b62be1fc18f6612e", "score": "0.4520361", "text": "public function beforeOutput() {\r\n $this->getElementProperties();\r\n }", "title": "" }, { "docid": "a9d45308f19c2ebf2d32676f8d70288f", "score": "0.45046058", "text": "function __after_collect(){\n\t\tif(method_exists($this, 'after_collect'))\n\t\t\t$this->after_collect();\n\t}", "title": "" }, { "docid": "8be05d92f8311cde9b115ac3a6974a2b", "score": "0.45020527", "text": "abstract public function output();", "title": "" }, { "docid": "8be05d92f8311cde9b115ac3a6974a2b", "score": "0.45020527", "text": "abstract public function output();", "title": "" }, { "docid": "fea81d045abf12a9df31b65c3ccfa0f6", "score": "0.44978154", "text": "public function run()\n {\n $dispatcher = EventDispatcher::getInstance();\n $dispatcher->attachListener('widgetResponseAlter', $this, 'refreshButton');\n }", "title": "" }, { "docid": "10f8b30b82638691398ce2d12b8036e2", "score": "0.4494811", "text": "public function collect()\n {\n }", "title": "" }, { "docid": "ccb2ef55d39d99ec1db257bc9e80a284", "score": "0.4490745", "text": "function HandleEventDataGroups()\n {\n $this->GroupDatasObj(TRUE);\n\n $this->GroupDatasObj()->Sql_Table_Structure_Update();\n\n echo\n $this->EventDatasInfoTable().\n $this->EventMod_Import_Menu_Horisontal().\n $this->GroupDatasObj()->EventGroupDatasForm($this->ItemHash).\n \"\";\n\n \n }", "title": "" }, { "docid": "70675cd023dd9b4e6cc894d6fa42a9e9", "score": "0.4488926", "text": "public function on_elements_start() {\n $this->mappings = array();\n $this->dimensions = array();\n }", "title": "" }, { "docid": "6a3cca670bcf0ab87ebc840cc754d812", "score": "0.4481085", "text": "protected function feedMiddlewareStack()\n {\n array_walk_recursive($this->listeners, function ($value) {\n if ($value instanceof Listener) {\n $this->applyMiddlewareStack($value);\n }\n });\n }", "title": "" }, { "docid": "a5a15d85039097aae925ae34b55f37c9", "score": "0.4478937", "text": "function Layout(){\n\n\t}", "title": "" }, { "docid": "f04bc1a3a4c9f5a6efc51071efb8ab29", "score": "0.4467664", "text": "public function onEvent() {\n return;\n }", "title": "" }, { "docid": "812931ba70c077bbebc985f351c25056", "score": "0.44577563", "text": "function display(){\n\n\t\t\tview::$output = $this->output;\n\n\t\t}", "title": "" }, { "docid": "7dd53728f45810b19e48ba4e0c4260b9", "score": "0.44531855", "text": "public function collect()\n {\n $input = $this->validate(request(), [\n 'category' => ['required', 'string', 'max:255'],\n 'action' => ['required', 'string', 'max:255'],\n 'label' => ['required', 'string', 'max:255'],\n ]);\n $user = Auth::user();\n $action = implode('::', array($input['category'], $input['action'], $input['label']));\n event(new UserLog($user, $action));\n }", "title": "" }, { "docid": "32d3bcb0d1c144802b08e4bc14439e6e", "score": "0.44529578", "text": "function display()\n {\n view::$output = $this->output;\n }", "title": "" }, { "docid": "0e8636ad8929682a381eb1fe4b014512", "score": "0.44463137", "text": "protected function setupLayout()\n {\n if (isset($this->layout) && !is_null($this->layout)) {\n $data = array();\n\n // Enter here data that have to be accessible everywhere\n $this->layout = View::make($this->layout, $data);\n }\n }", "title": "" }, { "docid": "6a24f07b12c22cb4276f50ee0d63dd0b", "score": "0.44441992", "text": "public function outputLocalEvent()\n\t{\n\t\t$this->load->model('event_model');\n\t\t$data['events'] = $this->event_model->localEvent('Winnipeg');\n\t\t$this->load->view('main_page',$data);\n\t}", "title": "" }, { "docid": "8d88c0a9d097d16b6258432b18ad169d", "score": "0.44213054", "text": "function render_page() {\n\t\tglobal $achive_layout_query;\n\n\t\t// For our first trick, get the most recent published AL that matches the current layout page.\n\t\t$archive_layout_term = get_queried_object();\n\t\tvar_dump($archive_layout_term);\n\t\t$archive_layout_object = new WP_Query( $args );\n\n\n\t\t// use $this->_used_post_ids to keep track of posts that were already included in a different LE\n\t}", "title": "" }, { "docid": "552f910a38ab1a72595abc16d799b34c", "score": "0.44137436", "text": "public static function getSubscribedEvents()\n {\n return [ 'post-autoload-dump' => 'execute' ];\n }", "title": "" }, { "docid": "9edb9b89e2eacce8ac8b21ce13917282", "score": "0.44129145", "text": "public function onRun()\n {\n $this->streamers = $this->page['streamers'] = $this->loadStreamers();\n\n $this->addCss('assets/css/cleanse-streamers.css');\n }", "title": "" }, { "docid": "52c60861b1146d311609cafbcd1dc3e3", "score": "0.44105828", "text": "protected function starting_output() {\r\n global $CFG;\r\n $this->initialise_standard_body_classes();\r\n }", "title": "" }, { "docid": "2b32fd16b34be9f8f7b939768d7d5985", "score": "0.43987408", "text": "public static function getSubscribedEvents()\n\t{\n\t\treturn array (\n\t\t\tInitializeEnvironmentEvent::NAME => 'presetConfig',\n\t\t\tReplaceInsertTagsEvent::NAME => 'replaceInsertTags',\n\t\t\t'form-helper.select-widget-layout' => 'selectLayout',\n\t\t\t'form-helper.generate-widget' => 'createModalFooter',\n\t\t);\n\t}", "title": "" }, { "docid": "766c7e426afb290fdce7fff580b6c754", "score": "0.4395246", "text": "protected function setupLayout()\n\t{\n\t\tif ( ! is_null($this->layout))\n\t\t{\n\t\t\t$this->layout = View::make($this->layout);\n\t\t}\n\t\tView::share('mySchool', $this->mySchool());\n\t\tView::share('schools', $this->allSchools());\n\t\tif (Auth::check() && Auth::user()->active == true) {\n\t\t\tView::share('unreadMessages', $this->unreadMessages());\n\t\t\tView::share('messages', $this->messages());\n\t\t\tView::share('sentMessages', $this->sentMessages());\n\t\t}\n\t}", "title": "" }, { "docid": "de6d0b4212d8d8f37fed475369ba3bba", "score": "0.43872654", "text": "public function gather(string $event): array;", "title": "" }, { "docid": "d30cd927b8b90f34a3352b1166f2b984", "score": "0.43858275", "text": "public function attach(EventManagerInterface $events, $priority = 1)\n {\n $this->listeners[] = $events->attach(ComposerEvent::EVENT_HTML_BODY_PRE, [$this, 'injectLayoutViewModel']);\n }", "title": "" }, { "docid": "ca1d09673ebb00f5c0bd7ba28bdccfcc", "score": "0.4384156", "text": "abstract public function postRender($view, $task, $input, $config = array());", "title": "" }, { "docid": "5907acaf137da39d9685f14742edba66", "score": "0.43815988", "text": "public static function getSubscribedEvents()\n {\n return array(\n \"post-package-install\" => array(\n array('onPackageInstall', 0)\n ),\n \"post-package-update\" => array(\n array('onPackageUpdate', 0)\n ),\n );\n }", "title": "" }, { "docid": "13138c51c5c60b5f55e951f0ab8f32f6", "score": "0.437536", "text": "protected function _write($event)\n {\n $view = $this->_engineBlockFormatter->format($event);\n $this->_eventsToMail[] = $view;\n }", "title": "" }, { "docid": "26433fcf3c4bfc214d65040b7be0e8f3", "score": "0.4374178", "text": "public function measurementsChanged()\n {\n $this->notifyObservers();\n }", "title": "" }, { "docid": "d94b4b7e0b9e3ab3c19ff1a20f35da19", "score": "0.43696174", "text": "public function output();", "title": "" }, { "docid": "d94b4b7e0b9e3ab3c19ff1a20f35da19", "score": "0.43696174", "text": "public function output();", "title": "" }, { "docid": "0e959d4483c39aa0048da452ed55adf1", "score": "0.43695816", "text": "public function visit(){\t\t\n\t\techo $this->build_calendar();\n\t}", "title": "" }, { "docid": "5fec2aa102a66f52ba7f22b1eed41c54", "score": "0.4366876", "text": "public function events() {\n $data['page'] = 'events';\n $this->public_template->display('public/dashboard', $data);\n }", "title": "" }, { "docid": "4f2e0207e03f7012ae3bd6b2124c3eac", "score": "0.43645287", "text": "public function getLayout();", "title": "" }, { "docid": "4f2e0207e03f7012ae3bd6b2124c3eac", "score": "0.43645287", "text": "public function getLayout();", "title": "" }, { "docid": "8eae2741ae709841b443926bcde77b04", "score": "0.43610802", "text": "public function onGeneratePage()\n {\n if ($token = Input::get('event_unsubscribe')) {\n $this->unsubscribe($token);\n }\n }", "title": "" }, { "docid": "0bdf13f2582fff3e96f6036996c4523e", "score": "0.4358952", "text": "public function _prepareLayout()\n {\n return parent::_prepareLayout();\n }", "title": "" }, { "docid": "06fa3a2f02e10c389b71fb37b629d7fe", "score": "0.43572417", "text": "protected function dispatchLayout()\n {\n if ((($layout = Registry::getInstance()->get('layout')) === null)\n || !$this->response->getBody() instanceof ViewAbstract) {\n return false;\n }\n $layout->setContent($this->response->getBody());\n $this->response->setBody($layout->fetch());\n }", "title": "" }, { "docid": "7071ab9388c9f6b93ab3415e581ff167", "score": "0.43560335", "text": "public function get_output()\n {\n }", "title": "" }, { "docid": "3bc36d0bec33aa6b58c44abacd4829dd", "score": "0.43518427", "text": "function mcal_append_event($stream_id) {}", "title": "" }, { "docid": "f1d79fd3513dea439a645de514384121", "score": "0.43486932", "text": "function layout($layout) {\n if(false !== $layout) {\n // Open layout\n C('LAYOUT_ON',true);\n if(is_string($layout)) { // Set up a new layout template\n C('LAYOUT_NAME',$layout);\n }\n }else{// Temporary closure layout\n C('LAYOUT_ON',false);\n }\n}", "title": "" }, { "docid": "c13857fdcdfddb1f133483881b4363d6", "score": "0.43463194", "text": "public function getSubscribedEvents()\n {\n // TODO: Implement getSubscribedEvents() method.\n }", "title": "" }, { "docid": "70a2642388c4d6e2654ae837c19420c8", "score": "0.4337596", "text": "public function getObservableEvents()\n {\n\n }", "title": "" }, { "docid": "e458ff7e30d1c28ae71cee40260b84a9", "score": "0.43351048", "text": "public function observe();", "title": "" }, { "docid": "e370b310f699c967ece814824687be05", "score": "0.4334938", "text": "public function BeforeOutput($pRender)\n {\n }", "title": "" }, { "docid": "8fe25ec770cd9439ca95afcf3caabadd", "score": "0.43253675", "text": "function _Output()\n\t{\n\t\tlog_message('debug', \"Output Class Initialized\");\n\t}", "title": "" }, { "docid": "04ee7e9935f740218f68d8b330050085", "score": "0.43194628", "text": "public function output()\n {\n }", "title": "" }, { "docid": "04ee7e9935f740218f68d8b330050085", "score": "0.43194628", "text": "public function output()\n {\n }", "title": "" }, { "docid": "e8933ea70671083f9b4a6546c04ec49b", "score": "0.4319442", "text": "public function getMyEvents(){\n\t\t \n\t\t \n\t }", "title": "" }, { "docid": "d73fd028443ecb9e5ac362545c755570", "score": "0.4317734", "text": "public static function beginOutputCapture() {\n if (self::$capturingOutput) {\n self::didFatal('Already capturing output!');\n }\n self::$capturingOutput = true;\n ob_start();\n }", "title": "" }, { "docid": "3d7061d7e398d3b6dadb275e2e335c86", "score": "0.43172118", "text": "public abstract function getLinkCollector();", "title": "" }, { "docid": "e504b27144f80797f7160242ce71245b", "score": "0.43148303", "text": "public function getSubscribedStreams()\n {\n }", "title": "" }, { "docid": "4c42666119ffecf0737dcf69a34537c1", "score": "0.431133", "text": "function tomWE_inject_markup() {\n\n global $event;\n if($event !== 'article') {\n return;\n }\n \n echo tomWE_markup();\n}", "title": "" }, { "docid": "e4d082e3f0b0ffe246622c4663d11d39", "score": "0.43077624", "text": "public function displayHandout() {\n }", "title": "" }, { "docid": "293f9e76a4886732b9c4deea83c2c743", "score": "0.43060106", "text": "protected function listenForEvents()\n {\n $events = $this->container['events'];\n\n $events->listen('nova.queue.processing', function ($connection, $job)\n {\n $this->writeOutput($job, 'starting');\n });\n\n $events->listen('nova.queue.processed', function ($connection, $job)\n {\n $this->writeOutput($job, 'success');\n });\n\n $events->listen('nova.queue.failed', function ($connection, $job)\n {\n $this->writeOutput($job, 'failed');\n });\n }", "title": "" }, { "docid": "77a013bd3f3ff94618df4a4a11522e39", "score": "0.43055525", "text": "function getOutput() {}", "title": "" }, { "docid": "d92b73543dd03edc459ad35a4c30a92d", "score": "0.43042538", "text": "public function getSubscribedEvents(): array;", "title": "" }, { "docid": "72bcccf9bac3698d8d6fb23d2f3447a0", "score": "0.4295305", "text": "public function prepare()\n {\n $this->layoutTypeObject = $this->layoutPool->create($this->type);\n $this->structure = $this->layoutTypeObject->build($this);\n parent::prepare();\n }", "title": "" }, { "docid": "0132746778605837230936b9b88f06ee", "score": "0.4293756", "text": "public static function flushEventListeners()\n {\n\n }", "title": "" }, { "docid": "6c72512cd5003319401e7e6d9a0d3d12", "score": "0.42911166", "text": "protected function afterRender()\n\t{\n\t\tparent::afterRender();\n\n\t\tif (Debugger::isEnabled()) { // todo: as panel\n\t\t\tDebugger::barDump($this->template->getParams(), 'Template variables');\n\t\t}\n\t}", "title": "" }, { "docid": "99c781c8c986db18c0a9a84ad7e4538b", "score": "0.42842674", "text": "private function fetchSummaryOutput() {\n if($this->hasMembers()) {\n $arrStates = Array(CRITICAL => 0, DOWN => 0, WARNING => 0,\n UNKNOWN => 0, UP => 0, OK => 0,\n ERROR => 0, PENDING => 0, UNCHECKED => 0);\n\n // Get summary state of this and child objects\n foreach($this->members AS &$MEMBER) {\n $arrStates[$MEMBER->getSummaryState()]++;\n }\n\n $this->mergeSummaryOutput($arrStates, l('hosts'));\n } else {\n $this->sum[OUTPUT] = l('The aggregation \"[NAME]\" has no members (Backend: [BACKEND]).',\n Array('NAME' => $this->name,\n 'BACKEND' => implode(',', $this->backend_id)));\n }\n }", "title": "" }, { "docid": "584611dc26caab5be42a00024c3c0c53", "score": "0.42819172", "text": "public function startCollects()\n {\n foreach ($this->reporters as $reporter)\n {\n if (is_callable($reporter))\n {\n $kvs = call_user_func($reporter);\n is_array($kvs) && Monitor::tab()->set($this->workerID, $kvs);\n }\n }\n }", "title": "" }, { "docid": "c4a4c6e973676f90a4c0f2eb1d9036fa", "score": "0.4281599", "text": "public function _wpsc_output_buffer($output = 0)\r\n {\r\n\treturn preg_replace_callback('/\\<\\!\\-\\-\\s*TotalPoll\\(([0-9]+)\\)\\s*\\-\\-\\>/sim', array( $this, '_wpsc_replace_polls' ), $output);\r\n }", "title": "" }, { "docid": "0576ecd4c0b072c45ca9d9c2ffa1ede0", "score": "0.42756796", "text": "private function event_onBeforeDataExport() {}", "title": "" }, { "docid": "37bea6831e07ba0f8620d2f631eb0d1e", "score": "0.4271133", "text": "public function setOutput(\\Closure $callback)\n {\n $this->output = $callback;\n }", "title": "" }, { "docid": "1666f778582daed15b6118172fb7ef33", "score": "0.42691636", "text": "public function subscribersgridAction(){\n $this->loadLayout();\n $this->renderLayout();\n }", "title": "" } ]
965d271b2cfa13650b793bd3ede4e756
Find all registrations newer than the given timestamp.
[ { "docid": "78a6f91c8f02bcd5deba5715e78b09e5", "score": "0.62965035", "text": "public function findAllCreatedSince($timestamp)\n {\n $query = $this->createQuery();\n return $query->matching(\n $query->greaterThanOrEqual('crdate', $timestamp)\n )->execute();\n }", "title": "" } ]
[ { "docid": "0f44f6ceeb7d630530707fc1b5ed8c6b", "score": "0.5654", "text": "public function findByDate($timestamp): array\n {\n if($timestamp == \"today\"){\n $timestamp = date(\"Y-m-d\");\n }\n\n $conn = $this->getEntityManager()->getConnection();\n\n $sql = '\n SELECT * FROM cust_order co\n WHERE co.timestamp LIKE :timestamp\n ';\n $stmt = $conn->prepare($sql);\n $stmt->execute(['timestamp' => $timestamp.\"%\"]);\n\n // returns an array of arrays (i.e. a raw data set)\n return $stmt->fetchAll();\n }", "title": "" }, { "docid": "41073ebd63ae01d99967adfbbff99aa0", "score": "0.55888885", "text": "public function get_stale_users($threshold) {\n\t\t$this->db->where('login_time <', $threshold);\n\t\t$this->db->where('banned !=', '1');\n\t\t$query = $this->db->get('users');\n\t\tif($query->num_rows() > 0){\n\t\t\t$array = $query->result_array();\n\t\t\t$results = array();\n\t\t\tforeach($array as $user){\n\t\t\t\tif($user['login_time'] == '0') {\n\t\t\t\t\tif($user['register_time'] < $threshold)\n\t\t\t\t\t\tarray_push($results, $user);\n\t\t\t\t} else {\n\t\t\t\t\tarray_push($results, $user);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $results;\n\t\t}\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "a6a38898d9c48d71e2f18114d41bb81f", "score": "0.5297536", "text": "private function getRegistrations()\n {\n $this->runTest(\n 'Test 4. Get registrations per month',\n 'SELECT analytic.period, COUNT(*)\n FROM analytic_data analytic,\n analytic_customer customer\n WHERE customer.analytic_id = analytic.id\n AND customer.is_registered = true\n AND analytic.period >= \"2012-01-21\"\n AND analytic.period < \"2012-02-22\"\n GROUP BY period\n ORDER BY period'\n );\n }", "title": "" }, { "docid": "4aa79a0880870666aea76293f5afad2b", "score": "0.51899946", "text": "public function getSchedulesToProcess(string $timestamp): Collection;", "title": "" }, { "docid": "411717ec1e59f62db2ee5a0373b9685b", "score": "0.51627094", "text": "public function retain_newer( $timestamp ) {\n\t\treturn $this->strip_by_creation( $timestamp, '<=' );\n\t}", "title": "" }, { "docid": "cad15271d6bd5727b953c27efa1cd5f6", "score": "0.5105742", "text": "public function get_todays_registrations() {\n $sql = \"select v.email, v.phone, v.market, b.company, f.name as firm_name, b.first_name, b.last_name, b.regdate, b.pincode, ag.assigned_date, ag.agent_code, a.name as agent_name from basic_profile b left join vendors v on b.vendor_id = v.id left join firm_types f on f.id = b.firm left join assigned_agents ag on b.vendor_id = ag.vendor_id left join agents a on a.agent_code = ag.agent_code where b.regdate = curdate() and b.agent_id = 'N/A' order by b.id asc\";\n if (($result = $this->db->query($sql))) {\n return $result->result();\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "0bb33939ba07ba4b027c98fbfa32f4cb", "score": "0.50647724", "text": "function get_referral_by_date($timestamp){\n\t\t $this->db->select('*');\n\t\t $this->db->where('timestamp',$timestamp);\n\t\t\t$return = $this->db->get(DB_PREFIX.'referral_management')->row_array();\n\t\t\treturn $return;\n\t }", "title": "" }, { "docid": "f5ca1204144e7dbce45bfef3adfd295f", "score": "0.50413996", "text": "public static function getOldEntries() {\n\t\tglobal $wpdb;\n\n\t\t$table = self::get_table();\n\n\t\treturn $wpdb->get_results( \"SELECT * FROM {$table} WHERE requested < now() - interval 2 day OR opted_in IS NOT NULL\" );\n\t}", "title": "" }, { "docid": "69e9e107fedcb871c638a2dda545b528", "score": "0.50244844", "text": "public function list_events_updated(int $courseid, \\DateTime $timestamp): array;", "title": "" }, { "docid": "d3e9b878cb24a5d6aac672d99a350864", "score": "0.5003742", "text": "public function findExpiringAccounts()\n {\n $sql = $this->createQueryBuilder('a');\n $sql->where('a.online = :online')->setParameter('online', false)\n ->orderBy('a.expiring', 'asc');\n \n return $sql->getQuery()->getResult();\n }", "title": "" }, { "docid": "79fdcf5e77802bdd1be1467034fdd835", "score": "0.49991012", "text": "function getReservations() {\n\t\t//caching missin\n\t\tself::$_db->saveQry(\"SELECT * FROM `#_reservations` WHERE `startTime` >= ? AND `user` = ? ORDER BY `ID` DESC\", \n\t\t\t\tdate(\"Y-m-d\"), User::load()->getId());\n\t\twhile($r = self::$_db->fetch_assoc()) $res[] = $r;\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "6ac1696f878ce14067d6e96c52603a00", "score": "0.4959198", "text": "public function retain_older( $timestamp ) {\n\t\treturn $this->strip_by_creation( $timestamp, '>=' );\n\t}", "title": "" }, { "docid": "735446f639add9cd924766add9858310", "score": "0.4951881", "text": "public function can_register_timestamp_users()\n {\n $this->service_provider->registerTimestampUsers();\n\n $table = new Blueprint($this->application_mock);\n\n $table->timestampUsers();\n\n $this->assertEquals(['created_by_user_id', 'updated_by_user_id'], array_map(function($element) {\n return $element->getAttributes()[\"name\"];\n }, $table->getColumns()));\n }", "title": "" }, { "docid": "3d1041cfae49c7b8527daa369e6df158", "score": "0.49503762", "text": "public function since($timestamp)\n {\n // We will fill this if there is any data\n $output = array();\n\n // Select all the data since the last date\n $result = DB::select('id', 'parent', 'first_name', 'email', 'comment', 'timestamp')\n ->from('comments')\n ->where('active', \"=\", 1)\n ->and_where('timestamp', '>=', $timestamp)\n ->execute()\n ->as_array();\n\n // We need some content\n if (!empty($result))\n {\n // Transform the data somewhat\n $output = $this->transform($result, true);\n }\n\n // Just return the output\n return $output;\n }", "title": "" }, { "docid": "fad9b7ecdeb624b0813ab2dd27a26f55", "score": "0.49310076", "text": "function getLiveElection() {\n\t\t$query = $this->prepare(\"SELECT * FROM `elections` WHERE end_timestamp > :timestamp AND timestamp < :timestamp;\");\n\t\t$date = new DateTime();\n\t\t$timestamp = $date->getTimestamp();\n\t\t$query->bindParam(':timestamp',$timestamp);\n\t\t$query->execute();\n\t\treturn $query->fetchAll(PDO::FETCH_ASSOC);\n\t}", "title": "" }, { "docid": "2990fb7f417f62e88073c6bd5a08509c", "score": "0.49214837", "text": "public function findAll()\n\t{\n\t\t$builder = $this->builder();\n\t\t$builder->where('timestamp >', strtotime('-' . $this->config->userActiveTime));\n\t\t$builder->where(\"data NOT LIKE CONCAT('%', timestamp, '%')\");\n\t\t$builder->like('data', 'user|');\n\n\t\treturn $builder->get()->getResult($this->returnType);\n\t}", "title": "" }, { "docid": "7ff6c32e3317fb59cc1a9684d04c7479", "score": "0.4894539", "text": "public function get_all_registered()\n {\n }", "title": "" }, { "docid": "f464d0f8270e220eb810f9674fc6fe5e", "score": "0.48863167", "text": "public function findAll()\n {\n return parent::findBy([], ['startTime' => 'DESC']);\n }", "title": "" }, { "docid": "c5f2db2aa7fa0e31e1e46bc8a05c1f7b", "score": "0.48860574", "text": "function getExpiredReservedBikes() {\n\t\t\t$query = new ParseQuery( \"Bikes\" );\n\t\t\t$query->exists( \"reservedTime\" );\n\t\t\t$query->limit( 1000 );\n\t\t\t$results = $query->find();\n\n\t\t\t$count = count( $results );\n\n\t\t\t$listOfBikes = array();\n\t\t\tfor( $i = 0; $i < $count; $i++ ) {\n\t\t\t\t$reservedDate = $results[$i]->get( \"reservedTime\" );\n\t\t\t\t$reservedDate = $reservedDate->format('Y-m-d H:i:s');\n\t\t\t\t$reservedDate = strtotime( $reservedDate );\n\n\t\t\t\t$currentDate = new DateTime( 'now' );\n\t\t\t\t$currentDate = $currentDate->format('Y-m-d H:i:s');\n\t\t\t\t$currentDate = strtotime( $currentDate );\n\n\t\t\t\t$subtractedDate = $currentDate - $reservedDate;\n\n\t\t\t\techo $subtractedDate;\n\t\t\t\techo \"s \";\n\n\t\t\t\t$expiredTime = 10;\n\n\t\t\t\tif( $subtractedDate >= $expiredTime*60 ) {\n\t\t\t\t\tarray_push( $listOfBikes , $results[$i]->getObjectId() );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $listOfBikes;\n\t\t}", "title": "" }, { "docid": "0f5e831da419b92d62ec5e935c5f245d", "score": "0.48667678", "text": "public function getAllWatchLaterEvents() {\n $result = $this->con->query(\"SELECT * FROM watch_later_events\");\n return $result;\n }", "title": "" }, { "docid": "63c20f17706797a9bce3640f5dbfd2df", "score": "0.4865555", "text": "public function findLiveLoans()\n {\n return $this->em->getRepository('MarketplaceBundle\\Entity\\Loan')->findBy(\n array('live' => true),\n array('creationDate' => 'DESC')\n );\n }", "title": "" }, { "docid": "307b86da7f44bda3041002a4cdabc53a", "score": "0.48588493", "text": "public function getStaleRequestedReferences($datetime)\n {\n /*\n @TODO: implement checking for old and unanswered reference requests\n */\n }", "title": "" }, { "docid": "ed0c86ac0ffae20402e9580643ad5e1d", "score": "0.48528895", "text": "public function findExpired();", "title": "" }, { "docid": "ce4e7a224c7016a811e64ea0e89b7d05", "score": "0.4847279", "text": "function getReservations() {\n\t\t//caching missin\n\t\tself::$_db->saveQry(\"SELECT * FROM `#_reservations` WHERE \".\n\t\t\t\t\"`startTime` >= ? AND `startstation` = ? AND (`status` = 'queued' \".\n\t\t\t\t\"OR `status` = 'pending' OR `status` = 'prefered') ORDER BY `startTime` ASC\",\n\t\t\t\tdate(\"Y-m-d\"), User::workerGetStation()->getId());\n\t\twhile($r = self::$_db->fetch_assoc()) $res[] = $r;\n\t\treturn $res;\n\t}", "title": "" }, { "docid": "5b3989bac3712228f48acada421b7541", "score": "0.48462194", "text": "public function scheduledMatches()\n {\n return $this->matches()->whereHas('event', function ($query) {\n $query->where('date', '>=', Carbon::today());\n });\n }", "title": "" }, { "docid": "5aa54cbd338f075a2a0549bfee670f23", "score": "0.4819293", "text": "public function newRecordsSince(): array\n {\n $domainId = $this->getDomainId();\n $date = $this->getParamsFetcher()->getParam('date');\n\n if ($this->model->hasField('creation_date') === false) {\n throw (new \\Exception('Field \"creation_date\" was not found'));\n }\n\n return $this->model->newRecordsSince($domainId, $date);\n }", "title": "" }, { "docid": "c0d31f511e0d6fd15bfc472579a2d756", "score": "0.48042992", "text": "public function strip_newer( $timestamp ) {\n\t\treturn $this->strip_by_creation( $timestamp, '>' );\n\t}", "title": "" }, { "docid": "da1b800f8730fd6a2efc1112130d79b2", "score": "0.48024127", "text": "public static function selectAllSync(){\n global $wpdb;\n $url = $wpdb->get_var(\"SELECT info_value FROM {$wpdb->prefix}cga_sync_info WHERE info_name = 'api_url'\");\n $key = $wpdb->get_var(\"SELECT info_value FROM {$wpdb->prefix}cga_sync_info WHERE info_name = 'api_key'\");\n $suffixe = $wpdb->get_var(\"SELECT info_value FROM {$wpdb->prefix}cga_sync_info WHERE info_name = 'api_suffixe'\");\n $dateSync = date_create($wpdb->get_var(\"SELECT info_value FROM {$wpdb->prefix}cga_sync_info WHERE info_name = 'last_sync'\"));\n $date = date_format($dateSync, \"d/m/Y à H:i:s\");\n return array($date, $key, $url, $suffixe);\n }", "title": "" }, { "docid": "a2413ec14df983765ce79cdcee80d87a", "score": "0.480221", "text": "public function getAllHistory(){\n $results = $this->all(\"WHERE date_fin < now() order by date_fin DESC\");\n return $results;\n }", "title": "" }, { "docid": "628cf8b1e047f47c656359bbaa86729b", "score": "0.48005456", "text": "public function getNotificationsToSend()\n {\n $qb = $this->createQueryBuilder('ns')\n ->where('ns.dateOfExecution < CURRENT_TIMESTAMP()')\n ->andWhere('ns.isExecuted = :isExecuted')\n ->orderBy('ns.id', 'asc')\n ->setParameter('isExecuted', false)\n ;\n\n return $qb->getQuery()->getResult();\n }", "title": "" }, { "docid": "d0a5abd92828486c397f8110a5d6d600", "score": "0.47853577", "text": "public function findAll() {\n\t\t$storedEntries = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(\n\t\t\t'entry_key',\n\t\t\t'sys_registry',\n\t\t\t'entry_namespace = ' . $GLOBALS['TYPO3_DB']->fullQuoteStr(\n\t\t\t\t$this->namespace,\n\t\t\t\t'sys_registry'\n\t\t\t),\n\t\t\t'',\n\t\t\t'entry_key DESC'\n\t\t);\n\n\t\t$result = array();\n\t\tforeach ($storedEntries as $storedEntry) {\n\t\t\t$result[] = $this->findByUid($storedEntry['entry_key']);\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "6e52fa75c638534e02aae04db5bc4ff2", "score": "0.4724435", "text": "public function testAllFromWithDateTime() {\n\t\t$response = $this->getFixture( 'time-entries' );\n\t\t$expectedArray = $response['time_entries'];\n\n\t\t$updatedSince = new DateTime( '2017-06-26 00:00:00', new DateTimeZone( 'Europe/Zurich' ) );\n\n\t\t$api = $this->getApiMock();\n\t\t$api->expects( $this->once() )\n\t\t\t->method( 'get' )\n\t\t\t->with( '/time_entries', [ 'from' => $updatedSince->format( 'Y-m-d' ) ] )\n\t\t\t->will( $this->returnValue( $response ) );\n\n\t\t$this->assertEquals( $expectedArray, $api->all( [ 'from' => $updatedSince ] ) );\n\t}", "title": "" }, { "docid": "27d49e56f42d5cbd790f5610a6db143d", "score": "0.47228295", "text": "public function getAvailableRecoveryDates(){\n\n $query = $this->db->query(\"SELECT `config_name`, DATE_FORMAT(MIN(`date_added`), '%Y-%m-%d %H:%i') as date_start, DATE_FORMAT(MAX(`date_added`), '%Y-%m-%d %H:%i') as date_end FROM `oc_deh_history` GROUP BY `config_name` ORDER BY `config_name` ASC\");\n\n $history_data = array();\n\n if($query->num_rows){\n foreach ($query->rows as $row) {\n if(file_exists(DIR_CONFIG.$this->codename.'/'.$row['config_name'].'.php')){\n $history_data[$row['config_name']] = array('start' => $row['date_start'], 'end' => $row['date_end']);\n }\n }\n }\n \n return $history_data;\n }", "title": "" }, { "docid": "66a8bcfec968297ea6cf36b261a9bcdb", "score": "0.4721273", "text": "private function getRegistrationsPerDay()\n {\n $this->runTest(\n 'Test 2. Get registrations per day',\n 'SELECT analytic.period, COUNT(*)\n FROM analytic_data analytic,\n analytic_customer customer\n WHERE customer.analytic_id = analytic.id\n AND customer.is_registered = true\n AND analytic.period >= \"2012-01-21\"\n AND analytic.period < \"2012-01-22\"\n GROUP BY period\n ORDER BY period'\n );\n }", "title": "" }, { "docid": "3be059243542e7c9ec3146417651ec3a", "score": "0.47212714", "text": "static public function getListFromDb($latestTimestamp, $direction = 'up')\n\t{\n \t$db_config = $GLOBALS['db_config'];\n \t$migrations_table = $db_config->migrations_table;\n\t\tif ($direction == 'down')\n\t\t{\n\t\t\t$sql = \"SELECT * FROM `{$migrations_table}` WHERE `timestamp` <= '$latestTimestamp' AND `active` = 1\";\n\t\t\t$countSql = \"SELECT COUNT(*) as total FROM `{$migrations_table}` WHERE `timestamp` <= '$latestTimestamp' AND `active` = 1\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql = \"SELECT * FROM `{$migrations_table}` WHERE `timestamp` >= '$latestTimestamp' AND `active` = 1\";\n\t\t\t$countSql = \"SELECT COUNT(*) as total FROM `{$migrations_table}` WHERE `timestamp` >= '$latestTimestamp' AND `active` = 1\";\n\t\t}\n\t\t$list = array();\n\t\t$countObj = MpmDbHelper::doSingleRowSelect($countSql);\n\t\tif ($countObj->total > 0)\n\t\t{\n\t\t $results = MpmDbHelper::doMultiRowSelect($sql);\n\t\t foreach ($results as $obj)\n\t\t {\n\t\t\t\t$list[] = $obj->timestamp;\n\t\t }\n\t\t}\n\t\treturn $list;\n\t}", "title": "" }, { "docid": "3501f387c7a99843d977fd10fada293e", "score": "0.47212234", "text": "public function canSendNotifications($timestamp): bool;", "title": "" }, { "docid": "6eb48c61a00b294dd489fa41a07b427d", "score": "0.4712948", "text": "public function findFuture()\n {\n $now = Carbon::now();\n\n $expr = Criteria::expr();\n $criteria = Criteria::create()\n ->where($expr->gte('startTime', $now));\n\n return $this->matching($criteria)->toArray();\n }", "title": "" }, { "docid": "33368be33dee1af89f1d83df92eda19a", "score": "0.4711726", "text": "public function testAllUpdatedSinceWithDateTime() {\n\t\t$response = $this->getFixture( 'time-entries' );\n\t\t$expectedArray = $response['time_entries'];\n\n\t\t$updatedSince = new DateTime( '2017-06-26 00:00:00', new DateTimeZone( 'Europe/Zurich' ) );\n\n\t\t$api = $this->getApiMock();\n\t\t$api->expects( $this->once() )\n\t\t\t->method( 'get' )\n\t\t\t->with( '/time_entries', [ 'updated_since' => $updatedSince->format( DateTime::ATOM ) ] )\n\t\t\t->will( $this->returnValue( $response ) );\n\n\t\t$this->assertEquals( $expectedArray, $api->all( [ 'updated_since' => $updatedSince ] ) );\n\t}", "title": "" }, { "docid": "f4cd98fd3cb56f472e994c3782b818c5", "score": "0.47025567", "text": "public function getRecent()\n\t{\n\t\t$results = DB::select('select * from users_new order by created_at DESC LIMIT 10;');\n\t\treturn $results;\n\t}", "title": "" }, { "docid": "3ef7f7cd92a8e9ea78526234d0deeb10", "score": "0.4673273", "text": "function list_registered() {\n\n\t$pagination = pagination('login_users','ORDER BY timestamp DESC');\n\tglobal $generic, $sql, $query;\n\n\t/** Check that at least one row was returned. */\n\t$query = $generic->query($sql);\n\tif($query->rowCount() > 0) {\n\n\t/** Display table of recently registered users. */\n\t?>\n\t<table class=\"table\">\n\t\t<thead>\n\t\t\t<tr>\n\t\t\t\t<th><?php echo _('Username'); ?></th>\n\t\t\t\t<th><?php echo _('Name'); ?></th>\n\t\t\t\t<th><?php echo _('Email'); ?></th>\n\t\t\t\t<th><?php echo _('Registered Date'); ?></th>\n\t\t\t\t<th><?php echo _('Last Login'); ?></th>\n\t\t\t</tr>\n\t\t</thead>\n\t\t<tbody>\n\t\t<?php\n\t\twhile($row = $query->fetch(PDO::FETCH_ASSOC))\n\t\t\techo displayUsers($row);\n\t\t?>\n\t\t</tbody>\n\t</table>\n\n\t<?php\n\n\techo $pagination;\n\t} else { echo _('Sorry, there are no recently registered users.'); }\n\n}", "title": "" }, { "docid": "e8b80ab5efa7da569f37108b1346aaa0", "score": "0.46730417", "text": "public function getConsumers($storeId, $timestamp)\n {\n $result = [];\n $sortOrder = $this->sortBuilder->setField('updated_at')->setDirection('ASC')->create();\n $this->searchCriteriaBuilder->addSortOrder($sortOrder)->addFilter('store_id', $storeId, 'eq')->addFilter('updated_at', $timestamp, 'gteq');\n $searchCriteria = $this->searchCriteriaBuilder->create();\n $searchResults = $this->customerRepository->getList($searchCriteria);\n foreach ($searchResults->getItems() as $customer) {\n array_push($result, $customer);\n // $this->logger->info(\"id:\" . $customer->getId() . \"-> updated at :\" . $customer->getUpdatedAt() . \", created at :\" . $customer->getCreatedAt());\n }\n return $result;\n }", "title": "" }, { "docid": "9931ce7d73a4752f8f695da4fda5affc", "score": "0.4660873", "text": "public function getTimestampEventsList(){\n return $this->_get(2);\n }", "title": "" }, { "docid": "3215d97a907bd04d4c59299999b98ee8", "score": "0.46536142", "text": "public function pastMatches()\n {\n return $this->matches()->whereHas('event', function ($query) {\n $query->where('date', '<', Carbon::today());\n });\n }", "title": "" }, { "docid": "0de2dad0ecb3eb35e3b72b01a551054b", "score": "0.4651754", "text": "public function getAllNewEvents($last_update) {\n $result = $this->con->query(\"SELECT * FROM uci_events WHERE (unix_timestamp(last_updated) > $last_update) AND ( (unix_timestamp(start_time) > unix_timestamp(NOW())) OR (end_time != null AND unix_timestamp(end_time) > unix_timestamp(now())) )\");\n return $result;\n }", "title": "" }, { "docid": "49942c5f4847bfe877ce010c1896adb8", "score": "0.46382168", "text": "public function testAllToWithDateTime() {\n\t\t$response = $this->getFixture( 'time-entries' );\n\t\t$expectedArray = $response['time_entries'];\n\n\t\t$updatedSince = new DateTime( '2017-06-26 00:00:00', new DateTimeZone( 'Europe/Zurich' ) );\n\n\t\t$api = $this->getApiMock();\n\t\t$api->expects( $this->once() )\n\t\t\t->method( 'get' )\n\t\t\t->with( '/time_entries', [ 'to' => $updatedSince->format( 'Y-m-d' ) ] )\n\t\t\t->will( $this->returnValue( $response ) );\n\n\t\t$this->assertEquals( $expectedArray, $api->all( [ 'to' => $updatedSince ] ) );\n\t}", "title": "" }, { "docid": "30093aa7e809a81ad57008a37f5d2d2e", "score": "0.46192795", "text": "function fetchRecordsByDate($sender, $startTimestamp, $endTimestamp) {\n //in seconds i.e. 60 secs x 30 mins = 30 minutes\n $duration = 60*30;\n\n //Set startTime to startTimestamp\n $startTime = $startTimestamp;\n $endTime = $startTimestamp;\n\n $results = array();\n\n //Check that endTime is less than endTimestamp\n while ($endTime < $endTimestamp) {\n //Set startTime to previous endTime\n $startTime = $endTime;\n //Increase endTime by $duration\n $endTime += $duration;\n //If endTime is later than endTimestamp, limit it\n if ($endTime > $endTimestamp) {\n $endTime = $endTimestamp;\n }\n //Call fetchRecordsByHour()\n $tempResult = fetchRecordsByHour($sender, $startTime, $endTime);\n //Loop through results and save the individual records\n foreach ($tempResult as $tempResultItem) {\n $results[] = $tempResultItem;\n }\n }\n\n return $results;\n}", "title": "" }, { "docid": "02f433923ba832a4359762e451fda478", "score": "0.46174818", "text": "function getAllRecentlyCheckedInResources ( $daysInThePast ) {\r\n\tif ( !isNumberValid ( $daysInThePast ))\r\n\t\treturn false;\r\n\r\n\t// get response from Oracle\r\n\t$query = \"SELECT RSC_ID, RSC_PARENT_ID, RSC_NAME, RSC_FILE_NAME, RSC_TYPE, RSC_VC_STATUS, RSC_VC_CHECKIN_USER_NAME, \r\n\t\t\t\tRSC_VC_CHECKIN_DATE, RSC_VC_CHECKOUT_USER_NAME, RSC_VC_CHECKOUT_DATE \r\n\t\t\t\tFROM MOBILE_REVOLUTION_4G_DB.RESOURCES WHERE RSC_VC_CHECKIN_DATE > (SYSDATE - \" . $daysInThePast . \" ) \";\r\n\r\n\t$responseArray = getResponseForQuery ( $query, \"INT\", \"ALM\");\r\n\t\r\n\t// send JSON response\r\n\treturn json_encode ( $responseArray , 128);\r\n}", "title": "" }, { "docid": "438005e8055a65447d487e95014edeab", "score": "0.46152335", "text": "public function filter($timestamp)\n {\n return $this->relativeTime($timestamp, $this->_time);\n }", "title": "" }, { "docid": "c3d726c25a1d38d8432f74b5d233b181", "score": "0.46143967", "text": "function newAttachmentsSince($timestamp){\n\t\t\treturn $this->find(array(array('uploaded_date','>=',$timestamp)), null, false);\n\t\t}", "title": "" }, { "docid": "53d14756b2ad109d27cceec6d1f486bc", "score": "0.46009788", "text": "public function getUsers() {\n $pdo = $this->getPdo();\n\n try {\n $stmt = $pdo->prepare('SELECT username FROM users WHERE TIME_TO_SEC(TIMEDIFF(NOW(), updated)) < :timedelta');\n } catch (PDOException $e) {\n error_log($e->getMessage());\n return FALSE;\n }\n $stmt->execute([\n ':timedelta' => POLL_INTERVAL * OFFLINE_CYCLES,\n ]);\n $result = $stmt->fetchAll(PDO::FETCH_NUM);\n\n if (!$result) {\n return FALSE; // TODO: Add JSON error message, oder einfach ein assoc array mit error feld?\n } else {\n $stmt = null;\n return $result; // TODO: Evtl. kümmert sich auch eine andere Funktion um das JSON encoding.\n }\n }", "title": "" }, { "docid": "74901f3ca5976e607fcb6918897ebb69", "score": "0.46008548", "text": "public function pollNewItems($timeLastRequest)\n {\n $queryBuilder = $this->repository->createQueryBuilder('n');\n $scheduleItems = $queryBuilder->where(\n $queryBuilder->expr()->gt('timeAdded', $timeLastRequest)\n )->getQuery();\n\n return $scheduleItems->getArrayResult();\n }", "title": "" }, { "docid": "c02e9a4e782212174d8bb2439054c633", "score": "0.45972505", "text": "public function isFresh($timestamp)\n {\n if (!$this->maxTimestamp && $this->resources) {\n $this->maxTimestamp = max(array_map('filemtime', $this->resources));\n }\n return $this->maxTimestamp < $timestamp;\n }", "title": "" }, { "docid": "2f6861794902378e8ad835e9be8d4fda", "score": "0.4596681", "text": "public function getUnactivatedEmailsOlderThan($hours = 2){\n\t\treturn CoreSqlUtils::rows(self::SELECT_UNACTIVATED_EMAILS_QUERY, array(\n\t\t\t':hours' => (int) $hours\n\t\t));\n\t}", "title": "" }, { "docid": "c602804b382f87194a2298bdbcdcc61e", "score": "0.45966217", "text": "public function findExpiringSoon() {\n $query = $this->createQueryBuilder('q')\n ->andWhere('q.disabled = 0')\n ->andWhere('q.date_publication IS NOT NULL')\n ->andWhere('q.date_fin > CURRENT_TIMESTAMP()')\n ->andWhere('q.publication = 1')\n ->addOrderBy('q.date_fin', 'DESC')\n ->setMaxResults(5)\n ->getQuery()\n ->getResult();\n \n return $query;\n }", "title": "" }, { "docid": "300596e710fb8682390037d63dfa9b75", "score": "0.4595319", "text": "static function getLastTenUINotifications() {\n\n $result = [];\n\n if (Sentinel::hasAccess('sys-admin')) {\n $nots = SystemNotification::take(10)->where('readed', false)->orderBy('created_at', 'desc')->get();\n $total_nots = SystemNotification::where('readed', false)->count();\n \n $list = [];\n\n foreach ($nots as $not) {\n $list[] = $not->asUiNotification();\n }\n\n $result[\"list\"] = $list;\n $result[\"real_total_count\"] = $total_nots;\n }\n return $result;\n }", "title": "" }, { "docid": "2f9d65225eb71b546674dbf2fd2ca019", "score": "0.4582291", "text": "public static function recent(): array\n {\n return Job::where('published_at', '>=', Carbon::now()->subWeek())\n ->orderBy('published_at', 'desc')\n ->get()\n ->toArray();\n }", "title": "" }, { "docid": "14b789cd4147d53e12c56d35f2b4d508", "score": "0.4578257", "text": "function getTimestamps() { \n return $this->m_extractTimeRange($this->m_timeTable);\n }", "title": "" }, { "docid": "38d16c4cdf0a71e57982184e96c7ffe8", "score": "0.45766178", "text": "public function findByLastChange(int $timestamp): QueryResultInterface\n {\n $query = $this->createQuery();\n $query->matching($query->lessThan('tstamp', $timestamp));\n return $query->execute();\n }", "title": "" }, { "docid": "1647a98535fe0f2f8ab4dc8c393e2dde", "score": "0.4576267", "text": "public function getRegistered();", "title": "" }, { "docid": "4c03fa9e4401164f289045e070aecad9", "score": "0.45712543", "text": "private function getList() {\n if (! $matched_events = Cache::section('matched_events')->get($this->screen->id)){\n $events = $this->getEvents();\n $matched_events = $this->matchFilters($events);\n Cache::section('matched_events')->put($this->screen->id, $matched_events, $this->ttl);\n }\n return $matched_events;\n }", "title": "" }, { "docid": "008e32f796add3a23bae188ea1703c2d", "score": "0.45700958", "text": "public function deleteExpiredLoggedEntities($timestamp) {\n $query = $this->entityTypeManager->getStorage('gatsby_log_entity')->getQuery();\n $entity_uuids = $query->condition('created', $timestamp, '<')->execute();\n $entities = $this->entityTypeManager->getStorage('gatsby_log_entity')\n ->loadMultiple($entity_uuids);\n\n foreach ($entities as $entity) {\n $entity->delete();\n }\n }", "title": "" }, { "docid": "1d3f952a7474a2ef17e040703777451b", "score": "0.45641568", "text": "function get_all_waiting_last_hour_porting()\n {\n return $this->db->where(array('portingState' => \\PortingService\\Porting\\portingStateType::APPROVED, 'NOW() - recipientSubmissionDateTime <' => 360000, 'donorNetworkId' => Operator::ORANGE_NETWORK_ID))->order_by('recipientSubmissionDateTime', 'desc')->get_where('porting')->result_array();\n }", "title": "" }, { "docid": "601b581554611782c79225d9fd4b644c", "score": "0.45613313", "text": "public function registryAll(): array;", "title": "" }, { "docid": "1ab6a3fada4b4440bc291d4027133d7b", "score": "0.45559576", "text": "public function getAllRegisteredWebhooks()\n {\n return $this->fetchAll(\n $this->select()\n ->from( $this->info( 'name' ) )\n ->where( 'registered = ?', 1 )\n ->where( 'webhook_id != ?', 0 )\n );\n }", "title": "" }, { "docid": "cbf29983c127719de66dc3c16d057351", "score": "0.4552379", "text": "public function notify()\n {\n $now = time();\n $func_last_run_time = wpl_global::get_wp_option('wpl_ss_last_run_time', 0);\n \n // Return if notify function runs less than 5 minutes before\n if($func_last_run_time and $now - $func_last_run_time < 300) return;\n update_option('wpl_ss_last_run_time', $now);\n \n $query = \"SELECT `id`, `kind`, `criteria`, `last_notify_date` FROM `#__\".$this->table.\"` \"\n . \"WHERE 1 AND `enabled`>='1' AND `last_notify_date`<='\".date('Y-m-d H:i:s', strtotime('-24 Hours')).\"' ORDER BY `creation_date` DESC\";\n $searches = wpl_db::select($query, 'loadAssocList');\n \n foreach($searches as $search)\n {\n $search_id = $search['id'];\n \n /** Update last_notify_date **/\n $this->update(array('last_notify_date'=>date('Y-m-d H:i:s')), $search_id);\n \n $this->kind = $search['kind'];\n $this->criteria = json_decode($search['criteria'], true);\n $this->last_notify_date = $search['last_notify_date'];\n $news = $this->search();\n \n if(!count($news)) continue;\n \n /** Trigger event for sending notification **/\n wpl_events::trigger('save_searches_new_results', array('id'=>$search_id, 'new_results'=>$news));\n }\n }", "title": "" }, { "docid": "dfa492b3ba9afaff73428628202e65cd", "score": "0.4540576", "text": "public function getActiveProductRegistrations()\n {\n return $this->productRegistrationRepository->findBy(\n array(\n 'deleted' => false,\n 'disabled' => false,\n ),\n array(\n 'createdAt' => 'ASC',\n )\n );\n }", "title": "" }, { "docid": "83f32a9fe94608347956f5b7930182f5", "score": "0.45384163", "text": "public function _getEvents($ftime){\n global $dbconn_zabbix;\n $rows = array();\n $start_record = 0;\n $end_record = NUM_RECORD_PROGRESS;\n $sql = \"SELECT eventid,objectid,clock,events.value,acknowledged,triggerid,expression,description,priority,FROM_UNIXTIME(clock) as date_init FROM \".ZABBIX_EVENTS_TABLE.\" events INNER JOIN \".ZABBIX_TRIGGERS_TABLE.\" triggers ON events.objectid = triggers.triggerid AND clock>='{$ftime}' ORDER BY clock ASC LIMIT {$start_record}, {$end_record}\";\n if(MODE_DEBUG == true){\n echo $sql;\n echo \"<br>\";\n }\n $result = mysql_query($sql,$dbconn_zabbix);\n while($row = mysql_fetch_assoc($result)){\n $rows[] = $row;\n }\n mysql_free_result($result);\n return $rows;\n }", "title": "" }, { "docid": "752f661e1952a3f9d3d85bf95e236666", "score": "0.4534684", "text": "public function getAllIdleWorkers($interval=600) {\n $this->debug->append(\"STA \" . __METHOD__, 4);\n $stmt = $this->mysqli->prepare(\"\n SELECT w.account_id AS account_id, w.id AS id, w.username AS username\n FROM \" . $this->share->getTableName() . \" AS s\n RIGHT JOIN \" . $this->getTableName() . \" AS w\n ON w.username = s.username\n AND s.time > DATE_SUB(now(), INTERVAL ? SECOND)\n AND our_result = 'Y'\n WHERE w.monitor = 1\n AND s.id IS NULL\n \");\n if ($this->checkStmt($stmt) && $stmt->bind_param('i', $interval) && $stmt->execute() && $result = $stmt->get_result())\n return $result->fetch_all(MYSQLI_ASSOC);\n return $this->sqlError('E0054');\n }", "title": "" }, { "docid": "cf9fb608b4dd2a812f07b92c48785903", "score": "0.452176", "text": "function getReserved($timestamp=0,$nturnos=1,$user=\"\",$inc=1) {\n $querystr = \"SELECT * FROM reservas WHERE \";\n if ( ($user!==\"\") && ($inc===0) )$querystr .= \"(login<>'{$user}') AND \\n\";\n if ( ($user!==\"\") && ($inc!==0) )$querystr .= \"(login='{$user}') AND \\n\";\n // mktime( hour:minute:second:month:date:year). Notice G,n,j to avoid initial zeroes\n if ($timestamp==0) $timestamp=mktime(date(\"G\"),0,0,date(\"n\"),date(\"j\"),date(\"Y\") );\n else $timestamp=$timestamp - ($timestamp%3600); // ajustamos a hora exacta\n $querystr .= \" ( \\n (fechaturno={$timestamp})\\n \";\n for ($n=$nturnos;$n>0;$n--) {\n $ft= $timestamp+3600*$n;\n $mft= $timestamp-3600*$n;\n $querystr .= \"OR ((fechaturno={$ft}) AND ({$nturnos}>{$n})) \\n\"; // reservas posteriores\n $querystr .= \"OR ((fechaturno={$mft}) AND (duracion>{$n})) \\n\"; // reservas anteriores\n }\n $querystr .= \");\"; // closing parenthesis\n\n // ok. now call database\n $conn=$this->getConnection();\n if ($conn==null) {\n doLog(\"Cannot retrieve database connection\");\n return array();\n }\n $rs=$conn->query($querystr);\n // doLog(\"Query string is:\\n\".$querystr);\n if (!$rs) {\n doLog(\"Query()::error in query '{$querystr}': \".$conn->error);\n return array();\n }\n // iterate rows. notice that bbdd is too old so cannot use mysqli_fetch_all()\n $res= array();\n while ($row= $rs->fetch_array(MYSQLI_ASSOC)) array_push($res,$row['puesto']);\n $rs->free();\n return $res;\n }", "title": "" }, { "docid": "4e3c7c0083d44e7a466d7cf139099bb4", "score": "0.4513664", "text": "public function getRegisteredUsers($filter)\n {\n }", "title": "" }, { "docid": "98fbdc77ca485290925a6b3fdd899cc0", "score": "0.45075315", "text": "public function findAllByCreated()\n {\n return $this->findBy(array(), array('created'=>'desc'));\n }", "title": "" }, { "docid": "ca071eba41d4248ff42bc24b2ab3b276", "score": "0.450433", "text": "public static function exists()\n {\n return Cache::get('stache/content/timestamps');\n }", "title": "" }, { "docid": "1155cf04557a5778fa2570d28219249a", "score": "0.45001513", "text": "public function getCountersByTimeStamp($projectId, $timestamp);", "title": "" }, { "docid": "28a89df8a8ef6554fbbafa983d1e49ca", "score": "0.44990334", "text": "public function getList()\n {\n $inactiveRoomsInfo = $this->getUserTable()->inactivateUsers(strtotime('-1 min'));\n if (!$inactiveRoomsInfo['res']) { return $this->makeSuccessJson(\"no cron updated\"); }\n foreach ($inactiveRoomsInfo['rids'] as $i => $rid) {\n $room = $this->getRoomTable()->getRoom($rid);\n $turnUser = $this->getUserTable()->getUser($room->turn_user_id);\n if ($turnUser->is_active == \"1\") { continue; }\n $nextUser = $this->getUserTable()->getNextTurnUserInRoom($rid, $room->turn_user_id);\n $this->getRoomTable()->updateRoomTurnUid($rid, $nextUser->id);\n }\n $this->getRoomTable()->updateRoomsVer($inactiveRoomsInfo['rids'], $inactiveRoomsInfo['now']);\n return $this->makeSuccessJson(\"cron updated\");\n }", "title": "" }, { "docid": "c9f2cc9055adebcc1463dd35fa02aaee", "score": "0.4491986", "text": "public function findAllInactiveBackendUsers(DateTime $since): array\n {\n return $this->filterUsers($this->backendUserRepository->findAllInactive($since), true);\n }", "title": "" }, { "docid": "3aec052f5795c4a8a6f4e57a0c4186bb", "score": "0.44897935", "text": "public function findByLastChangeUnknown(int $timestamp): QueryResultInterface\n {\n $query = $this->createQuery();\n $logicalAnd = [\n $query->equals('identified', false),\n $query->lessThan('tstamp', $timestamp)\n ];\n $query->matching($query->logicalAnd($logicalAnd));\n return $query->execute();\n }", "title": "" }, { "docid": "edb149a38378cdc2bbfd6b8cf70d9829", "score": "0.44895533", "text": "public function _getAllTimes() {\n\t\treturn $this->timeDAO->listAll ();\n\t}", "title": "" }, { "docid": "971bf3f8eeb3126b66f830892aa5f9b5", "score": "0.44887298", "text": "public function getAllTimeStamps($projectId);", "title": "" }, { "docid": "c0581d748479118d92204ede207a37d5", "score": "0.448423", "text": "public function getAuditTimestamps();", "title": "" }, { "docid": "80f12f9d20a6714ad8a0747f9714d42d", "score": "0.44827554", "text": "public function getEvents() {\r\n $query = \"SELECT ll.*, u.username FROM log_locos AS ll LEFT JOIN nuke_users AS u ON ll.user_id = u.user_id WHERE ll.class_id = ? ORDER BY timestamp DESC\"; \r\n \r\n $return = array(); \r\n \r\n foreach ($this->db->fetchAll($query, $this->id) as $row) {\r\n $row['timestamp'] = \\DateTime::createFromFormat(\"Y-m-d H:i:s\", $row['timestamp']); \r\n $row['args'] = json_decode($row['args'], true);\r\n $return[] = $row; \r\n }\r\n \r\n return $return;\r\n }", "title": "" }, { "docid": "aa2040669309806b1d1bd76d7f705961", "score": "0.44825277", "text": "public function getNotifications() {\n $input = Input::all();\n return Notifications::getNotifications($input);\n }", "title": "" }, { "docid": "3cc77114ca07a12484720aaf7a568908", "score": "0.4476895", "text": "function get_users()\n {\n // Get the current time minus 5 minutes\n $php_time = new DateTime();\n $php_time->modify('-5 minute');\n $time = $php_time->format('Y-m-d H:i:s');\n \n $this->db->select('users.username');\n $this->db->join('users', 'users.id=public_chat.user_id');\n $this->db->where('time_stamp >', $time);\n $this->db->group_by('users.id');\n $this->db->order_by('time_stamp', 'desc');\n return $this->db->get($this->table)->result();\n \n }", "title": "" }, { "docid": "c48c73d4f107f406f1e9a608f89f20fd", "score": "0.4469436", "text": "public function get_all_expired_results($expire_after) {\n global $DB;\n\n $timestamp = time() - $expire_after;\n\n $sql = \"SELECT id,searchstr,results,timestamp FROM {caboodle_search_results} WHERE\n `timestamp` < \" . $timestamp;\n\n $results = $DB->get_records_sql($sql);\n\n return $results;\n }", "title": "" }, { "docid": "5f66e17f9552dfb6273af11654485b4e", "score": "0.4453268", "text": "public function getAllNotifications(): array\n {\n return [];\n }", "title": "" }, { "docid": "fc4c1a661339571d022006fac9a552bf", "score": "0.44531056", "text": "public function getChanges($since)\n {\n $services = $this->request('hentEndringer', [\n 'arg0' => $since,\n ]);\n if ($services) {\n foreach ($services as $service) {\n $output[] = new Service($service);\n }\n return $output;\n } else {\n return [];\n }\n }", "title": "" }, { "docid": "d2183ba6e6b04a6f121c5ac6c150805d", "score": "0.44450817", "text": "public function available_schedules() {\n return $this->_db->select('SELECT id, targetDate FROM Events WHERE targetDate >= CURDATE() ORDER BY id ASC LIMIT 0, 500');\n }", "title": "" }, { "docid": "7f9e11df2e405b1bb804a85b7449476a", "score": "0.44423652", "text": "protected function getRegisters() {\n $orderBy = ['id', 'desc'];\n return $this->reg_rep->get('*', FALSE, FALSE, config('settings.register_products'), $orderBy);\n }", "title": "" }, { "docid": "7a346f1013fc6f4e13c46d3c8064be5b", "score": "0.4437199", "text": "public function getSubscribedUsers()\n {\n //for today and previous 6 days shops\n $start_time = new \\DateTime(\"now\");\n $start_time->modify('-6 days');\n $expired_time = $start_time->format('Y-m-d');\n \n $current_time = new \\DateTime(\"now\");\n $current_time_format = $current_time->format('Y-m-d');\n \n $result = array();\n $qb = $this->createQueryBuilder('sm')\n ->select('sm.id, sm.subscriberId, sm.shopId, sm.intervalDate, sm.contractId')\n ->innerJoin('StoreManagerStoreBundle:Store', 'co', 'WITH', 'sm.shopId = co.id')\n ->where('sm.intervalDate >=:intervalat')\n ->andWhere('sm.intervalDate <=:currenttime')\n ->andWhere('co.isSubscribed =:subscribe')\n ->setParameter('intervalat', $expired_time)\n ->setParameter('currenttime', $current_time_format)\n ->setParameter('subscribe', 1)\n ->getQuery(); \n $result = $qb->getResult();\n return $result;\n }", "title": "" }, { "docid": "fd53c3d6bf57691f360d16fabf5e4b1e", "score": "0.44365147", "text": "public function getNotifications()\n {\n if (isset($this->cacheNotifications['notifications'])) {\n return $this->cacheNotifications['notifications'];\n }\n\n $notifications = Notification::with([\n 'friend' => function ($q) {\n $q->selectForFeed();\n }\n ])\n ->where('user_id', '=', $this->id)\n ->orderBy('id', 'DESC')\n ->limit(10);\n\n $this->cacheNotifications['notifications'] = $notifications->get();\n\n // $notifications->update(['is_read' => true]);\n\n return $this->cacheNotifications['notifications'];\n }", "title": "" }, { "docid": "a1567d95ab282852714f6ede353ae6ad", "score": "0.44364807", "text": "public static function getCheckNotifications() {\r\n self::init();\r\n if (!isNotificationSystemActiv()) {\r\n self::$checkNotifications=-1;\r\n return self::$checkNotifications; \r\n } \r\n if (self::$checkNotifications) {\r\n return self::$checkNotifications;\r\n }\r\n $checkNotifications=Parameter::getGlobalParameter('cronCheckNotifications'); \r\n if (! $checkNotifications) {$checkNotifications=3600;}\r\n self::$checkNotifications=$checkNotifications;\r\n return self::$checkNotifications;\r\n }", "title": "" }, { "docid": "b4fa5225d8cbaa02c64c2c0e61de5c06", "score": "0.4435151", "text": "public function getPendingSubscribers()\n {\n /* *\n *\n * Using LEFT JOIN is much slower than NOT IN\n *\n $subscribers = $this->subscribers()\n ->leftJoin(DB::raw('(SELECT * FROM '.DB::getTablePrefix().'tracking_logs WHERE campaign_id = '.$this->id.') log'), 'subscribers.id', '=', 'subscriber_id')\n ->whereRaw('log.id IS NULL')\n ->whereRaw(DB::getTablePrefix().\"subscribers.status = '\".Subscriber::STATUS_SUBSCRIBED.\"'\")\n ->select('subscribers.*')\n ->get();\n */\n\n $subscribers = $this->subscribers()\n ->whereRaw(sprintf(table('subscribers').'.id NOT IN (SELECT subscriber_id FROM %s WHERE campaign_id = %s)', table('tracking_logs'), $this->id))\n ->whereRaw(DB::getTablePrefix().\"subscribers.status = '\".Subscriber::STATUS_SUBSCRIBED.\"'\")\n ->select('subscribers.email')\n ->addSelect('subscribers.uid')\n ->addSelect('subscribers.id')\n ->get();\n\n // the array_unique_by functions out-perform the Collection::unique of Laravel!!!\n $unique = array_unique_by($subscribers, function ($r) {\n return $r['email'];\n });\n\n return $unique;\n }", "title": "" }, { "docid": "a25d851bbe6fc3b8556b235d77d60041", "score": "0.44284025", "text": "public function timeStampProvider()\n {\n return [\n [null, 0, true, 'GMT', null],\n [0, 0, true, 'GMT', null],\n [1511022657, 1511022657, true, null, null],\n [1511022657, 1511022657, true, 'GMT', null],\n ['1511022657', 1511022657, true, 'GMT', null],\n ['{{date::d.m.Y H:i}}', 'NOW', true, 'GMT', 'd.m.Y H:i'],\n ['{{date::d.m.Y}}', 'NOW', true, 'GMT', 'd.m.Y'],\n ['{{date::H:i}}', 'NOW', true, 'GMT', 'H:i'],\n ['Mon, 12 Dec 2011 21:17:52 +0800', 1323695872, true, 'GMT', null],\n ['24.04.2018 17:45', 1524591900, true, null, null],\n ['24.04.2018 17:45', 1524617100, true, 'America/Los_Angeles', null],\n ['ABCDEF\"!§v231', 0, true, null, null],\n [new \\DateTime('Mon, 12 Dec 2011 21:17:52 +0800'), 1323695872, true, 'GMT', null],\n ];\n }", "title": "" }, { "docid": "b3840c4cbbf02ed65bcf1c3febd8a123", "score": "0.44269973", "text": "public function timestampWasQueried() {}", "title": "" }, { "docid": "e2e15d5b18f086b039d4ea42a6a79eda", "score": "0.44191417", "text": "public function getAllRegistrationSessions(){\n\n\t\t$RegistrationSessionList = array();\n\n\t\t$this->_DB->doQuery(\"SELECT * FROM tbl_registration_session\");\n\n\t\t$rows = $this->_DB->getAllRows();\n\n\t\tfor($i = 0; $i < sizeof($rows); $i++) {\n\t\t\t$row = $rows[$i];\n\t\t\t$this->_RegistrationSession = new RegistrationSession();\n\n\t\t $this->_RegistrationSession->setID ( $row['ID']);\n\t\t $this->_RegistrationSession->setName( $row['Name'] );\n\n\n\t\t $RegistrationSessionList[]=$this->_RegistrationSession;\n \n\t\t}\n\n\t\t//todo: LOG util with level of log\n\n\n\t\t$Result = new Result();\n\t\t$Result->setIsSuccess(1);\n\t\t$Result->setResultObject($RegistrationSessionList);\n\n\t\treturn $Result;\n\t}", "title": "" }, { "docid": "5003c55db908b8f00405a51e8a5574aa", "score": "0.44189316", "text": "function get_all_encounters() {\n\t\tglobal $TABLE_ENCOUNTER;\n\n\t\t$currentDate \t= toDBFormat(date('Y-m-d', strtotime('-0 days'))) . \" \" . toDBTimeFormat(date('H:i:s'));\n\t\t$previousDate \t= toDBFormat(date('Y-m-d', strtotime('-14 days'))) . \" \" . toDBTimeFormat(date('H:i:s', strtotime('-7 days')));\n\t\t\n\t\t//WHERE parseType='Kill Shot'\n\t\t\n\t\t$query = mysql_query(sprintf(\"SELECT DISTINCT *\n\t\t\t\t\t\tFROM %s\n\t\t\t\t\t\tWHERE starttime >= '%s'\n\t\t\t\t\t\tAND starttime <= '%s'\n\t\t\t\t\t\tORDER BY starttime DESC\",\n\t\t\t\t\t\tmysql_real_escape_string($TABLE_ENCOUNTER),\n\t\t\t\t\t\t$previousDate,\n\t\t\t\t\t\t$currentDate\n\t\t\t\t\t\t)) or die(mysql_error());\n\t\treturn $query;\n\t}", "title": "" }, { "docid": "b3eb213253617d20e1a331ad2ee414a0", "score": "0.4415477", "text": "public function get_history($regnr, $date1, $date2) {\n $sql = \"SELECT * FROM fel WHERE regnr = :all AND aktiv = 0\";\n $sql1 = \"SELECT * FROM fel WHERE regnr = :regnr AND aktiv = 0 AND klar_datum BETWEEN :date1 AND :date2\";\n \n if($date1 == '' && $date2 == '')\n {\n try\n {\n $stmt = $this->db->prepare($sql);\n $stmt->bindParam(\":all\", $regnr);\n $stmt->execute();\n $r = $stmt->fetchAll(PDO::FETCH_ASSOC);\n }\n catch(Exception $e)\n {\n die($e->getMessage());\n }\n return $r;\n }\n else\n {\n try\n {\n $stmt = $this->db->prepare($sql1);\n $stmt->bindParam(\":regnr\", $regnr);\n $stmt->bindParam(\":date1\", $date1);\n $stmt->bindParam(\":date2\", $date2);\n $stmt->execute();\n $r = $stmt->fetchAll(PDO::FETCH_ASSOC);\n }\n catch(Exception $e)\n {\n die($e->getMessage());\n }\n return $r;\n }\n }", "title": "" }, { "docid": "fbf803ae650dd3ebce4220ca19c834cb", "score": "0.4415248", "text": "public function checkAndNotifySubscribes()\n {\n date_default_timezone_set(\"Europe/Moscow\");\n $moscow_tz = new \\DateTimeZone('Europe/Moscow');\n $time_now = (new \\DateTime())->setTimezone($moscow_tz);\n $time_plus_15 = (new \\DateTime('+ 16 minutes'))->setTimezone($moscow_tz);\n\n $qb = $this->em->getRepository('App:Lecture')->createQueryBuilder('l');\n $lectures = $qb->where(\n \"l.date = ?1 AND l.startTime >= ?2 AND l.startTime <= ?3\"\n )->setParameters(array(\n '1' => $time_now->format(\"Y-m-d\"),\n '2' => $time_now->format(\"H:i\"),\n '3' => $time_plus_15->format(\"H:i\")\n ))->getQuery()->getResult();\n\n $lecturesCount = count($lectures);\n $chatsNotified = 0;\n /** @var Lecture $lecture */\n foreach ($lectures as $lecture)\n {\n $lectureDate = $lecture->getDate();\n $lectureStart = $lecture->getStartTime()->setDate($lectureDate->format(\"Y\"), $lectureDate->format(\"m\"), $lectureDate->format(\"d\"));\n $minDiff = date_diff($time_now, $lectureStart)->i;\n\n /** @var TgChat $chat */\n foreach ($lecture->getChats() as $chat)\n {\n if ($chat->getIsActive() && $chat->isAllowNotify()) {\n $this->_sendMsg(\n $chat,\n $this->twig->render('telegram_bot/notify.html.twig', [\n 'minDiff' => $minDiff,\n 'startTime' => $lectureStart->format(\"H:i\"),\n 'lecture' => $lecture\n ])\n );\n $chatsNotified++;\n }\n }\n }\n\n return [$lecturesCount, $chatsNotified];\n }", "title": "" }, { "docid": "1b9c9a76609a5a5466a4713d99389a04", "score": "0.44013578", "text": "protected function getExpiredFiles()\n {\n $backupsFolder = \\Yii::getAlias($this->backupDir);\n $expireTimestamp = time() - $this->expireTime;\n $extensions = ['tar', 'bz2', 'gzip', 'zip'];\n\n $filter = function ($path) use ($expireTimestamp, $extensions) {\n $isFile = is_file($path);\n $extension = pathinfo($path, PATHINFO_EXTENSION);\n $lastUpdateTime = filemtime($path);\n\n if ($isFile && in_array($extension, $extensions) && $lastUpdateTime <= $expireTimestamp) {\n return true;\n }\n\n return false;\n };\n\n $files = FileHelper::findFiles($backupsFolder, [\n 'recursive' => false,\n 'filter' => $filter,\n ]);\n return $files;\n }", "title": "" }, { "docid": "132026dee7b7a3311e742798cec446ce", "score": "0.43983114", "text": "private function rlist() {\n $res = array();\n foreach($this->filesets as $fs) {\n try {\n $files = $fs->getDirectoryScanner($this->project)->getIncludedFiles();\n foreach ($files as $file) {\n $path = $fs->dir . \"/\" . $file;\n $res[] = filemtime($path);\n }\n } catch (BuildException $be) {\n $this->log($be->getMessage(), Project::MSG_WARN);\n }\n }\n return $res;\n }", "title": "" }, { "docid": "ec79e4a8a6d2edc5407dbdeef82fc9b7", "score": "0.4397519", "text": "function venture_invite_get_all() {\n global $user;\n $rows = array();\n \n $expiry_diff = variable_get('invite_expiry', 30) * 60 * 60 * 24;\n $time = time() - $expiry_diff;\n $sql = \"SELECT * FROM (\n SELECT expiry - %d AS date, email, reg_code, invitee, NULL AS status FROM {invite} WHERE uid = %d AND joined = 0 AND canceled = 0\n UNION\n SELECT i.joined AS date, i.email, i.reg_code, i.invitee, u.status\n FROM {invite} i LEFT JOIN {users} u ON u.uid = i.invitee WHERE i.uid = %d AND i.joined <> 0 AND i.canceled = 0\n ) {invite_history} ORDER BY date DESC\";\n \n $result = db_query($sql, $expiry_diff, $user->uid, $user->uid);\n \n while ($invite = db_fetch_object($result)) {\n $rows[] = array(\n 'date' => format_date($invite->date, 'custom', 'm/d/Y'),\n 'email' => check_plain($invite->email),\n 'reg_code' => $invite->reg_code,\n 'invitee' => $invite->invitee,\n 'invitee_status' => $invite->status,\n 'expired' => (!$invite->invitee && $invite->date < $time ? TRUE : FALSE)\n );\n }\n \n return $rows;\n}", "title": "" } ]
0eaaa796662d4b36f836a45e44bcc2b1
List of collection indexes
[ { "docid": "742efbb214c59512b1acdf2ee3a48756", "score": "0.62581074", "text": "public function indexes()\n {\n return array_merge(parent::indexes(), array(\n 'userId_lang' => array(\n 'key' => array(\n 'userId' => \\EMongoCriteria::SORT_ASC,\n 'lang' => \\EMongoCriteria::SORT_ASC,\n ),\n 'unique' => true,\n ),\n ));\n }", "title": "" } ]
[ { "docid": "e3f93696ea27a3027aecbc9034c9d2c9", "score": "0.7325769", "text": "public function getIndexes()\n {\n return $this->indexes;\n }", "title": "" }, { "docid": "e3f93696ea27a3027aecbc9034c9d2c9", "score": "0.7325769", "text": "public function getIndexes()\n {\n return $this->indexes;\n }", "title": "" }, { "docid": "379dae41a633756af5ce568d12c52468", "score": "0.72168326", "text": "public function getIndexes(): array\n {\n return $this->indexes;\n }", "title": "" }, { "docid": "ccb4f8647a8c4262c9e64425893f329d", "score": "0.7030251", "text": "public function getFlatIndexes()\r\n {\r\n $indexes = array();\r\n\r\n $index = 'IDX_' . strtoupper($this->getAttribute()->getAttributeCode());\r\n $indexes[$index] = array(\r\n 'type' => 'index',\r\n 'fields' => array($this->getAttribute()->getAttributeCode())\r\n );\r\n\r\n return $indexes;\r\n }", "title": "" }, { "docid": "7d8325e50749a58aea47e027154656b8", "score": "0.7024832", "text": "abstract protected function _fetchIndexes();", "title": "" }, { "docid": "45896111e802f24ce6917929de15d27c", "score": "0.6982496", "text": "public function whitesIndexes()\n\t{\n\t\treturn $this->whites_indexes;\n\t}", "title": "" }, { "docid": "3d92292a185c5cd22a90bc290983be04", "score": "0.69762", "text": "public function getIndexCollection()\n {\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $indexModel = $objectManager->create('Solrbridge\\Search\\Model\\Index');\n\n return $indexModel->getCollection();\n }", "title": "" }, { "docid": "6736410637d9ce5e3ac61d8e22ba8a93", "score": "0.68926823", "text": "public function getIndexesName()\n {\n return array_keys($this->indexes);\n }", "title": "" }, { "docid": "e133c836c4c023090b843378679c7f3b", "score": "0.68492544", "text": "public function indices() {\n return array();\n }", "title": "" }, { "docid": "42b7d4f755c4114ecd3e19e5d910e861", "score": "0.683621", "text": "public function getTranslationIndexes();", "title": "" }, { "docid": "69182b5c4d46976cba28142963bb22d1", "score": "0.68333966", "text": "public function getIndexes($collection_name) {\r\n\t\treturn ($this->collectionExists($collection_name)) ? $this->memoized_collections[$collection_name]['indexes'] : false;\r\n\t}", "title": "" }, { "docid": "346d1ad94509f6e8fb705cbdcc7b5608", "score": "0.67947376", "text": "public function getIndexes()\n {\n if (empty($this->_indexes)) {\n $this->_fetchIndexes();\n }\n return $this->_indexes;\n }", "title": "" }, { "docid": "d4a96a085d0722ca6722017d2d4c56bb", "score": "0.67427605", "text": "public function fetch_indexes() {\n if(!$this->exists) {\n return false;\n }\n\n try {\n return $this->collection->getIndexInfo();\n } catch(Exception $e) {}\n\n return false;\n }", "title": "" }, { "docid": "6ac7996b3f7afb16c897aa9956103bc3", "score": "0.66894764", "text": "public function blacksIndexes()\n\t{\n\t\treturn $this->blacks_indexes;\n\t}", "title": "" }, { "docid": "6b84075932d54b4d46ce9e1ef9fe50e2", "score": "0.6661586", "text": "public function getIndexes()\n {\n if (!isset($this->indexes)) {\n $indexes = [];\n $table = $this->getTableMetadata();\n if (isset($table['indexes'])) {\n $metaData = $this->getClassMetadata();\n foreach ($table['indexes'] as $key => $index) {\n foreach ($index['columns'] as $column) {\n try {\n $field = $metaData->getFieldForColumn($column);\n $indexes[$key][$column] = $field;\n } catch (MappingException $e) {}\n }\n }\n }\n $this->indexes = $indexes;\n }\n return $this->indexes;\n }", "title": "" }, { "docid": "3c186167791147602045f3653cc19168", "score": "0.66159064", "text": "protected function getAddlIndexesArray() {\r\n\t\treturn array(array('name'=>'plant_index', 'field'=>'plant_id'));\r\n\t}", "title": "" }, { "docid": "c1ace6c7a239157ea287764352fa8e31", "score": "0.6573122", "text": "public function indexes()\n {\n return array_merge(parent::indexes(), array(\n 'commonId' => array(\n 'key' => array(\n 'commonId' => \\EMongoCriteria::SORT_ASC,\n ),\n ),\n 'isPublished_lang_yearCreated_dateCreated' => array(\n 'key' => array(\n 'isPublished' => \\EMongoCriteria::SORT_ASC,\n 'lang' => \\EMongoCriteria::SORT_ASC,\n 'yearCreated' => \\EMongoCriteria::SORT_DESC,\n 'dateCreated' => \\EMongoCriteria::SORT_DESC,\n ),\n ),\n ));\n }", "title": "" }, { "docid": "8373fb81ce99a90c7cebcd1960f36834", "score": "0.6562321", "text": "public function index(): Collection;", "title": "" }, { "docid": "8373fb81ce99a90c7cebcd1960f36834", "score": "0.6562321", "text": "public function index(): Collection;", "title": "" }, { "docid": "42a3de68773f18ec0a1c39bfb8a78e62", "score": "0.6542816", "text": "public static function getConfigIndexes() {\n $dbh = DatabaseConnection::singleton();\n $stmt = $dbh->get()->prepare(\"SELECT ac_index FROM App_Config\");\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_CLASS);\n }", "title": "" }, { "docid": "832d9812c84da9c058a8878588cac746", "score": "0.65349287", "text": "public function indexes(array $indexes);", "title": "" }, { "docid": "557bfbaab6e0795c8fa6f06f4fdc4b43", "score": "0.6519932", "text": "public function getIndexesGroupedByCollection($storeName);", "title": "" }, { "docid": "5348e20d102fd14c0355315241314e8a", "score": "0.64802855", "text": "public function get_schema_indices()\n {\n return $this->get_index_data();\n }", "title": "" }, { "docid": "6d1b21bdb921940d5ab87571153a5d95", "score": "0.6419936", "text": "public function getIndices()\n {\n return [\n 'min_price' => ($minPrice = $this->getMinimalPrice()) ?? 0,\n 'regular_min_price' => $this->product->price ?? 0,\n 'max_price' => $minPrice ?? 0,\n 'regular_max_price' => $this->product->price ?? 0,\n 'product_id' => $this->product->id,\n 'customer_group_id' => $this->customerGroup->id,\n ];\n }", "title": "" }, { "docid": "53148d7cb72beb0d6abab87bb567e451", "score": "0.64092326", "text": "public function getIndex();", "title": "" }, { "docid": "53148d7cb72beb0d6abab87bb567e451", "score": "0.64092326", "text": "public function getIndex();", "title": "" }, { "docid": "737aadb7886a1bbda9c6cd03dfdd60b4", "score": "0.640177", "text": "public function indexName() {}", "title": "" }, { "docid": "3f0d17521bdb15dd582dad4cac9a2eeb", "score": "0.6382646", "text": "public function listIndices($collection, $includeInfo = false)\n {\n return $this->getToolbox($this->_currentConnection)->getCollectionManager()->listIndices($collection, $includeInfo);\n }", "title": "" }, { "docid": "caa894c11f510aeab0d1e7e2d400c358", "score": "0.6328129", "text": "public function indexName();", "title": "" }, { "docid": "7db9588e7b896ce9801b806236f501e7", "score": "0.6318928", "text": "public function getOpenAnswerIndexes()\n\t{\n\t\treturn $this->open_answer_indexes;\n\t}", "title": "" }, { "docid": "a27e296982e5076eba5827986ecc033a", "score": "0.63114923", "text": "public function getIndexNames()\n {\n $data = $this->getData();\n\n return \\array_map(static function ($name): string {\n return (string) $name;\n }, \\array_keys($data['indices']));\n }", "title": "" }, { "docid": "309b06441e7eb51090402dcd5b0477a4", "score": "0.6306533", "text": "public function getUsedInIndexes() {\n return $this->usedInIndexes;\n }", "title": "" }, { "docid": "45e9cd3f7393a480e2ca0c19095a4897", "score": "0.62941045", "text": "public function getAddedIndices()\n {\n return $this->addedIndices;\n }", "title": "" }, { "docid": "0a9f96e761bd672aa5099c6f2ca6847c", "score": "0.62781847", "text": "public function listTableIndexes($table);", "title": "" }, { "docid": "ffa3c503ac8727c0b480abb31cfe4eea", "score": "0.619677", "text": "public function indexes()\n {\n return array_merge(parent::indexes(), array(\n 'fullNameUk' => array(\n 'key' => array(\n 'fullNameUk' => \\EMongoCriteria::SORT_ASC,\n ),\n 'unique' => true,\n ),\n 'fullNameEn' => array(\n 'key' => array(\n 'fullNameEn' => \\EMongoCriteria::SORT_ASC,\n ),\n ),\n 'shortNameUk' => array(\n 'key' => array(\n 'shortNameUk' => \\EMongoCriteria::SORT_ASC,\n ),\n ),\n 'shortNameEn' => array(\n 'key' => array(\n 'shortNameEn' => \\EMongoCriteria::SORT_ASC,\n ),\n ),\n ));\n }", "title": "" }, { "docid": "8f80222c0a4b839b7ee2efea97606fd5", "score": "0.61337155", "text": "public function getIndexesGroupedByCollection($storeName)\n {\n $indexes = $this->indexes[$storeName];\n //TODO: if we have much more default indexes we should find a better way of doing this\n foreach($indexes as $collection=>$indices) {\n $indexes[$collection][_LOCKED_FOR_TRANS_INDEX] = array(_ID_KEY=>1, _LOCKED_FOR_TRANS=>1);\n $indexes[$collection][_UPDATED_TS_INDEX] = array(_ID_KEY=>1, _UPDATED_TS=>1);\n $indexes[$collection][_CREATED_TS_INDEX] = array(_ID_KEY=>1, _CREATED_TS=>1);\n }\n\n // also add the indexes for any views/tables\n $tableIndexes = [];\n foreach ($this->getTableSpecifications($storeName) as $tspec)\n {\n if (array_key_exists(\"ensureIndexes\",$tspec))\n {\n // Indexes should be keyed by data_source\n if(!isset($tableIndexes[$tspec['to_data_source']]))\n {\n $tableIndexes[$tspec['to_data_source']] = [];\n }\n foreach ($tspec[\"ensureIndexes\"] as $index)\n {\n $tableIndexes[$tspec['to_data_source']][] = $index;\n }\n }\n }\n $indexes[TABLE_ROWS_COLLECTION] = $tableIndexes;\n\n $viewIndexes = [];\n foreach ($this->getViewSpecifications($storeName) as $vspec)\n {\n if (array_key_exists(\"ensureIndexes\",$vspec))\n {\n // Indexes should be keyed by data_source\n if(!isset($viewIndexes[$vspec['to_data_source']]))\n {\n $viewIndexes[$vspec['to_data_source']] = [];\n }\n foreach ($vspec[\"ensureIndexes\"] as $index)\n {\n $viewIndexes[$vspec['to_data_source']][] = $index;\n }\n }\n }\n $indexes[VIEWS_COLLECTION] = $viewIndexes;\n\n return $indexes;\n }", "title": "" }, { "docid": "1f8fda9b6450d8bbd507b5b3d317aaca", "score": "0.6082611", "text": "abstract protected function addIndexes();", "title": "" }, { "docid": "b4a04e2f5352b254408b1b5602d566d8", "score": "0.6055684", "text": "public function get_index() {\n return $this->get_prop( 'index' );\n }", "title": "" }, { "docid": "9b5173aa2738123e467ecf7b1a839c22", "score": "0.60541844", "text": "public function getIndex() {}", "title": "" }, { "docid": "62f8b459d61f4aaab7c271028fe28291", "score": "0.6053071", "text": "public function allIndex()\n {\n return PokemonCollection::collection($this->pokemonRepository->allIndex());\n }", "title": "" }, { "docid": "71109b0af75bbb13978c795de9e3cfea", "score": "0.60524786", "text": "public function getIndexCount(Document $collection): int\n {\n $indexes = \\count((array) $collection->getAttribute('indexes') ?? []);\n return $indexes + static::getNumberOfDefaultIndexes();\n }", "title": "" }, { "docid": "39ab0094d60cd71bea8e16ec6fdeb92d", "score": "0.6043408", "text": "public function findAllIndex()\n {\n $return=[];\n $indicesStats=$this->indices()->stats();\n\n foreach($indicesStats['indices'] as $indexName=>$subIndex)\n {\n $return[$indexName]=$subIndex['total']['docs']['count'];\n }\n\n return $indicesStats;\n }", "title": "" }, { "docid": "9386274e8460142866a20ab34850d6b2", "score": "0.60031897", "text": "public function defineIndexes()\n {\n return array(\n array(\n 'columns' => array(\n 'title'\n ),\n 'unique' => true\n )\n );\n }", "title": "" }, { "docid": "33cf793fd843805822007dfde420c2c9", "score": "0.5973939", "text": "public function getChildrenIndex() {\n return $this->genericRepository->getChildrenIndex();\n }", "title": "" }, { "docid": "cd0910bcfc53de4ec88ba9e9ac89349d", "score": "0.58857876", "text": "public function indexItems($documents) {\n $index = $this->getRealIndex();\n $index->addDocuments($documents);\n $index->refresh();\n return array_keys($documents);\n }", "title": "" }, { "docid": "b2d066f492dc3419a899b3fca7bd936f", "score": "0.58674663", "text": "protected function getSearchIndex()\n {\n $index = [];\n \n foreach ($this as $i => $hospital) {\n $index[strtolower($hospital->name)] = $i;\n $index[strtolower($hospital->name . ', ' . $hospital->city)] = $i;\n }\n \n return $index;\n }", "title": "" }, { "docid": "36dd11bd5d61cd778efab93d1565fc83", "score": "0.58219045", "text": "public function get_idx_number() {\n\t}", "title": "" }, { "docid": "86898a03f6ae7dbb74dae02d38a18928", "score": "0.5816933", "text": "public function index() {\n\t\t$query = $this->get_query( false, $this->get_limit() );\n\t\t$post_ids = $this->wpdb->get_col( $query );\n\n\t\t$indexables = [];\n\t\tforeach ( $post_ids as $post_id ) {\n\t\t\t$indexables[] = $this->repository->find_by_id_and_type( (int) $post_id, 'post' );\n\t\t}\n\n\t\t\\delete_transient( static::TRANSIENT_CACHE_KEY );\n\n\t\treturn $indexables;\n\t}", "title": "" }, { "docid": "f01ad7aa7578825e8f86276e72513471", "score": "0.5813822", "text": "public function ids()\n\t{\n\t\treturn array_keys($this->list_data);\n\t}", "title": "" }, { "docid": "94bf581f26b4615ba0e172955eebc7ec", "score": "0.5808205", "text": "protected function get_table_indexes() {\n\t\t\t$query = $this->wpdadb->prepare(\n\t\t\t\t\"\n\t\t\t\t\tSELECT index_name AS index_name,\n\t\t\t\t\t\t column_name AS column_name,\n\t\t\t\t\t\t non_unique AS non_unique,\n\t \t\t\t\t\t index_type AS index_type\n\t\t\t\t\tFROM information_schema.statistics\n\t\t\t\t\tWHERE table_schema = %s\n\t\t\t\t\t AND table_name = %s\n\t\t\t\t\t AND index_name != 'PRIMARY'\n\t\t\t\t\tORDER BY index_name, column_name, seq_in_index\n\t\t\t\t\",\n\t\t\t\t[\n\t\t\t\t\t$this->wpdadb->dbname,\n\t\t\t\t\t$this->table_name,\n\t\t\t\t]\n\t\t\t);\n\n\t\t\treturn $this->wpdadb->get_results( $query, 'ARRAY_A' ); // WPCS: unprepared SQL OK; db call ok; no-cache ok.\n\t\t}", "title": "" }, { "docid": "06d7f1952b5ca17a4312f9124d84931c", "score": "0.5797144", "text": "public function indicesFunctions()\n {\n return [\n 'stats'=>'provides statistics on the index level scope',\n 'status'=>'get a comprehensive status information of one or more indices',\n 'getMapping'=>'retrieve mapping definitions for an index or index/type',\n //'HotThreads'=>'get the current hot threads on each node in the cluster'\n ];\n }", "title": "" }, { "docid": "fa20e7304ff261519563a9ee46b0273c", "score": "0.57875186", "text": "public function getIndexColumns()\r\n {\r\n return $this->_indexColumns;\r\n }", "title": "" }, { "docid": "ba3efe6a6dd2eb466b8088d9e159bb82", "score": "0.57866734", "text": "public function getModifiedIndices()\n {\n return $this->modifiedIndices;\n }", "title": "" }, { "docid": "a1fc8f3be8c899b182bfd8c92d6a4b23", "score": "0.57856", "text": "public function getIndexes($entity_data)\n\t{\n\t\t$indexes = [];\n\t\t\n\t\tforeach($entity_data as $column_name=>$column_data) {\n\t\t\tif ($column_name != '_params') {\n\t\t\t\tif ($this->isIndexed($column_data)) {\n\t\t\t\t\t$indexes[] = $column_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $indexes;\n\t}", "title": "" }, { "docid": "2d670117e5fb0713546097bc8fd28dbb", "score": "0.57616097", "text": "public function getIndexData();", "title": "" }, { "docid": "31dca9944ab9b2f05892c633a88d4cc2", "score": "0.57496923", "text": "protected function findIndexes()\n {\n $sql = 'SHOW TABLES';\n\n return $this->db->createCommand($sql)->queryAll();\n }", "title": "" }, { "docid": "2a7f148c78cfe8c45dfeb1cedf61f1b9", "score": "0.5745564", "text": "public function index() {\n\t\tif (!isset($this->_options['index'])) {\n\t\t\treturn '' ;\n\t\t}\n\t\tif (is_array($this->_options['index'])) {\n\t\t\treturn implode(',', $this->_options['index']) ;\n\t\t}\n\t\treturn $this->_options['index'] ;\n\t}", "title": "" }, { "docid": "6e0547673bb2c7a28136f629ee7e1dab", "score": "0.57455516", "text": "public function getIndexes($input = null)\n\t{\n\t\tif($input instanceof GetIndexesRequest === false)\n\t\t\t$input = new GetIndexesRequest($input ?? []);\n\n\t\treturn $input->execute($this)->getResults();\n\t}", "title": "" }, { "docid": "a85cecef254525bd39f2ce5bd20202d9", "score": "0.57142264", "text": "function codaserver_show_indexes($resource_identifier, $where_clause = null, $order_by_clause = null) {\r\n\treturn codaserver_query($resource_identifier, 'SHOW INDEXES '.(!empty($where_clause) ? ' WHERE '.$where_clause : '').(!empty($order_by_clause) ? ' ORDER BY '.$order_by_clause : ''));\r\n}", "title": "" }, { "docid": "b5734994144b3924fe490ea967b1beb2", "score": "0.56683713", "text": "public function getIsIndexed();", "title": "" }, { "docid": "fa2509cd1a876d10472173aadaf933fa", "score": "0.56422704", "text": "public function getIndexableRelations();", "title": "" }, { "docid": "59fd891043be871264aa103359ef521c", "score": "0.5609497", "text": "static public function getIndexTypes()\n\t{\n\t\treturn array('1'=>\"db\", '2'=>\"elastic\", '3'=>\"solr\", '4'=>'entityquery');\n\t}", "title": "" }, { "docid": "c31812e02a82c8ec68b528505120d806", "score": "0.55948085", "text": "protected function initIndexesInfo()\n {\n $this->_indexNames = [];\n $this->_indexTypes = [];\n $indexes = $this->findIndexes();\n foreach ($indexes as $index) {\n $indexName = $index['Index'];\n $this->_indexNames[] = $indexName;\n $this->_indexTypes[$indexName] = $index['Type'];\n }\n }", "title": "" }, { "docid": "636c20f0321d19f2869b5758bd923a60", "score": "0.5592975", "text": "function getIndex()\n {\n return $this->iIndex;\n }", "title": "" }, { "docid": "c34fabe6216dc7492bac0b28abf388bf", "score": "0.5590666", "text": "public function getIndex() {\n }", "title": "" }, { "docid": "1cc20963e88b5807ad116a5f55aef4c2", "score": "0.556549", "text": "public function getExcludeFromIndexes()\n {\n return $this->exclude_from_indexes;\n }", "title": "" }, { "docid": "3c6e8d57c887a0a1c520154106b90c9d", "score": "0.55548215", "text": "public function getInstalledModulesListWithIndex(){\n\t\treturn parent::$em->getRepository('RFCore\\Entities\\E_RFModule')->findAllIndexed();\n\t}", "title": "" }, { "docid": "44a03dd1e36e7f4ad4695ec910ae0cd5", "score": "0.5548646", "text": "public function keys()\n {\n $keys = new Set;\n foreach ($this->_items as $entry) {\n $keys->add($entry->getKey());\n }\n return Collection::fixedSet($keys);\n }", "title": "" }, { "docid": "f6832f89b88fd2e55ea31fc6cf54a175", "score": "0.5541029", "text": "public static function getIndexedArray(): array\n {\n return self::find()->select([\"CONCAT(id,' - ', sessionId) AS text\", 'id'])->indexBy('id')->column();\n }", "title": "" }, { "docid": "700d46335ba3cb3d4153e041fefed201", "score": "0.55398685", "text": "public function indexados()\n {\n \treturn [\n \t\tself::ABUELO, self::ABUELA, self::PADRE,\n\t\t\tself::MADRE, self::TIO, self::TIA, \n\t\t\tself::HERMANA, self::HERMANO, self::PADRINO,\n self::MADRINA,\n \t];\n\n }", "title": "" }, { "docid": "df2298efe3bcda0660400ce78f9e1538", "score": "0.55362034", "text": "public function testGetIndexesGroupedByCollection()\n {\n $indexSpecs = MongoTripodConfig::getInstance()->getIndexesGroupedByCollection(\"testing\");\n //print_r($indexSpecs);\n $this->assertArrayHasKey(\"CBD_testing\", $indexSpecs);\n $this->assertArrayHasKey(\"index1\", $indexSpecs[\"CBD_testing\"]);\n $this->assertArrayHasKey(\"dct:subject.u\", $indexSpecs[\"CBD_testing\"][\"index1\"]);\n $this->assertArrayHasKey(\"index2\", $indexSpecs[\"CBD_testing\"]);\n $this->assertArrayHasKey(\"rdf:type.u\", $indexSpecs[\"CBD_testing_2\"][\"index1\"]);\n\n $this->assertArrayHasKey(_LOCKED_FOR_TRANS_INDEX, $indexSpecs[\"CBD_testing\"]);\n $this->assertArrayHasKey(\"_id\", $indexSpecs[\"CBD_testing\"][_LOCKED_FOR_TRANS_INDEX]);\n $this->assertArrayHasKey(_LOCKED_FOR_TRANS, $indexSpecs[\"CBD_testing\"][_LOCKED_FOR_TRANS_INDEX]);\n\n $this->assertArrayHasKey(\"CBD_testing_2\", $indexSpecs);\n $this->assertArrayHasKey(\"index1\", $indexSpecs[\"CBD_testing\"]);\n $this->assertArrayHasKey(\"rdf:type.u\", $indexSpecs[\"CBD_testing_2\"][\"index1\"]);\n\n $this->assertArrayHasKey(_LOCKED_FOR_TRANS_INDEX, $indexSpecs[\"CBD_testing_2\"]);\n $this->assertArrayHasKey(\"_id\", $indexSpecs[\"CBD_testing_2\"][_LOCKED_FOR_TRANS_INDEX]);\n $this->assertArrayHasKey(_LOCKED_FOR_TRANS, $indexSpecs[\"CBD_testing_2\"][_LOCKED_FOR_TRANS_INDEX]);\n\n $this->assertEquals(array(\"value.isbn\"=>1), $indexSpecs[TABLE_ROWS_COLLECTION][0]);\n $this->assertEquals(array(\"value._graphs.sioc:has_container.u\"=>1,\"value._graphs.sioc:topic.u\"=>1), $indexSpecs[VIEWS_COLLECTION][0]);\n }", "title": "" }, { "docid": "dfdd4b5da778eca02d60a7c5361401b8", "score": "0.5533366", "text": "public function getIndex()\n {\n return $this->_index;\n }", "title": "" }, { "docid": "23a032182cb23dd4d81abb19b459c797", "score": "0.5529394", "text": "public function getIndex() {\n \n }", "title": "" }, { "docid": "aec879ba5c03724480d073041726784f", "score": "0.5529067", "text": "public function getKeyIndex()\n {\n return $this->key_index;\n }", "title": "" }, { "docid": "baeda157e7f537aeaac745bc2dad84be", "score": "0.5521827", "text": "abstract protected function index_list( $entities, callable $valueRetriever, callable $indexRetriever):array;", "title": "" }, { "docid": "f5f3b434e4095116dc1f2462788e239d", "score": "0.5508412", "text": "public function getIndex() {\n\t\treturn 1000;\n\t}", "title": "" }, { "docid": "75a531982c2bd514bd5a1bc43051fe87", "score": "0.55047524", "text": "function &extractIndexes($table, $primary = FALSE)\n {\n $table = strtoupper($table);\n $sql = \"SELECT * FROM RDB\\$INDICES WHERE RDB\\$RELATION_NAME = '\".$table.\"'\";\n\n if (!$primary)\n {\n $sql .= \" AND RDB\\$INDEX_NAME NOT LIKE 'RDB\\$%'\";\n }\n else\n {\n $sql .= \" AND RDB\\$INDEX_NAME NOT LIKE 'RDB\\$FOREIGN%'\";\n }\n\n $rs=$this->execute($sql);\n\n $indexes = array();\n while ($row = ibase_fetch_row($rs))\n {\n $index = $row[0];\n if (!isset($indexes[$index]))\n {\n if (is_null($row[3]))\n {\n $row[3] = 0;\n }\n\n $indexes[$index] = array(\n 'unique' => ($row[3] == 1),\n 'columns' => array()\n );\n }\n\n $sql = \"SELECT * FROM RDB\\$INDEX_SEGMENTS WHERE RDB\\$INDEX_NAME = '\".$index.\"' ORDER BY RDB\\$FIELD_POSITION ASC\";\n $rs1 = $this->execute($sql);\n\n while ($row1 = ibase_fetch_row($rs1))\n {\n $indexes[$index]['columns'][$row1[2]] = $row1[1];\n }\n }\n return $indexes;\n }", "title": "" }, { "docid": "fdd5c9cffd02f09ad8bcdcaa719bb737", "score": "0.55006015", "text": "public function keys()\n {\n return array_keys($this->container);\n }", "title": "" }, { "docid": "102683551372be79971f463471c83573", "score": "0.54942113", "text": "public function getIndex()\n {\n $index = array(\n 'parameters' => $this->parameters,\n 'bundles' => $this->bundles,\n 'views_key_path' => $this->viewsKeyPath,\n 'services' => $this->services,\n 'alias_services' => $this->alias_services,\n 'tag_services' => $this->tag_services,\n 'routes' => $this->routes,\n 'doctrine_data' => $this->doctrineData,\n );\n return $index;\n }", "title": "" }, { "docid": "09bf23f5f510ba9dc7be9ab6d1fad6e1", "score": "0.54924273", "text": "public function composeSearchIndex()\n {\n return [\n 'A' => '',\n 'B' => '',\n 'C' => '',\n 'D' => '',\n ];\n }", "title": "" }, { "docid": "00d3ae120806c1c0ed9179189030020b", "score": "0.5491948", "text": "public function getIndex() {\n\t\treturn $this->_index;\n\t}", "title": "" }, { "docid": "922e804253a5f4d818f4f824a080ccd7", "score": "0.5475945", "text": "private function findWhitesIndexes()\n\t{\n\t\t$all_fields_indexes = range(0, $this->places_number - 1);\n\t\t\n\t\t$this->whites_indexes = array_diff($all_fields_indexes, $this->blacks_indexes);\n\t}", "title": "" }, { "docid": "5448ae0ba02dda7a1b794464ada4b74c", "score": "0.5470796", "text": "public function keys()\n\t{\n\t\t$this->set_source(false); //elastic return no _source\n\t\treturn $this->engine()->keys($this);\n\t}", "title": "" }, { "docid": "ce17a87a7a115396aca6d8da20d221c2", "score": "0.5462167", "text": "public function keys()\n {\n return array_keys($this->all());\n }", "title": "" }, { "docid": "e0f1e944f7e45e16ecc8a6d65e4b69d4", "score": "0.54576224", "text": "public function getIndex()\n {\n \treturn (int) $this->index;\n }", "title": "" }, { "docid": "285018d60ea18a4909f9f0d8e8ba810e", "score": "0.54559785", "text": "public function index(): Collection|array\n {\n return $this->integrationService->getAll();\n }", "title": "" }, { "docid": "db608cc8445e6c1698d0b25a72e25c9e", "score": "0.5454894", "text": "protected function updateIndexes()\n {\n $indexes = [];\n\n foreach ($this->indexes as $index => $values) {\n foreach ($this->data as $id => $data) {\n if (array_key_exists($index, $data) && !empty($data[$index])) {\n $indexes[$index][$data[$index]][] = $id;\n }\n }\n }\n\n $this->indexes = $indexes;\n }", "title": "" }, { "docid": "5137f17ce5bfcfcc2e90820900166d47", "score": "0.54544467", "text": "public function getidx()\n {\n return $this->idx;\n }", "title": "" }, { "docid": "02478d6719fbe7dc6a4b7ffb6155a581", "score": "0.5446838", "text": "public abstract function getIndices($tableName);", "title": "" }, { "docid": "1300dc88b038eb025c8d8702b27ed1f6", "score": "0.54403883", "text": "public function key()\n {\n return key($this->collections);\n }", "title": "" }, { "docid": "f706e892842e429d12887f8cf41fa9a5", "score": "0.54390156", "text": "public function index()\n {\n //return all collections\n $collections = Customer::where('company_id', Auth::user()->company_id)\n ->orderBy('id', 'desc')\n ->with('collection', 'company', 'bin')\n ->get();\n\n return $collections;\n }", "title": "" }, { "docid": "ac4f51cd002bf65e2b4eaf4e1a1b51c3", "score": "0.54347765", "text": "public final function computeIndex() {\n if ($this->indexComputed) {\n return;\n }\n $cellList = [];\n $edgeList = [];\n for ($i = 0; $i < $this->getNumEdges(); ++$i) {\n $from = $this->edgeFrom($i);\n $to = $this->edgeTo($i);\n $cover = [];\n $level = $this->getCovering($from, $to, true, $cover);\n $minimumS2LevelUsed = min($minimumS2LevelUsed, $level);\n foreach ($cover as $cellId) {\n $cellList[] = $cellId->id();\n $edgeList[] = $i;\n }\n }\n $this->cells = [];\n $this->edges = [];\n for ($i = 0; $i < count($this->cells); $i++) {\n $this->cells[$i] = $cellList[$i];\n $this->edges[$i] = $edgeList[$i];\n }\n $this->sortIndex();\n $this->indexComputed = true;\n }", "title": "" }, { "docid": "49e04361b231e86a39220d78a1f6d270", "score": "0.542174", "text": "public function Clients()\n\t{\n\t\t//\n\t\t// Connect object.\n\t\t//\n\t\t$this->Connect();\n\n\t\t//\n\t\t// Instantiate collection handler.\n\t\t//\n\t\t$handler = new ArangoCollectionHandler( $this->Connection() );\n\n\t\treturn\n\t\t\tarray_keys(\n\t\t\t\t$handler->getAllCollections(\n\t\t\t\t\t[\n\t\t\t\t\t\t'excludeSystem' => TRUE,\n\t\t\t\t\t\t'keys' => 'names'\n\t\t\t\t\t]\n\t\t\t\t)\n\t\t\t);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ==>\n\n\t}", "title": "" }, { "docid": "dd70f2d1086b243e91fefb1a253c7031", "score": "0.5416235", "text": "protected function get_indexable_lookup() {\n\t\treturn [\n\t\t\t'focuskw' => 'primary_focus_keyword',\n\t\t\t'canonical' => 'canonical',\n\t\t\t'title' => 'title',\n\t\t\t'metadesc' => 'description',\n\t\t\t'bctitle' => 'breadcrumb_title',\n\t\t\t'opengraph-title' => 'open_graph_title',\n\t\t\t'opengraph-image' => 'open_graph_image',\n\t\t\t'opengraph-image-id' => 'open_graph_image_id',\n\t\t\t'opengraph-description' => 'open_graph_description',\n\t\t\t'twitter-title' => 'twitter_title',\n\t\t\t'twitter-image' => 'twitter_image',\n\t\t\t'twitter-image-id' => 'twitter_image_id',\n\t\t\t'twitter-description' => 'twitter_description',\n\t\t\t'estimated-reading-time-minutes' => 'estimated_reading_time_minutes',\n\t\t];\n\t}", "title": "" }, { "docid": "b8d88c1d973f7c44e2dc4ce11dac264a", "score": "0.54154974", "text": "public function key() {\n return key($this->collection);\n }", "title": "" }, { "docid": "9b64790dd0427321fd15376cf1392c4f", "score": "0.54112273", "text": "public function key()\n {\n return key($this->collection);\n }", "title": "" }, { "docid": "7919b1d4fab9c4e569d54a6b8e279581", "score": "0.54105276", "text": "public function getSiteIds() {\n return array_keys( $this->sites );\n }", "title": "" }, { "docid": "15653231d014ce70a6f1933027fd6f86", "score": "0.5409828", "text": "public function index(): array\n {\n return ['item0', 'item1'];\n }", "title": "" }, { "docid": "c7638b70f328aad3f892a4c12bd842c1", "score": "0.53939307", "text": "public function getIndex() {return $this->index;}", "title": "" }, { "docid": "660cf2e06806b0b755821131641a07e7", "score": "0.53846914", "text": "public function indexOptions();", "title": "" } ]
1b39e02288f33f806d95ffad0bcd4534
Seed the application's database.
[ { "docid": "907ccc9e9064503c73698615bd7eb6a4", "score": "0.0", "text": "public function run()\n {\n DB::table('users')->insert([\n 'student1' => 'admin',\n 'student2'=>'admin',\n 'unique_id' => '100W999',\n 'phone'=>'12344444444',\n 'email' => '[email protected]',\n 'password' => Hash::make('password'),\n 'role'=>1,\n ]);\n\n // \\App\\Models\\User::factory(10)->create();\n }", "title": "" } ]
[ { "docid": "aafc5021b3d16568f5744b8c1b06ef17", "score": "0.79410803", "text": "function db_seed_db() {\n db_populate_users();\n db_populate_accounts();\n db_populate_transactions();\n}", "title": "" }, { "docid": "ae417c174acde0324bbfea81dca6c3e5", "score": "0.7475806", "text": "public function seed()\n\t{\n\t\t$this->comment('Seeding DB.');\n\t\t$this->comment('**************************************************');\n\n\t\t// Seed users\n\t\t$seeder = new \\Krustr\\Seeds\\UsersTableSeeder;\n\t\t$seeder->run();\n\t\t$this->info('Users seeded.');\n\n\t\t// Seed content\n\t\t$seeder = new \\Krustr\\Seeds\\EntriesTableSeeder;\n\t\t$seeder->run();\n\t\t$this->info('Content seeded.');\n\n\t\t$this->comment('Done.');\n\t\t$this->comment('**************************************************');\n\t}", "title": "" }, { "docid": "1cabb5c7d54e3d7a98803df7ee842740", "score": "0.73739475", "text": "protected function runApplicationSeeds()\n {\n Artisan::call('db:seed');\n }", "title": "" }, { "docid": "af1bb381c09ff7c49767eac3a7795980", "score": "0.70688856", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::statement('TRUNCATE roles;');\n DB::statement('TRUNCATE users;');\n DB::statement('TRUNCATE permissions;');\n DB::statement('TRUNCATE model_has_roles;');\n DB::statement('TRUNCATE model_has_permissions;');\n DB::statement('TRUNCATE role_has_permissions;');\n // $this->call(UsersTableSeeder::class);\n\t$this->call(PermissionSeed::class);\n $this->call(RoleSeed::class);\n $this->call(UserSeed::class);\n $this->call(ClientSeed::class);\n DB::statement(\"UPDATE users SET client_id=(SELECT id FROM clients WHERE email='[email protected]' LIMIT 1) WHERE id IN (4,5,6);\");\n $this->call(PaymentSeed::class);\n// \n $this->call(SettingSeed::class);\n $this->call(InvoiceSeed::class);\n $this->call(InvoiceItemSeed::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "fffa86cfa28d87190f8c7bade1bd3c77", "score": "0.70343137", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n\t\t$this->call('UsersRolesTableSeeder');\n\n\t\t$this->call('PermissionsTableSeeder');\n\n\t\t$this->call('CategorySeeder');\n\n\t\t$this->call('AttributesSeeder');\n\n\t\t$this->call('DefaultValuesTableSeeder');\n\n\t\t$this->call('ProductSeeder');\n\t\t\n\t\t$this->call('ValuesSeeder');\n\n\t\t$this->call('SliderTableSeeder');\n\n\t\t$this->call('ColorsTableSeeder');\n\n\t\t$this->call('BrandsTableSeeder');\n\n\t\t$this->call('ActivityTypesTableSeeder');\n\n\t\t$this->call('TopicsTableSeeder');\n\n\t\t$this->call('ArticlesTableSeeder');\n\n\t\t$this->call('PagesTableSeeder');\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "title": "" }, { "docid": "63957e597c45497e1cd3421c8405524c", "score": "0.702114", "text": "public function run()\n {\n /**\n * IMPORTANT!\n * The database seed is written to handle the task centralized\n * It should use:\n * php artisan db:seed\n * -> You can not run the seeds separately, it could cause errors!\n */\n if (App::environment() === 'production') exit();\n\n Eloquent::unguard();\n\n // Truncate all tables, except migrations\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n $tables = DB::select('SHOW TABLES');\n foreach ($tables as $table) {\n if ($table->{'Tables_in_' . env('DB_DATABASE')} !=='migrations')\n DB::table($table->{'Tables_in_' . env('DB_DATABASE')})->truncate();\n }\n\n $this->call(UsersTableSeeder::class);\n factory(User::class, 5)->create();\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n\n $this->call(CategoriesTableSeeder::class);\n factory(Category::class, 10)->create();\n\n factory(Post::class, 100)->create();\n\n factory(Tag::class, 20)->create();\n $this->call(PostTagTableSeeder::class);\n\n factory(Comment::class, 250)->create();\n }", "title": "" }, { "docid": "aedb15a7daaa030a83fa98e455c775ba", "score": "0.7015063", "text": "public function run()\n {\n Model::unguard();\n\n $this->call('AdminUserTableSeeder');\n $this->call('CountryTableSeeder');\n $this->call('ProvinceTableSeeder');\n $this->call('CategoryTableSeeder');\n\n\n if (App::environment() === 'testing') {\n // Add More Seed For Testing\n }elseif(App::environment() === 'local'){\n $this->call('ImageTableSeeder');\n $this->call('UserTableSeeder');\n $this->call('InquiryTableSeeder');\n $this->call('TeacherTableSeeder');\n $this->call('TeacherCategoryTableSeeder');\n $this->call('TimeSlotTableSeeder');\n $this->call('PaymentLogTableSeeder');\n $this->call('BookingTableSeeder');\n $this->call('PointLogTableSeeder');\n $this->call('PurchaseLogTableSeeder');\n $this->call('ReviewTableSeeder');\n\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "d161e29ebbd4e6d24c072d7641947e5f", "score": "0.69740355", "text": "public function run()\n {\n User::factory(5)->create();\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n DB::table('settings')->truncate();\n DB::table('categories')->truncate();\n DB::table('articles')->truncate();\n DB::table('tags')->truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n //$this->call(CategoriesTableSeeder::class);\n $this->call(SettingsTableSeeder::class);\n }", "title": "" }, { "docid": "667490994875e2c5774dfc9f5e146543", "score": "0.6961547", "text": "public function run()\n {\n if(App::environment() === 'production'){\n exit('No seeding for production environment!');\n }\n\n Model::unguard();\n\n // Empty all the tables before seeding\n $tables = ['uniquestrings','system_logs']; \n foreach($tables as $table){\n DB::table($table)->truncate();\n }\n\n $this->call(UsersTableSeeder::class);\n $this->call(SettingsTableSeeder::class);\n $this->call(RanksTableSeeder::class);\n $this->call(SnamesTableSeeder::class);\n\n Model::reguard();\n }", "title": "" }, { "docid": "1c0440cfdb08bb5b12165619a0bf92db", "score": "0.69344413", "text": "public function run()\n {\n if (App::environment() === 'production')\n {\n exit('You almost just nuked production and seeded it with crap data. Dummy.');\n }\n\n Eloquent::unguard();\n\n $this->call('SpellTableSeeder');\n $this->call('FeatTableSeeder');\n $this->call('MagicItemTableSeeder');\n $this->call('MonsterTableSeeder');\n $this->call('NPCTableSeeder');\n $this->call('TraitTableSeeder');\n $this->call('UsersTableSeeder');\n }", "title": "" }, { "docid": "c26fe56e4619ebb234c8ba7afdd46108", "score": "0.6933109", "text": "public function run() {\n\t\tLog::info('Running Data Seeder');\n\n\t\t$administrator = new Role();\n\t\t$administrator->name = 'administrator';\n\t\t$administrator->display_name = 'System Administrator';\n\t\t$administrator->description = 'Administrator';\n\t\t$administrator->save();\n\n\t\t$user = new Role();\n\t\t$user->name = 'user';\n\t\t$user->display_name = 'System User';\n\t\t$user->description = 'User';\n\t\t$user->save();\n\n\t\t$administratorPermission = new Permission();\n\t\t$administratorPermission->name = 'all';\n\t\t$administratorPermission->display_name = 'System Administrator Permission';\n\t\t$administratorPermission->description = 'Grant Full Access';\n\t\t$administratorPermission->save();\n\n\t\t$userPermission = new Permission();\n\t\t$userPermission->name = 'restricted';\n\t\t$userPermission->display_name = 'User Permission';\n\t\t$userPermission->description = 'Restricted Access';\n\t\t$userPermission->save();\n\n\t\t$administrator->attachPermission($administratorPermission);\n\t\t$user->attachPermission($userPermission);\n\n\t\t$adminAccount = User::create([\n\t\t\t'name' => 'System Administrator',\n\t\t\t'email' => '[email protected]',\n\t\t\t'password' => bcrypt('123456'),\n\t\t]);\n\n\t\t$userAccount = User::create([\n\t\t\t'name' => 'User',\n\t\t\t'email' => '[email protected]',\n\t\t\t'password' => bcrypt('123456'),\n\t\t]);\n\n\t\t$adminAccount->attachRole($administrator);\n\t\t$userAccount->attachRole($user);\n\n\t\tLog::info('Seeding data to database finished :)');\n\t}", "title": "" }, { "docid": "b25778737debb82bd77f23b2efb424d1", "score": "0.6901025", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \n User::truncate();\n Countrie::truncate();\n Gender::truncate();\n Language::truncate();\n Marital_status::truncate();\n Tp_doc::truncate();\n \n // $this->call(UsersTableSeeder::class);\n $this->call(GendersTableSeeder::class);\n $this->call(LanguagesTableSeeder::class);\n $this->call([\n MaritalStatusTableSeeder::class,\n TpDocTableSeeder::class\n ]);\n \n $numberOfCountries = 10;\n $numberOfGeoDiv = 6;\n $numberOfUsers = 4;\n // $numberGenders = 2;\n \n factory(Countrie::class, $numberOfCountries)->create();\n factory(Geo_div::class, $numberOfGeoDiv)->create();\n factory(User::class, $numberOfUsers)->create();\n // factory(Gender::class, $numberGenders)->create();\n \n }", "title": "" }, { "docid": "8723bc90b83128ccad6c9d728dcedfe6", "score": "0.6889444", "text": "public function run()\n {\n \\DB::table(self::TABLE_NAME)->delete();\n\n $seeds = [];\n $seeds['name'] = 'やまだ たろう';\n $seeds['email'] = '[email protected]';\n $seeds['password'] = '123456';\n\n \\DB::table(self::TABLE_NAME)->insert($seeds);\n }", "title": "" }, { "docid": "28ed48ef7b8b0f411ac160ac31a2c356", "score": "0.686541", "text": "public function run()\n {\n if (env('APP_ENV') !== 'production') {\n foreach ($this->toTruncate as $table) {\n DB::table($table)->truncate();\n }\n\n $this->call(UserTableSeeder::class);\n $this->call(ServiceTableSeeder::class);\n $this->call(VoucherTableSeeder::class);\n\n } else {\n print_r('With production env you cannot make seeds');\n }\n }", "title": "" }, { "docid": "3318112ca4787d2d916f89d0587fd035", "score": "0.67977965", "text": "public function run()\n {\n $this->call(AppConfigurationsTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n\n $this->call(ObjectTypesTableSeeder::class);\n $this->call(StatusesTableSeeder::class);\n\n $this->call(AdminsTableSeeder::class);\n\n $this->call(UsersTableSeeder::class);\n // $this->call(ClientApplicationsSeeder::class); // commented since db is changed\n \n }", "title": "" }, { "docid": "6acb64825bfa1a3072e865ec35773568", "score": "0.67970556", "text": "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(RegionsTableSeeder::class);\n if (env('APP_ENV') !== 'production') {\n factory('App\\Course', random_int(4, 20))->create()->each(function ($u) {\n $u->partecipants()->saveMany(factory('App\\Partecipant', random_int(0, 10))->create());\n });\n factory('App\\Newsletter', 40)->create();\n }\n }", "title": "" }, { "docid": "d24ad721e08c93c28f7f552d3de2009f", "score": "0.6793816", "text": "public function run()\n {\n //Desabilita o mass assignment\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 //Remove todos os dados das tabelas e reseta o ID para 0\n \\DB::table('badges')->truncate();\n \\DB::table('achievements')->truncate();\n \\DB::table('stores')->truncate();\n \\DB::table('products')->truncate();\n \\DB::table('product_store')->truncate();\n \\DB::table('effects')->truncate();\n \\DB::table('classes')->truncate();\n \\DB::table('avatars')->truncate();\n \\DB::table('actions')->truncate();\n \n //Cria as badges\n $this->call(BadgeTableSeeder::class);\n\n //Cria os achievements\n $this->call(BronzeAchievementsTableSeeder::class);\n $this->call(SilverAchievementsTableSeeder::class);\n $this->call(GoldAchievementsTableSeeder::class);\n $this->call(PlatinumAchievementsTableSeeder::class);\n\n //Cria as lojas\n $this->call(StoreSeeder::class);\n\n //Cria os produtos (com efeitos)\n // $this->call(ProductsSeeder::class);\n $this->call(LanchoneteSeeder::class);\n $this->call(BarSeeder::class);\n $this->call(EquipamentSeeder::class);\n $this->call(EscolaSeeder::class);\n\n //Cria as ações\n $this->call(ActionsTableSeeder::class);\n\n //Cria as classes\n $this->call(ClassesSeeder::class);\n\n //Cria os avatares\n $this->call(AvatarSeeder::class);\n\n //Enable the constraint check again\n \\DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "title": "" }, { "docid": "c3aaa4a2647f81d5e6a9f147ff25f54b", "score": "0.6788116", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $this->call('SentryGroupSeeder');\n $this->call('CategoriesAndSkillsTableSeeder');\n $this->call('TestUsersSeeder');\n $this->call('DaysTableSeeder');\n $this->call('JobTableSeeder');\n $this->call('UsersTableSeeder');\n $this->call('FavoritesTableSeeder');\n $this->call('RatingsTableSeeder');\n $this->call('UpdateUsersRatings');\n $this->call('ProductsTableSeeder');\n #$this->call('LocationTableSeeder');\n $this->call('ChargesTableSeeder');\n $this->call('ActionsTableSeeder');\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "title": "" }, { "docid": "3f0013a22e4c41213b56006853ef9777", "score": "0.6784829", "text": "public function run()\n {\n if (App::environment() == 'production') {\n throw new RuntimeException('Seeders should never run in production!');\n }\n\n if (App::environment() == 'local' || App::environment() == 'staging') {\n $this->truncateTables();\n $this->call(UsersTableSeeder::class);\n $this->call(PropertiesTableSeeder::class);\n $this->call(RentalEstimatesTableSeeder::class);\n }\n\n if (App::environment() == 'testing') {\n $this->truncateTables();\n $this->call(UsersTableSeeder::class);\n $this->call(PropertiesTableSeeder::class);\n $this->call(RentalEstimatesTableSeeder::class);\n }\n\n if (App::environment() == 'dusk') {\n $this->truncateTables();\n $this->call(UsersTableSeeder::class);\n $this->call(PropertiesTableSeeder::class);\n $this->call(RentalEstimatesTableSeeder::class);\n }\n }", "title": "" }, { "docid": "3ab9e3aee4c6edb3c89002e4e410c0fe", "score": "0.67707103", "text": "public function run()\n {\n Model::unguard();\n\n // seed social sites\n $this->seedSocialSites();\n\n // seed roles\n $this->seedRoles();\n\n // seed permissions\n $this->seedPermissions();\n\n // seed users\n $this->seedUsers();\n\n // seed user profiles\n //$this->seedUserProfiles();\n\n // seed users\n $this->seedClientRequests();\n\n //[FACTORY_REGISTER]\n\n }", "title": "" }, { "docid": "950fb9c81f4f1b6f7a350fe6dfc94746", "score": "0.67669624", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n\n DB::table('users')->truncate();\n\n $this->call([ EmpresasTableSeeder::class]);\n $this->call([ UsersTableSeeder::class]);\n $this->call([ ProdutosTableSeeder::class]);\n $this->call([ ConfiguracaoTableSeeder::class]);\n $this->call([ LicencaSeed::class]);\n $this->call([ TipoMovimentoSeeder::class]);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n }", "title": "" }, { "docid": "d3400d21f093d57ea753b77926bf60b1", "score": "0.67668384", "text": "public function run()\n {\n Eloquent::unguard();\n\n // Sync problems\n $this->call(ProblemsTableSeeder::class);\n\n // Seed users\n $this->call(UsersTableSeeder::class);\n\n // Seed teams\n $this->call(TeamsTableSeeder::class);\n\n // Seed contests\n $this->call(ContestsTableSeeder::class);\n\n // Seed submissions\n $this->call(LanguageTableSeeder::class);\n\n // Seed submissions\n $this->call(SubmissionsTableSeeder::class);\n\n // Seed questions\n $this->call(QuestionsTableSeeder::class);\n\n // Seed groups\n $this->call(GroupsTableSeeder::class);\n\n // Seed sheets\n $this->call(SheetsTableSeeder::class);\n\n // Seed notifications\n $this->call(NotificationsTableSeeder::class);\n\n // Seed blogs\n $this->call(BlogsTableSeeder::class);\n\n // Seed votes\n\n }", "title": "" }, { "docid": "798042e35e3446e6354e5403dc52af07", "score": "0.67653525", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::statement('TRUNCATE TABLE users');\n DB::statement('TRUNCATE TABLE password_resets');\n DB::statement('TRUNCATE TABLE banks');\n DB::statement('SET FOREIGN_KEY_CHECKS=1');\n $this->call(UserTableSeeder::class);\n $this->call(BankTableSeeder::class);\n }", "title": "" }, { "docid": "9b9789ceaa00fe16350aeb78a3d0c024", "score": "0.6759631", "text": "public function run()\n {\n $this->seed('BreadTemplatesTableUnseeder');\n $this->seed('MenuItemsTableUnseeder');\n $this->seed('PermissionsTableUnseeder');\n $this->seed('DataRowsTableUnseeder');\n }", "title": "" }, { "docid": "4589b43c2ae04e8aaed26a913babcad5", "score": "0.67574334", "text": "public function run()\n {\n $this->call('DatabaseSeeder'); \n\n $this->call('LawenconCountriesTableSeeder');\n $this->call('LawenconProvincesTableSeeder');\n $this->call('LawenconCitiesTableSeeder');\n $this->call('LawenconCompaniesTableSeeder');\n $this->call('LawenconCompanySettingsTableSeeder'); \n $this->call('LawenconLovsTableSeeder');\n }", "title": "" }, { "docid": "e217d7afd6f4665c2fd58dd64bb85605", "score": "0.6750097", "text": "public function run()\n\t{\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\tEloquent::unguard();\n\n\t\t$this->call('DependenciesTableSeeder');\n\t\t$this->call('ContactsTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('InterestsTableSeeder');\n\t\t$this->call('CareerPathsTableSeeder');\n\t\t$this->call('AcademicTrainingsTableSeeder');\n\t\t$this->call('CoursesTableSeeder');\n\t\t$this->call('TakenCoursesTableSeeder');\n\t\t$this->call('RecommendedCoursesTableSeeder');\n\t\t$this->call('DesiredCoursesTableSeeder');\n\t\t$this->call('TagsTableSeeder');\n\t\t$this->call('CoursesTagsTableSeeder');\n\t\t$this->call('AgendaTableSeeder');\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1');\n\t}", "title": "" }, { "docid": "71e297462d0b512bdca56b37e741ed89", "score": "0.6748664", "text": "public function run()\n {\n DB::table('users')->delete();\n DB::table('post')->delete();\n\n factory(App\\Post::class, 8)->create();\n\n User::create([\n 'name' => 'adam',\n 'email' => '[email protected]',\n 'password' => bcrypt('aaaaaa')\n ]);\n }", "title": "" }, { "docid": "5b31652175fc92e77dd4965ef10b653d", "score": "0.67378587", "text": "protected static function _setUpDatabase()\n {\n\n Db::buildSchema()->table(static::$_table)\n ->autoId()\n ->varChar('name')\n ->varChar('email')\n ->varChar('code')\n ->timestamp()\n ->create();\n\n }", "title": "" }, { "docid": "10588456b32c0d4fdad09a04ca45f6e4", "score": "0.6734166", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // Add calls to Seeders here\n\t\t$this->call('EmpresasTableSeeder');\n\t\t$this->call('UsuariosTableSeeder');\n\t\t$this->call('CategoriasTableSeeder');\n\t\t$this->call('ArticulosTableSeeder');\n\t\t$this->call('EscalasTableSeeder');\n\t\t$this->call('MensajesTableSeeder');\n\t\t$this->call('ConfiguracionPujasTableSeeder');\n\t\t$this->call('PujasTableSeeder');\n\t\t$this->call('LiniaMsTableSeeder');\n\t\t$this->call('SubcategoriasTableSeeder');\n\t\t$this->call('ValoracionesTableSeeder');\n\t\t$this->call('ImagenesTableSeeder');\n\t\t$this->call('LocalidadesTableSeeder');\n\t\t$this->call('FacturasTableSeeder');\n\t\t$this->call('Metodo_pagosTableSeeder');\n\t\t$this->call('Metodo_enviosTableSeeder');\n\t\t\n\t\t\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\t}", "title": "" }, { "docid": "37f75445eac5500a5441c2dc4dc45a80", "score": "0.6723235", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n App\\User::create([\n 'email' => \"[email protected]\",\n \"name\" => \"Dragan\",\n \"password\" => bcrypt(\"123456\"),\n \"email_verified_at\" => now(),\n ]);\n $this->call(CountriesTableSeeder::class);\n $this->call(HotelsTableSeeder::class);\n $this->call(RoomTypesTableSeeder::class);\n $this->call(RoomsTableSeeder::class);\n }", "title": "" }, { "docid": "37f1ccd3c22bb193f352aa3e08bbcd3f", "score": "0.6716024", "text": "public function run()\n {\n $this->truncateTables([\n 'nominas','positions', 'branches', 'departments',\n 'units', 'professions', 'banks', 'companies',\n 'users', 'employees', 'employee_profiles',\n ]);\n\n $this->call(UsersTableSeeder::class);\n $this->call(NominaTableSeeder::class);\n $this->call(PositionsTableSeeder::class);\n $this->call(BranchesTableSeeder::class);\n $this->call(DepartmentsTableSeeder::class);\n $this->call(UnitsTableSeeder::class);\n $this->call(ProfessionTableSeeder::class);\n $this->call(BankSeeder::class);\n // $this->call(PermissionsTableSeeder::class);\n $this->call(CompaniesTableSeeder::class);\n $this->call(EmployeesTableSeeder::class);\n }", "title": "" }, { "docid": "8f91e2d5de87b3600226bf800ae3e663", "score": "0.6705647", "text": "public function run()\n {\n // $this->call('UsersTableSeeder');\n\n /*\\Illuminate\\Support\\Facades\\DB::statement(\"SET FOREIGN_KEY_CHECKS = 0\");\n\n \\App\\User::truncate();*/\n\n /*\\App\\Post::truncate();\n \\App\\Comment::truncate();*/\n\n /*factory(\\App\\User::class,10)->create();*/\n\n /*\n factory(\\App\\Post::class,50)->create();\n factory(\\App\\Comment::class,100)->create();*/\n\n /*\\Illuminate\\Support\\Facades\\DB::statement(\"SET FOREIGN_KEY_CHECKS = 1\");*/\n\n\n $this->call(UserTableSeeder::class);\n\n\n }", "title": "" }, { "docid": "452131988d3c35e2d35b81f7205f602b", "score": "0.67021716", "text": "public function run()\n {\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'password' => Hash::make('testroot')\n ]);\n\n factory(User::class)->create();\n\n factory(Article::class)->times(20)->create();\n factory(Comment::class)->times(10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "5e8d41bc30252c8c89e5771f3ee4e809", "score": "0.67006725", "text": "protected function setUpDatabase()\n {\n include_once __DIR__.'/../src/database/migrations/2019_10_04_235130_create_model_logs_table.php';\n (new \\CreateModelLogsTable())->up();\n\n Schema::create('test_model_table', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->string('city');\n $table->string('country');\n $table->timestamps();\n });\n\n Schema::create('test_user_table', function (Blueprint $table) {\n $table->increments('id');\n $table->string('name');\n $table->string('email');\n $table->string('password');\n $table->rememberToken();\n $table->timestamps();\n });\n\n ModelEventLogTestUser::query()->create([\n 'name' => 'John',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n }", "title": "" }, { "docid": "ed53ec464d1aefd87d530c525441eec2", "score": "0.669862", "text": "public function run()\n {\n \tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n \t// empty table first\n \tLocation::truncate();\n\n \t// create 50 records\n \t// factory(model::class, number_of_records)->create();\n \tfactory(Location::class, 50)->create();\n // $this->call('UserTableSeeder');\n }", "title": "" }, { "docid": "e7538215ecaa7244e1abcefdee5cd81b", "score": "0.66840196", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n $this->call(UsersTableSeeder::class);\n $this->call(RolesTableSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(PermissionGroupsTableSeeder::class);\n $this->call(UserHasRolesTableSeeder::class);\n $this->call(RoleHasPermissionsTableSeeder::class);\n $this->call(SystemSettingsTableSeeder::class);\n $this->call(PagesTableSeeder::class);\n $this->call(PageTypesTableSeeder::class);\n $this->call(CountriesTableSeeder::class);\n $this->call(StatesTableSeeder::class);\n// $this->call(CitiesTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n $this->call(ContactsTableSeeder::class);\n $this->call(HomeSlidesTableSeeder::class);\n $this->call(PasswordResetsTableSeeder::class);\n $this->call(SeoMetasTableSeeder::class);\n $this->call(UserHasPermissionsTableSeeder::class);\n $this->call(PageSectionTableSeeder::class);\n $this->call(SectionsTableSeeder::class);\n $this->call(AttachmentsTableSeeder::class);\n $this->call(AttachablesTableSeeder::class);\n }", "title": "" }, { "docid": "91865ccbf89bd49e55e2a1df79cd3a3a", "score": "0.6680378", "text": "public function run()\n {\n \tDB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n \tDB::table('role_user')->truncate();\n DB::table('permission_role')->truncate();\n \\App\\Role::truncate();\n \\App\\User::truncate();\n \\App\\Ramo::truncate(); \n \\App\\Permission::truncate(); \n $this->call(PermissionsSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n $this->call(RamosSeeder::class);\n\n\n /*$cantidadContactos = 1000;\n $cantidadEmpresas = 1000;\n $cantidadRamoEmpresa = 1000;\n $cantidadEmpresaContacto = 1000;\n\n // Llamando los factories\n factory( Contacto::class, $cantidadContactos)->create() ;\n factory( Empresa::class, $cantidadEmpresas)->create() ;\n factory( EmpresaRamo::class, $cantidadRamoEmpresa)->create() ;\n factory( EmpresaContacto::class, $cantidadEmpresaContacto)->create() ;*/\n \n \n \n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n\n \t#Si es local se ejecutara esto\n /*if (\\Illuminate\\Support\\Facades\\App::environment('local')) {\n\n }*/\n }", "title": "" }, { "docid": "b146e9f4bd0c8711097a88b8337beca4", "score": "0.667927", "text": "public function run()\n {\n Eloquent::unguard();\n $this->call('MyDbSeeder');\n $this->command->info('DB is filled up');\n // $this->call(UsersTableSeeder::class);\n }", "title": "" }, { "docid": "bdd0d9b56785048d7824cb19e0086ce0", "score": "0.6675412", "text": "public function run()\n {\n //DB::statement(\"TRUNCATE TABLE users \");\n $this->call('Oauth2ClientsSeed');\n $this->call('UsersSeed');\n // $this->call('menusSeed');\n\n }", "title": "" }, { "docid": "c338a8143abd0aa6de80d25bcd16e5db", "score": "0.6670698", "text": "public function run()\n {\n User::create([\n 'name' => 'Mark Timbol',\n 'email' => '[email protected]',\n 'password' => bcrypt('marktimbol')\n ]);\n\n $this->call(CategoriesTableSeeder::class);\n $this->call(CountriesTableSeeder::class);\n $this->call(CitiesTableSeeder::class);\n $this->call(CommunitiesTableSeeder::class);\n $this->call(DeveloperProjectsTableSeeder::class);\n \n $dubaiMarina = Community::whereSlug('dubai-marina')->first();\n $dubaiMarinaProjects = factory(Project::class, 20)->create();\n $dubaiMarina->projects()->attach($dubaiMarinaProjects);\n\n $alBarsha = Community::whereSlug('al-barsha')->first();\n $alBarshaProjects = factory(Project::class, 20)->create();\n $alBarsha->projects()->attach($alBarshaProjects);\n }", "title": "" }, { "docid": "965b169e85aaedeb0047d232ddd55b45", "score": "0.6670629", "text": "public function run()\n {\n // Fakerを使う\n $faker = Faker\\Factory::create('ja_JP');\n\n // 固定ユーザーを作成\n DB::table('articles')->insert([\n 'name' => 'daiki',\n 'password' => bcrypt('1234'),\n 'userid' => 'tamiya',\n ]);\n DB::table('articles')->insert([\n 'name' => 'foo',\n 'password' => bcrypt('1234'),\n 'userid' => 'hoge',\n ]);\n }", "title": "" }, { "docid": "347133f337b51d53dbbd6f0aeca578ac", "score": "0.6666724", "text": "public function run()\n {\n Model::unguard();\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'username' => 'admin',\n 'password' => bcrypt('password'),\n ]);\n // $this->call(\"OthersTableSeeder\");\n }", "title": "" }, { "docid": "f9cac9f2da45238e0f59e3c78cdae6b6", "score": "0.6666465", "text": "public function run()\n {\n User::factory(10)->create();\n Election::factory(10)->create();\n Candidate::factory(10)->create();\n User::factory()->create(['is_admin' => true, 'password' => bcrypt('admin123')]);\n }", "title": "" }, { "docid": "01fd84f2f3e2540e4f04528510014847", "score": "0.6664962", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //Blog_Posts::truncate();\n Users::truncate();\n User_Roles::truncate();\n User_Addresses::truncate();\n User::truncate();\n\n Eloquent::unguard();\n\n //$this->call('UserTableSeeder');\n //$this->command->info('User table seeded!');\n\n $path = 'app/developer_docs/test_db_2017-05-24.sql';\n DB::unprepared(file_get_contents($path));\n $this->command->info('All tables seeded!');\n }", "title": "" }, { "docid": "7368e0a44cf43536f633de4b74c6bf35", "score": "0.66639584", "text": "public function seedDatabase(Config $config)\n { }", "title": "" }, { "docid": "bf0563d00470ba0c14a756ebfab4f0b8", "score": "0.665563", "text": "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n // $doe = \\App\\Models\\User::factory()->state([\n // 'name' => 'marlon olmedo',\n // 'email' => '[email protected]',\n // 'password' => '$2y$12$10N8zE06nn8T8lK71v3Qn.ftgQ0XhmXecgZitdAk8nrrkiH4tu93W', // password\n // ])\n // ->create();\n // $else = \\App\\Models\\User::factory()->count(20)->create();\n\n // $users = $else->concat([$doe]);\n // //dd($doe);\n // $posts = \\App\\Models\\BlogPost::factory()->count(50)->make()->each(function ($post) use ($users){\n // $post->user_id = $users->random()->id;\n // $post->save();\n // });\n\n // $comments = \\App\\Models\\Comment::factory()->count(150)->make()->each(function ($comment) use ($posts){\n // $comment->blog_post_id = $posts->random()->id;\n // $comment->save();\n // }); \n if($this->command->confirm('Do you want to refresh the database?',true)){\n $this->command->call('migrate:refresh');\n $this->command->info('Database was refresed');\n }\n $this->call([\n UsersTabSeeder::class,\n BlogPostTableSeeder::class,\n CommentsTableSeeder::class,\n TagsTableSeeder::class,\n BlogPostTagTableSeeder::class\n ]);\n }", "title": "" }, { "docid": "d82da2e860bef53e765c241707c08241", "score": "0.66474223", "text": "protected function setUpDatabase()\n {\n $this->resetDatabase();\n\n $this->createExponentPushNotificationInterestsTable();\n }", "title": "" }, { "docid": "55e769395ecdcc89e6b64f247fbd3518", "score": "0.6640296", "text": "public function run()\n {\n factory(Category::class,10)->create();\n factory(User::class,10)->create();\n factory(Page::class,100)->create();\n factory(Post::class,10)->create();\n $this->call(SettingTableSeeder::class);\n $this->call(PermissionSeeder::class);\n $this->call(RoleSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(UserSeeder::class);\n }", "title": "" }, { "docid": "0e64d87115a71603278ba11368ed9805", "score": "0.6638604", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n \tDB::table('authors')->truncate();\n \tDB::table('books')->truncate();\n\n \tfactory(App\\Author::class, 20)->create()->each(function($author){\n \t\t$author->book()->save(factory(App\\Book::class)->make());\n \t});\n }", "title": "" }, { "docid": "db3d10d5a0ae96f2a0cd84b83ba93dbb", "score": "0.6638384", "text": "public function run()\n {\n $this->call([userSeeder::class]);\n $this->call([seetingSeeder::class]);\n \\App\\Models\\User::factory(10)->create();\n product::factory('10')->create();\n }", "title": "" }, { "docid": "97f4bbafa5eb8220226db73d88dd8b8f", "score": "0.66359735", "text": "public function run()\n {\n\n // Model::unreguard();\n //disable foreign key check for this connection before running seeders\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n \\App\\Contratos::truncate();\n \\App\\Manuales::truncate();\n Servicios::truncate();\n \\App\\Manuales_servicios::truncate();\n Medicamentos::truncate();\n OrdenServicio_Items::truncate();\n ordenservicios::truncate();\n Paciente::truncate();\n Aseguradora::truncate();\n Diagnosticos::truncate();\n Empresa::truncate();\n FacturaItems::truncate();\n Factura::truncate();\n User::truncate();\n \\App\\Glosas::truncate();\n\n $this->call('MedicamentosSeeder');\n $this->call('EmpresaSeeder');\n /* $this->call('DiagnosticosSeeder');*/\n $this->call('ServiciosSeeder');\n $this->call('AseguradoraSeeder');\n // manuales\n $this->call('ManualSeeder');\n\n $this->call('ManualesServiciosSeeder');\n $this->call('ContratoSeeder');\n $this->call('PacientesSeeder');\n $this->call('OrdenServiciosSeeder');\n $this->call('ItemOrdenServicioSeeder');\n $this->call('FacturasSeeder');\n $this->call('GlosasSeeder');\n $this->call('UsuariosSeeder');\n // usuarios\n\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 //Model::reguard();\n }", "title": "" }, { "docid": "059a867ba20ada1d0d50a52059bc7208", "score": "0.6634013", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\tDB::table('invitations')->delete();\n\t\tDB::table('review_flavor')->delete();\n\t\tDB::table('parameters')->delete();\n\t\tDB::table('reviews')->delete();\n\t\tDB::table('coffees')->delete();\n\t\tDB::table('roasters')->delete();\n\t\tDB::table('users')->delete();\n\t\tDB::table('roles')->delete();\n\t\tDB::table('flavors')->delete();\n\t\tDB::table('flavor_categories')->delete();\n\t\tDB::table('regions')->delete();\n\n\n\t\t$this->call('RegionsTableSeeder');\n\t\t$this->call('FlavorCategoriesTableSeeder');\n\t\t$this->call('FlavorsTableSeeder');\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('RoastersTableSeeder');\n\t\t$this->call('CoffeesTableSeeder');\n\t\t$this->call('ReviewsTableSeeder');\n\t\t$this->call('ParametersTableSeeder');\n\t\t$this->call('ReviewFlavorTableSeeder');\n\t\t$this->call('InvitationsTableSeeder');\n\t}", "title": "" }, { "docid": "9013284fed3f68c915b32c4539f65289", "score": "0.66314447", "text": "public function run()\n {\n Eloquent::unguard();\n $this->command->info('Seeding starts.');\n\n $this->command->info('Removing data');\n DB::table('users')->delete();\n DB::table('posts')->delete();\n DB::table('tags')->delete();\n DB::table('items')->delete();\n DB::table('images')->delete();\n DB::table('activities')->delete();\n\n $this->command->info('Creating users');\n $default_user = User::create([\n 'name' => env('DEFAULT_USER_NAME'),\n 'email' => env('DEFAULT_USER_EMAIL'),\n 'password' => bcrypt(env('DEFAULT_USER_PASSWORD'))\n ]);\n\n $another_default_user = User::create([\n 'name' => env('ANOTHER_DEFAULT_USER_NAME'),\n 'email' => env('ANOTHER_DEFAULT_USER_EMAIL'),\n 'password' => bcrypt(env('ANOTHER_DEFAULT_USER_PASSWORD'))\n ]);\n\n $this->command->info('Creating tags');\n $tag1 = Tag::create(['name' => 'Tag1']);\n $tag2 = Tag::create(['name' => 'Tag2']);\n $tag3 = Tag::create(['name' => 'Tag3']);\n $tag4 = Tag::create(['name' => 'Tag4']);\n\n $this->command->info('Creating posts');\n $post1 = Post::create([\n 'title' => 'Las abejas',\n 'published' => true,\n 'body' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo excepturi itaque consequatur qui aut molestias tempora aperiam maxime, nisi doloremque quia, temporibus atque, hic eligendi similique unde! Aliquid, rem, eos.',\n 'slug' => 'Las_avejas',\n 'summary' => 'Lorem ipsum dolor sit amet'\n ]);\n\n $post2 = Post::create([\n 'title' => 'La miel de abeja',\n 'published' => true,\n 'body' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Illo excepturi itaque consequatur qui aut molestias tempora aperiam maxime, nisi doloremque quia, temporibus atque, hic eligendi similique unde! Aliquid, rem, eos.',\n 'slug' => 'La_miel_de_abeja',\n 'summary' => 'Lorem ipsum dolor sit amet, consectetur adipisicing elit'\n ]);\n\n $this->command->info('Linking tags and posts');\n $post1->tags()->attach($tag1->id);\n $post1->tags()->attach($tag2->id);\n $post1->tags()->attach($tag3->id);\n\n $post2->tags()->attach($tag1->id);\n $post2->tags()->attach($tag4->id);\n\n $this->command->info('Linking users with posts');\n $another_default_user->posts()->save($post1);\n $another_default_user->posts()->save($post2);\n\n $this->command->info('Creating images');\n $image = Image::create([\n 'url' => 'https://dl.dropboxusercontent.com/s/kknqpayixxbn3zg/colmena-hexagonal.png?dl=0'\n ]);\n\n $this->command->info('Creating Item');\n $item = Item::create([\n 'name' => 'Colmena hexagonal',\n 'price' => 250,\n 'description' => 'Colmena hexagonal modelo Vincent',\n 'eng_desc' => 'Hexagonal hive model Vicente',\n 'slug' => 'Colmena_hexagonal'\n ]);\n\n $this->command->info('Linking images with items');\n $item->images()->save($image);\n\n $this->command->info('Linking items with users');\n $default_user->items()->save($item);\n\n $this->command->info('Seeding activities');\n $today = new DateTime();\n\n Activity::create([\n 'date' => $today->add(new DateInterval('P15D')),\n 'location' => 'Some address goes here',\n 'name' => 'Activity name'\n ]);\n\n Activity::create([\n 'date' => $today->add(new DateInterval('P10D')),\n 'location' => 'Another address goes here',\n 'name' => 'Another activity name'\n ]);\n\n $this->command->info('Seeding ended with no problems');\n }", "title": "" }, { "docid": "152f20e8e3f6c4f0c430328a6cf5a6a9", "score": "0.66306424", "text": "public function run()\n {\n factory(Company::class, 30)->create();\n factory(Employer::class, 30)->create();\n\n DB::table('users')->insert([\n 'name' => 'Edmon',\n 'email' => '[email protected]',\n 'password' => bcrypt('password'),\n ]);\n\n }", "title": "" }, { "docid": "b16ed44c81d0fe145183229d1829dec1", "score": "0.66290265", "text": "public function run()\n {\n \tSchema::disableForeignKeyConstraints();\n \t\\App\\Post::truncate();\n \t\\App\\User::truncate();\n // factory(\\App\\User::class, 100)->create()->each(function ($user) {\n // \tfactory(\\App\\Post::class, 100)->create(['user_id'=>$user->id]);\n // });\n $this->call(UsersTableSeeder::class);\n Schema::enableForeignKeyConstraints();\n\n }", "title": "" }, { "docid": "b0f29bbf71402f9d190082a71159686e", "score": "0.6627969", "text": "public function run()\n { \n /*$this->call(ProjectSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(StateSeeder::class);\n $this->call(EventSeeder::class);*/\n User::truncate();\n $this->call(UserSeeder::class);\n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n \n Project::truncate();\n //State::truncate();\n // Event::truncate();\n //DB::table('category_product')->truncate();\n\n //$cantidadUsuarios=50;\n $cantidadproyectos=10;\n //$cantidadcategorias=50;\n // $cantidadestados=6;\n // $cantidadeventos=30;\n\n \n factory(Project::class, $cantidadproyectos)->create();\n //factory(Category::class, $cantidadcategorias)->create();\n // factory(State::class, $cantidadestados)->create();\n\n /* factory(State::class, $cantidadProductos)\n ->create()\n ->each(function($producto){\n\t $categorias=Category::all()->random(mt_rand(1,5))->pluck('id');\n\n\t $producto->categories()->attach($categorias);\n});*/\n\n // factory(Event::class, $cantidadeventos)->create();\n\n $this->call(TimezoneSeeder::class);\n\n\n }", "title": "" }, { "docid": "2656c6d3624ecb89dd7e281388be686f", "score": "0.6625678", "text": "public function run()\n {\n Model::unguard();\n\n $this->call('LangTableSeeder');\n $this->call('CountryTableSeeder');\n $this->call('TerritorialArea1TableSeeder');\n $this->call('TerritorialArea2TableSeeder');\n $this->call('ActionTableSeeder');\n $this->call('PackageTableSeeder');\n $this->call('ProfileTableSeeder');\n $this->call('ResourceTableSeeder');\n $this->call('UserTableSeeder');\n $this->call('PermissionTableSeeder');\n }", "title": "" }, { "docid": "a588006023396ad869db35ab527a8de3", "score": "0.6624373", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n App\\User::create([\n 'name' => 'Edwin Berrones',\n 'email' => '[email protected]',\n 'password' => bcrypt('password')\n ]);\n\n factory(App\\User::class,7)->create();\n\n App\\Page::create([\n 'parent_id' => null,\n 'title' =>'Quienes Somos',\n 'slug' => 'quienes-somos',\n 'body' => 'Contenido de quienes somos'\n ]);\n App\\Page::create([\n 'parent_id' => 1,\n 'title' =>'Mision',\n 'slug' => 'mision',\n 'body' => 'Contenido de mision'\n ]);\n App\\Page::create([\n 'parent_id' => 1,\n 'title' =>'Visión',\n 'slug' => 'vision',\n 'body' => 'Contenido de visión'\n ]);\n }", "title": "" }, { "docid": "8611f202e38780592c9ef29ea2f0b791", "score": "0.6624075", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('categories')->insert(\n [\n 'category' => 'СТИЛЬ ЖИЗНИ',\n 'created_at' => now(),\n 'updated_at' => now(),\n ]\n );\n DB::table('categories')->insert(\n [\n 'category' => 'ПРИРОДА',\n 'created_at' => now(),\n 'updated_at' => now(),\n ]);\n\n DB::table('categories')->insert([\n 'category' => 'НАУКА И ТЕХНОЛОГИИ',\n 'created_at' => now(),\n 'updated_at' => now(),\n ]);\n DB::table('categories')->insert([\n 'category' => 'СПОРТ',\n 'created_at' => now(),\n 'updated_at' => now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'Test',\n 'email' => '[email protected]',\n 'password' => bcrypt('Test'),\n 'created_at' => now(),\n 'updated_at' => now(),\n ]);\n }", "title": "" }, { "docid": "5a6ac6638d922f891ac6120d69922cef", "score": "0.66208327", "text": "public function run()\n {\n $this->truncateTables()->seedTables();\n }", "title": "" }, { "docid": "b6137fb24a3e0ce73d945f825bbcce5e", "score": "0.6619753", "text": "public function run()\n {\n $this->seedCountries();\n\n $this->seedCurrencies();\n\n $this->seedCustomerGroups();\n\n $this->seedLanguages();\n\n $this->seedMealtimes();\n\n $this->seedPermissions();\n\n $this->seedSettings();\n\n $this->seedStaffGroups();\n\n $this->seedStatuses();\n }", "title": "" }, { "docid": "d0e01f2da9b527f01302cfa47387b750", "score": "0.6618252", "text": "public function run()\n {\n // DB::table('users')->truncate(); //elimina la bd cada vez que realizo el seed\n\n \n \n factory(App\\User::class)->create([\n 'name' =>'Administrador',\n 'email' =>'[email protected]',\n \n 'password'=>bcrypt('secret.purnio') \n ]);\n\n factory(App\\Junta::class,1)->create();\n \n factory(App\\Evento::class,1)->create();\n\n factory(App\\Beneficiado::class,1)->create();\n\n \n \n\n }", "title": "" }, { "docid": "22f4097174be9ba2a82064e3905fa461", "score": "0.66155636", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n Estudiante::truncate();\n Profesor::truncate();\n Curso::truncate();\n DB::table('curso_estudiante')->truncate();\n\n DB::table('curso_estudiante')->truncate();\n DB::table('oauth_clients')->truncate();\n\n //-> *** Create tables and seed them *** <-//\n factory(Profesor::class, 50)->create();\n factory(Estudiante::class, 500)->create();\n \n //factory(Curso::class, 40)->create()\n //factory(Curso::class, 40)->create(['profesor_id' => mt_rand(1,50)])\n factory(Curso::class, 40)->create()\n ->each(function($curso)\n {\n $curso->estudiantes()->attach(array_rand(range(1, 500),40));\n });\n\n\n\n $this->call('OAuthClientSeeder');\n\n //Model::unguard();\n // $this->call('UserTableSeeder');\n //Model::reguard();\n }", "title": "" }, { "docid": "b5570432edd7589c65649ff9f0e69cf8", "score": "0.66146517", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n $this->call([\n UserSeed::class,\n RoleSeed::class,\n SubjectSeed::class,\n TopicSeed::class,\n CourseSeed::class\n ]);\n }", "title": "" }, { "docid": "d3fcc6d6cd495899616a4549ddbe35b3", "score": "0.6612295", "text": "public function run()\n {\n Model::unguard();\n if (env('DB_CONNECTION') != 'sqlite') {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n }\n DB::table('users')->truncate();\n User::create([\n 'name' => 'Anne Jan',\n 'email' => '[email protected]',\n 'password' => Hash::make('mo6tah8I')\n ]);\n if (env('DB_CONNECTION') != 'sqlite') {\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }\n }", "title": "" }, { "docid": "fdbd2e019537585c579c3e4c95442738", "score": "0.66093624", "text": "public function run() : void\n {\n $this->faker = Factory::create();\n\n Model::preventLazyLoading(false);\n\n $this->unless(App::isProduction(), fn() => File::deleteDirectory(App::storagePath('app'), true));\n\n $this->unless(App::isProduction(), fn() => $this->seed());\n }", "title": "" }, { "docid": "36d4ef15eb9d10ab25876f5658e14024", "score": "0.66082275", "text": "protected function setUp()\n {\n parent::setUp();\n Artisan::call('db:seed');\n }", "title": "" }, { "docid": "e2d1fc74b40fee9e65225c3f3621e009", "score": "0.66072553", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('EnterpriseTableSeeder');\n\t\t$this->call('OffersTableSeeder');\n\t\t$this->call('SkillTableSeeder');\n\t\t$this->call('UserSkillTableSeeder');\n\t\t$this->call('OfferSkillTableSeeder');\t\t\t\t\t\t\t\n\t\t$this->call('ChatTableSeeder');\n\t\t$this->call('ApplicationTableSeeder');\n\t}", "title": "" }, { "docid": "6b3e48d962d405221bc4101891f58958", "score": "0.6606043", "text": "public function run() {\n Eloquent::unguard();\n\n //disable foreign key check for this connection before running seeders\n Schema::disableForeignKeyConstraints();\n // DB::table('roles')->truncate();\n\n // DB::table('permissions')->truncate();\n // DB::table('users')->truncate();\n\n // DB::disableForeignKeyCheck();\n\n $this->call( LaratrustSeeder::class );\n $this->call( UsersTableSeeder::class );\n //$this->call(TagsTableSeeder::class);\n $this->call( CategoriesTableSeeder::class );\n $this->call( ProductsTableSeeder::class );\n\n //DB::enableForeignKeyCheck();\n //Schema::enableForeignKeyConstraints();\n\n }", "title": "" }, { "docid": "337fe694a6cf166e8c58fc63c1bad57a", "score": "0.66051537", "text": "public function run()\n {\n // disable table constrains \n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // remove pre existing data if any\n User::truncate();\n Policy::truncate();\n Receipt::truncate();\n Branch::truncate();\n Company::truncate();\n Client::truncate();\n\n // Start using Factories\n factory(User::class, 5)->create();\n factory(Branch::class, 20)->create();\n factory(Company::class, 50)->create();\n factory(Client::class, 200)->create();\n factory(Policy::class, 200)->create();\n factory(Receipt::class, 200)->create(); \n // $this->call(UsersTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n }", "title": "" }, { "docid": "adae4b952f4cf5a8307530c7d1dd6a97", "score": "0.66048175", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n User::truncate();\n Project::truncate();\n Gallery::truncate();\n Team::truncate();\n Image::truncate();\n\n \\App\\Models\\User::factory(5)->create();\n \\App\\Models\\Project::factory(30)->create();\n \\App\\Models\\Gallery::factory(100)->create();\n \\App\\Models\\Team::factory(20)->create();\n \\App\\Models\\Image::factory(100)->create();\n }", "title": "" }, { "docid": "7d99b4954b1ea4f3184445f6f9fc1893", "score": "0.6604454", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(AdminMenuTableSeeder::class);\n $this->call(AdminPermissionsTableSeeder::class);\n $this->call(AdminRoleMenuTableSeeder::class);\n $this->call(AdminRolePermissionsTableSeeder::class);\n $this->call(AdminRoleUsersTableSeeder::class);\n $this->call(AdminRolesTableSeeder::class);\n $this->call(AdminUserPermissionsTableSeeder::class);\n $this->call(AdminUsersTableSeeder::class);\n $this->call(ConfigsTableSeeder::class);\n\n if (!config('app.debug')) {\n return ;\n }\n factory('App\\Models\\Banner', 6)->create();\n factory('App\\Models\\Ipad', 20)->create();\n factory('App\\Models\\Dynamic', 10)->create();\n factory('App\\Models\\Special', 6)->create();\n factory('App\\Models\\Department', 6)->create();\n factory('App\\Models\\Nurse', 6)->create();\n factory('App\\Models\\Channel', 6)->create();\n factory('App\\Models\\Package', 10)->create();\n\n $user = factory('App\\User')->create([\n 'card' => '330681199309214559',\n 'mobile' => '18367831980',\n 'address' => 'NBYZGC0001',\n 'name' => '沈益飞',\n 'openid' => 'oFVoa1gJ7i8000kKuVnnQMWQgcCo',\n 'avatar' => 'http://wx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTJPu1sSYJ1XWRYCaTBffZ0fI0lFwqHXiaMIxTNA6TnVBjqE3QXO6qwDkoyAmKI1aqgEZu4uUWpoHrA/0',\n 'certification' => 1,\n 'gender' => 1\n ]);\n\n $promoter = factory('App\\Models\\Promoter')->create();\n $promoter->user->update(['role' => 'promoter']);\n\n for ($i = 1; $i <= 6; $i++) {\n factory('App\\Models\\Food', 3)->create(['channel_id' => $i]);\n factory('App\\Models\\Physical', 3)->create(['department_id' => $i]);\n factory('App\\Models\\Doctor', 3)->create(['department_id' => $i]);\n\n factory('App\\Models\\PromoterOrder', 3)->create([\n 'department_id' => $i,\n 'promoter_id' => 1\n ]);\n }\n\n for ($i = 1; $i <= 18; $i++) {\n factory('App\\Models\\Scheduling', 3)->create(['doctor_id' => $i]);\n }\n }", "title": "" }, { "docid": "bfafa17a27aaa77a6457cdb93d900218", "score": "0.660369", "text": "public function run()\n {\n Model::unguard();\n\n $this->call('PermissionsTableSeeder');\n $this->call('RolesTableSeeder');\n $this->call('ConnectRelationshipsSeeder');\n $this->call('RoleUsersSeeder');\n //$this->call('UsersTableSeeder');\n\n $this->call('CategoriesTableSeeder');\n $this->call('SubcategoriesTableSeeder');\n $this->call('InsuranceCompaniesTableSeeder');\n $this->call('ServiceCompaniesTableSeeder');\n $this->call('AssetsTableSeeder');\n $this->call('AssetDetailsTableSeeder');\n\n $this->call('PendingUsersTableSeeder');\n\n $this->call('LocationsTableSeeder');\n $this->call('SubmittedRequisitionsTableSeeder');\n $this->call('RequisitionsTableSeeder');\n\n $this->call('ProjectSitesTableSeeder');\n $this->call('AssignedSitesTableSeeder');\n\n Model::reguard();\n }", "title": "" }, { "docid": "14dec7983b2700b599d3d5d5d08f7379", "score": "0.6603603", "text": "public function setUp(): void\n {\n parent::setUp();\n\n Artisan::call('migrate:fresh');\n\n $this->seed();\n }", "title": "" }, { "docid": "e3f9ec900807bf915ace1732f5102139", "score": "0.6603018", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //dummy data for users table (1 admin, 10 trainees)\n $date = strtotime('01-11-2016');\n $new_date = date('Y-m-d',$date);\n DB::table('users')->delete();\n DB::table('users')->insert(\n ['username' => 'admin', 'name' => 'Administrator', 'role' => 'administrator', 'join_date' => $new_date, 'password'=> bcrypt('test1234') ]);\n factory(App\\User::class, 10)->create();\n\n //dummy data for topics table\n DB::table('topics')->delete();\n DB::table('topics')->insert([\n ['name' => 'Adobe Photoshop', 'description' =>'Adobe Photoshop is a raster graphics editor developed and published by Adobe Systems for macOS and Windows. Photoshop was created in 1988 by Thomas and John Knoll.'],\n ['name' => 'Adobe Illustrator', 'description' =>'Adobe Illustrator is a vector graphics editor developed and marketed by Adobe Systems. The latest version, Illustrator CC 2015.3, is the twentieth generation in the product line.']\n ]);\n }", "title": "" }, { "docid": "c3c521136389151eb47f7feb337c7c95", "score": "0.66009796", "text": "public function run()\n {\n (new CreateDefaultUsersSeeder)->run();\n (new CreateBaseCategoriesSeeder)->run();\n (new CreateBaseWalletsTypesSeeder)->run();\n (new CreateAdminWalletsSeeder)->run();\n }", "title": "" }, { "docid": "26947a07dca3a8ec835eda653e53f3f8", "score": "0.6598379", "text": "public function run()\n {\n // TestDummy::times(20)->create('App\\Post');\n // Uncomment the below to wipe the table clean before populating\n DB::table('users')->truncate(); \n $users = array(\n array('id' => '1','name' => 'Admin','email' => '[email protected]','password' => '$2y$10$BeRqRBo0j6RxSXOhuzyq/elglI8w4WYvUyLeNM1RHL6q21KEL6HN6','remember_token' => '0pgG0Z1TX2ewynyqgqMxy905tYrQU9Il0kV5wDAHOyiC1SW3BN08kFFBfqjr', 'role_id' => 1,'created_at' => '2016-07-02 13:12:30','updated_at' => '2016-07-02 23:21:27'),\n array('id' => '2','name' => 'Cliente','email' => '[email protected]','password' => '$2y$10$BeRqRBo0j6RxSXOhuzyq/elglI8w4WYvUyLeNM1RHL6q21KEL6HN6','remember_token' => '0pgG0Z1TX2ewynyqgqMxy905tYrQU9Il0kV5wDAHOyiC1SW3BN08kFFBfqjr', 'role_id' => 5,'created_at' => '2016-07-02 13:12:30','updated_at' => '2016-07-02 23:21:27')\n );\n // Uncomment the below to run the seeder\n DB::table('users')->insert($users);\n }", "title": "" }, { "docid": "f78a0f7de2cbfb5aaf853a08bd4af53e", "score": "0.6597799", "text": "public function run()\n {\n \t$this->clearDb();\n\n $this->call('LessonsTableSeeder');\n $this->call('TagsTableSeeder');\n $this->call('LessonTagTableSeeder');\n }", "title": "" }, { "docid": "4d73e3ba1d4d0609baa5417507ef1574", "score": "0.6597532", "text": "public function seed()\n {\n die('Database seeding halted');\n\n // Set up purchases array\n $purchases = [\n [\n 'date' => '2017-12-11',\n 'price' => 20,\n 'description' => 'Dog Food'\n ],\n [\n 'date' => '2017-12-12',\n 'price' => 50,\n 'description' => 'Gas'\n ],\n [\n 'date' => '2017-12-12',\n 'price' => 2,\n 'description' => 'Chips'\n ],\n [\n 'date' => '2017-12-13',\n 'price' => 1000,\n 'description' => 'Laptop'\n ],\n [\n 'date' => '2017-12-13',\n 'price' => 2,\n 'description' => 'Coffee'\n ],\n ];\n\n // Loop through the array and insert the purchases\n foreach ($purchases as $purchase) {\n $this->db->insert('purchases', $purchase);\n }\n\n // Echo success\n echo 'Purchases inserted';\n }", "title": "" }, { "docid": "3902f6d8a2a6c359f6e233032296343a", "score": "0.65959865", "text": "public function run()\n {\n $this->UserSeeder();\n }", "title": "" }, { "docid": "511b20b064776c56da98a56ec958c4be", "score": "0.6595682", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \n // inserting document types\n foreach (config('seed_data.document_types') as $value) {\n\n DB::table('document_type')->insert([\n 'name' => $value\n ]);\n }\n\n // insert task status\n foreach (config('seed_data.task_statuses') as $value) {\n\n DB::table('task_status')->insert([\n 'name' => $value\n ]);\n }\n\n // insert task types\n foreach (config('seed_data.task_types') as $value) {\n\n DB::table('task_type')->insert([\n 'name' => $value\n ]);\n }\n\n // insert contact status\n foreach (config('seed_data.contact_status') as $value) {\n\n DB::table('contact_status')->insert([\n 'name' => $value\n ]);\n }\n\n\n // insert the system main email into settings table\n foreach (config('seed_data.settings') as $key => $value) {\n DB::table('setting')->insert([\n 'setting_key' => $key,\n 'setting_value' => $value\n ]);\n }\n // insert sample user as the system admin\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt(\"123456\"),\n 'position_title' => 'Administrator',\n 'is_admin' => 1,\n 'is_active' => 1\n ]);\n\n // insert the initial permissions\n $permissions = [];\n foreach (config('seed_data.permissions') as $value) {\n $permissions[] = \\Spatie\\Permission\\Models\\Permission::create(['name' => $value]);\n }\n }", "title": "" }, { "docid": "9b11741ce1d159bf7d7985f2e1c0e06e", "score": "0.6591728", "text": "public function run()\n {\n $this->call('UsersTableSeeder');\n $this->call('OffersTableSeeder');\n $this->call('BookingsTableSeeder');\n }", "title": "" }, { "docid": "7c5d3b1ac1ad89311df7556cdb4cda3a", "score": "0.6590932", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n $this->call(UsersTableSeeder::class);\n $this->call(SectionsTableSeeder::class);\n $this->call(SeoSettingsSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(ProductsHeightsTableSeeder::class);\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "title": "" }, { "docid": "86eb8d27abb725043bf58d753864dbb7", "score": "0.6589416", "text": "public function run()\n {\n //Schema::disableForeignKeyConstraints();\n // User::truncate();\n // Shop::truncate();\n // Meal::truncate();\n //Cart::truncate();\n //Favourite::truncate();\n // Meal_size::truncate();\n // Image::truncate();\n // Order::truncate();\n // Category::truncate();\n // Category_meal::truncate();\n // Search::truncate();\n // Cart::truncate();\n // Cart_meal::truncate();\n //Favourite_meal::truncate();\n //Favourite::truncate();\n //Favourite_shop::truncate();\n //Rating::truncate();\n // Comment::truncate();\n //Schema::enableForeignKeyConstraints();\n\n // $this->call(UsersTableSeeder::class);\n // \\App\\Models\\User::factory(5)->create();\n // \\App\\Models\\Shop::factory(5)->create();\n // $this->call(MealsTableSeeder::class); \n //$this->call(OrdersTableSeeder::class);\n //$this->call(CartsTableSeeder::class);\n // $this->call(FavouritesTableSeeder::class);\n // $this->call(MealSizeSeeder::class);\n //$this->call(ImageTableSeeder::class);\n //$this->call(OrdersTableSeeder::class);\n //$this->call(CategoriesTableSeeder::class);\n //$this->call(SearchTableSeeder::class);\n //$this->call(CartsTableSeeder::class);\n //$this->call(FavouritesTableSeeder::class);\n // $this->call(RatingsTableSeeder::class);\n // $this->call(ReviewsTableSeeder::class);\n\n $this->call([\n UsersTableSeeder::class,\n MealsTableSeeder::class\n ]);\n }", "title": "" }, { "docid": "9a4521836d5ccad0f7cb678a1e0d206c", "score": "0.6588282", "text": "public function run()\n {\n Schema::disableForeignKeyConstraints();\n\n $users = collect(User::DEFAULT_USERS)->map(function ($user) {\n $user['password'] = password_hash($user['password'], PASSWORD_DEFAULT);\n return $user;\n })->all();\n\n User::insert($users);\n\n $services = collect(Service::DEFAULT_SERVICES)->map(function ($service) {\n $service['user_id'] = User::where('name', $service['user_id'])->first()->id;\n return $service;\n })->all();\n\n Service::insert($services);\n\n Schema::enableForeignKeyConstraints();\n }", "title": "" }, { "docid": "1349a1a42fd9864da315a09a26882896", "score": "0.65828484", "text": "public function run()\n\t{\n\t\tEloquent::unguard();\n\n\t\t$this->call('RolesTableSeeder');\n\t\t$this->call('UsersTableSeeder');\n\t\t$this->call('StuffTableSeeder');\n\t\t$this->call('FacultyTableSeeder');\n\t\t$this->call('NoticesTableSeeder');\n\t\t$this->call('AlbumsTableSeeder');\n\t\t$this->call('PicturesTableSeeder');\n\t\t$this->call('BatchesTableSeeder');\n\t\t$this->call('StudentsTableSeeder');\n\t\t$this->call('PagesTableSeeder');\n\t\t$this->call('FaqTableSeeder');\n\t\t$this->call('CoursesTableSeeder');\n\t\t$this->call('DownloadsTableSeeder');\n\t\t$this->call('MenuTableSeeder');\n\t}", "title": "" }, { "docid": "d5acd76a64a457e5ec0eb1085b76c6d6", "score": "0.65827894", "text": "protected function setUp() \n {\n parent::setUp();\n \n if (User::count() == 0)\n {\n $this->artisan('db:seed'); \n } \n \n }", "title": "" }, { "docid": "f5d8988299fb0d064e033235928812fc", "score": "0.65788686", "text": "public function run()\n\t{\n\t\tModel::unguard();\n\n /*\n * USERS\n */\n $this->call('SexTableSeeder');\n $this->call('CountryTableSeeder');\n $this->call('LangsTableSeeder');\n $this->call('SocialNetworkTableSeeder');\n\n $this->call('AdminTableSeeder');\n $this->call('UserTableSeeder');\n\n $this->call('CoverTableSeeder');\n\n\n /*\n * BLOGS\n */\n $this->call('BlogCategoryTableSeeder');\n $this->call('BlogSubcategoryTableSeeder');\n $this->call('BlogPostTableSeeder');\n $this->call('BlogCommentTableSeeder');\n\t}", "title": "" }, { "docid": "b528b051c608618b7e0d12e060dfab10", "score": "0.6574186", "text": "public function run()\n {\n Model::unguard();\n if (DB::connection()->getDriverName() == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n }\n \n $this->call(UsersTableSeeder::class);\n $this->call(FactorySeeder::class);\n $this->call(RoleTableSeeder::class);\n $this->call(CategorySeeder::class);\n $this->call(CountryTableSeeder::class);\n $this->call(OfficesTableSeeder::class);\n\n if (DB::connection()->getDriverName() == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n Model::reguard();\n }", "title": "" }, { "docid": "1eeb6501902a894d8d3ff133dda46c77", "score": "0.65734", "text": "public function run()\n {\n \\App\\Models\\User::factory(1)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(EstadosTableSeeder::class);\n $this->call(AgenciasTableSeeder::class);\n $this->call(DeliverysTableSeeder::class);\n $this->call(PartidosZonasTablesSeeder::class);\n $this->call(TarifasTableSeeder::class);\n $this->call(CategoriasTableSeeder::class);\n $this->call(ProductosTableSeeder::class);\n $this->call(ClientesTableSeeder::class);\n $this->call(FuentesTableSeeder::class);\n $this->call(MercadoPagoTablesSeeder::class);\n }", "title": "" }, { "docid": "116c4c002815026563a6ef61bdcb8adf", "score": "0.6572933", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $user = [\n [\n 'id' => 1,\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'password' => '$2y$10$VOunUZVMv4bwC84FJngVdORh/3WOQsLYXcHOTcmsVFWTVWWg.V8/i',\n ],\n [\n 'id' => 2,\n 'name' => 'Moderator1',\n 'email' => '[email protected]',\n 'password' => '$2y$10$VOunUZVMv4bwC84FJngVdORh/3WOQsLYXcHOTcmsVFWTVWWg.V8/i',\n ]\n ];\n\n User::insert($user);\n $roles = [\n [\n 'id' => 1,\n 'slug' => 'admin',\n 'name' => 'admin',\n ],\n [\n 'id' => 2,\n 'slug' => 'moderator',\n 'name' => 'moderator',\n ]\n ];\n\n Role::insert($roles);\n DB::insert('insert into role_users (user_id , role_id ) values (?, ?)', [1, 1]);\n DB::insert('insert into role_users (user_id , role_id ) values (?, ?)', [2, 2]);\n }", "title": "" }, { "docid": "ee4eefd3b4c6ff2daf9923c5438d3ed9", "score": "0.65706456", "text": "public function run()\n {\n // Running seeds with truncate() will trigger a constraint \n // violation if foreign key checks are not disabled.\n \n // DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n // foreach($this->toTruncate as $table) {\n // DB::table($table)->truncate();\n // }\n // DB::statement('SET FOREIGN_KEY_CHECKS = 1');\n\n\n $this->call(UsersTableSeeder::class);\n $this->call(LinksTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(LinkTagTableSeeder::class);\n }", "title": "" }, { "docid": "7883948541ab22d17e1e95fb360735e3", "score": "0.6568188", "text": "public function run()\n {\n $faker = Faker\\Factory::create();\n DB::table('events')->insert([\n 'name' => 'event name',\n 'event_start' => '09:00',\n 'event_end' => '18:00',\n 'edit' => 1,\n ]);\n }", "title": "" }, { "docid": "3e440def94b1efd923b4c5af81f99984", "score": "0.6562888", "text": "public function run()\n {\n $this->call('UsuarioTableSeeder');\n $this->call('CategoriaTableSeeder');\n $this->call('ProdutoTableSeeder');\n }", "title": "" }, { "docid": "e52d2528ea79733036164abd2191ef94", "score": "0.65610653", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n User::truncate();\n Category::truncate();\n SubCategory::truncate();\n FurtherCategory::truncate();\n Unit::truncate();\n Role::truncate();\n Store::truncate();\n Item::truncate();\n Image::truncate();\n Color::truncate();\n Size::truncate();\n Store::truncate();\n Branch::truncate();\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n $this->call(RolesTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(ColorsTableSeeder::class);\n $this->call(UnitsTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(SubCategoriesTableSeeder::class);\n $this->call(FurtherCategoriesTableSeeder::class);\n $this->call(MenusTableSeeder::class);\n $this->call(StoreTableSeeder::class);\n $this->call(BranchesTableSeeder::class);\n $this->call(SizesTableSeeder::class);\n $this->call(ItemsTableSeeder::class);\n $this->call(ImagesTableSeeder::class);\n \n }", "title": "" }, { "docid": "cec3400172c3f1edc0687656fb8c034b", "score": "0.65596884", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->call('PageSeeder');\n $this->call('MenuSeeder');\n $this->call('SentrySeeder');\n $this->call('SettingsSeeder');\n $this->call('NewsSeeder');\n $this->call('CategorySeeder');\n $this->call('ProjectSeeder');\n $this->call('TagSeeder');\n $this->call('EventSeeder');\n $this->call('PlaceSeeder');\n $this->call('TranslationSeeder');\n $this->call('GallerySeeder');\n $this->call('BlockSeeder');\n }", "title": "" }, { "docid": "ce88dab0c10c4ff5855637f1604188a3", "score": "0.65586185", "text": "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(AccessTableSeeder::class);\n// $this->call(LegacySQLSeeder::class);\n $this->call(LegacySQLProjectSeeder::class);\n\n if (env('DB_CONNECTION') == 'mysql') {\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }\n\n// factory(App\\Models\\Access\\User\\User::class, 5)->create();\n// factory(App\\Models\\Asset::class, 5)->create();\n// factory(App\\Models\\Dealer::class, 20)->create();\n// factory(App\\Models\\Checkout::class, 20)->create();\n// factory(App\\Models\\Asset::class, 5)->create();\n\n Model::reguard();\n }", "title": "" }, { "docid": "9ddd62aabab302d468fb6c6b1fa3e238", "score": "0.655588", "text": "public function run()\n {\n Model::unguard();\n\n switch (App::environment()) {\n case 'local':\n $this->cleanDB();\n\n $this->call(UsersTableSeeder::class);\n $this->call(CategoriesTableSeeder::class);\n $this->call(ProductsTableSeeder::class);\n $this->call(TagsTableSeeder::class);\n $this->call(ProductTagTableSeeder::class);\n\n break;\n default:\n break;\n }\n\n Model::reguard();\n }", "title": "" }, { "docid": "edcc6fedd6336bb246e222d826b648d0", "score": "0.655542", "text": "public function run()\n {\n User::create(['name' => 'government']);\n $this->call('SupplierTableSeeder');\n Construction::create(['user_id' => 1, 'name' => 'government', 'supplier_id' => 31]);\n $this->call('WorkTableSeeder');\n $this->call('ResourceTableSeeder');\n $this->call('ResourceSupplierTableSeeder');\n $this->call('ResourceWorkTableSeeder');\n }", "title": "" }, { "docid": "6deeed1cba47dce69531d31b477209b6", "score": "0.6554613", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $user = factory(User::class)->create();\n factory(Post::class, 10)->create([\n 'user_id' => $user->id\n ]);\n }", "title": "" }, { "docid": "8bcaf2d0064e5575a8a846bcd7777b3c", "score": "0.65504307", "text": "public function run()\n {\n DB::statement('SET foreign_key_checks = 0');\n DB::table('trips')->truncate();\n\n factory(\\App\\Trip::class, 100)->create();\n \n // ->each(function($trip){\n\n // Seed para a relação com 10 users\n // Checar!!! $trip->user()->saveMany(factory(App\\User::class, 10)->make());\n\n // Seed para a relação com 4 interests\n // $trip->interest()->saveMany(factory(App\\Interest::class, 4)->make());\n // });\n\n DB::statement('SET foreign_key_checks = 1');\n }", "title": "" } ]
15dd997f3043970ac0da6d1f5500c4a0
Return the Coupon entity for the supplied id or null if not found.
[ { "docid": "03f9da00980e860245df06d30e8a08ab", "score": "0.0", "text": "public function find($id);", "title": "" } ]
[ { "docid": "7c1cb407812b62ee668e6ecf0a1cfa6e", "score": "0.73937726", "text": "public function show($id)\n {\n $coupon = Coupon::find($id);\n return $coupon;\n }", "title": "" }, { "docid": "15d70a6f0f6f7015dc05510f830353c3", "score": "0.6596555", "text": "public function show($id)\n\t{\n\n\t\t$result = Coupon::where(\"_id\",$id)->first();\n\n\t\treturn response($result, 201);\n\n\t}", "title": "" }, { "docid": "2c6ee599a6698398b329a7c41d3f0d2f", "score": "0.63170356", "text": "public function getById($couponId)\n {\n $coupon = $this->couponFactory->create()->load($couponId);\n\n if (!$coupon->getCouponId()) {\n throw new \\Magento\\Framework\\Exception\\NoSuchEntityException();\n }\n return $coupon;\n }", "title": "" }, { "docid": "2b7b4e5e39bf0d487e37053c88f1e560", "score": "0.6039393", "text": "protected function detail($id)\n {\n return Show::make($id, new Coupon(), function (Show $show) {\n $show->field('id');\n $show->field('discount');\n $show->field('is_use')->as(function ($isUse) {\n if ($isUse == CouponModel::STATUS_UNUSED) {\n return admin_trans('coupon.fields.status_unused');\n } else {\n return admin_trans('coupon.fields.status_use');\n }\n });\n $show->field('is_open')->as(function ($isOPen) {\n if ($isOPen == CouponModel::STATUS_OPEN) {\n return admin_trans('dujiaoka.status_open');\n } else {\n return admin_trans('dujiaoka.status_close');\n }\n });\n $show->field('coupon');\n $show->field('ret');\n $show->field('created_at');\n $show->field('updated_at');\n });\n }", "title": "" }, { "docid": "90f891498db9accee47c03866b40bba6", "score": "0.58144486", "text": "public function coupon()\n {\n return new Coupon($this->discount->coupon);\n }", "title": "" }, { "docid": "91d7e207d33f2d3f9c29e01af2512207", "score": "0.5806809", "text": "public function fetchByID($couponID)\n {\n return $this->couponModel->with('couponProduct')->fetchByID($couponID)->first();\n }", "title": "" }, { "docid": "9e49838739af1fdeafb31245339b7907", "score": "0.5742502", "text": "public function getCouponId()\n {\n return $this->coupon_id;\n }", "title": "" }, { "docid": "e3e3f2596ff838e2bbb49de5cd6e6b21", "score": "0.565225", "text": "public function getById($id)\n {\n return $this->company->findOrFail($id);\n }", "title": "" }, { "docid": "01480a1b9458e139c6f757391f45e5b1", "score": "0.561574", "text": "public function getCouponById($id)\n {\n list($response) = $this->getCouponByIdWithHttpInfo($id);\n return $response;\n }", "title": "" }, { "docid": "ca533b6dfe7b37305ddc446e48d0d841", "score": "0.5601448", "text": "public function coupon()\n {\n return $this->belongsTo(Coupon::class);\n }", "title": "" }, { "docid": "5bfca7886e9c4836cefac7888f18fb22", "score": "0.55990475", "text": "public function getById($id)\n {\n return Country::findOrFail($id);\n }", "title": "" }, { "docid": "96683ec809d88396c4ac9503ac26f9ec", "score": "0.5585045", "text": "public function coupon_type(){\r\n return $this->hasOne('CouponType', 'id', 'coupon_type_id');\r\n }", "title": "" }, { "docid": "3b2bf065cd383591da71a1eccdd4c0ff", "score": "0.5582234", "text": "public function getCoupon()\n {\n return $this->coupon;\n }", "title": "" }, { "docid": "224381479d6f5210b0d92ffc25d82ed1", "score": "0.55572337", "text": "public function getById(int $id): ?StdClass\n {\n foreach ($this->datas as $province) {\n if ($province->id === $id) {\n return $province;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "8392696157c7e50665d0bebddf38ca2a", "score": "0.555623", "text": "protected static function _fetchFace($id, $class) {\n if ($id == null)\n return null;\n $c = $class::asCriteria(null);\n $c->setPkValue($id);\n return self::fetchOneBy($c); \n }", "title": "" }, { "docid": "c01089e4abbe6a0ed3b79befa080d6c3", "score": "0.55381143", "text": "public function get_by_Candidato_id($id)\n {\n $q = $this->db->get_where('CandidatoEmpleo', array( 'Candidato_id' => $id ) );\n return $q->result();\n }", "title": "" }, { "docid": "fd2e47c1d5c734ddefacd04f0848ab3b", "score": "0.5536581", "text": "public function getCoupon(): ?string\n {\n return $this->coupon;\n }", "title": "" }, { "docid": "0484833afffbe827264d7cfb1f021782", "score": "0.55319095", "text": "public static function getForAssociation($id)\r\n {\r\n $q = Doctrine_Query::create()\r\n ->from('Expense e')\r\n ->where('e.association_id = ?', $id);\r\n\r\n return $q->execute();\r\n }", "title": "" }, { "docid": "59fb0236a248fd7e0171e5a85967f9ab", "score": "0.55262434", "text": "public static function getConductById($id) {\n return Conduct::all()->find($id);\n }", "title": "" }, { "docid": "fc0d5f5d8981be86540adc95cc6405ec", "score": "0.5525661", "text": "public function find($id)\n {\n foreach ($this->model->billing_cards as $info) {\n if (Arr::get($info, 'id') == $id) {\n return new Creditcard(\n $this->model,\n $this->model->gatewayCustomer()->card(Arr::get($info, 'id')),\n $info\n );\n }\n }\n \n return null;\n }", "title": "" }, { "docid": "0eaefd2181ceb23616bb12a54fa5c362", "score": "0.5490889", "text": "public function edit($id = '')\n\t{\n\t\t$this->set_page_title(_l('coupons').' | '._l('edit'));\n\n\t\tif (!has_permissions('coupons', 'edit'))\n\t\t{\n\t\t\t$this->access_denied('coupons', 'edit');\n\t\t}\n\t\telse\n\n\t\tif ($id)\n\t\t{\n\t\t\tif ($this->input->post())\n\t\t\t{\n\t\t\t\t\t$data = array\n\t\t\t\t\t(\n\t\t\t\t\t\t'coupon_code' => $this->input->post('coupon_code'),\n\t\t\t\t\t\t'coupon_description' => $this->input->post('coupon_description'),\n\t\t\t\t\t\t'max_usage_per_user' => $this->input->post('max_usage_per_user'),\n\t\t\t\t\t\t'is_active' => ($this->input->post('is_active')) ? 1 : 0\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t$update = $this->coupons->update($id, $data);\n\n\t\t\t\tif ($update)\n\t\t\t\t{\n\t\t\t\t\tset_alert('success', _l('_updated_successfully', _l('coupons')));\n\t\t\t\t\tlog_activity(\"Coupon Updated [ID: $id]\");\n\t\t\t\t\tredirect('admin/coupons');\n\t\t\t\t}\n }\n \n $data['coupon'] = $this->coupons->get($id);\n\t\t\t\t$data['roles'] = $this->roles->get_all();\n\n\t\t\t\t$data['content'] = $this->load->view('admin/coupons/edit', $data, TRUE);\n\t\t\t\t$this->load->view('admin/layouts/index', $data);\n\t\t\t\t\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect('admin/coupons');\n\t\t}\n\t}", "title": "" }, { "docid": "18e300bf93502db41a1c699348c67285", "score": "0.5472105", "text": "public function coupon_id()\n {\n return isset($this->_cart_contents['coupon_id']) ? $this->_cart_contents['coupon_id'] : null;\n }", "title": "" }, { "docid": "e921b5f69e3816eeb2328a1948162e0f", "score": "0.5447789", "text": "public function getById($id)\n {\n $query = $this->getByIdQuery($id);\n try {\n return $query->getSingleResult();\n } catch (NoResultException $exception) {\n return null;\n }\n }", "title": "" }, { "docid": "ee19e17692d02d94b3b85f2ef553cb6c", "score": "0.5434904", "text": "public function show($id)\n {\n $cus = DB::table('kupon')->where('id',$id)->first();\n }", "title": "" }, { "docid": "47351815f973e48d8278d57e90d0d1fb", "score": "0.543374", "text": "public function get_coupons() {\n $this->db->select('*');\n $this->db->from('coupon');\n $this->db->where('id', $_GET['id']);\n $query = $this->db->get();\n if ($query->num_rows() > 0) {\n return $query->result();\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "e909f23f565eb7ef9c3632e039a28a57", "score": "0.54207706", "text": "public function getDetail($id)\n\t{\n\n\t\t$result = Coupon::raw()->aggregate([\n\t\t\t[\n\t\t\t\t'$match' => [ '_id' => new MongoId($id) ]\n\t\t\t], [\n\t\t\t\t'$unwind' => [\n\t\t\t\t\t'path' => '$products',\n\t\t\t\t\t'preserveNullAndEmptyArrays' => true\n\t\t\t\t]\n\t\t\t], [\n\t\t\t\t'$lookup' => [\n\t\t\t\t\t'from'=>'products',\n\t\t\t\t\t'localField'=>'products',\n\t\t\t\t\t'foreignField'=>'_id',\n\t\t\t\t\t'as'=>'saleProductDetail'\n\t\t\t\t]\n\t\t\t], [\n\t\t\t\t'$unwind' => [\n\t\t\t\t\t'path' => '$saleProductDetail',\n\t\t\t\t\t'preserveNullAndEmptyArrays' => true\n\t\t\t\t]\n\t\t\t], [\n\t\t\t\t'$group' => [\n\t\t\t\t\t'_id' => '$_id',\n\t\t\t\t\t'code' => ['$first' => '$code'],\n\t\t\t\t\t'name' => ['$first' => '$name'],\n\t\t\t\t\t'type' => ['$first' => '$type'],\n\t\t\t\t\t'discount' => ['$first' => '$discount'],\n\t\t\t\t\t'discount_status' => ['$first' => '$discount_status'],\n\t\t\t\t\t'total' => ['$first' => '$total'],\n\t\t\t\t\t'coupon_uses' => ['$first' => '$coupon_uses'],\n\t\t\t\t\t'customer_uses' => ['$first' => '$customer_uses'],\n\t\t\t\t\t'start_date' => ['$first' => '$start_date'],\n\t\t\t\t\t'end_date' => ['$first' => '$end_date'],\n\t\t\t\t\t'status' => ['$first' => '$status'],\n\t\t\t\t\t'csvImport' => ['$first' => '$csvImport'],\n\t\t\t\t\t'categories' => ['$first' => '$categories'],\n\t\t\t\t\t'saleProductDetail' => [\n\t\t\t\t\t\t'$push' => [\n\t\t\t\t\t\t\t'_id' => '$saleProductDetail._id',\n\t\t\t\t\t\t\t'name' => '$saleProductDetail.name',\n\t\t\t\t\t\t\t'imageFiles' => '$saleProductDetail.imageFiles',\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\t'$unwind' => [\n\t\t\t\t\t'path' => '$categories',\n\t\t\t\t\t'preserveNullAndEmptyArrays' => true\n\t\t\t\t]\n\t\t\t], [\n\t\t\t\t'$lookup' => [\n\t\t\t\t\t'from'=>'categories',\n\t\t\t\t\t'localField'=>'categories',\n\t\t\t\t\t'foreignField'=>'_id',\n\t\t\t\t\t'as'=>'saleCategoryDetail'\n\t\t\t\t]\n\t\t\t], [\n\t\t\t\t'$unwind' => [\n\t\t\t\t\t'path' => '$saleCategoryDetail',\n\t\t\t\t\t'preserveNullAndEmptyArrays' => true\n\t\t\t\t]\n\t\t\t], [\n\t\t\t\t'$group' => [\n\t\t\t\t\t'_id' => '$_id',\n\t\t\t\t\t'code' => ['$first' => '$code'],\n\t\t\t\t\t'name' => ['$first' => '$name'],\n\t\t\t\t\t'type' => ['$first' => '$type'],\n\t\t\t\t\t'discount' => ['$first' => '$discount'],\n\t\t\t\t\t'discount_status' => ['$first' => '$discount_status'],\n\t\t\t\t\t'total' => ['$first' => '$total'],\n\t\t\t\t\t'coupon_uses' => ['$first' => '$coupon_uses'],\n\t\t\t\t\t'customer_uses' => ['$first' => '$customer_uses'],\n\t\t\t\t\t'start_date' => ['$first' => '$start_date'],\n\t\t\t\t\t'end_date' => ['$first' => '$end_date'],\n\t\t\t\t\t'status' => ['$first' => '$status'],\n\t\t\t\t\t'csvImport' => ['$first' => '$csvImport'],\n\t\t\t\t\t'saleProductDetail' => ['$first' => '$saleProductDetail'],\n\t\t\t\t\t'saleCategoryDetail' => [\n\t\t\t\t\t\t'$push' => [\n\t\t\t\t\t\t\t'_id' => '$saleCategoryDetail._id',\n\t\t\t\t\t\t\t'cat_title' => '$saleCategoryDetail.cat_title',\n\t\t\t\t\t\t\t'ancestors' => '$saleCategoryDetail.ancestors',\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[\n\t\t\t\t'$lookup' => [\n\t\t\t\t\t'from' => \"orders\",\n\t\t\t\t\t'localField' => 'code',\n\t\t\t\t\t'foreignField' => 'coupon.code',\n\t\t\t\t\t'as' => 'orders'\n\t\t\t\t]\n\t\t\t],\n\t\t\t[\n\t\t\t\t'$project' => [\n\t\t\t\t\t'_id' => 1,\n\t\t\t\t\t'code' => 1,\n\t\t\t\t\t'name' => 1,\n\t\t\t\t\t'type' => 1,\n\t\t\t\t\t'discount' => 1,\n\t\t\t\t\t'discount_status' => 1,\n\t\t\t\t\t'total' => 1,\n\t\t\t\t\t'coupon_uses' => 1,\n\t\t\t\t\t'customer_uses' => 1,\n\t\t\t\t\t'start_date' => 1,\n\t\t\t\t\t'end_date' => 1,\n\t\t\t\t\t'status' => 1,\n\t\t\t\t\t'csvImport' => 1,\n\t\t\t\t\t'saleProductDetail' => 1,\n\t\t\t\t\t'saleCategoryDetail' => 1,\n\t\t\t\t\t'orders' => [\n\t\t\t\t\t\t'_id'=> 1,\n\t\t\t\t\t\t'reference'=> 1,\n\t\t\t\t\t\t'totalDiscount' => '$orders.coupon.totalDiscount',\n\t\t\t\t\t\t'date' => '$created_at'\n\t\t\t\t\t]\n\t\t\t\t]\n\t\t\t]\n\t\t]);\n\n if($result['ok'] != 1 || !isset($result['result'][0]))\n \treturn response('Coupon not found', 422);\n\n $result = $result['result'][0];\n\n if(count($result['saleProductDetail'])==1 && empty($result['saleProductDetail'][0]))\n \tunset($result['saleProductDetail']);\n if(count($result['saleCategoryDetail'])==1 && empty($result['saleCategoryDetail'][0]))\n \tunset($result['saleCategoryDetail']);\n\n\t\tif(!empty($result['saleCategoryDetail']))\n\t\t\tforeach ($result['saleCategoryDetail'] as &$category) {\n\t\t\t\t$category['name'] = $category['cat_title'];\n\t\t\t\tif(isset($category['ancestors'])){\n\t\t\t\t\t$category['name'] = $category['ancestors'][0]['title'].' > '.$category['cat_title'];\n\t\t\t\t}\n\n\t\t\t\tunset($category['ancestors']);\n\t\t\t\tunset($category['cat_title']);\n\t\t\t}\n\t\t// $coupon = new coupon;\n\t\t// $result = $coupon->getCoupon($id);\n\n\t\treturn response($result, 201);\n\n\t}", "title": "" }, { "docid": "71aef8ee176873d8bf78f3d0f65bfdc7", "score": "0.541752", "text": "public function queryById($id): ?Entity\n {\n $response = $this->get(\"/smartCampaign/$id.json\");\n $response->checkIsSuccess();\n $result = $response->singleValidResult();\n\n return $result ? new Entity($result) : null;\n }", "title": "" }, { "docid": "851ae6cfd8dfc9ea7fff7b6e48433746", "score": "0.5408711", "text": "public function getById($id)\n {\n return $this->subscriptionDiscountRepository->find($id);\n }", "title": "" }, { "docid": "38e5c10925af312b9bd7559862e14f53", "score": "0.5408557", "text": "function getCountry($id) {\n\t$sql = \"SELECT * FROM countries\n\t\t\tWHERE id = '{$id}'\";\n\t$row = fetchOne($sql);\n\treturn !empty($row) ? $row['name'] : null;\n}", "title": "" }, { "docid": "26fe1828ab2e8952fdae8fafae197011", "score": "0.53999424", "text": "public function getById($id)\n {\n $query = $this->getByIdQuery($id);\n\n try {\n return $query->getQuery()->getSingleResult();\n } catch (NoResultException $exception) {\n return null;\n }\n }", "title": "" }, { "docid": "5f2ccfdcb29cd9e674aefe5b6a69f3b4", "score": "0.5399251", "text": "public function getContato($id)\n {\n $sql = $this->pdo->prepare('select * from tb_contatos where id_usuario = :id');\n $sql->bindValue(':id', $id);\n\n $sql->execute();\n\n if ($sql->execute()) {\n // Query succeeded.\n while ($dados = $sql->fetch(PDO::FETCH_OBJ)) {\n $contato = new Contato();\n\n $contato->setId_usuario($dados->id_usuario);\n $contato->setTelefone($dados->telefone);\n $contato->setTipo($dados->tipo);\n\n return $contato;\n }\n } else {\n // Query failed.\n echo $sql->errorCode();\n return null;\n }\n }", "title": "" }, { "docid": "5d771b58828deeeac4902cf01ea3b6af", "score": "0.5397521", "text": "public function getConektaCustomer($id = null)\n {\n $customer = Customer::retrieve($id ?: $this->billable->getConektaId());\n\n return $customer;\n }", "title": "" }, { "docid": "98988414dbbb8fffeb604be3f61beaad", "score": "0.5387402", "text": "public function get($id)\n {\n if (!$id) {\n throw new InvalidArgumentException('Cannot retrieve a comment without an id');\n }\n \n $em = $this->getEntityManager();\n $repo = $em->getRepository('Post\\Model\\Comment');\n \n $qb = $repo->createQueryBuilder('pc');\n\n $repo->restrictToId($qb, $id);\n\n try {\n $comment = $qb->getQuery()->getSingleResult();\n } catch (NoResultException $e) {\n $comment = null;\n }\n\n return $comment;\n }", "title": "" }, { "docid": "4a2e5cddd1664ab8ec958ddd4e20eca5", "score": "0.533377", "text": "static public function retrieve(mixed $id): ?ChannelInterface;", "title": "" }, { "docid": "f4779bc3ce4e87101ece27c8c9f7ba54", "score": "0.533282", "text": "public function getByCoefficientId(CoefficientIdInterface $coefficientId): ?CoefficientInterface\n {\n $coefficientId->getCoefficientId()->getValue();\n\n //fake data\n return new Coefficient();\n }", "title": "" }, { "docid": "9a141625b57a02851c6fca411539ea6b", "score": "0.53294456", "text": "public function getTipoContato(int $id): ?Model\n {\n return $this->find($id);\n }", "title": "" }, { "docid": "c82bb4ab20da94d9e9ee0403e509e7c2", "score": "0.5325779", "text": "protected function findCountry($id)\n {\n if (($model = Country::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n }\n }", "title": "" }, { "docid": "95f2295edef831235f432429f9bf5742", "score": "0.5318558", "text": "protected function findModel($id)\n {\n if (($model = CouponSwap::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException(Yii::t('app', 'The requested page does not exist.'));\n }", "title": "" }, { "docid": "4d61246b2a0275060be9dcef15fba6d1", "score": "0.5301784", "text": "public function destroy($id)\n {\n Coupon::destroy($id);\n return response()->json(['success' => 'true']);\n }", "title": "" }, { "docid": "b63b290c2c9b3c887842fb84845a0085", "score": "0.52748495", "text": "public function delete_coupon($id = null){\n Coupon::where(['id'=>$id])->delete();\n return redirect()->back()->with('flash_message_success','Coupon has been deleted');\n }", "title": "" }, { "docid": "c7b9cbfee86b81aef078040372a14a28", "score": "0.5273206", "text": "public function destroy($id)\n {\n Coupon::find($id)->delete();\n return response()->json(['data'=>'removed']);\n }", "title": "" }, { "docid": "dc094e71648417118b6c564f53e640f7", "score": "0.5259539", "text": "public function getBankAccount(int $id): ?\\stdClass\n {\n try {\n return (($result = $this->client->get('3.0/banking/accounts/' . $id)) instanceof \\stdClass) ? $result : null;\n } catch (\\Exception $e) {\n // The bank account doesn't exist\n return null;\n }\n }", "title": "" }, { "docid": "4127c3a5b7b5cefdc3d046114626951e", "score": "0.52593786", "text": "public function obterPorId($id)\n {\n $conexao = DataBaseService::obterConexao();\n $query = \"SELECT `id`, `nome` FROM `categorias` WHERE `id` = :id\";\n $prepare = $conexao->prepare($query);\n $prepare->bindValue(':id', $id);\n if (!$prepare->execute()) {\n throw new \\PDOException('Erro ao obter Registro do Banco de Dados');\n }\n\n $row = $prepare->fetch(\\PDO::FETCH_ASSOC);\n\n $entity = clone $this->categoriaEntity;\n $entity->setId($row['id']);\n $entity->setNome($row['nome']);\n return $entity;\n }", "title": "" }, { "docid": "4a45ad5dd4707d76f0aa0643fb0614c2", "score": "0.52572334", "text": "protected function getCouponByIdRequest($id)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling getCouponById'\n );\n }\n\n $resourcePath = '/coupon/singleUse/coupon/{id}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($id !== null) {\n $resourcePath = str_replace(\n '{' . 'id' . '}',\n ObjectSerializer::toPathValue($id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass && $headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('Authorization');\n if ($apiKey !== null) {\n $headers['Authorization'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "8a1e7a64a4c3143eabe1c47aace58dfc", "score": "0.52556705", "text": "public static function getCurrencyById($id)\n {\n return self::find($id);\n }", "title": "" }, { "docid": "ea5360b92ef18ff78430601360e1bda5", "score": "0.52554405", "text": "public function findCustomerProfile($id)\n {\n $customer = $this->stripe->customers()->find($id);\n\n return (object)$customer;\n }", "title": "" }, { "docid": "b52b44ed933fc0b125e7a2bf71054dbf", "score": "0.5249576", "text": "public function show($id)\n {\n $user = User::find($id);\n $coupons = Coupon::withTrashed()->with('user')->where('user_id', $id)->paginate(20);\n\n return view('admin.coupons.show', ['coupons' => $coupons, 'user' => $user]);\n }", "title": "" }, { "docid": "966d441e5011cf45d623657ab9bd8ecc", "score": "0.5234412", "text": "public function getCouponRef()\n\t{\n\t\treturn $this->couponRef;\n\t}", "title": "" }, { "docid": "c81d2064a60526a419280f9afaeb9cd8", "score": "0.5226798", "text": "public function get( $id ) {\n\n\t\t$contact = new \\Maven\\Core\\Domain\\Contact();\n\t\t$contact->setProfileId( $id );\n\t\t$contact->setId( $id );\n\t\t\n\t\t$this->loadProfile( $contact );\n\t\t\n\t\treturn $contact;\n\t\t\n\t}", "title": "" }, { "docid": "f7798899acac1af4736164e6df8cee41", "score": "0.5220801", "text": "public function show($id)\n {\n return view('couponfor::show');\n }", "title": "" }, { "docid": "abfbfe934deb871f143674f5c5183320", "score": "0.52066696", "text": "public function show($id)\n {\n return Curso::findOrFail($id);\n }", "title": "" }, { "docid": "f87ea783277502aa9f5c012c0d58e93c", "score": "0.52060765", "text": "public function getCurrencyById($id) {\n return $this->currency->with('banknotes')->find($id);\n }", "title": "" }, { "docid": "c7bd1728d7c4ccb67d4a7aedf3bd2664", "score": "0.52038676", "text": "public function show($id)\n {\n return Company::findOrfail($id);\n }", "title": "" }, { "docid": "997a9cb581615078ce567f0111baa2fb", "score": "0.5201658", "text": "public function getAccount($id)\n {\n // search by id\n if (isset($this->accounts[$id])) {\n return $this->accounts[$id];\n }\n // not found\n return null;\n }", "title": "" }, { "docid": "7ab2e33daf92b29e77267648ec485f93", "score": "0.51951855", "text": "public function getOne($id)\n {\n $this->checkPrivilege('read');\n\n if (empty($id)) {\n throw new ApiException\\ParameterMissingException('id');\n }\n\n $filters = [\n [\n 'property' => 'countries.id',\n 'expression' => '=',\n 'value' => $id,\n ],\n ];\n $builder = $this->getRepository()->getCountriesWithStatesQueryBuilder($filters);\n /** @var \\Shopware\\Models\\Country\\Country|null $country */\n $country = $builder->getQuery()->getOneOrNullResult($this->getResultMode());\n if (!$country) {\n throw new ApiException\\NotFoundException(sprintf('Country by id %d not found', $id));\n }\n\n return $country;\n }", "title": "" }, { "docid": "46d1f8eb1333072707029c9c7015b076", "score": "0.5190075", "text": "public function getCountryById($id) {\n\t\t\treturn $this->da->getCountryById($id);\n\t\t}", "title": "" }, { "docid": "49ca557e0a66912bb124db83ab99bc5c", "score": "0.5181175", "text": "function findOneData($id)\n {\n $query = $this->createQueryBuilder('q')\n ->where('q.id = :id')\n ->setParameter('id', $id)\n ->getQuery();\n\n try {\n $result = $query->getSingleResult();\n } catch(NoResultException $e) {\n $result = null;\n }\n return $result;\n }", "title": "" }, { "docid": "ee2cb85e61ef31c0a073e2e508d5263e", "score": "0.51779777", "text": "public function delete($id)\n {\n $coupon = $this->getAllCoupons()->where('id', $id)->first();\n\n if (! $coupon) {\n return response([\n 'status' => 'failed',\n 'title' => 'Failed !',\n 'message' => 'Coupon with that id cannot be found.'\n ]);\n }\n\n $coupon->delete();\n\n $coupons = $this->getAllCoupons();\n\n return response([\n 'status' => 'success',\n 'title' => 'Success !',\n 'delay' => 3000,\n 'message' => 'Coupon deleted temporarily!',\n 'htmlResult' => view('admin.coupons.table', compact('coupons'))->render(),\n ]);\n }", "title": "" }, { "docid": "5fc36c52460d3ebbd5157d60d514ce00", "score": "0.5176219", "text": "public function findById($id) {\n return Comment::find()\n ->where(['id' => $id])\n ->one();\n }", "title": "" }, { "docid": "63922e58da3cd2a1924841a93e95a74b", "score": "0.5166792", "text": "public function getById($id)\n\t{\n\t\t/* @var $repository App\\System\\Repository\\*Repository */\n\t\t$repository = $this->getEntityManager()\n\t\t\t\t\t\t\t->getRepository($this->_classInstance);\n\n\t\t$entities = $repository->findById($id);\n\n\t\tif ( 0 == $entities->count() )\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach($entities as $entity)\n\t\t\t{\n\t\t\t\treturn $entity;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c37d3a781d6151cb963768ac3cccc569", "score": "0.51639867", "text": "static function getById($id)\r\n {\r\n $c= new Comment($id);\r\n if($c->id) {\r\n return $c;\r\n }\r\n return NULL;\r\n }", "title": "" }, { "docid": "4fbebe866b81f78b121bd6a8bb9cb5e8", "score": "0.51413286", "text": "protected function findModel(int $id): ?Country\n {\n if (($model = Country::findOne($id)) !== null) {\n return $model;\n }\n\n throw new NotFoundHttpException('The requested page does not exist.');\n }", "title": "" }, { "docid": "894090622792a0c1feff82412fb3ebb7", "score": "0.51357174", "text": "public function edit($id)\n {\n $coupon = Coupon::findOrFail($id);\n return view('backend.admin.coupon.edit', compact('coupon'));\n }", "title": "" }, { "docid": "572b66ce3630ce9d224afa84ee3b40f4", "score": "0.5133408", "text": "public function carregarPorId($id)\n {\n $result = $this->db->get_where('BICICLETA', array('id' => $id));\n return ($result->num_rows() > 0) ? $result->row() : NULL;\n }", "title": "" }, { "docid": "80b9f29135bc413e9c1685e8c0947973", "score": "0.51322556", "text": "function findById(int $id): ?Comment;", "title": "" }, { "docid": "d1aa8cb14219b27228dfccd5e63829bf", "score": "0.5127443", "text": "public function model()\n {\n return Coupon::class;\n }", "title": "" }, { "docid": "d2160fc16b64f9d15a20666243bbdc94", "score": "0.5122118", "text": "public function findById(int $id): ?Constructor\n {\n return Constructor::findOrFail($id);\n }", "title": "" }, { "docid": "b47aaef9af5171c65da5c854a8e62804", "score": "0.5112387", "text": "protected function getEntity($id = null)\n {\n return $this->getHelper()\n ->getEntity(get_class($this), $id);\n }", "title": "" }, { "docid": "7e96a7caea1ad3535c152bb7e8369139", "score": "0.51119196", "text": "public function getPrimaryCoupon()\n {\n if ($this->_primaryCoupon === null) {\n $this->_primaryCoupon = Mage::getModel('giftpromo/promo_coupon');\n $this->_primaryCoupon->loadPrimaryByRule($this->getId());\n $this->_primaryCoupon->setGiftPromoRule($this)->setIsPrimary(true);\n }\n\n return $this->_primaryCoupon;\n }", "title": "" }, { "docid": "6335349fdd0b1753d37eec4fb96f1f49", "score": "0.5106417", "text": "public static function byId($id = 0) {\n if (is_numeric($id)) {\n $character = self::select(\" WHERE cId = '\" . encode($id) . \"';\");\n if (count($character) == 1) {\n return $character[0];\n }\n }\n return null;\n }", "title": "" }, { "docid": "24ed065a9999dbf451524aaada98c2d8", "score": "0.5103897", "text": "public static function find($id)\n {\n try {\n return static::fromID($id);\n } catch (\\Exception $e) {\n return null;\n }\n }", "title": "" }, { "docid": "2a66d28e39f3b0239cb0a25ead1ecc7b", "score": "0.5101907", "text": "public function randomCoupon()\n {\n return Coupon::active()->inRandomOrder()->first();\n }", "title": "" }, { "docid": "a9fb728a1e5feba162cbefcfd5bb10fd", "score": "0.5095729", "text": "public function destroy($id)\n {\n try {\n $address = Address::findOrFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n 'error' => [\n 'message' => 'Coupon not found. Consider adding it!'\n ] ], 404);\n }\n $address->delete();\n return (new AddressResource($address))->additional(['message' => 'Delete success'])->response()->setStatusCode(200);\n }", "title": "" }, { "docid": "66d4f8f0d8edcec251b282e6fcab676e", "score": "0.5083462", "text": "public function findObjectById($id = null)\n {\n $qb = $this->createQueryBuilder('t')\n ->select('t')\n ->where('t.id = :id')\n ->setParameter('id', $id)\n ->setMaxResults(1);\n\n return $qb->getQuery()->getOneOrNullResult();\n }", "title": "" }, { "docid": "b3ace6688af1feb716d378869534e1a3", "score": "0.507774", "text": "public function destroy($id)\n {\n Coupon::find($id)->delete();\n return redirect()->back();\n }", "title": "" }, { "docid": "447a8e4fd3507df87b52643bf6507dff", "score": "0.5075895", "text": "public function show($id)\n {\n return AgsContato::findOrFail($id);\n }", "title": "" }, { "docid": "ab193051e021a9b8c6a5b073d81f6459", "score": "0.50749785", "text": "public function getPaymentMethodById($id) : ?PaymentMethodEntity\n {\n // Fetch ID for update\n $paymentCriteria = new Criteria();\n $paymentCriteria->addFilter(new EqualsFilter('id', $id));\n\n // Get payment methods\n $paymentMethods = $this->paymentRepository->search($paymentCriteria, Context::createDefaultContext());\n\n if ($paymentMethods->getTotal() === 0) {\n return null;\n }\n\n return $paymentMethods->first();\n }", "title": "" }, { "docid": "516e35771acd648f9b24d27f3280bbd9", "score": "0.5068097", "text": "public function getCurrencyCodeFromId($id)\n {\n $this->errorMessage = '';\n \n $currency = $this->currenciesModel->getOneByIdOrCode($id);\n \n if ($currency) {\n return $currency->Code;\n \n } else {\n $this->errorMessage = 'Invalid currency id';\n return false;\n }\n }", "title": "" }, { "docid": "df07d2e9cfa62e1b097460536018fcb4", "score": "0.5064796", "text": "public function findById($id)\n {\n $contact = $this->contactRepository->findById($id);\n if (!$contact) {\n return;\n }\n\n return $contact;\n }", "title": "" }, { "docid": "321d55302f9ceaaf7babe8c6c8c68639", "score": "0.50626206", "text": "public function destroy($id)\n {\n $coupon = $this->getAllCoupons()->where('deleted_at', '<>', null)->where('id', $id)->first();\n\n if (! $coupon) {\n return response([\n 'status' => 'failed',\n 'title' => 'Failed !',\n 'message' => 'Coupon with that id cannot be found.'\n ]);\n }\n\n $coupon->forceDelete();\n\n $coupons = $this->getAllCoupons();\n\n return response([\n 'status' => 'success',\n 'title' => 'Success !',\n 'delay' => 3000,\n 'message' => 'Coupon destroyed successfully!',\n 'htmlResult' => view('admin.coupons.table', compact('coupons'))->render(),\n ]);\n }", "title": "" }, { "docid": "dd9cb5dd97ad4b10641008e35ee1b1e0", "score": "0.50522906", "text": "public function edit($id)\n {\n $coupon = Coupon::find($id);\n return view('admin.coupon.edit', [\n 'coupon' =>$coupon\n ]);\n }", "title": "" }, { "docid": "5444125b95f2f95851037ae392337276", "score": "0.5048715", "text": "public function get($id)\n {\n $repo = $this->getEntityManager()->getRepository('Epixa\\ForumBundle\\Entity\\Category');\n $category = $repo->find($id);\n if (!$category) {\n throw new NoResultException('That category cannot be found');\n }\n\n return $category;\n }", "title": "" }, { "docid": "fc765009ed865e6e8536a28801574943", "score": "0.503485", "text": "public function getCouponByIdWithHttpInfo($id)\n {\n $returnType = '\\PkIo\\Model\\SingleUseCouponsCoupon';\n $request = $this->getCouponByIdRequest($id);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response = $this->client->send($request, $options);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null,\n $e->getResponse() ? $e->getResponse()->getBody()->getContents() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n sprintf(\n '[%d] Error connecting to the API (%s)',\n $statusCode,\n $request->getUri()\n ),\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if (!in_array($returnType, ['string','integer','bool'])) {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 200:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PkIo\\Model\\SingleUseCouponsCoupon',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 403:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 404:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'string',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 500:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'string',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 503:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n 'object',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n case 0:\n $data = ObjectSerializer::deserialize(\n $e->getResponseBody(),\n '\\PkIo\\Model\\RuntimeError',\n $e->getResponseHeaders()\n );\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "8c59f7bac5a3f92295c2bcbca9960b39", "score": "0.50305915", "text": "public function getCustomer(int $id) {\n // retrive Customer Data\n $customerData = $this->getCustomerData($id);\n if (!$customerData)\n return null;\n // retrive Customer's Transactions\n $customerTransactionsData = $this->getCustomerTransactionData($id);\n // create and return model\\Customer instance\n return new Customer($customerData, $customerTransactionsData);\n }", "title": "" }, { "docid": "4cfa42d88b5805b4f50b31b05ab89582", "score": "0.50304484", "text": "public function edit($id)\n {\n \n $coupon = Coupon::find($id);\n if ( !is_null($coupon)) {\n return view('backend.pages.coupon.edit', compact('coupon'));\n \n }\n else{\n\n return redirect()->route('coupon.manage');\n\n }\n }", "title": "" }, { "docid": "40f286c99448aa55499cddaedb5ab99a", "score": "0.5029945", "text": "public function oneCountry(int $id): ?array\n {\n $model = $this->findModel($id);\n\n return ['model' => $model];\n }", "title": "" }, { "docid": "65ae92cff42bd6c9ee9c8b668aec3a10", "score": "0.5028687", "text": "public function show($id)\n {\n //Regresa los cupones para un cliente\n $cupon = DB::table('clientecupon')\n ->join('cupon', 'clientecupon.id_cupon', '=', 'cupon.id')\n ->select('cupon.*')\n ->where('clientecupon.id_cliente', '=', $id)->get();\n return JsonResponse::create($cupon);\n }", "title": "" }, { "docid": "c2da312861198b80d2738a7bc9873ac4", "score": "0.50194305", "text": "public function getCredit(string $id): Credit;", "title": "" }, { "docid": "32343547b6ae79a512a78c039687c10d", "score": "0.50108814", "text": "function findByID($id)\n {\n return $this->categoryRepository->findById($id);\n }", "title": "" }, { "docid": "27ced1c29394936ed56cf54c1eba03a5", "score": "0.5010584", "text": "public function findOneById($id)\n {\n return isset($this->recipes[$id]) && count($this->recipes)\n ? $this->recipes[$id] : null;\n }", "title": "" }, { "docid": "b245aa163e7e334b0e4b115c7c34a4cd", "score": "0.5010041", "text": "function get_by_id($id)\n {\n $this->db->where('id_company', $id);\n return $this->db->get($this->table)->row();\n }", "title": "" }, { "docid": "63cec458cd5c843cd67a62d014a6bd2e", "score": "0.50098073", "text": "public function ProdutoPorId($id){\n \n $this->conexao = new Conexao();\n $this->conexao->CriarConexao();\n \n $sql = \"SELECT p.idProduto, p.nome, p.preco, p.imagemLink, COALESCE(e.quantidade,0) - COALESCE(c.quantidade,0) as quant\n FROM produto p\n left join (select idProduto, sum(quantidade) as quantidade\n from entradaproduto \n group by idProduto) e on e.idProduto = p.idProduto\n left join (select idProduto, sum(quantidade) as quantidade\n from compra\n group by idProduto) c on c.idProduto = p.idProduto\n WHERE p.idProduto = $id\n ORDER BY p.nome\";\n $result = mysqli_query($this->conexao->getConn(), $sql);\n \n if (mysqli_num_rows($result) > 0) {\n $row = mysqli_fetch_assoc($result);\n $this -> produto = new Produto($row[\"idProduto\"], $row[\"nome\"], \"\", $row[\"preco\"], $row[\"imagemLink\"], $row[\"quant\"]);\n } else {\n return null;\n }\n \n $this->conexao->FecharConexao();\n return $this -> produto;\n }", "title": "" }, { "docid": "16ef6638a61f051bfcf806503a5dfcdf", "score": "0.50043005", "text": "public function buscarPorId($id)\n {\n $query = $this->db->select('*')\n ->from('evalprod_areacontacto')\n ->where('id_contacto', $id)\n ->get();\n if (!$query) return null;\n return ($query->num_rows() > 0) ? $query->row() : null;\n }", "title": "" }, { "docid": "519b4195301421f650a25544c11d2134", "score": "0.5000192", "text": "function get_companys_by_id($id) {\n $this->db->where('id', $id);\n $query = $this->db->get('company');\n if ($query->num_rows > 0) {\n $ret = $query->row();\n return $ret;\n } else {\n return NULL;\n }\n }", "title": "" }, { "docid": "dc1157735ec4f5f2c78df2635197b069", "score": "0.49985", "text": "public function getById($id) {\n\n return $this->contract->findOrFail($id);\n }", "title": "" }, { "docid": "dda033aaef3cc0d25e68ca37a0e9a6ac", "score": "0.4996182", "text": "public static function getById(int $id):?Comment{\n $consulta=\"SELECT * FROM comments WHERE id=$id\";\n return DB::select($consulta, self::class);\n }", "title": "" }, { "docid": "f6f802e87dc424c122884804f8526a76", "score": "0.49922314", "text": "public function getEntity($id) {\n $entity = null;\n\n $result = $this->queryRow(\"SELECT * FROM entity WHERE id = ?\", array($id));\n if(!empty($result))\n $entity = new Entity(); // add in the constructor the values get by the result array\n\n return $entity;\n }", "title": "" }, { "docid": "87bdb730ce9b33c8b5e39501fefeb575", "score": "0.49901396", "text": "public function show($id)\n {\n return Currency::find($id);\n }", "title": "" }, { "docid": "4f8d2add466beae6fd5ab31ef2e163ee", "score": "0.49854606", "text": "public function get_Coupon_From_Order($orderID)\r\n {\r\n \r\n // Call the method from the data access layer\r\n $resultArray = $this->getCoupnFromOrder($orderID);\r\n \r\n // Grab the field value that belongs to id_order\r\n $couponID = $resultArray[\"tbl_coupon_id_coupon\"];\r\n \r\n return $couponID;\r\n }", "title": "" }, { "docid": "db9b90a52d5d406918c8d8bf5f4051d0", "score": "0.49838635", "text": "public function findById(int $id): ?Affiliate\n {\n return $this->find($id);\n }", "title": "" }, { "docid": "b2f21a81da64b63b6b7c14ae88912340", "score": "0.49757898", "text": "public function find($id) {\r\n\r\n if (isset ($this->resource)) {\r\n $this->resource->find($id);\r\n return $this->resource;\r\n }\r\n else { throw new \\Exception('Discogs resource is not set'); }\r\n\r\n }", "title": "" } ]
f88b25af304f745562e665512f00815f
Return the "Is in stock?" flags for the given products. Considers if the stock is managed on the product or per store when deciding if a product is in stock.
[ { "docid": "4205a09f2975f3a6fe728129d7960d97", "score": "0.61175144", "text": "protected function getStockData($product_ids) \n {\n $stmt = $this->getConnection()->query(\n $this->getConnection()\n ->select()\n ->from(\n array('s' => $this->getTableName(\"cataloginventory/stock_item\")),\n array(\n 'product_id' => \"s.product_id\",\n 'in_stock' => \"s.is_in_stock\",\n 'manage_stock' => \"s.manage_stock\",\n 'use_config' => \"s.use_config_manage_stock\",\n )\n )\n ->where(\"s.product_id IN (?)\", $product_ids)\n ->where(\"s.stock_id = ?\", 1)\n );\n\n $data = array();\n while ($row = $stmt->fetch()) {\n if (($row['use_config'] && $this->getStoreManageStock()) || (!$row['use_config'] && $row['manage_stock'])) {\n $data[$row['product_id']] = ($row['in_stock']) ? true : false;\n } else {\n $data[$row['product_id']] = true;\n }\n }\n\n return $data;\n }", "title": "" } ]
[ { "docid": "1efc9f10d9709848ccc7c7a4efb721c3", "score": "0.63346606", "text": "private function isInStock(ProductInterface $product): bool\n {\n $quantityAndStockStatus = $product->getQuantityAndStockStatus();\n if (!$quantityAndStockStatus) {\n return $product->isSalable();\n }\n\n return $quantityAndStockStatus['is_in_stock'] ?? false;\n }", "title": "" }, { "docid": "604c0eb31159c6e5ff74ec1368720dcc", "score": "0.6301516", "text": "public function isCustomStockStatusInShoppingCart()\n {\n return Mage::getStoreConfig('web4pro_stockstatus/general/display_in_cart');\n }", "title": "" }, { "docid": "941cf6f5095a076367e3afcab4dd7b8e", "score": "0.62977856", "text": "private function isInStock(BundleProduct $product, $key)\n {\n $assignedProducts = $product->getBundleSelections()['products'][0];\n $status = $assignedProducts[$key]->getData()['quantity_and_stock_status']['is_in_stock'];\n\n if ($status == 'In Stock') {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "84b58ac340b83b1f66f6614bc30d4dd3", "score": "0.62080055", "text": "public function isInStock(){\n \treturn ($this->stock_count > 0) ? true : false;\n }", "title": "" }, { "docid": "a955a5b651f534b5bce69cc6b0c9a3ab", "score": "0.6202837", "text": "public function getIsInStockValues()\n {\n return Mage::getSingleton('cataloginventory/source_stock')->toOptionArray();\n }", "title": "" }, { "docid": "ddca20eb2c79273f9cd33a3e4d430ab1", "score": "0.6182723", "text": "public function getStockStatus($product){\n return $this->__('Availability:') . \" \" . $this->getNewStockStatus($product);\n }", "title": "" }, { "docid": "10070734ceecc136a28eea9df8745b0e", "score": "0.6166198", "text": "function astra_woo_product_in_stock( $markup, $product ) {\r\n\r\n\t\tif ( is_product() ) {\r\n\t\t\t$product_avail = $product->get_availability();\r\n\t\t\t$stock_quantity = $product->get_stock_quantity();\r\n\t\t\t$availability = $product_avail['availability'];\r\n\t\t\t$avail_class = $product_avail['class'];\r\n\t\t\tif ( ! empty( $availability ) && $stock_quantity ) {\r\n\t\t\t\tob_start();\r\n\t\t\t\t?>\r\n\t\t\t\t<p class=\"ast-stock-detail\">\r\n\t\t\t\t\t<span class=\"ast-stock-avail\"><?php esc_html_e( 'Availability:', 'astra' ); ?></span>\r\n\t\t\t\t\t<span class=\"stock <?php echo esc_html( $avail_class ); ?>\"><?php echo esc_html( $availability ); ?></span>\r\n\t\t\t\t</p>\r\n\t\t\t\t<?php\r\n\t\t\t\t$markup = ob_get_clean();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $markup;\r\n\t}", "title": "" }, { "docid": "4a4c87b831ad541a0520e2942d4e9f77", "score": "0.6114675", "text": "public function getNewStockStatus($product)\n {\n $defaultStockStatus = $this->getDefaultStockStatus($product);\n $customStockStatus = $this->getCustomStockStatus($product);\n if ($this->isShowStockLevel() && $product->getStockItem()->getQty() && in_array($product->getTypeID(), $this->getProductTypesForCount())) {\n $levelStockStatus = $this->__('%s in stock', (int)$product->getStockItem()->getQty());\n return $levelStockStatus . ' ' . $customStockStatus;\n }\n if(!strlen($customStockStatus)){\n return $defaultStockStatus;\n }else if ($this->isDefaultStockStatusHidden($product)){\n return $customStockStatus;\n } else {\n return $defaultStockStatus . ' ' . $customStockStatus;\n }\n }", "title": "" }, { "docid": "bbebd7954a9eaf6dda4f4929c024059c", "score": "0.60495394", "text": "public function showStockStatus($product)\n {\n $result = '';\n if ($this->isCustomStockStatusOnProductListPage()){\n $result = $this->getNewStockStatus($product);\n }\n return $result;\n }", "title": "" }, { "docid": "66d86d7816d9a0fd9db133c2b86435b0", "score": "0.604498", "text": "public function getIsProductOutOfStock($productId)\n {\n return true;\n\n }", "title": "" }, { "docid": "dade23c97ddfa4b590671ec8f4e67a30", "score": "0.60324377", "text": "public function checkNumberProductsForCustomStatus($product){\n $count = $product->getData('count_products');\n if(!in_array($product->getTypeID(), $this->getProductTypesForCount())) return true;\n $strockQty = (int) Mage::getModel('cataloginventory/stock_item')->loadByProduct($product)->getQty();\n return $count <= $strockQty;\n }", "title": "" }, { "docid": "bb4b76fe213f17fee3a35654e62510ed", "score": "0.6028791", "text": "public function is_in_stock() {\n\t\t\t$in_stock = true;\n\t\t\t$max_allowed = $this->get_max_students();\n\n\t\t\tif ( $max_allowed ) {\n\t\t\t\t$in_stock = $max_allowed > $this->count_completed_orders();\n\t\t\t}\n\n\t\t\treturn apply_filters( 'learn-press/is-in-stock', $in_stock, $this->get_id() );\n\t\t}", "title": "" }, { "docid": "8b22720e33a0ecb36d6b1eaff877345c", "score": "0.59854835", "text": "public function isInStock(): bool;", "title": "" }, { "docid": "d43846b5be49188d4bc14f94f1645270", "score": "0.5946761", "text": "function checkProductsCheckInventory()\r\n\t{\r\n\t\t// if this has already been done, don't repeat\r\n\t\tif (Tienda::getInstance()->get('checkProductsCheckInventory', '0'))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t$table = '#__tienda_products';\r\n\t\t$definitions = array();\r\n\t\t$fields = array();\r\n\r\n\t\t$fields[] = \"product_check_inventory\";\r\n\t\t$newnames[\"product_check_inventory\"] = \"product_check_inventory\";\r\n\t\t$definitions[\"product_check_inventory\"] = \"tinyint(1) DEFAULT '0' COMMENT 'Check Inventory for this Product?'\";\r\n\r\n\t\t$fields[] = \"product_ships\";\r\n\t\t$newnames[\"product_ships\"] = \"product_ships\";\r\n\t\t$definitions[\"product_ships\"] = \"tinyint(1) DEFAULT '0' COMMENT 'Product Requires Shipping?'\";\r\n\r\n\t\tif ($this->changeTableFields( $table, $fields, $definitions, $newnames ))\r\n\t\t{\r\n\t\t\t// Update config to say this has been done already\r\n\t\t\tJTable::addIncludePath( JPATH_ADMINISTRATOR.'/components/com_tienda/tables' );\r\n\t\t\t$config = JTable::getInstance( 'Config', 'TiendaTable' );\r\n\t\t\t$config->load( array( 'config_name'=>'checkProductsCheckInventory') );\r\n\t\t\t$config->config_name = 'checkProductsCheckInventory';\r\n\t\t\t$config->value = '1';\r\n\t\t\t$config->save();\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6c93516746db3314f8d497b3e5a53f78", "score": "0.5944373", "text": "function product_in_order_exists($products)\n {\n $db = new DbKitchen();\n for ($i = 0; $i < count($products); $i++) {\n $id_product = $products[$i][\"_id\"];\n $product = $db->db_get_product($id_product)['product'];\n if ($product == null OR $product['enabled'] == false) {\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "3bdf4ee610012a008aeef0dac98080d5", "score": "0.59356487", "text": "public function getDefaultStockStatus($product)\n {\n if($product->isAvailable()){\n $result = $this->__('In stock');\n }\n else{\n $result = $this->__('Out of stock');\n }\n return $result;\n }", "title": "" }, { "docid": "4c2fa846d90bb30c05be207f29226b1c", "score": "0.590351", "text": "public function inStock(){\n\n return $this->stockCount() > 0;\n }", "title": "" }, { "docid": "838f613fd1fea5ca300aad2473d2e2d6", "score": "0.589916", "text": "private function checkStock($productId) {\n return Product::where('id',$productId)->where('quantity','>', 0)->exists();\n }", "title": "" }, { "docid": "12e21fca6100be34d47ad6f711e5497e", "score": "0.5843244", "text": "function wc_in_stock_func( $atts ) {\n\n global $product;\n \n if ( $product->is_in_stock() ) {\n\n return '<div class=\"stock\">\n <span class=\"stock__availability stock__availability--in\"><i class=\"fa fa-check\" aria-hidden=\"true\"></i> '. __('In Stock', 'oakworld').'\n </span>\n </div>';\n\n } else {\n \n return '<div class=\"stock\">\n <span class=\"stock__availability stock__availability--out\"><i>X</i> '. _e( 'Out of Stock', 'oakworld' ). '</span>\n </div>';\n }\n}", "title": "" }, { "docid": "d80cd133fd9454a99d2ed59899019a6e", "score": "0.5795058", "text": "public function haveStockableItems(): bool\n {\n foreach ($this->items as $item) {\n if ($item->product->isStockable()) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "47a0da2dd62cde191d5f7bf211dd6ef1", "score": "0.578365", "text": "function is_in_stock() {\n\t\tif ($this->managing_stock()) {\n if ($this->data['stock_status'] != 'instock') {\n return false;\n } else if(!$this->backorders_allowed() && $this->stock <= 0) {\n return false;\n }\n }\n\n return true;\n\t}", "title": "" }, { "docid": "3ffaa22fbd4ee73ea39901c26d95ea53", "score": "0.5780477", "text": "function set_in_stock($store_product_id, $stock_id, $status)\n\t{\n\t\t$invStockItemTable = Mage::getSingleton('core/resource')->getTableName('cataloginventory_stock_item');\n\t\t$sql = \"UPDATE \" . $invStockItemTable . \" SET is_in_stock = '1' WHERE product_id = '\" . (int) $store_product_id . \"'\";\n\t\t$connection = Mage::getSingleton('core/resource')->getConnection('core_write');\n\t\t$connection->query($sql);\n\t\treturn true;\n\t}", "title": "" }, { "docid": "aa84aed28a7420b8e166143ed6e1c6ce", "score": "0.5735459", "text": "public function isDefaultStockStatusHidden($product)\n {\n return $product->getData('hide_default_stockstatus');\n }", "title": "" }, { "docid": "8d83068072cf17b910c28b1c0471ddd3", "score": "0.57169443", "text": "public function isSetProducts()\n {\n return !is_null($this->_fields['Products']['FieldValue']);\n }", "title": "" }, { "docid": "9c519c3ce75a685988d1099dc9eb3079", "score": "0.5716553", "text": "function checkProductsInventory()\r\n\t{\r\n\t\t// if this has already been done, don't repeat\r\n\t\tif (Tienda::getInstance()->get('checkProductsInventory', '0'))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t$table = '#__tienda_products';\r\n\t\t$definitions = array();\r\n\t\t$fields = array();\r\n\r\n\t\t$fields[] = \"product_check_inventory\";\r\n\t\t$definitions[\"product_check_inventory\"] = \"tinyint(1) DEFAULT '0' COMMENT 'Check Product Inventory?'\";\r\n\r\n\t\tif ($this->insertTableFields( $table, $fields, $definitions ))\r\n\t\t{\r\n\t\t\t// Update config to say this has been done already\r\n\t\t\tJTable::addIncludePath( JPATH_ADMINISTRATOR.'/components/com_tienda/tables' );\r\n\t\t\t$config = JTable::getInstance( 'Config', 'TiendaTable' );\r\n\t\t\t$config->load( array( 'config_name'=>'checkProductsInventory') );\r\n\t\t\t$config->config_name = 'checkProductsInventory';\r\n\t\t\t$config->value = '1';\r\n\t\t\t$config->save();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "790422cd502075ea382a9ced69216cad", "score": "0.5690665", "text": "public function isShowStockLevel()\n {\n return Mage::getStoreConfig('web4pro_stockstatus/general/showstocklevel');\n }", "title": "" }, { "docid": "75c518d4d1f7e80a79a8969ca804c915", "score": "0.5641541", "text": "public function isCustomStockStatusOnProductViewPage()\n {\n return Mage::getStoreConfig('web4pro_stockstatus/general/display_at_product_page');\n }", "title": "" }, { "docid": "2e7b1801b6b077e23162a1754c85ed50", "score": "0.56383586", "text": "public static function shopHasAvailablePromoProducts(){\n $orderBy = Tools::getProductsOrder('by');\n $orderWay = Tools::getProductsOrder('way');\n $all_products = Product::getProducts((int)Context::getContext()->language->id, 0, 0, $orderBy, $orderWay, ID_CATEGORY_MAIN, true, null, false);\n foreach ($all_products as $product){\n if (Product::combinationListHasPromo($product['combinations']))\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "f2c3c4ec53277e0e60be5806c412a519", "score": "0.56329143", "text": "function managing_stock() {\n\t\tif (get_option('jigoshop_manage_stock') == 'yes') {\n if (isset($this->data['manage_stock']) && $this->data['manage_stock'] == 'yes') {\n return true;\n }\n }\n\n return false;\n\t}", "title": "" }, { "docid": "cc337efe0eca7d79ecae2050db440355", "score": "0.56055576", "text": "public function check_insufficient_product_stock($products, $branch_id) {\n if (!empty($products) && ((int) $branch_id > 0)) {\n $arr = array();\n foreach ($products as $product) {\n $branch_stock_by_product_id_branch_id = $this->Branch_stock_Model->get_branch_stock_by_product_id_branch_id($product['product_id'], $branch_id);\n if (empty($branch_stock_by_product_id_branch_id) || (((int) $branch_stock_by_product_id_branch_id->stock) < (int) $product['quantity'])) {\n// $this->session->set_flashdata('stock_insufficient_message', $product['product_name'] . ' ' . 'Stock Insufficient');\n// redirect(base_url('sale_product'));\n array_push($arr, $product['product_name'] . ' Stock Insufficient' . '<br>');\n }\n }\n if (!empty($arr)) {\n $this->session->set_flashdata('stock_insufficient_message', $arr);\n redirect(base_url('sale_product'));\n }\n }\n }", "title": "" }, { "docid": "0627ce5c3da0ebc5f8b1a0fba50c73ca", "score": "0.559254", "text": "public static function checkQuantity($arProducts)\n\t{\n\t\t$result = true;\n\t\t$sumQuantityOnStores = array();\n\t\tforeach ($arProducts as $id => $arProduct)\n\t\t{\n\t\t\tif (CSaleBasketHelper::isSetParent($arProduct))\n\t\t\t\tcontinue;\n\n\t\t\tif (!empty($arProduct[\"STORES\"]) && is_array($arProduct[\"STORES\"]))\n\t\t\t{\n\t\t\t\t$sumQuantityOnStores[$id] = 0;\n\t\t\t\tforeach ($arProduct[\"STORES\"] as $arStore)\n\t\t\t\t{\n\t\t\t\t\t$sumQuantityOnStores[$id] += $arStore[\"QUANTITY\"];\n\t\t\t\t}\n\n\t\t\t\tif ($sumQuantityOnStores[$id] != $arProduct[\"QUANTITY\"])\n\t\t\t\t{\n\t\t\t\t\t$GLOBALS[\"APPLICATION\"]->ThrowException(GetMessage(\"NEWO_ERR_STORE_QUANTITY_NOT_EQUAL_TOTAL_QUANTITY\", array(\"#PRODUCT_NAME#\" => $arProduct[\"NAME\"])).\"<br>\");\n\t\t\t\t\t$result = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$GLOBALS[\"APPLICATION\"]->ThrowException(GetMessage(\"NEWO_ERR_STORE_WRONG_INFO\", array(\"#PRODUCT_NAME#\" => $arProduct[\"NAME\"])).\"<br>\");\n\t\t\t\t$result = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "03a85d88bd9b17f9a5829019a84c0fd8", "score": "0.55843717", "text": "public function getCustomStockStatus($product)\n {\n $customStockStatus = '';\n if (($product->isAvailable() || $this->isCustomStockStatusOnOutOfStock()) && $this->checkNumberProductsForCustomStatus($product)) {\n $customStockStatus = $product->getAttributeText('custom_stockstatus');\n }\n return $customStockStatus;\n }", "title": "" }, { "docid": "8e03957929b83c91b7ce43b84f9d08c5", "score": "0.557894", "text": "public function check_quantity_wise_stock()\n {\n $quantity = $this->input->post('product_quantity',TRUE);\n $product_id = $this->input->post('product_id',TRUE);\n $variant = $this->input->post('variant',TRUE);\n $variant_color = $this->input->post('variant_color',TRUE);\n $stock = $this->Products_model->check_quantity_wise_stock($quantity, $product_id, $variant, $variant_color);\n\n if ($stock >= $quantity) {\n echo \"yes\";\n } else {\n echo \"no\";\n }\n }", "title": "" }, { "docid": "f34b5f6c5ebf585c09aaf69ea786d30d", "score": "0.5573623", "text": "public function getChildStockStatus($product){\n if (!$this->isShowStockImage()){\n return false;\n }\n $img = '';\n $custom_stockstatus = $product->getData('custom_stockstatus');\n if($custom_stockstatus && $this->isCustomStockStatusOnProductViewPage()){\n $src = $this->getAttributeOptionImage($custom_stockstatus);\n $img = '<img style=\"display:inline;\" align=\"top\" height=\"20px\" src=\"' . $src . '\" />';\n }\n\n return $img . $this->__('Availability:') .\" \".$this->getNewStockStatus($product);\n }", "title": "" }, { "docid": "32bd9888acb5612c9bce6e441f8e641e", "score": "0.55733913", "text": "public function getKlevuStockStatus(ProductInterface $product, $parentProduct = null);", "title": "" }, { "docid": "a3b208ed029f3de6833710b4ffabec0b", "score": "0.5566604", "text": "public function isCustomStockStatusOnOutOfStock()\n {\n return Mage::getStoreConfig('web4pro_stockstatus/general/outofstock');\n }", "title": "" }, { "docid": "c1d149f36cc21d547b399fd39443ac44", "score": "0.55614644", "text": "function checkProductsNotForSale()\r\n\t{\r\n\t\t// if this has already been done, don't repeat\r\n\t\tif (Tienda::getInstance()->get('checkProductsNotForSale', '0'))\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\t$table = '#__tienda_products';\r\n\t\t$definitions = array();\r\n\t\t$fields = array();\r\n\r\n\t\t$fields[] = \"product_notforsale\";\r\n\t\t$definitions[\"product_notforsale\"] = \"tinyint(1) NOT NULL\";\r\n\r\n\t\t$fields[] = \"quantity_restriction\";\r\n\t\t$definitions[\"quantity_restriction\"] = \"tinyint(1) NOT NULL\";\r\n\r\n\t\tif ($this->insertTableFields( $table, $fields, $definitions ))\r\n\t\t{\r\n\t\t\t// Update config to say this has been done already\r\n\t\t\tJTable::addIncludePath( JPATH_ADMINISTRATOR.'/components/com_tienda/tables' );\r\n\t\t\t$config = JTable::getInstance( 'Config', 'TiendaTable' );\r\n\t\t\t$config->load( array( 'config_name'=>'checkProductsNotForSale') );\r\n\t\t\t$config->config_name = 'checkProductsNotForSale';\r\n\t\t\t$config->value = '1';\r\n\t\t\t$config->save();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "d0e6655aa7082480f03782b90759044b", "score": "0.552696", "text": "public function isCustomStockStatusOnProductListPage()\n {\n return Mage::getStoreConfig('web4pro_stockstatus/general/display_at_category');\n }", "title": "" }, { "docid": "261c54501a35b95f7f32e637dd676fde", "score": "0.5521129", "text": "public function hasProduct(IsotopeProduct $objProduct, $blnIdentical = true);", "title": "" }, { "docid": "5b124cf2dd025282a444a561d36c8ea3", "score": "0.55103236", "text": "public function get_stock_count( $products )\n {\n $data = array();\n foreach ( $products as $product ) {\n if ( empty($product['x_amazon_sku'])) \n $sku = $product['sku'];\n else\n $sku = $product['x_amazon_sku'];\n \n $member = $this->_xml_obj->xpath('.//InventorySupplyList/member[descendant::SellerSKU=\"'.$sku.'\"]');\n if ( $member && isset($member[0]->ASIN) ) {\n $stock = strip_tags($member[0]->InStockSupplyQuantity->asXML());\n $data[$sku] = $stock;\n } else {\n $data[$sku] = 'ERROR';\n }\n }\n return $data; \n }", "title": "" }, { "docid": "e2a4164fcb2de68f4c8d08e87eb1e655", "score": "0.55080956", "text": "public static function checkMinStock() : bool\n {\n $alert = false;\n $products = Product::where('bussine_id', Auth::user()->bussine_id)->where('is_active', 'on')->get();\n\n foreach($products as $product){\n if($product->stock <= $product->alert_stock){\n $alert = true;\n }\n }\n\n return $alert;\n }", "title": "" }, { "docid": "8d14dee8983073b3ef3460adb1442324", "score": "0.54771525", "text": "protected function getProductSearchConditions()\n {\n $cnd = new CommonCell();\n\n if ('directLink' != Config::getInstance()->General->show_out_of_stock_products) {\n $cnd->{ProductRepo::P_INVENTORY} = false;\n }\n\n $cnd->{ProductRepo::P_SKIP_MEMBERSHIP_CONDITION} = true;\n\n return $cnd;\n }", "title": "" }, { "docid": "2e98bb86bc1b29fbf0ec1d82b2f53291", "score": "0.5442522", "text": "public function isStockable()\n {\n return $this->isStockable;\n }", "title": "" }, { "docid": "e37058418dddb8e2c4b48d4465f8a1a7", "score": "0.5440663", "text": "public function isAvailableForCompare(ProductInterface $product): bool\n {\n if ((int)$product->getStatus() !== Status::STATUS_DISABLED) {\n return $this->isInStock($product) || $this->stockConfiguration->isShowOutOfStock();\n }\n\n return false;\n }", "title": "" }, { "docid": "059150c8ee9434dc090b995f9d90bfe1", "score": "0.5420794", "text": "private function getProductAvailability($idProduct)\n {\n return [\n 'stock' => Product::getQuantity($idProduct),\n ];\n }", "title": "" }, { "docid": "0b53b454ae1f8c1141de9d267c5b163b", "score": "0.5394512", "text": "public function get_availability() {\n\n\n\t\t// Do not display initial availability if we aren't managing stock or if variable or grouped\n\t\tif ( self::get_options()->get_option('jigoshop_manage_stock') != 'yes' || $this->is_type( array('grouped', 'variable')) )\n\t\t\treturn false;\n\n\t\t// Start as in stock\n\t\t$notice = array(\n\t\t\t'availability'\t=> __( 'In Stock', 'jigoshop' ),\n\t\t\t'class'\t\t\t=> null,\n\t\t);\n\n\t\t// If stock is being managed & has stock\n\t\tif ( $this->managing_stock() && $this->is_in_stock() ) {\n\t\t\tif ( $this->stock <= 0 ) {\n\t\t\t\t$notice['availability'] = __( 'Out of Stock', 'jigoshop' );\n\t\t\t\t$notice['availability'] .= (self::get_options()->get_option('jigoshop_show_stock') == 'yes' && ! $this->has_child() ) ? \" &ndash; {$this->stock} \".__(' available', 'jigoshop' ) : '';\n\t\t\t} else\n\t\t\t\t$notice['availability'] .= (self::get_options()->get_option('jigoshop_show_stock') == 'yes' && ! $this->has_child() ) ? \" &ndash; {$this->stock} \".__(' available', 'jigoshop' ) : '';\n\n\t\t\t// If customers require backorder notification\n\t\t\tif ( $this->backorders_allowed() ) {\n\t\t\t\t$notice['availability'] = $notice['availability'] .' ('.__('backorders allowed','jigoshop').')';\n\t\t\t}\n\t\t}\n\t\telse if ( $this->managing_stock() && $this->backorders_allowed() ) {\n\t\t\t$notice['availability']\t= __( 'Available on Backorder', 'jigoshop' );\n\t\t}\n\n\t\t// Declare out of stock if we don't have any stock\n\t\tif ( ! $this->is_in_stock() ) {\n\t\t\t$notice['availability']\t= __( 'Out of Stock', 'jigoshop' );\n\t\t\t$notice['class']\t\t= 'out-of-stock';\n\t\t}\n\n\t\treturn apply_filters( 'jigoshop_product_availability', $notice, $this );\n\t}", "title": "" }, { "docid": "d0863c1249ba576b26f397e28a3dc4ca", "score": "0.5392832", "text": "public function isSetProduct()\n {\n return count ($this->_fields['Product']['FieldValue']) > 0;\n }", "title": "" }, { "docid": "a0c336119c9db6e18dae5aab244f0a09", "score": "0.5387964", "text": "public function assertValidProductFlags()\n {\n $itemProp = static::$itemProp;\n $formats = array(SPL_T_BOOL);\n\n //====================================================================//\n // Enabled Flag\n $this->assertFieldHasFormat($itemProp, \"active\", $formats, \"Product Enabled Flag\");\n $this->assertFieldIsRead($itemProp, \"offered\", \"Product Offered Flag\");\n\n //====================================================================//\n // Offered Flag\n $this->assertFieldIsDefined($itemProp, \"offered\", \"Product Offered Flag\");\n $this->assertFieldHasFormat($itemProp, \"offered\", $formats, \"Product Offered Flag\");\n $this->assertFieldIsRead($itemProp, \"offered\", \"Product Offered Flag\");\n $this->assertFieldIsWrite($itemProp, \"offered\", \"Product Offered Flag\");\n $this->assertFieldNotRequired($itemProp, \"offered\", \"Product Offered Flag\");\n\n //====================================================================//\n // Buy Flag\n $this->assertFieldHasFormat($itemProp, \"ordered\", $formats, \"Product Buy Flag\");\n $this->assertFieldIsRead($itemProp, \"ordered\", \"Product Buy Flag\");\n $this->assertFieldNotRequired($itemProp, \"ordered\", \"Product Buy Flag\");\n }", "title": "" }, { "docid": "23bab6df102c674b53cd02e716ba8c04", "score": "0.53765", "text": "public function is_product()\n {\n $res = false;\n if(Mage::registry('current_product')) {\n $res = true;\n }\n return $res;\n }", "title": "" }, { "docid": "6f694a2b1f8c5b154a57f5260900e747", "score": "0.53721434", "text": "public function managing_stock() {\n\n\t\t// If we're not managing stock at all\n\t\tif (self::get_options()->get_option('jigoshop_manage_stock') != 'yes')\n\t\t\treturn false;\n\n\t\treturn (bool) $this->manage_stock;\n\t}", "title": "" }, { "docid": "d56e4af28070d302c56e5dc12abfef13", "score": "0.5362364", "text": "public function getStockCheckMode()\n {\n return $this->_blCheckStock;\n }", "title": "" }, { "docid": "5b98940e22880e006c1c4c1dd116570b", "score": "0.53579617", "text": "protected function getAvailability()\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\t$stock = $this->services->getCrawler()->filter('#item_out_of_stock')->text();\r\n\t\t\t$this->product->setAvailable(false);\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tcatch (\\Exception $e)\r\n\t\t{\r\n\t\t\t// if the out of stock message isn't there then it's in stock\r\n\t\t\t$this->product->setAvailable(true);\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "43fe033b926bca8433873a3a93008e38", "score": "0.53359973", "text": "public function getTheQuotedAndEscrowStatusOfThisProductInTheCart($order_id,$product_id){\n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='order_id=:orderid and product_id=:prodid';\n $criteria->params = array(':orderid'=>$order_id,':prodid'=>$product_id);\n $product= OrderHasProducts::model()->find($criteria);\n \n return $product['is_quote_and_escrow_only'];\n }", "title": "" }, { "docid": "e717d3cf00b564cfba68dfe3e62371b2", "score": "0.53308564", "text": "public function variantIsActive(ML_Shop_Model_Product_Abstract $oProduct) {\n $sValue = $this->getConfig('PrepareType');\n $sCompare = $sValue === 'match' ? \"'apply'\" : \"'manual' , 'auto'\";\n return MLDatabase::getDbInstance()->fetchOne(\"\n SELECT COUNT(*)\n FROM \".MLDatabase::getPrepareTableInstance()->getTableName().\" prepare\n WHERE \".MLDatabase::getPrepareTableInstance()->getMarketplaceIdFieldName().\" = '\".MLModul::gi()->getMarketPlaceId().\"'\n AND PrepareType in (\".$sCompare.\")\n AND \".MLDatabase::getPrepareTableInstance()->getProductIdFieldName().\" = '\".(int)$oProduct->get('id').\"'\n \") > 0 ? false : true;\n }", "title": "" }, { "docid": "fc0b0fea1dd80a1b78b44a5e1abc2ccd", "score": "0.5316256", "text": "public function check_variant_wise_stock()\n {\n $variant_id = $this->input->post('variant_id',TRUE);\n $product_id = $this->input->post('product_id',TRUE);\n $variant_color = $this->input->post('variant_color',TRUE);\n $stock = $this->Products_model->check_variant_wise_stock($variant_id, $product_id);\n\n if ($stock > 0) {\n echo \"1\";\n } else {\n echo \"2\";\n }\n }", "title": "" }, { "docid": "8dfcc7c659904447954c45db9acb1bef", "score": "0.5309954", "text": "function checkStock() {\n\t\t$return = true;\n\t\tif ( $this->conf['useStockHandling'] == 1 AND $this->conf['checkStock'] == 1) {\n\t\t\t$basket = $GLOBALS['TSFE']->fe_user->tx_commerce_basket;\t\t\t\n\t\t\tif (is_array($basket->basket_items))\t{\n\t\t\t\tforeach ($basket->basket_items as $artUid => $basketItem)\t{\n\t\t\t\t\tif ($this->debug)\tdebug($basketItem->article);\n\t\t\t\t\tif (!$basketItem->article->hasStock($basketItem->get_quantity())) {\n\t\t\t\t\t\t$basket->change_quantity($artUid, 0);\n\t\t\t\t\t\t$return = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$basket->store_data();\n\t\t}\t\t\t\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "9633e44e19f3b184ffd561606d2eb175", "score": "0.5305261", "text": "function in_cart($products_id) {\n global $db;\n $this->notify('NOTIFIER_CART_IN_CART_START');\n $cart = $this->customers_basket($products_id);\n $this->notify('NOTIFIER_CART_IN_CART_END');\n\n if ($cart->RecordCount() > 0) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "af0e50acb680f937a209861077efec28", "score": "0.52856195", "text": "protected function prepareIsSaleable($currentProduct, $stockQuantity)\n {\n $availableForOrder = isset($currentProduct->available_for_order) && $currentProduct->available_for_order != 1\n ? false\n : true;\n\n $saleable = 0;\n if ($availableForOrder) {\n if (version_compare(_PS_VERSION_, '1.5.0.1', '<')\n && (Product::isAvailableWhenOutOfStock($currentProduct->out_of_stock) || $stockQuantity > 0)\n || version_compare(_PS_VERSION_, '1.5.0.1', '>=') && $currentProduct->checkQty(1)\n ) {\n $saleable = 1;\n }\n }\n\n return $saleable;\n }", "title": "" }, { "docid": "6712d2f10fdf237c6b4ae981a02a052a", "score": "0.5283927", "text": "public function isSold(): bool;", "title": "" }, { "docid": "5101176cae395899bf372373acade7a2", "score": "0.5270992", "text": "public function get_product_condition() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d7adb826fadae476e7ac2ada4d83b6ec", "score": "0.52629393", "text": "public function checkInventoryTracking() {\n\t\t$client = $this->client;\n\t\t$request_data = $this->request_data;\n\t\t\n\t\t$id = $this->getBCID();\n\n\t\t$product_id = (is_array($id))?$id['parent_id']:$id;\n\t\t\n\t\ttry {\n\t\t\t$response = $client->get(\"products/{$product_id}\");\n\t\t} catch (\\Exception $e) {\n\t\t\t$this->doException($e,\"checking product's inventory tracking status\");\n\t\t}\n\n\t\t$product = $response->json(array('object'=>TRUE));\n\t\t\n\t\t/*\n\t\t\tnone\n\t\t\tsimple\n\t\t\tsku\n\t\t*/\n\t\t\n\t\tif($product->inventory_tracking == 'none' ) {\n\t\t\t$this->doException(null,\"This product does not have inventory tracking enabled.\");\n\t\t}\n\n\t}", "title": "" }, { "docid": "53c86c3d567d86e7905fadfb11ccab77", "score": "0.5260513", "text": "public function getTheQuotedStatusOfThisProductInTheCart($order_id,$product_id){\n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='order_id=:orderid and product_id=:prodid';\n $criteria->params = array(':orderid'=>$order_id,':prodid'=>$product_id);\n $product= OrderHasProducts::model()->find($criteria);\n \n return $product['is_quote_only'];\n }", "title": "" }, { "docid": "31d23c985007c5921d6f6e143f04c149", "score": "0.5258452", "text": "public function getStockAllowableValues()\n {\n return [\n self::STOCK_YES,\n self::STOCK_NO,\n ];\n }", "title": "" }, { "docid": "bb14b8ddc45e18d2e2b6fbdf37f7ef1a", "score": "0.5238991", "text": "public function isSetProduct()\n {\n return !empty($this->_fields['Product']['FieldValue']);\n }", "title": "" }, { "docid": "7dae9caf012e93c7cbf6fd25e9912569", "score": "0.52256167", "text": "public function hasProductsWithQuantityBox(): bool\n {\n foreach ($this->items as $item) {\n if ($item->product->getTypeInstance()->showQuantityBox()) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "a716357ce1aa8a0bf0dfd10741a3e619", "score": "0.5199746", "text": "public function isReadStock()\n {\n return $this->getReadStock();\n }", "title": "" }, { "docid": "5b63d2d00ecff6c6047d81c4cf766348", "score": "0.51966566", "text": "public function getTheEscrowStatusOfThisProductInTheCart($order_id,$product_id){\n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='order_id=:orderid and product_id=:prodid';\n $criteria->params = array(':orderid'=>$order_id,':prodid'=>$product_id);\n $product= OrderHasProducts::model()->find($criteria);\n \n return $product['is_escrow_only'];\n }", "title": "" }, { "docid": "c49412cbd56ab29c2e120cf50ed15cf1", "score": "0.51932377", "text": "protected function getShowOutOfStock() \n {\n if (!$this->hasData('show_out_of_stock')) {\n $this->setData('show_out_of_stock', Mage::helper('cataloginventory')->isShowOutOfStock());\n }\n\n return $this->getData('show_out_of_stock');\n }", "title": "" }, { "docid": "116a731a5969ab8740590e1f87b29f6f", "score": "0.5190463", "text": "function set_stock_available()\n{\n $res = true;\n //Get all products with positive quantity\n $resource = Db::getInstance()->query('\n\t\tSELECT quantity, id_product, out_of_stock\n\t\tFROM `' . _DB_PREFIX_ . 'product`\n\t\tWHERE `active` = 1\n\t');\n\n while ($row = Db::getInstance()->nextRow($resource)) {\n $quantity = 0;\n\n //Try to get product attribues\n $attributes = Db::getInstance()->executeS(\n '\n\t\t\tSELECT quantity, id_product_attribute\n\t\t\tFROM `' . _DB_PREFIX_ . 'product_attribute`\n\t\t\tWHERE `id_product` = ' . (int) $row['id_product']\n );\n\n //Add each attribute to stock_available\n foreach ($attributes as $attribute) {\n // add to global quantity\n $quantity += $attribute['quantity'];\n\n //add stock available for attributes\n $res &= Db::getInstance()->execute('\n\t\t\t\tINSERT INTO `' . _DB_PREFIX_ . 'stock_available`\n\t\t\t\t(`id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`)\n\t\t\t\tVALUES\n\t\t\t\t(\"' . (int) $row['id_product'] . '\", \"' . (int) $attribute['id_product_attribute'] . '\", \"1\", \"0\", \"' . (int) $attribute['quantity'] . '\", \"0\", \"' . (int) $row['out_of_stock'] . '\")\n\t\t\t');\n if (!$res) {\n return ['error' => Db::getInstance()->getNumberError(), 'msg' => '(attributes)' . Db::getInstance()->getMsgError()];\n }\n }\n\n if (count($attributes) == 0) {\n $quantity = (int) $row['quantity'];\n }\n\n //Add stock available for product;\n $res &= Db::getInstance()->execute('\n\t\t\tINSERT INTO `' . _DB_PREFIX_ . 'stock_available`\n\t\t\t(`id_product`, `id_product_attribute`, `id_shop`, `id_group_shop`, `quantity`, `depends_on_stock`, `out_of_stock`)\n\t\t\tVALUES\n\t\t\t(\"' . (int) $row['id_product'] . '\", \"0\", \"1\", \"0\", \"' . (int) $quantity . '\", \"0\", \"' . (int) $row['out_of_stock'] . '\")\n\t\t');\n if (!$res) {\n return ['error' => Db::getInstance()->getNumberError(), 'msg' => '(products)' . Db::getInstance()->getMsgError()];\n }\n }\n\n return $res;\n}", "title": "" }, { "docid": "10d3f687715146c63b86b49b7ce12400", "score": "0.5188243", "text": "function getStockItemConditions($stockItem) {\n\t\t\t$adapter = $this->getWriteAdapter( );\n\t\t\treturn implode( ' AND ', array( ( '(product_id = ' . $adapter->quote( $stockItem['product_id'] ) . ')' ), ( '(stock_id = ' . $adapter->quote( $stockItem['stock_id'] ) . ')' ) ) );\n\t\t}", "title": "" }, { "docid": "2c93ecbde4260fb6ecf3b03c7b61e6e3", "score": "0.51819533", "text": "function isProductOutOfStock( $product_id, $inventory_type_id )\n\t{\n\t\tif( hewr_isWarehouseManagedCheckWithId( $inventory_type_id ) )\n\t\t{\n\t\t\t//fetch \"product_value_quantity\" from \"product_value\" table\n\t\t\t\t\n\t\t\t$is_stock = fetchRow( \"SELECT product_value_quantity from product_value WHERE product_id = \".$product_id );\n\t\t\t\n\t\t\tif($is_stock['product_value_quantity'] <= 0)\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\treturn false;\n\t\t\t}\n\t\t\t//pr($is_stock);\n\t\t}\n\t\telse \n\t\t{\n\t\t\treturn false; \n\t\t}\n\t}", "title": "" }, { "docid": "c58dd0f37ca8779d84c40fcdc396d630", "score": "0.51726013", "text": "public function productStock($product);", "title": "" }, { "docid": "a64e961c56906c542de9bec234147c68", "score": "0.5170996", "text": "private function is_product_enabled( $productId ) {\n\n $value = $this->get_deserialized_value();\n\n // Returns true if there is FundraiserProducts data, if it contains\n // an entry for the specified product, and the \"enabled\" flag for\n // that product is true.\n return\n ( ! is_null( $value ) ) &&\n ( ! empty( $value ) ) &&\n ( isset( $value[ $productId ] ) ) &&\n ( isset( $value[ $productId ][ 'enabled' ] ) ) &&\n $value[ $productId ][ 'enabled' ];\n }", "title": "" }, { "docid": "1dd03514c51065a132f194866a72460f", "score": "0.5170085", "text": "function in_cart_mixed($products_id) {\n global $db;\n\n $product = $db->Execute(\"select products_id, products_quantity_mixed from \" . TABLE_PRODUCTS . \" where products_id='\" . zen_get_prid($products_id) . \"' limit 1\");\n\n // if mixed attributes is off return qty for current attribute selection\n if ($product->fields['products_quantity_mixed'] == '0') {\n return $this->get_quantity($products_id);\n }\n\n // compute total quantity regardless of attributes\n $in_cart_mixed_qty = 0;\n $chk_products_id= zen_get_prid($products_id);\n\n $products = $this->customers_basket();\n\n while (!$products->EOF) {\n //$products_id = $products->fields['products_id'];\n //$test_id = zen_get_prid($products_id);\n //if ($test_id == $chk_products_id) {\n $in_cart_mixed_qty += $products->fields['customers_basket_quantity'];\n //}\n $products->MoveNext();\n }\n return $in_cart_mixed_qty;\n }", "title": "" }, { "docid": "bfe174ec8135420df7004bea14071cd2", "score": "0.51541036", "text": "public function isEnabledProductView()\n {\n return $this->scopeConfig->isSetFlag(\n 'lof_ajaxcart/general/enabled_product_view',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }", "title": "" }, { "docid": "d72804751b700ffb9a53d86bfd399c07", "score": "0.51497424", "text": "protected function getProductConditions(Product $product)\n {\n return [];\n }", "title": "" }, { "docid": "3720c42c771397e08e848c2c979cbe0d", "score": "0.5142829", "text": "public function updateSetInStock()\n {\n $this->_initConfig();\n $this->_getWriteAdapter()->update(\n $this->getTable('cataloginventory/stock_item'),\n array('is_in_stock' => 1),\n sprintf(\n 'is_in_stock = 0\n AND stock_status_changed_automatically = 1\n AND (use_config_manage_stock = 1 AND 1 = %d OR use_config_manage_stock = 0 AND manage_stock = 1)\n AND (use_config_min_qty = 1 AND qty > %d OR use_config_min_qty = 0 AND qty > min_qty)\n AND product_id IN (SELECT entity_id FROM %s WHERE type_id IN (%s))',\n $this->_isConfigManageStock,\n $this->_configMinQty,\n $this->getTable('catalog/product'), $this->_getWriteAdapter()->quote($this->_configTypeIds)\n )\n );\n }", "title": "" }, { "docid": "1b4f26ffa079761f8398f4f9e2304e52", "score": "0.5124011", "text": "function sensei_check_if_product_is_in_cart( $wc_product_id = 0 ) {\n return Sensei_WC::is_product_in_cart( $wc_product_id );\n\t}", "title": "" }, { "docid": "6c9eced8a36188c6d4565325a6022630", "score": "0.5122028", "text": "public function isUpdateStock()\n {\n return $this->getUpdateStock();\n }", "title": "" }, { "docid": "72098ad62ea9beae424d4a54f40b2cb3", "score": "0.51122826", "text": "public function isShowStockImageOnly()\n {\n return Mage::getStoreConfig('web4pro_stockstatus/general/showimageonly');\n }", "title": "" }, { "docid": "38f255909ce4147fbb52469f2210cfce", "score": "0.50941104", "text": "public function isThisProductInCartQuotedOrEscrowed($order_id,$product_id){\n \n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='order_id=:orderid and product_id=:prodid';\n $criteria->params = array(':orderid'=>$order_id,':prodid'=>$product_id);\n $product= OrderHasProducts::model()->find($criteria);\n \n if($product['is_quote_only'] == 1){\n return true;\n }else if($product['is_quote_and_escrow_only'] == 1){\n return true;\n }else if($product['is_escrow_only'] == 1){\n return true;\n }else{\n return false;\n }\n }", "title": "" }, { "docid": "fdd87957c62837f6ca10adf3ed8f932a", "score": "0.5091214", "text": "public function isThisProductAHamperInCart($order_id,$product_id){\n \n $criteria = new CDbCriteria();\n $criteria->select = '*';\n $criteria->condition='order_id=:orderid and product_id=:prodid';\n $criteria->params = array(':orderid'=>$order_id,':prodid'=>$product_id);\n $product= OrderHasProducts::model()->find($criteria);\n \n return $product['is_hamper'];\n }", "title": "" }, { "docid": "7cc431ca1e54c461ef69aed7e4dcd0be", "score": "0.5089066", "text": "public function hasProduct()\n {\n return (Mage::registry('Object_Cache_Product')) ? true : false;\n }", "title": "" }, { "docid": "683e420c563929bae14f9cc249b4e4c3", "score": "0.5088078", "text": "public function getEnabledProducts()\n {\n $query = $this->getEntityManager()->createQueryBuilder();\n $products = $query->select('p')\n ->from('AiselProductBundle:Product', 'p')\n ->andWhere('p.status = 1')\n ->getQuery()\n ->execute();\n\n return $products;\n }", "title": "" }, { "docid": "ad105405bfe7908b75437d4688447257", "score": "0.50876415", "text": "public function ws_getFeaturedProducts($currentcurrencycode, $service, $store)\n {\n\t\t$storeObj = $this->_storeManager;\n\t\t$cache = $this->_cache;\n\t\t$scopeConfig = $this->_scopeconfig;\n\t\t$media_url = $storeObj->getStore()->getBaseUrl(\\Magento\\Framework\\UrlInterface::URL_TYPE_MEDIA);\n $storeObj->getStore()->setCurrentStore($store);\n $res = array();\n $rootcateid = $storeObj->getStore()->getRootCategoryId();\n $category = $this->_category->load($rootcateid);\n $basecurrencycode = $storeObj->getStore($store)->getBaseCurrencyCode();\n $product = $this->_product;\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance();\n $collection = $product->getCollection()->addStoreFilter($store)->addAttributeToSelect('*')->addAttributeToFilter('type_id', array(\n 'in' => array(\n 'simple',\n 'configurable',\n 'grouped'\n )\n ))->addAttributeToFilter('visibility', 4)->addAttributeToFilter('status', 1);\n $collection->addCategoryFilter($category);\n $manageStock = $scopeConfig->getValue(\n \\Magento\\CatalogInventory\\Model\\Configuration::XML_PATH_MANAGE_STOCK,\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n $cond = [\n '{{table}}.use_config_manage_stock = 0 AND {{table}}.manage_stock=1 AND {{table}}.is_in_stock=1',\n '{{table}}.use_config_manage_stock = 0 AND {{table}}.manage_stock=0'\n ];\n\n if ($manageStock) {\n $cond[] = '{{table}}.use_config_manage_stock = 1 AND {{table}}.is_in_stock=1';\n } else {\n $cond[] = '{{table}}.use_config_manage_stock = 1';\n }\n\n $collection->joinField(\n 'inventory_in_stock',\n 'cataloginventory_stock_item',\n 'is_in_stock',\n 'product_id=entity_id',\n '(' . join(') OR (', $cond) . ')'\n );\n $i = 0;\n $collection->setPage(1, 10);\n if($collection->getSize()){\n\t\t\tforeach ($collection as $_product) {\n\t\t\t\tif ($_product->getTypeID() == 'configurable') {\n\t\t\t\t$gflag=1;\n\t\t\t\t$mofluid_all_product_images = array();\n\t\t\t\t$mofluid_non_def_images = array();\n\t\t\t\t$mofluid_all_product_images = array();\n\t\t\t\t$mofluid_non_def_images = array();\n\t\t\t\t$mofluid_product = $product->load($_product->getId());\n\t\t\t\t$mofluid_baseimage = $media_url.'catalog/product' . $mofluid_product->getImage();\n\t\t\t\t$defaultprice = str_replace(\",\", \"\", number_format($_product->getPrice(), 2));\n\t\t\t\t$defaultsprice = str_replace(\",\", \"\", number_format($_product->getSpecialprice(), 2));\n\t\t\t $imagehelper = $objectManager->create('Magento\\Catalog\\Helper\\Image');\n\t\t\t\t$thumbnailimage = $imagehelper->init($mofluid_product, 'category_page_list')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(200)->getUrl();\n\t\t\t\t// Get the Special Price\n\t\t\t\t$specialprice = $product->load($_product->getId())->getSpecialPrice();\n\t\t\t\t// Get the Special Price FROM date\n\t\t\t\t$specialPriceFromDate = $product->load($_product->getId())->getSpecialFromDate();\n\t\t\t\t// Get the Special Price TO date\n\t\t\t\t$specialPriceToDate = $product->load($_product->getId())->getSpecialToDate();\n\t\t\t\t// Get Current date\n\t\t\t\t$today = time();\n\n\t\t\t\tif ($specialprice) {\n\n\t\t\t\t\tif ($today >= strtotime($specialPriceFromDate) && $today <= strtotime($specialPriceToDate) || $today >= strtotime($specialPriceFromDate) && is_null($specialPriceToDate)) {\n\n\t\t\t\t\t\t$specialprice = strval(round($this->convert_currency($defaultsprice, $basecurrencycode, $currentcurrencycode), 2));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$specialprice = 0;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$specialprice = 0;\n\t\t\t\t}\n\n\t\t\t\t//Code added by sumit\n\t\t\t\t if ($_product->getTypeID() == 'grouped') {\n\n\t\t\t\t\t$defaultprice = number_format($this->getGroupedProductPrice($_product->getId(), $currentcurrencycode) , 2, '.', '');\n\t\t\t\t\t$specialprice = number_format($_product->getFinalPrice(), 2, '.', '');\n\t\t\t\t }else{\n\t\t\t\t\t $defaultprice = number_format($_product->getPrice(), 2, '.', '');\n\t\t\t\t\t $specialprice = number_format($_product->getFinalPrice(), 2, '.', '');\n\t\t\t\t }\n\t\t\t\t//End sumit code\n\t\t\t\tif($defaultprice == $specialprice)\n\t\t\t\t\t$specialprice = number_format(0, 2, '.', '');\n\n\t\t\t $stock = $this->stock->getStockItem($_product->getId());\n\t\t\t $res[\"products_list\"][$i++] = array(\n\t\t\t\t\t\"id\" => $_product->getId(),\n\t\t\t\t\t\"name\" => $_product->getName(),\n\t\t\t\t\t\"image\" => $thumbnailimage,\n\t\t\t\t\t\"type\" => $_product->getTypeID(),\n\t\t\t\t\t\"price\" => number_format($this->convert_currency($specialprice, $basecurrencycode, $currentcurrencycode), 2, '.', ''),\n\t\t\t\t\t\"special_price\" => number_format($this->convert_currency($specialprice, $basecurrencycode, $currentcurrencycode), 2, '.', ''),\n\t\t\t\t\t\"currency_symbol\" => $this->_currency->getCurrency($currentcurrencycode)->getSymbol(),\n\t\t\t\t\t\"is_stock_status\" => $stock->getIsInStock()\n\t\t\t\t);\n\t\t\t\t$res[\"status\"][0] = array(\n 'Show_Status' => \"1\"\n );\n } }\n\n ###### simple ##################\n\n foreach ($collection as $_product) {\n\t\t\t\tif ($_product->getTypeID() == 'simple') {\n\t\t\t\t$gflag=1;\n\t\t\t\t$mofluid_all_product_images = array();\n\t\t\t\t$mofluid_non_def_images = array();\n\t\t\t\t$mofluid_all_product_images = array();\n\t\t\t\t$mofluid_non_def_images = array();\n\t\t\t\t$mofluid_product = $product->load($_product->getId());\n\t\t\t\t$mofluid_baseimage = $media_url.'catalog/product' . $mofluid_product->getImage();\n\t\t\t\t$defaultprice = str_replace(\",\", \"\", number_format($_product->getPrice(), 2));\n\t\t\t\t$defaultsprice = str_replace(\",\", \"\", number_format($_product->getSpecialprice(), 2));\n\t\t\t $imagehelper = $objectManager->create('Magento\\Catalog\\Helper\\Image');\n\t\t\t\t$thumbnailimage = $imagehelper->init($mofluid_product, 'category_page_list')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(200)->getUrl();\n\t\t\t\t// Get the Special Price\n\t\t\t\t$specialprice = $product->load($_product->getId())->getSpecialPrice();\n\t\t\t\t// Get the Special Price FROM date\n\t\t\t\t$specialPriceFromDate = $product->load($_product->getId())->getSpecialFromDate();\n\t\t\t\t// Get the Special Price TO date\n\t\t\t\t$specialPriceToDate = $product->load($_product->getId())->getSpecialToDate();\n\t\t\t\t// Get Current date\n\t\t\t\t$today = time();\n\n\t\t\t\tif ($specialprice) {\n\n\t\t\t\t\tif ($today >= strtotime($specialPriceFromDate) && $today <= strtotime($specialPriceToDate) || $today >= strtotime($specialPriceFromDate) && is_null($specialPriceToDate)) {\n\n\t\t\t\t\t\t$specialprice = strval(round($this->convert_currency($defaultsprice, $basecurrencycode, $currentcurrencycode), 2));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$specialprice = 0;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$specialprice = 0;\n\t\t\t\t}\n\n\t\t\t\t//Code added by sumit\n\t\t\t\t if ($_product->getTypeID() == 'grouped') {\n\n\t\t\t\t\t$defaultprice = number_format($this->getGroupedProductPrice($_product->getId(), $currentcurrencycode) , 2, '.', '');\n\t\t\t\t\t$specialprice = number_format($_product->getFinalPrice(), 2, '.', '');\n\t\t\t\t }else{\n\t\t\t\t\t $defaultprice = number_format($_product->getPrice(), 2, '.', '');\n\t\t\t\t\t $specialprice = number_format($_product->getFinalPrice(), 2, '.', '');\n\t\t\t\t }\n\t\t\t\t//End sumit code\n\t\t\t\tif($defaultprice == $specialprice)\n\t\t\t\t\t$specialprice = number_format(0, 2, '.', '');\n\n\t\t\t $stock = $this->stock->getStockItem($_product->getId());\n\t\t\t $res[\"products_list\"][$i++] = array(\n\t\t\t\t\t\"id\" => $_product->getId(),\n\t\t\t\t\t\"name\" => $_product->getName(),\n\t\t\t\t\t\"image\" => $thumbnailimage,\n\t\t\t\t\t\"type\" => $_product->getTypeID(),\n\t\t\t\t\t\"price\" => number_format($this->convert_currency($defaultprice, $basecurrencycode, $currentcurrencycode), 2, '.', ''),\n\t\t\t\t\t\"special_price\" => number_format($this->convert_currency($specialprice, $basecurrencycode, $currentcurrencycode), 2, '.', ''),\n\t\t\t\t\t\"currency_symbol\" => $this->_currency->getCurrency($currentcurrencycode)->getSymbol(),\n\t\t\t\t\t\"is_stock_status\" => $stock->getIsInStock()\n\t\t\t\t);\n\t\t\t\t$res[\"status\"][0] = array(\n 'Show_Status' => \"1\"\n );\n } }\n\n }else{\n\t\t\t $res[\"status\"][0] = array(\n 'Show_Status' => \"0\"\n );\n\t\t }\n return ($res);\n\n\t}", "title": "" }, { "docid": "88568633f40b1f26a30db2d6b1571cd4", "score": "0.5075891", "text": "public static function checkVisibility($Product, $flag = true, $mode = array('Price', 'Product'))\n {\n $Product->load($Product->getId());\n $customerGroupId = self::getCustomerGroup();\n\n foreach ($mode as $mod) {\n $method = \"getAwCpDisable{$mod}\";\n $restrictedGroups = self::getRestrictedGroupForProduct($Product, $method);\n if (array_search($customerGroupId, $restrictedGroups) !== false) {\n if ($flag) {\n $Product->setData('a_wdisable_out_of_stock',true);\n return true;\n } else {\n $Product->setData('is_salable',false);\n $Product->setData('a_wdisable_out_of_stock',true);\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "4717ac60ba03c8b61b53ad48d7d10e1f", "score": "0.50638324", "text": "public static function checkBarcodes($arProducts)\n\t{\n\t\t$result = true;\n\n\t\tforeach ($arProducts as $arProduct)\n\t\t{\n\t\t\tif ($arProduct[\"BARCODE_MULTI\"] == \"Y\" && is_array($arProduct[\"STORES\"]) && !empty($arProduct[\"STORES\"]))\n\t\t\t{\n\t\t\t\tforeach ($arProduct[\"STORES\"] as $arStore)\n\t\t\t\t{\n\t\t\t\t\tif (\n\t\t\t\t\t\t\tisset($arStore[\"QUANTITY\"])\n\t\t\t\t\t\t\t&&\n\t\t\t\t\t\t\tintval($arStore[\"QUANTITY\"]) > 0\n\t\t\t\t\t\t\t&&\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t!isset($arStore[\"BARCODE\"])\n\t\t\t\t\t\t\t\t||\n\t\t\t\t\t\t\t\tcount($arStore[\"BARCODE\"]) != intval($arStore[\"QUANTITY\"])\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\t$GLOBALS[\"APPLICATION\"]->ThrowException(GetMessage(\"NEWO_ERR_STORE_NO_BARCODES\", array(\"#PRODUCT_NAME#\" => $arProduct[\"NAME\"], \"#STORE_ID#\" => $arStore[\"STORE_ID\"])).\"<br>\");\n\t\t\t\t\t\t$result = false;\n\t\t\t\t\t\tbreak 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (count($arStore[\"BARCODE\"]) != $arStore[\"QUANTITY\"])\n\t\t\t\t\t{\n\t\t\t\t\t\t$GLOBALS[\"APPLICATION\"]->ThrowException(GetMessage(\"NEWO_ERR_STORE_QUANTITY_BARCODE\", array(\"#PRODUCT_NAME#\" => $arProduct[\"NAME\"], \"#STORE_ID#\" => $arStore[\"STORE_ID\"])).\"<br>\");\n\t\t\t\t\t\t$result = false;\n\t\t\t\t\t\tbreak 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tforeach ($arStore[\"BARCODE\"] as $bValue)\n\t\t\t\t\t{\n\t\t\t\t\t\tif ($bValue == '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$GLOBALS[\"APPLICATION\"]->ThrowException(GetMessage(\"NEWO_ERR_STORE_EMPTY_BARCODES\", array(\"#PRODUCT_NAME#\" => $arProduct[\"NAME\"], \"#STORE_ID#\" => $arStore[\"STORE_ID\"], \"#BARCODE#\" => $arStore[\"BARCODE\"][$j])).\"<br>\");\n\t\t\t\t\t\t\t$result = false;\n\t\t\t\t\t\t\tbreak 3;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (!empty($arStore[\"BARCODE_FOUND\"]))\n\t\t\t\t\t{\n\t\t\t\t\t\tforeach ($arStore[\"BARCODE_FOUND\"] as $j => $bfValue)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif ($bfValue == \"N\")\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$GLOBALS[\"APPLICATION\"]->ThrowException(GetMessage(\"NEWO_ERR_STORE_BARCODES\", array(\"#PRODUCT_NAME#\" => $arProduct[\"NAME\"], \"#STORE_ID#\" => $arStore[\"STORE_ID\"], \"#BARCODE#\" => $arStore[\"BARCODE\"][$j])).\"<br>\");\n\t\t\t\t\t\t\t\t$result = false;\n\t\t\t\t\t\t\t\tbreak 3;\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\telse if ($arProduct[\"BARCODE_MULTI\"] == \"N\" && is_array($arProduct[\"STORES\"]) && !empty($arProduct[\"STORES\"]))\n\t\t\t{\n\t\t\t\t//check if store info contains all necessary fields\n\t\t\t\tforeach ($arProduct[\"STORES\"] as $arRecord)\n\t\t\t\t{\n\t\t\t\t\tif (!isset($arRecord[\"STORE_ID\"]) || intval($arRecord[\"STORE_ID\"]) < 0 || (!isset($arRecord[\"AMOUNT\"])) || intval($arRecord[\"AMOUNT\"]) < 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$GLOBALS[\"APPLICATION\"]->ThrowException(GetMessage(\"NEWO_ERR_STORE_WRONG_INFO\", array(\"#PRODUCT_NAME#\" => $arProduct[\"NAME\"])).\"<br>\");\n\t\t\t\t\t\t$result = false;\n\t\t\t\t\t\tbreak 2;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "10116cbbcc52d5ddbf161a794a613f0d", "score": "0.5056739", "text": "function get_product_types()\n {\n if (!defined('PRODUCT_PROTECT'))\n {\n define('PRODUCT_PROTECT', 1);\n }\n if (!defined('PRODUCT_HOSTED'))\n {\n define('PRODUCT_HOSTED', 2);\n }\n $types=array(0);\n //***********Functionality limitations***********\n if(Functionality_enabled('admin_product_hosted')===true)\n {\n $types[] = PRODUCT_HOSTED;\n }\n if(Functionality_enabled('admin_product_protected')===true)\n {\n $types[] = PRODUCT_PROTECT;\n }\n //*******End of functionality limitations********\n return $types;\n }", "title": "" }, { "docid": "50138106df17466b213419f8caa3b4f7", "score": "0.5054396", "text": "public function getProductStatus (Product $product = null, $changes = array())\r\n {\r\n $status = Product::FOR_COMPLETION;\r\n\r\n if ($product !== null) {\r\n $status = (int) $product->getStatus();\r\n\r\n if ($status === Product::REJECT || $status === Product::DRAFT || $status === Product::DELETE) {\r\n $status = Product::FOR_REVIEW;\r\n }\r\n else if ($status === Product::INACTIVE || $status === Product::ACTIVE) {\r\n\r\n if (sizeof($changes) > 0) {\r\n $productUnitChanges = $changes['productUnitChanges'];\r\n $hasNewProductUnit = $changes['hasNewProductUnit'];\r\n $productChanges = $changes['productChanges'];\r\n $isQuantityChanged = false;\r\n\r\n foreach ($productUnitChanges as $key => &$column) {\r\n\r\n if (isset($column['quantity'])) {\r\n unset($productUnitChanges[$key]);\r\n $isQuantityChanged = true;\r\n }\r\n\r\n }\r\n\r\n /**\r\n * If merchant only edits product ( expect quantity )\r\n */\r\n if ($hasNewProductUnit === true ||\r\n sizeof($productChanges) > 0 ||\r\n (sizeof($productUnitChanges) > 0 && $isQuantityChanged === false) ) {\r\n $status = Product::FOR_REVIEW;\r\n }\r\n /**\r\n * If quantity only\r\n */\r\n else if (sizeof($productChanges) === 0 &&\r\n (sizeof($productUnitChanges) === 0 && $isQuantityChanged === true) ) {\r\n $status = Product::ACTIVE;\r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n\r\n return $status;\r\n }", "title": "" }, { "docid": "aaebd1f546d4b6617d039711e7e697ed", "score": "0.5049169", "text": "public function product_stock_check($product_id)\n {\n\n $purchase_stocks = $this->Invoices->get_total_purchase_item($product_id);\n $total_purchase = 0;\n if (!empty($purchase_stocks)) {\n foreach ($purchase_stocks as $k => $v) {\n $total_purchase = ($total_purchase + $purchase_stocks[$k]['quantity']);\n }\n }\n $sales_stocks = $this->Invoices->get_total_sales_item($product_id);\n $total_sales = 0;\n if (!empty($sales_stocks)) {\n foreach ($sales_stocks as $k => $v) {\n $total_sales = ($total_sales + $sales_stocks[$k]['quantity']);\n }\n }\n\n $final_total = ($total_purchase - $total_sales);\n return $final_total;\n }", "title": "" }, { "docid": "4e8b0fa0f7610e55035f40bc610b50bb", "score": "0.5046781", "text": "public function checkOptionsProductIncart(){\n\n $quote \t = Mage::getModel('checkout/session')->getQuote();\n\n //pega os items do carrinho\n $cartItems = $quote->getAllItems();\n\n //verifica se o carrinho tem algum produto\n if($this->checkCartEmpty()){\n\n //lista os items\n foreach($cartItems as $item){\n\n //pega as opções personalizadas e selecionadas do produto\n $opt = $item->getProduct()->getTypeInstance(true)->getOrderOptions($item->getProduct());\n\n //verficia se o produto tem opções personalizadas\n if(is_array($opt['options'])){\n\n foreach($opt['options'] as $k => $v){\n\n //executa uma query buscando os valores da opção personalizadas através do option_id\n $collection = Mage::getResourceModel('catalog/product_option_value_collection')\n ->addFieldToFilter('option_id', $v['option_id'])\n ->getValues(Mage::app()->getStore()->getStoreId());\n\n foreach ($collection as $item){\n\n //verifica se existe a opção personalziada para prova\n if(strtolower(trim($item->getSku())) == $this->sku){\n //return $item->getSku();\n return true;\n }\n }\n\n }\n\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "c3564b591f76a14c21d5708eed62f172", "score": "0.5042173", "text": "public function available()\n {\n return $this->stock !== 0;\n }", "title": "" }, { "docid": "29466b18141f109869c61becc06350e5", "score": "0.50371855", "text": "public function isMagestoreOsc()\n {\n return (\n Mage::helper('core')->isModuleEnabled('Magestore_Onestepcheckout')\n && Mage::getStoreConfig('onestepcheckout/general/active')\n );\n }", "title": "" }, { "docid": "fbc444d4ebf415f2232cab5ddf90cef5", "score": "0.50320214", "text": "public function isCreateStock()\n {\n return $this->getCreateStock();\n }", "title": "" }, { "docid": "54ff10cd951bc8760c8f2008ec25f3cf", "score": "0.50303876", "text": "function check_inventory() {\n\t\t$contents = $this->contents ();\n\t\t\n\t\t//this array merges any products that share the same product id\n\t\t$new_contents = array ();\n\t\tforeach ( $contents as $c ) {\n\t\t\t// skip gift card products\n\t\t\tif ($c ['is_gc']) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//combine any product id's and tabulate their quantities\n\t\t\tif (array_key_exists ( $c ['id'], $new_contents )) {\n\t\t\t\t$new_contents [$c ['id']] = intval ( $new_contents [$c ['id']] ) + intval ( $c ['quantity'] );\n\t\t\t} else {\n\t\t\t\t$new_contents [$c ['id']] = $c ['quantity'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t$error = '';\n\t\t$this->CI->load->model ( 'Product_model' );\n\t\tforeach ( $new_contents as $product_id => $quantity ) {\n\t\t\t$product = $this->CI->Product_model->get_product ( $product_id );\n\t\t\t\n\t\t\t//make sure we're tracking stock for this product\n\t\t\tif (( bool ) $product->track_stock) {\n\t\t\t\tif (intval ( $quantity ) > intval ( $product->quantity )) {\n\t\t\t\t\t$error .= '<p>' . sprintf ( lang ( 'not_enough_stock' ), $product->name, $product->quantity ) . '</p>';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (! empty ( $error )) {\n\t\t\treturn $error;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "9335b04c9ee9e7c4f78fc2386edd0d56", "score": "0.5013817", "text": "public function seperateTheProductsByQuantityAvailablity() {\n if (func_num_args() > 0) {\n $productId = func_get_arg(0);\n $quantity = func_get_arg(1);\n $availablity = array();\n $i = 0;\n\n try {\n foreach ($productId as $key => $value) {\n $productQuantity = $this->select()\n ->from($this, array('stock_quantity'))\n ->where('product_id = ?', $value);\n\n $productQuantity = $this->getAdapter()->fetchRow($productQuantity);\n\n if ($productQuantity) {\n\n if ($productQuantity['stock_quantity'] >= $quantity[$key]) {\n $availablity['success'][] = $value;\n $availablity['quantity'][] = $quantity[$key];\n } else {\n $availablity['fail'][$i]['productId'] = $value;\n $availablity['fail'][$i]['stockQuantity'] = $productQuantity['stock_quantity'];\n $availablity['fail'][$i]['orderedQuantity'] = $quantity[$key];\n $i++;\n }\n } else {\n return 'Please check your product ids.';\n }\n }\n\n return $availablity;\n } catch (Exception $e) {\n throw new Exception('Error :' . $e);\n }\n } else {\n throw new Exception(\"Argument has not passed\");\n }\n }", "title": "" }, { "docid": "2e488b82901b38c60bb1f41440743776", "score": "0.50127745", "text": "public function isShowCartInfo()\n {\n return $this->scopeConfig->isSetFlag(\n 'lof_ajaxcart/success_popup/mini_cart',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }", "title": "" }, { "docid": "b6ece4d8d42375e8755348078f37342a", "score": "0.5001137", "text": "public function isShowProductPrice()\n {\n return $this->scopeConfig->isSetFlag(\n 'lof_ajaxcart/success_popup/product_price',\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }", "title": "" }, { "docid": "7960dd6ce9c7aa81d4d37a6718bd6de8", "score": "0.4990679", "text": "function in_cart_mixed_discount_quantity($products_id) {\n global $db;\n\n $product = $db->Execute(\"select products_id, products_mixed_discount_quantity from \" . TABLE_PRODUCTS . \" where products_id='\" . zen_get_prid($products_id) . \"' limit 1\");\n\n // if mixed attributes is off return qty for current attribute selection\n if ($product->fields['products_mixed_discount_quantity'] == '0') {\n return $this->get_quantity($products_id);\n }\n\n // compute total quantity regardless of attributes\n $in_cart_mixed_qty_discount_quantity = 0;\n $chk_products_id= zen_get_prid($products_id);\n\n $products = $this->customers_basket($products_id);\n\n while (!$products->EOF) {\n // $products_id = $products->fields['products_id'];\n //$test_id = zen_get_prid($products_id);\n //if ($test_id == $chk_products_id) {\n $in_cart_mixed_qty_discount_quantity += $products->fields['customers_basket_quantity'];\n //}\n $products->MoveNext();\n }\n return $in_cart_mixed_qty_discount_quantity;\n }", "title": "" }, { "docid": "3cb3c919bb3c2ec4c9e441c51d374bc2", "score": "0.49795276", "text": "function should_serve2($master_id, $productId)\n {\n $this->load->model('muserlogin_vendor_model');\n $cat_arr = $this->muserlogin_vendor_model->get_cat_arr($master_id);\n \n $found = false;\n \n foreach ($cat_arr as $cat_row) {\n if ($cat_row->catId == CATEGORY_WATER_LPG) {\n $found = in_array($productId, $cat_row->productIds);\n }\n }\n \n return $found;\n }", "title": "" } ]
48ad4114a8bfd63ded17b57170aa30bb
Create the event listener.
[ { "docid": "0ece3f6ced9db11d0c1b2888d7adec93", "score": "0.0", "text": "public function __construct()\n {\n\n }", "title": "" } ]
[ { "docid": "49108e822403f45c7a45b8050dc1fecc", "score": "0.7135839", "text": "public function createEvent()\n {\n }", "title": "" }, { "docid": "85ee054fad4099005d2b10a177dd97f9", "score": "0.64214754", "text": "public function add($listener);", "title": "" }, { "docid": "5aaba6eda895e3cf8e87266834aa08bb", "score": "0.6243721", "text": "public function createEvent() {\n $class = $this->class;\n return new $class();\n }", "title": "" }, { "docid": "cf710d524fcfd443a3fe0eacfeb6fdc4", "score": "0.6196065", "text": "private function listen()\n {\n $this->eventEmitter->on('suite.start', [$this, 'onSuiteStart']);\n }", "title": "" }, { "docid": "26aa32a430f47c184fe24b075c961fa3", "score": "0.61786586", "text": "public function on_create () {\n //Notifies host\n $this->notify_inviter();\n }", "title": "" }, { "docid": "cf512db1833dd09596b44b9c82f7b67f", "score": "0.6146822", "text": "static public function Listener($type = null) { return new Object_Listener($type); }", "title": "" }, { "docid": "6ae6763d763bd930e40a6a6b6bbe3880", "score": "0.602851", "text": "public function registerEvents()\n {\n $listeners = $this->config['event'];\n\n foreach ($listeners as $name => $listener) {\n $listener = '\\\\' . $listener;\n $this->eventManager->attach($name, new $listener);\n }\n\n return;\n }", "title": "" }, { "docid": "7b28c2e2590d768578a34f8c52b5a01b", "score": "0.6006546", "text": "function create( $args, $assoc_args ) {\n\n $support = CmdlineSupport::preCondtion();\n list( $evtType, $evtName ) = $args;\n if( !is_null( error_get_last() ) ) {\n WP_CLI::error(\"Wrong args for ... eventType, eventName\");\n exit;\n }\n\n $clubId = array_key_exists( 'clubId', $assoc_args ) ? $assoc_args[\"clubId\"] : 0;\n\n try {\n if( $clubId > 0 ) {\n $club = Club::get( $clubId );\n if( is_null( $club ) ) {\n WP_CLI::error( sprintf(\"Club with id=%d does not exist.\", $clubId ) );\n }\n\n $event = new Event( $evtName );\n error_clear_last();\n $et = EventType::AllTypes()[$evtType];\n if( !is_null( error_get_last() ) ) {\n WP_CLI::error(\"Wrong value for event type: {$evtType}\");\n exit;\n }\n\n $event->setEventType( $evtType );\n $event->addClub( $club );\n $event->save();\n WP_CLI::success(sprintf(\"Created event (%d) '%s' attached to %s'\", $event->getID(), $event->getName(), $club->getName() ) );\n }\n else {\n $event = new Event( $evtName );\n $event->setEventType( EventType::TOURNAMENT );\n $event->save();\n WP_CLI::success(sprintf(\"Created event (%d) '%s'\", $event->getID(), $event->getName() ) );\n }\n }\n catch ( Exception $ex ) {\n WP_CLI::error( sprintf( \"Create event failed: %s\", $ex->getMessage() ) );\n }\n }", "title": "" }, { "docid": "8c5d56e1b290d91c9e4982d11ad163b9", "score": "0.59942573", "text": "public function on($event, callable $listener)\n {\n }", "title": "" }, { "docid": "f2c1db1545cf50537c32f4223866d554", "score": "0.5976322", "text": "public function attachEvents()\n {}", "title": "" }, { "docid": "074e50ed23d7315a920a0f5202a62b39", "score": "0.5961788", "text": "public function registerEventListeners()\n {\n if (Config::get(\"skeleton.enable_activations\", false)) {\n foreach ($this->listen as $event => $listeners) {\n foreach ($listeners as $listener) {\n Event::listen($event, $listener);\n }\n }\n }\n }", "title": "" }, { "docid": "3fb4eadc1ad918606e62e9d4f143c08f", "score": "0.5951791", "text": "public function addListener($listener) { \n $this->listeners[]= $listener;\n }", "title": "" }, { "docid": "1cf1f1d0aff9cfde50c8e1df7b25ee12", "score": "0.5929557", "text": "public function on($eventName, $listener, $priority = 0);", "title": "" }, { "docid": "dadca8ab2c7e8639f5515e9196f530ac", "score": "0.58967644", "text": "public function test_creating() {\n $this->\n assert_class('Object.Listener', $this->specific_listener)->\n assert_class('Object.Listener', $this->common_listener);\n\n $this->set_trap();\n try {\n $this->specific_listener->append(\n new Test_Object_Listener_CommonDelegate($this->tracks, 'common2'));\n } catch (Core_InvalidArgumentTypeException $e) {\n $this->trap($e);\n }\n $this->assert_exception();\n }", "title": "" }, { "docid": "6227c78d8252c9843640fc44fd809c25", "score": "0.5889384", "text": "public function creating(callable $callback): void\n {\n $this->listeners['creating'][] = $callback;\n }", "title": "" }, { "docid": "ae72be62cb609e437b8284ea86dbd664", "score": "0.58884823", "text": "public function __construct()\r\n {\r\n $this->eventManager = new EventManager;\r\n }", "title": "" }, { "docid": "b046e9490bc6189d08faee5d38b4341b", "score": "0.5857604", "text": "public function listen($events, $listener, $priority=0);", "title": "" }, { "docid": "7e3c45eae91fa4a90902c3d709750d50", "score": "0.58382577", "text": "public function __construct()\n {\n $this->event = new Event();\n }", "title": "" }, { "docid": "4efc377ada28a0c7da00bfde77e5cd25", "score": "0.58210576", "text": "public function init()\n\t{\n\t\t$this->addListeners( array( $this, \"callback\" ) );\n\t}", "title": "" }, { "docid": "efe90b6e18db45392b383f23d3b79eca", "score": "0.5819337", "text": "public function __construct() {\n $this->events = array();\n }", "title": "" }, { "docid": "357e923f685f8906c60b8bf0e2f7c694", "score": "0.5813256", "text": "abstract public function getListener(): AbstractCreateConfigListener;", "title": "" }, { "docid": "fef9a89b2d210f8628177dcf7afabb09", "score": "0.57932764", "text": "protected function initializeEventListenerContainer()\n {\n Swift_ClassLoader::load(\"Swift_Events_ListenerMapper\");\n foreach (Swift_Events_ListenerMapper::getMap() as $interface => $method)\n {\n if (!isset($this->listeners[$interface]))\n $this->listeners[$interface] = array();\n }\n }", "title": "" }, { "docid": "acba814d4f299cb7053fea6e01afdd11", "score": "0.57716024", "text": "public function on($name, $listener, $data = null, $priority = null, $acceptedArgs = null);", "title": "" }, { "docid": "e06563dd4a3f63c026a3aec2541aa134", "score": "0.5769748", "text": "public function __construct()\n {\n $this->events = array();\n }", "title": "" }, { "docid": "c7ecea6dcdc8d9c991b49f7060de7b90", "score": "0.57389414", "text": "public static function addEventListener($event, $listenerClassName);", "title": "" }, { "docid": "2a01a42baeb702ec7a1426809432cb89", "score": "0.57319015", "text": "protected function registerListener()\n {\n $this->registerListenCommand();\n\n $this->app->singleton('custom.queue.listener', function ($app) {\n return new Listener($app->basePath());\n });\n }", "title": "" }, { "docid": "59719c29c0db4577c534f487df4e3440", "score": "0.57288826", "text": "protected function registerEventListeners()\n {\n foreach ($this->listeners as $eventName) {\n $this->app['events']->listen($eventName, [$this, 'handleEvent']);\n }\n }", "title": "" }, { "docid": "23c24dae0d03448d5d5df8eb436f255a", "score": "0.57261443", "text": "public function addRequestCreateListener($listener)\n {\n $this->client->addRequestCreateListener($listener);\n }", "title": "" }, { "docid": "2b33141990a90cf5a4d2e8ed4ec3cce3", "score": "0.5724386", "text": "protected function registerListener()\n {\n $this->app->singleton('queue.listener', function ($app) {\n return new Listener($app['path.command']);\n });\n }", "title": "" }, { "docid": "725270d82286cac8dd1a56a6287cf8ff", "score": "0.5710845", "text": "public function readEventListeners();", "title": "" }, { "docid": "d30fdff98a15251c50cfd533a6284c21", "score": "0.5700765", "text": "public function init() {\r\n\r\n // using anonymous function\r\n \\Pimcore::getEventManager()->attach(\"document.postAdd\", function ($event) {\r\n // do something\r\n $document = $event->getTarget();\r\n });\r\n\r\n // using methods\r\n \\Pimcore::getEventManager()->attach(\"document.postUpdate\", array($this, \"handleDocument\"));\r\n\r\n // for more information regarding events, please visit:\r\n // http://www.pimcore.org/wiki/display/PIMCORE/Event+API+%28EventManager%29+since+2.1.1\r\n // http://framework.zend.com/manual/1.12/de/zend.event-manager.event-manager.html\r\n // http://www.pimcore.org/wiki/pages/viewpage.action?pageId=12124202\r\n\r\n }", "title": "" }, { "docid": "1d9955174f9aeeb2758caf4181436821", "score": "0.568125", "text": "public function listenToEvents()\n\t{\n\t\t$this->swift->registerPlugin(new SwiftPluginClockworkTimeline($this->timeline));\n\t}", "title": "" }, { "docid": "b4bab5655ef70d30d0569e76612c7510", "score": "0.5677336", "text": "public function getListener(){\n\t\treturn new RudimentaryPhpTest_Listener_Console(FALSE);\n\t}", "title": "" }, { "docid": "995f1144b3122c23c80878ba590d32eb", "score": "0.56764686", "text": "public function events();", "title": "" }, { "docid": "71907b34e26190d70f40a9f33f39298e", "score": "0.56630325", "text": "public function on_start()\n {\n $this->hookEvents();\n }", "title": "" }, { "docid": "0cb6138f618212a4f5f0374ff255f85b", "score": "0.5645662", "text": "public function listen(callable $listener, ?string $eventType = null): void;", "title": "" }, { "docid": "379bebcd1c68a15b735ef6a4b414d19c", "score": "0.564031", "text": "public function listen() {\n add_action(\"init\", array($this, \"onInit\"));\n }", "title": "" }, { "docid": "e7e387618e8a0f92bffc316fe8955b10", "score": "0.56312495", "text": "function _attachEvents()\r\n {\r\n }", "title": "" }, { "docid": "2a351ae78dd2a2a38fcf19642f584869", "score": "0.562528", "text": "public function on(string $event_name, callable $callback): void {}", "title": "" }, { "docid": "2a351ae78dd2a2a38fcf19642f584869", "score": "0.562528", "text": "public function on(string $event_name, callable $callback): void {}", "title": "" }, { "docid": "2a351ae78dd2a2a38fcf19642f584869", "score": "0.562528", "text": "public function on(string $event_name, callable $callback): void {}", "title": "" }, { "docid": "d5e5c0406e29b7231ddb00ba89bb31ba", "score": "0.5622323", "text": "public function getEventManager();", "title": "" }, { "docid": "d5e5c0406e29b7231ddb00ba89bb31ba", "score": "0.5622323", "text": "public function getEventManager();", "title": "" }, { "docid": "6090aa6848d839a9f307321329f383bf", "score": "0.56087816", "text": "public function registerEventListener($listener, $predicate = null);", "title": "" }, { "docid": "6d0e6bac0c0b16db85112f90d7ffb592", "score": "0.5591595", "text": "public function created(callable $callback): void\n {\n $this->listeners['created'][] = $callback;\n }", "title": "" }, { "docid": "15c72f6394d6348104aba79d841a9a01", "score": "0.55569977", "text": "private function createListener($event, $key, array $listener) : Closure\n {\n\n $listener = $this->listener_factory->create($listener);\n\n if ($this->isDuplicate($event, $listener)) {\n\n throw new DuplicateListenerException('You cant register two identical callbacks for the same event.');\n\n }\n\n $key = $this->createKey($event, $listener, $key);\n\n return $this->listeners[$event][$key] = $listener;\n\n\n }", "title": "" }, { "docid": "83abac6dd50c3736f5238669b05448a3", "score": "0.5555631", "text": "protected function create_event($key, $options = array()) {\n $this->events[$key] = $options;\n }", "title": "" }, { "docid": "2519b6b9e8b7c4e9216a8173f335ac43", "score": "0.5534238", "text": "function __construct()\r\n\t{\r\n\t\t$this->events[\"AfterSuccessfulLogin\"]=true;\r\n\r\n\r\n\r\n\t\t$this->events[\"AfterSuccessfulRegistration\"]=true;\r\n\r\n\t\t$this->events[\"BeforeProcessRegister\"]=true;\r\n\r\n\t\t$this->events[\"BeforeProcessMenu\"]=true;\r\n\r\n\r\n//\tonscreen events\r\n\t\t$this->events[\"tb_atividade_snippet\"] = true;\r\n\t\t$this->events[\"tb_atividade_snippet1\"] = true;\r\n\t\t$this->events[\"proc_limpar_tarefas_de_lista_snippet\"] = true;\r\n\t\t$this->events[\"Dashboard_Lista_e_Tarefas_snippet1\"] = true;\r\n\t\t$this->events[\"Dashboard_Lista_e_Tarefas_snippet\"] = true;\r\n\t\t$this->events[\"Dashboard_Graficos_snippet\"] = true;\r\n\t\t$this->events[\"Dashboard_Graficos_snippet2\"] = true;\r\n\t\t$this->events[\"Dashboard_Graficos_snippet3\"] = true;\r\n\t\t$this->events[\"Dashboard_Graficos_snippet1\"] = true;\r\n\r\n\t\t$this->events[\"GetTablePermissions\"][\"tb_rotulos\"] = true;\r\n\r\n\t\t$this->events[\"IsRecordEditable\"][\"tb_atividade\"] = true;\r\n\t\t$this->events[\"IsRecordEditable\"][\"tb_lista_atividades\"] = true;\r\n\t\t$this->events[\"IsRecordEditable\"][\"tb_status_atividades\"] = true;\r\n\t\t$this->events[\"IsRecordEditable\"][\"tb_usuarios\"] = true;\r\n\t\t$this->events[\"IsRecordEditable\"][\"tb_rotulos\"] = true;\r\n\r\n\t\t}", "title": "" }, { "docid": "e6aadc77965ab932ee597281f30c4793", "score": "0.55287254", "text": "public function on($event_name, $callback_function)\n {\n }", "title": "" }, { "docid": "8fd8d74bf2ab6ec128629fdd2dcbf09f", "score": "0.5498385", "text": "function swoole_event_add($sock, $read_callback = NULL, $write_callback = NULL, $flag = NULL)\n{\n}", "title": "" }, { "docid": "c9bfaa21177d463c207256c253c4d19d", "score": "0.54847336", "text": "public function __construct(XenPlus_Listener $listener)\n\t{\n\t\t$this->_listener = $listener;\n\t\t$this->_constructSetup();\n\t}", "title": "" }, { "docid": "95b7467ea2fc0f8080e59d213e0ec90d", "score": "0.54845315", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n\t}", "title": "" }, { "docid": "ccdb3bcbaf924cb6d632ff54fe328973", "score": "0.54834753", "text": "public function __construct()\n {\n Hook::listen(__CLASS__);\n }", "title": "" }, { "docid": "ccdb3bcbaf924cb6d632ff54fe328973", "score": "0.54834753", "text": "public function __construct()\n {\n Hook::listen(__CLASS__);\n }", "title": "" }, { "docid": "7e793f0e3d6fc6dab3d8959b1031ae47", "score": "0.54770494", "text": "public function testInstantiation()\n {\n $listener = new ExceptionConverterListener();\n\n $this->assertInstanceOf('Contao\\\\CoreBundle\\\\EventListener\\\\ExceptionConverterListener', $listener);\n }", "title": "" }, { "docid": "c32ac67e889ab7bc52871fdfc4ed37b1", "score": "0.5476807", "text": "public function listenAction()\n {\n $betaListener = new BetaListener('2014-10-20');\n\n // On récupère le gestionnaire d'évènements, qui heureusement est un service !\n $dispatcher = $this->get('event_dispatcher');\n\n // On dit au gestionnaire d'exécuter la méthode onKernelResponse de notre listener\n // Lorsque l'évènement kernel.response est déclenché\n $dispatcher->addListener(\n 'kernel.response',\n array($betaListener, 'processBeta')\n );\n }", "title": "" }, { "docid": "84af4575662a0ca28755d1cd533d8af5", "score": "0.54700774", "text": "public function init() {\n\t\telgg_register_event_handler('create', 'user', OnUserCreateEvent::class);\n\t}", "title": "" }, { "docid": "3a277a7e19fb25fd26bd2280c1087bfd", "score": "0.54478115", "text": "public function connect_listener() {\n\t\t$this->ListenSocket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\t//socket_set_option($this->ListenSocket, SOL_TCP, SO_REUSEADDR, 1);\n\t\tsocket_set_option($this->ListenSocket, SOL_SOCKET, SO_REUSEADDR, 1);\n\t\t$this->Bound = socket_bind($this->ListenSocket, SOCKET_LISTEN_ADDRESS, SOCKET_LISTEN_PORT);\n\t\tsocket_listen($this->ListenSocket);\n\t\tsocket_set_nonblock($this->ListenSocket);\n\t}", "title": "" }, { "docid": "c7e66e2101c48a192a8cc47f7a2928e2", "score": "0.5429296", "text": "public function registerEventListener($eventName, $listener, $priority = 0);", "title": "" }, { "docid": "00ecc04e4f154c4ab3b5692123392187", "score": "0.5420958", "text": "public function addListener($event, $action) {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f3ce2dcf3d53288184e93457826fa537", "score": "0.5414168", "text": "public function testGetListener() {\r\n $manager = $this->_manager->on('test', function() {});\r\n $listeners = $manager->getListeners();\r\n\r\n $this->assertCount(1, $listeners);\r\n $this->assertInstanceOf('PM\\Main\\Event\\Listener\\On', current($listeners));\r\n\r\n $manager = $this->_manager->once('test', function() {});\r\n $listeners = $manager->getListeners();\r\n\r\n $this->assertCount(2, $listeners);\r\n }", "title": "" }, { "docid": "8e142d5c2de682e8b96a22f845cc0ac9", "score": "0.5408391", "text": "public function manageEvent()\n {\n }", "title": "" }, { "docid": "1628ef92c4a20730c7220afc28e41e97", "score": "0.54002655", "text": "public static function forEventListener(EventListenerInterface $listener): self\n {\n return new static(\\get_class($listener));\n }", "title": "" }, { "docid": "0166b65cf3a6fa8cc1b5e90bc6af43c3", "score": "0.5397728", "text": "protected function addEventListener( $name, $callback )\n\t{\n\t\tFramework::hooks()->addHook( $name, $callback );\n\t}", "title": "" }, { "docid": "0480bb7dc8d4ec2b40bed87652cb64ee", "score": "0.5391979", "text": "protected function registerListener()\n {\n Event::listen(ProductAfterSave::class, RelatedProductListener::class);\n }", "title": "" }, { "docid": "53cf66ab89a0897c8ab37f18e16fcf6d", "score": "0.53886163", "text": "public function on($event, $listener)\n {\n $this->addListener($event, $listener);\n }", "title": "" }, { "docid": "4fd379a0207ffb34cc9d421dfb6f4e5d", "score": "0.5357432", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeInsert\"]=true;\n\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "95134a75f33ed79a73dd047f85eec077", "score": "0.53531235", "text": "public static function events()\n {\n (new \\Antvel\\Support\\EventsRegistrar)->registrar();\n }", "title": "" }, { "docid": "6385d6f3c53c4edb1de5e2c4e61add77", "score": "0.53529996", "text": "public function __construct(callable ...$listeners)\n {\n $this->listeners = $listeners;\n }", "title": "" }, { "docid": "d366b6691161945ae69ffcfdef20df2d", "score": "0.53501874", "text": "public function addListener(string $name, callable $listener, int $priority);", "title": "" }, { "docid": "a14d1709a120a8e00e2264af10b9bc5b", "score": "0.5349377", "text": "public function start() {\n $this->GETListener();\n $this->POSTListener();\n }", "title": "" }, { "docid": "890db721c18eeda6f5baf0f995dbdf15", "score": "0.5344173", "text": "protected function listenForEvents()\n {\n $callback = function ($event) {\n foreach ($this->logWriters as $writer) {\n $writer->log($event);\n }\n };\n\n $this->laravel['events']->listen(JobProcessing::class, $callback);\n $this->laravel['events']->listen(JobProcessed::class, $callback);\n $this->laravel['events']->listen(JobFailed::class, $callback);\n }", "title": "" }, { "docid": "aa978c539cca2e0e3732822f803dd6f7", "score": "0.5337651", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\t\t$this->events[\"BeforeShowList\"]=true;\n\n\t\t$this->events[\"BeforeProcessList\"]=true;\n\n\t\t$this->events[\"BeforeMoveNextPrint\"]=true;\n\n\t\t$this->events[\"ListGetRowCount\"]=true;\n\n\t\t$this->events[\"ListQuery\"]=true;\n\n\t\t$this->events[\"ListFetchArray\"]=true;\n\n\t\t$this->events[\"BeforeProcessRowList\"]=true;\n\n\t\t$this->events[\"BeforeShowPrint\"]=true;\n\n\t\t$this->events[\"BeforeProcessRowPrint\"]=true;\n\n\t\t$this->events[\"BeforeOut\"]=true;\n\n\t\t$this->events[\"BeforeProcessSearch\"]=true;\n\n\n//\tonscreen events\n\n\t}", "title": "" }, { "docid": "531d019c84bf3fc32ccb47d6f73308e2", "score": "0.5321155", "text": "public function onEvent( $eventname, $info );", "title": "" }, { "docid": "ad27faa2a87f9119278a9876f4c6d05c", "score": "0.53144634", "text": "public function listeners($event = null)\n {\n }", "title": "" }, { "docid": "d8c4772bfc5708dee1705dc50b4a79e1", "score": "0.5313051", "text": "function __construct(AbstractTreeListener $listener);", "title": "" }, { "docid": "e2eb0f850765182857f96bd76a2297b2", "score": "0.5311644", "text": "public function on(string $event, callable $callback): void {}", "title": "" }, { "docid": "e392dc610833175eee3a3cf1a04aa20b", "score": "0.5311145", "text": "public function __construct() {\n $this->on(self::EVENT_AFTER_INSERT, [$this, 'saveRoles']);\n $this->on(self::EVENT_AFTER_UPDATE, [$this, 'saveRoles']);\n }", "title": "" }, { "docid": "fd6ce153d0ff4510a0903749ea0134a2", "score": "0.5301514", "text": "function __construct()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\t\t$this->events[\"BeforeShowEdit\"]=true;\n\n\t\t$this->events[\"AfterEdit\"]=true;\n\n\n\t}", "title": "" }, { "docid": "bc05e648bf24fada49ac754733e7c153", "score": "0.5291539", "text": "public function created(Event $event)\n {\n //\n }", "title": "" }, { "docid": "bc05e648bf24fada49ac754733e7c153", "score": "0.5291539", "text": "public function created(Event $event)\n {\n //\n }", "title": "" }, { "docid": "6674ce78fe4b32e42eacae464ebb0fa9", "score": "0.5287573", "text": "public function listen($event, $callable)\n\t{\n\t\t$this->events[$event][] = $this->buildEventListener($callable);\n\t}", "title": "" }, { "docid": "d2d7dbd0ffafadfd76cfdfc654a276a5", "score": "0.52848244", "text": "protected function installCpEventListeners(): void\n {\n // Handler: UrlManager::EVENT_REGISTER_CP_URL_RULES\n Event::on(\n UrlManager::class,\n UrlManager::EVENT_REGISTER_CP_URL_RULES,\n function (RegisterUrlRulesEvent $event) {\n Craft::debug(\n 'UrlManager::EVENT_REGISTER_CP_URL_RULES',\n __METHOD__\n );\n // Register our AdminCP routes\n $event->rules = array_merge(\n $event->rules,\n $this->customAdminCpRoutes()\n );\n }\n );\n // Handler: UserPermissions::EVENT_REGISTER_PERMISSIONS\n Event::on(\n UserPermissions::class,\n UserPermissions::EVENT_REGISTER_PERMISSIONS,\n function (RegisterUserPermissionsEvent $event) {\n Craft::debug(\n 'UserPermissions::EVENT_REGISTER_PERMISSIONS',\n __METHOD__\n );\n // Register our custom permissions\n\n $event->permissions[] = [\n 'heading' => Craft::t('help-links', 'Help Links'),\n 'permissions' => $this->customAdminCpPermissions()\n ];\n }\n );\n }", "title": "" }, { "docid": "feb5ba52ead8f77e9915258d244abd35", "score": "0.52797896", "text": "public function run()\n {\n EventType::create([\n 'name' => 'workshop',\n ]);\n\n EventType::create([\n 'name' => 'competition',\n ]);\n\n EventType::create([\n 'name' => 'interactive session',\n ]);\n }", "title": "" }, { "docid": "85fe0a225fd9782af71570153205e5da", "score": "0.52758896", "text": "public function __construct()\n\t{\n\t\tif (WHM_Core_Listener::$enabled)\n\t\t{\n\t\t\t$this->enabled = true;\n\t\t\tXenForo_CodeEvent::fire('init_application', array($this));\n\t\t}\n\t}", "title": "" }, { "docid": "c4b3c17c0fc154e5d2b66cc67ab5d6fe", "score": "0.52740335", "text": "function AddEventHandlers()\n {\n ;\n }", "title": "" }, { "docid": "6fa6c9188e10651944954d81401fa1a2", "score": "0.5267415", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeAdd\"]=true;\n\n\t\t$this->events[\"IsRecordEditable\"]=true;\n\n\t\t$this->events[\"BeforeShowAdd\"]=true;\n\n\t\t$this->events[\"BeforeShowList\"]=true;\n\n\n\t}", "title": "" }, { "docid": "b75f53cbf494e1100a66af0b2607536d", "score": "0.52665055", "text": "public function setupDefaultListeners()\n {\n // Configure Definition\n $this->getEventManager()->attach('configureDefinition', ['Florence2\\Listener\\ConfigureDefinition', 'configure'], 1000);\n \n // Configure Element\n $this->getEventManager()->attach('configureElement', ['Florence2\\Listener\\ConfigureElement', 'configure'], 1000);\n \n foreach(['Text', 'Checkbox', 'Csrf', 'Select', 'Textarea'] as $element) {\n $this->getEventManager()->attach('configureElement.Zend\\\\Form\\\\Element\\\\' . $element, ['Florence2\\Listener\\ConfigureElement' . $element, 'configure'], 1000);\n }\n \n // Configure Validator\n $this->getEventManager()->attach('configureValidator.notempty', ['Florence2\\Listener\\ConfigureValidatorNotEmpty', 'configure'], 1000);\n $this->getEventManager()->attach('configureValidator.stringlength', ['Florence2\\Listener\\ConfigureValidatorStringLength', 'configure'], 1000);\n $this->getEventManager()->attach('configureValidator.dbrecordexists', ['Florence2\\Listener\\ConfigureValidatorDBRecordExists', 'configure'], 1000);\n $this->getEventManager()->attach('configureValidator.dbnorecordexists', ['Florence2\\Listener\\ConfigureValidatorDBNoRecordExists', 'configure'], 1000);\n \n // Create Element\n $this->getEventManager()->attach('createElement.post.Zend\\\\Form\\\\Element\\Checkbox', ['Florence2\\Listener\\CreateElementCheckbox', 'post'], 1000);\n }", "title": "" }, { "docid": "42f0a1ec60c07144099504b72965d3d1", "score": "0.524656", "text": "public static function registerEvents(CreateEventDispatcherEvent $event)\n {\n // Only register the events for the backend.\n if (TL_MODE == 'FE') {\n return;\n }\n\n // Get the event dispatcher from the current event.\n $dispatcher = $event->getEventDispatcher();\n\n /*\n * Save and load callbacks.\n */\n\n// self::registerListeners(\n// array(\n//// GetEditModeButtonsEvent::NAME\n//// => array(new To(), 'addButton'),\n//// PrePersistModelEvent::NAME\n//// => array(new To(), 'submit')\n// ),\n// $dispatcher,\n// To::PRIORITY\n// );\n\n// self::registerListeners(\n// array(\n//// GetEditModeButtonsEvent::NAME\n//// => array(new From(), 'addButton'),\n//// PrePersistModelEvent::NAME\n//// => array(new From(), 'submit')\n// ),\n// $dispatcher,\n// From::PRIORITY\n// );\n\n// self::registerListeners(\n// array(\n// GetEditModeButtonsEvent::NAME\n// => array(new Database(), 'addButtonBackup'),\n// PrePersistModelEvent::NAME\n// => array(new Database(), 'submitBackup')\n// ),\n// $dispatcher,\n// Database::PRIORITY\n// );\n//\n// self::registerListeners(\n// array(\n// GetEditModeButtonsEvent::NAME\n// => array(new Database(), 'addButtonRestore'),\n// PrePersistModelEvent::NAME\n// => array(new Database(), 'submitRestore')\n// ),\n// $dispatcher,\n// Database::PRIORITY\n// );\n\n// self::registerListeners(\n// array(\n// GetEditModeButtonsEvent::NAME\n// => array(new File(), 'addButtonBackup'),\n// PrePersistModelEvent::NAME\n// => array(new File(), 'submitBackup')\n// ),\n// $dispatcher,\n// File::PRIORITY\n// );\n//\n// self::registerListeners(\n// array(\n// GetEditModeButtonsEvent::NAME\n// => array(new File(), 'addButtonRestore'),\n// PrePersistModelEvent::NAME\n// => array(new File(), 'submitRestore')\n// ),\n// $dispatcher,\n// File::PRIORITY\n// );\n\n /*\n * Data callback for widgets.\n */\n\n// self::registerListeners(\n// array(\n// GetPropertyOptionsEvent::NAME => array(new Database(), 'databaseTablesRecommended')\n// ),\n// $dispatcher\n// );\n//\n// self::registerListeners(\n// array(\n// GetPropertyOptionsEvent::NAME => array(new Database(), 'databaseTablesNoneRecommendedWithHidden')\n// ),\n// $dispatcher\n// );\n }", "title": "" }, { "docid": "a28491249640d9470f0190a68e4d2c4b", "score": "0.52442575", "text": "function __construct()\n\t{\n\t\t$this->events[\"BeforeProcessMenu\"]=true;\n\n\n\t\t$this->events[\"ModifyMenuItem\"]=true;\n\n\t\t$this->events[\"AfterSuccessfulLogin\"]=true;\n\n\n//\tonscreen events\n\n\n\n\t\t}", "title": "" }, { "docid": "b521f4d70e0af70e2964efc59b3c6ee8", "score": "0.52398324", "text": "public function labEvent()\n {\n }", "title": "" }, { "docid": "3066854da42dcf4093e364614d996c01", "score": "0.5238862", "text": "public function _construct()\n {\n $this->_init('event/event', 'event_id');\n }", "title": "" }, { "docid": "3b01a3ca32c2fd4437173f7429826bd5", "score": "0.52388495", "text": "public static function __registar_callback() {\n \n }", "title": "" }, { "docid": "48f97029003c5d84c4bc074f4a21a565", "score": "0.52352524", "text": "public static function created(callable $cb)\n {\n $env = static::formatEventName('oncreated');\n\n add_event_once($env, $cb);\n }", "title": "" }, { "docid": "a4df28a343b3a7a7b640d76d426f4e45", "score": "0.52336776", "text": "public function createEvent(array $input) \n {\n if ($this->create($input)) {\n return true; //* The event has been created.\n }\n\n return false; //! The event could not created. \n }", "title": "" }, { "docid": "fe94a0fbfa8468af74d37980fbdb6582", "score": "0.5229965", "text": "public function userEvent()\n {\n }", "title": "" }, { "docid": "fd557182822a8ff9f0a5697f0aa14d56", "score": "0.5229369", "text": "public function created(Closure $callback){\r\n $this->event->listen('translator.created', $callback);\r\n }", "title": "" }, { "docid": "812a44d7ddd47c07e30d948092f5fbd2", "score": "0.52223194", "text": "public function addEventListener($evtName, $pluginName){}", "title": "" }, { "docid": "8f4e58471dab4983f91c4169b8fb0a6a", "score": "0.52144563", "text": "public function loadEventListeners($event, EventManager $eventManager);", "title": "" }, { "docid": "2e1846a832b5291c743b712446addaab", "score": "0.52100825", "text": "static function listen() {\n Event::listen(Config::loader, function ($bundle, $file) {\n return Config::file($bundle, $file);\n });\n\n Event::listen(\\Laravel\\Lang::loader, function ($bundle, $language, $file) {\n return \\Lang::file($bundle, $language, $file);\n });\n\n Event::listen(\\Laravel\\View::loader, function ($bundle, $view) {\n return View::file($bundle, $view, \\Bundle::path($bundle).'views');\n });\n\n Event::listen('laravel.query', array(get_called_class(), 'logSQL'));\n }", "title": "" }, { "docid": "95587d29a8af95ac647366653da27dcf", "score": "0.52056134", "text": "abstract public function getListenerWithExistingFile(): AbstractCreateConfigListener;", "title": "" } ]
87edd97f94891230643f61de1df5dfb0
$kv = new SaeKV();
[ { "docid": "3796d5ad1d3ee42823dd8ba4740d2565", "score": "0.0", "text": "public function set($key, $value) {\n\t\t//$ret = $kv->init(); \n\t\t$ret =$this->KV ->set('cache.'. $_SERVER['HTTP_APPVERSION']. preg_replace('/[^A-Z0-9\\._-]/i', '', $key), serialize($value));\n\t\t/*sae cache\n \t$this->delete($key);\t\t\n\t\t$file = DIR_CACHE . 'cache.' . preg_replace('/[^A-Z0-9\\._-]/i', '', $key) . '.' . (time() + $this->expire); \t\n\t\t$handle = fopen($file, 'w');\n \tfwrite($handle, serialize($value));\t\t\n \tfclose($handle);*/\n \t}", "title": "" } ]
[ { "docid": "4b06f3575897c3d3eb331e190acea6f3", "score": "0.6049893", "text": "public function __construct($key)\n {\n $this->key = $key;\n }", "title": "" }, { "docid": "a9ca8437e62ea98441d632451dd70ffb", "score": "0.6004537", "text": "private function __construct() {\n if (file_exists(dirname(__FILE__).'/../XML/keys.xml')) {\n $keys = simplexml_load_file(dirname(__FILE__).'/../XML/keys.xml');\n foreach($keys->children() as $xmlKey)\n {\n $key = new KeyVO;\n // PRIMARYKEY\n $key->setId((int) $xmlKey->idKey);\n // FOREIGNKEYS\n $key->setIdKeychain((int) $xmlKey->idKeychain);\n $key->setIdProvider((int) $xmlKey->idProvider);\n // Parametres\n $key->setType((string) $xmlKey->type);\n array_push($this->_keys, $key);\n }\n } else {\n echo '<pre>';\n throw new RuntimeException('Echec lors de l\\'ouverture du fichier keys.xml.');\n echo '</pre>';\n exit();\n }\n }", "title": "" }, { "docid": "1049463bd5306d3365477fcf013ba844", "score": "0.5945725", "text": "public function __construct($key)\n {\n $this->_key = $key; \n }", "title": "" }, { "docid": "47a543144cae0dc46358696fec47f169", "score": "0.58870685", "text": "public function __construct()\n {\n $this->createKeyPair();\n }", "title": "" }, { "docid": "d9b8d100b9e44c17d418e56b56715024", "score": "0.5604207", "text": "static function init($key_generator)\n\t{\n\t\t// Construct engine\n\t\treturn new Engine($key_generator);\n }", "title": "" }, { "docid": "5a7177772e0056460e7693f907bd3cb7", "score": "0.5554967", "text": "public function __construct() { }", "title": "" }, { "docid": "5a7177772e0056460e7693f907bd3cb7", "score": "0.5554967", "text": "public function __construct() { }", "title": "" }, { "docid": "5a7177772e0056460e7693f907bd3cb7", "score": "0.5554967", "text": "public function __construct() { }", "title": "" }, { "docid": "5a7177772e0056460e7693f907bd3cb7", "score": "0.5554967", "text": "public function __construct() { }", "title": "" }, { "docid": "5a7177772e0056460e7693f907bd3cb7", "score": "0.5554967", "text": "public function __construct() { }", "title": "" }, { "docid": "5a7177772e0056460e7693f907bd3cb7", "score": "0.5554967", "text": "public function __construct() { }", "title": "" }, { "docid": "5a7177772e0056460e7693f907bd3cb7", "score": "0.5554967", "text": "public function __construct() { }", "title": "" }, { "docid": "31bf3b7e34d89c37c14b38898700352e", "score": "0.55388725", "text": "function __construct($key,$secret) {\n $this->key = $key;\n $this->secret = $secret;\n }", "title": "" }, { "docid": "d687663cd099b3e2f09aeb8ed9c30a64", "score": "0.55124843", "text": "function app(): Application\n{\n return Valkyrja::app();\n}", "title": "" }, { "docid": "193dd5892ebe538d9ee59505b0ede4b0", "score": "0.5489445", "text": "public function __construct(){\n $this->db = new \\Konekta();\n }", "title": "" }, { "docid": "cbc105be61cc34748d58aaca1c904983", "score": "0.5488285", "text": "public function __construct () {}", "title": "" }, { "docid": "cbc105be61cc34748d58aaca1c904983", "score": "0.5488285", "text": "public function __construct () {}", "title": "" }, { "docid": "27e69c61aa2d37edf49cca1f5598fccc", "score": "0.5480734", "text": "public function testCreateApiKeys()\n {\n\n }", "title": "" }, { "docid": "ddd187b2367be35b2af1845d0b953aa9", "score": "0.54510933", "text": "public function __construct()\n {\n self::$v2 = new TencentMusicApi();\n }", "title": "" }, { "docid": "24fbeff07dac3b51c3b78fc2b44b5e9d", "score": "0.5449119", "text": "public function __construct()\n {\n $this->kapcsolodas();\n }", "title": "" }, { "docid": "0f169a51ed1cbe7773a7e50939ad5a59", "score": "0.54433805", "text": "public function __construct($key)\n {\n // throw new Exception('failed to start car');\n }", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.5439854", "text": "public function __construct() {}", "title": "" }, { "docid": "b87707a7247da64804b834e8ce00f96b", "score": "0.542859", "text": "function __construct() {\n }", "title": "" }, { "docid": "b87707a7247da64804b834e8ce00f96b", "score": "0.542859", "text": "function __construct() {\n }", "title": "" }, { "docid": "7535729a6bb8c56b1a4b3aa92e79c198", "score": "0.5427798", "text": "function __construct() { }", "title": "" }, { "docid": "7535729a6bb8c56b1a4b3aa92e79c198", "score": "0.5427798", "text": "function __construct() { }", "title": "" }, { "docid": "d98658f6cb6004bf98806634e4c6e01a", "score": "0.5422403", "text": "public function _construct() {\n }", "title": "" }, { "docid": "dbd9f472fff0be392f7702625b56b756", "score": "0.54164547", "text": "function __construct() {\n \n }", "title": "" }, { "docid": "30f5e32da9a1b0cccd778589912256f6", "score": "0.5411062", "text": "public function __construct() { }", "title": "" }, { "docid": "8f98c5d134da95999d560bfff6844194", "score": "0.5403782", "text": "function __construct()\n {\n }", "title": "" }, { "docid": "8f98c5d134da95999d560bfff6844194", "score": "0.5403782", "text": "function __construct()\n {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "842b41de341d7d634e690467323d6474", "score": "0.54031265", "text": "public function __construct() {\n }", "title": "" }, { "docid": "0a3273d01e4d9dd7e6f5ffda578a203a", "score": "0.5390323", "text": "public function __construct()\n { }", "title": "" }, { "docid": "88044e32b8d9ddc4455791a26735887e", "score": "0.53899145", "text": "public function key()\n {\n }", "title": "" }, { "docid": "88044e32b8d9ddc4455791a26735887e", "score": "0.53899145", "text": "public function key()\n {\n }", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "a765ae9c07034d219ac8e08e31689071", "score": "0.5382994", "text": "function __construct() {\n\t}", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "936a3aada93532ee853feca9ae715299", "score": "0.537998", "text": "function __construct() {\n }", "title": "" }, { "docid": "8c1c3594449ec7c86aa2e44c78b0a9e1", "score": "0.53783417", "text": "public function __construct( private \\OOPCRE\\Foundation\\ServiceProvider $service ) {\n\t\t\t$this->key = $this->generateKey();\n\t\t}", "title": "" }, { "docid": "f6a18affb05f6ed2c3d9371339961023", "score": "0.53770417", "text": "public function __construct($key)\n\t{\n\t\t$this->key = $key;\n\t}", "title": "" }, { "docid": "b076c8437a5c4cdfa347cc7c495da90b", "score": "0.5365195", "text": "public function __construct() {\n\t\n\t}", "title": "" }, { "docid": "e545e6214b026680ec2fd1b15ad0e5d4", "score": "0.53594244", "text": "public function __construct($key) {\n\t\t$this->key = $key;\n\t}", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" }, { "docid": "d0e5c689c1d5953dcc5c3b2cb7b7d079", "score": "0.53552705", "text": "public function __construct() {\n }", "title": "" } ]
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "539b5194dd9969d656d8e71a3d642dee", "score": "0.0", "text": "public function show($id)\n {\n $seat = Seat::find($id);\n return $seat;\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "4a213f970d44ae570e7f216941006306", "score": "0.7264416", "text": "public function setting_show_resource($resource,$resourceFile)\n {\n echo $this->_template_url . '/'.$resource.'/'.$resourceFile;\n }", "title": "" }, { "docid": "fb1ffd800184a0a42701459345c41281", "score": "0.6991857", "text": "public function show(Resource $resource)\n {\n Gate::authorize('view', $resource);\n\n return $resource;\n }", "title": "" }, { "docid": "8e9fe6c0081f8ce768620060cccb65f3", "score": "0.68753964", "text": "public function show($param)\n {\n $resource = Resource::with('tags', 'likesCount', 'user', 'category')\n ->where('id', $param)\n ->orWhere('slug', $param)\n ->firstOrFail();\n\n $initialState = [\n 'resource' => $resource,\n 'currentUser' => Auth::user()\n ];\n\n return response()->view('public.resource', [\n 'appName' => 'resource',\n 'pageName' => $resource->title,\n 'initialState' => $initialState\n ]);\n }", "title": "" }, { "docid": "48b397ea8942d2fa9785a3e43388943e", "score": "0.6725769", "text": "public function show($id)\n\t{\n\t\t$resource = Resource::with('UserResourceLink')->find($id);\n\t\treturn View::make('resources.show')->with('resource', $resource);\n\t}", "title": "" }, { "docid": "2c30b4b167b469c3db298602e7ead28d", "score": "0.6711636", "text": "private function display_item($resource, $item) {\n\t\t$db = $this->db($resource);\n\t\t$item = $db->get($item);\n\n\t\tif ($item) {\n\t\t\t echo json_encode($item);\n\t\t} else {\n\t header('HTTP/1.1 404 Not Found');\n\t }\n\t}", "title": "" }, { "docid": "95bf452408be21abf4a83c19b8bbd6fb", "score": "0.667411", "text": "public function show(string $resource, $id)\n {\n return Jory::byUri($resource)->find($id);\n }", "title": "" }, { "docid": "cd76a0fc79013f2dbdd01b09770768ec", "score": "0.6580917", "text": "public function show($id)\n {\n // $resource = Resource ::find($id);\n // return view('Resource.resource')->with('resource',$resource);\n }", "title": "" }, { "docid": "39dabc4dde3ba3c708fb3782a17fde5c", "score": "0.6434556", "text": "function show( $resource ){\n $product = get( 'products', $resource );\n\n return view( 'admin/product/view_product', compact( 'product' ) );\n}", "title": "" }, { "docid": "0d9d138ae5e21142d7d77d5c45711a1c", "score": "0.6386195", "text": "public function displayAction()\r\n\t{\r\n\t\t// set filters and validators for GET input\r\n\t\t$filters = array(\r\n 'id' => array('HtmlEntities', 'StripTags', 'StringTrim')\r\n\t\t);\r\n\t\t$validators = array(\r\n 'id' => array('NotEmpty', 'Int')\r\n\t\t);\r\n\t\t$input = new Zend_Filter_Input($filters, $validators);\r\n\t\t$input->setData($this->getRequest()->getParams());\r\n\r\n\t\t// test if input is valid\r\n\t\t// retrieve requested record\r\n\t\t// attach to view\r\n\t\tif ($input->isValid()) {\r\n\t\t\t$q = Doctrine_Query::create()\r\n\t\t\t->from('Webteam_Model_Video i')\r\n\t\t\t->where('i.VideoID = ?', $input->id);\r\n\t\t\t$result = $q->fetchArray();\r\n\t\t\tif (count($result) == 1) {\r\n\t\t\t\t$this->view->item = $result[0];\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Zend_Controller_Action_Exception('Page not found', 404);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new Zend_Controller_Action_Exception('Invalid input');\r\n\t\t}\r\n\r\n\r\n\r\n\r\n\t}", "title": "" }, { "docid": "43c7d44dab00c2107caa033394e76a4e", "score": "0.6370414", "text": "public function display($spec = null)\n {\n $response = $this->fetch($spec);\n $response->display();\n }", "title": "" }, { "docid": "2c8806a4c1933c4361ab0e84ba707311", "score": "0.6274676", "text": "public function show()\n {\n $this->beginAction('show');\n $this->getResource();\n $this->applyHooks(AuthorizeResource::class);\n $this->formatResource();\n\n return $this->makeResponse();\n }", "title": "" }, { "docid": "f99807bc50ee366a325d9c40a162d254", "score": "0.62724066", "text": "public function actionGetInfoResource()\n\t{\n\t\t//die (print_r($_POST));\n\t\t$resource = Yii::app()->db->createCommand()->select('*')->from('ki_resource')\n\t\t\t\t\t\t\t\t->where('lang=:lang AND id=:id', array(':lang' => 'ru_ru', ':id' => $_POST['id']))\n\t\t\t\t\t\t\t\t->queryRow();\n\t\t\n\t\techo $this->renderPartial('_resourceInfo', array('resource' => $resource), true);\n\t}", "title": "" }, { "docid": "c8d2320b9dba46b7850ea9a25da02fad", "score": "0.61858386", "text": "public function viewResource($id)\n {\n $resource = carrierResource::where('resource_id',$id)->get();\n $carrierDetailUserID = carrierResource::where('resource_id',$id)->value('user_id');\n $carrierDetail = carrierDetail::where('user_id',$carrierDetailUserID)->get();\n return view ('resources.resourceDetails', ['resource'=>$resource, 'carrierDetail'=>$carrierDetail]);\n }", "title": "" }, { "docid": "d2e2e944df863de5f56668d68b5f0002", "score": "0.6169535", "text": "public function singleResource(Resource $resource)\n {\n if($resource->resource_status !== 'published')\n abort(404);\n $resource->increment('views');\n \n if (Auth::user()) {\n $userRourceVisit = UserRourceVisit::where('resource_id', $resource->id)->where('user_id', Auth::user()->id)->whereDate('created_at', Carbon::today())->first();\n if (blank($userRourceVisit)) {\n UserRourceVisit::create(['resource_id' => $resource->id, 'user_id' => Auth::user()->id]);\n }\n }\n\n $relatedResources = $this->resourceModel->relatedResources($resource);\n $resources = $this->resourceModel->getResourceByUserId($resource->user_id);\n\n return view('single-resource')\n ->withResource($resource)\n ->withRelated($relatedResources)\n ->withResources($resources);\n }", "title": "" }, { "docid": "f54a56f5688812ff54db4ce8c7ee9e8a", "score": "0.6088493", "text": "public function showAction($id)\n {\n $requestParameterHandler = $this->getRequestParameterHandler();\n $singleResourceRequestHandler = $this->get(self::SINGLE_RESOURCE_HANDLER);\n // TODO ADD Check if the user have authorisation before proceeding from the request.\n\n $resource = $singleResourceRequestHandler->process($id);\n\n if (null !== $resource) {\n $deleteFormView = $this->createDeleteForm(\n $requestParameterHandler\n );\n\n return $this->render(\n $requestParameterHandler->getThemePath(),\n array(\n $requestParameterHandler->getResourceViewName() => $resource,\n 'delete_form' => $deleteFormView,\n )\n );\n }\n // Add a message if the does't not exist.\n throw $this->createNotFoundException(sprintf('The %s %d %s', $requestParameterHandler->getResourceName(), $id, self::NOT_FOUND));\n }", "title": "" }, { "docid": "eb5ce2e515c2c4b1d34c71d116115e47", "score": "0.60823214", "text": "public function getResource($resource);", "title": "" }, { "docid": "ed3d20317cbecdf072f7b882feb64335", "score": "0.6073599", "text": "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('Rack 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',null,true);\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "title": "" }, { "docid": "1f19b3abcb62dd0bf36e4cc2e2e9a4b3", "score": "0.60681057", "text": "public function details($request, $response, $args) {\n $resource_id = $args['id'];\n $resource_details = $this->resource_gateway->get_resource_details($resource_id);\n\n return $this->view->render($response, 'resource/details.html.twig', [\n 'id' => $resource_id,\n 'resource_details' => $resource_details,\n ]);\n }", "title": "" }, { "docid": "c09849a3051e163c36ba622c042416dd", "score": "0.60172373", "text": "public function show($id)\n {\n $resource = $this->model::findOrFail($id);\n\n if (view()->exists($this->basicViewFolder . '.show')) {\n if (request()->ajax()) {\n return view($this->basicViewFolder . '.show', compact('resource'))->render();\n } else {\n return view($this->basicViewFolder . '.show', compact('resource'));\n }\n }\n\n return \" the view \" . $this->basicViewFolder . \".show not found\";\n }", "title": "" }, { "docid": "886db488fd45282953d62e88f2c58889", "score": "0.60164165", "text": "public function showAction($id) {\r\n\r\n $remote = $this->getDoctrine()\r\n ->getRepository('RemotePadMainBundle:Remote')\r\n ->find($id);\r\n\r\n if (!$remote) {\r\n return new Response(\"No Remote found. id: \" . $id, 404);\r\n }\r\n\r\n return $this->render('RemotePadMainBundle:Remote:show.html.twig', array('remote' => $remote));\r\n }", "title": "" }, { "docid": "df63d689055cf5765df52fd5165e28e7", "score": "0.5990083", "text": "abstract function show($identifier);", "title": "" }, { "docid": "ddc28327288006b3d29c6bdc8761ca44", "score": "0.598783", "text": "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "title": "" }, { "docid": "599b6dc077c4d34a9b3b0b168003b106", "score": "0.5974851", "text": "public function viewResource($resourceController, $id) {\n $values = self::getData($resourceController->wrapper($id));\n $function = __FUNCTION__;\n drupal_alter('restws_response', $values, $function, $this->formatName);\n\n return $this->serialize($values);\n }", "title": "" }, { "docid": "e8033cfc300396ea61f2cce5539e61f9", "score": "0.5959599", "text": "public function show() {\n\t\t$this->getOutput()->disable();\n\n\t\ttry {\n\t\t\techo $this->ampRenderer->render( $this->getArticle() );\n\t\t}\n\t\tcatch ( RevisionNotFound $e ) {\n\t\t\t$response = $this->getRequest()->response();\n\t\t\t$response->statusHeader( 302 );\n\t\t\t$response->header( 'Location: ' . $this->getTitle()->getFullURL() );\n\t\t}\n\t}", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5954321", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9f057a9bec094dea20c158d2ab8094d7", "score": "0.5936922", "text": "public function show(HrmAssetInformation $asset)\n {\n //\n }", "title": "" }, { "docid": "bb2e29f5f05ab065358c99c7225d6dc0", "score": "0.59295714", "text": "public function show(rc $rc)\n {\n //\n }", "title": "" }, { "docid": "9f2521adfd0849eebb7acbb6e94d94a0", "score": "0.592653", "text": "public function show($id) // show a single record\n {\n //\n }", "title": "" }, { "docid": "c356495b91bbab48f9b27e5a5ce7089e", "score": "0.59247625", "text": "public function display()\n {\n if (!current_user_can($this->capability)) {\n wp_die(__('You do not have sufficient permissions to access this page.', $this->textDomain));\n }\n\n $this->view->render();\n }", "title": "" }, { "docid": "151fea634645ed45ca7e8eb127afba25", "score": "0.59127665", "text": "public function show(Resource $resource)\n {\n $now = new \\DateTime('now');\n $reservations = $resource->reservationsIn($now->format('m'));\n\n\n $event_list = [];\n foreach ($reservations as $key => $reservation) {\n $event_list[] = Calendar::event(\n $reservation->user->name,\n false,\n new \\DateTime($reservation->start_time),\n new \\DateTime($reservation->end_time),\n null\n );\n }\n\n $calendar_details = Calendar::addEvents($event_list);\n\n return view('GeneralViews.ResourcesViews.Calendar.view', compact('calendar_details'));\n }", "title": "" }, { "docid": "301defef90a746cf93478d6f4bfc5091", "score": "0.5905301", "text": "public function show($id)\n {\n $model = $this->resourceModel;\n return $model::find($id);\n }", "title": "" }, { "docid": "5fbd8c8a913f3d5a4f08b109b5762881", "score": "0.59036547", "text": "public function show()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "447c87b0b6a3806d4bab38780df02aa1", "score": "0.5881883", "text": "public function displayTask($rid=null, $version=null)\n\t{\n\t\t$this->view->setLayout('display');\n\n\t\t// Incoming\n\t\tif (!$rid)\n\t\t{\n\t\t\t$rid = Request::getInt('rid', 0);\n\t\t}\n\t\tif (!$version)\n\t\t{\n\t\t\t$version = Request::getString('version', 'dev');\n\t\t}\n\n\t\t// Ensure we have an ID to work with\n\t\tif (!$rid)\n\t\t{\n\t\t\tApp::abort(500, Lang::txt('COM_TOOLS_CONTRIBUTE_NO_ID'));\n\t\t\treturn;\n\t\t}\n\t\t// Get resource information\n\t\t$resource = Entry::oneOrFail($rid);\n\n\t\t// Get version id\n\t\t$objV = new \\Components\\Tools\\Tables\\Version($this->database);\n\t\t$vid = $objV->getVersionIdFromResource($rid, $version);\n\n\t\t// Do we have a published tool?\n\t\t$this->view->published = $objV->getCurrentVersionProperty($resource->alias, 'id');\n\n\t\t// Get screenshot information for this resource\n\t\t$this->view->shots = $resource->screenshots()\n\t\t\t->whereEquals('versionid', $vid)\n\t\t\t->ordered()\n\t\t\t->rows();\n\n\t\t// Build paths\n\t\t$path = $resource->relativepath();\n\t\t$this->view->upath = PATH_APP . DS . trim($this->rconfig->get('uploadpath'), DS) . $path;\n\t\t$this->view->wpath = DS . trim($this->rconfig->get('uploadpath'), DS) . $path;\n\t\tif ($vid)\n\t\t{\n\t\t\t$this->view->upath .= DS . $vid;\n\t\t\t$this->view->wpath .= DS . $vid;\n\t\t}\n\n\t\t// Make sure wpath is preceded by app\n\t\tif (substr($this->view->wpath, 0, 4) != DS . 'app')\n\t\t{\n\t\t\t$this->view->wpath = DS . 'app' . $this->view->wpath;\n\t\t}\n\n\t\t// get config\n\t\t$this->view->cparams = Component::params('com_resources');\n\t\t$this->view->version = $version;\n\t\t$this->view->rid = $rid;\n\n\t\tforeach ($this->getErrors() as $error)\n\t\t{\n\t\t\t$this->view->setError($error);\n\t\t}\n\n\t\t// Output HTML\n\t\t$this->view->display();\n\t}", "title": "" }, { "docid": "2d9ba0bfae0a8169414d51cb94341bff", "score": "0.58672357", "text": "public function displayDoc($resource_name, $cache_id=null, $compile_id=null, $parent = null)\n {\n $this->_smarty_vars['template'] = $resource_name; // Added so that the template name would be accessible within the outputfilter\n $this->fetchDoc($resource_name, $cache_id, $compile_id, $parent);\n }", "title": "" }, { "docid": "313cd42e65f168efe8cb0ed49ea30ce1", "score": "0.58634895", "text": "public function displayAction(){\n \n // set filters and validators for GET input\n $filters = array(\n 'id' => array(\n 'HtmlEntities', \n 'StripTags', \n 'StringTrim'\n )\n );\n \n $validators = array(\n 'id' => array(\n 'NotEmpty', \n 'Int'\n )\n );\n \n // Zend_Filter_Input can validate, filter and escape input.\n // retrieve requested record\n // attach to view\n $input = new Zend_Filter_Input($filters, $validators);\n \n $input->setData($this->getRequest()\n ->getParams());\n \n if($input->isValid()) {\n \n // create service\n $service = new Catalog_Service_ItemService();\n \n $stamp_item = $service->getDisplayableItemIfNotExpired($input->id);\n \n if(isset($stamp_item)) {\n \n $this->view->stamp_item = $stamp_item; // store the StampItem in\n // the view.\n \n } else { // entity not found\n \n throw new Zend_Controller_Action_Exception('Page not found', 404);\n }\n \n } else { // not valid input\n \n throw new Zend_Controller_Action_Exception('Invalid input');\n \n } // endif\n }", "title": "" }, { "docid": "18b1a953d7b4f38d94ba36d78e007c30", "score": "0.5862241", "text": "public function display() {\n require $this->layout;\n }", "title": "" }, { "docid": "f1c47ce6af2faf1f1d79c5449022ee8c", "score": "0.58610433", "text": "public function show($id) {\n return Resource::find($id);\n }", "title": "" }, { "docid": "5dc30ed0a3c41d7bf4354e7bfd2d3260", "score": "0.58572257", "text": "protected function addResourceShow($name, $base, $controller)\n\t{\n\t\t$uri = $this->getResourceUri($name).'/{'.$base.'}';\n\n\t\treturn $this->get($uri, $this->getResourceAction($name, $controller, 'show'));\n\t}", "title": "" }, { "docid": "a57eaaa12abdbabb675c82237206d780", "score": "0.58206403", "text": "public function displayResourceUsing(string $resource, callable $displayResourceCallback)\n {\n $this->displayResourceCallback[$resource] = $displayResourceCallback;\n\n return $this;\n }", "title": "" }, { "docid": "3133b3b1b52a90fd561fc5996432c0e7", "score": "0.58170664", "text": "public function show($id)\n {\n return $this->responseItem(['title' => 'Đây là resource show ' . $id]);\n }", "title": "" }, { "docid": "1b6934d948dba93be88f01d4f4cde49a", "score": "0.58158535", "text": "public function display($context);", "title": "" }, { "docid": "935c4042b3fe02e20c14c171b86ae1d7", "score": "0.5801874", "text": "public function shouldDisplayResource($resource)\n {\n return $this->metaValue('resources.'.$resource::uriKey());\n }", "title": "" }, { "docid": "0c7f3ae23b93225868fde0e649f535aa", "score": "0.57749224", "text": "public function show(ShowResourceRequest $request, $id)\n {\n }", "title": "" }, { "docid": "b5b132820f922eef4e644b41ff67adde", "score": "0.57740575", "text": "public function show($id)\n\t{\n\t\t// unneeded for this project\n\t}", "title": "" }, { "docid": "cdbe9eb27e47a619361449d5953ad429", "score": "0.57726145", "text": "public function display()\n {\n\n $this->component->display();\n }", "title": "" }, { "docid": "fbea10219f07495b19ed6548d4ede1a4", "score": "0.5764195", "text": "public function show($id)\n\t{\n\t\t// not supported\n\t}", "title": "" }, { "docid": "cb35029e70932874ca4a7420e41f6917", "score": "0.5749518", "text": "public function discoverAction()\n {\n $this->view->title .= ' - Avaliable Resource';\n\n $data = array_values($this->_findResource());\n\n $this->view->data = $data;\n }", "title": "" }, { "docid": "7aa11579ff48f6202a3402f35980a6d7", "score": "0.574863", "text": "public function show(RestRequestInterface $request, $identifier);", "title": "" }, { "docid": "7fb606c6d980259fc7bc2be7fb3892f7", "score": "0.57364357", "text": "public function display()\n \t{\n \t\techo $this->render();\n \t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "7d55c8c31eda9d3eeb688b4417d1ce54", "score": "0.5722562", "text": "public function show($id) {\n\t\t//\n\t}", "title": "" }, { "docid": "b5e7179ea7c94add1c1af50e9f9b7fdd", "score": "0.57208323", "text": "public function show($id)\n\t{\n\t\n\t}", "title": "" }, { "docid": "7b33ab8280dac7d9e7f301bb46885ef2", "score": "0.57203656", "text": "public function display($action, $status);", "title": "" }, { "docid": "7eca9a150b08650a78b0cbe2467767e8", "score": "0.5714993", "text": "public function show()\n {\n return view('redistask::show');\n }", "title": "" }, { "docid": "a4bb0929797f59b1f372c0ea97423933", "score": "0.5714916", "text": "public function show()\n {\n $product = $this->model('IndexModel')->get($this->getParam()['id']);\n\n $this->template('show', $product);\n }", "title": "" }, { "docid": "91b6c2566d39e03a0eef7bad0aebcd5a", "score": "0.5707991", "text": "public function detailsAction()\n {\n // Get id from url params and check if record exist\n $params = $this->router->getParams();\n if (isset($params[0]) && $device = Devices::findFirst($params[0])) {\n $this->tag->setTitle(__('Devices') . ' / ' . __('Details'));\n $this->view->setVars([\n 'device' => $device,\n ]);\n } else {\n parent::notFoundAction();\n }\n }", "title": "" }, { "docid": "05ca915e5f597f0a1925a6b1a1e6afb0", "score": "0.57057405", "text": "public abstract function display();", "title": "" }, { "docid": "95c8e483ffde08b500f0a18be5d683d2", "score": "0.5704582", "text": "public function display() {\n\t$this->getRenderer()->dispatch($this);\n\n }", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "12bf7179b06b190879842d1f1945365c", "score": "0.57026845", "text": "public function show( $id ) {\n\t\t//\n\t}", "title": "" }, { "docid": "d49f4e51972ac93263ce45277638f862", "score": "0.56985086", "text": "public function show($id) {\n\t\t\t\n\t}", "title": "" }, { "docid": "7b283ba1c0546a155efc95a44dd0f9cf", "score": "0.56981397", "text": "public function show(Response $response)\n {\n //\n }", "title": "" }, { "docid": "2204f8d554d9525d60e0aba235700bfd", "score": "0.56858474", "text": "public function locate($resource);", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "cb37955e47b2d1c708a039b4bfa190e0", "score": "0.5684962", "text": "public function show($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
22cbbbc436d4a23594d54da4717624b3
set & get param
[ { "docid": "26d6288f0d775aaece9768bd88d68a6a", "score": "0.0", "text": "function get_redirect_url()\n{\n\treturn $this->_redirect_url ;\n}", "title": "" } ]
[ { "docid": "3a3eb42eb2c9c2bd5bf49b6750d9de44", "score": "0.7401559", "text": "function set_get_parameter($param, $value) {\n\n $get_value = \\M\\Config::get('GET');\n $get_value[$param] = $value;\n\n \\M\\Config::set('GET', $get_value);\n}", "title": "" }, { "docid": "8b37d5d80a35e4b6886ae1e652ee09a9", "score": "0.7071411", "text": "function setParameter($name, $value);", "title": "" }, { "docid": "4319c6ea1cb6a0f56786ac6a05830ce0", "score": "0.70685875", "text": "public function set($param, $value);", "title": "" }, { "docid": "c17f8068ab6564a23a51da8b0606a845", "score": "0.7044722", "text": "public function param();", "title": "" }, { "docid": "b5ce63a5f186981f940dfaa260a2fdb4", "score": "0.7043309", "text": "public function setParam($key,$value){ \n\n $this->params[$key] = $value; \n\n }", "title": "" }, { "docid": "edc458b320b7f6fb34783da83e664e33", "score": "0.70331204", "text": "public function setParam($param, $value);", "title": "" }, { "docid": "edc458b320b7f6fb34783da83e664e33", "score": "0.70331204", "text": "public function setParam($param, $value);", "title": "" }, { "docid": "5e19e7e1d2dee3a35729b844148baee4", "score": "0.7025656", "text": "protected function set_params() {}", "title": "" }, { "docid": "915c9370dc46261bd68a344a72069577", "score": "0.68693537", "text": "public function set($params) {}", "title": "" }, { "docid": "54a43150a81ec66e4da703e15e4b3f22", "score": "0.6749949", "text": "public function getParameter()/*# : Parameter */;", "title": "" }, { "docid": "c5c1236a24856693252660fe9b9db5fd", "score": "0.6705983", "text": "function setParam($nameOrPosition, $value);", "title": "" }, { "docid": "3c52e6528acc34a2a1987f6957a0872f", "score": "0.6695926", "text": "abstract protected function setParameter($key, $value);", "title": "" }, { "docid": "eb75e2bbe1f9031435458b7246045d61", "score": "0.667466", "text": "function Set_Getvar_val()\n {\n $this->getvar_val = (int)$_GET[$this->getvar];\n if($this->getvar_val<1)\n {\n $this->getvar_val = 1;\n }\n }", "title": "" }, { "docid": "5cd2cf03da7177e1b47185d9597d8621", "score": "0.6672792", "text": "public function setParameter($name, $value);", "title": "" }, { "docid": "cdb9d33206b2b4b4ce8e2950a3a2b378", "score": "0.6631173", "text": "public function getParam($param);", "title": "" }, { "docid": "56f6b7e784ce7b0f9b25520bba5a8e0c", "score": "0.6614907", "text": "public function setEnableViaGetParam() {\n\t\tif (t3lib_div::_GET(self::GETPARAM_KEY)) {\n\t\t\t$this->enable = true;\n\t\t}\n\t}", "title": "" }, { "docid": "146b990a1748a488103cdb9cfad980d7", "score": "0.65657216", "text": "public function setParam($name, $value)\n {\n }", "title": "" }, { "docid": "94da8e45c3154a0f218c31b0fec61458", "score": "0.65373456", "text": "function set($type, $set, $default = \"\"){\n\n\t\tif($type == \"GET\"){\n\t\t\tif(isset($_GET[$set])){\n\t\t\t\t$set_val = $_GET[$set];\n\t\t\t} else {\n\t\t\t\t$set_val = $default;\n\t\t\t}\n\t\t} elseif ($type == \"POST\"){\n\t\t\tif(isset($_POST[$set])){\n\t\t\t\t$set_val = $_POST[$set];\n\t\t\t} else {\n\t\t\t\t$set_val = $default;\n\t\t\t}\n\t\t}\n\n\t\treturn $set_val;\n\t\t\n\t}", "title": "" }, { "docid": "4fa3710b85404e81ae67158135d50d21", "score": "0.653158", "text": "public function set($parameter, $value);", "title": "" }, { "docid": "ba42bd407c4fd2f959f10550f06e2290", "score": "0.65102655", "text": "public function __set($name, $value){\n $this->params[$name] = $value;\n }", "title": "" }, { "docid": "aeb791b7ecfa32d2817fab717d2e2b8d", "score": "0.65095943", "text": "function setParam($var, $val) {\n\t\t\t$this->obj[$var] = $val;\n\t\t}", "title": "" }, { "docid": "e313ad1ebfbd850e601c59a50d3a572b", "score": "0.64550066", "text": "public function setParam($name, $value) {\n\t\t$this->payload['params'][$name] = Trustly_Data::ensureUTF8($value);\n\t\treturn $value;\n\t}", "title": "" }, { "docid": "5d5f7dd3d415a3997b42d1b01a8ce565", "score": "0.6454826", "text": "protected function set_param( $name, $value ) {\r\n $this->_request_data[ $name ] = $value;\r\n }", "title": "" }, { "docid": "bf348b3bfdb97182464f72bc8f20ecd0", "score": "0.6421554", "text": "public function setParam($name, $type, $value);", "title": "" }, { "docid": "30800dfca813a4433cd63302792bdc40", "score": "0.64076585", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "30800dfca813a4433cd63302792bdc40", "score": "0.64076585", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "30800dfca813a4433cd63302792bdc40", "score": "0.64076585", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "105008ef7aceacaba26bb54a3acf7e8a", "score": "0.6407407", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $data_source;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($data_source)) {\r\n $this->data_source=$data_source;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "105008ef7aceacaba26bb54a3acf7e8a", "score": "0.6407407", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $data_source;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($data_source)) {\r\n $this->data_source=$data_source;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.6399706", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.6399706", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "11143a54d33c3d04df7bf1f86f4e37d7", "score": "0.6399706", "text": "function getParams() {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "4ab05837c9ede6b1a40d64a4b2c6325e", "score": "0.639534", "text": "function getParameter($name);", "title": "" }, { "docid": "c4fd132cdd7cf496396a2270ee2049eb", "score": "0.6393675", "text": "function setParametros($params){\n\t\t$this->parametros = $params;\n\t}", "title": "" }, { "docid": "2ae3ca6e41e5896ac3d02e2678549cef", "score": "0.6392842", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "2ae3ca6e41e5896ac3d02e2678549cef", "score": "0.6392842", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "2ae3ca6e41e5896ac3d02e2678549cef", "score": "0.6392842", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "2ae3ca6e41e5896ac3d02e2678549cef", "score": "0.6392842", "text": "function getParams() {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id=$id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode=$mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode=$view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode=$edit_mode;\r\n }\r\n if (isset($tab)) {\r\n $this->tab=$tab;\r\n }\r\n}", "title": "" }, { "docid": "8297e6063b9edee7dfded87667b8647c", "score": "0.6391208", "text": "function setParam ( $key, $value ) {\n\t\t$this->cache[ 'params' ][ $key ] = $value;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "3ca17f842b77108c6f4f4081b7e582c9", "score": "0.63697845", "text": "public function setParam($name, $val) {\n $this->params[$name]= $val;\n }", "title": "" }, { "docid": "6ce95bf4bb59b5b1f163e748d6e3c954", "score": "0.6368766", "text": "abstract protected function getParameter($key);", "title": "" }, { "docid": "a23d5ddc781c2167bf3da1c0ebd24c6e", "score": "0.6365508", "text": "public function __get($param)\r\n {\r\n return $this->param($param);\r\n }", "title": "" }, { "docid": "69bec3a603ee5667ad848c0c37102766", "score": "0.6364558", "text": "function getParams() {\n\tglobal $id;\n\tglobal $mode;\n\tglobal $view_mode;\n\tglobal $edit_mode;\n\tglobal $data_source;\n\tglobal $tab;\n\tif (isset($id)) {\n\t\t$this->id=$id;\n\t}\n\tif (isset($mode)) {\n\t\t$this->mode=$mode;\n\t}\n\tif (isset($view_mode)) {\n\t\t$this->view_mode=$view_mode;\n\t}\n\tif (isset($edit_mode)) {\n\t\t$this->edit_mode=$edit_mode;\n\t}\n\tif (isset($data_source)) {\n\t\t$this->data_source=$data_source;\n\t}\n\tif (isset($tab)) {\n\t\t$this->tab=$tab;\n\t}\n}", "title": "" }, { "docid": "ed2a41dda7acff9c4e684327f4ee7d4c", "score": "0.6356383", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "ed2a41dda7acff9c4e684327f4ee7d4c", "score": "0.6356383", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "ed2a41dda7acff9c4e684327f4ee7d4c", "score": "0.6356383", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "a9d63e44deea15fd96b2e65693249340", "score": "0.6353535", "text": "public function set_param($key, $value)\n {\n }", "title": "" }, { "docid": "b4648794014edcd381b1795d7e82537d", "score": "0.63478005", "text": "function getParams() {\n global $id;\n global $idp;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $data_source;\n global $tab;\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($idp)) {\n $this->idp = $idp;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($data_source)) {\n $this->data_source=$data_source;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n}", "title": "" }, { "docid": "30a93fd65210f218cac03b966ab9a088", "score": "0.6344016", "text": "private function fetchParameter()\r\n\t{\r\n\t\t//@TODO schlundus, move fetch inside the parameterInfo class\r\n\t\t$parameterSource = $this->parameterInfo->source;\r\n\t\t$parameterName = $this->parameterInfo->name;\r\n\t\t\r\n\t\t$src = null;\r\n\t\tswitch($parameterSource)\r\n\t\t{\r\n\t\t\tcase \"POST\":\r\n\t\t\t\t$src = $_POST;\r\n\t\t\t\tbreak;\r\n\t\r\n\t\t\tcase \"GET\":\r\n\t\t\t\t$src = $_GET;\r\n\t\t\t\tbreak;\r\n\t\r\n\t\t\tcase \"REQUEST\":\r\n\t\t\t\t$src = $_REQUEST;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\r\n\t\t$value = null;\r\n\t\t$fetched = false;\r\n\t\tif ($src)\r\n\t\t{\t\r\n\t\t\tif (isset($src[$parameterName]))\r\n\t\t\t{\r\n\t\t\t\t$value = $src[$parameterName];\r\n\t\t\t\t$fetched = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$this->bFetched = $fetched;\r\n\t\t$this->taintValue = $value;\r\n\t}", "title": "" }, { "docid": "5e9ee18df9ce69c09c0e247686df3a2f", "score": "0.6343225", "text": "function getParams()\n {\n global $id;\n global $mode;\n global $data_source;\n global $view_mode;\n global $edit_mode;\n global $tab;\n if (isset($id)) {\n $this->id = $id;\n }\n if (isset($mode)) {\n $this->mode = $mode;\n }\n if (isset($data_source)) {\n $this->data_source = $data_source;\n }\n if (isset($view_mode)) {\n $this->view_mode = $view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode = $edit_mode;\n }\n if (isset($tab)) {\n $this->tab = $tab;\n }\n }", "title": "" }, { "docid": "06f1a66a0524afd6cbc96d99b1b5d3f6", "score": "0.63285244", "text": "function getParams()\r\n {\r\n global $id;\r\n global $mode;\r\n global $view_mode;\r\n global $edit_mode;\r\n global $data_source;\r\n global $tab;\r\n if (isset($id)) {\r\n $this->id = $id;\r\n }\r\n if (isset($mode)) {\r\n $this->mode = $mode;\r\n }\r\n if (isset($view_mode)) {\r\n $this->view_mode = $view_mode;\r\n }\r\n if (isset($edit_mode)) {\r\n $this->edit_mode = $edit_mode;\r\n }\r\n if (isset($data_source)) {\r\n $this->data_source = $data_source;\r\n }\r\n if (isset($tab)) {\r\n $this->tab = $tab;\r\n }\r\n }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "c2bd0463b2cfa2c59aa25d2b7271066b", "score": "0.6307795", "text": "public function __set($var, $value) { $this->{$this->_parameterMap[$var]} = $value; }", "title": "" }, { "docid": "0921773269fe72e57c4b4bade836469c", "score": "0.6273258", "text": "public function __set($param, $value)\r\n {\r\n $this->params_named->set($param, $value);\r\n }", "title": "" }, { "docid": "f097cd60c5008a546f2def5a9780a4d0", "score": "0.6254639", "text": "function getParams() {\n global $id;\n global $file;\n global $teg;\n global $mode;\n global $view_mode;\n global $edit_mode;\n global $tab;\n\n\n if (isset($id)) {\n $this->id=$id;\n }\n if (isset($mode)) {\n $this->mode=$mode;\n }\n if (isset($view_mode)) {\n $this->view_mode=$view_mode;\n }\n if (isset($edit_mode)) {\n $this->edit_mode=$edit_mode;\n }\n if (isset($tab)) {\n $this->tab=$tab;\n }\n\n}", "title": "" }, { "docid": "dd411aef75ea93f33c8244b92ba51449", "score": "0.6224775", "text": "private function setGetParameters() {\n\t\tforeach(array_keys($_GET) as $currentKey) {\n\t\t\t$this->getArray[$currentKey] = $_GET[$currentKey];\n\t\t}\n\t}", "title": "" }, { "docid": "f61d9c7bb40646902fffd31f96f4164a", "score": "0.62104857", "text": "private function _setParams ()\n {\n $endpoint = $this->_endpoint->getData();\n if (count($endpoint) > 0) {\n \n $method = $this->_endpoint->getUrl();\n $methodname = 'setParameter' . ucfirst($method['method']);\n \n foreach ($endpoint as $param => $value) {\n $this->_httpclient->{$methodname}($param, $value);\n }\n }\n }", "title": "" }, { "docid": "cf933a5a715c8f9245b025a3200deebe", "score": "0.6208264", "text": "public static function setParam($var, $value)\n {\n self::$get_params[$var] = $value;\n }", "title": "" }, { "docid": "181c32ecdd18720e175ebc4a172fa44c", "score": "0.619667", "text": "public function set() {\n\n\t\tself::$instance = $this;\n\t\t$this->base \t= OMAPI::get_instance();\n\t\t$this->view = isset( $_GET['optin_monster_api_view'] ) ? stripslashes( $_GET['optin_monster_api_view'] ) : $this->base->get_view();\n\t\t$this->optin = isset( $_GET['optin_monster_api_id'] ) ? $this->base->get_optin( absint( $_GET['optin_monster_api_id'] ) ) : false;\n\n\t}", "title": "" }, { "docid": "8bb29fdef32de2e360f9640816bb9e29", "score": "0.61731684", "text": "protected abstract function getParam($param, $default = false);", "title": "" }, { "docid": "5f4fe23f78645dafaffe5a0666e3bb61", "score": "0.6170803", "text": "public function set( $name, $value )\n\t{\n\t\t$this->_params[$name] = $value;\n\t}", "title": "" }, { "docid": "c810d09f77cb339eb58d399d26201d0d", "score": "0.61659026", "text": "protected function setupGetVars() {\n\t\tforeach ($_GET as $key => $val) {\n\t\t\t$this->$key = $val;\n\t\t}\n\t}", "title": "" }, { "docid": "594fab87a70c56d56d74b3a238aecb51", "score": "0.61557364", "text": "public function setLiveProperty($get){\n\t\t$this->redirect($this->getRequest()->getDomain().'metadata/setLiveProperty?page_id='.$this->getRequestParameter('page_id').'&assetclass_id='.$this->getRequestParameter('assetclass_id'));\n\t}", "title": "" }, { "docid": "6810b8fff6de8215d77423b63c179817", "score": "0.6152538", "text": "private function _setParams ()\n {\n $endpoint = $this->_endpoint->getData();\n if (count($endpoint) > 0) {\n \n $method = $this->_endpoint->getUrl();\n $methodname = 'setParameter' . ucfirst($method['method']);\n \n $this->_httpclient->{$methodname}('access_token', \n $this->_accesstoken);\n $this->_httpclient->{$methodname}('api_secret', $this->_apisecret);\n \n foreach ($endpoint as $param => $value) {\n $this->_httpclient->{$methodname}($param, $value);\n }\n }\n }", "title": "" }, { "docid": "30d365e1c24065018fe5a287c76d07c6", "score": "0.61508226", "text": "public function varivelGET()\n\t{\n\t\t$jinput = JFactory::getApplication()->input;\n\t\t$foo = $jinput->get('varname', 'default_value', 'filter');\n\t}", "title": "" }, { "docid": "bde8e9d9fdaa1e957505406670a6519b", "score": "0.61389506", "text": "public function get_param($key)\n {\n }", "title": "" }, { "docid": "56de6dbbefd791ac1f051d9810fce34c", "score": "0.6137157", "text": "private static function setParams(&$param)\n {\n $fn = __FUNCTION__;\n\n //FORZATURA Nel caso in cui non sia specificato il tipo, ma viene specificato il nome si trasforma in specific\n if( !isset($param['type']) && isset($param['name']) && !empty($param['name']) )\n {\n $param['type'] = 'specific';\n }\n\n $param = [\n 'type' => $param['type'] ?? 'generic',\n 'name' => $param['name'] ?? null,\n 'expire' => $param['expire'] ?? self::$session_expire,\n 'extend' => $param['extend'] ?? self::$session_time_extend,\n 'destroy' => $param['destroy'] ?? false,\n ];\n \n return $param;\n }", "title": "" }, { "docid": "c083836b0c449f5aec151f4f01f3d420", "score": "0.6126509", "text": "public function getParameter(): string;", "title": "" }, { "docid": "fedd28c39a6929c83ee2bc90cd1cc806", "score": "0.6108065", "text": "function param($existing_value = NULL, $name = NULL)\n\t{\n\t\tif(isset($existing_value))\n\t\t{\n\t\t\treturn $existing_value;\n\t\t}\n\t\t\n\t\tif(isset($name))\n\t\t{\n\t\t\t$input = Input::instance();\n\t\t\n\t\t\treturn $input->get($name);\n\t\t}\n\t\telse if(preg_match(\"/[\\&\\=]/\", $_SERVER['QUERY_STRING'])<=0)\n\t\t{\n\t\t\treturn $_SERVER['QUERY_STRING'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn NULL;\n\t\t}\n\t}", "title": "" }, { "docid": "b33ba435225b7c5abc976e0d4816df8d", "score": "0.6107084", "text": "protected function setGetData()\n\t{\n\t\t$this->request->addParams($this->query->getParams());\n\t}", "title": "" }, { "docid": "f780205434da00843391896dfba9c281", "score": "0.6105935", "text": "public function testGetAndSetParam(): void\n {\n $event = new NamedEvent('foo');\n\n $this->assertNull($event->getParam('foo'));\n $this->assertFalse($event->getParam('foo', false));\n\n $event->setParam('test', 123);\n $event->setParam('hello', true);\n\n $this->assertSame(123, $event->getParam('test'));\n $this->assertTrue($event->getParam('hello'));\n }", "title": "" }, { "docid": "540a59e2612ede598a80c2a6b015293c", "score": "0.6099393", "text": "function param($name)\n{\n static $dbParams;\n if(isset(Yii::app()->params[$name]))\n return Yii::app()->params[$name];\n\telse\n return \"\"; \n}", "title": "" }, { "docid": "51a2d822eca41ec093191867fe9f4b06", "score": "0.60915667", "text": "public function setParam($name, $value)\n\t{\n\t\treturn $this->_tpl->params->set($name, $value);\n\t}", "title": "" }, { "docid": "b32a8a3aeb6067b9bb73dfa187641fa0", "score": "0.6087056", "text": "public function setParams($params);", "title": "" }, { "docid": "b32a8a3aeb6067b9bb73dfa187641fa0", "score": "0.6087056", "text": "public function setParams($params);", "title": "" }, { "docid": "57a8c4d5a0cbc7a675d1f91e320eb92f", "score": "0.60514355", "text": "public function __get($name){\n return $this->params[$name];\n }", "title": "" }, { "docid": "1c66a9e444133dfab3d66b98fd37685c", "score": "0.6047026", "text": "public function set( $name, $value )\n\t{\n\t\t$this->params[ $name ] = $value;\n\t\tif( $value === null ) unset( $this->params[ $name ] );\n\t\t\n\t\t$this->modified = true;\n\t}", "title": "" }, { "docid": "cd50c4902a9cd66604bd23d02e92a5d5", "score": "0.6034697", "text": "function set_params($params)\r\n\t{\r\n\t\t$this->parameters = $params;\r\n\t}", "title": "" }, { "docid": "319593ffe0525fd2aaa6fd7334f2da80", "score": "0.6033849", "text": "public function set($parameter, $value = null);", "title": "" }, { "docid": "64e21c334775f20fc799455ed10b1002", "score": "0.6020364", "text": "private function loadGetParams()\n {\n if(isset($_GET)) {\n $this->getParams = $_GET;\n }\n }", "title": "" }, { "docid": "de457302aa73fa963019a2c45ac28569", "score": "0.60158503", "text": "public function getParam($param, $filters=null);", "title": "" }, { "docid": "010b602efb120dde11d131459aff74de", "score": "0.60139745", "text": "private function set_param($param_aray = array()){\r\n\t\t\r\n\t\tforeach($param_aray as $var=>$val){\r\n\r\n\t\t\t$this->$var = $val;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "0f412ba6d344ab8a9523af9252edb566", "score": "0.60070544", "text": "private static function set($key)\n {\n return (isset($_GET[$key]) && !empty($_GET[$key])) ? $_GET[$key]: null; \n }", "title": "" }, { "docid": "b135bf2ed1dc3bdc9b9846b535635370", "score": "0.6000009", "text": "public function getParam($name);", "title": "" }, { "docid": "61aabfafcaa626fe30055e0ab1a642e8", "score": "0.5998706", "text": "public function set($param, $value) {\n $this->mParams[$param]['value'] = $value;\n }", "title": "" }, { "docid": "a2bb4d165ae3b38a3e5a6c53d8d083cc", "score": "0.59978926", "text": "public function getParam($key);", "title": "" }, { "docid": "0f526510d18200db97d7194b581e4086", "score": "0.59883845", "text": "function setParam()\n {\n $this->rFromDate = '0000-00-00';\n $this->rToDate = date('Y-m-d');\n $this->rAllDate = false;\n $this->rColumns = array();\n }", "title": "" }, { "docid": "b4abc37c9133c3b35092cc06295d2a49", "score": "0.59878075", "text": "public function __set($param, $value)\n\t{\n\t\tswitch($param)\n\t\t{\n\t\t\tcase 'type':\n\t\t\t\tif(in_array($type, array('data', 'xref') ) )\n\t\t\t\t\t$this->type = $type;\n\t\t\t\tbreak;\n\t\t\tcase 'caption':\n\t\t\tcase 'class':\n\t\t\tcase 'id':\n\t\t\tcase 'xref_x':\n\t\t\t\tif(is_string($value))\n\t\t\t\t\t$this->$param = $value;\n\t\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "a4a83af30e20fbb11f8303da92f0488d", "score": "0.5957879", "text": "public function setDefaultParam($name, $value);", "title": "" }, { "docid": "36e2c6d5cc165b0a5b33b5dfea8d0f1c", "score": "0.594829", "text": "public function setParameter ($namespace, $name, $value) {}", "title": "" }, { "docid": "d576e1915e398a1e40eb447498111f78", "score": "0.59459925", "text": "public function __set($param, $value)\n\t{\n\t\tswitch($param)\n\t\t{\n\t\t\tcase 'width':\n\t\t\tcase 'height':\n\t\t\tcase 'font_size':\n\t\t\tcase 'line_height':\n\t\t\t\tif(intval($value) )\n\t\t\t\t\t$this->$param = intval($value);\n\t\t\t\tbreak;\n\t\t\tcase 'format':\n\t\t\t\tif(in_array($value, array('jpg', 'jpeg') ) )\n\t\t\t\t{\n\t\t\t\t\t$this->format = 'jpg';\n\t\t\t\t\t$this->mime = 'images/jpeg';\n\t\t\t\t}\n\t\t\t\tif(in_array($value, array('png', 'gif') ) )\n\t\t\t\t{\n\t\t\t\t\t$this->format = $value;\n\t\t\t\t\t$this->mime = \"image/$value\";\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'font':\n\t\t\t\t// you can only use OTF fonts if it contains TTF outlines, otherwise the font may not work at all with GD\n\t\t\t\tif(file_exists($value) && preg_match('/(\\.[to]tf)$/', $value) )\n\t\t\t\t\t$this->font = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'foreground':\n\t\t\t\tif(preg_match('/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/', $value, $matches))\n\t\t\t\t\t$this->$param = $this->add_colour($matches[1]);\n\t\t\t\tbreak;\n\t\t\tcase 'auto_rotate':\n\t\t\t\tif(is_bool($value))\n\t\t\t\t\t$this->$param = $value;\n\t\t\t\tbreak;\n\t\t}//end switch\n\t}", "title": "" }, { "docid": "48bc6b1a65df7ecdafd36749bf47b983", "score": "0.59451395", "text": "function get();", "title": "" }, { "docid": "bd89af9cb63e1af8dafef05461eec5ac", "score": "0.594401", "text": "public function setParameter($param, $value)\n {\n $this->param[$param] = $value;\n }", "title": "" }, { "docid": "25f2cbb2ff4fa45e93f233d707cf945a", "score": "0.59373474", "text": "public function setParamToView($key, $value);", "title": "" } ]
e66b23fd6e4c701879acdea2a8e8585a
Create request for operation 'createLevel'
[ { "docid": "f1031c9eb8bcef9a2f0c01507abdd998", "score": "0.7546805", "text": "protected function createLevelRequest($level = null)\n {\n\n $resourcePath = '/leveling';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n if (isset($level)) {\n $_tempBody = $level;\n }\n\n if ($multipart) {\n $headers= $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n $httpBody = new MultipartStream($multipartContents); // for HTTP post (form)\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams); // for HTTP post (form)\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n $url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n return new Request(\n 'POST',\n $url,\n $headers,\n $httpBody\n );\n }", "title": "" } ]
[ { "docid": "ad5f6f9c49041d1766c0cd60c050a8d9", "score": "0.6872544", "text": "public function store(CreatelevelRequest $request)\n {\n $input = $request->all();\n $level = $this->levelRepository->create($input);\n Flash::success(trans('level.saved'));\n return redirect(route('levels.index'));\n }", "title": "" }, { "docid": "cb831304f8adf4c643d8f7d8f62849f1", "score": "0.6649713", "text": "public function create()\n {\n $level = ilc_level::all();\n return response()->view(['success' => true, 'obj' => $level]);\n }", "title": "" }, { "docid": "c4ec41f3282bf6dc6857a8b182973f2d", "score": "0.6608094", "text": "function saveLevel()\n {\n $input = Input::except('_token');\n $input['status'] = val($input, 'status') ? '1' :'0';\n\n $status = $this->_saveData( new Level(), [ \n //VALIDATOR\n \"name\" => \"required|unique:level\". ($input['id'] ? \",name,\".$input['id'] : '')\n ], $input);\n \n return Response()->json([ \n 'status' => $status, \n 'message'=> $this->_buildNotification(true),\n 'form' => $status ? base64_encode($this->buildFormLevel()) : null\n ]);\n }", "title": "" }, { "docid": "77fac4d87ed4a1e388e1a8d9721cecb5", "score": "0.6564851", "text": "public function create()\n {\n\n\n return view('level.create');\n }", "title": "" }, { "docid": "6e2d47ad7b8d29bde467029016b70961", "score": "0.65633255", "text": "public function create()\n\t{\n\t\t\n\t\t$level_list = Level::all();\n\t\t$level_array[null] = 'Select';\n\t\t\n\t\tforeach ($level_list as $lv) {\n\t\t\t$level_array[$lv->id] = $lv->level;\n\t\t}\n\t\t\n\t\treturn view('levels.create', compact('level_array'));\n\t}", "title": "" }, { "docid": "123b82821c7f7563808d1ab81f1b56e4", "score": "0.6517778", "text": "public function store(CreateLevelCriteriaRequest $request)\n {\n $this->levelcriteria->create($request->all());\n\n return redirect()->route('admin.marketplace.levelcriteria.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('marketplace::levelcriterias.title.levelcriterias')]));\n }", "title": "" }, { "docid": "f7f3568010a52cd2c49f171bcb57551d", "score": "0.64587337", "text": "public function store(StoreLevelPost $request)\n {\n\n try{\n\n $Level=Level::create(['level'=>$request->level,'institution_id'=>getIdInstitution()]); \n\n return response()->json([\"success\" => true, \"msg\" => \"Se registraron los datos exitosamente!\"],200);\n\n }catch(\\Exception $e){\n\n return response()->json([\"success\" => false, \"msg\" => \"Error en el servidor\", \"err\" => $e->getMessage(), \"ln\" => $e->getLine()]);\n\n }//catch(\\Exception $e)\n\n }", "title": "" }, { "docid": "e7c70f07ff4cd2644797b001bbc6fd6e", "score": "0.6396388", "text": "public function addLevel()\r\n {\r\n $data['Name'] = $this->input->post('Name');\r\n $data['Supervisor'] = $this->input->post('Supervisor');\r\n $data['Saturday'] = $this->input->post('Saturday');\r\n if($data['Saturday'] != 1)\r\n $data['Saturday'] = 0;\r\n $data['Sunday'] = $this->input->post('Sunday');\r\n if($data['Sunday'] != 1)\r\n $data['Sunday'] = 0;\r\n $data['Monday'] = $this->input->post('Monday');\r\n if($data['Monday'] != 1)\r\n $data['Monday'] = 0;\r\n $data['Tuesday'] = $this->input->post('Tuesday');\r\n if($data['Tuesday'] != 1)\r\n $data['Tuesday'] = 0;\r\n $data['Wednesday'] = $this->input->post('Wednesday');\r\n if($data['Wednesday'] != 1)\r\n $data['Wednesday'] = 0;\r\n $data['Thursday'] = $this->input->post('Thursday');\r\n if($data['Thursday'] != 1)\r\n $data['Thursday'] = 0;\r\n $data['Friday'] = $this->input->post('Friday');\r\n if($data['Friday'] != 1)\r\n $data['Friday'] = 0;\r\n $this->load->model('Level');\r\n $this->Level->InsertLevel($data);\r\n $this->LevelM();\r\n }", "title": "" }, { "docid": "f4d2af4761b10ab52b0cf0b89e886b99", "score": "0.63939595", "text": "public function createLevelWithHttpInfo($level = null)\n {\n $returnType = '\\KnetikCloud\\Model\\LevelingResource';\n $request = $this->createLevelRequest($level);\n\n try {\n\n try {\n $response = $this->client->send($request);\n } catch (RequestException $e) {\n throw new ApiException(\n \"[{$e->getCode()}] {$e->getMessage()}\",\n $e->getCode(),\n $e->getResponse() ? $e->getResponse()->getHeaders() : null\n );\n }\n\n $statusCode = $response->getStatusCode();\n\n if ($statusCode < 200 || $statusCode > 299) {\n throw new ApiException(\n \"[$statusCode] Error connecting to the API ({$request->getUri()})\",\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n }\n\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n\n } catch (ApiException $e) {\n switch ($e->getCode()) {\n case 201:\n $data = ObjectSerializer::deserialize($e->getResponseBody(), '\\KnetikCloud\\Model\\LevelingResource', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n case 400:\n $data = ObjectSerializer::deserialize($e->getResponseBody(), '\\KnetikCloud\\Model\\Result', $e->getResponseHeaders());\n $e->setResponseObject($data);\n break;\n }\n throw $e;\n }\n }", "title": "" }, { "docid": "4873b80b2b832e8b99c09bb678d98694", "score": "0.6333574", "text": "public function create()\r\n {\r\n return view('levels.create');\r\n }", "title": "" }, { "docid": "f3b5d4adac85c42ab21ea331671ac9b5", "score": "0.62588745", "text": "public function create()\n {\n $record = new Level();\n return view('studentAffairs\\level\\create&edit_level', compact('record'));\n }", "title": "" }, { "docid": "6c23d8fea83c02162bd771b6685f14e3", "score": "0.61316484", "text": "public function createLevel($level = null)\n {\n list($response) = $this->createLevelWithHttpInfo($level);\n return $response;\n }", "title": "" }, { "docid": "8ef554afcf00beb9d39657be00534ab0", "score": "0.6084181", "text": "protected function updateLevelRequest($name, $new_level = null)\n {\n // verify the required parameter 'name' is set\n if ($name === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $name when calling updateLevel');\n }\n\n $resourcePath = '/leveling/{name}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($name !== null) {\n $resourcePath = str_replace('{' . 'name' . '}', ObjectSerializer::toPathValue($name), $resourcePath);\n }\n\n // body params\n $_tempBody = null;\n if (isset($new_level)) {\n $_tempBody = $new_level;\n }\n\n if ($multipart) {\n $headers= $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n $httpBody = new MultipartStream($multipartContents); // for HTTP post (form)\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams); // for HTTP post (form)\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n $url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n return new Request(\n 'PUT',\n $url,\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "2373af7c66c2396325a99d2645d26774", "score": "0.60634124", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n //'course_name' => 'required',\n 'level' => 'required',\n 'level_description' => 'required',\n ]);\n\n $level = new Level();\n //$level->course_id = $request->course_name;\n $level->level = $request->level;\n $level->level_description = $request->level_description;\n if(isset($request->status))\n {\n $level->status = 'enable';\n } else {\n $level->status = 'disable';\n }\n\n $level->save();\n return redirect()->route('level.index')->with('successMsg', 'Level Saved Successfully!');\n\n }", "title": "" }, { "docid": "874a18e926f243aff09d9d1bae3628c0", "score": "0.6053042", "text": "public function create()\n {\n $id = Auth::user()->company_id;\n $levels = level::where('company_id',$id)->orderby('id','desc')->first();\n\n if (isset($levels->level))\n {\n $last_level = (int)$levels->level;\n }\n else\n {\n $last_level = 0;\n }\n $next_level = $last_level + 1;\n return view('levels.create',compact('levels','last_level','next_level'));\n }", "title": "" }, { "docid": "2df052633cd1179a8e4d356350c90e79", "score": "0.600126", "text": "protected function getLevelRequest($name)\n {\n // verify the required parameter 'name' is set\n if ($name === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $name when calling getLevel');\n }\n\n $resourcePath = '/leveling/{name}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($name !== null) {\n $resourcePath = str_replace('{' . 'name' . '}', ObjectSerializer::toPathValue($name), $resourcePath);\n }\n\n\n if ($multipart) {\n $headers= $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n $httpBody = new MultipartStream($multipartContents); // for HTTP post (form)\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams); // for HTTP post (form)\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n $url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n return new Request(\n 'GET',\n $url,\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "7203973acb397786a7f845c629c7f95c", "score": "0.59842837", "text": "public function newAction(Request $request) {\n $em = $this->getDoctrine()->getManager();\n $educationLevel = new EducationLevel();\n $form = $this->createForm('Adverto\\AdminBundle\\Form\\JMP\\EducationLevelType', $educationLevel);\n $form->handleRequest($request);\n\n if ($form->isSubmitted() && $form->isValid()) {\n $educationLevel->setUser($this->getUser());\n $em->persist($educationLevel);\n $em->flush();\n\n return $this->redirectToRoute('admin_jmp_education_level_show', array('id' => $educationLevel->getId()));\n }\n\n return $this->render('AdminBundle:JMP:EducationLevel/new.html.twig', array(\n 'educationLevel' => $educationLevel,\n 'countries' => $em->getRepository('AdminBundle:JMP\\Country')->findAll(),\n 'form' => $form->createView(),\n ));\n }", "title": "" }, { "docid": "8bc6b51c8c4f7f23910e6e2cacd9e83f", "score": "0.59819365", "text": "public function store(Request $request)\n\t{\n\t\t$this->validate($request, $this->rules);\n\t\t\n\t\t$input = Input::all();\n\t\tLevel::create($input);\n\t\t\n\t\treturn Redirect::route('levels.index')->with('message', 'Level created');\n\t}", "title": "" }, { "docid": "628d08b664b55732d5b61a450d04e39e", "score": "0.59757304", "text": "public function create()\n {\n return view('access_levels.create');\n }", "title": "" }, { "docid": "33bca8707bfbb6c098747b7298a9cf92", "score": "0.5947791", "text": "public function setLevel($var)\n {\n GPBUtil::checkInt32($var);\n $this->Level = $var;\n\n return $this;\n }", "title": "" }, { "docid": "5aa4fbaa9750c791b93c4274e3acfaad", "score": "0.5863605", "text": "public function store(Request $request)\n {\n //\n $validator = Validator::make($request->all(),[\n 'Type_level'=> 'bail|required|numeric',\n 'name_level'=> 'bail|required|string',\n 'description'=> 'bail|nullable|text',\n ]);\n\n if($validator->fails()){\n Session::flash('error', $validator->errors()->first());\n return redirect()->back()->withInput();\n }\n try {\n //\n $levels = new levels();\n $levels->levels_types_id = $request->Type_level;\n $levels->name = $request->name_level;\n $levels->description = $request->description;\n //\n $levels->save();\n }catch(QueryException $e){\n Session::flash('error', $e->getMessage());\n return redirect()->back()->withInput();\n\n }\n return redirect()->back()->with('success','Niveau ajouter !');\n }", "title": "" }, { "docid": "cd46ff114caf45858a1034a725db903e", "score": "0.58366585", "text": "public function create()\n {\n return view('admin.levelclass.create');\n }", "title": "" }, { "docid": "dfb21a18d29fb3e6c7429185ee428b26", "score": "0.583468", "text": "public function createLevelAsyncWithHttpInfo($level = null)\n {\n $returnType = '\\KnetikCloud\\Model\\LevelingResource';\n $request = $this->createLevelRequest($level);\n\n return $this->client->sendAsync($request)->then(function ($response) use ($returnType) {\n $responseBody = $response->getBody();\n if ($returnType === '\\SplFileObject') {\n $content = $responseBody; //stream goes to serializer\n } else {\n $content = $responseBody->getContents();\n if ($returnType !== 'string') {\n $content = json_decode($content);\n }\n }\n\n return [\n ObjectSerializer::deserialize($content, $returnType, []),\n $response->getStatusCode(),\n $response->getHeaders()\n ];\n }, function ($exception) {\n $response = $exception->getResponse();\n $statusCode = $response->getStatusCode();\n throw new ApiException(\n \"[$statusCode] Error connecting to the API ({$exception->getRequest()->getUri()})\",\n $statusCode,\n $response->getHeaders(),\n $response->getBody()\n );\n });\n }", "title": "" }, { "docid": "609f93aab0c9c964b3f8695d9acd7eeb", "score": "0.5810065", "text": "public function create()\n {\n $title = \"Create Certification Level\";\n $breadcrumb[] = ['link' => route(config('app.a_slug').'.certification-levels.index'), 'text' => \"Certification Levels\"];\n $breadcrumb[] = ['link' => null, 'text' => $title];\n return view(config('app.a_slug').'.certification_levels.create', compact('title', 'breadcrumb'));\n }", "title": "" }, { "docid": "3779ab57d05273119097e013e2bd2f94", "score": "0.5774654", "text": "function add_level($params)\n {\n $this->db->insert('levels',$params);\n return $this->db->insert_levels_id();\n }", "title": "" }, { "docid": "19b95e797fae692b21e08423b088184d", "score": "0.5751201", "text": "public function store(CreateAccessLevelRequest $request)\n {\n $input = $request->all();\n\n $accessLevel = $this->accessLevelRepository->create($input);\n\n Flash::success('Access Level saved successfully.');\n\n return redirect(route('accessLevels.index'));\n }", "title": "" }, { "docid": "57710138289125b704d1e7ce5a44173b", "score": "0.57249683", "text": "public function createLevelAsync($level = null)\n {\n return $this->createLevelAsyncWithHttpInfo($level)->then(function ($response) {\n return $response[0];\n });\n }", "title": "" }, { "docid": "91ace832da6e71a6cf30c4be2dfbc204", "score": "0.56614536", "text": "protected function deleteLevelRequest($name)\n {\n // verify the required parameter 'name' is set\n if ($name === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $name when calling deleteLevel');\n }\n\n $resourcePath = '/leveling/{name}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($name !== null) {\n $resourcePath = str_replace('{' . 'name' . '}', ObjectSerializer::toPathValue($name), $resourcePath);\n }\n\n\n if ($multipart) {\n $headers= $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n $httpBody = new MultipartStream($multipartContents); // for HTTP post (form)\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams); // for HTTP post (form)\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n $url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n return new Request(\n 'DELETE',\n $url,\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "301cded58bd91376d866a27d2021686b", "score": "0.56545955", "text": "public function create()\n\t{\n\t\t$levels = Level::all();\n\t\treturn View::make('admin.post.create',compact('levels',$levels));\n\t}", "title": "" }, { "docid": "cef35ac3bc0117918ad7a05eddb71621", "score": "0.5583912", "text": "public function store(CreateJoblevelRequest $request)\n {\n $joblevel = Joblevel::create($request->all());\n\n return redirect()->route('admin.joblevels.index');\n }", "title": "" }, { "docid": "a9af91be534b991cdbbf63d6c9d84d84", "score": "0.5569535", "text": "public function create()\n {\n $data['userLevel']= $this->UserModel->getAllUserLevel();\n $data['formType']=\"create\";\n /*dd($data);*/\n return view('userscreate',compact('data'));\n }", "title": "" }, { "docid": "1e8cf7c44d13bace1609e3f800cce07b", "score": "0.55534893", "text": "public function create()\n {\n return view('admin.joblevels.create');\n }", "title": "" }, { "docid": "a2e20c0e0125bb7f2b08d06883f2957b", "score": "0.55419654", "text": "public function __construct($level)\n {\n $this->level = $level;\n }", "title": "" }, { "docid": "0c0b93d850958950431bb0dda218018c", "score": "0.553625", "text": "protected function getLevelTriggersRequest()\n {\n\n $resourcePath = '/leveling/triggers';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n\n if ($multipart) {\n $headers= $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n $httpBody = new MultipartStream($multipartContents); // for HTTP post (form)\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams); // for HTTP post (form)\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n $url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n return new Request(\n 'GET',\n $url,\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "4f35924bee96c8a1a92cd9a19a23c913", "score": "0.5517854", "text": "public function storage(Request $request, $id)\n {\n\n $this->validate($request, Level::$rules);\n\t\t$request['project_id'] = $id;\n $level = Level::create($request->all());\n\n $level['code'] = 'N'.$level->id;\n $level->save();\n\n $project = Project::find($id);\n return redirect()->route('project.edit', ['project' => $project])->with('message', 'Level Created Successfully !');\n }", "title": "" }, { "docid": "1e2cbc8d922640cfe68c0cf538e3c7d0", "score": "0.5486426", "text": "public function create()\n {\n $level = Level::orderBy(\"id\", \"DESC\")->get();\n return view('admutama.user.create', compact('level'));\n }", "title": "" }, { "docid": "b17c31abb39394a529336cc411b4080b", "score": "0.5486225", "text": "public function setLevel($level);", "title": "" }, { "docid": "dbbb018a53b017e83107f122135cf3b1", "score": "0.5456564", "text": "public function testInsertValidLevel(): void {\n\t\t$numRows = $this->getConnection()->getRowCount(\"level\");\n\t\t$levelId = generateUuidV4();\n\t\t$level = new Level($levelId, $this->VALID_LEVELNAME, $this->VALID_LEVELNUMBER);\n\t\t$level->insert($this->getPDO());\n\n\t\t$level = Level::getLevelbyLevelId($this->getPDO(), $level->getLevelId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"level\"));\n\t\t$this->assertEquals($level->getLevelName(), $this->VALID_LEVELNAME);\n\t\t$this->assertEquals($level->getLevelNumber(), $this->VALID_LEVELNUMBER);\n\t}", "title": "" }, { "docid": "4663e381b8297b7e166c4f7b6cc541bd", "score": "0.54310656", "text": "public function level($level);", "title": "" }, { "docid": "6e42748be18e068e8be12e13f911d6d0", "score": "0.5421345", "text": "public function store(Request $request)\r\n {\r\n // $input = $request->all();\r\n // dd($input);\r\n // $level = $this->levelRepository->create($input);\r\n\r\n $input = $request->all();\r\n // dd($input);die;\r\n $level = $request->get('course_id');\r\n $exdegree = Level::select('*')->where('course_id',$request->get('course_id'))->where('level',$request->get('level'))->get();\r\n\t\t\tif(count($exdegree)>0)\r\n\t\t\t{\r\n // dd($exdegree) ;die;\r\n\t\t\t\tFlash::error('deplicate','already exists for this Level !!');\r\n\t\t\t\treturn redirect()->back();\r\n }\r\n else {\r\n\t\t\tforeach($level as $semester){\r\n $degree = new Level;\r\n // ::createOrUpdate([\r\n // 'course_id' => $semester,\r\n // 'grade_id' => $request->semester_id,\r\n // 'level' => $request->level,\r\n // 'status' => $request->status,\r\n // 'school_id' => $request->school_id,\r\n // 'level_description' => $request->level_description;\r\n // // $degree->save();\r\n // ]);\r\n $degree->course_id = $semester;\r\n $degree->grade_id = $request->semester_id;\r\n $degree->level = $request->level;\r\n $degree->status = $request->status;\r\n $degree->school_id = $request->school_id;\r\n $degree->level_description = $request->level_description;\r\n $degree->save();\r\n\r\n // dd();\r\n }\r\n\r\n Flash::success('Level saved successfully.');\r\n\r\n return redirect(route('levels.index'));\r\n }\r\n}", "title": "" }, { "docid": "57f5c19ac6aa095599fb163f2a42f1fc", "score": "0.5408129", "text": "public function create()\n {\n $prigroup = Dictionary::where('var_code', 'prigroup')\n ->where('parent_id', '>', 0)\n ->orderby('type', 'asc')\n ->get();\n $tree = [];\n foreach ($prigroup as $key=>$priv) {\n if ($priv->type == 1) {\n $tree[$priv->id] = $priv->toarray();\n $tree[$priv->id]['child'] = [];\n } elseif ($priv->type == 2) {\n $tree[$priv->parent_id]['child'][] = $priv->toarray();\n }\n }\n\n return view('Imperator::privilege.create')\n ->with('pageName', '权限添加')\n ->with('parents', $tree);\n }", "title": "" }, { "docid": "1349dc118c7c6e6def7cd97ef70c9b4b", "score": "0.5401987", "text": "public function create()\n {\n $levels = Level::get();\n\n return view('pages.room.create',compact(['levels']));\n }", "title": "" }, { "docid": "5f6e77764351d3501e9ebe0970c52e2e", "score": "0.5388736", "text": "public function create()\n {\n return view('marketplace::admin.levelcriterias.create');\n }", "title": "" }, { "docid": "34e560df7656524b0be86e5fb029a17c", "score": "0.5385489", "text": "public function level($level = null);", "title": "" }, { "docid": "78d79bd7b278dd6fbf26b2b853d6af3d", "score": "0.53851783", "text": "public function createNode($name, $level = CmsNode::LEVEL_PAGE)\r\n\t{\r\n\t\tif (!$this->autoCreate)\r\n\t\t\tthrow new CException(__CLASS__.': Failed to create node. Node creation is disabled.');\r\n\r\n\t\t// Validate the node level.\r\n\t\tif($level !== CmsNode::LEVEL_PAGE && $level !== CmsNode::LEVEL_BLOCK)\r\n\t\t\tthrow new CException(__CLASS__.': Failed to create node. \"level\" is incorrectly defined.');\r\n\t\t\r\n\t\t// Validate the node name before creation.\r\n\t\tif (preg_match('/^[\\w\\d\\._-]+$/i', $name) === 0)\r\n\t\t\tthrow new CException(__CLASS__.': Failed to create node. Name \"'.$name.'\" is invalid.');\r\n\r\n\t\t$node = new CmsNode();\r\n\t\t$node->name = $name;\r\n\t\t$node->level = $level;\r\n\t\treturn $node->save(false);\r\n\t}", "title": "" }, { "docid": "6715ed6d70bf4db9c2b4e0941468cb2b", "score": "0.5381858", "text": "public function store(Request $request)\n {\n $validate = Validator::make($request->all(), [\n 'name' => 'required|string',\n ]);\n if ($validate->fails()) {\n return response()->json([\"status\" => false, \"error\" => $validate->errors()], 400);\n }\n GradeLevel::create($request->all());\n return response()->json([\"status\" => true, \"data\" => $request->all()], 201);\n }", "title": "" }, { "docid": "1ee1459dbc1ec21b48fffe7bf84a1444", "score": "0.5349666", "text": "public function create()\n {\n $parents = FinanceAccount::select('id', 'name')->where('level', '=', 0)->get();\n\n return response()->json(['parents'=>$parents]);\n }", "title": "" }, { "docid": "5eecbada3d671674b9396e8706cd27fe", "score": "0.53410375", "text": "public function setLevel($level)\r\n {\r\n $this->level = $level;\r\n return $this;\r\n }", "title": "" }, { "docid": "febfe2c88f78330a06533047e231fe49", "score": "0.5337763", "text": "public function actionCreate() {\n $request = Yii::$app->request;\n $model = new LevelProject();\n\n if ($request->isAjax) {\n /*\n * Process for ajax request\n */\n Yii::$app->response->format = Response::FORMAT_JSON;\n if ($request->isGet) {\n return [\n 'title' => \"Create new LevelProject\",\n 'content' => $this->renderAjax('create', [\n 'model' => $model,\n ]),\n 'footer' => Html::button('Close', ['class' => 'btn btn-default pull-left', 'data-dismiss' => \"modal\"]) .\n Html::button('Save', ['class' => 'btn btn-primary', 'type' => \"submit\"])\n ];\n } else if ($model->load($request->post())) {\n\n\n if ($model->parentID == NULL) {\n\n $model->level = 1;\n } else {\n\n\n $getLevel = LevelProject::findOne($model->parentID);\n $getLevel = $getLevel->level;\n $model->level = $getLevel + 1;\n }\n\n\n $model->save();\n return [\n 'forceReload' => '#crud-datatable-pjax',\n 'title' => \"Create new LevelProject\",\n 'content' => '<span class=\"text-success\">Create LevelProject success</span>',\n 'footer' => Html::button('Close', ['class' => 'btn btn-default pull-left', 'data-dismiss' => \"modal\"]) .\n Html::a('Create More', ['create'], ['class' => 'btn btn-primary', 'role' => 'modal-remote'])\n ];\n } else {\n return [\n 'title' => \"Create new LevelProject\",\n 'content' => $this->renderAjax('create', [\n 'model' => $model,\n ]),\n 'footer' => Html::button('Close', ['class' => 'btn btn-default pull-left', 'data-dismiss' => \"modal\"]) .\n Html::button('Save', ['class' => 'btn btn-primary', 'type' => \"submit\"])\n ];\n }\n } else {\n /*\n * Process for non-ajax request\n */\n if ($model->load($request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }\n }", "title": "" }, { "docid": "2632652e6ceb2e5fe3775bfc7a402bba", "score": "0.5334135", "text": "public function level();", "title": "" }, { "docid": "6d828c120880c0088cf31498faa37446", "score": "0.53179187", "text": "public function create()\n {\n $roles = Level::all();\n return view('user.add', compact('roles'));\n }", "title": "" }, { "docid": "2e4ad5542e0fd0ecfb629c9d399f31f8", "score": "0.53152126", "text": "protected function getLevelsRequest($filter_name = null, $size = '25', $page = '1', $order = 'name:ASC')\n {\n\n $resourcePath = '/leveling';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n // query params\n if ($filter_name !== null) {\n $queryParams['filter_name'] = ObjectSerializer::toQueryValue($filter_name);\n }\n // query params\n if ($size !== null) {\n $queryParams['size'] = ObjectSerializer::toQueryValue($size);\n }\n // query params\n if ($page !== null) {\n $queryParams['page'] = ObjectSerializer::toQueryValue($page);\n }\n // query params\n if ($order !== null) {\n $queryParams['order'] = ObjectSerializer::toQueryValue($order);\n }\n\n\n\n if ($multipart) {\n $headers= $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n $httpBody = new MultipartStream($multipartContents); // for HTTP post (form)\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams); // for HTTP post (form)\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n $url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n return new Request(\n 'GET',\n $url,\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "26386223d83d6d3fac6554625444336a", "score": "0.5314228", "text": "protected function getUserLevelRequest($user_id, $name)\n {\n // verify the required parameter 'user_id' is set\n if ($user_id === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $user_id when calling getUserLevel');\n }\n // verify the required parameter 'name' is set\n if ($name === null) {\n throw new \\InvalidArgumentException('Missing the required parameter $name when calling getUserLevel');\n }\n\n $resourcePath = '/users/{user_id}/leveling/{name}';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($user_id !== null) {\n $resourcePath = str_replace('{' . 'user_id' . '}', ObjectSerializer::toPathValue($user_id), $resourcePath);\n }\n // path params\n if ($name !== null) {\n $resourcePath = str_replace('{' . 'name' . '}', ObjectSerializer::toPathValue($name), $resourcePath);\n }\n\n\n if ($multipart) {\n $headers= $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n $httpBody = new MultipartStream($multipartContents); // for HTTP post (form)\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams); // for HTTP post (form)\n }\n }\n\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n // this endpoint requires OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\n }\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n $url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n return new Request(\n 'GET',\n $url,\n $headers,\n $httpBody\n );\n }", "title": "" }, { "docid": "2921b2cb1055ec9028335e90ab3fb0f0", "score": "0.5311754", "text": "public function GetPlayerRegistrationLevels($request) {}", "title": "" }, { "docid": "d192b44cc4b061ad390fafb3500a870d", "score": "0.5307857", "text": "public function create()\n\t{\n\t\treturn lang('RESTful.notImplemented', ['create']);\n\t}", "title": "" }, { "docid": "6a29721af509f31962c1e33f35233819", "score": "0.52952224", "text": "public function createRequest(array $options = []);", "title": "" }, { "docid": "6b9fa63a51fb096cca1a5b30e19eb9aa", "score": "0.52680784", "text": "public function create() {\n\n //get all team level roles\n $roles = $this->roles->allTeamRoles();\n\n //reponse payload\n $payload = [\n 'page' => $this->pageSettings('create'),\n 'roles' => $roles,\n ];\n\n //show the form\n return new CreateResponse($payload);\n }", "title": "" }, { "docid": "c3bf26958dc21b74b1979f5294401802", "score": "0.52233344", "text": "public function setLevel($level)\n {\n $this->level = $level;\n return $this;\n }", "title": "" }, { "docid": "587927c63f1e22a1b88aaea6209c6c0e", "score": "0.52149147", "text": "public function create()\n {\n $column = $this->accessOnlyColumn();\n $data = Input::only($column);\n $data['platform_id'] = $this->currentPlatformEloq->platform_id;\n $role = json_decode($data['role']); //[1,2,3,4,5]\n $objPartnerAdminGroup = new $this->eloqM;\n $objPartnerAdminGroup->fill( $data);\n try {\n $objPartnerAdminGroup->save();\n echo 'success';\n } catch (\\Exception $e) {\n echo $e->getMessage();die();\n }\n $partnerAccessGroupEloq = PartnerMenus::whereIn('id', $role)->get();\n $partnerMenuObj = new PartnerMenus();\n $partnerMenuObj->createMenuDatas($partnerAccessGroupEloq,$objPartnerAdminGroup->id);\n $objPartnerAdminGroup->save();\n return $data;\n }", "title": "" }, { "docid": "07689ac75f2704dfe98f40bc6d9f0574", "score": "0.51846516", "text": "public function create() {\n throw new ApiException(\"[create] not yet implemented\");\n }", "title": "" }, { "docid": "4896ef3d8365f67ba6eaa8efa301cb84", "score": "0.5175165", "text": "public function createHostGroup ($name, $level) {\n\t\t$query = sprintf(\"INSERT INTO php_wol_hostgroups (name, level) VALUES ('%s', %s);\", $name, $level);\n\t\t$result = mysql_query ($query); \n\t\tif ($result !== false) {\n\t\t\t$queryID = sprintf(\"SELECT HG.name, HG.id_hostgroup IDHG FROM php_wol_hostgroups HG WHERE HG.name = '%s';\", $name);\n \t\t$resultID = mysql_query ($queryID);\n \t\t$rowID = mysql_fetch_array($resultID);\n\t\t\t\n\t\t\t$newGroup = new Wol_HostGroup($rowID['IDHG'], $name, $level);\n\n\t\t\t$this->addHostGroupToList($newGroup);\n\t\t\treturn $rowID['IDHG'];\n\t\t}\n\t}", "title": "" }, { "docid": "9207ae71a796761e0e4f852bce48186c", "score": "0.51533777", "text": "public function create()\n {\n \t//\n }", "title": "" }, { "docid": "d0e8957da569b4f3434a4f8086348113", "score": "0.5140927", "text": "public function actionCreate()\n {\n $model = new SeclevelmessageModel();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'flmID' => $model->flmID, 'slmID' => $model->slmID]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "f2053fcdf3bd949b6784dc1c660198a2", "score": "0.5139931", "text": "public function setLevel($level) {\n $this->level = $level;\n }", "title": "" }, { "docid": "2c87547140d8f83827c770b05a1dd564", "score": "0.5135599", "text": "public function create()\n \t{\n \t\t//\n \t}", "title": "" }, { "docid": "15106b62dfc103b160073ceb97d2be06", "score": "0.5132257", "text": "public function testGetValidLevelByLevelId(): void {\n\t\t//count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"level\");\n\t\t//create a new level and insert to into mySQL\n\t\t$level = new Level(generateUuidV4(), $this->VALID_LEVELNAME, $this->VALID_LEVELNUMBER);\n\t\t$level->insert($this->getPDO());\n\t\t// get the data from mySQL and enforce the fields match our expectations\n\n\t\t$level = Level::getLevelbyLevelId($this->getPDO(), $level->getLevelId());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"level\"));\n\n\t\t$this->assertEquals($level->getLevelName(), $this->VALID_LEVELNAME);\n\t\t$this->assertEquals($level->getLevelNumber(), $this->VALID_LEVELNUMBER);\n\t}", "title": "" }, { "docid": "8c7d4bd4c2b9c9f5f83616b9a6fa5313", "score": "0.5132052", "text": "public function create() {\n \n //\n \n }", "title": "" }, { "docid": "fb27c66dff833b0f32d89caef75bbc96", "score": "0.5131703", "text": "public function create() {\r\n //\r\n }", "title": "" }, { "docid": "fb27c66dff833b0f32d89caef75bbc96", "score": "0.5131703", "text": "public function create() {\r\n //\r\n }", "title": "" }, { "docid": "b93c63e9b4f65f24d1475d4f78038758", "score": "0.51304716", "text": "public function create()\n\t{\n\t\t// \n\t}", "title": "" }, { "docid": "343cc8730121acf4e560e252f2a2f296", "score": "0.51286817", "text": "public function store(Request $request)\n {\n request()->validate([\n 'name' => 'required|string|max:255',\n 'level_id' => 'required|integer|exists:levels,id',\n\n ]);\n $classroom = new Classroom;\n $classroom->name = request('name');\n $classroom->level_id = request('level_id');\n\n $classroom->save();\n\n return new ClassroomResource($classroom);\n }", "title": "" }, { "docid": "4056d3d747340a26e6aa88f1de49abe1", "score": "0.51275957", "text": "public function setLevelAttribute($level)\n {\n $this->attributes['level'] = $level;\n }", "title": "" }, { "docid": "f8fe982c3819dcb225a9044e6597a6a4", "score": "0.51263183", "text": "public function create()\n {\n //\n }", "title": "" }, { "docid": "f8fe982c3819dcb225a9044e6597a6a4", "score": "0.51263183", "text": "public function create()\n {\n //\n }", "title": "" }, { "docid": "ed9cb17a7ae845022afd8ba30fedad53", "score": "0.5125794", "text": "public function create()\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "af85f6e16f9c3e7a03979eff0fca1293", "score": "0.5121217", "text": "public function create()\n\t{\n\t\t//\n\n\n\t}", "title": "" }, { "docid": "cbda69a95bb881bfbf010e87de5d6044", "score": "0.5109138", "text": "public function create()\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "cbda69a95bb881bfbf010e87de5d6044", "score": "0.5109138", "text": "public function create()\n\t\t{\n\t\t\t//\n\t\t}", "title": "" }, { "docid": "c0e3d96a418a3a5d86baf4a3108bcdad", "score": "0.5107021", "text": "private function do_saveLevel( $params ) {\n\t\t$metaData = [];\n\t\t$metaData[\"levelName\"] = $params[\"levelName\"]; //key and value\n\t\t$metaData[\"author\"] = $params[\"author\"];\n\t\t$metaData[\"projectiles\"] = $params[\"projectiles\"];\n\t\t$metaData[\"bgImage\"] = $params[\"bgImage\"];\n\t\t$data = $params[\"JSONlevelData\"];\n\t\t$dataDecoded = json_decode($data, true);\n\n\t\t$sendTo = array_merge($metaData, $dataDecoded);\n\t\t$json = json_encode( $sendTo, JSON_PRETTY_PRINT );\n\t\t\n\t\t\n\t\tif (file_exists(\"levels/\".$metaData[\"levelName\"].\".json\")) {\n\t\t\tfile_put_contents(\"levels/\".$metaData[\"levelName\"].\"_copy\".\".json\", $json);\n\t\t}\n\t\telse {\n\t\t\tfile_put_contents(\"levels/\".$metaData[\"levelName\"].\".json\", $json);\n\t\t}\n\t\t\n\t\treturn $json;\n\t}", "title": "" }, { "docid": "559329a1964bb539e51e9fb48da8599e", "score": "0.51040965", "text": "public function setLevel($level)\n {\n $this->level = $level;\n\n return $this;\n }", "title": "" }, { "docid": "559329a1964bb539e51e9fb48da8599e", "score": "0.51040965", "text": "public function setLevel($level)\n {\n $this->level = $level;\n\n return $this;\n }", "title": "" }, { "docid": "bb93c328a505ab609eb2c2d5a5d72152", "score": "0.5102915", "text": "public function create()\n {\n \t//\n }", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.51028955", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.51028955", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.51028955", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "633d2405dcb70eee05e5807dfab93448", "score": "0.51028955", "text": "public function create()\n\t{\n //\n\t}", "title": "" }, { "docid": "e53c8a8e2f359d97b1d22be9657f9302", "score": "0.51028216", "text": "public function create()\n {\n $levels=Level::all();\n return view('student_pannel.registration',compact('levels'));\n }", "title": "" }, { "docid": "c3a98c44d2f3bc19b2b8f24b1124cd7d", "score": "0.5100391", "text": "function setLevel($level) {\n\t\treturn $this->setData('level', $level);\n\t}", "title": "" }, { "docid": "aefe2348c88bf4ea687df908b8ed2f7a", "score": "0.5095789", "text": "public function create()\n {\n //\n \n \n }", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" }, { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.509571", "text": "public function create() {\n\t\t//\n\t}", "title": "" } ]
23d78783e0632b8e2e47072b04160bb2
approved by sourcing head 2020113
[ { "docid": "8cafb1a554eabff8930105a0518a42b0", "score": "0.0", "text": "public function approved_by_sourcing($emp_code) { \n\t\n\t$condition = \"pr_master.pr_source_id =\" . \"'\" . $emp_code . \"' and pr_master.pr_state ='sourcing_approved' \";\n\t\n\t$this->db->select('*');\n//$this->db->select('*');\n$this->db->from('pr_master');\n$this->db->where($condition);\n\n$query = $this->db->get();\n\nif ($query->num_rows() >= 1) {\nreturn $query;\n} else {\nreturn false;\n}\n}", "title": "" } ]
[ { "docid": "b287b99f7b8b7f05c9000fc0e2d68ab1", "score": "0.61867267", "text": "public function action_approve()\n {\n if(Helper_User::getUserRole($this->logget_user) == 'student') return $this->request->redirect('');\n $user = ORM::factory('user', $this->request->param('id'));\n $user->status = 1;\n $user->save();\n if($user->roles->find()->name == 'student'){\n $student = $user->students->find();\n $year = ORM::factory('academicyear')->where('name', '=', Helper_Main::getCurrentYear())->find()->id;\n $student->start_year = $student->end_year = $year;\n $student->save();\n }\n return $this->request->redirect($this->request->param('type') .'s/list');\n }", "title": "" }, { "docid": "6876256583ef9a487359379663254c6e", "score": "0.61784244", "text": "public function approve() \n\t{\n\t\t$this->updateStatus(self::STATUS_APPROVED);\n\t}", "title": "" }, { "docid": "8984b3235d008b361027d9987c1cbf2c", "score": "0.613353", "text": "public function actionBeforeApproved()\n {\n return true;\n }", "title": "" }, { "docid": "3f9de1bdbbd9b4037b4ba44a11ba17f8", "score": "0.61105585", "text": "public function isApproved();", "title": "" }, { "docid": "b4e5dba0f80f44079527d5ed1a1aba52", "score": "0.6106764", "text": "public function approve()\n {\n $this->update(['approved' => true]);\n }", "title": "" }, { "docid": "7c579225ee4e3c2e69c86814584cd1fd", "score": "0.6054102", "text": "public function do_efisien_approval()\n\t{\n\t}", "title": "" }, { "docid": "53862e793e5a8643d69a9a4f0b31e25d", "score": "0.5937689", "text": "public function mustBeApproved(){\n return false;\n }", "title": "" }, { "docid": "344c09a12ecffdbf0b7c6d2e7c5dc3af", "score": "0.5898702", "text": "public function approveCampsite(Campsite $campsite){\n }", "title": "" }, { "docid": "a45a1e61cef20747ce5637401302b70f", "score": "0.58674586", "text": "function _ssm_approve_user_account($row){\n\t$uid = $row->uid;\n\tglobal $user;\n\n\tssm_change_role_to_role($uid,'Unverified User', 'Member');\n\n\t$num_updated = db_update('alumni_user_genealogy') // Table name no longer needs {}\n \t\t->fields(array(\n\t\t\t 'status' => 1,\n\t\t\t 'approved_by' => $user->uid,\n\t\t\t 'modified' => afl_date(),\n \t\t))\n\t\t ->condition('uid', $uid, '=')\n\t\t ->execute();\n}", "title": "" }, { "docid": "43f6abfbb5b941e40d492de805836e90", "score": "0.58186835", "text": "function pre_comment_approved($approved,$commentdata){\n return 0;//disapproved\n }", "title": "" }, { "docid": "681e9661ad0a955fce170daf12023359", "score": "0.58136433", "text": "public function actionAfterApproved()\n {\n return true;\n }", "title": "" }, { "docid": "3c38c3434af2950d86bf47e75fe17082", "score": "0.5810049", "text": "public function post_approve_action(){}", "title": "" }, { "docid": "1bb27d0429407972aacebe5bb4a20e19", "score": "0.5786444", "text": "public function onApprove()\n {\n wcmTrace('WF: ' . $this->wcmObject->getClass() . ' #' . $this->wcmObject->id . ' approved');\n }", "title": "" }, { "docid": "9cfd2413b40c0306f8262c0836e81a98", "score": "0.5775576", "text": "public function approvedEdited();", "title": "" }, { "docid": "da41af38542138dfb89410eb224ded72", "score": "0.5751723", "text": "function cpg_get_pending_approvals()\n{\n global $CONFIG;\n $result = cpg_db_query(\"SELECT COUNT(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE approved = 'NO'\");\n if (mysql_num_rows($result) == 0) return 0;\n $row = mysql_fetch_array($result);\n mysql_free_result($result);\n return $row[0];\n}", "title": "" }, { "docid": "512a00fc3f98301ac3f2f4fc518cc252", "score": "0.57303846", "text": "public function bureau_id_approved ($id)\n {\n\n }", "title": "" }, { "docid": "f02e2121086b28173faf533f04c2dded", "score": "0.57188874", "text": "public function beforeApprove()\n {\n wcmTrace('WF: Approving ' . $this->wcmObject->getClass() . ' #' . $this->wcmObject->id);\n return true;\n }", "title": "" }, { "docid": "c63e8fafb4bcbb774c088db6e53d85c2", "score": "0.57017714", "text": "function autoForceApprove($p = array()) \n {\n \tglobal $conn, $feedback;\n $url_category = addslashes(htmlspecialchars(trim($p['url_category'])));\n $article_id = addslashes(htmlspecialchars(trim($p['article_id'])));\n if ($article_id == '' || $article_id == 0) {\n $feedback = \"Please Choose an article\";\n return false;\n }\n $old_article = self::getInfo($article_id, false);\n $old_status = $old_article['article_status'];\n $approve_date = $old_article['approval_date'];\n $old_editor = $old_article['editor_id'];\n $cuser_id = 'cronjob';\n $permission = 0;\n $allowed_statuses = array(0, 1, 2, '1gd');\n $approve_action = $p['approve_action'];\n if ($approve_action == 'forcec') {\n $p['article_status'] = 5;\n if (!$ret = self::autoApproveArticle($p, $old_article)) {\n return false;\n }\n } else if ($approve_action == '1gc') {\n //pr($old_status,true);\n if (in_array($old_status, $allowed_statuses)) {\n $ret = ($old_status == '1') ? true : false;\n if ($ret === false) {\n return false;\n } else {\n if (self::setArticleStatus($article_id, '1gc' , 1)) {\n $p['approve_action'] = 'approval';\n if (!$ret = self::autoApproveArticle($p, $old_article)) {\n \treturn false;\n }\n }\n }\n return true;\n } else {\n $feedback = \"You can't force the article status as approval!\";\n return false;\n }\n } else {\n $feedback = \"You have no privilege to force the article status as approval!\";\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "86d07be473b78e3320b31338e5834d7d", "score": "0.5698938", "text": "public function approve()\n {\n $this->setEnabled(true);\n $this->setUpdateAt(new \\DateTime());\n }", "title": "" }, { "docid": "efb0733557d70972f0a4e752e44fff14", "score": "0.56883556", "text": "function comment_approved($new_status, $old_status, $comment_object) {\n if($old_status != $new_status) {\n if($new_status == 'approved') {\n if(get_post_type($comment_object->comment_post_ID) == 'course'){\n if(function_exists('bp_course_get_course_reviews')){\n $calculate_reviews=bp_course_get_course_reviews('id='.$comment_object->comment_post_ID);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "534f1b452567c6aa2908e0516c1bd665", "score": "0.56729054", "text": "function moderate($approved) {\n global $user_ID;\n \n ///////////////////////////\n \n /*global $wp_filter;\n \n var_dump($wp_filter['pre_comment_approved']);\n \n echo '<h3>before: </h3>';\n \n var_dump($approved);\n \n echo '<h3>fv_tc actions: </h3>';\n \n if(get_user_meta($user_ID,'fv_tc_moderated')) {\n echo '<p>putting into approved</p>';\n }\n else {\n echo '<p>putting into unapproved</p>';\n }\n \n die('end');*/\n /////////////////////////\n \n if(get_user_meta($user_ID,'fv_tc_moderated')) \n return true;\n return $approved;\n }", "title": "" }, { "docid": "57b81f5733f9990818bdcc83c92ffeb6", "score": "0.56556666", "text": "function approve() {\n global $sql;\n\n //Security check\n if (!$_SESSION['isAdmin']) die();\n\n // get form information from post\n $studentId = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['studentId']));\n $resident = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['resident']));\n $lastName = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['lastName']));\n $firstName = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['firstName']));\n $initials = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['initials']));\n $gender = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['gender']));\n $dob = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['dob']));\n $height = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['height']));\n $weight = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['weight']));\n $email = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['email']));\n $hometown = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['hometown']));\n $highSchool = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['highSchool']));\n $gradYear = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['gradYear']));\n $program = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['program']));\n $yearOfStudy = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['yearOfStudy']));\n\n $cStreet = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['cStreet']));\n $cCity = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['cCity']));\n $cProvince = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['cProvince']));\n $cPostal = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['cPostal']));\n $cCountry = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['cCountry']));\n $cPhone = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['cPhone']));\n\n $pStreet = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['pStreet']));\n $pCity = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['pCity']));\n $pProvince = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['pProvince']));\n $pPostal = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['pPostal']));\n $pCountry = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['pCountry']));\n $pPhone = mysqli_real_escape_string($sql, htmlspecialchars($_POST['args']['pPhone']));\n\n // create athlete record\n $query = \"INSERT INTO athletes VALUES ($studentId, $resident, '$lastName', '$firstName', '$initials', '$gender', '$dob', '$height', \n '$weight', '$email', '$hometown', '$highSchool', $gradYear, '$program', $yearOfStudy, '$cStreet', '$cCity', '$cProvince', '$cPostal', '$cCountry', \n '$cPhone', '$pStreet', '$pCity', '$pProvince', '$pPostal', '$pCountry', '$pPhone');\";\n $result = mysqli_query($sql, $query);\n\n // create athlete history records\n $query = \"INSERT INTO athletehistory (ah_studentId, ah_institute, ah_teamId, ah_teamName, ah_year, ah_position, ah_jerseyNumber, ah_charged) SELECT aqh_studentId, aqh_institute, aqh_teamId, aqh_teamName, aqh_year, aqh_position, aqh_jerseyNumber, aqh_charged FROM athletequeuehistory WHERE aqh_studentId = $studentId\";\n $result = mysqli_query($sql, $query);\n\n // delete athlete record from queue\n $query = \"DELETE FROM athletequeue WHERE aq_studentId = $studentId\";\n $result = mysqli_query($sql, $query);\n\n // delete athlete record history from queue\n $query = \"DELETE FROM athletequeuehistory WHERE aqh_studentId = $studentId\";\n $result = mysqli_query($sql, $query);\n \n echo $result;\n }", "title": "" }, { "docid": "bf8632b935d2d2d5f50e680833e28c05", "score": "0.5636238", "text": "public function isApproved()\n {\n if ($this->approved_at) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "b06d241c561717e11aca00120141ceef", "score": "0.55444825", "text": "public function do_ikk_approval()\n\t{\n\t}", "title": "" }, { "docid": "9a55d69378435e26d76154e7bdacb2df", "score": "0.55266064", "text": "public function approve()\n {\n if ($this->isPaymentNotVerified() || $this->isWaitingForPayment()) {\n $this->setStatus(static::APPROVED);\n }\n }", "title": "" }, { "docid": "788d11d9d3c66b18d8c728fa5333ae68", "score": "0.55228674", "text": "public function approve_payroll_summary($id){\n\t\t$id = $this->db->escape($id);\n\t\t$sql = \"UPDATE hris_payroll_summary SET status = 'approved'\n\t\tWHERE id = \".$id.\"\n\t\tAND enabled = 1\";\n\n\t\treturn $this->db->query($sql);\n\t}", "title": "" }, { "docid": "7a8352cb58f5f24d72f068a0e7559b92", "score": "0.551621", "text": "public function amb_approval($status,$id)\n\t{\n\t\t$update=$this->db->query(\"UPDATE `ambassador` set `amb_approved`='\".$status.\"' where `amb_id`='\".$id.\"'\");\n\t//\techo \"UPDATE `ambassador` set `amb_approved`='\".$status.\"' where `amb_id`='\".$id.\"'\";\n\t\t//exit;\n\t\tif($update)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "7b674f3f0b23b980b3a6c2f9a9be0c3b", "score": "0.55161285", "text": "public function load_att_approve(){\n\t\t\t// check l1 or l2\n\t\t$emp_list = $this->Home->get_team($this->Session->read('USER.Login.id'), 'L');\t\n\t\t\n\t\tif(!empty($emp_list)){\n\t\t\t$this->set('apprv_att', 1);\n\t\t\tforeach($emp_list as $emp){\n\t\t\t\t$tm .= $emp['u']['id'].',';\n\t\t\t}\n\t\t\t$tm = substr($tm,0,strlen($tm)-1);\t\n\t\t\t\n\t\t\t// get all waiting attendance for approval\n\t\t\t$att_st_data = $this->Home->get_tm_att($tm);\n\t\t\t$this->set('att_st_data', $att_st_data);\n\t\t\t$this->set('appr_count', count($att_st_data));\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "329d97a5ffd832f16886af0018b11e5d", "score": "0.5453776", "text": "public function process_adv($perm_id, $st_id, $status,$user_id){ \n\t\t$data = array('modified_date' => $this->Functions->get_current_date(), 'modified_by' => $this->Session->read('USER.Login.id'), 'remarks' => $this->request->query['remark'], 'status' => $status);\n\t\t$this->HrPerApprove->HrPerStatus->id = $st_id;\n\t\t$st_msg = $status == 'A' ? 'approved' : 'rejected';\n\t\t// make sure not duplicate status exists\n\t\t$this->check_duplicate_status($perm_id, $this->Session->read('USER.Login.id'), 1);\n\t\t// save the finance adv. status\n\t\tif($this->HrPerApprove->HrPerStatus->save($data, true, $fieldList = array('modified_by','modified_date','remarks','status'))){\n\t\t\t// get user data\n\t\t\t$user_data = $this->HrPerApprove->Home->find('first', array('conditions' => array('Home.id' => $user_id),'fields' => array('email_address','first_name', 'last_name')));\n\t\t\t// get leave details\n\t\t\t$req_data = $this->HrPerApprove->findById($perm_id, array('fields' => 'per_from','per_to', 'per_date', 'no_hrs', 'reason'));\n\t\t\t\n\t\t\t$vars = array('name' => $user_data['Home']['first_name'].' '.$user_data['Home']['last_name'], 'remarks' => $this->request->query['remark'], 'status' => $st_msg, 'req_date' => $req_data['HrPerApprove']['req_date'],'employee' => $user_data['Home']['first_name'].' '.$user_data['Home']['last_name'],'reason' => $req_data['HrPerApprove']['reason'], 'per_from' => $req_data['HrPerApprove']['per_from'], 'per_to' => $req_data['HrPerApprove']['per_to'], 'per_date' => $req_data['HrPerApprove']['per_date'], 'nohrs' => $req_data['HrPerApprove']['no_hrs']);\n\t\t\t// notify employee\t\t\t\t\t\t\n\t\t\tif(!$this->send_email('My PDCA - Your permission request is '.$st_msg.' by '.ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name')), 'notify_permission', '[email protected]', $user_data['Home']['email_address'],$vars)){\t\t\n\t\t\t\t// show the msg.\t\t\t\t\t\t\t\t\n\t\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Problem in sending the mail to user...', 'default', array('class' => 'alert alert-error'));\t\t\t\t\n\t\t\t}else{\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t// get the superiors\n\t\t\t$this->loadModel('Approval');\n\t\t\t// if record approved\n\t\t\tif($status == 'R'){\t\t\t\n\t\t\t\t// update leave status\n\t\t\t\t$this->HrPerApprove->id = $perm_id;\n\t\t\t\t$this->HrPerApprove->saveField('is_approve', 'R');\n\t\t\t\n\t\t\t\t$approval_data = $this->Approval->find('first', array('fields' => array('level1','level2'), 'conditions'=> array('Approval.app_users_id' => $user_id, 'type' => 'A')));\n\t\t\t\tif($approval_data['Approval']['level1'] == $this->Session->read('USER.Login.id')){\n\t\t\t\t\t$mail_user = $approval_data['Approval']['level2'];\n\t\t\t\t}else{\n\t\t\t\t\t$mail_user = $approval_data['Approval']['level1'];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// get superior data\n\t\t\t\t$superior_data = $this->HrPerApprove->Home->find('first', array('conditions' => array('Home.id' => $mail_user),'fields' => array('email_address','first_name', 'last_name')));\n\t\t\t\t// make sure superior available\n\t\t\t\tif(!empty($superior_data)){\n\t\t\t\t\t// notify employee\t\t\t\t\t\t\n\t\t\t\t\tif(!$this->send_email('My PDCA - Permission request is rejected by '.ucfirst($this->Session->read('USER.Login.first_name')).' '.ucfirst($this->Session->read('USER.Login.last_name')), 'notify_permission', '[email protected]', $superior_data['Home']['email_address'],$vars)){\t\t\n\t\t\t\t\t\t// show the msg.\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Problem in sending the mail to user...', 'default', array('class' => 'alert alert-error'));\t\t\t\t\n\t\t\t\t\t}else{\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t// update leave status\n\t\t\t\t$this->HrPerApprove->id = $perm_id;\n\t\t\t\t$this->HrPerApprove->saveField('is_approve', 'Y');\n\t\t\t\t// send mail to finance manager\n\t\t\t\t$this->notify_hr($user_data, $req_data);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\n\t\t\t\t\n\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>Permission request is '.$st_msg.' successfully', 'default', array('class' => 'alert alert-success'));\n\t\t}else{\n\t\t\t$this->Session->setFlash('<button type=\"button\" class=\"close\" data-dismiss=\"alert-error\">&times;</button>Problem in updating the status', 'default', array('class' => 'alert alert-error'));\t\t\n\t\t}\n\t\t$this->redirect('/hrperapprove/');\t\n\t}", "title": "" }, { "docid": "e1b4eb40d9ef5a4e071d44f1f4c1a521", "score": "0.54473007", "text": "function setApproved()\n {\n if ($this->strDataID != \"\") {\n $intStatus = SALARY_CALCULATION_APPROVED;\n $strSQL = \"\n UPDATE hrd_salary_master SET status = '\" . $intStatus . \"'\n WHERE id = '\" . $this->strDataID . \"';\n \";\n $resExec = $this->data->execute($strSQL);\n if ($resExec != false) {\n $this->arrData['status'] = $intStatus;\n }\n }\n }", "title": "" }, { "docid": "3abb63ba3086c30cc56397bb85deca59", "score": "0.5427346", "text": "function approve($conn, $id){\n\n\t\t$stmt = $conn -> prepare('UPDATE ad SET status = 1, date_published = CURDATE(), date_until = DATE_ADD(CURDATE(), INTERVAL 1 MONTH) WHERE ad_id=? AND status = 2');\n\t\tif($stmt === FALSE){\n\t\t\techo $conn -> error;\n\t\t}\n\t\tmysqli_stmt_bind_param($stmt, \"i\", $id);\n\t\tmysqli_stmt_execute($stmt);\n\t\t\n\n\n }", "title": "" }, { "docid": "b479cfa61b93dfb0cc2e9f2d63aa5d05", "score": "0.54117596", "text": "function approveRequest ($id, $approved)\n\t\t\t{\n\t\t\t\t//connect to the database\n\t\t\t\t$conn = $this->db_connect();\n\n\t\t\t\t$id = mysqli_real_escape_string($conn, $id);\n\t\t\t\t$approved = mysqli_real_escape_string($conn, $approved);\n\n\t\t\t\t//build the query\n\t\t\t\t$qry = \"UPDATE tbl_requests \";\n\t\t\t\t$qry .= \"SET approved = '{$approved}' \";\n\t\t\t\t$qry .= \"WHERE id = {$id}\";\n\n\n\t\t\t\t//execute the query\n\t\t\t\t$result = mysqli_query($conn, $qry);\n\t\t\t\tif (!$result) {\n\t\t\t\t\tdie(\"Database query failed.\");\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "2e6c4fe8a3b04dad1c168a009c8a12c6", "score": "0.5392416", "text": "public function approveAM($id)\n {\n $agenda = Agenda::find($id);\n $agenda->status = 'in General Manager';\n $agenda->save();\n return redirect('/agenda')->with('success', 'Status Change success, waiting approval from Audit General Manager');\n //\n }", "title": "" }, { "docid": "e312d85034ea2ca11409d0594f68bd6a", "score": "0.53864604", "text": "public function Approved()\n {\n if (!empty($_SESSION['approve_email']))\n {\n $this -> mSmarty -> assign('approve_email', $_SESSION['approve_email']);\n }\n\n $this -> mSmarty -> assign('_content', $this -> mSmarty -> Fetch('mods/users/_reg_approved.html') );\n }", "title": "" }, { "docid": "95ff331b45d6bcbf4b16943d95dd6ee5", "score": "0.53789836", "text": "function approve_requests($reqid)\n\t{\n\t\t$response;\n\t\t$con =new mysqli(DB_SERVER, DB_USER, DB_PASSWORD,DB_DATABASE);\n\t\t$qry=\"update `request` set request_status='Approved' where `request_id`=\".$reqid;\n\t\t$result=$con->query($qry);\n\t\tif($result == 1)\n\t\t{\n\t\t\t$response=\"success\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$response=\"failed\";\n\t\t}\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "af32c1aebdd47b245b5a1e94a8536597", "score": "0.53591937", "text": "function ajax_approve_function($form, &$form_state) {\r\n$i=$form_state['triggering_element']['#name'];\r\n$values=$form_state['values'];\r\n\r\n\t\t\t$stat_upd = db_update('userpoints_trnscts')\r\n\t\t\t->fields(array(\r\n\t\t\t'approved' => '2',\r\n\t\t\t))\r\n\t\t\t->condition('trid', $values['trid'.$i], '=')\r\n\t\t\t->execute();\r\n switch ($values['action'.$i]) \r\n\t{\r\n\t\tcase 'TXN_INCOME' :\r\n\t\t txn_income($values['name'.$i], $values['amount'.$i]);\r\n\t\tbreak;\r\n\t\tcase 'TXN_WITHDRAW' :\r\n\t\t txn_withdraw($values['name'.$i], $values['amount'.$i]);\r\n\r\n\t\tbreak;\r\n\t}\r\n\t $form['result'] = array(\r\n '#markup' => 'Accepted Act:'.$values['action'.$i].'name:'.$values['name'.$i].'amount'.$values['amount'.$i],\r\n );\r\n return $form;\r\n\t}", "title": "" }, { "docid": "b7ad4574a6f04400da9d597effea287d", "score": "0.534948", "text": "public function disapprove()\n {\n $this->update(['approved' => false]);\n }", "title": "" }, { "docid": "aec5655c343c6aa202f617036e7971ba", "score": "0.53470016", "text": "function forceApproveArticle($p = array()) \n {\n \tglobal $conn, $feedback;\n $url_category = addslashes(htmlspecialchars(trim($p['url_category'])));\n $article_id = addslashes(htmlspecialchars(trim($p['article_id'])));\n if ($article_id == '' || $article_id == 0) {\n $feedback = \"Please Choose an article\";\n return false;\n }\n $old_article = self::getInfo($article_id, false);\n $old_status = $old_article['article_status'];\n $approve_date = $old_article['approval_date'];\n $old_editor = $old_article['editor_id'];\n $cuser_id = User::getID();\n $permission = User::getPermission();\n $allowed_statuses = array(0, 1, 2, '1gd');\n $approve_action = $p['approve_action'];\n if ($approve_action == 'forcec' || $approve_action == 'forcecr') {\n $p['article_status'] = ($approve_action == 'forcec') ? 5 : 3;\n if (!$ret = self::approveArticle($p)) {\n return false;\n }\n } else if (user_is_loggedin() && ($cuser_id == $old_editor) || $permission == 5) {\n //pr($old_status,true);\n if ($approve_action == 'force' && $permission == 3 && strlen(trim($p['comment'])) == 0) {\n $feedback = 'Please comment on article, before approving it ';\n return false;\n }\n if (in_array($old_status, $allowed_statuses)) {\n if ($old_status == '1') {\n $ret = true;\n } else {\n $new_info = $p;\n $new_info['action'] = 'submit';\n $new_info['article_status'] = 1;\n // added by nancy xu 2009-12-15 13:05\n $new_info['cp_updated'] = date(\"Y-m-d H:i:s\");\n // end\n // don't change richtext\n $new_info['hold_richtext'] = true;\n $ret = self::setInfo($new_info);\n }\n if ($ret === false) {\n return false;\n } else {\n\n if (self::setArticleStatus($article_id, '1gc' , 1)) {\n $p['approve_action'] = 'approval';\n if (!$ret = self::approveArticle($p)) {\n \treturn false;\n }\n }\n }\n return true;\n } else {\n $feedback = \"You can't force the article status as approval!\";\n return false;\n }\n } else {\n $feedback = \"You have no privilege to force the article status as approval!\";\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "bb999fea5735f54f932bb9bbe907312a", "score": "0.53430045", "text": "function approval()\n\t{\n\t\t$data_approval = $this->model->get_join_where('tbl_order', 'tbl_obat', 'id_obat', 'id_obat', 'status', 'pending');\n\n\t\t# 2. load approve view\n\t\t$this->view->load_index('pengadaan/approval', array('data_approval' => $data_approval));\n\t}", "title": "" }, { "docid": "704701f72f787a1740377632e7999468", "score": "0.5331048", "text": "public function approvePendingLocal()\n\t{\n\t\tglobal $wpdb;\n\t\t\n\t\t$result = $wpdb->update( \n\t\t\t\t\t\t$this->tableName,\n\t\t\t\t\t\tarray( 'local_status' => 'active' ),\n\t\t\t\t\t\tarray( 'local_status' => 'pending' ),\n\t\t\t\t\t\tarray( '%s' ), array( '%s' )\n\t\t\t\t\t);\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "346cefc41ff3b062299d15f56925921d", "score": "0.53287905", "text": "public function isApproved()\n {\n if ($this->getData('approved') == 1) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "8252fa1c59f520f2a778a1c35d838d70", "score": "0.53195935", "text": "public function getName()\n {\n return 'Manual_Approved';\n }", "title": "" }, { "docid": "76c6b252d77b5aec4d234587715220f7", "score": "0.53152645", "text": "function islandora_critical_edition_replace_apparatus_submit($form, $form_state) {\n $container_object = islandora_object_load($form_state['values']['container_pid']);\n $args = array();\n $args['islandora']['objects'][] = $container_object;\n islandora_critical_edition_advanced_add_apparatus($args);\n drupal_set_message(t('Critical Apparatus is now available'));\n}", "title": "" }, { "docid": "0afbbdc96eed144b03890ba669ceb9e1", "score": "0.52925074", "text": "protected function approved(): array\n {\n $def = $this->buildDefinition( 'approved', 'is record approved?', 'TINYINT', 1, \\true, 0 );\n $def[ 'index' ] = $this->buildIndex( 'Approved Index', [ 'approved' ] );\n return $def;\n }", "title": "" }, { "docid": "458a74a78fd1739a6851892d21197b89", "score": "0.528468", "text": "public function testActionApprove()\n {\n $logic = new Moderate();\n $content = $logic->execute('approve', array(\n Moderate::PARAM_PROMO_CAMPAIGN_USER_OBJECT_ID => 1,\n ));\n\n $this->assertCorrectOutputFormat($content);\n $this->assertTrue($content[Logic::OUTPUT_STATUS]);\n }", "title": "" }, { "docid": "1995202a4a1b8163cbb4d4b8ec599503", "score": "0.5284128", "text": "public function approve($id)\n {\n $rfq = Rfq::find($id);\n $rfq->approved_by = auth()->user()->id;\n $rfq->status = 'Approved';\n $rfq->save();\n return redirect('/rfqs/pending')->with('success', 'RFQ Approved');\n }", "title": "" }, { "docid": "93650667530f9800d9b8e46746cb6e35", "score": "0.5282945", "text": "public function interviewed_and_under_rejected($id){\n\t\t$query = \"UPDATE `applications` SET `status`=3 WHERE aid='$id'\";\n\t\t$result = mysql_query($query);\n\t\tif($result){\n\t\t\theader('location:view_employe_post_jobs.php');\n\t\t}else{\n\t\t\tdie('can not select'.mysql_error());\n\t\t}\n\t}", "title": "" }, { "docid": "356093a2f438a67eb1045d7643a3ab65", "score": "0.5281893", "text": "public function approve_annual($id, $appid)\n {\n $approver_id = $this->session->userdata('account_id');\n $id = $this->uri->segment(3);\n $appid = $this->uri->segment(4);\n $result = $this->account_model->get_account_by_id($id);\n $this->annualfinalreport_model->update_editable($id, 1, $approver_id, $appid);\n \n $this->email_model->send_email($result[0]->account_email, \"<p>Dear \". $result[0]->account_fullname .\", <br/><br/>Edit Request For Annual Final Report Form Approved\", \"<p>Your Request For Editing An Annual Final Report Form Has Been Approved. </p>\");\n \n redirect('editrequest_approval/index');\n }", "title": "" }, { "docid": "30a53b066156e36c08445170280b2208", "score": "0.52743244", "text": "public function flagAsReviewed()\n {\n $this->unstable = 0;\n }", "title": "" }, { "docid": "27f7ba52090099f73e54dc670bcf7af8", "score": "0.52731", "text": "function dashboard_log_comment_approve($comment) {\n\t\t$linked_title = sprintf('<a href=\"%s\">%s</a>',\n\t\t\t\t\t\t\t\t get_url('plugin/comment/edit/' . $comment->id), 'comment');\n\t\t$message = __(':admin_name approved :breadcrumb by :author_name.',\n\t\t\t\t\t\tarray(':author_name' => $comment->author_name,\n\t\t\t\t\t\t\t ':breadcrumb' => $linked_title,\n\t\t\t\t\t\t\t ':admin_name' => AuthUser::getRecord()->name));\n\t\tdashboard_log_event($message, 'core');\n\t}", "title": "" }, { "docid": "9d2fc0daa3139177b9831630162049cd", "score": "0.52717036", "text": "private function beforeSummary()\n\t{\n\t\t$ret = array();\n\t\t$result = OpenPayU_OAuth::accessTokenByCode(Tools::getValue('code'), $this->myUrl.'/validation.php');\n\t\t$cartId = $this->getCartIdBySessionId($_SESSION['sessionId']);\t\t\n\t\tif ($result->getSuccess()) {\n\t\t\t$userEmail = $result->getPayuUserEmail();\n\t\t\tif(!empty($userEmail)){\n\t\t\t\t$customerId = Customer::customerExists($userEmail,true);\n\t\t\t\tif($customerId > 0){\n\t\t\t\t\t$cart = new Cart($cartId);\n\t\t\t\t\t$cart->id_customer = $customerId;\n\t\t\t\t\t$cart->update();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->saveSID($_SESSION['sessionId'],0,'ORDER_STATUS_PENDING',$cartId);\n\t\t\tob_clean();\n\t\t\tHeader(\"Location: \".OpenPayu_Configuration::getSummaryUrl().\"?sessionId=\".$_SESSION['sessionId'].\"&oauth_token=\".$result->getAccessToken());\n\t\t} else {\n Logger::addLog(trim($result->getError() .' ' . $result->getMessage()));\n\t\t}\n\n\t\treturn $ret;\n\t}", "title": "" }, { "docid": "9586f7dac0b9e30821caa116da236551", "score": "0.5270791", "text": "public function approve_ge()\n\t{\n\t\t$g_id = $this->input->post('g_id');\n\t\t$champion_id = $this->session->userdata('user_id');\n\t\t$data = array('g_id'=>$g_id,'champion_id'=>$champion_id);\n\t\t$this->load->model('main_model');\n\t\t$this->main_model->approve_ge($data);\n\t}", "title": "" }, { "docid": "29b8a63a9024f06bb679c8aab6946f7e", "score": "0.52585316", "text": "function approveTechnique ($id) \n {\n $data = array( 'needApproval' => 0 );\n $this->db->where('id', $id)->update('Technique', $data); \n }", "title": "" }, { "docid": "c5a2000c507622e970c01d3e365e6354", "score": "0.52575916", "text": "public function isApproved()\n {\n return $this->status === CourseStatus::APPROVED;\n }", "title": "" }, { "docid": "cddd0cb351e2a483edd7c342573f592e", "score": "0.5252131", "text": "function approveBoutique($id)\n\t{\n\t $this->db->query(\"UPDATE boutique_reg SET status='approved' where b_id=$id\");\n\t}", "title": "" }, { "docid": "9bdaf668b2ead0bbeb9500917119385f", "score": "0.5251308", "text": "function approvalstud(){\n\tif(isset($_POST['allowed']) ){\n\t\t/* if she or he said YES for the association then the pending attributes change to allowed and the student is now present on the tutor tableand the student isn't any more on the looking for a tutor table.\n\t\t*/\n\t\t$dbconn = connectionDB();\n\t\t$nametuteur=$_GET['name'];\n\t\t$surnametuteur=$_GET['surname'];\n\t\t$requete = \"SELECT idtut FROM tutors WHERE nametut='$nametuteur' AND surnametut='$surnametuteur' LIMIT 1\";\n\t\t$res1 = pg_query($requete) or die('Échec de la requête : ' . pg_last_error());\n\t\t$idtuteur = pg_fetch_result($res1, 'idtut');\n\t\t$query = \"UPDATE users SET idtut='$idtuteur', validationtutU='pending' WHERE idU='\".$_POST['myid'].\"'\";\n\t\t$res = pg_query($query) or die('Échec de la requête : ' . pg_last_error());\n\t\t//We want to increment table.logs to save this action and keep an eye on registering requests\n\t\tif (pg_last_error() == NULL) {\n\t\t\t//Request to search id of account just created \n\t\t\t\t\n\t\t\t//SESSION!\n\t\t\t//Add a line in table.Logs with : action made/date/client ip/type of request(insert/delete/update)/and object concerned.\n\t\t\t$request = \"INSERT INTO logs VALUES(DEFAULT, 'tuteur approval student', '\".getTheDate().\"', '\".getIp().\"', 'update', null, '\".$_POST['myid'].\"', null, null, null, null, null)\";\n\t\t\t$resultat = pg_query($request) or die('ERREUR SQL : '. $request . \tpg_last_error());\n\t\t\t//Request for notification popup\n\t\t\t$request = \"SELECT surnameU,nameU FROM users WHERE idU='\".$_POST['myid'].\"'\";\n\t\t\t$result = pg_query($request) or die('ERREUR SQL : '. $request . \tpg_last_error());\n\t\t\t$identity = pg_fetch_array($result,null,PGSQL_ASSOC);\n\t\t\t$i=0;\n\t\t\t//popup content\n\t\t\t$display = '<p>Vous etes désormais le tuteur de ';\n\t\t\tforeach ($identity as $col_value) {\n\t\t\t\tswitch ($i) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\t$display.= $col_value. ' ';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$display.= $col_value.' </p>';\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t\treturn $display;\n\t\t}\n\t}\n\tif(isset($_POST['denied']) ){\n\t\t//If she or he said no to the association then nothing happens and the student stay in the looking for a tutor table\n\t}\n}", "title": "" }, { "docid": "c06b5e5ab0e8c6f0fb2bfb4c0848d18f", "score": "0.52513057", "text": "function get_t_approve($comment) {\n return '<a href=\"#\" onclick=\"fv_tc_approve('.$comment->comment_ID.'); return false\">' . __('Approve', 'fv_tc') . '</a>';\n //return '<a href=\"#\" onclick=\"fv_tc_approve('.$comment->comment_ID.',\\''.$this->esc_url( wp_nonce_url($this->url.'/ajax.php','fv-tc-approve_' . $comment->comment_ID)).'\\', \\''. __('Wait...', 'fv_tc').'\\'); return false\">' . __('Approve', 'fv_tc') . '</a>';\n }", "title": "" }, { "docid": "2024b5c0ca037a905570c9f15b2a1f7b", "score": "0.52508056", "text": "public function arp_approve_article($cond_status=2)\n {\n $cond_status = replace_bad_char($cond_status);\n //quyen \n $granted_category = Session::get('granted_category');\n $granted_category = implode(',', $granted_category);\n\n $a_other_clause = '';\n $c_other_clause = '';\n $ca_other_clause = '';\n\n $c_other_clause = ' And PK_CATEGORY In(' . $granted_category . ')';\n $ca_other_clause = ' And FK_CATEGORY In(' . $granted_category . ')';\n $other_clause_by_status = $this->get_other_clause_by_status();\n \n if ($other_clause_by_status)\n {\n $a_other_clause .= \" And ($other_clause_by_status) And C_STATUS = '$cond_status'\";\n }\n\n $data['arr_all_article'] = $this->model->qry_all_approve_article(\n $a_other_clause\n , $c_other_clause\n , $ca_other_clause\n );\n\n $this->view->render('dsp_arp_approve_article',$data);\n }", "title": "" }, { "docid": "b68ff51f82fc3a42a4549b7b89b6996f", "score": "0.5249779", "text": "public function approve() {\n\t\t$connection=$this->openSQLconnection();\n\t\t$username = $this->Auth->user('username');\n\t\t$date = date(\"Y-m-d H:i:s\");\n\t\t$ringino = $this->data['ringino'];\n\t\t//Get current ringiseq from ringihistories \n\t\t$query = mysql_query(\"SELECT max(ringiseq) maxringino \n\t\t from ringihistories \n\t\t where ringino = $ringino \n\t\t group by ringino\");\n\t\t$array = mysql_fetch_assoc($query);\n\t\t$ringiseq=$array['maxringino'];\n\t\t\n\t\t//Get approverLayer from ringiroutes\n\t\t$query2 = mysql_query(\"SELECT approverLayer \n\t\t \t\t\t\t\t\tfrom ringiroutes\n\t\t\t\t\t\t\t where ringino = $ringino\n\t\t \t\t\t\t\t\t and approverID = '\".$username.\"'\");\n\t\t$array2 = mysql_fetch_assoc($query2) or die(\"approverlayer get failure: \". mysql_error());\n\t\t$approverlayer=$array2['approverLayer'];\n\n\t\t$sql2=\"UPDATE ringiroutes\n\t\t Set approvedate= now(),\n\t\t ringistatus = '002',\n\t\t updator_id = '\".$username.\"',\n\t\t updated_at = now()\n\t\t where ringino = $ringino and approverid = '\".$username.\"'\";\n\n \t$Ringihistory['Ringihistory']['ringino'] = $this->data['ringino'];\n \t$Ringihistory['Ringihistory']['ringiseq'] = $ringiseq+1;\n \t$Ringihistory['Ringihistory']['approverlayer'] = $approverlayer;\n \t$Ringihistory['Ringihistory']['processerid'] = $this->Auth->user('username');\n \t$Ringihistory['Ringihistory']['processdate'] = date(\"Y-m-d H:i:s\");\n \t$Ringihistory['Ringihistory']['ringiaction'] = '002';\n \t$Ringihistory['Ringihistory']['comment'] = $this->data['comment'];\n \t$Ringihistory['Ringihistory']['creator_id'] = $this->Auth->user('username');\n \t$Ringihistory['Ringihistory']['created_at'] = date(\"Y-m-d H:i:s\");\n \t$Ringihistory['Ringihistory']['updator_id'] = NULL;\n \t$Ringihistory['Ringihistory']['updated_at'] = NULL;\n \n \n \t$this->Ringihistory->save($Ringihistory);\n\n\t\tif ($connection) {\n\t\t\t$query = mysql_query($sql2) or die(mysql_error());\n\t\t} else {\n\t\t\techo \"Approve is failure when update the data into database\";\n\t\t}\n\t\t$this->redirect(array('action' => 'task'));\n\t}", "title": "" }, { "docid": "42866cd25f8dcbc5a243e42f54ed8f63", "score": "0.52453446", "text": "public function execute()\n {\n $customerId = $this->getRequest()->getParam('customer_id');\n\n $custCollection = $this->_objectmanager\n ->create('Magento\\Customer\\Model\\Customer')\n ->load($customerId);\n $customerData = $custCollection\n ->getDataModel();\n\n $currentStatus = $customerData\n ->getCustomAttribute('is_approved');\n\n $statusValue = 1;\n $customerData->setCustomAttribute('is_approved',\n $statusValue);\n $custCollection->updateData($customerData);\n try{\n \t$custCollection->save();\n } catch(\\Exception $e) {\n \t$e->getMessage();\n }\n\n $isSendApprovalEmailToCustomer = $this->_datahelper\n ->isSendApprovalEmailToCustomer();\n\n if ($statusValue\n && $isSendApprovalEmailToCustomer\n ) {\n\n $senderDetails = $this->_datahelper\n ->getSenderdetail();\n\n $this->_inlinetranslation\n ->suspend();\n try {\n $custAprvlEmailTemplate = $this->_datahelper\n ->getcustAprvlEmailTemplate();\n $fname = $customerData->getFirstname();\n $lname = $customerData->getLastname();\n $customerName = $fname . \" \" . $lname;\n $data = [\n 'name' => $this->_escaper\n ->escapeHtml($customerName),\n 'email' => $this->_escaper\n ->escapeHtml($customerData->getEmail()),\n ];\n $dataObject = new \\Magento\\Framework\\DataObject();\n $dataObject->setData($data);\n\n $sender = $senderDetails;\n\n $storeScope = \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE;\n $transport = $this->_transportbuilder\n ->setTemplateIdentifier($custAprvlEmailTemplate)\n ->setTemplateOptions(\n [\n 'area' => \\Magento\\Framework\\App\\Area::AREA_FRONTEND,\n 'store' => \\Magento\\Store\\Model\\Store::DEFAULT_STORE_ID,\n ]\n )\n ->setTemplateVars(['data' => $dataObject])\n ->setFrom($sender)\n ->addTo($customerData->getEmail(), $storeScope)\n ->getTransport();\n $transport->sendMessage();;\n $this->_inlinetranslation->resume();\n\n } catch (\\Exception $e) {\n $this->messageManager\n ->addSuccess(__($e->getMessage()));\n }\n }\n\n $this->messageManager->addSuccess(__('Customer account approved successfully'));\n $resultRedirect = $this->resultFactory\n ->create(ResultFactory::TYPE_REDIRECT);\n return $resultRedirect\n ->setPath('/');\n }", "title": "" }, { "docid": "c0315c9aed41e31cc4fedaf49667d938", "score": "0.5236061", "text": "function own_approve_user($user_id) {\n\n\t$user = new WP_User( $user_id );\n\n\twp_cache_delete( $user->ID, 'users' );\n\twp_cache_delete( $user->data->user_login, 'userlogins' );\n\t$email_type = 'core-user-approved';\n\n\tdo_action( 'new_user_approve_user_approved', $user );\n\n\t$unsubscribe_args = array(\n\t\t'user_id' => $user->ID,\n\t\t'notification_type' => $email_type,\n\t);\n\t$args = array(\n\t\t'tokens' => array(\n\t\t),\n\t);\n\n\tbp_send_email( $email_type, $user->ID, $args );\n\n\t// change usermeta tag in database to approved\n\tupdate_user_meta( $user->ID, 'pw_user_status', 'approved' );\n}", "title": "" }, { "docid": "067eef0c1f5a124b5480519450b13396", "score": "0.52218634", "text": "function autoApproveArticle($p = array(), $old_article = array())\n {\n global $conn, $feedback;\n ini_set(\"max_execution_time\", 120);\n\n $action_info = array();\n foreach ($p as $k => $v) {\n $p[$k] = addslashes(htmlspecialchars(trim($v)));\n }\n extract($p);\n\n if ($article_id == '') {\n $feedback = \"Please Choose an article\";\n return false;\n }\n $old_status = $old_article['article_status'];\n if ($title == '') {\n $feedback = \"Please provide the title of the article\";\n return false;\n }\n if ($richtext_body == '') {\n $feedback = \"Please provide article\";\n return false;\n }\n\n // if action is not save, then check the article is finished or not\n if ($old_status == 5 || $old_status == 6) {\n if ($approve_action == 'publish' && $old_status == 5) {\n // do nothing\n } else {\n $feedback = \"This article was finished, you can't change it to other article status.\";\n return false;\n }\n }\n $article_status = $p['article_status'];\n if ($approve_action == 'reject') { // user rejected\n // current article status is cp completed or editor rejected,\n // all of those articles are need to wait for google checking\n switch ($old_status)\n {\n case '0':\n $feedback = \"Copy Writer doesn't finish this article. Please wait google checking this article\";\n return false;\n break;\n case '1':\n $feedback = \"Please wait the google checking this article\";\n return false;\n break;\n }\n } elseif ($approve_action == 'creject') { // client rejected\n // all of those articles are need to wait for editor approval, when login as client\n if ($old_status <= \"2\") {\n $feedback = \"Please wait editor approving this article\";\n return false;\n }\n } elseif ($approve_action == 'approval') {// editer approval\n // all of those articles are need to wait for google checking\n switch ($old_status)\n {\n case '0':\n $feedback = \"Copy Writer doesn't finish this article. Please wait the google checking this article\";\n return false;\n break;\n case '1':\n $feedback = \"Please wait the google checking this article\";\n return false;\n break;\n case '2':\n $feedback = \"This article has been requested for edit by the editor. Please wait for the google checking on this article to complete.\";\n return false;\n break;\n case '1gd':// change the google duplication to google clean\n if (!self::setArticleStatus($article_id, '1gc', '1gd')) {\n $feedback = \"Failure, Please try again\";\n return false;\n }\n break;\n } // end\n } elseif ($approve_action == 'capproval') { // client approval\n if ($old_status <= \"2\") {\n $feedback = \"Please wait editor approving this article\";\n return false;\n } elseif ($old_status == \"3\"){\n $feedback = \"This article was rejected by client. Please wait editor approving this article\";\n return false;\n }\n } elseif ($approve_action == 'forcec') {//force client approve\n $article_status = 5;\n } elseif ($approve_action == 'submit') {//cp confirmf\n $article_status = 1;\n // added by snug xu 2007-07-22 1:02 - STARTED\n } elseif ($approve_action == 'publish') {//client publish\n // when old article status is not client approval, article status can't change to published\n if ($old_status == 5) {\n $article_status = 6;\n } else {\n $feedback = \"Please wait client approving this article.\";\n return false;\n }\n // when article status is copywriter completed, then change article status to '1gd' or '1gc'\n } elseif ($approve_action== '1gc' || $approve_action == '1gd') {\n if ($old_status == '1') {\n $article_status = $approve_action;\n } else {\n $feedback = \"You have no right to change this article to google clean or google duplicated.\";\n return false;\n }\n // added by snug xu 2007-10-07 13:50 - FINISHED\n } else {\n $article_status = $old_status;\n }\n\n // initialize article action info\n $action_info = $old_article;\n self::getArticleActionInfo($action_info, $article_id);\n\n\n $now = time();\n $conn->StartTrans();\n $data = array('article_status' => $article_status);\n if ($old_status != $article_status && $article_status == 5) {// create new version\n $version_history_id = $conn->GenID('seq_articles_version_history_version_history_id');\n $q = self::generateArticleHistorySql($version_history_id, $old_article);\n \n $conn->Execute($q);\n $qu .= \"current_version_number = current_version_number + 0.1, \";\n\t\t\t $qu .=\"`creation_date` = '\" . date('Y-m-d H:i:s', $now) . \"', \";//当新的version创建时,就会修改这一状态\n // added by snug xu 2006-11-21 15:49 - START\n // initialize article action new version\n $action_info['new_version'] = $old_article['current_version_number'] + 0.1;\n $data['current_version_number'] = $action_info['new_version'];\n // added by snug xu 2006-11-21 15:49 - END\n }\n\n if ($article_status == 2 && $old_article['is_sent'] == 0) {\n $allow_status = array('1gc', '3', '4');\n if (in_array($old_status, $allow_status)) {\n $cpph_month = $old_article['target_pay_month'];\n if ($cpph_month <= 0) {\n $cpph_month = date(\"Ym\", strtotime($old_article['google_approved_time']));\n }\n $cpph_param = array('user_id' => $old_article['copy_writer_id'] , 'month' => $cpph_month);\n $email_keywords = array();\n $pay_report = User::getCpPaymentHistory($cpph_param, false);\n // get payment flow status\n $payment_status = $pay_report[$old_article['copy_writer_id']][$cpph_month]['payment_flow_status'];\n if ($payment_status == 'cpc' || $payment_status == 'paid') {\n $email_keywords[$old_article['editor_id']][$old_article['copy_writer_id']][] = $old_article;\n }\n if($article_status == 3) {\n $hint = \"Article(s) have been rejected by client\";\n } else if($article_status == 2) {\n $hint = \"Article(s) have been requested for edit by the Editor\";\n }\n if (count($email_keywords)) {\n $send_status = \"is_sent=1\";\n $update_send_status = \"UPDATE campaign_keyword set {$send_status} WHERE keyword_id='{$old_article['keyword_id']}'\";\n }\n }\n }\n $article_info = $old_article;\n $today = date('Y-m-d H:i:s', $now);\n \n if ($approve_action == 'capproval' || $approve_action == 'forcec') {\n if ($approve_action == 'forcec' && $old_status == '1gc') $data['approval_date'] = $today;\n $data['client_approval_date'] = $today;\n if ($article_status == '5') {\n ArticlePaymentLog::storeFromClientApproval($now, $old_article);\n }\n $article_info['client_approval_date'] = $today;\n if ($old_status == '1gc' && $article_status == '5') {\n $article_info['approval_date'] = $today;\n }\n } else if ($approve_action == 'approval') {\n $data['approval_date'] = $today;\n $article_info['approval_date'] = $today;\n } else if ($approve_action == 'submit') {\n $data['cp_updated'] = $today;\n $article_info['cp_updated'] = $today;\n } else if ($article_status == 2) {\n $article_info['google_approved_time'] = '0000-00-00 00:00:00';\n }\n $sql = \"UPDATE articles SET \";\n $sets = array();\n foreach ($data as $k => $v ) {\n $sets[] = $k . '=\\'' . $v . '\\'';\n }\n $sql .= implode(\", \", $sets) . \" WHERE article_id = '\" . $article_id . \"' \";\n $conn->Execute($sql);\n\n if ($article_status == 5) {\n $q = self::updateCampaignArticleSummary($article_info, $now);\n $conn->Execute($q);\n }\n\n\t\tif ($article_status == 2) {\n $q = \"UPDATE articles \".\n \"SET google_approved_time = '0000-00-00 00:00:00' \".\n \"WHERE article_id = '\".$article_id.\"' \";\n $conn->Execute($q);\n }\n if ($article_status == 2 && count($email_keywords)) {\n }\n if ($article_status== '4' && $old_status != '4') {\n Campaign::updateArticleStatus($article_id, 'completed');\n }\n\n $ok = $conn->CompleteTrans();\n\n if ($ok) {\n // self::updateMetaInfo($p);\n // if aticle status is changes\n // record this action to aticle action table \n if (strcasecmp($action_info['status'], $article_status) != 0 || $action_info['new_version'] != $action_info['version']) {\n $action_info['new_status'] = $article_status;\n ArticleAction::store($action_info);\n }\n $feedback = 'Success'; \n $comment = '';\n if ($approve_action == '1gd') {\n self::sendDuplicatedEmail($article_id);\n } else if (strcasecmp($old_status, $p['article_status']) != 0) {\n if ( $approve_action == 'reject') {\n self::autoSendAnnouceMail(\"reject\", $keyword_id, $comment);\n } else if ($approve_action == 'creject') { \n // Writer get emailed when a client rejects an article and the editor makes the changes\n if ($p['article_status'] == 3 ) {\n self::autoSendAnnouceMail(\"creject\", $keyword_id, $comment);\n }\n }\n }\n return true;\n } else {\n $feedback = 'Failure, Please try again';\n return false;\n }\n\n }", "title": "" }, { "docid": "74c6362d533e8a4f53e9e87385a7b372", "score": "0.5220928", "text": "public function approve_procurement($id, $appid)\n {\n $approver_id = $this->session->userdata('account_id');\n $id = $this->uri->segment(3);\n $appid = $this->uri->segment(4);\n $result = $this->account_model->get_account_by_id($id);\n $this->procurement_model->update_editable($id, 1, $approver_id, $appid);\n \n $this->email_model->send_email($result[0]->account_email, \"<p>Dear \". $result[0]->account_fullname .\", <br/><br/>Edit Request For Pre-purchase Material Risk Assessment Form Approved\", \"<p>Your Request For Editing A Pre-purchase Material Risk Assessment Form Has Been Approved. </p>\");\n \n redirect('editrequest_approval/index');\n }", "title": "" }, { "docid": "dc2f2b085abdac2e4541ff77de1c92ba", "score": "0.5205647", "text": "function approve_due()\r\n\t{\r\n\t\t$data=array('Vehicle_due_dtl_status'=>'A');\r\n\t\t$this->db->where('Vehicle_due_dtl_vehicle_no',$this->input->get('id'));\r\n\t\t$this->db->update('vehicle_due_details',$data);\r\n\t\treturn true;\t \r\n\t}", "title": "" }, { "docid": "531bd43a8187c0cc106b088f9ef36f32", "score": "0.5202196", "text": "function ajax_disapprove_function($form, &$form_state) {\r\n$values=$form_state['values'];\r\n$i=$form_state['triggering_element']['#name'];\r\n\t\t\t$stat_upd = db_update('userpoints_trnscts')\r\n\t\t\t->fields(array(\r\n\t\t\t'approved' => '3',\r\n\t\t\t))\r\n\t\t\t->condition('trid', $values['trid'.$i], '=')\r\n\t\t\t->execute();\r\n $form['result'] = array(\r\n '#markup' => 'Declined',\r\n );\r\n return $form;\r\n}", "title": "" }, { "docid": "ffbb72e9d8b0816622e68827c0def827", "score": "0.5198893", "text": "public function approveAll()\n\t\t{\n\t\t\tglobal $con;\n\t\t\t$sql = \"UPDATE user SET active = 1 WHERE active = 0\";\n\t\t\t$result = mysqli_query($con,$sql);\n\t\t\tif($result)\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//debug_backtrace();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "411fe2aaa721e0e6a1bff2b80cadb31f", "score": "0.5198093", "text": "public function approve($modId,$actionStatus,$compID)\n {\n $query=\"UPDATE complain SET modID='$modId',actionStatus='$actionStatus' WHERE complainId = '$compID'\";\n mysqli_query($GLOBALS['db'], $query);\n }", "title": "" }, { "docid": "3a26306542f1951e4dcd6befd651a1dc", "score": "0.51963806", "text": "public function Approve()\n {\n $this->routeAuth();\n\n $this->standardAction('Approve');\n }", "title": "" }, { "docid": "cbeb3725899653890803323e6784a151", "score": "0.5192637", "text": "public function getApproved()\n\t{\n\t\treturn $this->approved;\n\t}", "title": "" }, { "docid": "fe90ebe1800bde8dff40e2d08c31096c", "score": "0.51852435", "text": "function admin_gallery_approvals() {\n\t\t\t\t$this->db->select('gallery_approve');\n\t\t\t\t$this->db->where('user', 'webadmin');\n\t\t\t\t$res = $this->db->get('pt_app_settings')->result();\n\t\t\t\t$isadmin = $this->session->userdata('pt_logged_admin');\n\t\t\t\tif (empty ($isadmin)) {\n\t\t\t\t\t\treturn $res[0]->gallery_approve;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\treturn '1';\n\t\t\t\t}\n\t\t}", "title": "" }, { "docid": "7437e181e843e64596d21ebbe6743ed1", "score": "0.5182794", "text": "public function action_update_check()\n\t{\n\t \tUpdate::add( 'CreditDue', 'fb0b8460-38f2-11dd-ae16-0800200c9a66', $this->info->version );\n\t}", "title": "" }, { "docid": "1972b806228e3fd5d19800c63dc4c30d", "score": "0.51688987", "text": "public function getApproved()\n {\n return $this->approved;\n }", "title": "" }, { "docid": "1972b806228e3fd5d19800c63dc4c30d", "score": "0.51688987", "text": "public function getApproved()\n {\n return $this->approved;\n }", "title": "" }, { "docid": "0a13ef4939c5383de9f7a6c43277e6d5", "score": "0.5164217", "text": "private function approvePreliminary( $data ) {\n $loc = __CLASS__ . '::' . __FUNCTION__;\n $this->log->error_log(\"$loc\");\n\n $this->eventId = $data[\"eventId\"];\n $bracketName = $data[\"bracketName\"];\n $mess = __('Approve succeeded.', TennisEvents::TEXT_DOMAIN );\n try { \n if( !current_user_can( TE_Install::MANAGE_EVENTS_CAP ) ) {\n throw new Exception(\"Insufficient privileges\");\n } \n $event = Event::get( $this->eventId );\n $td = new TournamentDirector( $event );\n $td->approve( $bracketName );\n $td->advance( $bracketName );\n }\n catch( Exception $ex ) {\n $this->errobj->add( $this->errcode++, $ex->getMessage() );\n $mess = $ex->getMessage();\n }\n\n return $mess;\n }", "title": "" }, { "docid": "127b02fa2f846eeff10a4dfa604eea2f", "score": "0.5159312", "text": "function test_bug02(){\n $this->createState();\n \n $this->clearRequest(); Utils::clearLog();\n $_POST = $this->purchase_6_10_At(15);\n $_GET = array('page' => 'thefirmpay');\n $cont = new \\controller\\Assignseating();\n $this->assertFalse($cont->ok);\n \n }", "title": "" }, { "docid": "30c9196a6c9cc2d93e727373f187cf9c", "score": "0.51545346", "text": "function confirmThisBag($username, $qSealNumber, $tamount, $tamountbcnew, $bcsId, $clientId, $branch, $currency, $d1000, $d1000Amount, $d1000Category, $d500, $d500Amount, $d500Category, $d200, $d200Amount, $d200Category, $d100, $d100Amount, $d100Category, $d50, $d50Amount, $d50Category, $d20, $d20Amount, $d20Category, $d10, $d10Amount, $d10Category, $d5, $d5Amount, $d5Category, $d1, $d1Amount, $d1Category, $amount, $bundleConfirmationComment, $addedOn)\n{\n require('../core/db.php');\n $confirmationStatus = '';\n // Check If Seal Number Has a pending excemption\n if (hasException($qSealNumber)) {\n $confirmationStatus = 'Awaiting Supervisor Approval';\n } else {\n $confirmationStatus = 'Confirmed';\n }\n $sql = \"UPDATE cits SET \n bundle_confirmed = 'YES', \n bundle_confirmed_by = '$username', \n bundle_confirmed_comment = '$bundleConfirmationComment', \n bundle_confirmed_on = '$addedOn',\n bundle_confirmation_status = '$confirmationStatus'\n WHERE seal_number = '$qSealNumber' \";\n if ($con->query($sql) === true) {\n // Update Internal Movement\n if ($tamountbcnew < $tamount) {\n $sql = \"UPDATE internalmovements SET is_opened = 'YES', bc = 'NO' WHERE seal_number = '$qSealNumber' \";\n if ($con->query($sql) === true) {\n echo \"\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n } else {\n $sql = \"UPDATE internalmovements SET is_opened = 'YES', bc = 'YES' WHERE seal_number = '$qSealNumber' \";\n if ($con->query($sql) === true) {\n // Update CPs And Set Is Confirmed to YES\n $sql = \"UPDATE evacuationpreparations SET \n is_bceed = 'YES'\n WHERE seal_number = '$qSealNumber' \";\n if ($con->query($sql) === true) {\n echo \"\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n echo \"\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n }\n \n // Update Cash Preparations And Set Total Amount BC\n $sql = \"UPDATE evacuationpreparations SET total_amount_bc = '$tamountbcnew', is_opened = 'YES' WHERE seal_number = '$qSealNumber' \";\n if ($con->query($sql) === true) {\n echo \"\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n // Insert Into Bundle Confirmation Table\n $sql = \"INSERT INTO bundleconfirmationbags (bundleconfirmation_id, client, branch, seal_number, currency, d1000, d1000_category, d1000_amount, d500, d500_category, d500_amount, d200, d200_category, d200_amount, d100, d100_category, d100_amount, d50, d50_category, d50_amount, d20, d20_category, d20_amount, d10, d10_category, d10_amount, d5, d5_category, d5_amount, d1, d1_category, d1_amount, amount, added_on, added_by)\n VALUES ('$bcsId', '$clientId', '$branch', '$qSealNumber', '$currency', '$d1000', '$d1000Category', '$d1000Amount', '$d500', '$d500Category', '$d500Amount', '$d200', '$d200Category', '$d200Amount', '$d100', '$d100Category', '$d100Amount', '$d50', '$d50Category', '$d50Amount', '$d20', '$d20Category', '$d20Amount', '$d10', '$d10Category', '$d10Amount', '$d5', '$d5Category', '$d5Amount', '$d1', '$d1Category', '$d1Amount', '$amount', '$addedOn', '$username')\";\n\n if ($con->query($sql) === true) {\n echo \"\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n echo \"confirmed\";\n } else {\n echo \"Error: \" . $sql . \"<br>\" . $con->error;\n }\n}", "title": "" }, { "docid": "ae39a6f067fc1e58d10a153186fcc14f", "score": "0.51521903", "text": "function listBox_import_analisa_principal_iApprove_bdirm($value) {\r\n\t\t/* $appd = $this->db_plc0->get_where('plc2.plc2_status', array('idplc2_status' => $value))->row_array();\r\n\t\tif($value==0){$appd['vCaption']=\"Waiting For Approval\";} */\r\n\t\tif($value==0){$vstatus='Waiting for approval';}\r\n\t\telseif($value==1){$vstatus='Rejected';}\r\n\t\telseif($value==2){$vstatus='Approved';}\r\n\t\treturn $vstatus;\r\n\t}", "title": "" }, { "docid": "a9e4862121f1299d226513bf52a07520", "score": "0.51466024", "text": "public function approve($id)\n {\n // dd($approver);\n $agenda = Agenda::find($id);\n $agenda->status = 'Approved';\n $agenda->save();\n return redirect('/agenda')->with('success', 'Status Change success, Agenda has been Approved');\n //\n }", "title": "" }, { "docid": "3fb27ad551b0e0d95d5d56528b155604", "score": "0.51446223", "text": "public function HodApproval() {\n\n\t\t$user_id=$GLOBALS['ui']->SuperiorID();\n\n\t\t$db=$GLOBALS['db'];\n\t\t$sql=\"INSERT INTO \".$GLOBALS['database_prefix'].\"leave_application_approval\n\t\t\t\t\t(application_id,user_id)\n\t\t\t\t\tVALUES (\n\t\t\t\t\t'\".$this->application_id.\"',\n\t\t\t\t\t'\".$user_id.\"'\n\t\t\t\t\t)\";\n\t\t$result = $db->Query($sql);\n\n\t}", "title": "" }, { "docid": "0db01a05f5e69749838cd0dba638ff8d", "score": "0.5142573", "text": "public function testUpdateOrganizationApplianceSecurityIntrusion()\n {\n }", "title": "" }, { "docid": "3c82d9cc43363d06aba9037d0f5596d3", "score": "0.51415837", "text": "function send_approved_email( $id, $name )\n {\n $params = array(\n ':entity_type' => $this->kernel->db->escape( $_GET['entity'] ),\n ':entity_id' => $id\n );\n\n // Get the requested recipients\n $sql = 'SELECT DISTINCT u.* FROM approval_requests AS ar';\n $sql .= ' JOIN users AS u ON (ar.requested_by = u.id)';\n $sql .= ' WHERE ar.type = :entity_type AND ar.target_id = :entity_id AND u.enabled = 1';\n $sql = strtr( $sql, $params );\n $statement = $this->kernel->db->query( $sql );\n if ( !$statement )\n {\n $this->kernel->quit( 'DB Error: ' . array_pop($this->kernel->db->errorInfo()), $sql, __FILE__, __LINE__ );\n }\n $recipients = $statement->fetchAll();\n\n // Send email to recipients\n if ( count($recipients) > 0 )\n {\n // Compose email\n $data = compact( 'id', 'name' );\n $this->kernel->smarty->assignByRef( 'data', $data );\n $lines = explode( \"\\n\", $this->kernel->smarty->fetch(\"module/entity_admin/locale/{$this->kernel->request['locale']}_approved_email.html\") );\n $this->kernel->mailer->isHTML( TRUE );\n $this->kernel->mailer->ContentType = 'text/html';\n $this->kernel->mailer->Subject = trim( array_shift($lines) );\n $this->kernel->mailer->Body = implode( \"\\n\", $lines );\n foreach ( $recipients as $recipient )\n {\n $this->kernel->mailer->addAddress( $recipient['email'], $recipient['first_name'] );\n }\n\n // Send email\n try\n {\n $this->kernel->mailer->send();\n $sql = 'DELETE FROM approval_requests WHERE type = :entity_type AND target_id = :entity_id';\n $sql = strtr( $sql, $params );\n $statement = $this->kernel->db->query( $sql );\n if ( !$statement )\n {\n $this->kernel->quit( 'DB Error: ' . array_pop($this->kernel->db->errorInfo()), $sql, __FILE__, __LINE__ );\n }\n }\n catch( Exception $e )\n {\n $this->kernel->log( 'message', sprintf(\n \"User %d experienced failure in sending mail: %s\\n\",\n $this->user->getId(),\n $e->getTraceAsString()\n ), __FILE__, __LINE__ );\n }\n $this->kernel->mailer->ClearAllRecipients();\n }\n }", "title": "" }, { "docid": "f61a7339d4f6a154c56bc11630868cf6", "score": "0.513992", "text": "function getNomineesRequiringApproval($sessionID);", "title": "" }, { "docid": "158e460b32afe10bdd7830e11e0700b8", "score": "0.5132796", "text": "function saveApproveProof($args, &$request) {\n\t\t$monographFile =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH_FILE);\n\t\t$monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);\n\n\t\t// Make sure we only alter files associated with a publication format.\n\t\tif ($monographFile->getAssocType() !== ASSOC_TYPE_PUBLICATION_FORMAT) {\n\t\t\tfatalError('The requested file is not associated with any publication format.');\n\t\t}\n\t\tif ($monographFile->getViewable()) {\n\n\t\t\t// No longer expose the file to readers.\n\t\t\t$monographFile->setViewable(false);\n\t\t} else {\n\n\t\t\t// Expose the file to readers (e.g. via e-commerce).\n\t\t\t$monographFile->setViewable(true);\n\n\t\t\t// Log the approve proof event.\n\t\t\timport('classes.log.MonographLog');\n\t\t\timport('classes.log.MonographEventLogEntry'); // constants\n\t\t\t$user =& $request->getUser();\n\n\t\t\t$publicationFormatDao =& DAORegistry::getDAO('PublicationFormatDAO');\n\t\t\t$publicationFormat =& $publicationFormatDao->getById($monographFile->getAssocId(), $monograph->getId());\n\n\t\t\tMonographLog::logEvent($request, $monograph, MONOGRAPH_LOG_PROOFS_APPROVED, 'submission.event.proofsApproved', array('formatName' => $publicationFormat->getLocalizedName(),'name' => $user->getFullName(), 'username' => $user->getUsername()));\n\t\t}\n\n\t\t$submissionFileDao =& DAORegistry::getDAO('SubmissionFileDAO');\n\t\t$submissionFileDao->updateObject($monographFile);\n\n\t\t// update the monograph's file index\n\t\timport('classes.search.MonographSearchIndex');\n\t\tMonographSearchIndex::clearMonographFiles($monograph);\n\t\tMonographSearchIndex::indexMonographFiles($monograph);\n\n\t\treturn DAO::getDataChangedEvent($monographFile->getId());\n\t}", "title": "" }, { "docid": "139d24c100da9896ef9eaf3ccca0fb1b", "score": "0.51266325", "text": "public function approve_swp($id, $appid)\n {\n $approver_id = $this->session->userdata('account_id');\n $id = $this->uri->segment(3);\n $appid = $this->uri->segment(4);\n $result = $this->account_model->get_account_by_id($id);\n $this->swp_model->update_editable($id, 1, $approver_id, $appid);\n \n $this->email_model->send_email($result[0]->account_email, \"<p>Dear \". $result[0]->account_fullname .\", <br/><br/>Edit Request For Safety Work Procedure Form Approved\", \"<p>Your Request For Editing A Edit Request For Safety Work Procedure Form Has Been Approved. </p>\");\n \n redirect('editrequest_approval/index');\n }", "title": "" }, { "docid": "18718b806386c743bf087e4df552e482", "score": "0.5126097", "text": "function approveUser($id){\n $this->user = DB::table('users')\n ->where('id', $id)\n ->update(['registration_status' => 'approved']);\n $this->req = DB::table('users')\n ->where('registration_status','approved')->count();\n $this->pendingRequest=DB::table('users')->where('registration_status','=','pending')->get();\n return view('home',array('user' => Auth::user(),\n 'req' => $this->req,\n 'reports' => $this->reports,\n 'pendingRequest' =>$this->pendingRequest,\n 'totalPosts'=>$this->totalPosts ));\n \n }", "title": "" }, { "docid": "8a1fda7a24e70cd6e2a38f693d47bae8", "score": "0.51110864", "text": "public function approveMU($action='0',$denial_reason='',$to_hr='0'){\n\t\t// TO FOLLOW...\n\t\t\n\t\t$success = false;\n\t\t$emp_id = Yii::app()->user->getState('emp_id');\n\t\t$now = new CDbExpression('NOW()');\n\t\t$access_lvl = Yii::app()->user->getState('access_lvl_id');\n\t\t\n\t\t// catch all if current user is also the reliever\n\t\tif($this->userIsReliever()){\n\t\t\t$this->reliever_id = $emp_id;\n\t\t\t$this->reliever_approve = $action;\n\t\t\t$this->reliever_approve_datetime = $now;\n\t\t}\n\t\t\n\t\tswitch($access_lvl){\n\t\t\tcase HrisAccessLvl::$EMPLOYEE :\n\t\t\t\t$this->next_lvl_id = ($action == '0') ? HrisAccessLvl::$ULTIMATELY_DENIED : HrisAccessLvl::$SUPERVISOR;\n\t\t\t\t/******\n\t\t\t\t* !!! The case of sup/mgr/hr having an employee as a reliever !!!\n\t\t\t\t*******/\n\t\t\t\ttry{\n\t\t\t\t\t$applicant = HrisUsers::model()->findByPk($this->emp_id);\t\t\t\t\n\t\t\t\t\tswitch($applicant->access_lvl_id){\n\t\t\t\t\t\tcase HrisAccessLvl::$SUPERVISOR : \n\t\t\t\t\t\t\t$this->next_lvl_id = HrisAccessLvl::$MANAGER;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase HrisAccessLvl::$MANAGER : \n\t\t\t\t\t\t\t$this->next_lvl_id = HrisAccessLvl::$HR;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase HrisAccessLvl::$HR : \n\t\t\t\t\t\t\t$this->next_lvl_id = HrisAccessLvl::$ULTIMATELY_APPROVED;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception $failyou){\n\t\t\t\t\tYii::log('BUG! The case of sup/mgr/hr having an employee as a reliever FAILED for LOA ID '.$this->id.' | '.$failyou->getMessage(),'info','app');\n\t\t\t\t}\n\t\t\t\t$success = true;\n \n\t\t\tbreak;\n\t\t\tcase HrisAccessLvl::$SUPERVISOR :\n\t\t\t\t$this->sup_id = $emp_id;\n\t\t\t\t$this->sup_approve = $action;\n\t\t\t\t$this->sup_approve_datetime = $now;\n\t\t\t\t$this->sup_disapprove_reason = ($action == '0') ? $denial_reason : NULL;\n\t\t\t\t$this->next_lvl_id = ($to_hr=='1') ? HrisAccessLvl::$HR : HrisAccessLvl::$MANAGER;\n\t\t\t\t$this->next_lvl_id = ($action == '0') ? HrisAccessLvl::$ULTIMATELY_DENIED : $this->next_lvl_id;\n\t\t\t\t$success = true;\n\t\t\tbreak;\n\t\t\tcase HrisAccessLvl::$MANAGER :\n\t\t\t\t$this->mgr_id = $emp_id;\n\t\t\t\t$this->mgr_approve = $action;\n\t\t\t\t$this->mgr_approve_datetime = $now;\n\t\t\t\t$this->mgr_disapprove_reason = ($action == '0') ? $denial_reason : NULL;\n\t\t\t\t$this->next_lvl_id = ($action == '0') ? HrisAccessLvl::$ULTIMATELY_DENIED : HrisAccessLvl::$HR;\n\t\t\t\t$success = true;\n\t\t\tbreak;\n\t\t\tcase HrisAccessLvl::$HR :\n\t\t\t\t$this->hr_id = $emp_id;\n\t\t\t\t$this->hr_approve = $action;\n\t\t\t\t$this->hr_approve_datetime = $now;\n\t\t\t\t$this->hr_disapprove_reason = ($action == '0') ? $denial_reason : NULL;\n\t\t\t\t$this->next_lvl_id = ($action == '0') ? HrisAccessLvl::$ULTIMATELY_DENIED : HrisAccessLvl::$ULTIMATELY_APPROVED;\n\t\t\t\tif($action=='0') $success = true;\t\t\t\t\n\t\t\t\tif($action=='1'){\n\t\t\t\t\tif($this->job_code_id == '2010' or $this->job_code_id == '2011'){ // LOAs without Pay\n\t\t\t\t\t\t//do nothing\n\t\t\t\t\t\t$success = true;\n\t\t\t\t\t}elseif($this->logHours()){\n\t\t\t\t\t\t$success = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tYii::log(\"Error: Can't decide with this MU ID \".$this->id,'info','app');\n\t\t\t\t\t\t$success = false;\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\tbreak;\n\t\t\tcase HrisAccessLvl::$PAYROLL_MASTER :\n $this->next_lvl_id = ($this->next_lvl_id == HrisAccessLvl::$ULTIMATELY_APPROVED) ? HrisAccessLvl::$APPROVED_COPY_FURNISHED : $this->next_lvl_id;\n $success = true;\n\t\t\tbreak;\n\t\t}\n\n\t\tif($success)\n\t\t\t$this->queueEmail(); \n\t\treturn $success;\n\t}", "title": "" }, { "docid": "01ef116bf55e874f15861c6a745a26c1", "score": "0.511023", "text": "function approveProofs($args, &$request) {\n\t\t$this->setupTemplate();\n\t\t$press =& $request->getPress();\n\t\t$monograph =& $this->getAuthorizedContextObject(ASSOC_TYPE_MONOGRAPH);\n\t\t$publicationFormatId = $request->getUserVar('publicationFormatId');\n\t\t$publicationFormatDao =& DAORegistry::getDAO('PublicationFormatDAO'); /* @var $publicationFormatDao PublicationFormatDAO */\n\n\t\t$publicationFormat = $publicationFormatDao->getById($publicationFormatId, $monograph->getId(), $press->getId());\n\t\tif (!is_a($publicationFormat, 'PublicationFormat')) {\n\t\t\tfatalError('Invalid publication format id!');\n\t\t}\n\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->assign_by_ref('publicationFormat', $publicationFormat);\n\t\t$templateMgr->assign_by_ref('monograph', $monograph);\n\n\t\treturn $templateMgr->fetchJson('controllers/modals/editorDecision/approveProofs.tpl');\n\t}", "title": "" }, { "docid": "03ded1e4402bcfe0d1a0756886f0d25b", "score": "0.5107983", "text": "public function approve($id, $appid)\n {\n $approver_id = $this->session->userdata('account_id');\n $id = $this->uri->segment(3);\n $appid = $this->uri->segment(4);\n $result = $this->account_model->get_account_by_id($id);\n $this->annex2_model->update_editable($id, 1, $approver_id, $appid);\n \n //Send email to applicant let them know their form submission has been fully approved\n $this->email_model->send_email($result[0]->account_email, \"<p>Dear \". $result[0]->account_fullname .\", <br/><br/>Edit Request For Annex 2 Form Approved\", \"<p>Your Request For Editing An Annex 2 Form Has Been Approved. </p>\");\n \n redirect('editrequest_approval/index');\n }", "title": "" }, { "docid": "d1696a4bc0a329501930bcd29055c648", "score": "0.51001644", "text": "function globallink_block_get_submission_status() {\r\n module_load_include('inc', 'globallink', 'globallink_settings');\r\n module_load_include('inc', 'globallink', 'gl_ws/gl_ws_common');\r\n\r\n $query = db_select('globallink_core_block', 'tcb');\r\n $query->fields('tcb', array('submission_ticket'));\r\n $query->distinct();\r\n $query->condition('status', 'Sent for Translations', '=');\r\n\r\n $results = $query->execute();\r\n\r\n foreach ($results as $row) {\r\n if ($row->submission_ticket) {\r\n try {\r\n $pd4 = globallink_get_project_director_details();\r\n $status = globallink_get_status($pd4, $row->submission_ticket);\r\n\r\n if (!$status || $status == 'CANCELLED') {\r\n globallink_block_update_submission_status($row->submission_ticket);\r\n }\r\n }\r\n catch (SoapFault $se) {\r\n globallink_block_update_submission_status($row->submission_ticket);\r\n }\r\n catch (Exception $ex) {\r\n globallink_block_update_submission_status($row->submission_ticket);\r\n }\r\n }\r\n }\r\n}", "title": "" }, { "docid": "7eddca7aa84abd0eba04e82862f28dd1", "score": "0.5099059", "text": "public function approveGM($id)\n {\n $agenda = Agenda::find($id);\n $agenda->status = 'in Approver';\n $agenda->save();\n return redirect('/agenda')->with('success', 'Status Change success, waiting approval from Approver');\n //\n }", "title": "" }, { "docid": "3fdcef37fe409f4a0e4b47dd9ff263a3", "score": "0.50943136", "text": "public function interviewed_and_under_review($id){\n\t\t$query = \"UPDATE `applications` SET `status`=2 WHERE aid='$id'\";\n\t\t$result = mysql_query($query);\n\t\tif($result){\n\t\t\theader('location:view_employe_post_jobs.php');\n\t\t}else{\n\t\t\tdie('can not select'.mysql_error());\n\t\t}\n\t}", "title": "" }, { "docid": "b11a869143628e75f56b30fc2aecc23a", "score": "0.50921106", "text": "public function isApproved() {\n\t\treturn ($this->getStatus() == BlogComment::APPROVED);\n\t}", "title": "" }, { "docid": "f51dfe36d41b3397282c7fb604955316", "score": "0.5088721", "text": "function toggle_approve($id, $is_approve) {\n $status = $is_approve ? \"approved\" : \"not approved\" ;\n $query = 'UPDATE instructors SET inst_status = ? WHERE inst_id = ?';\n $stmt = $this->conn->prepare($query);\n $stmt->execute([$status, $id]);\n \n // Check result:\n $result = $stmt->rowCount();\n if ($result) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "59514f7edf3d9c572f987bdfcf580773", "score": "0.5084404", "text": "public function onAccountantApproved($record){}", "title": "" }, { "docid": "ec44a7c488b6df9cfe8677ad34a09be1", "score": "0.508389", "text": "public function isApproved() {\n return $this->status == self::STATUS_APPROVED;\n }", "title": "" }, { "docid": "73baeac3c84ec275fd638421ecbeed44", "score": "0.50739235", "text": "function islandora_critical_edition_advanced_add_apparatus($form_state) {\n $fedora_object = $form_state['islandora']['objects'][0];\n $tuque = new IslandoraTuque();\n $namespace = islandora_get_namespace($fedora_object->id);\n $apparatus = $tuque->repository->constructObject($namespace);\n $apparatus->relationships->add(FEDORA_RELS_EXT_URI, 'isMemberOf', $fedora_object->id);\n $apparatus->relationships->add(FEDORA_MODEL_URI, 'hasModel', 'islandora:criticalApparatusCModel');\n $apparatus->label = t(\"Critical Apparatus\");\n $apparatus->owner = $fedora_object->owner;\n $tn_path = drupal_get_path('module', 'islandora_critical_edition_advanced') . '/images/apparatus.jpg';\n $tn = $apparatus->constructDatastream('TN');\n $tn->label = 'Thumbnail';\n $tn->mimetype = 'image/jpg';\n $tn->setContentFromFile($tn_path);\n $apparatus->ingestDatastream($tn);\n $tuque->repository->ingestObject($apparatus);\n}", "title": "" }, { "docid": "c9df6484b2152801354c2158eaeaeb9c", "score": "0.5072201", "text": "function assignment_submitted_github_test() {\n }", "title": "" }, { "docid": "4a8ff281006925350c355ddc35d24ac3", "score": "0.5066411", "text": "public function interviewed_and_under_rejected_display($id){\n\t\t$query = \"UPDATE `applications` SET `status`=3 WHERE aid='$id'\";\n\t\t$result = mysql_query($query);\n\t\tif($result){\n\t\t\theader('location:view_emp_post_jobs.php');\n\t\t}else{\n\t\t\tdie('can not select'.mysql_error());\n\t\t}\n\t}", "title": "" }, { "docid": "06b0a71b13bc4413f5511e3d45e077e2", "score": "0.5062334", "text": "public function approveAction()\n {\n $user = User::get( $this->params['id'] );\n $user->setUsertype(USER::TYPE_USER);\n $user->save(); // TODO: ver errores\n \n // ======================================\n // Integracion con fluxBB\n // - crea el usuario en el foro\n //\n if (!is_null($this->flux))\n {\n $this->flux->insert(\n $user->getUsername(),\n $user->getPassword(),\n $user->getEmail(),\n $user->getName()\n );\n }\n // ======================================\n \n // ===============================\n // Al aprobar al usuario, hay que dar de alta tambien en el foro y la wiki.\n // Para hacerlo independiente, se podrian registrar JOBS que se ejecutan\n // cuando las acciones terminan de forma correcta, y en esos JOBS le doy\n // de alta al usuario en los demas sistemas.\n // ===============================\n \n global $_base_dir;\n \n // Aqui se definen las variables para el envio\n include('./apps/cms2/config/cms_config.php');\n \n $mail_body = $approve_text;\n $mail_body = preg_replace('/\\[USER_NAME\\]/i', $user->getUsername(), $mail_body);\n $mail_body = preg_replace('/\\[USER_PASSWORD\\]/i', $user->getPassword(), $mail_body);\n $mail_body = preg_replace('/\\[ADMIN_EMAIL\\]/i', $cms_sender_email, $mail_body);\n $mail_body = preg_replace('/\\[DOMAIN\\]/i', 'https://'.$_SERVER['HTTP_HOST'].$_base_dir.'/'.$this->appName, $mail_body); // TODO: calcular link a login\n\n $header = \"From: \". $cms_sender_name . \" <\" . $cms_sender_email . \">\\r\\n\"; //optional headerfields\n $header .=\"Return-Path:<\" . $cms_sender_email . \">\\r\\n\"; // avoid ending in spam folder http://php.net/manual/en/function.mail.php\n \n ini_set('sendmail_from', $cms_sender_email);\n \n try // Por si no tengo servidor de email\n {\n if (!mail($user->getEmail(), $approve_subject, $mail_body, $header))\n {\n //return $this->renderString('{\"status\":\"error\", \"msg\":\"No se pudo enviar notificacioa a '.$user->getEmail().'\"}');\n $this->flash['message'] = \"No se pudo enviar notificacioa a \".$user->getEmail();\n }\n else\n {\n //return $this->renderString('{\"status\":\"ok\", \"msg\":\"Notificacion enviada a '.$user->getEmail().'\"}');\n $this->flash['message'] = \"Notificacion enviada a \".$user->getEmail();\n }\n }\n catch (Exception $e)\n {\n // Cae aqui cuando no hay un servidor de mail para enviar el correo\n //return $this->renderString('{\"status\":\"error\", \"msg\":\"Por problemas t&eacute;cnicos no se pudo enviar notificacion a '.$user->getEmail().', contacte al administrador\"}');\n $this->flash['message'] = \"Por problemas t&eacute;cnicos no se pudo enviar notificacion a \".$user->getEmail().\", contacte al administrador\";\n }\n \n // test\n //$this->flash['message'] .= $mail_body;\n return $this->redirect( array('action' => 'listPending') );\n }", "title": "" }, { "docid": "f4500c1b3db4d891ff3a0631255d9858", "score": "0.50613475", "text": "public function approve() {\r\n $this->status = self::STATUS_APPROVED;\r\n $this->commit(); \r\n \r\n return $this;\r\n }", "title": "" }, { "docid": "9df777c34ed9222a437fb59464c28a67", "score": "0.50566345", "text": "public function premium()\n {\n \n }", "title": "" } ]
c5e0025f59168cb3715d8f00e55cf3bb
Get seller id by login name seller page
[ { "docid": "ebd53dfada0f29528b595eaa08d8cf68", "score": "0.6934646", "text": "function get_query_id(){\r\nif(get_query_var( 'seller' )){\r\n$seller = get_userdatabylogin(get_query_var( 'seller' ));\r\nreturn $seller->ID;\r\n}\r\n}", "title": "" } ]
[ { "docid": "4b2c63994546088ae870738b0c89e8b9", "score": "0.6423409", "text": "function get_seller_name($seller_id){\r\n $seller_name = get_user_meta( $seller_id, 'seller_name', true );\r\n if($seller_name){\r\n return $seller_name;\r\n }else{\r\n $user_info = get_userdata($seller_id);\r\n return $user_info->user_login;\r\n }\r\n}", "title": "" }, { "docid": "7fa45f589aa82d8046e7289342c4ffad", "score": "0.6394842", "text": "public function id()\n {\n return session('buyer_' . $this->store->id);\n }", "title": "" }, { "docid": "3fc09463b3aeddfdd526448a4d7b68c3", "score": "0.6259224", "text": "public function getSellerUserId()\n {\n return $this->sellerUserId;\n }", "title": "" }, { "docid": "1fbdc501d77f8182fb534d2ed40e4317", "score": "0.6121552", "text": "function GetsellerDetails($buyer_id)\n\t{ \n\t \tglobal $db;\n\t $sql = \"SELECT * FROM \". PROFILE_MASTER\n . \t\" WHERE user_auth_id = '\". $buyer_id. \"' \";\n\t\t$db->query($sql);\n\n\t\tif($db->num_rows() > 0)\n\t {\n\t\t\treturn 0;\n\t }\n\t return 1;\n\t}", "title": "" }, { "docid": "90a0999913fd707f71b53f69fd040c35", "score": "0.6056756", "text": "function getDealSellerFromId($dealId){\n\t\n\t\tglobal $dbObj;\n\t\t$seller_name = \"\";\n\t\tif($dealId > 0){\n\t\t\t$rs = $dbObj->cgs(\"tbl_deal\", \"deal_unique_id, deal_from_seller_name, deal_from_seller_name_other\", \"deal_unique_id\",$dealId, \"\", \"\", \"\");\n\t\t\t$row = @mysql_fetch_assoc($rs);\n\t\t\t\n\t\t\tif(($row['deal_from_seller_name'] != \"\") && ($row['deal_from_seller_name'] != \"other_seller\") && ($row['deal_from_seller_name'] > 0))\n\t\t\t{\n\t\t\t\t$sellerData = getDataFromTable('tbl_users',\"userid, fullname, first_name, last_name\",\"userid = '\".$row['deal_from_seller_name'].\"'\");\n\t\t\t\t$seller_name = $sellerData['first_name'].\" \".$sellerData['last_name'];\n\t\t\t}else\n\t\t\t{\n\t\t\t\t$seller_name = $row['deal_from_seller_name_other'];\n\t\t\t}\n\t\t\treturn $seller_name;\n\t\t}\n\t}", "title": "" }, { "docid": "8add3ce2f6651fce120760d8df978c47", "score": "0.60448974", "text": "public function getSellerCode()\n {\n return $this->sellerCode;\n }", "title": "" }, { "docid": "e58270e93b12532a0a4e9e5823d5c22e", "score": "0.6011603", "text": "function wmp_seller_info() {\r\n global $post;\r\n $seller_id = $post->post_author;\r\n $role = get_user_role($seller_id);\r\n if($role == 'seller'){\r\n $seller_name = get_user_meta( $seller_id, 'seller_name', true );\r\n echo '<div class=\"seller-name\">Sold by: <a href=\"'.get_site_url().'/seller/'.get_the_author().'\">'.$seller_name.'</a></div>';\r\n }\r\n}", "title": "" }, { "docid": "44f19db80be63c3cac38f380293c250a", "score": "0.5986004", "text": "function referentiel_get_userid_by_login($login){\r\nglobal $DB;\r\n\tif (!empty($login)){\r\n $params=array(\"login\" => \"$login\");\r\n\t\t$sql = \"SELECT id FROM {user} as a WHERE a.username = :login \";\r\n\t\t$user = $DB->get_record_sql($sql, $params);\r\n\t\tif ($user){\r\n\t\t\treturn $user->id;\r\n\t\t}\r\n\t}\r\n\treturn 0;\r\n}", "title": "" }, { "docid": "10cadac07ef4ca8f560897a697dd2ae0", "score": "0.59800076", "text": "function get_item_seller_id($itemid)\n{\n global $conn;\n\n $sql = \"SELECT * FROM product WHERE uniqueid='$itemid';\";\n $result = mysqli_query($conn, $sql);\n $numrows = mysqli_num_rows($result);\n $row = mysqli_fetch_assoc($result);\n $sellerid = $row['sellerid'];\n\n return $sellerid;\n}", "title": "" }, { "docid": "b70ee8660f8ad271f7379538ba5afd92", "score": "0.59244454", "text": "public static function getLoginId();", "title": "" }, { "docid": "86df12d33c505c6093c0f0774c3e37c8", "score": "0.5901206", "text": "public static function getSeller($o_id){\r\n $query = SharIt::db()->createCommand()->from(SharDB::tableName('order'))\r\n ->leftJoin(SharDB::tableName('product').' ON '.SharDB::tableName('product').'.id = '.SharDB::tableName('order').'.product_id')\r\n ->leftJoin(SharDB::tableName('user').' ON '.SharDB::tableName('product').'.user_id = '.SharDB::tableName('user').'.id')\r\n ->where(SharDB::tableName('order').'.id = :id', array(':id' => $o_id))\r\n ->select(null)\r\n ->select(array(SharDB::tableName('user').'.display_name',SharDB::tableName('user').'.id',SharDB::tableName('user').'.email'));\r\n return $query->fetch();\r\n }", "title": "" }, { "docid": "d72a1dd473d8981795647941fcec4c9a", "score": "0.5893556", "text": "function get_user_ID() {\n\t\t\tglobal $userDetails;\n\t\t\techo $userDetails['userID'];\t\n\t\t}", "title": "" }, { "docid": "3010a6e62be1b0a61347dbe65a0c1bc0", "score": "0.58269835", "text": "abstract public function getUserIDByLogin($login);", "title": "" }, { "docid": "8dc30eea89688348e5e63cd753d39ec8", "score": "0.58262646", "text": "function UserId($bySess=false){ \n\t\tglobal $nsSession;\n\t\tif($bySess) return $nsSession->get('ns_user_auth_uid');\n\t\treturn isset($this->UserInfo['ID']) ? $this->UserInfo['ID'] : 0; \n\t}", "title": "" }, { "docid": "d5c5ddacc34e8ecf0a92876c6115067a", "score": "0.58111835", "text": "private function getSummonerID() {\n\t\t\treturn $this->raw_summoner_info['general']['id'];\n\t\t}", "title": "" }, { "docid": "c4e5252c01a08689796f790dbc4e95ce", "score": "0.5805036", "text": "function com_get_user_id()\n{\n\t//Here you need to set the user_id from your session\n\t\n\tif (com_is_logged()) {\n\t\t$user_id = $_SESSION['user']['id'];\n\t\treturn $user_id;\n\t}\n\telse return false;\n}", "title": "" }, { "docid": "8e89bc9a8a98f034978fa95feb7de8a2", "score": "0.5800445", "text": "private function extractAutologinId() {}", "title": "" }, { "docid": "5548c9263a1c1873f2299b68105bc375", "score": "0.5798546", "text": "public function getWholesalerId()\n {\n $value = $this->get(self::wholesaler_id);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "62b82fc6b769f0fd64cd4cd3a15d0874", "score": "0.57936835", "text": "public function getEnterpriseSiteId();", "title": "" }, { "docid": "ae9f82455fc296b9fa16c6d39cb3cc2f", "score": "0.57875496", "text": "private function getUserID(){\n\t\t$result = mysql_query(\"SELECT ID FROM user WHERE email='\" . $_SESSION['username'] . \"'\");\n\t\t$row = mysql_fetch_array($result);\n\t\treturn $row['ID'];\n\t}", "title": "" }, { "docid": "4100c6a7465dfcb772821f654f452da7", "score": "0.5782199", "text": "public function getSellerLeagueId()\n {\n $xpath = new \\DOMXPath($this->getXml());\n return $xpath->query('//SellerTeam/LeagueID')->item(0)->nodeValue;\n }", "title": "" }, { "docid": "0901c03894fd4b34f8f5d9803b52ce1f", "score": "0.5775003", "text": "public function fcpoGetAmazonPaySellerId()\n {\n $oConfig = $this->_oFcpoHelper->fcpoGetConfig();\n $sSellerId = $oConfig->getConfigParam('sFCPOAmazonPaySellerId');\n\n return (string)$sSellerId;\n }", "title": "" }, { "docid": "07c4904369c07d93fe89fa536348d9f7", "score": "0.5769083", "text": "function GetSellerDetails1($userid)\n\t{\n\t\tglobal $db;\n\t\t$sql = \" SELECT * FROM \".PROFILE_MASTER\n\t\t\t .\" WHERE user_auth_id = '\".$userid.\"'\";\n\t\t$db->query($sql);\n\t\treturn ($db->fetch_object(MYSQL_FETCH_SINGLE));\n\t}", "title": "" }, { "docid": "2a50769aaf8107fd819e3215bf132815", "score": "0.5764317", "text": "function getuserid() {\n\tglobal $_SESSION;\n\treturn $_SESSION[SESSION];\n}", "title": "" }, { "docid": "d8fac33f6fe9792f436c47c2dc74bebc", "score": "0.5747552", "text": "public function siteid();", "title": "" }, { "docid": "a9bc99fcaa1adb43a2c4ca27071fbb56", "score": "0.5710595", "text": "public function getSteamID()\n {\n return $_SESSION['APP_STEAMID'];\n }", "title": "" }, { "docid": "52f052e55f70c28a77ca668f5a065857", "score": "0.57099277", "text": "function loginWithSessionDataAsSeller()\n\t\t{\n\t\t\t$this->user_name = $_SESSION['hs_sel_name'];\n\t\t\t$this->user_email = $_SESSION['hs_sel_email'];\n\t\t\t//echo \"Seller\";\n\t\t\t\n\t\t\t// set logged in status to true\n\t\t\t$this->sel_is_logged_in_hs = true;\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e7b6c39c2e9e9e43e9287ba5385633e7", "score": "0.5709854", "text": "static function get_id()\n {\n $ci = &get_instance();\n return $ci->tank_auth->get_user_id();\n }", "title": "" }, { "docid": "bcde83ead4e00ef607d112561bf2347e", "score": "0.57058203", "text": "public function getUserId()\n {\n return Mage::getStoreConfig('alliance_fivehundredfriends/access_credentials/user_id');\n }", "title": "" }, { "docid": "45d979168ec707930365cc06e8328d40", "score": "0.57033867", "text": "protected function _getStoreId()\n {\n $response = $this->getResponse();\n if ($response->getUser1()) {\n return (int) $response->getUser1();\n }\n\n return Mage::app()->getStore($this->getStore())->getId();\n }", "title": "" }, { "docid": "12d2d3246835b2fc94fccda4517df2b9", "score": "0.5685692", "text": "public function getSeller()\n {\n return $this->seller;\n }", "title": "" }, { "docid": "40f7610ff17033ea4a3c6261f9f64ea9", "score": "0.5685364", "text": "public function getUserId()\n {\n //get user id from session\n $user_id = \\Session::get('user_id');\n if ($user_id) {\n return $user_id;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "c91e70e890c9950db27a98bb24617981", "score": "0.5674739", "text": "function get_user_id();", "title": "" }, { "docid": "133ee7aaba5e70b56fc7e4c7a1f9a185", "score": "0.5650175", "text": "public function getSellerByUserId($id)\n {\n $seller = Sellers::where('user_id', $id)->first();\n return $seller;\n }", "title": "" }, { "docid": "709c19a38919dcb1ce4c928ca0ebefcf", "score": "0.56442463", "text": "function get_user_id($login){\n $db = new DataBase();\n $mysqli = $db->getMysqli();\n $sql = 'SELECT * FROM users WHERE login =\"'.$login.'\"';\n\n if($result = $mysqli->query($sql)){\n $row = $result->fetch_assoc();\n return $row['id'];\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "9a573523e9c1282a06dc1648849470bc", "score": "0.56351", "text": "public function getWholesalerId()\n {\n $value = $this->get(self::wholesaler_id);\n return $value === null ? (integer)$value : $value;\n }", "title": "" }, { "docid": "c4cc119d40268fb92d5064fb38caf877", "score": "0.56301445", "text": "function get_site_id($name)\n {\n \treturn get_id_from_blogname($name);\n }", "title": "" }, { "docid": "d85fc60c2e116dfcace1f2a86dc17e57", "score": "0.56285906", "text": "function ipress_the_user_id() {\n echo ipress_get_user_id();\n}", "title": "" }, { "docid": "eecd66cd41de2ec307c1e764d79451d9", "score": "0.5609007", "text": "private function _getUserIDFromUserName(){\n if(strlen($this->_userID)>0 && strlen($this->_token)>0){\n //Search for the username\n $options = array(\n \t\t'q' => $this->_userID,\n \t\t'access_token' => $this->_token\n );\n $useridquery = parent::_fileGetContent(parent::_getUrl(self::SEARCH_URI, $options),true);\n if(!empty($useridquery) && $useridquery->meta->code=='200' && $useridquery->data[0]->id>0){\n //Found\n $this->_userID = $useridquery->data[0]->id;\n } else {\n //Not found\n $this->setException('getUserIDFromUserName');\n }\n } else {\n $this->setException('empty username or access token');\n }\n }", "title": "" }, { "docid": "b14136c4a1337452c4ef8df683fbc328", "score": "0.56085753", "text": "public function getSellerTeamId()\n {\n $xpath = new \\DOMXPath($this->getXml());\n return $xpath->query('//SellerTeam/TeamID')->item(0)->nodeValue;\n }", "title": "" }, { "docid": "e768a11457aeb2f7108a34e5bdae8e5c", "score": "0.5608161", "text": "public function getPayerId() {\n return $this->collection->getValue('PAYERID');\n\t}", "title": "" }, { "docid": "33179a71e85eed73bd3d2e8b234ddd44", "score": "0.5596812", "text": "static public function getID($username);", "title": "" }, { "docid": "cf7e8a474ee6779891243bd14855dd25", "score": "0.5590258", "text": "public function getShoptId()\n {\n return $this->getParameter('shop_id');\n }", "title": "" }, { "docid": "bd985b98708eafd74dd41976e635e50f", "score": "0.5587005", "text": "public function getSellerId($i = 0)\n {\n if (! isset($this->participationList)) {\n return false;\n }\n if (is_numeric($i) && array_key_exists($i, $this->participationList)) {\n return $this->participationList[$i]['SellerId'];\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "85d27b6705b0001a8da0a3fe7c858529", "score": "0.55845255", "text": "function getIdUser() {\n if (isset($_SESSION)) {\n echo $_SESSION['id_user'];\n }\n }", "title": "" }, { "docid": "8601a13f0171c3aed1ec955a56476d69", "score": "0.5578796", "text": "private function generateUsername()\n {\n $storeSalespersonTable = $this->getServiceLocator()->get('Api\\Table\\StoreSalespersonTable');\n $salespersonInfo = $storeSalespersonTable->getSalespersonDetails($this->salesperson);\n if (!$salespersonInfo) {\n throw new ApiException('Unable to crete store, as salesperson is not found!', 500);\n }\n\n $start = $salespersonInfo['count'] + 1;\n\n $userId = 'sm' . $this->salesperson . 'u' . $start;\n\n return $userId;\n }", "title": "" }, { "docid": "05034c0b81d41994885a5d23322a4ac2", "score": "0.55688643", "text": "public function getAuthIdentifier()\n {\n $this->login;\n }", "title": "" }, { "docid": "317fe58fd49a51e076cbbb9addfecf25", "score": "0.55560076", "text": "function getUserID(){\n\t\t\tif(cookieExists())\n\t\t\t//if there is a username cookie, we need to check it against our password cookie\n\t\t\t{\n\t\t\t\tif (validCookie()) {\n\t\t\t\t\t//Cookie matches display their name\n\t\t\t\t\t$username = $_COOKIE['ID_my_site'];\n\t\t\t\t\t$info = getDatabaseInfo(\"users\", \"email\", $username);\n\t\t\t\t\treturn $info['USER_ID'];\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "645b361c2b8a1b4e378a2591738eb962", "score": "0.554774", "text": "public function getSellerOrderId();", "title": "" }, { "docid": "8ac1ae5cad24bf010bd7807b854072d1", "score": "0.5544181", "text": "public function show(Seller $seller)\n {\n //\n }", "title": "" }, { "docid": "f0cee9828360be7f3eb4dff487cb8752", "score": "0.55361503", "text": "function getStoreIDbyName($name,$isexprite=true){\n\t\t$name = mysql_escape_string($name);\n\t\t//$_query = \"select StoreID from \".$this->table.\"login where store_name='\".$name.\"'\";\n\t\t$_query = \"select t1.StoreID,t2.* from \".$this->table.\"login as t1 left join \".$this->table.\"bu_detail as t2 on t1.StoreID=t2.StoreID\n\t\twhere t1.store_name='\".$name.\"'\";\n\n\t\t$this->dbcon->execute_query($_query);\n\t\t$count = $this->dbcon->count_records();\n\t\tif ($count == 0){\n\t\t\t$_query = \"select StoreID from {$this->table}bu_detail where store_name='$name'\";\n\t\t\t$this->dbcon->execute_query($_query);\n\t\t\t$result = $this->dbcon->count_records();\n\t\t\tif($result&&$_SESSION['ShopID']){\n\t\t\t\tforeach ($result as $pass){\n\t\t\t\t\tif($pass['StoreID']==$_SESSION['ShopID']){\n\t\t\t\t\t\treturn $_SESSION['ShopID'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}else{\n\t\t\t$row = $this->dbcon->fetch_records();\n\t\t\tif($isexprite){\n\t\t\t\tif($row[0]['renewalDate']>time()){\n\t\t\t\t\treturn $row[0]['StoreID'];\n\t\t\t\t}elseif($row[0]['attribute']==3&&$row[0]['subAttrib']){\n\t\t\t\t\treturn $row[0]['StoreID'];\n\t\t\t\t}elseif($row[0]['StoreID']==$_SESSION['ShopID']){\n\t\t\t\t\treturn $row[0]['StoreID'];\n\t\t\t\t}else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\treturn $row[0]['StoreID'];\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2302dd218b5b24781beda928c6eb84bf", "score": "0.5535698", "text": "public function getSeller_id($id)\n {\n $this->db->select('*');\n $this->db->from('seller');\n $this->db->join('mahasiswa', 'seller.nim = mahasiswa.nim');\n $this->db->join('prodi', 'mahasiswa.id_prodi = prodi.id_prodi');\n $this->db->join('fakultas', 'mahasiswa.id_fakultas = fakultas.id_fakultas');\n $this->db->where(['id_seller' => $id]);\n return $this->db->get()->row_array();\n }", "title": "" }, { "docid": "95906e3c7fc02e7e646455f0ed9de189", "score": "0.55251294", "text": "public function getUserInfoId()\n {\n return 'adminer-user-info';\n }", "title": "" }, { "docid": "b1cd496087da7e32eea0d9de51878cd1", "score": "0.55207086", "text": "protected function _getIdentifier()\n\t{\n\t\t$visitor = $this->_getCookieValue(Df_PageCache_Model_Cookie::COOKIE_CUSTOMER, '');\n\t\tif (!$visitor) {\n\t\t\t$visitor = $_SERVER['REMOTE_ADDR'];\n\t\t}\n\t\treturn $visitor;\n\t}", "title": "" }, { "docid": "dd97b5daadc64b912434cd4e771ff01a", "score": "0.5507326", "text": "static function getUserId() {\n if (isset($_SESSION['core.user.id'])) {\n return $_SESSION['core.user.id'];\n }\n else {\n return -1;\n }\n }", "title": "" }, { "docid": "acf2cd5f9f9f14ad827f633420065ae7", "score": "0.55058515", "text": "function sf_get_user_id($display_name)\n{\n\tglobal $wpdb;\n\treturn $wpdb->get_var(\n\t\t\t\"SELECT user_id\n\t\t\t FROM \".SFMEMBERS.\"\n\t\t\t WHERE display_name='\".$display_name.\"'\");\n}", "title": "" }, { "docid": "8eb0603be2486130c00c0168b0948bb2", "score": "0.5504448", "text": "private function publisherID()\n {\n if( $publisher = AuthorizedUser::getInstance() )\n {\n if( $publisher->isLocal() )\n {\n $this->local = true;\n }\n else if( $publisher->auth_type == 'oauth_publisher' )\n {\n $this->local = false;\n }\n else\n {\n throw new Exception(\"Unauthorized publisher\", 2);\n }\n\n return $publisher->id;\n }\n else\n {\n throw new Exception(\"Unauthorized publisher\", 2);\n }\n }", "title": "" }, { "docid": "84021ae25a12dff11d4bc83a28660719", "score": "0.5477878", "text": "protected function getStoreIdInUrl()\r\n {\r\n return $this->getRequest()->getParam('store') ? $this->getRequest()->getParam('store') : 0;\r\n }", "title": "" }, { "docid": "dcf30debac9ae423f5d3bf4b0d3aa070", "score": "0.5475108", "text": "public function getId(){\n $check_session = $this->checkSession();\n if($check_session){\n $id = $_SESSION['user_id'];\n return $id;\n }\n }", "title": "" }, { "docid": "110f3f0eb71f3dea9fb07dfd82e6ce9e", "score": "0.54638463", "text": "abstract public function get_user_id();", "title": "" }, { "docid": "569af1cddaae646c729742f46d01c37e", "score": "0.5457934", "text": "public function getUserid() {\n return Application::$app->getRequest()->session('userid');\n }", "title": "" }, { "docid": "e2d2db97a56ea331097baf58b37a4ee3", "score": "0.545663", "text": "function getSessionID(){\n\t$ses_id = $_SESSION['system']['userid'];\n\t\n\treturn $ses_id;\n}", "title": "" }, { "docid": "ef71eabca2b858465751a16baf116300", "score": "0.54564494", "text": "function user_id()\r\n\t{\r\n\t\t$authenticate = service('authentication');\r\n\t\t$authenticate->check();\r\n\t\treturn $authenticate->id();\r\n\t}", "title": "" }, { "docid": "9e8f9fae5c20a6d131aed439c13cf35d", "score": "0.545059", "text": "private function getUserId() {\n\t\t// Do we have a user id?\n\t\tif (!empty($this->server->post['ext_d2l_username'])) {\n\t\t\treturn strip_tags($this->server->post['ext_d2l_username']);\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d96079062f2988f6eb618e10fe002e07", "score": "0.54469573", "text": "function get_seller_detail($userid, $detail)\n{\n global $conn;\n\n $sql = \"SELECT * FROM sellers WHERE uniqueid='$userid';\";\n $result = mysqli_query($conn, $sql);\n $numrows = mysqli_num_rows($result);\n $row = mysqli_fetch_assoc($result);\n $userdetail = $row[$detail];\n\n return $userdetail;\n}", "title": "" }, { "docid": "5d9ee3239e83d7944cb372040c59113c", "score": "0.54452974", "text": "public function getSalesid()\r\n {\r\n return $this->salesid;\r\n }", "title": "" }, { "docid": "67f0286ba377dae2d96a0eecbbdaace0", "score": "0.5416778", "text": "function ipress_get_user_id() {\n\n global $userdata;\n get_currentuserinfo();\n\n // return user id\n return (int)$userdata->ID;\n}", "title": "" }, { "docid": "f0868aaf3129a409f3f9967f125a74be", "score": "0.5415502", "text": "function Shoe_userID1($login)\n{\n\tinclude 'bd.php';\n\t$resref = $MySQLiconn->query(\"SELECT * FROM `UTILISATEUR` WHERE LOGIN=$login\");\n\t$countref = $resref->num_rows;\n\tif($countref > 0)\n\t{\n\t\tif($rowref=$resref->fetch_array())\n\t\t{\n\n\t\t\techo $rowref['IDU'];\n\t\t}\n\t}\n\telse\n\t{\n\t\techo 0;\n\t}\n\n\n}", "title": "" }, { "docid": "30c5304d825d47a77a8eea3337a8e0ca", "score": "0.5414637", "text": "public function id()\r\n {\r\n return $_SESSION['SID'];\r\n }", "title": "" }, { "docid": "05b0257e0f7b2b09e5a063a37fd7e664", "score": "0.54095656", "text": "private function getWebinarOwnerId($webinar_id) {\n\n $sql = \"SELECT user_id FROM webinars WHERE id = '$webinar_id'\";\n $user_id = $this->db->scalar($sql);\n\n return $user_id;\n }", "title": "" }, { "docid": "33607f98b11878f8baabb44d179e86c2", "score": "0.54078597", "text": "public function getPayerId()\n {\n return $this->payer_id;\n }", "title": "" }, { "docid": "33607f98b11878f8baabb44d179e86c2", "score": "0.54078597", "text": "public function getPayerId()\n {\n return $this->payer_id;\n }", "title": "" }, { "docid": "f54733ebc19546818102251880abd18d", "score": "0.54031634", "text": "function find_salesperson_by_id($id=0) {\n global $db;\n $sql = \"SELECT * FROM salespeople \";\n $sql .= \"WHERE id='\" . db_escape($db, i($id)) . \"';\";\n $salespeople_result = db_query($db, $sql);\n return $salespeople_result;\n }", "title": "" }, { "docid": "a4f8ea3f96e80e8844c776e102218a85", "score": "0.5397305", "text": "public function getSellerSKU()\n {\n return $this->_fields['SellerSKU']['FieldValue'];\n }", "title": "" }, { "docid": "a4f8ea3f96e80e8844c776e102218a85", "score": "0.5397305", "text": "public function getSellerSKU()\n {\n return $this->_fields['SellerSKU']['FieldValue'];\n }", "title": "" }, { "docid": "d80bf3cf2e97b879586a18f048344877", "score": "0.5378839", "text": "public function getWidgetId()\n {\n return Mage::getStoreConfig('alliance_fivehundredfriends/access_credentials/widget_id');\n }", "title": "" }, { "docid": "6f2603287b5cfdfbe4f621ebe4e997c2", "score": "0.5377561", "text": "function getIdFromSlug($slug='') {\n\t\tif(!$slug) return 0;\n\t\t$result = $this->select('id',\"`store_id` = '\".$this->store_id.\"' AND slug = '$slug'\");\n\t\tif($result) return $result[0]['id'];\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "6f2603287b5cfdfbe4f621ebe4e997c2", "score": "0.5377561", "text": "function getIdFromSlug($slug='') {\n\t\tif(!$slug) return 0;\n\t\t$result = $this->select('id',\"`store_id` = '\".$this->store_id.\"' AND slug = '$slug'\");\n\t\tif($result) return $result[0]['id'];\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "feb72cc1b649600788343a707f6b7f97", "score": "0.5376669", "text": "function getUserID($loginName, $loginProvider){\n global $conn;\n $sql = \"SELECT * FROM users\";\n $result = mysqli_query($conn, $sql);\n\t\t$userID = null;\n \n if($result){\n while($row = mysqli_fetch_array($result)){\n\t\t\n\t\t// strcmp=0 if the strings are the same\n\t\tif( ( !strcmp($row[1], $loginName) && !strcmp($row[2], $loginProvider) ) ){\n\t\t\t$userID = $row[0];\n\t\t}\n\t }\n \n mysqli_free_result($result);\n\n $err = mysqli_error($conn);\n if($err == \"\"){\n return $userID;\n }\n else\n return $err;\n }\n else{\n return \"sql query error\";\n }\n }", "title": "" }, { "docid": "e2aef87a3d8274785b123f11fd441a29", "score": "0.5376452", "text": "public function obtenerId();", "title": "" }, { "docid": "9da159a3fd1eebca100e9eece4a0da1c", "score": "0.5374591", "text": "function get_seller_profile_info($id){\n\n $defaults = array(\n 'location' => '',\n 'gravatar_id' => '',\n 'banner_id' =>'',\n 'dokan_owner' => '',\n 'about_owner' => '',\n 'owner_website' => '',\n 'websiteIsPrivate' => ''\n );\n\n if (!$id) { \n return;\n }\n\n $seller_profile_info = get_user_meta($id, 'seller_profile_settings', true );\n $seller_profile_info = is_array( $seller_profile_info ) ? $seller_profile_info : array();\n $seller_profile_info = wp_parse_args( $seller_profile_info, $defaults );\n\n return $seller_profile_info;\n}", "title": "" }, { "docid": "07c1266e11db90d56d5167c29119a29d", "score": "0.53571707", "text": "function getUserID($name){\n\t\t$result = $this->db->get('userLogin','ID','username=\\''.$name.'\\'');\n\t\treturn $result;\n\t}", "title": "" }, { "docid": "7b9739e471084a9a400a357b72d58c81", "score": "0.53554803", "text": "function getUserId()\n {\n if (isset($_SESSION['user_id'])) return $_SESSION['user_id'];\n return NULL;\n }", "title": "" }, { "docid": "fb4594a39dc40e5d214fc81119015b68", "score": "0.53472096", "text": "public static function getShopId($token) {\n $shopId = Mage::getModel('channelpilot/registration')->load($token, 'securityToken')\n ->getData('shopId');\n\n if(empty($shopId)) {\n CPErrorHandler::handle(CPErrors::RESULT_FAILED,'No shop id found for token.','No shop id found for token.');\n }\n\n return $shopId;\n\t}", "title": "" }, { "docid": "adc7553103c886a7b03832602596b544", "score": "0.53441393", "text": "function get_logged_user_id(){\n if(preg_match('/^.*\\/users\\/([0-9]*)\\/.*$/', $_SERVER['REQUEST_URI'], $id)){\n return $id[1];\n }\n else{\n return 1;\n }\n }", "title": "" }, { "docid": "92e49d5ad8ca3b7626854468a37bd186", "score": "0.53367376", "text": "public function obtener_id();", "title": "" }, { "docid": "917f1e8e17801f0d8d644023a5ccdce3", "score": "0.53355896", "text": "function getId($user){\r\n\t$connection = mysql_open();\r\n\t\r\n\t$query = \"select employerId from ld_users2 \r\n\t\t\t\twhere email = '$user'\";\r\n\t$results = mysql_query($query, $connection) or show_error();\r\n\t\r\n\t$id = mysql_fetch_array($results);\r\n\t$id2 = $id[0];\r\n\t\r\n\tmysql_close($connection) or show_error();\r\n\treturn $id2;\r\n}", "title": "" }, { "docid": "42b4a3fc06f97b673c6ea1fb570a0f52", "score": "0.53347504", "text": "private function findUsrCustId() {\n\t\t$this->Item = ClassRegistry::init('Item');\n\t\treturn $this->Item->discoverCustomerUserId($this->logLine['id']);\n\t}", "title": "" }, { "docid": "0c599fea04b2c0738f5f728aca9d4be4", "score": "0.5331013", "text": "abstract protected function getPayerIdFromRequest(array $request) :? string;", "title": "" }, { "docid": "22fcd315f7269ed9de443a4731d7fc24", "score": "0.5320934", "text": "public function getPayerId()\n {\n return $this->payerId;\n }", "title": "" }, { "docid": "f0646d77076e20c1d410567e4f4cbeda", "score": "0.5307847", "text": "public function getOrganisasiId()\n {\n //get organisasi id from session\n $organisasi_id = \\Session::get('organisasi_id');\n if ($organisasi_id) {\n return $organisasi_id;\n } else {\n return '';\n }\n }", "title": "" }, { "docid": "d2fd4ad1f526399cf5d3300e8c3c09c2", "score": "0.530197", "text": "public static function user_id($username) {\n global $CFG, $DB;\n \n $params = self::validate_parameters(self::user_id_parameters(), array('username'=>$username));\n \n\t\t$webservice = new droodle_webservice ();\n\t\t$id = $webservice->user_id ($username);\n\n return $id;\n }", "title": "" }, { "docid": "9e1f802ad385549dc85c3292597b1a92", "score": "0.5299811", "text": "public function getUserLogin($storeId = null);", "title": "" }, { "docid": "b0f1b04fd2aae2659a9d1a777c3ecaaf", "score": "0.5290221", "text": "public function getUserID() {\n\t\t\n\t\t$tokenKey = $this->request->getParameter(\"oauth_token\");\n\t\t$consumerKey = $this->request->getParameter(\"oauth_consumer_key\");\n\t\t\n\t\tif ($userID = $this->ds->getValidUserID($tokenKey, $consumerKey)) \n\t\t\treturn $userID;\t\t\n\t\telse\n\t\t\tthrow new OAuthException(OAuthError::PERMISSION_DENIED, 401);\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "8e6b094dadccf05f9b9be18dfc3e1da6", "score": "0.5286841", "text": "function sw_get_current_id(){\n $current_user = wp_get_current_user();\n $current_id = $current_user->ID;\n return $current_id;\n }", "title": "" }, { "docid": "729555a3331883210cb0019349b6c1e1", "score": "0.5285519", "text": "function getIdFromUrl($url='') {\n\t\tif(!$url) return '';\n\t\t$url2='/vn'.$url;\n\t\t$result = $this->select('id',\"`store_id` = '\".$this->store_id.\"' AND (`url` = '$url' OR `url`='$url2')\");\n\t\tif($result) return $result[count($result)-1]['id'];\n\t\treturn '';\n\t}", "title": "" }, { "docid": "80c8759f071e31aaadc34c3f6838688d", "score": "0.52754015", "text": "function getMyID($userName)\r\n {\r\n $select = \"SELECT blogger_id FROM bloggers WHERE username ='$userName' \";\r\n $results = $this->_pdo->query($select);\r\n $row = $results->fetch(PDO::FETCH_ASSOC);\r\n return $row;\r\n }", "title": "" }, { "docid": "839dd40da86a12dc131b26124de89be8", "score": "0.52711177", "text": "function index(){\n echo user_id();\n }", "title": "" }, { "docid": "a9223505884953deee894c12457562d4", "score": "0.5265861", "text": "public function getMarketplaceId();", "title": "" }, { "docid": "a3b4bae149175968b8e72248c78d7ef0", "score": "0.5262854", "text": "function get_user_id(){\n\t\t// get the current user details\n\t\t$cookie_id = $this->decrypt($_COOKIE['CakeCookie']['PDCAUSER']);\t\t\n\t\treturn $cookie_id;\n\t}", "title": "" } ]
40009a55ae86456dff8e02ca18741cbd
Creates the "watch" or "unwatch" action: the wellknown star icon that, when tapped, will add the page to or remove the page from the user's watchlist; or, if the user is logged out, will direct the user's UA to Special:Login.
[ { "docid": "e93c4bbebd287880ff944dd14cfc62c6", "score": "0.6761912", "text": "protected function createWatchPageAction( $actions ) {\n\t\t$baseResult = [\n\t\t\t'id' => 'ca-watch',\n\t\t\t// Use blank icon to reserve space for watchstar icon once JS loads\n\t\t\t'class' => MobileUI::iconClass( '', 'element', 'icon-32px watch-this-article' ),\n\t\t\t'is_js_only' => true\n\t\t];\n\t\t$title = $this->getTitle();\n\n\t\tif ( isset( $actions['watch'] ) ) {\n\t\t\t$result = array_merge( $actions['watch'], $baseResult );\n\t\t} elseif ( isset( $actions['unwatch'] ) ) {\n\t\t\t$result = array_merge( $actions['unwatch'], $baseResult );\n\t\t\t$result['class'] .= ' watched';\n\t\t} else {\n\t\t\t// placeholder for not logged in\n\t\t\t$result = array_merge( $baseResult, [\n\t\t\t\t// FIXME: makeLink (used by makeListItem) when no text is present defaults to use the key\n\t\t\t\t'text' => '',\n\t\t\t\t'href' => $this->getLoginUrl( [ 'returnto' => $title ] ),\n\t\t\t] );\n\t\t}\n\n\t\treturn $result;\n\t}", "title": "" } ]
[ { "docid": "f50c396bcb0b85b19088cd7852f60b52", "score": "0.5674465", "text": "public function watchAction() {\n\n //GET TOPIC SUBJECT\n $topic = Engine_Api::_()->core()->getSubject();\n\n //GET SITEREVIEW OBJECT\n $sitereview = Engine_Api::_()->getItem('sitereview_listing', $topic->listing_id);\n\n //GET VIEWER\n $viewer = Engine_Api::_()->user()->getViewer();\n\n $watch = $this->_getParam('watch', true);\n $topicWatchesTable = Engine_Api::_()->getDbtable('topicWatches', 'sitereview');\n $db = $topicWatchesTable->getAdapter();\n $db->beginTransaction();\n try {\n $resultWatch = $topicWatchesTable\n ->select()\n ->from($topicWatchesTable->info('name'), 'watch')\n ->where('resource_id = ?', $sitereview->getIdentity())\n ->where('topic_id = ?', $topic->getIdentity())\n ->where('user_id = ?', $viewer->getIdentity())\n ->limit(1)\n ->query()\n ->fetchAll();\n if (empty($resultWatch))\n $isWatching = 0;\n else\n $isWatching = 1;\n\n if (false == $isWatching) {\n $topicWatchesTable->insert(array(\n 'resource_id' => $sitereview->getIdentity(),\n 'topic_id' => $topic->getIdentity(),\n 'user_id' => $viewer->getIdentity(),\n 'watch' => (bool) $watch,\n ));\n } else {\n $topicWatchesTable->update(array(\n 'watch' => (bool) $watch,\n ), array(\n 'resource_id = ?' => $sitereview->getIdentity(),\n 'topic_id = ?' => $topic->getIdentity(),\n 'user_id = ?' => $viewer->getIdentity(),\n ));\n }\n $db->commit();\n } catch (Exception $e) {\n $db->rollBack();\n throw $e;\n }\n $this->_redirectCustom($topic);\n }", "title": "" }, { "docid": "b21c807191a01401b4c976716b6e3687", "score": "0.5276205", "text": "function favorite_actions()\n {\n }", "title": "" }, { "docid": "5cebdfcf9e8ba80fabcafb0490a47aa5", "score": "0.5199208", "text": "static function crea(){\n if(!CUtente::verificalogin())header('Location: /Progetto/Utente/homepagedef');\n else{\n session_start();\n $_SESSION['location']='/Watchlist/crea';\n $serie=FPersistentManager::AllSeries(null);\n $view = new VWatchlist();\n $view->crea($_SESSION['utente'],$serie);\n }\n }", "title": "" }, { "docid": "e20e4361ec5b08dd42628a7bc431f3f7", "score": "0.5189681", "text": "public function profileAction() {\r\n\r\n //GET WISHLIST ID AND OBJECT\r\n $wishlist_id = $this->_getParam('wishlist_id');\r\n $wishlist = Engine_Api::_()->getItem('sitereview_wishlist', $wishlist_id);\r\n\r\n //CHECK AUTHENTICATION\r\n if (!Engine_Api::_()->authorization()->isAllowed($wishlist, null, \"view\")) {\r\n return $this->_forward('requireauth', 'error', 'core');\r\n }\r\n\r\n //GET VIEWER ID\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n $viewer_id = $viewer->getIdentity();\r\n\r\n //GET USER LEVEL ID\r\n if (!empty($viewer_id)) {\r\n $level_id = $viewer->level_id;\r\n } else {\r\n $level_id = Engine_Api::_()->getDbtable('levels', 'authorization')->fetchRow(array('type = ?' => \"public\"))->level_id;\r\n }\r\n\r\n //DO NOT RENDER IF FAVOURITE FUNCTIONALITY IS ENABLED \r\n $recentWishlistId = Engine_Api::_()->getDbtable('wishlists', 'sitereview')->recentWishlistId($viewer_id);\r\n if (Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.favourite', 0) && (($recentWishlistId != $wishlist_id && $level_id != 1) || ($level_id != 1 && $wishlist->owner_id != $viewer_id))) {\r\n return $this->_forwardCustom('notfound', 'error', 'core');\r\n }\r\n\r\n //SET SITEREVIEW SUBJECT\r\n Engine_Api::_()->core()->setSubject($wishlist);\r\n\r\n $params['wishlist'] = 'Wishlists';\r\n Engine_Api::_()->sitereview()->setMetaTitles($params);\r\n\r\n $params['wishlist_creator_name'] = $wishlist->getOwner()->getTitle();\r\n Engine_Api::_()->sitereview()->setMetaKeywords($params);\r\n\r\n //INCREASE VIEW COUNT IF VIEWER IS NOT OWNER\r\n if (!$wishlist->getOwner()->isSelf($viewer)) {\r\n $wishlist->view_count++;\r\n $wishlist->save();\r\n }\r\n\r\n if (Engine_Api::_()->seaocore()->isSitemobileApp()) {\r\n //Zend_Registry::set('setFixedCreationForm', true);\r\n Zend_Registry::set('setFixedCreationFormBack', 'Back');\r\n Zend_Registry::set('setFixedCreationHeaderTitle', Engine_Api::_()->seaocore()->seaocoreTruncateText($wishlist->getTitle(), 20));\r\n }\r\n $this->_helper->content\r\n// ->setContentName($pageObject->page_id)\r\n ->setNoRender()\r\n ->setEnabled();\r\n }", "title": "" }, { "docid": "e3a3201ec7d045d5a0b0389b9bb77b12", "score": "0.5148849", "text": "public function action_init() {\n\n\t\tload_plugin_textdomain( 'user-switching', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );\n\n\t\tif ( ! isset( $_REQUEST['action'] ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$current_user = ( is_user_logged_in() ) ? wp_get_current_user() : null;\n\n\t\tswitch ( $_REQUEST['action'] ) {\n\n\t\t\t// We're attempting to switch to another user:\n\t\t\tcase 'switch_to_user':\n\t\t\t\tif ( isset( $_REQUEST['user_id'] ) ) {\n\t\t\t\t\t$user_id = absint( $_REQUEST['user_id'] );\n\t\t\t\t} else {\n\t\t\t\t\t$user_id = 0;\n\t\t\t\t}\n\n\t\t\t\t// Check authentication:\n\t\t\t\tif ( ! current_user_can( 'switch_to_user', $user_id ) ) {\n\t\t\t\t\twp_die( esc_html__( 'Could not switch users.', 'user-switching' ) );\n\t\t\t\t}\n\n\t\t\t\t// Check intent:\n\t\t\t\tcheck_admin_referer( \"switch_to_user_{$user_id}\" );\n\n\t\t\t\t// Switch user:\n\t\t\t\t$user = switch_to_user( $user_id, self::remember() );\n\t\t\t\tif ( $user ) {\n\n\t\t\t\t\t$redirect_to = self::get_redirect( $user, $current_user );\n\n\t\t\t\t\t// Redirect to the dashboard or the home URL depending on capabilities:\n\t\t\t\t\t$args = array(\n\t\t\t\t\t\t'user_switched' => 'true',\n\t\t\t\t\t);\n\n\t\t\t\t\tif ( $redirect_to ) {\n\t\t\t\t\t\twp_safe_redirect( add_query_arg( $args, $redirect_to ), 302, self::$application );\n\t\t\t\t\t} elseif ( ! current_user_can( 'read' ) ) {\n\t\t\t\t\t\twp_safe_redirect( add_query_arg( $args, home_url() ), 302, self::$application );\n\t\t\t\t\t} else {\n\t\t\t\t\t\twp_safe_redirect( add_query_arg( $args, admin_url() ), 302, self::$application );\n\t\t\t\t\t}\n\t\t\t\t\texit;\n\n\t\t\t\t} else {\n\t\t\t\t\twp_die( esc_html__( 'Could not switch users.', 'user-switching' ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t// We're attempting to switch back to the originating user:\n\t\t\tcase 'switch_to_olduser':\n\t\t\t\t// Fetch the originating user data:\n\t\t\t\t$old_user = self::get_old_user();\n\t\t\t\tif ( ! $old_user ) {\n\t\t\t\t\twp_die( esc_html__( 'Could not switch users.', 'user-switching' ) );\n\t\t\t\t}\n\n\t\t\t\t// Check authentication:\n\t\t\t\tif ( ! self::authenticate_old_user( $old_user ) ) {\n\t\t\t\t\twp_die( esc_html__( 'Could not switch users.', 'user-switching' ) );\n\t\t\t\t}\n\n\t\t\t\t// Check intent:\n\t\t\t\tcheck_admin_referer( \"switch_to_olduser_{$old_user->ID}\" );\n\n\t\t\t\t// Switch user:\n\t\t\t\tif ( switch_to_user( $old_user->ID, self::remember(), false ) ) {\n\n\t\t\t\t\tif ( ! empty( $_REQUEST['interim-login'] ) ) {\n\t\t\t\t\t\t$GLOBALS['interim_login'] = 'success';\n\t\t\t\t\t\tlogin_header( '', '' );\n\t\t\t\t\t\texit;\n\t\t\t\t\t}\n\n\t\t\t\t\t$redirect_to = self::get_redirect( $old_user, $current_user );\n\t\t\t\t\t$args = array(\n\t\t\t\t\t\t'user_switched' => 'true',\n\t\t\t\t\t\t'switched_back' => 'true',\n\t\t\t\t\t);\n\n\t\t\t\t\tif ( $redirect_to ) {\n\t\t\t\t\t\twp_safe_redirect( add_query_arg( $args, $redirect_to ), 302, self::$application );\n\t\t\t\t\t} else {\n\t\t\t\t\t\twp_safe_redirect( add_query_arg( $args, admin_url( 'users.php' ) ), 302, self::$application );\n\t\t\t\t\t}\n\t\t\t\t\texit;\n\t\t\t\t} else {\n\t\t\t\t\twp_die( esc_html__( 'Could not switch users.', 'user-switching' ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t// We're attempting to switch off the current user:\n\t\t\tcase 'switch_off':\n\t\t\t\t// Check authentication:\n\t\t\t\tif ( ! current_user_can( 'switch_off' ) ) {\n\t\t\t\t\t/* Translators: \"switch off\" means to temporarily log out */\n\t\t\t\t\twp_die( esc_html__( 'Could not switch off.', 'user-switching' ) );\n\t\t\t\t}\n\n\t\t\t\t// Check intent:\n\t\t\t\tcheck_admin_referer( \"switch_off_{$current_user->ID}\" );\n\n\t\t\t\t// Switch off:\n\t\t\t\tif ( switch_off_user() ) {\n\t\t\t\t\t$redirect_to = self::get_redirect( null, $current_user );\n\t\t\t\t\t$args = array(\n\t\t\t\t\t\t'switched_off' => 'true',\n\t\t\t\t\t);\n\n\t\t\t\t\tif ( $redirect_to ) {\n\t\t\t\t\t\twp_safe_redirect( add_query_arg( $args, $redirect_to ), 302, self::$application );\n\t\t\t\t\t} else {\n\t\t\t\t\t\twp_safe_redirect( add_query_arg( $args, home_url() ), 302, self::$application );\n\t\t\t\t\t}\n\t\t\t\t\texit;\n\t\t\t\t} else {\n\t\t\t\t\t/* Translators: \"switch off\" means to temporarily log out */\n\t\t\t\t\twp_die( esc_html__( 'Could not switch off.', 'user-switching' ) );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "0761001c057a8601885b6bf5e24899f4", "score": "0.51180446", "text": "private function add_potential_action( $data ) {\n\t\tif ( $this->determine_page_type() !== 'WebPage' ) {\n\t\t\treturn $data;\n\t\t}\n\n\t\t/**\n\t\t * Filter: 'wpseo_schema_webpage_potential_action_target' - Allows filtering of the schema WebPage potentialAction target.\n\t\t *\n\t\t * @api array $targets The URLs for the WebPage potentialAction target.\n\t\t */\n\t\t$targets = apply_filters( 'wpseo_schema_webpage_potential_action_target', [ $this->context->canonical ] );\n\n\t\t$data['potentialAction'][] = [\n\t\t\t'@type' => 'ReadAction',\n\t\t\t'target' => $targets,\n\t\t];\n\n\t\treturn $data;\n\t}", "title": "" }, { "docid": "f2652f11b50fd7a23bb788ba2e2e9ce3", "score": "0.50021553", "text": "function addWPActions ()\n\t{\n\n // Register Shortcode\n add_shortcode( 'mwa-home', array( 'mwa_draw', 'draw_homepage' ) );\n add_shortcode( 'amir-dash', array( 'mwa_draw', 'draw_amir_dashboard' ) );\n\n // Check for other custom actions\n add_action('init', array($this, 'check_for_actions') );\n\n\t\t// Create Media Admin Pages\n\t\t//add_action( 'admin_menu', array( $this, 'create_AdminPages' ));\n\n\t\t// Check folder exists\n\t\t//add_action('init', array($this, 'checkFolderExists') );\n\n //Add Front End Jquery and CSS\n add_action( 'wp_footer', array( $this, 'frontendEnqueues' ) );\n\n\n\t}", "title": "" }, { "docid": "b4b818b65791e1178153f061f17dfb66", "score": "0.49899465", "text": "public function add() {\n\t\t\n $film = Input::get('movie');\n\t\t$me = Auth::user()->id;\n\t\t\n\t\t$check\t = $this->watchCheck($film,$me);\n\t\t\n\t\tif($check) {\n\t\t\n\t\t} else {\n\t\t\n\t\t\t$query = DB::table('user_watched')->insertGetId(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'watched_fl_id' => $film,\n\t\t\t\t\t\t'watched_usr_id' => $me,\n\t\t\t\t\t\t'watched_updated_date' => time()\n\t\t\t\t\t)\n\t\t\t);\n\t\t\t\n\t\t\t/*\n\t\t\t// insert a new user actions\n\t\t\t$act = new Activity; // notification instance\n\t\t\t$act->type_id = '7'; // activity type\n\t\t\t$act->subject_id = $me; \t\t\t\t// id of the user\n\t\t\t$act->object_type = 'film'; // type of object \n\t\t\t$act->object_id = $film; \t// id of the object\n\t\t\t$act->action_date = \\time(); // time of the activity \n\t\t\t$act->save(); // saves activity \n\t\t\t*/\n\n\t\t\t/*if (Auth::user()->fb_access_token) {\n\t\t\t\t$fb = new FacebookController();\n\t\t\t\t$execute = $fb->postFbWatchlist($film, Auth::user()->fb_uid, Auth::user()->fb_access_token);\n\t\t\t}*/\n\t\t\t\n\t\t\tif ($query) {\n\t\t\t\treturn 'true';\n\t\t\t} else {\n\t\t\t\treturn 'false';\n\t\t\t}\t\t\t\n\t\t}\n\t\t return 'false';\n }", "title": "" }, { "docid": "c5e206aeddfd4c3955f87256ae0dd7db", "score": "0.4890237", "text": "abstract protected function register_actions();", "title": "" }, { "docid": "ee7118157edabf9e73ce18e3f50682c3", "score": "0.4889892", "text": "public function checkPageForShortcutRedirect() {}", "title": "" }, { "docid": "ff274386f87862ced23a9b13de6783f6", "score": "0.48840117", "text": "public function action_bbpress_button() {\n\t\t$user = get_userdata( bbp_get_user_id() );\n\n\t\tif ( ! $user ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$link = self::maybe_switch_url( $user );\n\n\t\tif ( ! $link ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$link = add_query_arg( array(\n\t\t\t'redirect_to' => urlencode( bbp_get_user_profile_url( $user->ID ) ),\n\t\t), $link );\n\n\t\t?>\n\t\t<ul id=\"user_switching_switch_to\">\n\t\t\t<li><a href=\"<?php echo esc_url( $link ); ?>\"><?php esc_html_e( 'Switch&nbsp;To', 'user-switching' ); ?></a></li>\n\t\t</ul>\n\t\t<?php\n\n\t}", "title": "" }, { "docid": "dc0dd39db5e7d3ca9f48692dd4cf8d47", "score": "0.48471168", "text": "public function createAction() {\n\t}", "title": "" }, { "docid": "561619f6377a096308d4603f6769853b", "score": "0.4846237", "text": "private function trackActions()\n {\n $dateTime = $this->dateTime;\n\n $t = self::getTracker($this->idSite, $dateTime, $defaultInit = true, $useLocal = false);\n $t->setTokenAuth($this->tokenAuth);\n\n\n // First visitor with one visit with two actions without externalVisitId\n $t->setUserId('d9857faa8002a8eebd0bc75b63dfacef');\n\n $this->moveTimeForward($t, 0.1, $dateTime);\n $t->setUrl('http://example.com/');\n self::checkResponse($t->doTrackPageView('Viewing homepage'));\n\n $this->moveTimeForward($t, 0.3, $dateTime);\n $t->setUrl('http://example.com/');\n self::checkResponse($t->doTrackPageView('Second visit, should belong to existing visit'));\n\n\n // Second visitor with one visit with two actions with external_visit_id\n $t->setUserId('919c1aed2f5b1f79d27951b0b309ff42');\n\n $this->moveTimeForward($t, 0.1, $dateTime);\n $t->setUrl('http://example.com/');\n $t->setCustomTrackingParameter('external_visit_id', 12345);\n self::checkResponse($t->doTrackPageView('Viewing homepage'));\n\n $this->moveTimeForward($t, 0.3, $dateTime);\n $t->setUrl('http://example.com/');\n $t->setCustomTrackingParameter('external_visit_id', 12345);\n self::checkResponse($t->doTrackPageView('Second visit, should belong to existing visit'));\n }", "title": "" }, { "docid": "c72d61cd3ca52bb50c4f03de6f8a8256", "score": "0.482977", "text": "public function register_admin_page_and_actions() {\n\t\t\tif ( ! current_user_can( 'manage_options' ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tadd_action( 'woocommerce_order_action_omise_charge_capture', array( Omise_Hooks::get_instance(), 'charge_capture' ) );\n\t\t\tadd_action( 'admin_post_omise_create_transfer', array( $this, 'create_transfer' ) );\n\t\t\tadd_action( 'admin_post_nopriv_omise_create_transfer', array( $this, 'no_op' ) );\n\t\t\tadd_action( 'admin_menu', array( $this, 'add_dashboard_omise_menu' ) );\n\t\t}", "title": "" }, { "docid": "f4faaac6869c9ae6b874a4a511beadc2", "score": "0.48200908", "text": "private function setAction()\n\t\t{\n\t\t\t$this->_action = ($this->_separetor[2]);\n\t\t}", "title": "" }, { "docid": "4bc364f1038818a81cc83816f2aaf29a", "score": "0.4818111", "text": "public function addAction() {\r\n\t}", "title": "" }, { "docid": "4bc364f1038818a81cc83816f2aaf29a", "score": "0.4818111", "text": "public function addAction() {\r\n\t}", "title": "" }, { "docid": "cfce386cfa3273b2eca8a1b65fb92b61", "score": "0.48024422", "text": "public function setup_actions() {\n\n\t\t// Add a /dashboard/ rewrite rule (so no fake 'page' required)\n\t\tadd_action( 'init', array( $this, 'init__add_dashboard_rewrite_rule' ) );\n\n\t}", "title": "" }, { "docid": "2cbc173b3a9aa851c21d5f1de82a8728", "score": "0.47999656", "text": "function addRedirectorAction(&$actionArray = [])\n{\n $actionArray['go'] = ['Mod-Redirector.php', 'showRedirectorPage'];\n}", "title": "" }, { "docid": "e4e8fee2bf7456498a47e1c9f4f899b3", "score": "0.47971928", "text": "function getNewActions();", "title": "" }, { "docid": "cc504b61da9b6976e448434a2573f9bf", "score": "0.47862342", "text": "protected function checkScreenAction() {}", "title": "" }, { "docid": "40be7f3fed843be8f35e63d6bba2faf2", "score": "0.47617754", "text": "function PreActions()\n {\n array_unshift($this->ActionPaths,\"../EventApp/System/Friends\");\n }", "title": "" }, { "docid": "bcd6a86236c5c020f7369ae0cc72fc89", "score": "0.47591025", "text": "public function SettingsController_TouchIcon_Create($Sender) {\n $Sender->Permission('Garden.Settings.Manage');\n $Sender->AddSideMenu('dashboard/settings/touchicon');\n $Sender->Title(T('Touch Icon'));\n \n if ($Sender->Form->AuthenticatedPostBack()) {\n $Upload = new Gdn_UploadImage();\n try {\n // Validate the upload\n $TmpImage = $Upload->ValidateUpload('TouchIcon', FALSE);\n if ($TmpImage) {\n // Save the uploaded image\n $Upload->SaveImageAs(\n $TmpImage,\n PATH_ROOT.'/uploads/TouchIcon/apple-touch-icon.png',\n 114,\n 114,\n array('OutputType' => 'png', 'ImageQuality' => '8')\n );\n SaveToConfig('Plugins.TouchIcon.Uploaded', TRUE);\n }\n } catch (Exception $ex) {\n $Sender->Form->AddError($ex->getMessage());\n }\n \n $Sender->InformMessage(T('TouchIconSaved', \"Your icon has been saved.\"));\n }\n \n $Sender->Render($this->GetView('touchicon.php')); \n }", "title": "" }, { "docid": "b524baccbe5544ef059256444be6a1ac", "score": "0.47577578", "text": "function actions_add($user, $actiontype_name, $search = \"\", $replace = \"\", $timeframe = 0) {\n\t global $database, $setting;\n\n\t // SET VARS\n\t $publish = 1;\n\n\t // GET CURRENT DATE\n\t $nowdate = time();\n\n\t // GET ACTIONTYPE INFO\n\t $actiontype_info = $database->database_fetch_assoc($database->database_query(\"SELECT * FROM se_actiontypes WHERE actiontype_name='$actiontype_name' LIMIT 1\"));\n\n\t // DONT PUBLISH IF PRIVACY IS TURNED ON AND USER DISALLOWED THIS ACTION TYPE\n\t $user->user_settings();\n\t $dontpublish_array = explode(\",\", $user->usersetting_info[usersetting_actions_dontpublish]);\n\t if($setting[setting_actions_privacy] == 1 AND in_array($actiontype_info[actiontype_id], $dontpublish_array)) {\n\t $publish = 0;\n\t }\n\n\t //MAKE SURE ACTION TYPE IS ENABLED BY ADMIN\n\t if($actiontype_info[actiontype_enabled] != 1) { $publish = 0; }\n\n\t // PUBLISH ACTION\n\t if($publish == 1) {\n\n\t // DELETE OLDEST ACTION(S) FOR THIS USER IF MAX ACTIONS STORED PER USER IS REACHED\n\t $totalactions = $database->database_num_rows($database->database_query(\"SELECT action_id FROM se_actions WHERE action_user_id='\".$user->user_info[user_id].\"'\"));\n\t while($totalactions >= $setting[setting_actions_actionsonprofile]) {\n\t $oldest_action = $database->database_fetch_assoc($database->database_query(\"SELECT action_id FROM se_actions WHERE action_user_id='\".$user->user_info[user_id].\"' ORDER BY action_id ASC LIMIT 1\"));\n\t $database->database_query(\"DELETE FROM se_actions WHERE action_user_id='\".$user->user_info[user_id].\"' AND action_id='$oldest_action[action_id]' LIMIT 1\");\n\t $totalactions--;\n\t }\n\n\t // GET ACTION TEXT\n\t $text = $actiontype_info[actiontype_text];\n\n\t // HTML SPECIAL CHARS THE REPLACEMENT ARRAY\n\t $replace = str_replace(Array(\"&amp;#039;\", \"&amp;quot;\"), Array(\"'\", \"\\\"\"), $replace);\n\t $replace = array_map(\"htmlspecialchars\", $replace);\n\n\t // LOOP THROUGH PLACEHOLDER REPLACEMENT ARRAY\n\t $text = str_replace($search, $replace, $text);\n\n\t // ESCAPE SINGLE QUOTES FOR QUERY\n\t $text = str_replace(\"'\", \"\\'\", $text);\n\n\t // GET PREVIOUS ACTION OF THE SAME TYPE WITH TIMEFRAME SPECIFICATIONS\n\t if($nowdate-$timeframe < 0) { $difference = 0; } else { $difference = $nowdate-$timeframe; }\n\t $prev_query = $database->database_query(\"SELECT action_id FROM se_actions WHERE action_user_id='\".$user->user_info[user_id].\"' AND action_actiontype_id='$actiontype_info[actiontype_id]' AND action_date>'$difference' ORDER BY action_actiontype_id DESC LIMIT 1\");\n\t if($database->database_num_rows($prev_query) == 1) {\n\t $prev = $database->database_fetch_assoc($prev_query);\n\t $update = 1;\n\t } else {\n\t $update = 0;\n\t }\n\n\t // UPDATE OLD ACTION\n\t if($update == 1) {\n\t $database->database_query(\"UPDATE se_actions SET action_date='$nowdate', \n\t\t\t\t\t\t\t\taction_subnet_id='\".$user->user_info[user_subnet_id].\"', \n\t\t\t\t\t\t\t\taction_icon='$actiontype_info[actiontype_icon]', \n\t\t\t\t\t\t\t\taction_text='$text' \n\t\t\t\t\t\t\t\tWHERE action_id='$prev[action_id]' AND action_user_id='\".$user->user_info[user_id].\"' AND action_actiontype_id='$actiontype_info[actiontype_id]'\");\n\n\t \n\t // INSERT NEW ACTION\n\t } else {\n\t $database->database_query(\"INSERT INTO se_actions (action_actiontype_id,\n\t\t\t\t\t\t\t\taction_date, \n\t\t\t\t\t\t\t\taction_user_id, \n\t\t\t\t\t\t\t\taction_subnet_id,\n\t\t\t\t\t\t\t\taction_icon,\n\t\t\t\t\t\t\t\taction_text) VALUES (\n\t\t\t\t\t\t\t\t'$actiontype_info[actiontype_id]',\n\t\t\t\t\t\t\t\t'$nowdate', \n\t\t\t\t\t\t\t\t'\".$user->user_info[user_id].\"', \n\t\t\t\t\t\t\t\t'\".$user->user_info[user_subnet_id].\"',\n\t\t\t\t\t\t\t\t'$actiontype_info[actiontype_icon]',\n\t\t\t\t\t\t\t\t'$text')\");\n\t }\n\n\t }\n\n\t}", "title": "" }, { "docid": "55f950dd6db14dd03db9a10cc238b9ff", "score": "0.47542366", "text": "private function actions()\n {\n }", "title": "" }, { "docid": "1cdfc3f0555f26f0e4fc03493c8d9f45", "score": "0.4751816", "text": "public function addAction() {\n\t}", "title": "" }, { "docid": "1cdfc3f0555f26f0e4fc03493c8d9f45", "score": "0.4751816", "text": "public function addAction() {\n\t}", "title": "" }, { "docid": "e7b86e9a33fe8d382c7d0bfbdd9b5d84", "score": "0.47424307", "text": "public function setUserAction($user_action){\r\n\t\t$this->userAction = $user_action;\r\n\t}", "title": "" }, { "docid": "4b6cc0ba5c57f06472fcdab78d0c0b8b", "score": "0.47262126", "text": "public function onlineAction() {}", "title": "" }, { "docid": "a35b329fb10c279ce54cf76436553ad1", "score": "0.4716823", "text": "public function makeShortcutButton() {}", "title": "" }, { "docid": "ae2f74af0ffe2aa0e6de93af3cfda339", "score": "0.47128895", "text": "function actions_add($user, $actiontype_name, $replace = array(), $action_media = array(), $timeframe = 0, $replace_media = false, $action_object_owner = \"\", $action_object_owner_id = 0, $action_object_privacy = 0)\n {\n\t global $database, $setting;\n \n\t // GET CURRENT DATE\n\t $nowdate = time();\n \n\t // GET ACTIONTYPE INFO\n\t $actiontype_info = $database->database_fetch_assoc($database->database_query(\"SELECT * FROM se_actiontypes WHERE actiontype_name='$actiontype_name' LIMIT 1\"));\n \n\t // DONT PUBLISH IF PRIVACY IS TURNED ON AND USER DISALLOWED THIS ACTION TYPE, OR IS NOT ENABLED BY ADMIN\n\t $user->user_settings();\n\t $dontpublish_array = array_filter(explode(\",\", $user->usersetting_info['usersetting_actions_dontpublish']));\n \n $publish = ( $actiontype_info['actiontype_enabled'] && ( ($setting['setting_actions_privacy'] == 1 && !in_array($actiontype_info['actiontype_id'], $dontpublish_array)) || !$setting['setting_actions_privacy'] ) );\n \n\t // PUBLISH ACTION\n\t if( !$publish ) return;\n \n // DELETE OLDEST ACTION(S) FOR THIS USER IF MAX ACTIONS STORED PER USER IS REACHED\n $totalactions = $database->database_num_rows($database->database_query(\"SELECT action_id FROM se_actions WHERE action_user_id='{$user->user_info['user_id']}'\"));\n if( $totalactions>$setting['setting_actions_actionsonprofile'] )\n {\n $database->database_query(\"DELETE FROM se_actions WHERE action_user_id='{$user->user_info['user_id']}' ORDER BY action_id ASC LIMIT \".($totalactions-$setting['setting_actions_actionsonprofile']));\n \n // CLEANUP THE ACTION MEDIA TABLE\n $database->database_query(\"DELETE se_actionmedia.* FROM se_actionmedia LEFT JOIN se_actions ON se_actions.action_id=se_actionmedia.actionmedia_action_id WHERE action_id IS NULL\");\n }\n \n // GET PREVIOUS ACTION OF THE SAME TYPE WITH TIMEFRAME SPECIFICATIONS\n $difference = ( ($nowdate < $timeframe) ? 0 : $nowdate - $timeframe );\n \n $prev_query = $database->database_query(\"SELECT action_id FROM se_actions WHERE action_user_id='{$user->user_info['user_id']}' AND action_actiontype_id='{$actiontype_info['actiontype_id']}' AND action_date>'{$difference}' ORDER BY action_actiontype_id DESC LIMIT 1\");\n $update = (bool) $database->database_num_rows($prev_query);\n if( $update ) $prev = $database->database_fetch_assoc($prev_query);\n \n // SERIALIZE APPROPRIATE VARS\n $replace = array_map('stripslashes', $replace);\n $action_text = addslashes(serialize($replace));\n \n // UPDATE OLD ACTION\n if( $update )\n {\n $database->database_query(\"\n UPDATE se_actions\n SET action_date='{$nowdate}', \n action_text='{$action_text}',\n action_object_privacy='{$action_object_privacy}'\n WHERE action_id='{$prev['action_id']}' AND\n action_user_id='{$user->user_info['user_id']}' AND\n action_actiontype_id='{$actiontype_info['actiontype_id']}'\n \");\n \n // DELETE OLD MEDIA IF NECESSARY\n if( $replace_media )\n {\n $database->database_query(\"DELETE FROM se_actionmedia WHERE actionmedia_action_id='{$prev['action_id']}'\");\n }\n \n $action_id = $prev['action_id'];\n }\n \n // INSERT NEW ACTION\n else\n {\n $database->database_query(\"\n INSERT INTO se_actions (\n action_actiontype_id,\n action_date, \n action_user_id, \n action_text,\n action_object_owner,\n action_object_owner_id,\n action_object_privacy\n ) VALUES (\n '{$actiontype_info['actiontype_id']}',\n '{$nowdate}', \n '{$user->user_info['user_id']}', \n '{$action_text}',\n '{$action_object_owner}',\n '{$action_object_owner_id}',\n '{$action_object_privacy}'\n )\n \");\n \n $action_id = $database->database_insert_id();\n }\n \n // INSERT MEDIA\n if( is_array($action_media) && !empty($action_media) && $action_id )\n {\n foreach( $action_media as $action_media_index=>$action_media_data )\n {\n $database->database_query(\"\n INSERT INTO se_actionmedia (\n actionmedia_action_id,\n actionmedia_path, \n actionmedia_link,\n actionmedia_width,\n actionmedia_height\n ) VALUES (\n '{$action_id}',\n '{$action_media_data['media_path']}', \n '{$action_media_data['media_link']}', \n '{$action_media_data['media_width']}',\n '{$action_media_data['media_height']}'\n )\n \");\n }\n }\n\t}", "title": "" }, { "docid": "98a9b9babd9d7576a96a781fd2ec9dbc", "score": "0.47030386", "text": "public function browseAction() {\r\n\r\n //DO NOT RENDER IF FAVOURITE FUNCTIONALITY IS ENABLED \r\n if (Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.favourite', 0)) {\r\n return $this->_forwardCustom('requireauth', 'error', 'core');\r\n }\r\n\r\n //GET SEARCH TEXT\r\n if ($this->_getParam('search', null)) {\r\n $metaParams['search'] = $this->_getParam('search', null);\r\n\r\n //SET META KEYWORDS\r\n Engine_Api::_()->sitereview()->setMetaKeywords($metaParams);\r\n }\r\n\r\n if (Engine_Api::_()->seaocore()->isSitemobileApp()) {\r\n //Zend_Registry::set('setFixedCreationForm', true);\r\n Zend_Registry::set('setFixedCreationFormBack', 'Back');\r\n Zend_Registry::set('setFixedCreationHeaderTitle', Zend_Registry::get('Zend_Translate')->_('Browse Wishlists'));\r\n }\r\n\r\n $this->_helper->content\r\n ->setNoRender()\r\n ->setEnabled();\r\n }", "title": "" }, { "docid": "a9ccc35d409b5e8533f7df2daa5c814f", "score": "0.47003263", "text": "protected function makeActionMenu() {}", "title": "" }, { "docid": "e8b93a110aaffd8f017ab6f09240c0d5", "score": "0.46883446", "text": "public function addAction() {\r\n\r\n $param = $this->_getParam('param');\r\n $request_url = $this->_getParam('request_url');\r\n $return_url = $this->_getParam('return_url');\r\n $front = Zend_Controller_Front::getInstance();\r\n $base_url = $front->getBaseUrl();\r\n\r\n // CHECK USER VALIDATION\r\n if (!$this->_helper->requireUser()->isValid()) {\r\n if (!Engine_API::_()->seaocore()->checkSitemobileMode('fullsite-mode')) {\r\n return;\r\n }\r\n $host = (!empty($_ENV[\"HTTPS\"]) && 'on' == strtolower($_ENV[\"HTTPS\"])) ? \"https://\" : \"http://\";\r\n if ($base_url == '') {\r\n $URL_Home = $host . $_SERVER['HTTP_HOST'] . '/login';\r\n } else {\r\n if ($request_url)\r\n $URL_Home = $host . $_SERVER['HTTP_HOST'] . '/' . $request_url . '/login';\r\n else\r\n $URL_Home = $host . $_SERVER['HTTP_HOST'] . $base_url . '/login';\r\n }\r\n if (empty($param)) {\r\n return $this->_helper->redirector->gotoUrl($URL_Home, array('prependBase' => false));\r\n } else {\r\n return $this->_helper->redirector->gotoUrl($URL_Home . '?return_url=' . urlencode($return_url), array('prependBase' => false));\r\n }\r\n }\r\n\r\n //SET LAYOUT\r\n //$this->_helper->layout->setLayout('default-simple');\r\n\r\n //ONLY LOGGED IN USER CAN CREATE\r\n if (!$this->_helper->requireUser()->isValid())\r\n return;\r\n\r\n //GET PAGE ID AND CHECK PAGE ID VALIDATION\r\n $listing_id = $this->_getParam('listing_id');\r\n if (empty($listing_id)) {\r\n return $this->_forward('notfound', 'error', 'core');\r\n }\r\n\r\n //GET VIEWER INFORMATION\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n $this->view->viewer_id = $viewer_id = $viewer->getIdentity();\r\n\r\n if (!Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.favourite', 0)) {\r\n //GET USER WISHLISTS\r\n $wishlistTable = Engine_Api::_()->getDbtable('wishlists', 'sitereview');\r\n $wishlistDatas = $wishlistTable->getUserWishlists($viewer_id);\r\n $this->view->wishlistDatasCount = $wishlistDataCount = Count($wishlistDatas);\r\n\r\n //LISING WILL ADD IF YOU CAN VIEW THIS\r\n $this->view->sitereview = $sitereview = Engine_Api::_()->getItem('sitereview_listing', $this->_getParam('listing_id'));\r\n $listingtype_id = $sitereview->listingtype_id;\r\n Engine_Api::_()->sitereview()->setListingTypeInRegistry($listingtype_id);\r\n $listingType = Zend_Registry::get('listingtypeArray' . $listingtype_id);\r\n\r\n //START PACKAGE WORK\r\n if (Engine_Api::_()->sitereview()->hasPackageEnable($sitereview->listingtype_id)) {\r\n if (!Engine_Api::_()->sitereviewpaidlisting()->allowPackageContent($sitereview->package_id, \"wishlist\", $sitereview->listingtype_id))\r\n return $this->_forward('notfound', 'error', 'core');\r\n }\r\n //END PACKAGE WORK\r\n\r\n $this->view->listing_singular_uc = ucfirst($listingType->title_singular);\r\n $this->view->can_add = 1;\r\n if (!$this->_helper->requireAuth()->setAuthParams($sitereview, null, \"view_listtype_$listingtype_id\")->isValid()) {\r\n $this->view->can_add = 0;\r\n }\r\n\r\n //AUTHORIZATION CHECK\r\n if (empty($listingType->wishlist) || !empty($sitereview->draft) || empty($sitereview->search) || empty($sitereview->approved)) {\r\n $this->view->can_add = 0;\r\n }\r\n\r\n //FORM GENERATION\r\n $this->view->form = $form = new Sitereview_Form_Wishlist_Add();\r\n if (Engine_Api::_()->seaocore()->isSitemobileApp()) {\r\n $this->_helper->layout->setLayout('default');\r\n $this->_setParam('contentType', 'page');\r\n Zend_Registry::set('setFixedCreationForm', true);\r\n Zend_Registry::set('setFixedCreationFormBack', 'Back');\r\n Zend_Registry::set('setFixedCreationHeaderTitle', Zend_Registry::get('Zend_Translate')->_($form->getTitle()));\r\n Zend_Registry::set('setFixedCreationHeaderSubmit', Zend_Registry::get('Zend_Translate')->_('Save'));\r\n $this->view->form->setAttrib('id', 'addToWishlistFormSR');\r\n Zend_Registry::set('setFixedCreationFormId', '#addToWishlistFormSR');\r\n $this->view->form->removeElement('submit');\r\n $this->view->form->removeElement('cancel');\r\n $form->setTitle('');\r\n }\r\n\r\n $this->view->success = 0;\r\n\r\n //FORM VALIDATION\r\n if (!$this->getRequest()->isPost() || !$form->isValid($this->getRequest()->getPost())) {\r\n return;\r\n }\r\n\r\n //GET FORM VALUES\r\n $values = $form->getValues();\r\n\r\n //CHECK FOR NEW ADDED WISHLIST TITLE\r\n if (!empty($values['body']) && empty($values['title'])) {\r\n\r\n $error = $this->view->translate('Please enter the wishlist title otherwise remove the wishlist note.');\r\n $this->view->status = false;\r\n $error = Zend_Registry::get('Zend_Translate')->_($error);\r\n $form->getDecorator('errors')->setOption('escape', false);\r\n $form->addError($error);\r\n return;\r\n }\r\n\r\n //GET WISHLIST PAGE TABLE\r\n $wishlistListingTable = Engine_Api::_()->getDbtable('wishlistmaps', 'sitereview');\r\n\r\n $wishlistOldIds = array();\r\n\r\n //GET FOLLOW TABLE\r\n $followTable = Engine_Api::_()->getDbTable('follows', 'seaocore');\r\n\r\n //GET NOTIFY API\r\n $notifyApi = Engine_Api::_()->getDbtable('notifications', 'activity');\r\n\r\n //WORK ON PREVIOUSLY CREATED WISHLIST\r\n if (!empty($wishlistDatas)) {\r\n\r\n foreach ($wishlistDatas as $wishlistData) {\r\n $key_name = 'wishlist_' . $wishlistData->wishlist_id;\r\n if (isset($values[$key_name]) && !empty($values[$key_name])) {\r\n\r\n $wishlistListingTable->insert(array(\r\n 'wishlist_id' => $wishlistData->wishlist_id,\r\n 'listing_id' => $listing_id,\r\n ));\r\n\r\n //WISHLIST COVER PHOTO\r\n $wishlistTable->update(\r\n array(\r\n 'listing_id' => $listing_id,\r\n ), array(\r\n 'wishlist_id = ?' => $wishlistData->wishlist_id,\r\n 'listing_id = ?' => 0\r\n )\r\n );\r\n\r\n //GET FOLLOWERS\r\n $followers = $followTable->getFollowers('sitereview_wishlist', $wishlistData->wishlist_id, $viewer_id);\r\n foreach ($followers as $follower) {\r\n $followerObject = Engine_Api::_()->getItem('user', $follower->poster_id);\r\n $wishlist = Engine_Api::_()->getItem('sitereview_wishlist', $wishlistData->wishlist_id);\r\n $http = _ENGINE_SSL ? 'https://' : 'http://';\r\n $wishlist_link = '<a href=\"' . $http . $_SERVER['HTTP_HOST'] . '/' . $wishlist->getHref() . '\">' . $wishlist->getTitle() . '</a>';\r\n $notifyApi->addNotification($followerObject, $viewer, $sitereview, 'sitereview_wishlist_followers', array(\"wishlist\" => $wishlist_link));\r\n }\r\n\r\n if (time() >= strtotime($sitereview->creation_date)) {\r\n $activityApi = Engine_Api::_()->getDbtable('actions', 'activity');\r\n $action = $activityApi->addActivity($viewer, $wishlistData, \"sitereview_wishlist_add_listing_listtype_\" . $sitereview->listingtype_id, '', array('listing' => array($sitereview->getType(), $sitereview->getIdentity())));\r\n if ($action)\r\n $activityApi->attachActivity($action, $sitereview);\r\n }\r\n }\r\n\r\n $in_key_name = 'inWishlist_' . $wishlistData->wishlist_id;\r\n if (isset($values[$in_key_name]) && empty($values[$in_key_name])) {\r\n $wishlistOldIds[$wishlistData->wishlist_id] = $wishlistData;\r\n $wishlistListingTable->delete(array('wishlist_id = ?' => $wishlistData->wishlist_id, 'listing_id = ?' => $listing_id));\r\n\r\n //DELETE ACTIVITY FEED\r\n $actionTable = Engine_Api::_()->getDbtable('actions', 'activity');\r\n $actionTableName = $actionTable->info('name');\r\n\r\n $action_id = $actionTable->select()\r\n ->setIntegrityCheck(false)\r\n ->from($actionTableName, 'action_id')\r\n ->joinInner('engine4_activity_attachments', \"engine4_activity_attachments.action_id = $actionTableName.action_id\", array())\r\n ->where('engine4_activity_attachments.id = ?', $listing_id)\r\n ->where($actionTableName . '.type = ?', \"sitereview_wishlist_add_listing_listtype_$sitereview->listingtype_id\")\r\n ->where($actionTableName . '.subject_type = ?', 'user')\r\n ->where($actionTableName . '.object_type = ?', 'sitereview_wishlist')\r\n ->where($actionTableName . '.object_id = ?', $wishlistData->wishlist_id)\r\n ->query()\r\n ->fetchColumn();\r\n\r\n if (!empty($action_id)) {\r\n $activity = Engine_Api::_()->getItem('activity_action', $action_id);\r\n if (!empty($activity)) {\r\n $activity->delete();\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (!empty($values['title'])) {\r\n\r\n $db = Engine_Db_Table::getDefaultAdapter();\r\n $db->beginTransaction();\r\n\r\n try {\r\n\r\n //CREATE WISHLIST\r\n $wishlist = $wishlistTable->createRow();\r\n $wishlist->setFromArray($values);\r\n $wishlist->owner_id = $viewer_id;\r\n $wishlist->listing_id = $listing_id; //WISHLIST COVER PHOTO\r\n $wishlist->save();\r\n\r\n //PRIVACY WORK\r\n $auth = Engine_Api::_()->authorization()->context;\r\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\r\n\r\n if (empty($values['auth_view'])) {\r\n $values['auth_view'] = 'everyone';\r\n }\r\n\r\n $viewMax = array_search($values['auth_view'], $roles);\r\n foreach ($roles as $i => $role) {\r\n $auth->setAllowed($wishlist, $role, 'view', ($i <= $viewMax));\r\n }\r\n\r\n $db->commit();\r\n } catch (Exception $e) {\r\n $db->rollback();\r\n throw $e;\r\n }\r\n\r\n $wishlistListingTable->insert(array(\r\n 'wishlist_id' => $wishlist->wishlist_id,\r\n 'listing_id' => $listing_id,\r\n 'date' => new Zend_Db_Expr('NOW()')\r\n ));\r\n\r\n $activityApi = Engine_Api::_()->getDbtable('actions', 'activity');\r\n $action = $activityApi->addActivity($viewer, $wishlist, \"sitereview_wishlist_add_listing_listtype_\" . $sitereview->listingtype_id, '', array('listing' => array($sitereview->getType(), $sitereview->getIdentity()),\r\n ));\r\n if ($action)\r\n $activityApi->attachActivity($action, $sitereview);\r\n }\r\n\r\n $this->view->wishlistOldDatas = $wishlistOldIds;\r\n $this->view->wishlistNewDatas = $wishlistListingTable->pageWishlists($listing_id, $viewer_id);\r\n $this->view->success = 1;\r\n if (!Engine_API::_()->seaocore()->checkSitemobileMode('fullsite-mode')) {\r\n // $this->view->notSuccessMessage = true;\r\n if (!Engine_Api::_()->seaocore()->isSitemobileApp())\r\n return $this->_forwardCustom('success', 'utility', 'core', array(\r\n //'smoothboxClose' => true,\r\n 'parentRedirect' => $sitereview->getHref(),\r\n 'messages' => array(Zend_Registry::get('Zend_Translate')->_('Entry has been added to wishlist successfully.'))\r\n ));\r\n else\r\n return $this->_forward('success', 'utility', 'core', array(\r\n 'parentRedirect' => $sitereview->getHref(),\r\n 'messages' => array(Zend_Registry::get('Zend_Translate')->_('Entry has been added to wishlist successfully.'))\r\n ));\r\n \r\n }\r\n } else {\r\n $wishlistTable = Engine_Api::_()->getDbtable('wishlists', 'sitereview');\r\n $wishlist_id = $wishlistTable->recentWishlistId($viewer_id, $listing_id);\r\n $action = $this->_getParam('perform', 'add');\r\n Engine_Api::_()->getDbtable('wishlistmaps', 'sitereview')->performWishlistMapAction($wishlist_id, $listing_id, $action);\r\n echo json_encode(array('success' => 'true'));\r\n exit();\r\n }\r\n }", "title": "" }, { "docid": "ec5404d9214895a6035fc39555573349", "score": "0.46815032", "text": "function register_activity_actions() {\n bp_activity_set_action( 'bbpress', 'bbpvotes_voted_up', esc_html__( 'New vote up', 'bbpvotes' ) );\n bp_activity_set_action( 'bbpress', 'bbpvotes_voted_down', esc_html__( 'New vote down', 'bbpvotes' ) );\n }", "title": "" }, { "docid": "e0a9d45bb8deec6135aae8d2be6a9c2d", "score": "0.46774364", "text": "public function followAction() {\n $this->validateRequestMethod('POST');\n// Set the translations for zend library.\n if (!Zend_Registry::isRegistered('Zend_Translate'))\n Engine_Api::_()->getApi('Core', 'siteapi')->setTranslate();\n\n Engine_Api::_()->getApi('Core', 'siteapi')->setView();\n\n //ONLY LOGGED IN USER CAN CREATE\n if (!$this->_helper->requireUser()->isValid())\n $this->respondWithError('unauthorized');\n\n\n $wishlist_id = $this->_getParam('wishlist_id');\n if (isset($wishlist_id) && !empty($wishlist_id)) {\n $subject = $wishlist = Engine_Api::_()->getItem('sitereview_wishlist', $wishlist_id);\n Engine_Api::_()->core()->setSubject($wishlist);\n } else {\n $this->respondWithError('no_record');\n }\n\n //GET VIEWER INFORMATION\n $viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n\n //GET THE VALUE OF RESOURCE ID AND TYPE \n $resource_id = $wishlist_id;\n $resource_type = 'sitereview_wishlist';\n\n $isFollow = $wishlist->follows()->isFollow($viewer);\n $follow_id = empty($isFollow) ? 0 : 1;\n\n //GET FOLLOW TABLE\n $followTable = Engine_Api::_()->getDbTable('follows', 'seaocore');\n $follow_name = $followTable->info('name');\n\n //GET OBJECT\n $resource = Engine_Api::_()->getItem($resource_type, $resource_id);\n if (empty($follow_id)) {\n\n //CHECKING IF USER HAS MAKING DUPLICATE ENTRY OF LIKING AN APPLICATION.\n $follow_id_temp = $resource->follows()->isFollow($viewer);\n if (empty($follow_id_temp)) {\n\n if (!empty($resource)) {\n $follow_id = $followTable->addFollow($resource, $viewer);\n if ($viewer_id != $resource->getOwner()->getIdentity() && $resource->getOwner()->getIdentity()) {\n //ADD NOTIFICATION\n try {\n Engine_Api::_()->getDbtable('notifications', 'activity')->addNotification($resource->getOwner(), $viewer, $resource, 'follow_' . $resource_type, array());\n } catch (Exception $ex) {\n \n }\n if ($resource_type != 'siteevent_event') {\n //ADD ACTIVITY FEED\n $activityApi = Engine_Api::_()->getDbtable('actions', 'activity');\n if ($resource_type != 'sitepage_page' || $resource_type != 'sitebusiness_business' || $resource_type != 'sitegroup_group' || $resource_type != 'sitestore_store') {\n $action = $activityApi->addActivity($viewer, $resource, 'follow_' . $resource_type, '', array(\n 'owner' => $resource->getOwner()->getGuid(),\n ));\n } else {\n $action = $activityApi->addActivity($viewer, $resource, 'follow_' . $resource_type);\n }\n\n if (!empty($action))\n $activityApi->attachActivity($action, $resource);\n }\n }\n }\n }\n } else {\n if (!empty($resource)) {\n $followTable->removeFollow($resource, $viewer);\n\n if ($viewer_id != $resource->getOwner()->getIdentity()) {\n //DELETE NOTIFICATION\n $notification = Engine_Api::_()->getDbtable('notifications', 'activity')->getNotificationByObjectAndType($resource->getOwner(), $resource, 'follow_' . $resource_type);\n if ($notification) {\n $notification->delete();\n }\n\n //DELETE ACTIVITY FEED\n $action_id = Engine_Api::_()->getDbtable('actions', 'activity')\n ->select()\n ->from('engine4_activity_actions', 'action_id')\n ->where('type = ?', \"follow_$resource_type\")\n ->where('subject_id = ?', $viewer_id)\n ->where('subject_type = ?', 'user')\n ->where('object_type = ?', $resource_type)\n ->where('object_id = ?', $resource->getIdentity())\n ->query()\n ->fetchColumn();\n\n if (!empty($action_id)) {\n $activity = Engine_Api::_()->getItem('activity_action', $action_id);\n if (!empty($activity)) {\n $activity->delete();\n }\n }\n }\n }\n }\n\n $this->successResponseNoContent('no_content', true);\n }", "title": "" }, { "docid": "52ba4d5150646f49a43d392f84e1f670", "score": "0.46762267", "text": "private function _record_user_action(){\n\t\t\t$this->class_settings[\"calling_page\"] = $_SERVER[\"DOCUMENT_ROOT\"].'/'.HYELLA_INSTALL_PATH;\n\t\t\t$this->class_settings[\"user_id\"] = \"anonymous\";\n\t\t\t$this->class_settings[\"user_email\"] = \"anonymous\";\n\t\t\t\n\t\t\t$stamp = $this->_new_day();\n\t\t\t\n $trail = array();\n \n\t\t\t//Get Current File\n\t\t\t$filename = $this->class_settings[\"calling_page\"] . 'tmp/'.$this->trail.'/'.$stamp.'.json';\n\t\t\tif( file_exists( $filename ) ){\n\t\t\t\t$trail = json_decode( file_get_contents( $filename ) , true );\n }\n \n\t\t\t$cu = md5( 'ucert' . $_SESSION['key'] );\n\t\t\t\n\t\t\tif( isset( $_SESSION[ $cu ][\"id\"] ) ) {\n\t\t\t\t$this->class_settings[\"user_id\"] = $_SESSION[ $cu ][\"id\"];\n\t\t\t\t$this->class_settings[\"user_email\"] = $_SESSION[ $cu ][\"fname\"] . ' ' . $_SESSION[ $cu ][\"lname\"] .' ( '. $_SESSION[ $cu ][\"email\"] . ' )';\n\t\t\t}\n\t\t\t\n\t\t\t//Prepare new content\n\t\t\t$date = date(\"U\");\n\t\t\t$ip = get_ip_address();\n\t\t\t$trail[] = array( 'user'=> $this->class_settings[\"user_id\"], 'user_mail' => isset( $this->class_settings[\"user_full_name\"] )?$this->class_settings[\"user_full_name\"]:$this->class_settings[\"user_email\"], 'user_action'=>$this->user_action, 'table'=>$this->table, 'comment'=>$this->comment, 'date'=>$date, 'ip_address'=>$ip );\n\t\t\t\n\t\t\t//Write file\n if( ! empty( $trail ) ){\n file_put_contents( $filename , json_encode( $trail ) );\n }\n\t\t\t/*\n\t\t\t$stamp = $this->_new_day();\n\t\t\t\n $trail = array();\n \n\t\t\t//Get Current File\n\t\t\t$filename = $this->class_settings['calling_page'].'tmp/'.$this->trail.'/'.$stamp.'.json';\n\t\t\tif( file_exists( $filename ) ){\n\t\t\t\t$trail = json_decode( file_get_contents( $filename ) , true );\n }\n \n\t\t\t//Prepare new content\n\t\t\t$date = date(\"U\");\n\t\t\t$ip = get_ip_address();\n\t\t\t$trail[] = array( 'user'=> $this->class_settings[\"user_id\"], 'user_mail' => isset( $this->class_settings[\"user_full_name\"] )?$this->class_settings[\"user_full_name\"]:$this->class_settings[\"user_email\"], 'user_action'=>$this->user_action, 'table'=>$this->table, 'comment'=>$this->comment, 'date'=>$date, 'ip_address'=>$ip );\n\t\t\t\n\t\t\t//Write file\n if( ! empty( $trail ) ){\n file_put_contents( $filename , json_encode( $trail ) );\n }\n\t\t\t*/\n\t\t}", "title": "" }, { "docid": "12a161f314938034847ba8c9a37fc0a0", "score": "0.4674888", "text": "public function actionIndex()\n {\n $this->actionUsers();\n $this->actionFollowers();\n $this->actionSocials();\n $this->actionShareEvents();\n }", "title": "" }, { "docid": "3d8a68c20790ad0736a24d233829074f", "score": "0.4674528", "text": "protected function _registerFrontEndClick()\n { // Create a hit id if none present\n if( !$this->_hid /* and APPLICATION_ENVIRONMENT == 'production' */) {\n // Construct the URL\n $url = \"https://affiliate.rbmtracker.com/rd/r.php?pub={$this->_affid}&sid={$this->_cid}&c1={$this->_c1}&c2={$this->_c2}&c3={$this->_c3}\";\n // Mark the click\n $response = file_get_contents($url);\n // Check for permission denied from HitPath\n if( $response == 'The link you have requested is not available, please try your request later.') return;\n // Decode response\n $json = json_decode($response);\n // Check for invalid response\n if( $json === null ) return;\n // Validate the HID\n if( !$json->hid || !is_numeric($json->hid) ) return;\n // Store the HID\n $this->_hid = $json->hid;\n $affData = Yii::app()->session['affData'];\n $affData['hid'] = $this->_hid;\n Yii::app()->session['affData'] = $affData;\n // Log the click\n $this->log('Click registered: '.$this->_hid);\n }\n }", "title": "" }, { "docid": "b434d601a96cc48cdc9bf777c4a52f68", "score": "0.46673155", "text": "public function front_action() {\n\n\t\t$this->set_front_view();\n\t\t$this->set_redirect_after_page();\n\n\t\tif ( $this->should_redirect_user() ) {\n\t\t\t$this->schedule_redirect();\n\t\t}\n\t\tCT_Ultimate_GDPR_Model_Front_View::instance()->set( 'policy_btn_styling', $this->get_option( 'policy_btn_styling' ) );\n\t}", "title": "" }, { "docid": "4805cebf5c9aaf186a72d13b1d601bf6", "score": "0.46672764", "text": "public function createAction() {\r\n\r\n\r\n\r\n //ONLY LOGGED IN USER CAN CREATE\r\n if (!$this->_helper->requireUser()->isValid())\r\n return;\r\n\r\n //GET VIEWER INFORMATION\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n $this->view->viewer_id = $viewer_id = $viewer->getIdentity();\r\n\r\n //FORM GENERATION\r\n $this->view->form = $form = new Sitereview_Form_Wishlist_Create();\r\n if (Engine_Api::_()->seaocore()->isSitemobileApp()) {\r\n $this->_helper->layout->setLayout('default');\r\n $this->_setParam('contentType', 'page');\r\n Zend_Registry::set('setFixedCreationForm', true);\r\n Zend_Registry::set('setFixedCreationFormBack', 'Back');\r\n Zend_Registry::set('setFixedCreationHeaderTitle', Zend_Registry::get('Zend_Translate')->_('Create Wishlist'));\r\n Zend_Registry::set('setFixedCreationHeaderSubmit', Zend_Registry::get('Zend_Translate')->_('Create'));\r\n $this->view->form->setAttrib('id', 'form-upload-wishlist');\r\n Zend_Registry::set('setFixedCreationFormId', '#form-upload-wishlist');\r\n $this->view->form->removeElement('submit');\r\n $this->view->form->removeElement('cancel');\r\n $form->setTitle('');\r\n } else {\r\n //SET LAYOUT\r\n $this->_helper->layout->setLayout('default-simple');\r\n }\r\n if (!$this->getRequest()->isPost() || !$form->isValid($this->getRequest()->getPost())) {\r\n return;\r\n }\r\n\r\n //GET WISHLIST TABLE\r\n $wishlistTable = Engine_Api::_()->getItemTable('sitereview_wishlist');\r\n $db = $wishlistTable->getAdapter();\r\n $db->beginTransaction();\r\n\r\n try {\r\n\r\n //GET FORM VALUES\r\n $values = $form->getValues();\r\n $values['owner_id'] = $viewer->getIdentity();\r\n\r\n //CREATE WISHLIST\r\n $wishlist = $wishlistTable->createRow();\r\n $wishlist->setFromArray($values);\r\n $wishlist->save();\r\n\r\n //PRIVACY WORK\r\n $auth = Engine_Api::_()->authorization()->context;\r\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\r\n\r\n if (empty($values['auth_view'])) {\r\n $values['auth_view'] = 'everyone';\r\n }\r\n $viewMax = array_search($values['auth_view'], $roles);\r\n\r\n $values['auth_comment'] = 'everyone';\r\n $commentMax = array_search($values['auth_comment'], $roles);\r\n\r\n foreach ($roles as $i => $role) {\r\n $auth->setAllowed($wishlist, $role, 'view', ($i <= $viewMax));\r\n $auth->setAllowed($wishlist, $role, 'comment', ($i <= $commentMax));\r\n }\r\n\r\n $db->commit();\r\n } catch (Exception $e) {\r\n $db->rollback();\r\n throw $e;\r\n }\r\n\r\n //GET URL\r\n $url = $this->_helper->url->url(array('wishlist_id' => $wishlist->wishlist_id, 'slug' => $wishlist->getSlug()), \"sitereview_wishlist_view\", true);\r\n\r\n $this->_forward('success', 'utility', 'core', array(\r\n 'smoothboxClose' => true,\r\n 'smoothboxClose' => 10,\r\n 'parentRedirect' => $url,\r\n 'parentRedirectTime' => 10,\r\n 'messages' => array(Zend_Registry::get('Zend_Translate')->_('Your wishlist has been created successfully.'))\r\n ));\r\n }", "title": "" }, { "docid": "c1b35ee443e3df4a06013ea240e5b1f9", "score": "0.46620753", "text": "protected function getAction() {}", "title": "" }, { "docid": "a4de59f823cf2ca36dacd029af67bbba", "score": "0.46590567", "text": "public function addAction() {\n\n //ONLY LOGGED IN USER CAN CREATE\n if (!$this->_helper->requireUser()->isValid())\n $this->respondWithError('unauthorized');\n\n\n //GET PAGE ID AND CHECK PAGE ID VALIDATION\n $listing_id = $this->_getParam('listing_id');\n if (empty($listing_id)) {\n $this->respondWithError('no_record');\n }\n\n //GET VIEWER INFORMATION\n $viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n //GET USER DIARIES\n $wishlistTable = Engine_Api::_()->getDbtable('wishlists', 'sitereview');\n $wishlistDatas = $wishlistTable->userWishlists($viewer);\n $wishlistDataCount = Count($wishlistDatas);\n $sitereview = Engine_Api::_()->getItem('sitereview_listing', $this->_getParam('listing_id'));\n if (empty($sitereview)) {\n $this->respondWithError('no_record');\n }\n\n //FORM GENERATION\n if ($this->getRequest()->isGet()) {\n $response= Engine_Api::_()->getApi('Siteapi_Core', 'sitereview')->getAddToWishlistForm();\n \n $this->respondWithSuccess($response, true);\n } else if ($this->getRequest()->isPost()) {\n $values = $this->_getAllParams();\n if (!Engine_Api::_()->getApi('settings', 'core')->getSetting('sitereview.favourite', 0)) {\n //CHECK FOR NEW ADDED DIARY TITLE OR \n if (!empty($values['body']) && empty($values['title'])) {\n $this->respondWithError('parameter_missing');\n }\n //CHECK FOR TITLE IF NO DIARY\n if (empty($wishlistDatas) && empty($values['title']))\n $this->respondWithError('Title feild required');\n\n //GET DIARY PAGE TABLE\n $wishlistEventTable = Engine_Api::_()->getDbtable('wishlistmaps', 'sitereview');\n\n $wishlistOldIds = array();\n\n //GET NOTIFY API\n $notifyApi = Engine_Api::_()->getDbtable('notifications', 'activity');\n\n\n //WORK ON PREVIOUSLY CREATED DIARY\n if (!empty($wishlistDatas)) {\n foreach ($wishlistDatas as $wishlistData) {\n $key_name = 'wishlist_' . $wishlistData->wishlist_id;\n if (isset($values[$key_name]) && !empty($values[$key_name])) {\n $wishlistEventTable->insert(array(\n 'wishlist_id' => $wishlistData->wishlist_id,\n 'listing_id' => $listing_id,\n ));\n\n //DIARY COVER PHOTO\n $wishlistTable->update(\n array(\n 'listing_id' => $listing_id,\n ), array(\n 'wishlist_id = ?' => $wishlistData->wishlist_id,\n 'listing_id = ?' => 0\n )\n );\n\n $activityApi = Engine_Api::_()->getDbtable('actions', 'activity');\n $action = $activityApi->addActivity($viewer, $wishlistData, \"sitereview_wishlist_add_listing_listtype_\" . $sitereview->listingtype_id, '', array('listing' => array($sitereview->getType(), $sitereview->getIdentity())));\n\n if ($action)\n $activityApi->attachActivity($action, $sitereview);\n }\n $in_key_name = 'inWishlist_' . $wishlistData->wishlist_id;\n if (isset($values[$in_key_name]) && empty($values[$in_key_name])) {\n $wishlistOldIds[$wishlistData->wishlist_id] = $wishlistData;\n $wishlistEventTable->delete(array('wishlist_id = ?' => $wishlistData->wishlist_id, 'listing_id = ?' => $listing_id));\n\n //DELETE ACTIVITY FEED\n $actionTable = Engine_Api::_()->getDbtable('actions', 'activity');\n $actionTableName = $actionTable->info('name');\n\n $action_id = $actionTable->select()\n ->setIntegrityCheck(false)\n ->from($actionTableName, 'action_id')\n ->joinInner('engine4_activity_attachments', \"engine4_activity_attachments.action_id = $actionTableName.action_id\", array())\n ->where('engine4_activity_attachments.id = ?', $listing_id)\n ->where($actionTableName . '.type = ?', \"sitereview_wishlist_add_listing\")\n ->where($actionTableName . '.subject_type = ?', 'user')\n ->where($actionTableName . '.object_type = ?', 'sitereview_wishlist')\n ->where($actionTableName . '.object_id = ?', $wishlistData->wishlist_id)\n ->query()\n ->fetchColumn();\n\n if (!empty($action_id)) {\n $activity = Engine_Api::_()->getItem('activity_action', $action_id);\n if (!empty($activity)) {\n $activity->delete();\n }\n }\n }\n }\n }\n\n if (!empty($values['title'])) {\n\n $db = Engine_Db_Table::getDefaultAdapter();\n $db->beginTransaction();\n\n try {\n //CREATE DIARY\n $wishlist = $wishlistTable->createRow();\n $wishlist->setFromArray($values);\n $wishlist->owner_id = $viewer_id;\n $wishlist->listing_id = $listing_id; //DIARY COVER PHOTO\n $wishlist->save();\n\n //PRIVACY WORK\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\n\n if (empty($values['auth_view'])) {\n $values['auth_view'] = 'owner';\n }\n\n $viewMax = array_search($values['auth_view'], $roles);\n foreach ($roles as $i => $role) {\n $auth->setAllowed($wishlist, $role, 'view', ($i <= $viewMax));\n }\n\n $db->commit();\n $wishlistEventTable->insert(array(\n 'wishlist_id' => $wishlist->wishlist_id,\n 'listing_id' => $listing_id,\n 'date' => new Zend_Db_Expr('NOW()')\n ));\n\n $activityApi = Engine_Api::_()->getDbtable('actions', 'activity');\n $action = $activityApi->addActivity($viewer, $sitereview, \"sitereview_wishlist_add_listing\", null, array('child_id' => $wishlist->wishlist_id));\n\n if ($action) {\n $activityApi->attachActivity($action, $sitereview);\n }\n } catch (Exception $e) {\n $db->rollback();\n throw $e;\n }\n }\n $this->successResponseNoContent('no_content', true);\n } else {\n try {\n $wishlistTable = Engine_Api::_()->getDbtable('wishlists', 'sitereview');\n $wishlist_id = $wishlistTable->recentWishlistId($viewer_id, $listing_id);\n $action = $this->_getParam('perform', 'add');\n Engine_Api::_()->getDbtable('wishlistmaps', 'sitereview')->performWishlistMapAction($wishlist_id, $listing_id, $action);\n $this->successResponseNoContent('no_content', true);\n } catch (Exception $ex) {\n $this->respondWithError('internal_server_error', $ex->getMessage());\n }\n }\n }\n }", "title": "" }, { "docid": "9f3d6d7264084cd72a0e2552046ecb7c", "score": "0.46558514", "text": "function addWPActions()\n\t{\n\t\tadd_action( 'wp_ajax_drawCalendar', array($this, 'drawCalendar' ));\n\t\t\n\t\t// Show available slots for a date click\n\t\tadd_action( 'wp_ajax_drawDaySlots', array($this, 'drawDaySlots' ));\n\t\t\n\t\t// Confirms slot booking prompt\n\t\tadd_action( 'wp_ajax_confirmSlotBookingCheck', array($this, 'confirmSlotBookingCheck' ));\n\t\t\n\t\t// Adds booking slot to the DB\n\t\tadd_action( 'wp_ajax_confirmSlotBooking', array($this, 'confirmSlotBooking' ));\n\n\t\t// Tutors confirm if the meeting happenned or not\n\t\tadd_action( 'wp_ajax_confirmSlotHappenned', array($this, 'confirmSlotHappenned' ));\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "459edfd396177310f7bdbb4fe659e991", "score": "0.46479785", "text": "public function addClickAction(NonKeyAction $a){\n\t\tparent::addClickAction($a);\n\t\t$this->_hour->addClickAction($a);\n\t\t$this->_minute->addClickAction($a);\n\t\t$this->_ampm->addClickAction($a);\n\t}", "title": "" }, { "docid": "e5a474998d6578754b95187828f57eff", "score": "0.46459988", "text": "function run()\r\n {\r\n if (! UserRights :: is_allowed(UserRights :: VIEW_RIGHT, UserRights :: LOCATION_APPROVER_BROWSER, UserRights :: TYPE_COMPONENT))\r\n {\r\n $this->display_header();\r\n Display :: error_message(Translation :: get(\"NotAllowed\", null, Utilities :: COMMON_LIBRARIES));\r\n $this->display_footer();\r\n exit();\r\n }\r\n\r\n $this->ab = $this->get_action_bar();\r\n $output = $this->get_user_html();\r\n\r\n $this->display_header();\r\n\r\n echo $this->ab->as_html() . '<br />';\r\n echo $output;\r\n $this->display_footer();\r\n }", "title": "" }, { "docid": "0c006f7fc2684414f59f2d2166d34512", "score": "0.46438056", "text": "function bp_register_activity_actions() {\n\tdo_action( 'bp_register_activity_actions' );\n}", "title": "" }, { "docid": "99c4354e22797d309d427500aade6cde", "score": "0.46431473", "text": "public function new_watch() {\r\n\t\t$this->event->add(ADD_WATCH_LOAD);\r\n\r\n\t\t$this->_headerData['headerClass'] = 'blue';\r\n\r\n\t\tarray_push($this->_headerData['javaScripts'],\r\n\t\t\t\"jquery.easy-autocomplete.min\", \"watch.autocomplete\");\r\n\r\n\t\tarray_push($this->_headerData['styleSheets'],\r\n\t\t\t\"easy-autocomplete.min\",\r\n\t\t\t\"easy-autocomplete.themes.min\"\r\n\t\t);\r\n\r\n\t\t$this->load->view('header', $this->_headerData);\r\n\r\n\t\t$this->load->view('measure/new-watch', $this->_bodyData);\r\n\r\n\t\t$this->load->view('footer');\r\n\t}", "title": "" }, { "docid": "9d042bcde167ae1fde2cf0e44ae24b30", "score": "0.46394762", "text": "public function createAction() {\n //ONLY LOGGED IN USER CAN CREATE\n if (!$this->_helper->requireUser()->isValid())\n $this->respondWithError('unauthorized');\n\n //GET VIEWER INFORMATION\n $viewer = Engine_Api::_()->user()->getViewer();\n $viewer_id = $viewer->getIdentity();\n\n //FORM GENERATION\n if ($this->getRequest()->isGet()) {\n $response = Engine_Api::_()->getApi('Siteapi_Core', 'Sitereview')->getCreateWishlistForm();\n $this->respondWithSuccess($response, true);\n } else if ($this->getRequest()->isPost()) {\n\n //GET DIARY TABLE\n $wishlistTable = Engine_Api::_()->getItemTable('sitereview_wishlist');\n $db = $wishlistTable->getAdapter();\n $db->beginTransaction();\n\n try {\n //GET FORM VALUES\n $values = $this->_getAllParams();\n if (empty($values['title'])) {\n $this->respondWithValidationError('validation_fail', 'Please complete this field - it is required.');\n }\n $values['owner_id'] = $viewer->getIdentity();\n\n //CREATE DIARY\n $wishlist = $wishlistTable->createRow();\n $wishlist->setFromArray($values);\n $wishlist->save();\n\n //PRIVACY WORK\n $auth = Engine_Api::_()->authorization()->context;\n $roles = array('owner', 'owner_member', 'owner_member_member', 'owner_network', 'registered', 'everyone');\n\n if (empty($values['auth_view'])) {\n $values['auth_view'] = 'owner';\n }\n $viewMax = array_search($values['auth_view'], $roles);\n\n foreach ($roles as $i => $role) {\n $auth->setAllowed($wishlist, $role, 'view', ($i <= $viewMax));\n }\n $db->commit();\n // Change request method POST to GET\n $this->setRequestMethod();\n $this->_forward('profile', 'wishlist', 'sitereview', array(\n 'wishlist_id' => $wishlist->getIdentity()\n ));\n } catch (Exception $e) {\n $db->rollback();\n throw $e;\n }\n }\n }", "title": "" }, { "docid": "8c3b19acb58797bd1ce0e9416ea58875", "score": "0.4637712", "text": "public function watched($me,$film) {\n\t\t\n\t\t$check\t = $this->watchCheck($film,$me);\n\t\t\n\t\tif($check) {\n\t\t\n\t\t} else {\n\t\t\n\t\t\t$query = DB::table('user_watched')->insertGetId(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'watched_fl_id' => $film,\n\t\t\t\t\t\t'watched_usr_id' => $me,\n\t\t\t\t\t\t'watched_updated_date' => time()\n\t\t\t\t\t)\n\t\t\t);\n\n\t\t\t/*\n\t\t\t// insert a new user actions\n\t\t\t$act = new Activity; // notification instance\n\t\t\t$act->type_id = '7'; // activity type\n\t\t\t$act->subject_id = $me; \t\t\t\t// id of the user\n\t\t\t$act->object_type = 'film'; // type of object \n\t\t\t$act->object_id = $film; \t// id of the object\n\t\t\t$act->action_date = \\time(); // time of the activity \n\t\t\t$act->save(); // saves activity \n\n\t\t\t/*if (Auth::user()->fb_access_token) {\n\t\t\t\t$fb = new FacebookController();\n\t\t\t\t$execute = $fb->postFbWatchlist($film, Auth::user()->fb_uid, Auth::user()->fb_access_token);\n\t\t\t}*/\n\t\t\t\n\t\t\tif ($query) {\n\t\t\t\treturn 'true';\n\t\t\t} else {\n\t\t\t\treturn 'false';\n\t\t\t}\t\t\t\n\t\t}\n\t\t return 'false';\n }", "title": "" }, { "docid": "9e1dc151c0ba4fa173884ea26974e5fd", "score": "0.463085", "text": "private function createAction(): string\n {\n // pages\n $action = implode('/', $this->url->getPages());\n\n // init parameters\n $parameters = $this->url->getParameters();\n $moduleParameters = [];\n $getParameters = [];\n\n // sort by key (important for action order)\n ksort($parameters);\n\n // loop and filter parameters\n foreach ($parameters as $key => $value) {\n // skip identifier\n if ($key === 'identifier') {\n continue;\n }\n\n // normal parameter\n if (\\SpoonFilter::isInteger($key)) {\n $moduleParameters[] = $value;\n } else {\n // get parameter\n $getParameters[$key] = $value;\n }\n }\n\n // single language\n if ($this->getContainer()->getParameter('site.multilanguage')) {\n $action = LANGUAGE . '/' . $action;\n }\n\n // add to action\n if (count($moduleParameters) > 0) {\n $action .= '/' . implode('/', $moduleParameters);\n }\n if (count($getParameters) > 0) {\n $action .= '?' . http_build_query($getParameters, null, '&', PHP_QUERY_RFC3986);\n }\n\n // remove trailing slash\n $action = rtrim($action, '/');\n\n // cough up action\n return '/' . $action;\n }", "title": "" }, { "docid": "f23e1a1f2199d799cd86a422cbe5de11", "score": "0.46297964", "text": "private function customPageAction($inputAlias){\n\t\tswitch($this->Params['pageName']){\n\t\t\tcase \"posts-loan_application\":\n\t\t\t\t$loanApprovalActivities = [2,3,4];//explode(\",\",Info::APPROVE_ACTIVITIES);\n\t\t\t\t$viewFields = [\"loan_granted\",\"other_information\"]; // FORCING TO EDITABLE\n\t\t\t\tif(in_array($inputAlias,$viewFields) && in_array($this->globalQueueData->activity_id, $loanApprovalActivities)){\n\t\t\t\t\t$this->pageAction = \"\";\n\t\t\t\t}elseif(in_array($this->globalQueueData->activity_id, $loanApprovalActivities)){\n\t\t\t\t\t$this->pageAction = \"view\";\n\t\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "c3ba2b450813f9054cd161a8ba995cca", "score": "0.4625553", "text": "function main($action) {\n\t\t\t\n\t\t\t// da wir keine seite brauchen, setzen wir den start-view auf uns\n\t\t\t$this->set_start_view('admin_list');\n\t\t\t\n\t\t\t$this->action = $action;\n\t\t\t$this->vid = UTIL::get_post('vid');\n\t\t\t\n\t\t\tswitch(strtolower($action['event'])) \n\t\t\t{\n\t\t\t\tcase 'admin_list':\t$this->set_start_view('admin_list');\tbreak;\n\t\t\t\tcase 'open':\t\t$this->action_open();\t\t\t\t\tbreak;\n\t\t\t\tcase 'close':\t\t$this->action_close();\t\t\t\t\tbreak;\n\t\t\t\tcase 'add':\t\t\t$this->action_add();\t\t\t\t\tbreak;\n\t\t\t\tcase 'remove':\t\t$this->action_remove();\t\t\t\t\tbreak;\n\t\t\t\tcase 'clear':\t\t$this->action_clear();\t\t\t\t\tbreak;\n\t\t\t\tcase 'finish':\t\t$this->action_finish();\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}", "title": "" }, { "docid": "3d24c2dc68a6fb4cf67c0436c2d670b6", "score": "0.46086502", "text": "function virustotalscan_admin_tools_action_handler(&$actions)\r\n{\r\n\t$actions['virustotalscan'] = array('active' => 'virustotalscan', 'file' => 'virustotalscan');\r\n}", "title": "" }, { "docid": "fb1cad99ba3a32bbb554e5735f178892", "score": "0.45946416", "text": "public function addAction()\n\t{\n\n\t}", "title": "" }, { "docid": "b2f13e9426d5ccf450d5428972cde434", "score": "0.45909002", "text": "public function touch() {\n\t\t$item = new WebDriver_SimpleItem($this->url . '/touch');\n\t\treturn $item->setMethods(array(\n\t\t\t'click' => 'POST',\n\t\t\t'down' => 'POST',\n\t\t\t'up' => 'POST',\n\t\t\t'move' => 'POST',\n\t\t\t'scroll' => 'POST',\n\t\t\t'doubleclick' => 'POST',\n\t\t\t'longclick' => 'POST',\n\t\t\t'flick' => 'POST',\n\t\t));\n\t}", "title": "" }, { "docid": "8179678a7a54d06afa93a7f8ca1c1864", "score": "0.4585543", "text": "public function pageAction()\n {\n return $this->indexAction();\n }", "title": "" }, { "docid": "0702cd6963252ee317ecbbcab4bb442c", "score": "0.45767343", "text": "public function set_action($value);", "title": "" }, { "docid": "6443de6721af8c04ad09f216567a3039", "score": "0.45749205", "text": "function sb_schedule_action ($arg1, $arg2, $action = \"\") {\n\n global $user;\n if (!$action) {\n $action = $arg2;\n $arg = $arg1;\n $target_user = $user;\n }\n else if (!$arg1) {\n $arg = $arg2;\n $target_user = $user;\n }\n else {\n $target_user = eto_user_load(array('name' => $arg1));\n $arg = $arg2;\n }\n $action = str_replace('-', '_', $action);\n\n $array = sb_parse_arg($arg);\n\n if ($array[1]) {\n $instance = $array[1];\n }\n $id = $array[0];\n $action = strtolower(check_plain($action));\n $action_string = ucwords($action);\n $action_string = str_replace('_', ' ', $action_string);\n\n if (!$id) {\n drupal_not_found();\n exit;\n } else {\n $schedule = sb_schedule_load($id);\n if (!$schedule) {\n drupal_not_found();\n exit;\n }\n }\n\n // we need to be an admin or own it\n if (! user_access('view others schedule')) {\n if ($schedule->uid != $user->uid) {\n drupal_access_denied();\n exit;\n }\n }\n\n // load our instance and any existing appointments if needed\n if ($instance) {\n $event = sb_schedule_event_load(array('schedule_event_id' => $instance));\n if (! $event) {\n drupal_not_found();\n exit;\n }\n $noun = \"block\";\n $existing_appointments = sb_appointment_by_schedule_id_load(array(\n 'id' => $id,\n 'event' => $event));\n } else {\n $noun = \"series\";\n\n $now = date_make_date(time(), \"UTC\");\n $from_date = date_format($now, DATE_FORMAT_DATETIME);\n\n $existing_appointments = sb_appointment_by_schedule_id_load(array(\n 'id' => $id,\n 'from_date' => $from_date));\n }\n\n // cannot cancel a canceled schedule block; cannot reinstate a non-canceled schedule block\n // since I'm always tempted to combine this: I can't, because a block can be canceled but the instance not\n if ($action == 'reinstate') {\n if ($instance) {\n if ($event->status_flag == 1) {\n\t$reinstate_message = 1;\n }\n } else if ($schedule->status_flag == 1) {\n $reinstate_message = 1;\n }\n } else if (($action == 'cancel') || ($action == 'cancel_from')) {\n if ($instance) {\n if ($event->status_flag == 0) {\n\t$cancel_message = 1;\n }\n } else if ($schedule->status_flag == 0) {\n $cancel_message = 1;\n }\n }\n\n $output .= _schedule_tabs($target_user,\n\t\t\t $event->schedule_id,\n\t\t\t '',\n\t\t\t 'cancel');\n\n\n if ($reinstate_message) {\n $cancel_link = schedule_url(sb_user_base($target_user) . \"/\", $id, $instance, \"cancel\");\n $output .= \"<div class='status'>This is already active. Do you want \" . l(\"to cancel it\", $cancel_link) . \" instead?</div>\";\n $replacement_form_message = l(\"Click here to cancel.\", $cancel_link);\n } else if ($cancel_message) {\n $reinstate_link = schedule_url(sb_user_base($target_user) . \"/\", $id, $instance, \"reinstate\");\n $output .= \"<div class='status'>This is already canceled. Do you want \" . l(\"to reinstate it\", $reinstate_link) . \" instead?</div>\";\n $replacement_form_message = l(\"Click here to reinstate.\", $reinstate_link);\n }\n\n if (($instance != \"\")\n && (($action == 'cancel')\n || ($action == 'cancel_from'))) {\n 1; //fixme, rewrite this if statement\n } else {\n $event = $schedule;\n }\n\n $date = date_make_date($event->start_datetime_utc, \"UTC\");\n date_timezone_set($date, timezone_open(user_tz()));\n\n\n // we're either canceling, or reinstating\n if ($action == 'cancel_from') {\n $title = 'Cancel sessions after ' . date_format($date, DATE_FORMAT_ETO_LONG);\n }\n else {\n $title = $action_string . \" Schedule \" . ucwords($noun);\n }\n drupal_set_title($title);\n $output .= \"<h2>$title</h2>\\n\";\n\n $date_string = \"on \" . date_format($date, DATE_FORMAT_ETO_LONG) . \" at \" . date_format($date, TIME_FORMAT_ETO_STANDARD);\n\n if ($replacement_form_message) {\n $output .= \"<h2>Schedule \" . $noun. \" $date_string</h2>\";\n $output .= \"<p></p>\";\n $output .= $replacement_form_message;\n } else {\n\n if ($noun == \"series\") {\n if ($action == \"cancel_from\") {\n $output .= \"<h2>Cancel sessions $date_string and later</h2>\";\n }\n else {\n $output .= \"<h2>$action_string all sessions after today for schedule \" . $noun. \" $date_string</h2>\";\n }\n if ($action == 'cancel') {\n $now = date_make_date(time(), \"UTC\");\n $from_date = date_format($now, DATE_FORMAT_DATETIME);\n $cancel_count = count(sb_schedule_event_load(array(\n 'schedule_id' => $event->schedule_id,\n 'from_date' => $from_date)));\n $total_count = count(sb_schedule_event_load(array(\n 'schedule_id' => $event->schedule_id\n )));\n $output .= \"This will cancel $cancel_count of the $total_count events in the series.\";\n }\n\n }\n else {\n if ($action == \"cancel_from\") {\n $output .= \"<h2>Cancel schedule blocks $date_string and later</h2>\";\n }\n else {\n\t$output .= \"<h2>$action_string schedule \" . $noun. \" $date_string</h2>\";\n }\n }\n\n if ($action == \"reinstate\") {\n $output .= \"<p>Are you sure you want to reinstate this schedule \" . $noun . \"?</p>\\n\";\n $output .= \"<p>Please note that this will not unreinstate any appointments that were canceled earlier.</p>\\n\";\n }\n\n if ($existing_appointments) {\n $output .= \"<div class='status warning'>Warning: You have \" . count($existing_appointments) . \" appointments scheduled at this time. If you cancel this availability, these appointments will be automatically canceled. This action cannot be undone.</div>\";\n\n drupal_add_js('misc/collapse.js');\n\n $output .= \"<fieldset class='collapsible collapsed' id='list-appointments'>\\n\";\n $output .= \"<legend><a href='#'>\" . t(\"View the appointments that will be canceled\") . \"</a></legend>\\n\";\n $output .= \"<div class='fieldset-wrapper'>\\n\";\n $output .= \"<ul class='session-event-list'>\\n\";\n foreach ($existing_appointments as $app) {\n\t$output .= \"<li>\" . theme('appointment_event_item', $app) . \"</li>\";\n }\n $output .= \"</ul>\\n\";\n $output .= \"</div>\\n\";\n $output .= \"</fieldset>\\n\";\n }\n\n $output .= drupal_get_form('sb_' . $action . '_schedule_form', $event);\n\n if (($instance != \"\") && ($action == 'cancel')) {\n $output .= \"<p><em>Other possible choices:</em></p>\\n\";\n $output .= \"<ul><li><em>\"\n . l(\n \"$action_string all schedule blocks in this series\",\n schedule_url(\n sb_user_base($target_user) . \"/\",\n $id,\n '',\n $action))\n . '</em></li>';\n if ($action != 'cancel_from') {\n\t$output .= \"<li><em>\"\n\t . l(\n\t \"$action_string this block and all blocks after it\",\n\t schedule_url(\n\t\t\t sb_user_base($target_user) . '/',\n\t\t\t $event->schedule_id,\n\t\t\t $event->schedule_event_id,\n\t\t\t 'cancel-from'))\n\t . '</em></li>';\n }\n $output .= '</ul>';\n }\n\n if (! $instance) {\n // see if they want to instead cancel a specific instance\n $output .= \"<h2>Did you want to just cancel one instance?</h2>\";\n $output .= \"If so, select one below:\";\n\n $output .= theme('child_event_list', $event, $target_user, \"cancel\");\n }\n }\n\n return $output;\n}", "title": "" }, { "docid": "f578da01dfbc294b712733328de350ef", "score": "0.45732376", "text": "function favorites_menu( $request ) {\r\n // so we have a menu item if we have both a user, and are in the first sub\r\n // once we decend in to albums, we don't show this button\r\n $user = \\Profile\\profileHandler::getProfileId( $request );\r\n\r\n if ($user) {\r\n $path = $request->getRequestVars();\r\n //print join('/',$path).'<br>';\r\n //print \"/profile/{$user->username}/favorites\";\r\n if (sizeof($path)<2) {\r\n //if (($request->getResource() == 'profile') || ($request->getResource() == 'favorites')) {\r\n \r\n //$mainurl = \"/profile/{$user->username}/favorites\";\r\n $mainurl = \"/favorites/{$user->username}\";\r\n $urls['favorites']['url'] = $mainurl;\r\n\r\n if ($request->getResource() == 'favorites') {\r\n $urls['favorites']['selected'] = 1;\r\n }\r\n\r\n return $urls;\r\n }\r\n } \r\n\r\n}", "title": "" }, { "docid": "b8d0aa965e6629d90fa8df9f33e7d215", "score": "0.45714268", "text": "private function actions() {\n\t\n\t\t// Modify WordPress header contents\n\t\tremove_action( 'wp_head'\t,\t'wp_generator'\t\t\t\t\t\t\t\t);\n\t\tremove_action( 'wp_head'\t,\t'feed_links'\t\t\t\t\t\t, 2\t\t); \n\t\tremove_action( 'wp_head'\t,\t'feed_links_extra'\t\t\t\t\t, 3\t\t); \n\t\tremove_action( 'wp_head'\t,\t'rsd_link'\t\t\t\t\t\t\t\t\t);\n\t\tremove_action( 'wp_head'\t,\t'wlwmanifest_link'\t\t\t\t\t\t\t);\n\t\tremove_action( 'wp_head'\t,\t'rel_canonical'\t\t\t\t\t\t\t\t);\n\t\tremove_action( 'wp_head'\t,\t'wp_shortlink_wp_head'\t\t\t\t\t\t);\n\t\tremove_action( 'wp_head'\t,\t'adjacent_posts_rel_link_wp_head'\t, 10, 0 );\n\t\t\t\n\t\t// Block admin dashboard\n\t\tadd_action( 'admin_init'\t\t, array( $this , 'init_admin' ) );\n\t\n\t\t// Populate apocrypha globals\n\t\tadd_action( 'template_redirect'\t, array( $this , 'populate_globals' ) , 1 );\n\t\t\n\t\t// Support more allowed tags in KSES\n\t\tadd_action( 'init'\t\t\t\t, array( $this , 'kses' ) );\n\t}", "title": "" }, { "docid": "b9daccac29f6b7996a2fc0c3e1d566ad", "score": "0.45714086", "text": "function kstEditAdminFavoriteActionsQuickLinks( $actions ) {\n $actions[KST::getHelpIndex()] = array('Theme Help', 'edit_posts'); // Add\n\n return $actions;\n }", "title": "" }, { "docid": "9b6e1b6c6d47c4d2f5755affeab8c450", "score": "0.45682293", "text": "public function front_action() {\n\n\t\t$this->set_front_view();\n\n\t\t$this->set_redirect_after_page();\n\t\tif ( $this->should_redirect_user() ) {\n\t\t\t$this->schedule_redirect();\n\t\t}\n\n\t}", "title": "" }, { "docid": "005751871e6e891886cf8975be108123", "score": "0.45484647", "text": "public function gridelementsAction() {\n\t\treturn 'dummy';\n\t}", "title": "" }, { "docid": "c7e88200895d69ccf96545541e3b4fd8", "score": "0.45401576", "text": "public function controlActions(){\n switch ($this->action) {\n default:\n $page = Page::code($this->action);\n if ($page->id()!='') {\n $this->layoutPage = 'sidebar';\n $this->titlePage = $page->getBasicInfo();\n $this->metaUrl = url($this->action);\n $this->content = $page->showUi('Complete');\n } else {\n header('Location: '.url());\n exit();\n }\n break;\n case 'intro':\n $this->content = Banner_Ui::intro().'\n <div class=\"intro\">\n <div class=\"introLeft\">\n '.Page::show('intro').'\n </div>\n <div class=\"introRight\">\n '.$this->ui->sidebar().'\n </div>\n </div>';\n break;\n case 'categories':\n case 'categorias':\n $info = explode('_', $this->id);\n $item = Category::read($info[0]);\n $this->layoutPage = 'sidebar';\n if ($item->id()!='') {\n $this->titlePage = $item->getBasicInfo();\n $this->metaDescription = $item->get('shortDescription');\n $this->imagePage = $item->getImage('image', 'web');\n $this->metaUrl = $item->url();\n $this->breadCrumbs = array(url($this->action)=>__('categories'),\n $this->metaUrl=>$this->titlePage);\n $this->content = $item->showUi('Complete');\n } else {\n $this->titlePage = __('categories');\n $this->metaUrl = url($this->action);\n $this->breadCrumbs = array($this->metaUrl=>$this->titlePage);\n $this->content = Category_Ui::intro();\n }\n break;\n case 'posts':\n case 'articles':\n case 'articulos':\n $item = Post::readFirst(array('where'=>'titleUrl=\"'.$this->id.'\"'));\n $this->layoutPage = 'sidebar';\n if ($item->id()!='') {\n $category = Category::read($item->get('idCategory'));\n $this->titlePage = $item->getBasicInfo();\n $this->metaDescription = $item->get('shortDescription');\n $this->imagePage = $item->getImage('image', 'web');\n $this->metaUrl = $item->url();\n $this->breadCrumbs = array($category->url()=>$category->getBasicInfo(),\n $this->metaUrl=>$this->titlePage);\n $this->content = $item->showUi('Complete');\n } else {\n $this->titlePage = __('posts');\n $this->metaUrl = url($this->action);\n $this->breadCrumbs = array($this->metaUrl=>$this->titlePage);\n $this->content = Post_Ui::intro();\n }\n break;\n case 'contact':\n case 'contacto':\n $page = Page::code($this->action);\n $this->titlePage = $page->getBasicInfo();\n $this->metaUrl = url($this->action);\n if ($this->id == 'thanks') {\n $this->message = __('messageThanksContact');\n }\n if (count($this->values)>0) {\n $form = new Contact_Form($this->values);\n $errors = $form->isValid();\n if (count($errors)>0) {\n $this->content = Contact_Ui::intro(array('values'=>$this->values, 'errors'=>$errors));\n } else {\n $contact = new Contact();\n $contact->insert($this->values);\n HtmlMail::send(Params::param('email-contact'), 'notification', array('CONTENT'=>$contact->showUi('Email')));\n header('Location: '.url($this->action.'/thanks'));\n exit();\n }\n } else {\n $this->content = Contact_Ui::intro();\n }\n break;\n case 'error':\n header(\"HTTP/1.0 404 Not Found\");\n $this->titlePage = 'Error 404';\n $this->content = 'Error 404';\n break;\n }\n return $this->ui->render();\n }", "title": "" }, { "docid": "eb7de18fafce3c275650908a94de66a0", "score": "0.4538954", "text": "protected function register_internal_actions() {\r\n\t\t$this->register_action( 'registered_actions', array( $this, 'action_registered' ) );\r\n\t\t$this->register_action( 'sync', array( $this, 'action_sync' ) );\r\n\t\t$this->register_action( 'status', array( $this, 'action_status' ) );\r\n\t\t$this->register_action( 'logout', array( $this, 'action_logout' ) );\r\n\t\t$this->register_action( 'activate', array( $this, 'action_activate' ) );\r\n\t\t$this->register_action( 'deactivate', array( $this, 'action_deactivate' ) );\r\n\t\t$this->register_action( 'install', array( $this, 'action_install' ) );\r\n\t\t$this->register_action( 'upgrade', array( $this, 'action_upgrade' ) );\r\n\t\t$this->register_action( 'delete', array( $this, 'action_delete' ) );\r\n\t\t$this->register_action( 'core_upgrade', array( $this, 'action_core_upgrade' ) );\r\n\t\t$this->register_action( 'analytics', array( $this, 'action_analytics' ) );\r\n\t}", "title": "" }, { "docid": "fc7131b2a4d9994fd46c7c161df531a0", "score": "0.45382506", "text": "public function howtoFirstAppAction()\n {\n return $this->render('@WallabagCore/themes/common/Developer/howto_app.html.twig');\n }", "title": "" }, { "docid": "6d999561735343eb5c8d4cb754f35696", "score": "0.45376372", "text": "public function actions();", "title": "" }, { "docid": "fd7d95adbad8fd859414d3cd79b3decc", "score": "0.45373103", "text": "public function create()\n {\n $this->auth->restrict($this->permissionCreate);\n\n\n Template::set('toolbar_title', lang('mahathuen_action_create'));\n\n Template::render();\n }", "title": "" }, { "docid": "d725050f094b7ff54d44a9cc0ed9d013", "score": "0.45368838", "text": "function mmf_admin_actions() {\n\t\tadd_options_page(\"MapMyFitness\", \"MapMyFitness\", 1, \"mmf\", \"mmf_admin\");\n\t}", "title": "" }, { "docid": "d79b4bb563796cef4f14ea8a147d1fd7", "score": "0.4536305", "text": "public function getUserAction(){\r\n\t\treturn $this->userAction;\r\n\t}", "title": "" }, { "docid": "09041590de21866a54b207f86487948a", "score": "0.4535316", "text": "function post( $id_user, $id_movie ) {\n $watched = add_watched( $id_user, $id_movie );\n \n }", "title": "" }, { "docid": "87a319f43b55f7d986181a2ef83fd2f7", "score": "0.45311403", "text": "public function adminPanelAction() {\n\t}", "title": "" }, { "docid": "a4be9e5db5401a9d0112fa5f6b9eefe8", "score": "0.45277277", "text": "public function tellAFriendAction() {\r\n\r\n //DEFAULT LAYOUT\r\n $this->_helper->layout->setLayout('default-simple');\r\n\r\n //GET VIEWER DETAIL\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n $viewr_id = $viewer->getIdentity();\r\n\r\n //GET WISHLIST ID AND WISHLIST OBJECT\r\n $wishlist_id = $this->_getParam('wishlist_id', $this->_getParam('wishlist_id', null));\r\n $wishlist = Engine_Api::_()->getItem('sitereview_wishlist', $wishlist_id);\r\n\r\n //FORM GENERATION\r\n $this->view->form = $form = new Sitereview_Form_Wishlist_TellAFriend();\r\n if (Engine_Api::_()->seaocore()->isSitemobileApp()) {\r\n $this->_helper->layout->setLayout('default');\r\n $this->_setParam('contentType', 'page');\r\n Zend_Registry::set('setFixedCreationForm', true);\r\n Zend_Registry::set('setFixedCreationFormBack', 'Back');\r\n Zend_Registry::set('setFixedCreationHeaderTitle', Zend_Registry::get('Zend_Translate')->_($form->getTitle()));\r\n Zend_Registry::set('setFixedCreationHeaderSubmit', Zend_Registry::get('Zend_Translate')->_('Send'));\r\n $this->view->form->setAttrib('id', 'tellAFriendFromWishlist');\r\n Zend_Registry::set('setFixedCreationFormId', '#tellAFriendFromWishlist');\r\n $this->view->form->removeElement('wishlist_send');\r\n $this->view->form->removeElement('cancel');\r\n $form->setTitle('');\r\n }\r\n if (!empty($viewr_id)) {\r\n $value['wishlist_sender_email'] = $viewer->email;\r\n $value['wishlist_sender_name'] = $viewer->displayname;\r\n $form->populate($value);\r\n }\r\n\r\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\r\n\r\n //GET FORM VALUES\r\n $values = $form->getValues();\r\n\r\n //EMAIL IDS\r\n $reciver_ids = explode(',', $values['wishlist_reciver_emails']);\r\n\r\n if (!empty($values['wishlist_send_me'])) {\r\n $reciver_ids[] = $values['wishlist_sender_email'];\r\n }\r\n\r\n $reciver_ids = array_unique($reciver_ids);\r\n\r\n $sender_email = $values['wishlist_sender_email'];\r\n\r\n //CHECK VALID EMAIL ID FORMITE\r\n $validator = new Zend_Validate_EmailAddress();\r\n $validator->getHostnameValidator()->setValidateTld(false);\r\n\r\n if (!$validator->isValid($sender_email)) {\r\n $form->addError(Zend_Registry::get('Zend_Translate')->_('Invalid sender email address value'));\r\n return;\r\n }\r\n foreach ($reciver_ids as $reciver_id) {\r\n $reciver_id = trim($reciver_id, ' ');\r\n if (!$validator->isValid($reciver_id)) {\r\n $form->addError(Zend_Registry::get('Zend_Translate')->_('Please enter correct email address of the receiver(s).'));\r\n return;\r\n }\r\n }\r\n\r\n //GET EMAIL DETAILS\r\n $sender = $values['wishlist_sender_name'];\r\n $message = $values['wishlist_message'];\r\n $params['wishlist_id'] = $wishlist_id;\r\n $params['slug'] = $wishlist->getSlug();\r\n $heading = ucfirst($wishlist->getTitle());\r\n\r\n Engine_Api::_()->getApi('mail', 'core')->sendSystem($reciver_ids, 'SITEREVIEW_WISHLIST_TELLAFRIEND_EMAIL', array(\r\n 'host' => $_SERVER['HTTP_HOST'],\r\n 'sender_name' => $sender,\r\n 'wishlist_title' => $heading,\r\n 'message' => '<div>' . $message . '</div>',\r\n 'object_link' => $_SERVER['HTTP_HOST'] . Zend_Controller_Front::getInstance()->getRouter()->assemble($params, 'sitereview_wishlist_view', true),\r\n 'sender_email' => $sender_email,\r\n 'queue' => true\r\n ));\r\n\r\n $this->_forward('success', 'utility', 'core', array(\r\n 'smoothboxClose' => true,\r\n 'parentRefresh' => false,\r\n 'format' => 'smoothbox',\r\n 'messages' => array(Zend_Registry::get('Zend_Translate')->_('Your message to your friend has been sent successfully.'))\r\n ));\r\n }\r\n }", "title": "" }, { "docid": "b38fec849903951f96e81a1c41b735fc", "score": "0.45260608", "text": "function wptu_developer_notes() {\n\tget_currentuserinfo();\n\tif ( current_user_can( 'manage_options' ) ) {\n\t\twp_add_dashboard_widget( '', __( 'Developer Notes' ), 'wptu_notes_dashboard' );\n\t} \n}", "title": "" }, { "docid": "02b9c18987b2f673c8c13a9dbeedb2da", "score": "0.45209637", "text": "public function tellAFriendAction() {\r\n\r\n //DEFAULT LAYOUT\r\n $sitemobile = Engine_Api::_()->getDbtable('modules', 'core')->isModuleEnabled('sitemobile');\r\n if ($sitemobile && !Engine_Api::_()->sitemobile()->checkMode('mobile-mode'))\r\n\t\t\t$this->_helper->layout->setLayout('default-simple');\r\n\r\n //GET VIEWER DETAIL\r\n $viewer = Engine_Api::_()->user()->getViewer();\r\n $viewr_id = $viewer->getIdentity();\r\n\r\n //GET PAGE ID AND PAGE OBJECT\r\n $page_id = $this->_getParam('page_id', $this->_getParam('id', null));\r\n $sitepage = Engine_Api::_()->getItem('sitepage_page', $page_id);\r\n if (empty($sitepage))\r\n return $this->_forwardCustom('notfound', 'error', 'core');\r\n //AUTHORIZATION CHECK FOR TELL A FRIEND\r\n $isManageAdmin = Engine_Api::_()->sitepage()->isManageAdmin($sitepage, 'tfriend');\r\n if (empty($isManageAdmin)) {\r\n return $this->_forwardCustom('requireauth', 'error', 'core');\r\n }\r\n\r\n //FORM GENERATION\r\n $this->view->form = $form = new Sitepage_Form_TellAFriend();\r\n \r\n if (!empty($viewr_id)) {\r\n $value['sender_email'] = $viewer->email;\r\n $value['sender_name'] = $viewer->displayname;\r\n $form->populate($value);\r\n }\r\n \r\n //IF THE MODE IS APP MODE THEN\r\n if (Engine_Api::_()->seaocore()->isSitemobileApp()) {\r\n Zend_Registry::set('setFixedCreationForm', true);\r\n Zend_Registry::set('setFixedCreationFormBack', 'Back');\r\n Zend_Registry::set('setFixedCreationHeaderTitle', Zend_Registry::get('Zend_Translate')->_('Tell a friend'));\r\n Zend_Registry::set('setFixedCreationHeaderSubmit', Zend_Registry::get('Zend_Translate')->_('Send'));\r\n $this->view->form->setAttrib('id', 'tellAFriendFrom');\r\n Zend_Registry::set('setFixedCreationFormId', '#tellAFriendFrom');\r\n $this->view->form->removeElement('sitepage_send');\r\n $this->view->form->removeElement('sitepage_cancel');\r\n $form->setTitle('');\r\n }\r\n\r\n if ($this->getRequest()->isPost() && $form->isValid($this->getRequest()->getPost())) {\r\n\r\n $values = $form->getValues();\r\n\r\n //EDPLODES EMAIL IDS\r\n $reciver_ids = explode(',', $values['sitepage_reciver_emails']);\r\n\r\n if (!empty($values['sitepage_send_me'])) {\r\n $reciver_ids[] = $values['sitepage_sender_email'];\r\n }\r\n $sender_email = $values['sitepage_sender_email'];\r\n\r\n //CHECK VALID EMAIL ID FORMITE\r\n $validator = new Zend_Validate_EmailAddress();\r\n\r\n if (!$validator->isValid($sender_email)) {\r\n $form->addError(Zend_Registry::get('Zend_Translate')->_('Invalid sender email address value'));\r\n return;\r\n }\r\n foreach ($reciver_ids as $reciver_id) {\r\n $reciver_id = trim($reciver_id, ' ');\r\n if (!$validator->isValid($reciver_id)) {\r\n $form->addError(Zend_Registry::get('Zend_Translate')->_('Please enter correct email address of the receiver(s).'));\r\n return;\r\n }\r\n }\r\n $sender = $values['sitepage_sender_name'];\r\n $message = $values['sitepage_message'];\r\n $heading = ucfirst($sitepage->getTitle());\r\n Engine_Api::_()->getApi('mail', 'core')->sendSystem($reciver_ids, 'SITEPAGE_TELLAFRIEND_EMAIL', array(\r\n 'host' => $_SERVER['HTTP_HOST'],\r\n 'sender_name' => $sender,\r\n 'page_title' => $heading,\r\n 'message' => '<div>' . $message . '</div>',\r\n 'object_link' => 'http://' . $_SERVER['HTTP_HOST'] . Engine_Api::_()->sitepage()->getHref($sitepage->page_id, $sitepage->owner_id, $sitepage->getSlug()),\r\n 'sender_email' => $sender_email,\r\n 'queue' => true\r\n ));\r\n\r\n if ($sitemobile && Engine_Api::_()->sitemobile()->checkMode('mobile-mode'))\r\n\t\t\t\t$this->_forwardCustom('success', 'utility', 'core', array( \r\n 'parentRedirect' => $sitepage->getHref(), \r\n 'messages' => array(Zend_Registry::get('Zend_Translate')->_('Your message to your friend has been sent successfully.'))\r\n ));\r\n\t\t else\t\r\n $this->_forwardCustom('success', 'utility', 'core', array(\r\n 'smoothboxClose' => true,\r\n 'parentRefresh' => false,\r\n 'format' => 'smoothbox',\r\n 'messages' => array(Zend_Registry::get('Zend_Translate')->_('Your message to your friend has been sent successfully.'))\r\n ));\r\n }\r\n }", "title": "" }, { "docid": "f8a09f68ca91bbb7a86cdd1728e76c3e", "score": "0.45200709", "text": "function actionList() {\n }", "title": "" }, { "docid": "80bf5ef6d6bc34d63c96822e8117ebb5", "score": "0.45135114", "text": "public function getDefaultAction();", "title": "" }, { "docid": "80bf5ef6d6bc34d63c96822e8117ebb5", "score": "0.45135114", "text": "public function getDefaultAction();", "title": "" }, { "docid": "2ecb9c76c80b3818c83ae361c593cf57", "score": "0.45089912", "text": "public function add_actions() {\n\n // Grab current screen\n $screen = get_current_screen();\n\n // Make sure we're on the correct screen\n if ( ! in_array( $screen->id, $this->screens ) ) {\n return;\n }\n\n add_action( 'save_post', array( $this, 'update_builder_value' ) );\n add_filter( 'content_save_pre', array( $this, 'update_searchable_content_value' ), 10, 1 );\n add_action( 'admin_head', array( $this, 'load_additional_styles' ) );\n add_action( 'admin_footer', array( $this, 'load_additional_assets' ) );\n add_filter( 'admin_body_class', array( $this, 'add_body_class' ) );\n\n }", "title": "" }, { "docid": "32112c0643048d6d56bb5c2d3b7586b7", "score": "0.4508738", "text": "protected function dashboardAction()\n {\n\n }", "title": "" }, { "docid": "b299ba21837e7ac3196daa5da793b250", "score": "0.450669", "text": "protected function actions()\n {\n }", "title": "" }, { "docid": "42ce446af60e61594feef8404c0327e7", "score": "0.45043847", "text": "function setup_actions() {\n\n // Bail if in network admin\n if ( is_network_admin() ) {\n return;\n }\n\n // User profile edit/display actions\n add_action( 'erp_user_profile_role', array( $this, 'role' ) );\n add_action( 'erp_update_user', array( $this, 'update_user' ), 10, 2 );\n }", "title": "" }, { "docid": "00e2612a3b6b25bbc0beeb829b7ef56c", "score": "0.45039257", "text": "private function installSkinnyActions() {\n $s = '<?php\n/******************************\n * filename: SkinnyActions.php\n * description: main Actions class\n */\n\nclass SkinnyActions {\n\n protected $skinnyUser = null;\n\n protected $authenticatedOnly = false;\n\n protected $allowUndefinedActions = false;\n\n /**\n * Attaches the session-user to this action\n * @param SkinnyUser $skinnyUser\n */\n public function setSkinnyUser($skinnyUser) {\n $this->skinnyUser = $skinnyUser;\n }\n\n /**\n * Gets the current SkinnyUser - session\n * @return SkinnyUser\n */\n public function getSkinnyUser() {\n return $this->skinnyUser;\n }\n\n /**\n * Is this module restricted?\n * @return boolean\n */\n public function authenticatedOnly() {\n return $this->authenticatedOnly;\n }\n\n /**\n * Does module allow undefined actions?\n * @return boolean\n */\n public function allowUndefinedActions() {\n return $this->allowUndefinedActions;\n }\n\n /**\n * Redirects the browser to a new page (modue and action)\n * @param string $module\n * @param string $action\n * @param array $request\n */\n public function redirect($module=\\'default\\', $action=\\'index\\', $request=array(\\'GET\\'=>array(), \\'POST\\'=>array())) {\n $param = self::getRelativeRoot().\"$module/$action/\";\n $loop = 0;\n if(isset($request[\\'GET\\'])) {\n foreach ($request[\\'GET\\'] As $key=>$value) {\n if ($loop == 0) {\n $param .= \"?\";\n } else {\n $param .= \"&\";\n }\n $param .= \"$key=$value\";\n $loop++;\n }\n }\n if(isset($request[\\'POST\\'])) {\n foreach ($request[\\'POST\\'] As $key=>$value) {\n if ($loop == 0) {\n $param .= \"?\";\n } else {\n $param .= \"&\";\n }\n $param .= \"$key=$value\";\n $loop++;\n }\n }\n\n if (SkinnySettings::$CONFIG[\\'debug\\']) {\n header( \"Location: /dev.php\".$param );\n } else {\n header( \"Location: \".$param );\n }\n exit;\n }\n\n /**\n * Makes a call to the specified module+action and returns back to the caller\n * @param string $module\n * @param string $action\n * @param array $request\n * @return array\n */\n public function call($module=\\'default\\', $action=\\'index\\', $request=array(\\'GET\\'=>array(), \\'POST\\'=>array())) {\n $moduleClass = SkinnyController::camelize($module) . \\'Actions\\';\n\n $actionMethod = \\'execute\\'.SkinnyController::camelize($action);\n\n $moduleObj = new $moduleClass();\n\n if ($moduleObj->authenticatedOnly()) {\n if (!$this->skinnyUser->isAuthenticated()) {\n //Not authenticated!\n return null;\n }\n }\n\n if (is_callable(array($moduleObj, $actionMethod))) {\n $data = call_user_func_array(array($moduleObj, $actionMethod), array($request));\n if (SkinnySettings::$CONFIG[\\'debug\\']) {\n global $__DEBUG;\n array_push($__DEBUG[\\'data\\'], $data);\n }\n }\n return $data;\n }\n\n /**\n * Gets the relative root directory of the project - useful, if installed in a subdir.\n * @return string\n */\n public static function getRelativeRoot() {\n $rel_path = str_replace($_SERVER[\\'DOCUMENT_ROOT\\'], \\'\\', $_SERVER[\\'SCRIPT_FILENAME\\']);\n if ($rel_path == \"index.php\"){\n $rel_path=\"/\";\n } else if ($rel_path == \"dev.php\") {\n $rel_path=\"/dev.php/\";\n } else {\n $rel_path = substr($rel_path, 0, strrpos($rel_path, \"/\")+1);\n }\n return $rel_path;\n }\n}\n ';\n @file_put_contents('lib/skinnymvc/core/SkinnyActions.php', $s);\n }", "title": "" }, { "docid": "89ee0bf74530c5ff60a127cd4c47154e", "score": "0.4494458", "text": "protected function insertWatchlistMenuItem( MenuBuilder $menu ) {\n\t\t$watchTitle = SpecialPage::getTitleFor( 'Watchlist' );\n\n\t\t// Watchlist link\n\t\t$watchlistQuery = [];\n\t\t$user = $this->getUser();\n\t\tif ( $user ) {\n\t\t\t$view = $user->getOption( SpecialMobileWatchlist::VIEW_OPTION_NAME, false );\n\t\t\t$filter = $user->getOption( SpecialMobileWatchlist::FILTER_OPTION_NAME, false );\n\t\t\tif ( $view ) {\n\t\t\t\t$watchlistQuery['watchlistview'] = $view;\n\t\t\t}\n\t\t\tif ( $filter && $view === 'feed' ) {\n\t\t\t\t$watchlistQuery['filter'] = $filter;\n\t\t\t}\n\t\t}\n\n\t\t$menu->insert( 'watchlist', $isJSOnly = true )\n\t\t\t->addComponent(\n\t\t\t\t$this->msg( 'mobile-frontend-main-menu-watchlist' )->escaped(),\n\t\t\t\t$this->getPersonalUrl(\n\t\t\t\t\t$watchTitle,\n\t\t\t\t\t'mobile-frontend-watchlist-purpose',\n\t\t\t\t\t$watchlistQuery\n\t\t\t\t),\n\t\t\t\tMobileUI::iconClass( 'mf-watchlist', 'before' ),\n\t\t\t\t[ 'data-event-name' => 'watchlist' ]\n\t\t\t);\n\t}", "title": "" }, { "docid": "498c6558bf7ea4c8ceadfe1b08b2df1d", "score": "0.44914314", "text": "public function add_watch(){\r\n\r\n\t\tif($this->expectsPost(array('brand', 'name', 'yearOfBuy',\r\n\t\t\t'serial', 'caliber'))){\r\n\r\n\t\t\tif ($this->watch->addWatch($this->session->userdata('userId'),\r\n\t\t\t\t\t\t$this->brand, $this->name,\r\n\t\t\t\t\t\t$this->yearOfBuy, $this->serial,\r\n\t\t\t\t\t\t$this->caliber)) {\r\n\r\n\t\t\t\t$this->_bodyData['success'] = 'Watch successfully added!';\r\n\r\n\t\t\t}\r\n\r\n\t\t\t$this->constructMeasurePage();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "93fd11f213d17e23d5ee3af7e2c45ec1", "score": "0.4486638", "text": "public function actionDashboard($hash, $currentPage)\n {\n $action = $this->apiRequest->input('action');\n if(isset($action)){\n switch ($action) {\n case 'enable':\n $value = 1;\n break;\n \n case 'disable':\n $value = 0;\n break;\n }\n $this->getUserLinks->updateAction($hash, $value); \n }\n return redirect('api/home/page='.$currentPage);\n }", "title": "" }, { "docid": "f6b6636d6d81d6d347a4bbcb20b48ecc", "score": "0.44864666", "text": "protected function _allow()\n {\n $url = Wasabi::getCurrentUrlArray();\n if ($this->Guardian->isGuestAction($url)) {\n $this->Auth->allow($this->request->params['action']);\n }\n }", "title": "" }, { "docid": "3db50ff7caf29e23848032ab348f927c", "score": "0.44852674", "text": "public function actionAdd()\n {\n // set wishlistId variable from params\n $title = craft()->request->getRequiredParam('title');\n $redirectUrl = craft()->request->getParam('redirect');\n\n // Create a new wishlist with above title\n craft()->wishlist->add($title);\n\n // Set Flash message\n craft()->userSession->setFlash('wishlistAdded', 'Wishlist Added');\n\n // Redirect to plugin index page\n if($redirectUrl)\n {\n $this->redirect($redirectUrl);\n }\n\n $this->redirect('wishlist');\n }", "title": "" }, { "docid": "5ed50d6de1131ff7a109cfbbebe14a8a", "score": "0.44826886", "text": "public function addfavoriteviewAction()\n {\n $this->view->shopid = $this->getRequest()->getParam('shopId');\n $this->view->shopname = $this->getRequest()->getParam('shopName');\n $this->_helper->layout()->disableLayout();\n }", "title": "" }, { "docid": "49962609dbf1064e652173387b0f2a7c", "score": "0.44769838", "text": "protected function infoScreenAction() {}", "title": "" }, { "docid": "676c2bb34dbfe1297ffad4a8f2820728", "score": "0.44738021", "text": "function sparkling_call_for_action() {\r\n if ( is_front_page() && of_get_option( 'w2f_cfa_text' )!=''){\r\n echo '<div id=\"actioncall\" class=\"cfa\">';\r\n echo '<div class=\"container\">';\r\n echo '<div class=\"col-sm-8\">';\r\n echo '<span class=\"cfa-text\">'. of_get_option( 'w2f_cfa_text' ).'</span>';\r\n echo '</div>';\r\n echo '<div class=\"col-sm-4\">';\r\n echo '<a class=\"btn btn-lg cfa-button\" href=\"'. of_get_option( 'w2f_cfa_link' ). '\">'. of_get_option( 'w2f_cfa_button' ). '</a>';\r\n echo '</div>';\r\n echo '</div>';\r\n echo '</div>';\r\n }\r\n}", "title": "" }, { "docid": "2f26b5eddba32e5390f3103855438999", "score": "0.447236", "text": "public function createnewwebAction(){\n\t\t//$this->_appName = $this->getLine(\"please input the name for your project folder:\");\n\t\t$this->handleLocation();\n\t\t$this->copyweb(dirname(__FILE__).DIRECTORY_SEPARATOR.\"templateApp\".DIRECTORY_SEPARATOR,$this->_location);\n\t\t$this->setpermission();\n\t\t$this->ConfigWeb();\n\t\techo \" web installed successfully\\n\";\n\t}", "title": "" }, { "docid": "f8863fbdeb5c90a70807275d4870facb", "score": "0.44711614", "text": "public function action() {\n $html_allowed = array();\n foreach ($_REQUEST as $key => $value) {\n // ignore config values!\n if (!in_array($key, $html_allowed)) {\n $_REQUEST[$key] = $this->xssPrevent($value);\n }\n }\n\n $action = isset($_REQUEST[self::REQUEST_ACTION]) ? $_REQUEST[self::REQUEST_ACTION] : self::ACTION_DEFAULT;\n\n switch ($action) :\n case self::ACTION_CONFIG:\n $this->show(self::ACTION_CONFIG, $this->dlgConfig());\n break;\n case self::ACTION_ABOUT:\n $this->show(self::ACTION_ABOUT, $this->dlgAbout());\n break;\n case self::ACTION_EDIT:\n $this->show(self::ACTION_EDIT, $this->dlgEdit());\n break;\n case self::ACTION_EDIT_CHECK:\n $this->show(self::ACTION_EDIT, $this->checkEdit());\n break;\n case self::ACTION_PROTOCOL:\n $this->show(self::ACTION_PROTOCOL, $this->dlgProtocol());\n break;\n case self::ACTION_CRONJOBS:\n $this->show(self::ACTION_CRONJOBS, $this->dlgCronjobs());\n break;\n default:\n $this->show(self::ACTION_ABOUT, $this->dlgAbout());\n break;\n endswitch;\n }", "title": "" }, { "docid": "582bf8b26cb313e712bad4efd6ff883c", "score": "0.44695157", "text": "public function performAction()\n {\n if (isset($_SESSION['user_id'])) {\n $this->_userLoggedIn();\n } else if (isset($_POST['signin'])) {\n $this->_signInRequested();\n } else if (isset ($_POST['signup'])) {\n $this->_signUpPageRequested();\n } else {\n $this->_noActionTaken();\n }\n }", "title": "" }, { "docid": "04cb28394b9c967a20c4fa71fa70d0cc", "score": "0.44654554", "text": "function PreActions()\n {\n array_push($this->ActionPaths,\"../EventApp/System/Inscriptions\");\n }", "title": "" }, { "docid": "8e23d47d9b8eeeb6d66c0ceafea7cb6e", "score": "0.44651315", "text": "public function registerAction($action){\r\n\t\t\t\t\r\n\t\t\t$this->_actions[] = $action;\r\n\t\t}", "title": "" }, { "docid": "36be0eced4e85ac652d0c15bb8f8bd37", "score": "0.4464439", "text": "public function profileNotificationsAction()\r\n {\r\n\r\n return $this->render('YilinkerFrontendBundle:Profile:profile_notifications.html.twig');\r\n }", "title": "" }, { "docid": "4a5a9f526804a6088ab2ec475f9e77d5", "score": "0.4463666", "text": "public function createAction()\n {\n return ['XXX'];\n }", "title": "" }, { "docid": "e74b6671f3e3c4bb8c63fbd9b6ba4671", "score": "0.4460662", "text": "public function createAction()\n {\n\t\t// set view params\n\t\t$this->view->title = \"Create a New User\";\n\t\t$this->view->edit = false;\n\n\t\t// offload all of the work\n\t\t$this->_update();\n }", "title": "" } ]
c42401c6979edd164f450c409e1ff6b0
Creates a new validation instance for customer create.
[ { "docid": "5877be24073bc07fe3a6fe0a6e7b63da", "score": "0.7789442", "text": "public static function create()\r\n\t{\r\n\t\t$validator = Validation::forge('customer');\r\n\t\t\r\n\t\t$validator->add('contact', 'Contact')->add_rule('contact');\r\n\t\t\r\n\t\t$input = Input::param();\r\n\t\t\r\n\t\tif (array_key_exists('balance', $input)) {\r\n\t\t\t$validator->add('balance', 'Balance')->add_rule('trim');\r\n\t\t}\r\n\t\t\r\n\t\treturn $validator;\r\n\t}", "title": "" } ]
[ { "docid": "66208952d9777190ab8b09e314cb8491", "score": "0.7156367", "text": "public function testApiEnforcesValidationOnCustomerCreate()\n {\n $firstName = $this->faker->firstName;\n $lastName = $this->faker->lastName;\n $countryCode = $this->faker->countryCode;\n $gender = \"M\";\n\n $response = $this->postJson(\n action([CustomerController::class, 'create']),\n [\n 'first_name' => $firstName,\n 'last_name' => $lastName,\n 'country' => $countryCode,\n 'email' => $gender,\n 'gender' => $gender\n ]\n );\n\n $response->assertStatus(422);\n }", "title": "" }, { "docid": "231f32511ceb04cfa29849c681a93a26", "score": "0.6802639", "text": "public function create()\n\t{\n\t\t$v = Customer::validate(Input::all());\n\t\t\n\t\t// if everything ok...\n\t\tif ( $v->passes() ) {\n\t\t\t\n\t\t\t// create a new instance\n\t\t\t$customer = new Customer();\n\t\t\t\n\t\t\t// prepare geocoding\n\t\t\t$curl = new \\Geocoder\\HttpAdapter\\SocketHttpAdapter();\n\t\t\t$geocoder = new \\Geocoder\\Provider\\GoogleMapsProvider($curl);\n\t\t\t$geocoder->apiKey = Config::get('general.google_api_key');\n\t\t\t// get address from input\n\t\t\t$address = Input::get('address');\n\t\t\t// get geocoding result ..\n\t\t\t$geocoded = $geocoder->getGeocodedData($address);\n\t\t\t// can't geocoding the address\n\t\t\tif ($geocoded == '')\n\t\t\t{\n\t\t\t\t$customer->address = Input::get('address');\n\t\t\t\t// can geocoding the address .. so take values from response\n\t\t\t} else {\n\t\t\t\t// populate infos\n\t\t\t\t$customer->address = $geocoded[0]['streetName'].' , '. $geocoded[0]['streetNumber'];\n\t\t\t\t$customer->city = $geocoded[0]['city'];\n\t\t\t\t$customer->postcode = $geocoded[0]['zipcode'];\n\t\t\t\t$customer->province = $geocoded[0]['countyCode'];\n\t\t\t\t$customer->country = $geocoded[0]['countryCode'];\n\t\t\t}\n\n\t\t\t// populate more\n\t\t\t$customer->companyname = Input::get('companyname');\n\t\t\t$customer->sign = Input::get('sign');\n\t\t\t$customer->name = Input::get('name');\n\t\t\t$customer->surname = Input::get('surname');\n\t\t\t$customer->vat = Input::get('vat');\n\t\t\t$customer->telephone = Input::get('telephone');\n\t\t\t$customer->mobile = Input::get('mobile');\n\t\t\t$customer->email = Input::get('email');\n\t\t\t\n\t\t\t// setConnection\n\t\t\t$customer->setConnection('mysql');\n\t\t\t// save the line(s)\n\t\t\t$customer->save();\n\n\t\t\t// success message\n\t\t\tAlert::success(trans('messages.New Customer saved'));\n\t\t\n\t\t// if not ok...\n\t\t} else {\n\t\t\t\n\t\t\t// prepare error message composed by validation messages\n\t\t\t$messages = ''; foreach($v->messages()->messages() as $error) { $messages .= $error[0].'<br>'; } Alert::error($messages);\n\t\t}\n\t\t\n\t\t// redirect back\n\t\treturn redirect()->back();\n\t}", "title": "" }, { "docid": "d33c1757f70799c33240f5d4b5f41d21", "score": "0.636846", "text": "public function createCustomer()\n {\n //Data\n $userData = $this->loadData('customer_account_for_prices_validation', null, 'email');\n $addressData = $this->loadData('customer_account_address_for_prices_validation');\n //Steps\n $this->navigate('manage_customers');\n $this->customerHelper()->createCustomer($userData, $addressData);\n //Verifying\n $this->assertMessagePresent('success', 'success_saved_customer');\n\n return $userData['email'];\n }", "title": "" }, { "docid": "9202e4450816d1216454c1672b479c95", "score": "0.6332005", "text": "public function createCustomer();", "title": "" }, { "docid": "9202e4450816d1216454c1672b479c95", "score": "0.6332005", "text": "public function createCustomer();", "title": "" }, { "docid": "3191443b673801d3c5e4ac69f3a41c76", "score": "0.610379", "text": "protected function createCustomer()\n {\n $customer = new Customer();\n $customer->first_name = Input::get('first_name');\n $customer->last_name = Input::get('last_name');\n $customer->email = Input::get('email');\n $customer->username = Input::get('username');\n $customer->password = Hash::make(Input::get('password'));\n $customer->save();\n\n return $customer;\n }", "title": "" }, { "docid": "d97c9a85ce86e7c23725512b7a844f1c", "score": "0.6064216", "text": "public function createCustomer(){\n\t\t try {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t$data =\t\t\tarray( \n\t\t\t\t\t\t\t\t\t\t\t\t \"source\" => $this->stripe_source, // obtained with Stripe.js\n\t\t\t\t\t\t\t\t\t\t\t\t \"description\" => $this->customer_description //Customer for [email protected]\n\t\t\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 // Use Stripe's bindings...\n\t\t\t\t\t\t\t$this->result = Stripe\\Customer::create($data); \n\t\t\t\t\t\t\t \t\t\t \n\t\t\t\t\t\t\tif(isset($this->result->id)){\n\t\t\t\t\t\t\t\t\t$this->status='1';\n\t\t\t\t\t\t\t\t\t$this->msgArray[]='Customer Have Created Successfully!!';\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->status='0'; \n\t\t\t\t\t\t\t\t$this->msgArray[]='Getting issue in making in Stripe Product.';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t \n\t\t\t\t\t\t} catch (Exception $e) {\n\t\t\t\t\t\t\t// Something else happened, completely unrelated to Stripe\n\t\t\t\t\t\t\t$this->status='0'; \n\t\t\t\t\t\t\t$this->msgArray[]='Getting issue in making in Stripe Product.';\n\t\t\t\t\t\t} \n\t\t \n\t }", "title": "" }, { "docid": "e06a5623512629ec5281612400aa8817", "score": "0.60450923", "text": "public function createCustomer() \n\t{\n\t\t$rule = array(\n\t\t\t'first_name' => 'required',\n\t\t\t'email'\t\t => 'email|required'\n\t\t\t);\n\t\t$cust = Input::all();\n\t\t$valid = Validator::make($cust, $rule);\n\t\tif($valid->fails()) {\n\t\t\treturn Redirect::to('add-customer');\n\t\t} else {\n\t\t\t$customer = new Customer;\n\t\t\t$customer->first_name= Input::get('first_name');\n\t\t\t$customer->last_name = Input::get('last_name');\n\t\t\t$customer->email = Input::get('email');\n\t\t\t$customer->phone_no = Input::get('phone_no');\n\t\t\t$customer->address_1 = Input::get('address_1');\n\t\t\t$customer->address_2 = Input::get('address_2'); \n\t\t\t$customer->city = Input::get('city');\n\t\t\t$customer->state = Input::get('state');\n\t\t\t$customer->zip = Input::get('zip');\n\t\t\t$customer->country = Input::get('country');\n\t\t\t$customer->comment = Input::get('comment');\n\t\t\t$customer->account = Input::get('account');\n\t\t\t$customer->save();\n\n\t\t\treturn Redirect::to('all-customers');\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "cf8de1f010b187b7e8b2d38ace522741", "score": "0.6022943", "text": "public function create()\n {\n try {\n $data['customer'] = [];\n\n // Get validation messages\n $data['validationMessages'] = Customer::$validationMessages;\n\n //Get all country\n $data['countries'] = Country::getAllCountry();\n\n $data['states'] = ['' => 'Select state'];\n\n //Render the customer add form\n return view('customer.add', $data);\n\n } catch (\\Exception $ex) {\n return redirect()->route('customer.index')->with('failure', $ex->getMessage());\n }\n }", "title": "" }, { "docid": "173b1f9205cc241bdc4067cdd6546771", "score": "0.60097843", "text": "public function validateCreate() {\n /** @var IField $fieldName */\n $fieldName=$this->input->field('name');\n /** @noinspection PhpMethodParametersCountMismatchInspection */\n $fieldName\n ->addRule(IValidator::MIN_LENGTH,'Minimal length of name is %d characters!',3)\n ->addRule(IValidator::MAX_LENGTH,'Maximal length of name is %d characters!',100)\n ->addRule(IValidator::REQUIRED,'Name is required!');\n if ($user=$this->getCurrentUser()){\n /** @noinspection PhpMethodParametersCountMismatchInspection */\n $fieldName->addRule(IValidator::CALLBACK,'RuleSet with this name already exists!',function($value)use($user){\n try{\n $this->ruleSetsFacade->checkUniqueRuleSetNameByUser($value,$user,null);\n return true;\n }catch (\\Exception $e){\n return false;\n }\n });\n }\n /** @noinspection PhpMethodParametersCountMismatchInspection */\n $this->input->field('description')->addRule(IValidator::MAX_LENGTH,'Maximal length of description is %d characters!',200);\n }", "title": "" }, { "docid": "efcf43b61dcc6b00c8c8a054ed2f74cb", "score": "0.5998982", "text": "public static function create($type = 'customer')\r\n\t{\r\n\t\t$validator = Validation::forge('contact');\r\n\t\t\r\n\t\tif ($type == 'seller') {\r\n\t\t\t$validator->add('company_name', 'Company Name')->add_rule('trim')->add_rule('required');\r\n\t\t\t$validator->add('email', 'Email')->add_rule('trim')->add_rule('valid_email')->add_rule('required');\r\n\t\t\t\r\n\t\t\t$validator = self::add_optional_address_fields($validator);\r\n\t\t}\r\n\t\telseif ($type == 'customer') {\r\n\t\t\t$validator->add('first_name', 'First Name')->add_rule('trim')->add_rule('required');\r\n\t\t\t$validator->add('last_name', 'Last Name')->add_rule('trim')->add_rule('required');\r\n\t\t\t$validator->add('email', 'Email')->add_rule('trim')->add_rule('valid_email')->add_rule('required');\r\n\t\t\t\r\n\t\t\t$validator = self::add_optional_address_fields($validator);\r\n\t\t}\r\n\t\telseif ($type == 'paymentmethod') {\r\n\t\t\t$validator->add('first_name', 'First Name')->add_rule('trim')->add_rule('required');\r\n\t\t\t$validator->add('last_name', 'Last Name')->add_rule('trim')->add_rule('required');\r\n\t\t\t\r\n\t\t\t$validator = self::add_required_address_fields($validator);\r\n\t\t}\r\n\t\t\r\n\t\t$validator = self::add_optional_fields($validator);\r\n\t\t\r\n\t\treturn $validator;\r\n\t}", "title": "" }, { "docid": "0f4ee7c8559194bc52f9c50d1af735ad", "score": "0.59960127", "text": "private function createCustomer()\n {\n return $this->customerFactory->create();\n }", "title": "" }, { "docid": "12dcd2d1fc63761ebb679d9ed0e62f5d", "score": "0.5981723", "text": "public function create(StoreCustomerRequest $request)\n {\n $customer = $this->customer->create([\n 'first_name' => $request->get('first_name'),\n 'last_name' => $request->get('last_name'),\n 'email' => $request->get('email'),\n 'tel' => $request->get('tel'),\n ]);\n\n return $customer;\n }", "title": "" }, { "docid": "4a75492c72a9f130d48324e83ed496ac", "score": "0.59566176", "text": "public function customer_create (Request $request) {\n\n \t$customer = new Customer;\n \t$customer->name = $request->input('name');\n \t$customer->email = $request->input('email');\n \t$customer->phone_number = $request->input('phone_number');\n \t$customer->is_disabled = $request->input('is_disabled');\n \t$customer->created_at = Carbon::now();\n \t$customer->updated_at = Carbon::now();\n \t$customer->save();\n\n \treturn response()->json(array(\n \t\t'success' => true,\n \t\t'payload' => $customer\n \t));\n\n }", "title": "" }, { "docid": "b1fdab88bbe216012b49a3ea6cdd79ee", "score": "0.5925661", "text": "public function store(Request $request)\n {\n $request -> validate([\n 'fname'=>\"required\",\n 'lname'=>\"required\",\n 'email'=>\"required|unique:customers\",\n 'phone' =>'required|min:10|max:10|unique:customers',\n 'category_id'=>'integer',\n 'campany'=>'required',\n 'address'=>'required'\n ]);\n\n Customer::create($request->all());\n return redirect()->back()->with('success', 'Customer successfully Registered');\n }", "title": "" }, { "docid": "0bd73e100a2141f4e8959d03447521ef", "score": "0.5880366", "text": "public function customerValidation() {\n\t}", "title": "" }, { "docid": "b937a608adee70e559c8c1436f81a435", "score": "0.5868706", "text": "public function store(Request $request)\n {\n// $data = $request->isMethod('put') ? Customer::findOrFail\n// ($request->customer_id) : new Customer;\n\n\n $this->validate($request, array(\n\n \"first_Name\" => 'required|max:255',\n \"last_Name\" => 'required|max:255',\n \"age\" => 'required|integer',\n \"city\" => 'required',\n\n\n )) ;\n\n\n\n\n\n\n\n $data = new Customer();\n// $data->id = $request->input('customer_id');\n $data->first_Name = $request->input('first_Name');\n $data->last_Name = $request->input('last_Name');\n $data->age = $request->input('age');\n $data->city = $request->input('city');\n\n if($data->save()) {\n return new CustomerResource($data);\n }\n\n\n\n\n }", "title": "" }, { "docid": "99cfded7b778d4c5d3bd88fa57f47a43", "score": "0.58573294", "text": "public function store(Request $request)\n {\n $this->validate($request,[\n 'name' => ['required', 'string', 'max:255'],\n 'phone' => ['required', 'string', 'max:255', 'unique:customers'],\n 'credit_limit' => ['required'],\n 'c_status' =>['required']\n ]);\n \n return Customer::create([\n 'name' => $request['name'],\n 'phone' => $request['phone'],\n 'credit_limit' => $request['credit_limit'],\n 'address' => $request['address'],\n 'c_status' => $request['c_status'],\n 'c_photo' => $request['c_photo'],\n ]);\n }", "title": "" }, { "docid": "9a890ebc63c9acf9378ebbb0e2e7f17a", "score": "0.5832406", "text": "public function store(ClinicValidationRequest $request)\n {\n $clinic = Clinic::create([\n 'name' => request('name'),\n 'ext' => request('ext'),\n ]);\n\n return redirect('/clinics')\n ->with('notification', [\n 'title' => 'Created!',\n 'message' =>'New Clinic successfully created!',\n 'class' => 'success'\n ]);\n }", "title": "" }, { "docid": "b6228b34606b948000d8b02eca332049", "score": "0.58180684", "text": "protected function create(array $data) {\n\n return Customer::create([\n 'name' => $data['name'],\n 'email' => $data['email'],\n 'phone' => $data['phone'],\n 'password' => Hash::make($data['password']),\n \n ]);\n }", "title": "" }, { "docid": "a56a6113b136ba59d85629f556c5a92e", "score": "0.58054626", "text": "public function create(ValidationService $validationService)\n {\n return Employee::create($validationService->check('employee_create'));\n }", "title": "" }, { "docid": "1a742beb3e6a7fd38c326b4bc678d1c5", "score": "0.58014745", "text": "public static function create(Model_Customer $customer)\r\n\t{\r\n\t\t$validator = Validation::forge('order');\r\n\t\t\r\n\t\t$validator->add('products', 'Products')->add_rule('required')->add_rule(array('invalid_products' => function ($products) use ($customer) {\r\n\t\t\t$ids = array_keys($products);\r\n\t\t\t\r\n\t\t\tforeach ($ids as $id) {\r\n\t\t\t\tif (!is_numeric($id)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$product_option = Service_Product_Option::find_one($id);\r\n\t\t\t\tif (!$product_option || $product_option->product->seller != $customer->seller) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}));\r\n\t\t\r\n\t\t$validator->add('paymentmethod', 'Paymentmethod')->add_rule(array('invalid_paymentmethod' => function ($paymentmethod) use ($customer) {\r\n\t\t\tif (!$paymentmethod) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$paymentmethod = Service_Customer_Paymentmethod::find_one($paymentmethod);\r\n\t\t\tif (!$paymentmethod || $paymentmethod->customer != $customer) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}));\r\n\t\t\r\n\t\treturn $validator;\r\n\t}", "title": "" }, { "docid": "eed25f357674d60b75fd742e3d3cf8bd", "score": "0.57744807", "text": "public function create(Customer $customer, Number $number)\n {\n //\n }", "title": "" }, { "docid": "752c7237c8fdbff1b022a17f0b1e239d", "score": "0.5769773", "text": "public function testApiCanCreateCustomer()\n {\n $firstName = $this->faker->firstName;\n $lastName = $this->faker->lastName;\n $countryCode = $this->faker->countryCode;\n $email = $this->faker->email;\n $gender = \"M\";\n\n $response = $this->postJson(\n action([CustomerController::class, 'create']),\n [\n 'first_name' => $firstName,\n 'last_name' => $lastName,\n 'country' => $countryCode,\n 'email' => $email,\n 'gender' => $gender\n ]\n );\n\n $response\n ->assertStatus(200)\n ->assertJson([\n 'first_name' => $firstName,\n 'last_name' => $lastName,\n 'country' => $countryCode,\n 'email' => $email,\n 'gender' => $gender\n ]);\n\n $customer = Customer::findByEmail($email);\n\n $this->assertEquals($firstName, $customer->first_name);\n $this->assertEquals($lastName, $customer->last_name);\n $this->assertEquals($countryCode, $customer->country);\n $this->assertEquals($email, $customer->email);\n $this->assertEquals($gender, $customer->gender);\n\n $this->assertLessThanOrEqual(0.25, $customer->bonus);\n $this->assertGreaterThanOrEqual(0.05, $customer->bonus);\n }", "title": "" }, { "docid": "8423734edd40f199fa487f5a71114ec6", "score": "0.5761609", "text": "public function store(Request $request)\n {\n // exit;\n $this->validate($request, ['first_name' => 'required',\n 'last_name' => 'required',\n 'username' => 'required|alpha_num|unique:customers',\n 'email' => 'required|email|unique:customers',\n 'password' => 'required',\n 'status' => 'required',\n //'billing_first_name' => 'required',\n // 'billing_last_name' => 'required',\n // 'billing_address1' => 'required',\n //'billing_city' => 'required',\n // 'billing_state' => 'required',\n // 'billing_post_code' => 'required|alpha_num',\n // 'billing_country' => 'required',\n /// 'billing_phone' => 'required|numeric',\n // 'billing_email' => 'required|email',\n // 'shipping_first_name' => 'required',\n // 'shipping_last_name' => 'required',\n // 'shipping_address1' => 'required',\n // 'shipping_city' => 'required',\n // 'shipping_state' => 'required',\n // 'shipping_post_code' => 'required|numeric',\n // 'shipping_country' => 'required',\n //'shipping_phone' => 'required|numeric',\n //'shipping_email' => 'required|email',\n\n\n ]);\n $input = $request->all();\n\n\n $customer_inserted_id = $this->customer->AddNewCustomer($input);\n \n\n Session::flash('flash_message', 'Customer Successfully Created!');\n return redirect()->action('CustomerController@edit',['id' => $customer_inserted_id]);\n }", "title": "" }, { "docid": "82181b92f59c74c3f95edfaeb0c106fc", "score": "0.57534254", "text": "public function store(CreateCustomerRequest $createCustomerRequest)\n {\n\n // Process bulk files if exists\n if ($createCustomerRequest->hasFile('bulk')) {\n $import = new CustomersImport();\n $import->import($createCustomerRequest->file('bulk'));\n if ($import->failures()->count() > 0) {\n $file_name = strtotime(Carbon::now());\n $this->createFailedCustomersListExcel($import->failures(), $file_name);\n $msg = \"One or more customer details had errors while adding. <a href='failed-customers/$file_name.xlsx' style='color: #1d68a7 !important;'>Click here</a> to download detailed report.\";\n return redirect()->back()->withErrors($msg);\n }\n }\n\n // Process form data if exists\n if (!empty($createCustomerRequest['email'])) {\n Customer::create([\n 'first_name' => $createCustomerRequest['first_name'],\n 'last_name' => $createCustomerRequest['last_name'],\n 'email' => $createCustomerRequest['email'],\n 'phone_number' => $createCustomerRequest['phone_number'],\n ]);\n }\n\n return redirect()->back()->with('message', 'Customer Created Successfully.');\n }", "title": "" }, { "docid": "77214d43a2ba511ea98657ec3ab430ee", "score": "0.5729667", "text": "public function createNewCustomer(CreateNewCustomerRequest $request): Customer\n {\n $response = $this->asyncCreateNewCustomer($request)->wait();\n\n return $this->customerTransformer->fromResponse($response);\n }", "title": "" }, { "docid": "02cd32607be2ce5f30d9ad7e8462af16", "score": "0.5702793", "text": "public function saveCustomer()\n\t\t{\n\t\t\t/** set rules */\n\t\t\t$rules = array(\n\t\t\t\t'title' => 'required',\n\t\t\t\t'name' => 'required'\n\t\t\t);\n\n\t\t\t/** check validator */\n\t\t\t$validator = Validator::make( Input::all(), $rules );\n\n\t\t\tif( $validator->passes() )\n\t\t\t{\n\t\t\t\t$service = New Customerservice;\n\n\t\t\t\t$service->title = Input::get( 'title' );\n\t\t\t\t$service->name = Input::get( 'name' );\n\n\t\t\t\tif( $service->save() )\n\t\t\t\t{\n\t\t\t\t\treturn Redirect::route( 'customer-service' )\n\t\t\t\t\t\t\t->with( 'msg', 'Well done! You have successfully add your Customer Service Point.' );\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn Redirect::route( 'add-customer' )\n\t\t\t\t\t\t\t\t->withErrors( $validator )\n\t\t\t\t\t\t\t\t->withInput();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "9d292f3a6f38dee08ba513970291fbe8", "score": "0.5696332", "text": "public function testNewCustomer()\r\n {\r\n $customer = \\tabs\\api\\core\\Customer::factory('Mr', 'Wyett');\r\n $this->assertEquals('Mr', $customer->getTitle());\r\n $this->assertEquals('Wyett', $customer->getSurname());\r\n }", "title": "" }, { "docid": "9970993c294845cdcb4b74a44696bb30", "score": "0.5671672", "text": "public function store(Request $request)\n {\n \n $customer = new Customer($request->all());\n\n $this->validate($request, [\n 'phone1' => [\n 'regex:/^\\+56[9|2][0-9]{8}$/',\n ],\n 'phone2' => [\n 'regex:/^\\+56[9|2][0-9]{8}$/',\n ],\n 'phone3' => [\n 'regex:/^\\+56[9|2][0-9]{8}$/',\n ]\n ]);\n\n $customer->next_mng = Carbon::now();\n\n if(!$request->user_id)\n $customer->user_id = Auth::user()->id;\n\n $customer->save();\n\n Flash::success(\"Se ha registrado el cliente de forma exitosa!!\");\n\n return redirect()->action('HomeController@index');\n }", "title": "" }, { "docid": "7cfaabe01f832d0a72a92c4a4d4c35ca", "score": "0.56564665", "text": "static function newCustomer($data){\n\t\t$customer = new self();\n\t\tif (sizeof($data) != 17 && sizeof($data) != 16 && sizeof($data) != 14){\n\t\t\tarray_push($customer->errors,\n\t\t\t\t\"Wrong number of arguments supplied\");\n\t\t\tthrow new InvalidObjectException($customer);\n\t\t}\n\t\treturn $customer->build($data);\n\t}", "title": "" }, { "docid": "4b713222a79ba6d50e09d203c5e4dbe2", "score": "0.5652913", "text": "public function store(CustomerCreateRequest $request)\n {\n $userId = auth()->id();\n $request['active'] = 1;\n $request['added_by'] = $userId;\n $request['updated_by'] = $userId;\n Customer::create($request->all());\n return redirect()->back()->with('success_message', 'Customer Created Successfully');\n }", "title": "" }, { "docid": "04f8e12b8f62b817fd083ac5ff852ada", "score": "0.56386995", "text": "public function create()\n {\n //\n // return Validator::make($data, [\n // 'name' => ['required', 'string', 'max:255'],\n // 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n // 'password' => ['required', 'string', 'min:8', 'confirmed'],\n // ]);\n User::create([\n 'email' => '[email protected]',\n 'password' => Hash::make('greatestPasswordIn2019'),\n ]);\n }", "title": "" }, { "docid": "8b0c173dcdc60b0af58d8425ba1a86fe", "score": "0.563757", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'name'=>'required|min:2|unique:customers',\n 'mobile_no'=>'required|min:2|unique:customers',\n 'email'=>'required|min:2|unique:customers',\n 'address'=>'required|min:2|unique:customers', \n ]);\n $customer = new Customer();\n $customer->name =$request->name;\n $customer->mobile_no =$request->mobile_no;\n $customer->email =$request->email;\n $customer->address =$request->address;\n $customer->save();\n return redirect()->back()->with('message','Data added Successfully');\n }", "title": "" }, { "docid": "5d73fb696be9f1e75f2b29e9e3fa3ff2", "score": "0.5625261", "text": "public function validator(array $data) {\n return Customer::validator($data);\n }", "title": "" }, { "docid": "7176e21b424ba6d63e91d59615d7238c", "score": "0.56246424", "text": "public function getValidationCreateReservationInfoStandard()\n {\n\n $validator = new Validator();\n $validator\n /** client_info_id */\n // requied\n ->requirePresence('client_info_id', true, '')\n // not null\n ->notEmpty('client_info_id', 'Client Info must enter')\n // must number\n ->integer('client_info_id', 'Client Info must number')\n /** first_arival_date */\n // requied\n ->requirePresence('first_arrival_date', true, '')\n // not null\n ->notEmpty('first_arrival_date', 'First Arrival Date must enter')\n // Check valid date\n ->date('first_arrival_date', ['ymd'], 'Date is not valid format.')\n /** first_arival_date */\n // requied\n ->requirePresence('last_departure_date', true, '')\n // not null\n ->notEmpty('last_departure_date', 'Last Departure Date must enter')\n // Check valid date\n ->date('last_departure_date', ['ymd'], 'Date is not valid format.')\n // compare last_departure_date\n ->add('last_departure_date', 'custom', [\n 'rule' => function ($value, $context) {\n $first_arrival_date = new Date($context['data']['first_arrival_date']);\n $last_departure_date = new Date($value);\n return $last_departure_date >= $first_arrival_date;\n },\n 'message' => \"Last departure date must be greater than or equal to first arrival date\"\n ])\n\n // Check does exist?\n ->add('first_arrival_date', array(\n 'custom' => [\n 'rule' => [$this, 'checkBusinessDate'],\n 'message' => \"First Arrival date must be greater than or equal to Bussiness Date\"\n ]\n ))\n\n /** canceled */\n // requied\n ->requirePresence('canceled', true, '')\n // not null\n ->notEmpty('canceled', 'Canceled must enter')\n // must integer\n ->integer('canceled', 'Canceled must number')\n /** canceled */\n // requied\n ->requirePresence('no_show', true, '')\n // not null\n ->notEmpty('no_show', 'No Show must enter')\n // must integer\n ->integer('no_show', 'No Show must number')\n /** path_of_reservation */\n // requied\n ->requirePresence('path_of_reservation', true, '')\n // not null\n ->notEmpty('path_of_reservation', 'path_of_reservationmust enter')\n // must integer\n ->integer('path_of_reservation', 'path_of_reservation must number')\n /** path_of_reservation */\n // requied\n ->requirePresence('path_of_reservation', true, '')\n // not null\n ->notEmpty('path_of_reservation', 'Path reservation must enter')\n // must integer\n ->integer('path_of_reservation', 'Path reservation must number')\n /** agent_info_id */\n // requied\n ->notEmpty('agent_info_id', 'Agent info id is a required field', function ($context) {\n return ($context['data']['path_of_reservation'] == 1);\n })\n // must integer\n /** created_date */\n // requied\n ->requirePresence('created_date', true, '')\n // not null\n ->notEmpty('created_date', 'Created Date must enter');\n\n\n return $validator;\n }", "title": "" }, { "docid": "d771ba2bcaaef44d75c274a0fb7af139", "score": "0.56226933", "text": "public function create(array $input)\n {\n if(isset($input['type_business'])){\n\n Validator::make($input, [\n 'name' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'document_type' => ['required', 'string', 'max:255'],\n 'document_number' => ['required', 'integer', 'min:0','max:9999999999'],\n 'cellphone_number' => ['required', 'integer', 'min:0','max:9999999999'],\n 'nit' => ['required', 'string', 'max:255', 'unique:businesses'],\n 'name_business' => ['required', 'string', 'max:255'],\n 'address_business' => ['required', 'string', 'max:255'],\n 'email_business' => ['required', 'string', 'email', 'max:255'],\n 'cellphone_number_business' => ['required', 'integer', 'min:0','max:9999999999'],\n 'data_authorization' => ['required'],\n 'password' => $this->passwordRules(),\n ])->validate();\n\n }else{\n\n Validator::make($input, [\n 'name' => ['required', 'string', 'max:255'],\n 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],\n 'document_type' => ['required', 'string', 'max:255'],\n 'document_number' => ['required', 'integer', 'min:0','max:9999999999'],\n 'cellphone_number' => ['required', 'integer', 'min:0','max:9999999999'],\n 'password' => $this->passwordRules(),\n ])->validate();\n\n }\n\n $user = new User();\n\n if(isset($input['type_business'])){\n $user->assignRole(5);\n\n $business = new Business();\n $business->nit = $input['nit'];\n $business->name = $input['name_business'];\n $business->address = $input['address_business'];\n $business->cellphone_number = $input['cellphone_number_business'];\n $business->email = $input['email_business'];\n $business->data_authorization = $input['data_authorization'] ? true : false;\n\n\n if ($business->save()) {\n\n // $id_business = DB::table('businesses') \n // ->select('id')->where('nit', $business->nit)->get();\n\n // $id_business = $business->loadBusiness($business->nit);\n\n $id_business = Business::where('nit','=', $business->nit)->first();\n\n // error_log('aqui llego 1 ');\n // error_log($id_business->id);\n }\n\n\n }else{\n\n $user->assignRole(4);\n\n }\n \n $user->name = $input['name'];\n $user->email = $input['email'];\n $user->password = Hash::make($input['password']);\n $user->is_enabled = true;\n $user->interests = json_encode($input['interests']);\n $user->document_type = $input['document_type'];\n $user->document_number = $input['document_number'];\n $user->cellphone_number = $input['cellphone_number'];\n $user->id_business = $id_business->id;\n \n\n if($user->save()){\n\n if(isset($input['type_business'])){\n\n #asociasion de usuario empresa\n if(!is_null($input['nit'])){\n $user->business()->associate($input['nit']);\n }\n\n Notification::send($user, new NewUserBusiness());\n\n\n }else{\n\n $user->educationalInstitutionFaculties()->attach($input['educational_institutions_faculties_id'],['is_principal' => true]);\n $external = false;\n $researchTeam = ResearchTeam::find($input['research_teams_id']);\n // se agrega al semillero de investigación\n $researchTeam->members()->attach([$user->id => ['is_external' => $external,'accepted_at'=> date(\"Y-m-d H:i:s\")]] );\n $faculty = $user->educationalInstitutionFaculties()->where('is_principal', 1)->first();\n $educationalInstitution = $faculty->educationalInstitution;\n $adminInstitution = $educationalInstitution->administrator;\n\n $type = \"Registro nuevo estudiante\";\n Notification::send($adminInstitution, new InformationNotification($user,$type));\n\n }\n\n }\n return $user;\n }", "title": "" }, { "docid": "7601108c8dd096fc1ca99b5035ab1515", "score": "0.5602278", "text": "public function addNewCustomer3(Request $request){\n\n /**\n * validate\n */\n $this->validate($request,[\n 'pricecode'=> 'required',\n 'pdisc' => 'numeric',\n 'tax' => 'numeric',\n 'disc' => 'numeric',\n 'limit' => 'numeric',\n 'ytdsls' => 'numeric',\n \n \n ]);\n\n \n\n $newCustomer = new Customer;\n\n $newCustomer->custno = $request['custno'];\n\n $newCustomer->entered = date('Y-m-d');\n\n $newCustomer->locid = $request['locid'];\n\n $newCustomer->statfmt = $request['statfmt'];\n\n $newCustomer->company = $request['company'];\n\n $newCustomer->type = $request['type'];\n\n $newCustomer->phone = $request['phone'];\n\n $newCustomer->address1 = $request['address1'];\n\n $newCustomer->faxno = $request['faxno'];\n\n $newCustomer->city = $request['city'];\n\n $newCustomer->state = $request['state'];\n\n $newCustomer->zip = $request['zip'];\n\n $newCustomer->country = $request['country'];\n \n $newCustomer->terr = $request['state'];\n\n $newCustomer->contact = $request['contact'];\n\n $newCustomer->dealer = $request['dealer'];\n\n $newCustomer->code = $request['code'];\n\n $newCustomer->salesmn = $request['salsemn'];\n\n $newCustomer->title = $request['title'];\n\n $newCustomer->history = $request['history'];\n\n $newCustomer->pricecode = $request['pricecode'];\n\n $newCustomer->indust = $request['indust'];\n\n\n $newCustomer->taxdist = $request['taxdist'];\n\n $newCustomer->source = $request['source'];\n\n $newCustomer->comment = $request['comment'];\n\n $newCustomer->pterms = $request['pterms'];\n\n $newCustomer->pdisc = $request['pdisc'];\n\n $newCustomer->disc = $request['disc'];\n\n $newCustomer->tax = $request['tax'];\n\n $newCustomer->limit = $request['limit'];\n\n $newCustomer->permit = $request['permit'];\n\n $newCustomer->ytdsls = $request['ytdsls'];\n\n $newCustomer->save();\n\n /**\n * also create a new ship address record in CustAddress\n */\n\n // $shipAddress = new CustAddress;\n\n // $shipAddress->custno = $request->custno;\n\n // $shipAddress->company = $request->company;\n\n // $shipAddress->cshipno = $request->custno;\n\n // $shipAddress->phone = $request->phone;\n\n // $shipAddress->address1 = $request->address1;\n\n // //$shipAddress->address2 = $request->address2;\n\n // $shipAddress->faxno = $request->faxno;\n\n // $shipAddress->contact = $request->contact;\n\n // $shipAddress->city = $request->city;\n\n // $shipAddress->state = $request->state;\n\n // $shipAddress->zip = $request->zip;\n\n // $shipAddress->country = $request->country;\n\n // $shipAddress->comment = $request->comment;\n\n // $shipAddress->dealer = $request->dealer;\n\n // $shipAddress->title = $request->title;\n\n // $shipAddress->salesmn = $request->salesmn;\n\n // $shipAddress->disc = $request->disc;\n\n // $shipAddress->taxdist = $request->taxdist;\n\n // $shipAddress->tax = $request->tax;\n\n // $shipAddress->code = $request->code;\n\n // $shipAddress->entered = date('Y-m-d');\n\n\n // $shipAddress->save();\n\n\n if ($request->from=='receive') {\n return view('receive.home');\n }else{\n return view('salesOrders.home');\n\n }\n \n }", "title": "" }, { "docid": "4e1c3900ad989f67838de974ea79f749", "score": "0.56022286", "text": "private function createStripeCustomer()\n {\n return StripeCustomer::create([\n 'email' => $this->user->email,\n ]);\n }", "title": "" }, { "docid": "a791826b399ba0ec2416f4b96089901d", "score": "0.5600799", "text": "public function store(Request $request)\n {\n $input = $request->all();\n $validator = Validator::make($input, [\n 'customer_name' => 'required',\n 'phone_number' => 'required|numeric|digits_between:9,20|unique:customers,phone_number',\n 'email' => 'required|email|regex:/^[a-zA-Z]{1}/|unique:customers,email',\n ]);\n if ($validator->fails()) {\n return $this->sendError($validator->errors());\n }\n $options = [\n 'cost' => 12,\n ];\n $input['status'] = 1;\n $customer = Customer::create($input);\n if (is_object($customer)) {\n return response()->json([\n \"result\" => $customer,\n \"message\" => 'Registered Successfully',\n \"status\" => 1\n ]);\n } else {\n return response()->json([\n \"message\" => 'Sorry, something went wrong !',\n \"status\" => 0\n ],400);\n }\n\n }", "title": "" }, { "docid": "55988e66da6f62c641f1c07d5d04f857", "score": "0.55916655", "text": "public function create()\n {\n $this->authorize('create', CustomerPhone::class);\n return Inertia::render(\"CustomerPhones/Create\", [\n \"can\" => [\n \"viewAny\" => \\Auth::user()->can('viewAny', CustomerPhone::class),\n \"create\" => \\Auth::user()->can('create', CustomerPhone::class),\n ]\n ]);\n }", "title": "" }, { "docid": "f7eb1afab53903db5f540a3f4f4e3d1c", "score": "0.5587885", "text": "public function create()\n {\n\n return view('customer.create');\n \n \n }", "title": "" }, { "docid": "f72e311880e8b18796f7741aec153efc", "score": "0.5587855", "text": "public function actionCreate()\n {\n $model = new Customer();\n if (Yii::$app->user->identity->getRoleId() != 1) {\n $model->customer_code = json_decode($this->actionGenCustomerCode(Yii::$app->user->identity->clinic_id));\n }\n if ($model->load(Yii::$app->request->post())) {\n if ($model->customer_status_id) {\n $model->customer_status_id = implode(',', $model->customer_status_id);\n }\n if (Yii::$app->user->identity->getRoleId() != 1) {\n $model->clinic_id = Yii::$app->user->identity->clinic_id;\n }\n $model->step = 1;\n $model->customer_img = UploadedFile::getInstance($model, 'customer_img');\n $model->upload();\n if ($model->save()) {\n return $this->redirect(['index']);\n } else {\n print_r($model->getErrors());\n exit;\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }", "title": "" }, { "docid": "6005ba48048e8dfd7842af48cfbaffe6", "score": "0.558598", "text": "public function create()\n {\n Auth::user()->can('create-customer', Customer::class) ?: abort(403);\n\n return view('customer.form');\n }", "title": "" }, { "docid": "03c7d7b8c370a3f47d76107f18d5ea7a", "score": "0.5579245", "text": "public function create(Request $request)\n {\n\n // $validatedInputs= $request->validate([\n \n\n // \"email\" => \"required|email\",\n // \"job_title\" => \"required\",\n // \"job_desc\" => \"required\",\n // \"category_id\" => \"required\",\n // \"major_id\" => \"required\",\n // \"company_name\" => \"required\",\n // \"job_city\" => \"required\",\n // \"company_logo\" => \"required\",\n // \"phone\" => \"required\",\n \n\n // ]);\n\n\n \n\n return $this->store($request);\n\n }", "title": "" }, { "docid": "9b9af34a17eb8e5c9a98b0fac54af2a1", "score": "0.5578879", "text": "protected function fillExistingCustomerValidators()\n {\n $this->setValidator(\n 'email',\n new sfValidatorAnd(\n [\n new sfValidatorEmail(),\n new sfValidatorCallback(['callback' => [$this, 'validateExistingClient']], ['invalid' => 'Such email is not registered']),\n ]\n )\n );\n }", "title": "" }, { "docid": "8c7d4bd4c2b9c9f5f83616b9a6fa5313", "score": "0.5577391", "text": "public function create() {\n \n //\n \n }", "title": "" }, { "docid": "847383a94a4393041bdf16d723058348", "score": "0.5576826", "text": "public function createAsRazorpayCustomer(array $options = [])\n {\n $customerFields = ['name', 'email', 'contact', 'fail_existing'];\n\n $options = array_key_exists('email', $options)\n ? $options : array_merge($options, ['email' => $this->email]);\n\n $options = array_key_exists('contact', $options)\n ? $options : array_merge($options, ['contact' => $this->mobile_no]);\n\n $options = array_key_exists('name', $options)\n ? $options : array_merge($options, ['name' => $this->full_name]);\n\n $options = array_key_exists('fail_existing', $options)\n ? $options : array_merge($options, ['fail_existing' => 1]);\n\n $options = array_key_exists('notes', $options)\n ? $options : array_merge($options, ['notes' => array_except($options, $customerFields)]);\n\n $options = array_only($options, $customerFields);\n\n // Here we will create the customer instance on Razorpay and store the ID of the\n // user from Razorpay. This ID will correspond with the Razorpay user instances\n // and allow us to retrieve users from Razorpay later when we need to work.\n $customer = $this->getRazorpayClient()->customer->create(\n $options\n );\n\n $this->razorpay_id = $customer->id;\n\n $this->save();\n\n return $customer;\n }", "title": "" }, { "docid": "7ab00ddc918492a0109656c1a5c320b9", "score": "0.55594444", "text": "public function store(Request $request)\n {\n \n $this->validate($request, [\n 'firstname' => 'required|string',\n 'lastname' => 'required|string',\n 'email' => 'email',\n 'shop' => 'exists:App\\Company,id'\n ]);\n $customer = new Customer;\n $customer->firstname=$request->firstname;\n $customer->lastname=$request->lastname;\n $customer->email=$request->email;\n $customer->phone=$request->phone;\n $customer->website=$request->website;\n $customer->shop=$request->shop;\n $customer->save();\n Session::flash('created_message','create success');\n return redirect(route('customer'));\n }", "title": "" }, { "docid": "4b281b17ce670847a18d73894b8d58de", "score": "0.55574805", "text": "public function store(Request $request)\n {\n \t$validate = $request->validate(['email'=>'required|email',\n 'state'=>'required',\n 'country'=>'required',\n 'company'=>'required|max:100|unique:customers']);\n\n $customer=new Customer;\n \n $customer->company=$request->company;\n $customer->email=$request->email;\n $customer->vat_number=$request->vat_no;\n $customer->website=$request->website;\n $customer->phone=$request->phone_no;\n $customer->pincode=$request->pincode;\n $customer->address=$request->address;\n $customer->city=$request->city;\n $customer->state=$request->state;\n $customer->country=$request->country;\n $customer->billing_pincode=$request->billing_pincode;\n $customer->billing_street=$request->billing_street;\n $customer->billing_city=$request->billing_city;\n $customer->billing_state=$request->billing_state;\n $customer->billing_country=$request->billing_country;\n $customer->shipping_pincode=$request->shipping_pincode;\n $customer->shipping_street=$request->shipping_street;\n $customer->shipping_city=$request->shipping_city;\n $customer->shipping_state=$request->shipping_state;\n $customer->shipping_country=$request->shipping_country;\n\n $customer->save();\n Session::flash('success','Customer successfully added!!');\n\n return redirect()->route('customer.index');\n \n }", "title": "" }, { "docid": "ebdbd5d3f8882d880c4f7ff155f4f742", "score": "0.5554448", "text": "public function store(Request $request)\n {\n\n $request->validate([\n \n 'first_name' => 'required',\n 'last_name' => 'required',\n 'phone'=>'number|nullable',\n 'email' => 'email|nullable'\n\n ]);\n $newCustomer=Customer::create($request->all());\n if($newCustomer){\n $response = response()->json(\n [\n \"status\" => 200,\n \"message\" => \"created successfly\",\n\n\n ]\n );\n return redirect()->back()->with('success', $response);\n\n }\n else{\n $response = response()->json(\n [\n \"status\" => 200,\n \"message\" => \"Error in creation\",\n\n\n ]\n\n );\n return redirect()->back()->with('error', $response);\n }\n //\n }", "title": "" }, { "docid": "979dc51231f5827f540fb3b3e58fb5b5", "score": "0.5553366", "text": "public function customerValidation($request){\n $this->validate($request,[\n 'customer_firstname'=>'required|regex:/^[a-z]+$/i|between:2,30',\n 'customer_lastname'=>'required|regex:/^[a-z]+$/i|min:2|max:30',\n 'customer_city'=>'required|regex:/^[a-z]+$/i|min:2|max:30',\n 'customer_street'=>'required|min:2|max:50',\n 'customer_phone'=>'required|numeric|digits:11',\n ],[\n //custom messages\n ]);\n }", "title": "" }, { "docid": "46da96818ac62d0cda99694627d3f5bc", "score": "0.55475885", "text": "public function create()\n {\n $customer = app(Customer::class);\n\n return view('appshell::customer.create', [\n 'customer' => $customer,\n 'types' => CustomerTypeProxy::choices()\n ]);\n }", "title": "" }, { "docid": "3132ac8debaee0a81af9bdfc4dc824bd", "score": "0.55464274", "text": "public function create()\n {\n if (!Gate::allows('customer_create')) {\n return abort(401);\n }\n\n return view('admin.customers.create');\n }", "title": "" }, { "docid": "9df34933d3cad12201a417dd14e191b5", "score": "0.55365235", "text": "public function validation(): ValidationFactoryInterface;", "title": "" }, { "docid": "4fb01338a3b5f43641333122128efd15", "score": "0.5527906", "text": "public function getValidationCreateClientInfoStandard()\n {\n $validator = new Validator();\n $validator\n\n \t\t\t/** client_kind */\n // Presence in post data\n ->requirePresence('client_kind', 'create', 'Client Kind must be entered.')\n // Empty checking\n ->notEmpty('client_kind', 'Client Kind must be entered.')\n // Check is integer or not\n ->integer('client_kind', 'Client Kind must be integer.')\n /** first_name */\n // Presence in post data\n ->requirePresence('first_name', 'create', 'Name must be entered.')\n // Empty checking\n ->notEmpty('first_name', 'Name must be entered.')\n\n /** gender */\n // Check is integer or not\n ->integer('gender', 'gender must be integer.')\n ->allowEmpty('gender')\n /** date_of_birth */\n // Check valid date\n ->date('date_of_birth', ['ymd'], 'Date is not valid format.')\n ->allowEmpty('date_of_birth')\n\n /** date_of_issue_of_id */\n // Check valid date\n ->date('date_of_issue_of_id', ['ymd'], 'Date is not valid format.')\n ->allowEmpty('date_of_issue_of_id')\n\n /** expiration_date_of_id */\n // Check valid date\n ->date('expiration_date_of_id', ['ymd'], 'Date is not valid format.')\n ->allowEmpty('expiration_date_of_id')\n // compare expiration_date_of_id\n ->add('expiration_date_of_id', 'custom', [\n 'rule' => function ($value, $context) {\n $date_of_issue_of_id = new Date($context['data']['date_of_issue_of_id']);\n $expiration_date_of_id = new Date($value);\n return $expiration_date_of_id > $date_of_issue_of_id;\n },\n 'message' => \"Date of issue end must be greater than Date of Expire\"\n ])\n\n /** expiration_date_of_creditcard */\n // Check valid date\n ->date('expiration_date_of_creditcard', ['ymd'], 'Date is not valid format.')\n ->allowEmpty('expiration_date_of_creditcard')\n\n /** expiration_date_of_visa */\n // Check valid date\n ->date('expiration_date_of_visa', ['ymd'], 'Date is not valid format.')\n ->allowEmpty('expiration_date_of_visa')\n\n\n /** email_address1 */\n // Check valid email\n ->add('email_address1', 'validFormat', [\n 'rule' => 'email',\n 'message' => 'E-mail 1 must be valid'\n ])\n ->allowEmpty('email_address1')\n\n /** email_address2 */\n // Check valid email\n ->add('email_address2', 'validFormat', [\n 'rule' => 'email',\n 'message' => 'E-mail 2 must be valid'\n ])\n ->allowEmpty('email_address2')\n /** client_rank */\n // Presence in post data\n ->requirePresence('client_rank', 'create', 'client rank must be entered.')\n // Empty checking\n ->notEmpty('client_rank', 'client rank must be entered.')\n // Check is integer or not\n ->integer('client_rank', 'client rank must be integer.')\n\n /** married */\n // Check is integer or not\n ->integer('married', 'Married must be integer.')\n ->allowEmpty('married')\n\n /** favorite_equipment1 */\n // Check is integer or not\n ->integer('favorite_equipment1', 'favorite_equipment1 must be integer.')\n ->allowEmpty('favorite_equipment1')\n\n /** favorite_equipment2 */\n // Check is integer or not\n ->integer('favorite_equipment2', 'favorite_equipment1 must be integer.')\n ->allowEmpty('favorite_equipment2')\n\n /** usage_count */\n // Check is integer or not\n ->integer('usage_count', 'usage_count must be integer.')\n ->allowEmpty('usage_count')\n\n /** telephone_number1 */\n // Check is integer or not\n ->add('telephone_number1', array(\n 'custom' => [\n 'rule' => array('custom', '/^[0-9+\\-\\s.]+$/i'),\n 'message' => \"Telephone number is not valid.\"\n ]\n ))\n ->allowEmpty('telephone_number1')\n /** telephone_number2 */\n // Check is integer or not\n ->add('telephone_number2', array(\n 'custom' => [\n 'rule' => array('custom', '/^[0-9+\\-\\s.]+$/i'),\n 'message' => \"Telephone number is not valid.\"\n ]\n ))\n ->allowEmpty('telephone_number2');\n\n return $validator;\n }", "title": "" }, { "docid": "02b1804be9228743d8cc1f155e22ffee", "score": "0.5527154", "text": "public function create_customer(Request $request){\n $dat=$request->get('dat');\n\n $exist_customer= Customer::where(CustomerController::IDENTIFICATION_CARD,'=',$dat['cc'])->get();\n $exist_phone = Customer_phone::where('number','=',$dat['phone'])->get();\n $exist_mail = Customer::where('mail','=',$dat['mail'])->get();\n\n //Verifica que el cliente ya este registrado\n if(isset($exist_customer) && $exist_customer->count() == 0){\n\n //Verifica si el telefono ingresado ya esta registrado\n if(isset($exist_phone) && $exist_phone->count() == 0){\n\n //Verifica si el correo ya esta registrado\n if(isset($exist_mail) && $exist_mail->count() == 0){\n\n $customer_trashed = Customer::onlyTrashed()\n ->where('identification_card','=',$dat['cc'])\n ->orWhere('mail','=',$dat['mail'])->get()->first();\n\n if(isset($customer_trashed) && $customer_trashed != null) {\n $customer_trashed->forceDelete();\n }\n\n $customer = new Customer();\n $customer->identification_card = $dat['cc'];\n $customer->name = $dat['name'];\n $customer->last_name = $dat['lastName'];\n $customer->address = $dat['address'];\n $customer->mail = $dat['mail'];\n $customer->save();\n\n $phone= new Customer_phone();\n $phone->number = $dat['phone'];\n $phone->customer_id = $customer->id;\n $phone->save();\n\n $request->session()->flash('check_msg','El cliente se registro con éxito');\n }else{\n $request->session()->flash('fail_msg','Este correo ya se encuentra asociado a un cliente');\n }\n }else{\n $request->session()->flash('fail_msg','Este teléfono ya se encuentra asociado a un cliente');\n }\n }else{\n $request->session()->flash('fail_msg','Este cliente ya se encuentra registrado');\n }\n return redirect()->route('view_customer');\n }", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.55193424", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.55193424", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.55193424", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.55193424", "text": "public function create(){}", "title": "" }, { "docid": "6dc6b9a4e4dcd1aa9ffd2279a3db2b97", "score": "0.55193424", "text": "public function create(){}", "title": "" }, { "docid": "0347df63d7710cb842aaa818c6097bac", "score": "0.55130076", "text": "public function createCustomer(){\n\n\t\t$data['customer_type'] = $this->input->post('customer_type');\n\t\t$data['first_name'] = $this->input->post('first_name');\n\t\t$data['last_name'] \t= $this->input->post('last_name');\n\t\t$data['email'] \t\t= $this->input->post('email');\n\t\t$data['role_id'] \t= \"5\";\n\t\t$data['country_code'] = \"+965\";\n\t\t$data['contact_no'] \t= $this->input->post('contact_no');\n\n\t\t$result = $this->Customer_model->insertData('tbl_users',$data);\n\n\t\tif($result){\n\t\t\t$response = array(\"success\" => \"1\", \"message\" => \"Account created\", \"data\" => $result);\n\t\t}else{\n\t\t\t$response = array(\"success\" => \"0\", \"message\" => \"Something went wrong\");\n\t\t}\n\n\t\techo json_encode($response);\n\t}", "title": "" }, { "docid": "b9f6f5cc74aa30b3a054bf51a724219b", "score": "0.55109936", "text": "public function store(UserValidation $request)\n {\n }", "title": "" }, { "docid": "0cac5b5aaa0646e9bca13f81518c3f9a", "score": "0.55082", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'email' => 'required|email|unique:customers,email',\n 'phone' => 'required|numeric',\n 'address' => 'required',\n 'total' => 'required|numeric'\n ],\n [\n 'name.required' => 'Name not Empty!',\n 'email.required' => 'Email not Empty',\n 'phone.required' => 'Phone not Empty!',\n 'address.required' => 'Address not Empty!',\n 'total.required' => 'Total not Empty!',\n 'email.email' => 'Wrong format email!',\n 'email.unique' => 'Email already exist!',\n 'phone.numeric' => 'Is not a number',\n 'total.numeric' => 'Is not a number !'\n ]);\n $customer = new Customers;\n \n $customer->name = $request->name;\n $customer->email = $request->email;\n $customer->phone = $request->phone;\n $customer->address = $request->address;\n $customer->total = $request->total;\n $customer->save();\n return new CustomersResource($customer);\n }", "title": "" }, { "docid": "02517b85652ac667d0ecc21b0da8c3c2", "score": "0.55070376", "text": "public function create(ValidatePost $req){\n\n/* $req->validate([\n\n \"uname\" => \"required | unique:users,username\",\n \"password\" => \"required|min:8\",\n \"name\" => \"required\",\n \"dept\" => \"required\",\n \"cgpa\" => \"required\"\n ]);*/\n\n/* $validator = Validator::make($req->all(), [\n\n \"uname\" => \"required | unique:users,username\",\n \"password\" => \"required|min:8\",\n \"name\" => \"required\",\n \"dept\" => \"required\",\n \"cgpa\" => \"required\"\n ])->validate();*/\n \n //$validator->validate();\n\n /*if($validator->fails()){\n\n //dd($validator);\n return back()\n ->with('errors', $validator->errors());\n } */ \n\n $user = new User();\n $user->username = $req->uname;\n $user->email = $req->email ;\n $user->password = $req->password;\n $user->dob = $req->dob;\n $user->gender = $req->gender;\n $user->type = $req->user_type;\n $user->card = $req->payment_method;\n $user->cardnumber = $req->cardNumber;\n $user->cardcvc = $req->cardCVC;\n $user->expire = $req->expire;\n \t//$user->type = \"emp\";\n $user->save();\n\n \t/*$data = DB::table('emp')->where('username', $req->uname)\n ->where('password', $req->password)\n ->get();*/\n return redirect()->route('home.index');\n }", "title": "" }, { "docid": "64567acf866b425d61fe54dea84d2db7", "score": "0.55066925", "text": "function createCustomer($data) {\n\n // Send the request\n try {\n $result = $this->_stripe('Customer', $data);\n } catch (Exception $e) {\n return $this->_parseError($e);\n }\n\n // Return the customer ID and success=true\n $return = array(\n 'success' => true,\n 'id' => $result->id\n );\n\n return $return;\n\n }", "title": "" }, { "docid": "ef712acfbb79c78c27bd4671f2f7d258", "score": "0.5496622", "text": "public function created(Customer $customer)\n {\n //\n }", "title": "" }, { "docid": "d49b8f8083912f3c3625a9c44a8da7b5", "score": "0.54905367", "text": "public function store(Request $request)\n {\n\n $this->validate($request,[\n 'name' => 'required',\n 'email' => 'required|unique:customers',\n 'phone' => 'required|unique:customers',\n 'address' => 'required',\n ],[\n 'name.required' => 'please write customer name !',\n 'email.required' => 'please enter customer email',\n 'email.unique' => 'Email has already taken',\n 'phone.required' => 'please enter customer phone number',\n 'phone.unique' => 'This number has already taken',\n 'address.required' => 'please enter customer address',\n ]);\n\n $name = trim($request->input('name'));\n $email = trim($request->input('email'));\n $phone = trim($request->input('phone'));\n $address = trim($request->input('address'));\n\n $customer = new Customer;\n $customer->name = $name;\n $customer->email = $email;\n $customer->phone = $phone;\n $customer->address = $address;\n $customer->save();\n\n $notification = array(\n 'message' => 'Customer Added Successfully.',\n 'alert-type' => 'success',\n );\n return redirect()->route('customer.index')->with($notification);\n }", "title": "" }, { "docid": "a7af95812586e8fe7f606fe4fb7e9d78", "score": "0.5489961", "text": "public function create() {\n }", "title": "" }, { "docid": "dae34a3cce7d8defa09fa36faf41d1e7", "score": "0.548421", "text": "public function create()\n {\n //\n return view('customer.create');\n }", "title": "" }, { "docid": "d19647af1960545cf8605ed937d01f04", "score": "0.5479498", "text": "public function create()\n {\n return view('customers.new_customer');\n }", "title": "" }, { "docid": "c2e6cb8284a063c93a4299a8f35a1c15", "score": "0.5472027", "text": "public function store(Request $request)\n {\n $this->validate($request,[\n 'customer_name'=>'required',\n 'customer_email' =>'required',\n 'customer_phone' =>'required',\n 'city' =>'required',\n 'details' =>'required',\n 'balance' =>'required'\n ]);\n customers::create($request->all());\n return redirect()->route('customer.index');\n //return view ('users');\n }", "title": "" }, { "docid": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5465207", "text": "public function create() {\n \n }", "title": "" }, { "docid": "e498c1dfd291b1e26942278d34a9a3ba", "score": "0.5465207", "text": "public function create() {\n \n }", "title": "" }, { "docid": "e02ec41d8c7082cf4ae1d99b705d8d21", "score": "0.5460709", "text": "public function store(Request $request)\n {\n $validateData=$request->validate([\n 'name' => 'required|max:255|regex:/^[A-Za-z0-9\\-\\&! ,\\'\\\"\\/@\\.:\\(\\)]+$/',\n 'address' => 'required|max:255|regex:/^[A-Za-z0-9\\-\\&! ,\\'\\\"\\/@\\.:\\(\\)]+$/',\n 'mobile' => 'required|max:255|regex:/^[A-Za-z0-9\\-\\&! ,\\'\\\"\\/@\\.:\\(\\)]+$/',\n\n ]);\n\n $td=new Customer();\n $td->name=$request->name;\n $td->address=$request->address;\n $td->email=$request->email;\n $td->mobile=$request->mobile;\n $save=$td->save();\n if($save){\n return redirect('/');\n }\n\n }", "title": "" }, { "docid": "4d7607ef82ae31e9e49473a692ccd859", "score": "0.5459987", "text": "public function create()\n {\n \n //\n }", "title": "" }, { "docid": "4d7607ef82ae31e9e49473a692ccd859", "score": "0.5459987", "text": "public function create()\n {\n \n //\n }", "title": "" }, { "docid": "42d1261d981649cee7b47d7e5d8fea2d", "score": "0.5458653", "text": "public function create() {\n \n }", "title": "" }, { "docid": "233db404d712aacfd08fd684a7b095db", "score": "0.54526544", "text": "public function create()\n {\n $this->authorize('create', CustomerEmail::class);\n return Inertia::render(\"CustomerEmails/Create\",[\n \"can\" => [\n \"viewAny\" => \\Auth::user()->can('viewAny', CustomerEmail::class),\n \"create\" => \\Auth::user()->can('create', CustomerEmail::class),\n ]\n ]);\n }", "title": "" }, { "docid": "a276a73d30b71fb54f3a24644594a6c5", "score": "0.54488194", "text": "public function createCustomer()\n {\n if ($this->user->gateway_customer_id) {\n return $this->getCustomer();\n }\n\n $customer = new StripeGatewayCustomer(\n $this,\n $this->createStripeCustomer()\n );\n\n $this->user->update([\n 'gateway_customer_id' => $customer->getIdentifier(),\n ]);\n\n return $customer;\n }", "title": "" }, { "docid": "dee74271d7d8bfa1fc551598a9543da9", "score": "0.5447813", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View ('customer.create');\n\t}", "title": "" }, { "docid": "d3a76511c39d318a0cd5317e8e467ec5", "score": "0.5445896", "text": "public function testInvalidCustomer()\r\n {\r\n \\tabs\\api\\core\\Customer::create('XXX123');\r\n }", "title": "" }, { "docid": "2a02b590a02213e1e4364d561ba85c4e", "score": "0.5438945", "text": "public function store(Request $request)\n {\n $this->validate($request,[\n 'name' => 'required',\n 'mobile' => 'required|numeric',\n 'address1' => 'required',\n 'state' => 'required',\n 'city' => 'required',\n ]);\n $customer = new Customer;\n $customer->name = $request->input('name');\n if($request->input('email') !== null){\n $customer->email = $request->input('email');\n }\n $customer->mobile = $request->input('mobile');\n $customer->address1 = $request->input('address1');\n if($request->input('address2') != null){\n $customer->address2 = $request->input('address2');\n }\n if($request->input('address3') != null){\n $customer->address3 = $request->input('address3');\n }\n if($request->input('address4') != null){\n $customer->address4 = $request->input('address4');\n }\n $customer->state_id = $request->input('state');\n $customer->city_id = $request->input('city');\n \n $customer->save();\n\n return redirect()->route('customer.index')->with('success', 'You added a new customer');\n }", "title": "" }, { "docid": "aefe2348c88bf4ea687df908b8ed2f7a", "score": "0.5428582", "text": "public function create()\n {\n //\n \n \n }", "title": "" }, { "docid": "720b66180bbce8be371fe81191f4b7f5", "score": "0.54272676", "text": "public function create()\n {\n\n \n return view('customers.create');\n }", "title": "" }, { "docid": "9a32c154208cea2c403cb35121fe1380", "score": "0.5425742", "text": "public function create() {\n //\n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "97e3d2c1796222c2d0c1dab251a7db42", "score": "0.54245514", "text": "public function create()\n {\n //\n \n }", "title": "" }, { "docid": "eb93ad2909cafbd34c85a1e49108deb4", "score": "0.54182345", "text": "public function addNewCustomer2(Request $request){\n\t\n\t\n \t$this->validate($request,[\n\n \t\t'custno' => 'required|unique:customers',\n\n \t\t'phone' => 'required|unique:customers'\n \t\t\n \t\t]);\n\n\n\n \treturn view('salesOrders.createCustomer2',['custno'=>$request->custno,'phone'=>$request->phone]);\n }", "title": "" }, { "docid": "f25bd55f82e92abd3dc03c91c85c612f", "score": "0.5411843", "text": "public function store(Request $request)\n {\n $this->validate($request,[\n 'name' => 'required',\n 'contact_no' => 'required',\n 'address' => 'required',\n ]);\n Customer::create($request->all());\n return redirect()->back()->withSuccess(\"Customer has saved successfully.\");\n }", "title": "" }, { "docid": "b5fb7dcb4b109d961133da0b904ebe54", "score": "0.5411745", "text": "public function create()\n {\n \n \n }", "title": "" }, { "docid": "8677a31a9cfd33425d22c37b2d7a5f68", "score": "0.5410829", "text": "public function create()\n {\n $data['menu'] = 'relationship';\n $data['sub_menu'] = 'customer';\n $data['page_title'] = __('Create Customer');\n $data['countries'] = Country::getAll()->pluck('name', 'id')->toArray();\n $data['currencies'] = Currency::getAll()->pluck('name', 'id')->toArray();\n\n return view('admin.customer.customer_add', $data);\n }", "title": "" } ]
eb12e15782087aaacc5616b85a9383dc
Performs the real POST request and returns the complete service response including all headers.
[ { "docid": "52018f88c6594404393988a993da9eec", "score": "0.0", "text": "public function doPostRequest(array $postParameters) {\n\t\t$rawResponse = null;\n\n\t\ttry {\n\t\t\t$ch = curl_init($this->baseUrl);\n\n\t\t\tif (is_null($ch) || $ch === false) {\n\t\t\t\tthrow new KWICK_Exception('Could not initialize cURL');\n\t\t\t}\n\n\t\t\t$options = array(\n\t\t\t\tCURLOPT_USERAGENT => KWICK_Client::USER_AGENT,\t\t// The content for the User-Agent header\n\t\t\t\tCURLOPT_POST => true,\t\t\t\t\t\t\t// Create a POST request\n\t\t\t\tCURLOPT_RETURNTRANSFER => true,\t\t\t\t\t\t\t// Return the response as string at curl_exec()\n\t\t\t\tCURLOPT_POSTFIELDS => $postParameters,\n\t\t\t\tCURLOPT_HTTPHEADER => array('Expect: '),\t\t\t// Additional request headers\n\t\t\t\tCURLOPT_HEADER => true,\t\t\t\t\t\t\t// Include response headers in output\n\t\t\t);\n\n\t\t\tcurl_setopt_array($ch, $options);\n\n\t\t\t$rawResponse = curl_exec($ch);\n\t\t\tif ($rawResponse === false || intval(curl_error($ch)) !== 0) {\n\t\t\t\t$this->lastError = curl_error($ch);\n\t\t\t\t$this->lastErrorCode = curl_errno($ch);\n\n\t\t\t\tthrow new KWICK_Exception(sprintf('Request failed: %s (code %d)', $this->lastError, $this->lastErrorCode));\n\t\t\t}\n\n\t\t\tcurl_close($ch);\n\t\t}\n\t\tcatch (Exception $ex) {\n\t\t\terror_log(sprintf('%s(%d) [ERROR] %s in %s(%d)', __FILE__, __LINE__, $ex->getMessage(), $ex->getFile(), $ex->getLine()));\n\n\t\t\tif ($ex instanceof KWICK_Exception) {\n\t\t\t\tthrow $ex;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->lastError = sprintf('%s in %s(%d)', $ex->getMessage(), $ex->getFile(), $ex->getLine());\n\t\t\t\t$this->lastErrorCode = $ex->getCode();\n\t\t\t}\n\t\t}\n\n\t\treturn $rawResponse;\n\t}", "title": "" } ]
[ { "docid": "f58941c081f62715eb77f37d72dec13d", "score": "0.73869723", "text": "protected function post() {\n\t\treturn $this->add_header( 'Content-Type', 'application/json' )->request( 'POST' );\n\t}", "title": "" }, { "docid": "56d176a4ca6aa78d7f0c5a9e8c48dfd2", "score": "0.7100833", "text": "public function post()\n {\n $this->setOpt(CURLOPT_POST, true);\n return $this->exec();\n }", "title": "" }, { "docid": "f2f197ad1cb5f12d48df8d6f590a121a", "score": "0.7093668", "text": "public function post()\n {\n $this->setPostParameters();\n\n return $this->send();\n }", "title": "" }, { "docid": "0ed076f15e30903f009bbc8fec659f74", "score": "0.6930584", "text": "protected function post()\n {\n return $this->callApi('POST', $this->uri, $this->parameters);\n }", "title": "" }, { "docid": "af8e4f32173a84a77f5a09575e1f1ace", "score": "0.6513617", "text": "public function postRequest()\n {\n return response()->json([\n 'message' => 'POST request successful',\n ], 201);\n }", "title": "" }, { "docid": "ff7fcde2cd9c54fa94fc064b1971a67f", "score": "0.63189435", "text": "public function post() {\n return $this->setVerb('POST')->execute();\n }", "title": "" }, { "docid": "ffd9606c32d0ac55b1e4799540946dcf", "score": "0.6301477", "text": "public function post()\n {\n return $this->handle();\n }", "title": "" }, { "docid": "a666d4426a8766a604488414ff3e9d7f", "score": "0.6281116", "text": "abstract public function postRequest();", "title": "" }, { "docid": "ce818c40a2ab85cf788e5c05cdd58897", "score": "0.6247355", "text": "protected function executePost()\n {\n if (!$this->requestBody)\n {\n $this->buildPostBody();\n }\n\n curl_setopt($this->curlHandle, CURLOPT_POSTFIELDS, $this->requestBody);\n curl_setopt($this->curlHandle, CURLOPT_POST, 1);\n\n $this->doExecute();\n }", "title": "" }, { "docid": "94a16c06065b63b4bbe82436e0b44e58", "score": "0.6160984", "text": "public function processRequest() {\r\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\r\n }", "title": "" }, { "docid": "06f7404ef10e1ddc3d4e46e87eb564e4", "score": "0.61579144", "text": "public function DoRequest()\n\t{\n\t\t$PostString = \"\";\n\t\tforeach ($this->PostArray as $var => $val)\n\t\t{\n\t\t\t$PostString .= $var.\"=\".$val.\"&\";\n\t\t}\n\t\t\n\t\t$return = array();\n\t\t\n\t\t$PostRequest = \"\";\n\t\t$PostRequest .= (\"IP=\".$this->IP.\"&\");\n\t\t$PostRequest .= $PostString;\n\t\t$PostRequest = utf8_encode($PostRequest);\n\t\t$Response = $this->httpsPost($this->API_URL, $PostRequest, \"\");\n\t\t$this->response = $Response;\n\t\t$return = unserialize($Response);\n\t\treturn $return;\n\t}", "title": "" }, { "docid": "f55d780d16489629456ba0eb66a51abf", "score": "0.6084945", "text": "public function sendRequest()\n {\n $sendData = [];\n\n if ( strcmp($this->method, 'POST') == 0 || \n strcmp($this->method, 'PUT') == 0) \n {\n if ( $this->contentTypeSet === false || \n $this->contentTypeSet == 'urlFormEncoded') \n {\n # default to sending data as URL Form Encoded\n $this->header .= 'Content-type: application/x-www-form-urlencoded'.PHP_EOL;\n $this->postData = http_build_query($this->postData);\n } else {\n # send as JSON\n $this->header .= 'Content-type: application/json; charset=utf-8'.PHP_EOL;\n $this->postData = json_encode($this->postData);\n $this->header .= 'Content-Length: '.strlen($this->postData).PHP_EOL;\n }\n\n $sendData = $this->postData;\n echo $sendData, PHP_EOL;\n } elseif ($this->method == 'GET') {\n $header = 'Content-Type: text/html; charset=utf-8';\n $sendData = $this->getData;\n }\n\n # don't follow redirects, use HTTP protocol version 1.1\n $opts = [\n 'http' => [\n 'method' => $this->method,\n 'header' => $this->header,\n 'follow_location' => 0,\n 'request_fulluri' => true,\n 'protocol_version' => 1.1,\n 'user-agent' => 'Linux/PHP',\n 'content' => $sendData,\n ],\n ];\n $context = stream_context_create($opts);\n $this->result = file_get_contents($this->uri, false, $context);\n\n # search for a 301, 302 in the $http_response_header array\n if ( stristr($http_response_header[0], 'HTTP/1.1 301') || \n stristr($http_response_header[0], 'HTTP/1.1 302')) \n {\n # find the location to redirect to\n foreach ($http_response_header as $intIndex => $header) {\n if (strstr($header, 'Location: ')) {\n # get the location to redirect to by splitting on the space\n $locationArray = explode(' ', $header);\n $this->uri = $locationArray[1];\n }\n }\n\n # attempt the request again\n $this->result = file_get_contents($this->uri, false, $context);\n }\n\n return $this->result;\n }", "title": "" }, { "docid": "c8818376a846f87825552189a54bbe06", "score": "0.6079591", "text": "function request_post($postdata, $headers=Array()) {\n return $this->_request('POST', $headers, $postdata);\n }", "title": "" }, { "docid": "4499df0ead2c0f23a906ff4030b88ea0", "score": "0.602194", "text": "public function processPOST() {\n\n\t\t\ttry {\n\t\t\t\t// check whether cURL is installed:\n\t\t\t\tif (!extension_loaded('curl') || !is_callable('curl_init')) {\n\t\t\t\t\t\tthrow new Exception(\"The experiment server requires the cURL PHP library to be installed.\");\n\t\t\t\t}\n\n\t\t\t\t// no command - show synchronisation GUI:\n\t\t\t\tif (!isset($_POST['command'])) {\n\t\t\t\t\t$serverResponse = $this->showSynchronisationGUI();\n\t\t\t\t} else {\n\t\t\t\t\t// get POST command:\n\t\t\t\t\t$command = $_POST['command'];\n\t\t\t\t\t\n\t\t\t\t\t// OSF_UPLOAD - upload data to OSF server:\n\t\t\t\t\tif (0 === strcmp('OSF_UPLOAD', $command)) {\n\t\t\t\t\t\t$serverResponse = $this->osfUpload();\n\t\t\t\t\t}\n\n\t\t\t\t\t// OSF_EXP - upload local experiment server:\n\t\t\t\t\telse if (0 === strcmp('EXP_UPLOAD', $command)) {\n\t\t\t\t\t\t$serverResponse = $this->expUpload();\n\t\t\t\t\t}\n\n\t\t\t\t\t// PULL - get resources from OSF server:\n\t\t\t\t\telse if (0 === strcmp('PULL', $command)) {\n\t\t\t\t\t\t$serverResponse = $this->osfPull();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// LIST_RESOURCES - return list of resources from local resource directory:\n\t\t\t\t\telse if (0 === strcmp('LIST_RESOURCES', $command)) {\n\t\t\t\t\t\t$serverResponse = $this->listLocalResources();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if (0 === strcmp('EMAIL', $command)) {\n\t\t\t\t\t\t$serverResponse = $this->sendEmail();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// unknown command:\n\t\t\t\t\telse {\n\t\t\t\t\t\tthrow new Exception('\"Unknown command: ' . $command . '\"');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$serverResponse = '{ \"function\" : \"' . $this->info['projectId'] . ' experiment server\", \"context\" : \"when processing HTTP POST message\", \"error\" : ' . $e->getMessage() . ' }';\n\t\t\t}\n\t\t\t\n\t\t\techo $serverResponse;\n\t\t}", "title": "" }, { "docid": "ffb91816c33e0110d36cecf6888af1ad", "score": "0.5908736", "text": "public function test_request_method_post_return_response_interface()\n {\n $this->initialize();\n\n $fixture = dirname(__DIR__).'/Fixtures/httpbin/post.json';\n $this->assertFileExists($fixture);\n\n $body = file_get_contents($fixture);\n $this->assertTrue(is_string($body));\n\n $mock = new MockHandler([\n new Response(200,array(),$body)\n ]);\n\n $handler = HandlerStack::create($mock);\n $client = new Client([\n 'handler' => $handler\n ]);\n $adapter = new Adapter($this->auth,'http://httpbin.org',$client);\n\n $post_data = [\n 'post_key' => 'post_value'\n ];\n $response = $adapter->request('post','fake-uri', $post_data);\n $this->assertInstanceOf('\\GuzzleHttp\\Psr7\\Response',$response);\n // Because Guzzle extends ResponseInterface\n $this->assertInstanceOf('\\Psr\\Http\\Message\\ResponseInterface',$response);\n\n $json = $response->getBody()->getContents();\n $this->assertTrue(is_string($json));\n $response_array = json_decode($json, true);\n $this->assertArrayHasKey('json',$response_array);\n $this->assertArrayHasKey('post_key',$response_array['json']);\n }", "title": "" }, { "docid": "71ee62ead7dea58d6a4cd5ee1faeacff", "score": "0.59038186", "text": "private function _httpPost(array $parameters)\n {\n\n $query = $this->_getParametersAsString($parameters);\n $url = parse_url ($this->_config['ServiceURL']);\n $post = \"POST / HTTP/1.0\\r\\n\";\n $post .= \"Host: \" . $url['host'] . \"\\r\\n\";\n $post .= \"Content-Type: application/x-www-form-urlencoded; charset=utf-8\\r\\n\";\n $post .= \"Content-Length: \" . strlen($query) . \"\\r\\n\";\n $post .= \"User-Agent: \" . $this->_config['UserAgent'] . \"\\r\\n\";\n $post .= \"\\r\\n\";\n $post .= $query;\n $port = array_key_exists('port',$url) ? $url['port'] : null;\n $scheme = '';\n\n switch ($url['scheme']) {\n case 'https':\n $scheme = 'ssl://';\n $port = $port === null ? 443 : $port;\n break;\n default:\n $scheme = '';\n $port = $port === null ? 80 : $port;\n }\n\n $response = '';\n if ($socket = @fsockopen($scheme . $url['host'], $port, $errno, $errstr, 10)) {\n\n fwrite($socket, $post);\n\n while (!feof($socket)) {\n $response .= fgets($socket, 1160);\n }\n fclose($socket);\n\n list($other, $responseBody) = explode(\"\\r\\n\\r\\n\", $response, 2);\n $other = preg_split(\"/\\r\\n|\\n|\\r/\", $other);\n list($protocol, $code, $text) = explode(' ', trim(array_shift($other)), 3);\n } else {\n throw new Exception (\"Unable to establish connection to host \" . $url['host'] . \" $errstr\");\n }\n\n\n return array ('Status' => (int)$code, 'ResponseBody' => $responseBody);\n }", "title": "" }, { "docid": "710ef5380e259055be94b1e47eda7005", "score": "0.58975106", "text": "public function request(){\n $this->client->request();\n $this->convertResponseToObject();\n return $this->response;\n }", "title": "" }, { "docid": "a212f73381aaa00eeb879a092554f261", "score": "0.58766073", "text": "function httpPost(RequestInterface $request, ResponseInterface $response) {\n\n // Checking if this is a text/calendar content type\n $contentType = $request->getHeader('Content-Type');\n if (strpos($contentType, 'text/calendar') !== 0) {\n return;\n }\n\n $path = $request->getPath();\n\n // Checking if we're talking to an outbox\n try {\n $node = $this->server->tree->getNodeForPath($path);\n } catch (NotFound $e) {\n return;\n }\n if (!$node instanceof IOutbox)\n return;\n\n $this->server->transactionType = 'post-caldav-outbox';\n $this->outboxRequest($node, $request, $response);\n\n // Returning false breaks the event chain and tells the server we've\n // handled the request.\n return false;\n\n }", "title": "" }, { "docid": "d28b550e7df3ba187d1555266896a76d", "score": "0.5866424", "text": "function post($request, $params = false) {\n\t\t$url = $this->apiServerUrl . $request . \"?access_token=\" . urlencode($this->apiKey);\n\t\t//$url = $this->apiServerUrl . $request;\n\t\t//$params['access_token'] = $this->apiKey;\n\n\t\tif ($this->debugMode) {\n\t\t\techo \"Posting request to: {$url} :: With params: \\n\";\n\t\t\tprint_r($params);\n\t\t}\n\n\t\t$rawData = $this->curl($url, 'POST', $params);\n\n\t\tif ($this->debugMode) {\n\t\t\techo \"Got response:\";\n\t\t\tprint_r($rawData);\n\t\t\techo \"\\n\";\n\t\t}\n\n\t\treturn $rawData;\n\t}", "title": "" }, { "docid": "92145073dc8cadad59c8070b8e791272", "score": "0.58643466", "text": "function get_to_post() {\n\n header('Content-Type: text/plain');\n\n if ($_SERVER['REQUEST_METHOD'] == \"GET\" ) {\n //GET requets get converted to POST requests\n $get_data = $_GET;\n $post_data = array();\n //if no url parameter is sent, default to localhost\n $url = \"http://localhost/get_to_post.php\";\n\n foreach ($get_data as $key => $value ) {\n if ($key == \"url\") {\n $url = $value;\n } elseif ($key == \"token\") {\n //eat the token parameter\n } else {\n $post_data[$key] = $value;\n }\n }\n\n // Submit those variables to the server\n $result = post_request($url, $post_data);\n \n if ($result['status'] == 'ok'){\n // Print headers \n echo $result['header'];\n // print the result of the whole request:\n echo $result['content'];\n }\n else {\n echo 'A error occured: ' . $result['error']; \n }\n } else {\n //just dump anything that's not GET\n $server_data = $_SERVER;\n var_dump($server_data);\n } \n}", "title": "" }, { "docid": "7e4c9561a3bc628f0a3476bbfdf020bd", "score": "0.5851031", "text": "public function httpPost($methodName_, $nvpStr_) {\n\t\t\n\t\t$API_UserName = $this->API['UserName'];\n\t\t$API_Password = $this->API['Password'];\n\t\t$API_Signature = $this->API['Signature'];\n\t\t$API_Endpoint = $this->API['Endpoint'];\n\t\t$version = $this->API['Version'];\n\t\t\n\t\t// Set the curl parameters.\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $API_Endpoint);\n\t\tcurl_setopt($ch, CURLOPT_VERBOSE, 1);\n\t\n\t\t// Turn 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\t\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\n\t\t// Set the API operation, version, and API signature in the request.\n\t\t$nvpreq = \"METHOD=$methodName_&VERSION=$version&PWD=$API_Password&USER=$API_UserName&SIGNATURE=$API_Signature$nvpStr_\";\n\t\n\t\t// Set the request as a POST FIELD for curl.\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);\n\t\n\t\t// Get response from the server.\n\t\t$httpResponse = curl_exec($ch);\n\t\n\t\tif(!$httpResponse) {\n\t\t\treturn array(\n\t\t\t\t'ACK' => 'Failure',\n\t\t\t\t'L_LONGMESSAGE0' => \"$methodName_ failed: \".curl_error($ch).'('.curl_errno($ch).')'\n\t\t\t);\n\t\t}\n\t\n\t\t// Extract the response details.\n\t\t$httpResponseAr = explode(\"&\", $httpResponse);\n\t\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\t\t\n\t\tif((0 == sizeof($httpParsedResponseAr)) || !array_key_exists('ACK', $httpParsedResponseAr)) {\n\t\t\treturn array(\n\t\t\t\t'ACK' => 'Failure',\n\t\t\t\t'L_LONGMESSAGE0' => \"Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.\"\n\t\t\t);\n\t\t}\n\t\n\t\treturn $httpParsedResponseAr;\n\t}", "title": "" }, { "docid": "426070cab85fafb2edf13573b87ce0ec", "score": "0.5842609", "text": "public function postRequest(): bool\n {\n $url = $this->getSignedUrl();\n $client = $this->getHttpClient();\n $request = $this->getHttpRequest('POST', $url);\n $response = $client->send($request);\n $this->rawResponse = $response->getBody();\n return true;\n }", "title": "" }, { "docid": "78382d16920efca4b6bcb71f9ab33009", "score": "0.58221096", "text": "private function _post_request( $request_data ) {\r\n\r\n\t\t\tif ( empty( $request_data ) ) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t$request_data = json_encode( $request_data );\r\n\r\n\t\t\t$req_args = array(\r\n\t\t\t\t'body' => array(\r\n\t\t\t\t\t'json' => $request_data\r\n\t\t\t\t),\r\n\t\t\t\t'user-agent' => WP_SMPRO_USER_AGENT,\r\n\t\t\t\t'timeout' => WP_SMPRO_TIMEOUT,\r\n\t\t\t\t'sslverify' => false\r\n\t\t\t);\r\n\r\n\t\t\t// make the post request and return the response\r\n\t\t\t$response['api'] = wp_remote_post( WP_SMPRO_SERVICE_URL, $req_args );\r\n\r\n\t\t\treturn $response;\r\n\t\t}", "title": "" }, { "docid": "dfb2ee39ac49a11ba8e551b5b72ac666", "score": "0.5814375", "text": "public function test_post_return_response_interface()\n {\n $this->initialize();\n\n $fixture = dirname(__DIR__).'/Fixtures/httpbin/post.json';\n $this->assertFileExists($fixture);\n\n $body = file_get_contents($fixture);\n $this->assertTrue(is_string($body));\n\n $mock = new MockHandler([\n new Response(200,array(),$body)\n ]);\n\n $handler = HandlerStack::create($mock);\n $client = new Client([\n 'handler' => $handler\n ]);\n $adapter = new Adapter($this->auth,'http://httpbin.org',$client);\n\n $post_data = [\n 'post_key' => 'post_value'\n ];\n $response = $adapter->post('fake-uri', $post_data);\n $this->assertInstanceOf('\\GuzzleHttp\\Psr7\\Response',$response);\n // Because Guzzle extends ResponseInterface\n $this->assertInstanceOf('\\Psr\\Http\\Message\\ResponseInterface',$response);\n\n $json = $response->getBody()->getContents();\n $this->assertTrue(is_string($json));\n $response_array = json_decode($json, true);\n $this->assertArrayHasKey('json',$response_array);\n $this->assertArrayHasKey('post_key',$response_array['json']);\n }", "title": "" }, { "docid": "3768b08a2723d3659e9dd29f80477013", "score": "0.5791695", "text": "public function postRequest(){\n // Prepare API request\n $bank_code = $_POST['bank_code'];\n $account_number = $_POST['account_number'];\n $amount = $_POST['amount'];\n $remark = $_POST['remark'];\n // Another way of accessing basic auth via link\n $auth = $this->username . ':' . $this->password . '@';\n $post_url = $this->prefix_url . $auth . $this->url; \n $data = http_build_query(array(\n 'bank_code' => $bank_code,\n 'account_number' => $account_number,\n 'amount' => $amount, \n 'remark' => $remark));\n $options = array('http' => array(\n 'method' => 'POST',\n 'header' => 'Content-type: application/x-www-form-urlencoded',\n 'content' => $data\n ));\n\n $context = stream_context_create($options);\n // Send API request and receive response\n $file_open = fopen($post_url, 'rb', false, $context);\n $response = stream_get_contents($file_open);\n // Send response to database\n $json_response = json_decode($response, true);\n Database::insertToDatabase($json_response);\n // Create default message\n echo \"<div class='result'>Data has been inserted successfully!<pre>\";\n echo \"<pre>\".json_encode($json_response,JSON_PRETTY_PRINT) . \"</pre></div>\";\n echo \"<script>alert('Data successfully created!')</script>\";\n }", "title": "" }, { "docid": "ad54c50c1598b23ba64141b77b0ec621", "score": "0.57818556", "text": "public function submit()\n {\n if (!$this->payment) {\n user_error(\"No payment data supplied\");\n }\n\n $this->payment->setAmountInput($this->payment->AmountInput);\n\n $xml = \"<GenerateRequest>\";\n $xml .= \"<PxPayUserId>\" . $this->config()->get('PxPayUserId') . \"</PxPayUserId>\";\n $xml .= \"<PxPayKey>\" . $this->config()->get('PxPayKey') . \"</PxPayKey>\";\n $xml .= \"<UrlFail>\" . $this->absoluteURL(\"handle-response\") . \"</UrlFail>\";\n $xml .= \"<UrlSuccess>\" . $this->absoluteURL(\"handle-response\") . \"</UrlSuccess>\";\n foreach (array(\n 'TxnType',\n 'MerchantReference',\n 'TxnData1',\n 'TxnData2',\n 'TxnData3',\n 'EmailAddress',\n 'AmountInput',\n 'CurrencyInput'\n ) as $key) {\n $xml .= \"<$key>\" . Convert::raw2xml($this->payment->$key) . \"</$key>\";\n }\n $xml .= \"</GenerateRequest>\";\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $this->config()->get('PxPayURL'));\n\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); //This is in the example code, but I don't like it\n\n $rawResponse = curl_exec($ch);\n $response = simplexml_load_string($rawResponse);\n\n if ($response) {\n if ($response->URI) {\n $this->redirect($response->URI);\n } else {\n $error = $response->responsetext ? $response->responsetext : $rawResponse;\n throw new Exception(\"Error message from DPS: `$error`. Request was: `$xml`\");\n }\n } else {\n $error = ($rawResponse) ? $rawResponse : curl_error($ch);\n throw new Exception(\"Error communicating with DPS:`$error`. Request was: `$xml`\");\n }\n\n }", "title": "" }, { "docid": "cbd869c90941b80c5a417935dac9ebc3", "score": "0.57594156", "text": "function recmnd_http_post($host, $path, $request, $options = array()){\n\tglobal $recmnd_api_secret;\n\t$request['nonce'] = recmnd_nonce();\n\t$request['ts'] = time();\n\t$request['signature'] = recmnd_signature($path, $request, $recmnd_api_secret);\n\n\t$response = false;\n\t$http_code = 0;\n\t$curl = curl_init();\n\n\t$defaults = array(\n\t\tCURLOPT_POST => 1,\n\t\tCURLOPT_HEADER => 0,\n\t\tCURLOPT_URL => $host.$path,\n\t\tCURLOPT_FRESH_CONNECT => 1,\n\t\tCURLOPT_RETURNTRANSFER => 1,\n\t\tCURLOPT_FORBID_REUSE => 1,\n\t\tCURLOPT_TIMEOUT => 4,\n\t\tCURLOPT_POSTFIELDS => http_build_query($request),\n\t);\n\t$options = recmnd_array_merge_assoc($defaults, $options);\n\tforeach ($options as $option => $value)\n\t\tcurl_setopt($curl, $option, $value);\n\n\t$response = curl_exec($curl);\n\t$header = curl_getinfo($curl);\n\t$http_code = $header['http_code'];\n\tcurl_close($curl);\n\trecmnd_log(\"POST http://$host$path -> $http_code\");\n\treturn array('status' => $http_code, 'content' => $response);\n}", "title": "" }, { "docid": "21d25847676aab4125feab7a368106fc", "score": "0.57413125", "text": "public function post(string $url, array $data, array $headers = null): Response;", "title": "" }, { "docid": "76c5dbaf43e7180ae67f5bc31110e08e", "score": "0.5735055", "text": "function doPostRequestD($url, $arr_params, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $response = array();\n $final_url_data = $arr_params;\n if (is_array($arr_params)) {\n $final_url_data = http_build_query($arr_params, '', '&');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_NOSIGNAL, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $response['body'] = curl_exec($ch);\n $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $response['body'];\n}", "title": "" }, { "docid": "dc244660d38efd27b49c76becbb97ee7", "score": "0.5708885", "text": "private function dispatchRequest()\n {\n try {\n $this->httpClient->dispatch();\n } catch (\\Exception $e) {\n $response = new Response();\n $response->getHeaders()->addHeaderLine('Content-Type', self::CONTENT_TYPE_JSON);\n $response->setStatusCode(Response::STATUS_CODE_503);\n $response->setContent(json_encode([\n 'errors' => [\n '0' => [\n 'code' => $e->getCode(),\n 'message' => $e->getMessage(),\n ],\n ]\n ]));\n }\n\n return $response;\n }", "title": "" }, { "docid": "0fb770e5281ea7a545558614035712fa", "score": "0.5696121", "text": "function doPostRequest($url, $arr_params, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $response = array();\n $final_url_data = $arr_params;\n if (is_array($arr_params)) {\n $final_url_data = http_build_query($arr_params, '', '&');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_NOSIGNAL, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $response['body'] = curl_exec($ch);\n $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $response['body'];\n}", "title": "" }, { "docid": "0fb770e5281ea7a545558614035712fa", "score": "0.5696121", "text": "function doPostRequest($url, $arr_params, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $response = array();\n $final_url_data = $arr_params;\n if (is_array($arr_params)) {\n $final_url_data = http_build_query($arr_params, '', '&');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_NOSIGNAL, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $response['body'] = curl_exec($ch);\n $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $response['body'];\n}", "title": "" }, { "docid": "0fb770e5281ea7a545558614035712fa", "score": "0.5696121", "text": "function doPostRequest($url, $arr_params, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $response = array();\n $final_url_data = $arr_params;\n if (is_array($arr_params)) {\n $final_url_data = http_build_query($arr_params, '', '&');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_NOSIGNAL, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $response['body'] = curl_exec($ch);\n $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $response['body'];\n}", "title": "" }, { "docid": "0fb770e5281ea7a545558614035712fa", "score": "0.5696121", "text": "function doPostRequest($url, $arr_params, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $response = array();\n $final_url_data = $arr_params;\n if (is_array($arr_params)) {\n $final_url_data = http_build_query($arr_params, '', '&');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_NOSIGNAL, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $response['body'] = curl_exec($ch);\n $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $response['body'];\n}", "title": "" }, { "docid": "0fb770e5281ea7a545558614035712fa", "score": "0.5696121", "text": "function doPostRequest($url, $arr_params, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $response = array();\n $final_url_data = $arr_params;\n if (is_array($arr_params)) {\n $final_url_data = http_build_query($arr_params, '', '&');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_NOSIGNAL, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $response['body'] = curl_exec($ch);\n $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $response['body'];\n}", "title": "" }, { "docid": "0fb770e5281ea7a545558614035712fa", "score": "0.5696121", "text": "function doPostRequest($url, $arr_params, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $response = array();\n $final_url_data = $arr_params;\n if (is_array($arr_params)) {\n $final_url_data = http_build_query($arr_params, '', '&');\n }\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $final_url_data);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_NOSIGNAL, 1);\n curl_setopt($ch, CURLOPT_VERBOSE, 1);\n curl_setopt($ch, CURLOPT_TIMEOUT, 30);\n $response['body'] = curl_exec($ch);\n $response['code'] = curl_getinfo($ch, CURLINFO_HTTP_CODE);\n curl_close($ch);\n return $response['body'];\n}", "title": "" }, { "docid": "a721aa33b5979551ff1403fc408189a4", "score": "0.5672939", "text": "protected function _post($data = array()) {\n\t\t$this->_prepareData($data);\n\t\tcurl_setopt($this->_handler, CURLOPT_POST, 1);\n\n\t\treturn $this->_sendCurl();\n\t}", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.56519914", "text": "public function post();", "title": "" }, { "docid": "866ac060ef3abd0019265a663d36aaf4", "score": "0.56519914", "text": "public function post();", "title": "" }, { "docid": "774bb4eabfbe691455e4c1b69f91707e", "score": "0.56277704", "text": "function post_request($url, $data, $referer='') {\n \n // Convert the data array into URL Parameters like a=b&foo=bar etc.\n $data = http_build_query($data);\n \n // parse the given URL\n $url = parse_url($url);\n \n if ($url['scheme'] != 'http' && $url['scheme'] != 'https') { \n die('Error: Only HTTP(S) request are supported !');\n }\n \n // extract host and path:\n $host = $url['host'];\n $path = $url['path'];\n \n // open a socket connection on port 80 - timeout: 30 sec\n $fp = fsockopen($host, 80, $errno, $errstr, 30);\n \n if ($fp){\n \n // send the request headers:\n fputs($fp, \"POST $path HTTP/1.1\\r\\n\");\n fputs($fp, \"Host: $host\\r\\n\");\n \n if ($referer != '')\n fputs($fp, \"Referer: $referer\\r\\n\");\n \n fputs($fp, \"Content-type: application/x-www-form-urlencoded\\r\\n\");\n fputs($fp, \"Content-length: \". strlen($data) .\"\\r\\n\");\n fputs($fp, \"Connection: close\\r\\n\\r\\n\");\n fputs($fp, $data);\n \n $result = ''; \n while(!feof($fp)) {\n // receive the results of the request\n $result .= fgets($fp, 128);\n }\n }\n else { \n return array(\n 'status' => 'err', \n 'error' => \"$errstr ($errno)\"\n );\n }\n \n // close the socket connection:\n fclose($fp);\n \n // split the result header from the content\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n \n $header = isset($result[0]) ? $result[0] : '';\n $content = isset($result[1]) ? $result[1] : '';\n \n // return as structured array:\n return array(\n 'status' => 'ok',\n 'header' => $header,\n 'content' => $content\n );\n}", "title": "" }, { "docid": "73db7b846cdc0394af4b7830aa8e533f", "score": "0.56152445", "text": "protected function _postRequest(Varien_Object $request)\n {\n $debugData = array('request' => $request->getData());\n\n $client = new Varien_Http_Client();\n $result = new Varien_Object();\n\n $_config = array(\n 'maxredirects' => 5,\n 'timeout' => 30,\n 'verifypeer' => $this->getConfigData('verify_peer')\n );\n\n //checking proxy\n $_isProxy = $this->getConfigData('use_proxy', false);\n if ($_isProxy) {\n $_config['proxy'] = $this->getConfigData('proxy_host')\n . ':'\n . $this->getConfigData('proxy_port');//http://proxy.shr.secureserver.net:3128',\n $_config['httpproxytunnel'] = true;\n $_config['proxytype'] = CURLPROXY_HTTP;\n }\n\n $client->setUri($this->_getTransactionUrl())\n ->setConfig($_config)\n ->setMethod(Zend_Http_Client::POST)\n ->setParameterPost($request->getData())\n ->setHeaders('X-VPS-VIT-CLIENT-CERTIFICATION-ID: 33baf5893fc2123d8b191d2d011b7fdc')\n ->setHeaders('X-VPS-Request-ID: ' . $request->getRequestId())\n ->setHeaders('X-VPS-CLIENT-TIMEOUT: ' . $this->_clientTimeout);\n\n try {\n /**\n * we are sending request to payflow pro without url encoding\n * so we set up _urlEncodeBody flag to false\n */\n $response = $client->setUrlEncodeBody(false)->request();\n }\n catch (Exception $e) {\n $result->setResponseCode(-1)\n ->setResponseReasonCode($e->getCode())\n ->setResponseReasonText($e->getMessage());\n\n $debugData['result'] = $result->getData();\n $this->_debug($debugData);\n throw $e;\n }\n\n\n\n $response = strstr($response->getBody(), 'RESULT');\n $valArray = explode('&', $response);\n\n foreach($valArray as $val) {\n $valArray2 = explode('=', $val);\n $result->setData(strtolower($valArray2[0]), $valArray2[1]);\n }\n\n $result->setResultCode($result->getResult())\n ->setRespmsg($result->getRespmsg());\n\n $debugData['result'] = $result->getData();\n $this->_debug($debugData);\n\n return $result;\n }", "title": "" }, { "docid": "a85a8c3cf31f02e6166cf750f3d5cdc9", "score": "0.5614117", "text": "private function _postRequest($method, array $data = [])\n\t {\n\t\t\n\t\t\n\t\t//$response= $this->http->POST(ServerApiClient::API_URL.\"?action=$method&key=\".self::API_KEY, $data);\n\t\t\n\t\t$response = $this->http->POST(\"http://\".$_SERVER['HTTP_HOST'].\"/res.php?action=\".$method.\"&key=\".self::API_KEY, $data);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//file_put_contents('apiurl'.rand(0,666).'.txt',print_r($response, true));\n\t\t\n\t\t\n\t\t//file_put_contents('oldapiurl'.rand(0,666).'.txt',print_r($response_old, true));\n\t\t\n\t\t\n\t\tif('application/json' === $this->http->GetResponseHeader('Content-Type')) $response = new SystemMessage(\"$response\");\n\n\t\treturn $response;\n\t }", "title": "" }, { "docid": "0a571b6db63135b269c3c71c1570d280", "score": "0.56058913", "text": "private function send_request() {\n\n // setup the url and data to be POST'd\n $url = self::API_URL . \"/{$this->action}.{$this->format}\";\n $data = http_build_query( ( $this->data + $this->player->data ) );\n\n // create the request\n $params = array( 'http' => array( 'method' => 'POST', 'content' => $data ) );\n $context = stream_context_create( $params );\n\n // parse the reponse according to the format specified\n if ( $this->format == 'json' )\n $this->response = json_decode( file_get_contents( $url, false, $context ) );\n else\n $this->response = new SimpleXMLElement( file_get_contents( $url, false, $context ) );\n\n }", "title": "" }, { "docid": "90990d59a4ba2a15064fb828dc56052a", "score": "0.5600551", "text": "protected function getResponse($postBody)\n {\n $allowUrlFopen = preg_match('/1|yes|on|true/i', ini_get('allow_url_fopen'));\n if ($allowUrlFopen) {\n $contents = file_get_contents($this->serviceUrl, false, stream_context_create(array(\n 'http' => array(\n 'method' => 'POST',\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\nConnection: close\\r\\n\",\n 'content' => $postBody,\n 'max_redirects' => 0,\n 'timeout' => 500,\n )\n )));\n } elseif (defined('CURLOPT_POST')) {\n $ch = curl_init($this->serviceUrl);\n curl_setopt($ch, CURLOPT_POST, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type: application/x-www-form-urlencoded'));\n curl_setopt($ch, CURLOPT_POSTFIELDS, $postBody);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);\n curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 500);\n $contents = curl_exec($ch);\n curl_close($ch);\n } else {\n throw new Minify_JS_ClosureCompiler_Exception(\n \"Could not make HTTP request: allow_url_open is false and cURL not available\"\n );\n }\n if (false === $contents) {\n throw new Minify_JS_ClosureCompiler_Exception(\n \"No HTTP response from server\"\n );\n }\n return trim($contents);\n }", "title": "" }, { "docid": "7c4de4e76dfa1b0745e53e348f6a692d", "score": "0.559858", "text": "public function process()\n {\n if ($_SERVER['REQUEST_METHOD'] == 'POST') {\n if ($this->isValid($_POST)) {\n try {\n foreach ($this->getSuccessHandlers() as $handler) {\n $handler->run();\n }\n\n if ($this->getSuccessRedirect() !== null && !headers_sent()) {\n \theader('Location: ' . $this->getSuccessRedirect());\n }\n\n $result = array('type' => 'success', 'data' => $this->getSuccessMessage());\n } catch (Exception $e) {\n $result = array('type' => 'message', 'data' => $this->_formatMessage($this->escape($e->getMessage()), 'error'));\n }\n } else {\n $result = array('type' => 'error', 'data' => $this->getErrors());\n }\n\n if (isset($_POST['iphorm_submitted_by_js'])) {\n // The jQuery Form plugin in iframe mode recommends JSON to be wrapped in a textarea\n $response = '<textarea>' . $this->jsonEncode($result) . '</textarea>';\n } else {\n ob_start();\n require_once 'nojs.php';\n $response = ob_get_clean();\n }\n\n return $response;\n }\n }", "title": "" }, { "docid": "d413a9a456338dab45f08700e4c93678", "score": "0.5570317", "text": "protected function execute(): Response\n { \n // registers response header processing\n $headers = [];\n $this->setHeadersHandler($headers);\n \n // executes request\n $startTime = microtime(true);\n $body = curl_exec($this->connection);\n $endTime = microtime(true);\n if ($body===false) {\n throw new ResponseException(curl_error($this->connection), curl_errno($this->connection));\n }\n \n // split headers from body\n return new Response(new Information($this->connection, ($endTime-$startTime)), $body, $headers);\n }", "title": "" }, { "docid": "e26895eeda49e8eea1e3ead545c496e8", "score": "0.5568771", "text": "public function doRequest()\n {\n $preparedRequest = $this->prepareRequest();\n $request = new SveaDoRequest($this->conf, $this->orderType, \"GetAddresses\", $preparedRequest, $this->logging);\n $response = new SveaResponse($request->result['requestResult'], \"\", NULL, NULL, isset($request->result['logs']) ? $request->result['logs'] : NULL);\n\n return $response->response;\n }", "title": "" }, { "docid": "7d0a1b72e2c9d88516ee8a83446a4d41", "score": "0.55503464", "text": "public function post() {\n\t\t$params = $this->requestParams;\n\n\t\t$url = $this->apiUrl['charge'];\n\t\t\n\t\tif (isset($params['period']) && isset($params['period_duration'])) {\n\t\t\t$url = $this->apiUrl['subscription'];\n\t\t}\n\t\t\n\t\t$response = $this->_handleRequest('POST', $url);\n\t\treturn $this->_wrapResponseBody($this->_removeBOM($response['body']));\n\t}", "title": "" }, { "docid": "1046f27c7d06af25fd5021aad4958893", "score": "0.55484325", "text": "protected function post($params, $method, $forceHeaders = false) {\n\t\t$params = $this->format_post_params($params, $method);\n\t\t$postUrl = $this->construc_post_url($params['key'], $method);\n\t\t$post = $this->build_curl_post_params($params);\n\n\t\t$ch = curl_init();\n\t\n\t\tcurl_setopt($ch, CURLOPT_URL, $postUrl);\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);\n\n\t\tif ($forceHeaders) {\n\t\t\tcurl_setopt($ch, CURLOPT_HEADER, true);\n\t\t\tcurl_setopt($ch, CURLOPT_VERBOSE, true);\n\t\t}\n\t\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $post);\n\t\t$response = curl_exec($ch);\n\n\t\tif (!curl_errno($ch)) {\n\t\t\tcurl_close($ch);\n\t\t\treturn $response;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" }, { "docid": "b6fa1f08b64a2264faa3f4f65a7d328a", "score": "0.5547173", "text": "public function post() {\n $this->requireLogin();\n $file = $this->getFile();\n\n $offset = Request::post('offset', Request::TYPE_INT);\n $data = base64_decode(Request::post('data', Request::TYPE_BASE64));\n\n $handler = Configuration::get('chunked_upload.file_handler', 'Lightning\\\\Tools\\\\IO\\\\File');\n $location = Configuration::get('chunked_upload.location', 'upload');\n $fileHandler = FileManager::getFileHandler($handler, $location);\n\n // TODO: Make sure if the packages come in out of order that they are saved correctly.\n $fileHandler->write($file->locator, $data, $offset);\n $file->uploaded_bytes = max(strlen($data) + $offset, $file->uploaded_bytes);\n $file->save();\n\n return Output::SUCCESS;\n }", "title": "" }, { "docid": "9a7e097008cab3d849803e80db494459", "score": "0.55453527", "text": "function call()\n\t{\n\t\t$end_point_url = $this->_getEndPointURL();\n\t\t$service_params = $this->_params;\n\t\t$formatted_params_arr = array();\n\t\t$final_params_str = '';\n\t\t$request_url = '';\n\t\t\n // action body\n\t\t$ch = curl_init();\n\t\t\n\t\t$request_url = $this->_host.$end_point_url;\n\t\t\n\t\tif( $this->_method == self::METHOD_POST )\n\t\t{\n\t\t\tforeach( $service_params as $key => $value )\n\t\t\t{\n\t\t\t\t$formatted_params_arr[] = $key.'='.$value;\n\t\t\t}\n\n\t\t\t$final_params_str = implode('&', $formatted_params_arr);\n\t\t\tcurl_setopt( $ch, CURLOPT_POSTFIELDS, $final_params_str );\n\t\t\tcurl_setopt( $ch, CURLOPT_POST, TRUE );\n\t\t\terror_log('POST Params = '.$final_params_str);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach( $service_params as $key => $value )\n\t\t\t{\n\t\t\t\t$formatted_params_arr[] = $value;\n\t\t\t}\n\n\t\t\t$final_params_str = implode( '/', $formatted_params_arr );\n\t\t\terror_log('GET Params = '.$final_params_str);\n\t\t\t$request_url .= ( $final_params_str ? '/' : '' ).$final_params_str;\n\t\t}\n\t\t\n\t\t// set URL and other appropriate options\n\t\tcurl_setopt( $ch, CURLOPT_URL, $request_url );\n\t\tcurl_setopt( $ch, CURLOPT_HEADER, false);\n\t\tcurl_setopt( $ch, CURLOPT_RETURNTRANSFER, true);\n\t\t\n\t\t// grab URL and pass it to the browser\n\t\t$response = curl_exec( $ch );\n\t\t\n\t\t// close CURL resource, and free up system resources\n\t\t$this->request_url = curl_getinfo( $ch, CURLINFO_EFFECTIVE_URL);// $request_url;\n\t\terror_log( $this->request_url );\n\t\tcurl_close( $ch );\n\t\t\n\t\tif( !trim( $response ) )\n\t\t{\n\t\t\tthrow new Exception( 'No response received from the web service. Server seems down. Request URL '.$request_url );\n\t\t}\n\t\t\n\t\t$this->response = $response;\n\t\terror_log( $this->response );\n\t\t$response = json_decode( $response, true );\n\t\t\n\t\t$framework_err_messages = array();\n\t\t$service_err_messages = array();\n\t\t$service_err_code = 0;\n\t\t$final_response = '';\n\t\t\n\t\tif( !$response[\"service\"][\"request\"][\"isValid\"] )\n\t\t{\n\t\t\terror_log( $this->response );\n\t\t\tforeach( $response[\"service\"][\"errors\"] as $error )\n\t\t\t{\n\t\t\t\t$framework_err_messages[] = $error[\"error\"][\"message\"];\n\t\t\t}\n\t\t\t\n\t\t\tthrow new Exception( implode( ' ', $framework_err_messages ) );\n\t\t}\n\t\telse if( isset( $response[\"service\"][\"errors\"] ) ) \n\t\t{\n\t\t\terror_log( $this->response );\n\t\t\t//Request was valid if the code reaches here. Check for service level errors.\n\t\t\tforeach( $response[\"service\"][\"errors\"] as $error )\n\t\t\t{\n\t\t\t\t$service_err_messages[] = $error[\"error\"][\"message\"];\n\t\t\t\t$service_err_code = self::$ERR_CODES[$error[\"error\"][\"code\"]];\n\t\t\t}\n\t\t\tthrow new Exception( implode(' ', $service_err_messages), $service_err_code);\n\t\t}\n\t\telse //Everything is valid and we have received the data back\n\t\t{\n\t\t\t$final_response = isset( $response[\"service\"][\"response\"] ) ? $response[\"service\"][\"response\"] : array();\n \t\t}\n\t\t\n\t\treturn $final_response;\n\t}", "title": "" }, { "docid": "b81d1214fa7de0aa008f95494578af8c", "score": "0.5542615", "text": "function get_post_response( $xml_string ){\n\t\t$xml_string = str_replace( \"&\", \"&amp;\", $xml_string );\n\t\t$ch = curl_init($this->_post_url);\n\t\tcurl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1)\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $xml_string); // use HTTP POST to send form data\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this line if you get no gateway response. ###\n\t\t$xml_response = curl_exec($ch); //execute post and get results\n\t\tcurl_close ($ch);\n\t\treturn $xml_response;\n\t}", "title": "" }, { "docid": "2985f7a6055b90ab7f0484cc967973c9", "score": "0.55417204", "text": "public function testPost(): bool\n {\n $this->setResponse($this->getClient()->post(''));\n\n return $this->getResponse()->isOk();\n }", "title": "" }, { "docid": "4b30f4286c8101330c5a7ff066090ef1", "score": "0.55382115", "text": "public function testPost(): void\n {\n // http test server\n $testUri = new Uri('http://httpbin.org/post');\n\n $me = $this;\n $postTestCb = function ($response) use ($me): void {\n // verify the post response\n $data = json_decode($response, true);\n // note that we check this because the retrieveResponse wrapper function automatically adds a content-type\n // if there isn't one and it\n $me->assertEquals('testValue', $data['form']['testKey']);\n };\n\n $this->__doTestRetrieveResponse($testUri, ['testKey' => 'testValue'], [], 'POST', $postTestCb);\n }", "title": "" }, { "docid": "2643ae7751222025e81c8a8d1cde31ee", "score": "0.55264777", "text": "public function post($params){\n $data=isset($params['data']) ? $params['data'] : null;\n $options = isset($params['options']) ? $params['options'] : array();\n if($data){\n $options[CURLOPT_POSTFIELDS] = $data;\n }\n if (!is_array($options)){\n \t\t$options = array();\n \t}\n \telse if (in_array(CURLOPT_POSTFIELDS, $options) AND sizeof($options[CURLOPT_POSTFIELDS]) > 0){\n \t\t$options[CURLOPT_POST] = true;\n \t}\n// $options[CURLOPT_USERAGENT]=!isset($options[CURLOPT_USERAGENT]) ? 'PHP' : $options[CURLOPT_USERAGENT];\n $options[CURLOPT_RETURNTRANSFER]= !isset($options[CURLOPT_RETURNTRANSFER]) ? true : $options[CURLOPT_RETURNTRANSFER];\n return $this->_exec($options);\n }", "title": "" }, { "docid": "f91dd27d1a39018fe6adfb3b6a099da5", "score": "0.5519288", "text": "protected function post($data = array()) {\n $data['key'] = $this->getSecretKey();\n\n $url = $this->getEndPointURL();\n $curl = curl_init($url);\n curl_setopt_array($curl, array(\n CURLOPT_RETURNTRANSFER => 1,\n CURLOPT_URL => $url,\n CURLOPT_CONNECTTIMEOUT => 5,\n CURLOPT_TIMEOUT => 5,\n CURLOPT_POST => 1,\n CURLOPT_POSTFIELDS => $data,\n CURLOPT_SSL_VERIFYPEER => false\n ));\n $response = curl_exec($curl);\n curl_close($curl);\n\n return $response;\n }", "title": "" }, { "docid": "19ce260ef1a96e0643b75a35d3716f23", "score": "0.5512279", "text": "public function speaks()\n {\n $client = new Client(['exceptions' => false]);\n $request = new Request($this->method, $this->url, $this->headers, $this->body);\n\n $response = $client->send($request);\n\n return $response;\n }", "title": "" }, { "docid": "5b6a83608b52dccba3d6262142d9c456", "score": "0.55103517", "text": "public function doRequest() {\n $object = $this->prepareRequest();\n $url = $this->handler->conf->getEndPoint($this->handler->orderType);\n $request = new SveaDoRequest($url);\n $svea_req = $request->DeliverOrderEu($object);\n\n $response = new \\SveaResponse($svea_req,\"\");\n return $response->response;\n }", "title": "" }, { "docid": "ba3d94833fe67109fe173d01c1b3d598", "score": "0.5508498", "text": "public function doPostRequest($url, $data, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $php_errormsg = '';\n if (is_array($data)) {\n $data = http_build_query($data, '', '&');\n }\n $params = array('http' => array(\n 'method' => 'POST',\n 'content' => $data)\n );\n if ($headers !== null) {\n $params['http']['header'] = $headers;\n }\n $ctx = stream_context_create($params);\n $fp = fopen($url, 'rb', false, $ctx);\n if (!$fp) {\n return \"Error: gateway is inaccessible\";\n }\n //stream_set_timeout($fp, 0, 250);\n try {\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 } catch (Exception $e) {\n $response = $e->getMessage();\n return $response;\n }\n}", "title": "" }, { "docid": "563b28190659e3b556d20ae5ce04bf95", "score": "0.55072474", "text": "public function post()\n {\n $request = $this->getRequest();\n\n $data = json_decode($request->getContent(), true);\n $data['companyId'] = $this->table->save($data);\n $company = new Company();\n $company->exchangeArray($data);\n\n return $this->successResponse($company->toArray());\n }", "title": "" }, { "docid": "0478a9f389fe7f9d52952eebc8f769e3", "score": "0.5507015", "text": "function send() {\n $ch = curl_init();\n $srv_url = $this->api_srv_url;\n $srv_port = $this->api_port_url;\n \n curl_setopt($ch, CURLOPT_URL, $srv_url);\n curl_setopt($ch, CURLOPT_PORT, $srv_port);\n curl_setopt($ch, CURLOPT_USERAGENT , 'Codular Sample cURL Request');\n\n if ($this->method == 'POST') {\n curl_setopt($ch, CURLOPT_POST, true);\n }\n // Headers\n curl_setopt($ch, CURLOPT_HTTPHEADER, $this->headers);\n\n if ($this->method == \"POST\" && !empty($this->send_data)) {\n curl_setopt($ch, CURLOPT_POSTFIELDS, $this->send_data);\n }\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); \n $ret = curl_exec($ch);\n $info = curl_getinfo($ch);\n curl_close($ch); \n return $this->parse_send_response($info, $ret);\n }", "title": "" }, { "docid": "58f107ee966133a9b4c8c702cc315ade", "score": "0.5504886", "text": "private function submitHttpRequest()\n\t{\n\t\tlog_debug(\"HealthLibraryRequest::submitHttpRequest()\");\n\t\t\n\t\t$sResponse = \"\";\n\t\t\n\t\t//* Collect and format the parameters for the request\n\t\t$sParamneters = $this->collectParameters();\n\t\t\n\t\t//* Initialize a cURL session\n\t\t$xCurl = curl_init();\n\t\t\n\t\t//* add the xmlRequest parameter\n\t\t$sParamString = \"xmlRequest=\" . urlencode($sParamneters);\n\t\tlog_debug(\"Param String: $sParamString\");\n\t\t\n\t\tlog_debug(\"HTTP Request Method: \" . $this->m_sHttpMethod);\n\t\tif ($this->m_sHttpMethod == \"POST\")\n\t\t{\n\t\t\t//* set the options needed for the POST request\n\t\t\tcurl_setopt($xCurl, CURLOPT_URL, $this->m_sRequestUrl);\t\t\t\t//* Set the URL\n\t\t\tcurl_setopt($xCurl, CURLOPT_HEADER, FALSE);\t\t\t\t\t\t\t//* Don't return the header\n\t\t\tcurl_setopt($xCurl, CURLOPT_POST, 1);\t\t\t\t\t\t\t\t//* We only have 1 paramenter xmlRequest\n\t\t\tcurl_setopt($xCurl, CURLOPT_POSTFIELDS, $sParamString);\t\t\t\t//* pass the paramneter string\n\t\t\tcurl_setopt($xCurl, CURLOPT_RETURNTRANSFER, TRUE);\t\t\t\t\t//* return web page\t\t\n\t\t}\n\t\telse \n\t\t{\n\t\t\t//* Set the options needed for a GET request\n\t\t\tcurl_setopt($xCurl, CURLOPT_URL, $this->m_sRequestUrl . \"?$sParamString\");\t//* Set the URL and add the query parameters\n\t\t\tcurl_setopt($xCurl, CURLOPT_HEADER, FALSE);\t\t\t\t\t\t\t\t\t//* Don't return the header\n\t\t\tcurl_setopt($xCurl, CURLOPT_RETURNTRANSFER, TRUE);\t\t\t\t\t\t\t//* return web page\n\t\t\tcurl_setopt($xCurl, CURLOPT_CUSTOMREQUEST, 'GET');\t\t\t\t\t\t\t//* Make this a GET request\n\t\t}\n\n\t\t//* Execute the request\n\t\t$sResponse = curl_exec($xCurl);\n\t\t\n\t\t//* Get some information \n\t\t$this->m_iHttpResponseCode\t\t= intval(curl_getInfo($xCurl, CURLINFO_HTTP_CODE));\n\t\t$this->m_iTotalBytesDownloaded\t= intval(curl_getInfo($xCurl, CURLINFO_SIZE_DOWNLOAD));\n\t\t\n\t\tlog_debug(\"HTTP Response Code: \" . $this->m_iHttpResponseCode);\n\t\tlog_debug(\"Total Bytes Downloaded: \" . $this->m_iTotalBytesDownloaded);\n\t\t\n\t\t//* Lets see if there was an error\n\t\t$iErrorNo = curl_error($xCurl);\n\t\tif ($iErrorNo > 0)\n\t\t{\n\t\t\t//* there was an error\n\t\t\tlog_error(\"Unable to get a response: \" . $this->m_sRequestUrl);\n\t\t\t\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tlog_debug( \"Response\" );\n\t\tlog_debug($sResponse);\n\t\t\n\t\treturn $sResponse;\n\t}", "title": "" }, { "docid": "fc230473557e90cb271c750ed3725787", "score": "0.54921806", "text": "function PPHttpPost($parsed_)\n\t{\n\t\t$DEBUG = false;\n\t\t\n\t\t$this->currentrow = null;\n\t\t$this->add_params_to_nvp () ;\n\t\t$this->add_payments_to_nvp ();\n\t\t\n\t\t$DEBUG && fp_error_log(__FUNCTION__.\": this->nvp = {$this->nvp}\", 3, FP_PAYMENTS_LOG);\n\n\t\t//setting the curl parameters.\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL,$this->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,$this->nvp);\n\n\t\t//getting response from server\n\t\t$httpResponse = curl_exec($ch);\n\n\t\tif(!$httpResponse) {\n\t\t\t$this->response = array(\"status\" => false, \"error_msg\" => curl_error($ch), \"error_no\" => curl_errno($ch));\n\t\t\treturn $this->response;\n\t\t}\n\n\t\tif(!$parsed_) {\n\t\t\t$this->response = array(\"status\" => true, \"httpResponse\" => $httpResponse);\n\t\t\treturn $this->response;\n\t\t}\n\t\t\n\t\t$this->response = deformatNVP ($httpResponse);\n\n\t\tif(0 == sizeof($this->response)) {\n\t\t\t$error = \"Invalid HTTP Response for POST request(\".$this-nvp.\") to \".$this->url;\n\t\t\t$this->response = array(\"status\" => false, \"error_msg\" => $error, \"error_no\" => 0);\n\t\t\treturn $this->response;\n\t\t}\n\t\t\n\t\tif ('Failure' == $this->response['ACK']) {\n\t\t\t$this->response = array(\"status\" => true, \"response\" => $this->response);\n\t\t} else {\n\t\t\t$this->response = array(\"status\" => true, \"response\" => $this->response);\n\t\t}\n\n\t\treturn $this->response;\n\n\t}", "title": "" }, { "docid": "161d88a58276f5c1c30db3f83dfcbddc", "score": "0.5488586", "text": "public function send()\n {\n $ch = curl_init();\n\n curl_setopt($ch, CURLOPT_URL, $this->CURLOPT_URL );\n curl_setopt($ch, CURLOPT_USERAGENT, $this->CURLOPT_USERAGENT );\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $this->CURLOPT_POSTFIELDS);\n\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);\n\n //curl_setopt($ch, CURLOPT_HEADER, true);\n curl_setopt($ch, CURLOPT_HTTPHEADER, $this->CURLOPT_HTTPHEADER );\n\n $output = curl_exec($ch);\n\n if($output === FALSE)\n {\n die( curl_error($ch) );\n }\n\n $info = curl_getinfo($ch);\n\n curl_close($ch);\n return $output;\n }", "title": "" }, { "docid": "0ca54a65925e33081dd1446aea48ee84", "score": "0.54831016", "text": "public function remotePostRequest() {\r\n\t\t\r\n\t\t$requestUrl = iHomefinderLayoutManager::getInstance()->getExternalUrl();\r\n\t\t$ihfid = iHomefinderUrlFactory::getInstance()->getBaseUrl() . \";\" . \"WordpressPlugin\";\r\n\t\t$ihfUserInfo = \"WordPress/\" . get_bloginfo(\"version\") . \"; \" . iHomefinderUrlFactory::getInstance()->getBaseUrl();\r\n\t\t//Modified user-agent in the request header to pass original user-agent. This information is used to determine if request came from mobile devices.\r\n\t\t\r\n\t\t$userAgent = $_SERVER[\"HTTP_USER_AGENT\"];\r\n\t\tif($userAgent !== null) {\r\n\t\t\t$userAgent = urlencode($userAgent);\r\n\t\t}\r\n\t\t\r\n\t\t$requestArgs = array(\r\n\t\t\t\"timeout\" => \"200\",\r\n\t\t\t\"body\" => $this->getParameters(),\r\n\t\t\t\"ihfid\" => $ihfid,\r\n\t\t\t\"ihfUserInfo\" => $ihfUserInfo,\r\n\t\t\t\"user-agent\" => $userAgent,\r\n\t\t\t\"sslverify\" => false,\r\n\t\t);\r\n\t\t\r\n\t\tiHomefinderLogger::getInstance()->debug(\"ihfUrl: \" . $requestUrl);\r\n\t\tiHomefinderLogger::getInstance()->debug($requestArgs);\r\n\t\tiHomefinderLogger::getInstance()->debug(\"before request\");\r\n\t\t$response = wp_remote_post($requestUrl, $requestArgs);\r\n\t\tiHomefinderLogger::getInstance()->debug(\"after request\");\r\n\t\tiHomefinderLogger::getInstance()->debug($response);\r\n\t\t\r\n\t\tif(!is_wp_error($response)) {\r\n\t\t\t$responseBody = wp_remote_retrieve_body($response);\r\n\t\t\tif($response[\"response\"][\"code\"] >= 400) {\r\n\t\t\t\t$responseBodyObject = new stdClass();\r\n\t\t\t\t$responseBodyObject->view = $responseBody;\r\n\t\t\t} else {\r\n\t\t\t\t$contentType = wp_remote_retrieve_header($response, \"content-type\");\r\n\t\t\t\tif($contentType !== null && $contentType == \"text/xml;charset=UTF-8\") {\r\n\t\t\t\t\t$responseBodyObject = simplexml_load_string($responseBody, null, LIBXML_NOCDATA);\t\r\n\t\t\t\t\t$responseBodyObject = json_decode(json_encode($responseBodyObject));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$responseBodyObject = json_decode($responseBody);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$this->remoteResponse = new iHomefinderRemoteResponse($responseBodyObject);\r\n\t\t}\r\n\t\t\t\r\n\t\treturn $this->remoteResponse;\r\n\t}", "title": "" }, { "docid": "cac652257ccaf630d8ac44499bc7c265", "score": "0.54796356", "text": "public function simpleTestPostService()\n {\n $this->mockPostServiceCall(201, 11, []);\n }", "title": "" }, { "docid": "08ba8839338fb5101d0fe67a1e2a0d02", "score": "0.5465156", "text": "function post($url, $parameters = array()) {\n $response = $this->oAuthRequest($url, 'POST', $parameters);\n if ($this->format === 'json' && $this->decode_json) {\n return json_decode($response);\n }\n return $response;\n }", "title": "" }, { "docid": "d367a4a2403a096d78e53838871374b9", "score": "0.5456167", "text": "function doPostRequest($url, $data, $headers = array('Content-Type: application/x-www-form-urlencoded')) {\n $php_errormsg = '';\n if (is_array($data)) {\n $data = http_build_query($data, '', '&');\n }\n $params = array('http' => array(\n 'method' => 'POST',\n 'content' => $data)\n );\n if ($headers !== null) {\n $params['http']['header'] = $headers;\n }\n $ctx = stream_context_create($params);\n $fp = fopen($url, 'rb', false, $ctx);\n if (!$fp) {\n return \"Error: gateway is inaccessible\";\n }\n //stream_set_timeout($fp, 0, 250);\n try {\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 } catch (Exception $e) {\n $response = $e->getMessage();\n return $response;\n }\n}", "title": "" }, { "docid": "5de262165463a74e0534b7192d15d235", "score": "0.54549044", "text": "public function submit() {\n $requestResource = SMSRequest::getBaseResource();\n \n // set resource and response data type\n $this->setRequestResource($requestResource);\n $this->setResponseContentType(DataContentType::GZBIN_XML);\n \n // initiate for writing request\n $this->initRequest();\n $dataWriter = $this->createDataWriter();\n $this->_requestData = &$dataWriter->writeSMSRequest($this->_messagesList);\n \n // Submit request and return response\n $apiResp = parent::submit();\n return MessageResponse::create($apiResp);\n }", "title": "" }, { "docid": "720d8c849945cbc2ad55dfc412be92fa", "score": "0.5453914", "text": "public function post()\n\t {\n\t \t\n\t }", "title": "" }, { "docid": "5f60640a3e204a582a80304e8800c9e1", "score": "0.54431945", "text": "public function dealsPostAction(Request $request)\n {\n // Make sure that the client is providing something that we can consume\n $consumes = ['application/json'];\n $inputFormat = $request->headers->has('Content-Type')?$request->headers->get('Content-Type'):$consumes[0];\n if (!in_array($inputFormat, $consumes)) {\n // We can't consume the content that the client is sending us\n return new Response('', 415);\n }\n\n // Figure out what data format to return to the client\n $produces = ['application/json'];\n // Figure out what the client accepts\n $clientAccepts = $request->headers->has('Accept')?$request->headers->get('Accept'):'*/*';\n $responseFormat = $this->getOutputFormat($clientAccepts, $produces);\n if ($responseFormat === null) {\n return new Response('', 406);\n }\n\n // Handle authentication\n // Authentication 'basicAuth' required\n // HTTP basic authentication required\n $securitybasicAuth = $request->headers->get('authorization');\n\n // Read out all input parameter values into variables\n $body = $request->getContent();\n\n // Use the default value if no value was provided\n\n // Deserialize the input values that needs it\n $body = $this->deserialize($body, 'Swagger\\Server\\Model\\CreateDealRequest', $inputFormat);\n\n // Validate the input values\n $asserts = [];\n $asserts[] = new Assert\\Type(\"Swagger\\Server\\Model\\CreateDealRequest\");\n $response = $this->validate($body, $asserts);\n if ($response instanceof Response) {\n return $response;\n }\n\n\n try {\n $handler = $this->getApiHandler();\n\n // Set authentication method 'basicAuth'\n $handler->setbasicAuth($securitybasicAuth);\n \n // Make the call to the business logic\n $responseCode = 200;\n $responseHeaders = [];\n $result = $handler->dealsPost($body, $responseCode, $responseHeaders);\n\n // Find default response message\n $message = 'Deal ids';\n\n // Find a more specific message, if available\n switch ($responseCode) {\n case 200:\n $message = 'Deal ids';\n break;\n }\n\n return new Response(\n $result?$this->serialize($result, $responseFormat):'',\n $responseCode,\n array_merge(\n $responseHeaders,\n [\n 'Content-Type' => $responseFormat,\n 'X-Swagger-Message' => $message\n ]\n )\n );\n } catch (Exception $fallthrough) {\n return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough));\n }\n }", "title": "" }, { "docid": "4d051aefc18529a3bb5379acd127c558", "score": "0.5438204", "text": "static function do_post(&$body) {\n http_response_code(405);\n }", "title": "" }, { "docid": "8a1f76c69b83f95224a283a00a731daa", "score": "0.5427677", "text": "public function execute() {\n\n\t\t$ch = curl_init();\n\n\t\t// Make POST request\n\t\tcurl_setopt($ch, CURLOPT_URL, 'http://www.ebi.ac.uk/Tools/services/rest/clustalo/run/');\n\t\tcurl_setopt($ch, CURLOPT_POST, 1);\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $this->_data);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\n\t\t// Execute and receive server response\n\t\t$response = curl_exec($ch);\n\t\tcurl_close($ch);\n\n\t\t// Parse server response\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "99367b8c855728dcfb8b101efc5c5e1c", "score": "0.5417353", "text": "protected function _sendCurl() {\n\t\tcurl_setopt($this->_handler, CURLOPT_RETURNTRANSFER, 1);\n\t\tcurl_setopt($this->_handler, CURLOPT_HEADER, 1);\n\n\t\tif ($this->_headers) {\n\t\t\t$final_headers = array();\n\t\t\tforeach ($this -> _headers as $key => $value) {\n\t\t\t\t$final_headers[] = $key . ':' . $value;\n\t\t\t}\n\n\t\t\tcurl_setopt($this->_handler, CURLOPT_HTTPHEADER, $final_headers);\n\t\t};\n\n\t\t$response = curl_exec($this->_handler);\n\n\t\tif ($response === false) {\n\t\t\t$this->_error = curl_error($this->_handler);\n\t\t\t$this->hasError = true;\n\t\t}\n\t\t$this->_response = $response;\n\n\t\t$this->_response_info = curl_getinfo($this->_handler);\n\n\t\tcurl_close($this->_handler);\n\n\t\t$this->_notify(get_class() . '::' . __FUNCTION__, $this);\n\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "bbb47747f7441c392a475acb81630b5c", "score": "0.54018086", "text": "public function testCreateAfterSalesServiceWarrantyUsingPOST()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "91d1ff4dbf18d06d1222bf67d9d7378d", "score": "0.5398223", "text": "function send_post($url, $returnheaders = false){\n\t\t// parse the url\n\t\t\t$urldata = parse_url($url);\n\t\t\tif($urldata === false) return false;\n\t\t// now send the POST request and return the result\n\t\t\treturn $this->send_request($url, $urldata['query'], 'POST', array('Content-type'=>'application/x-www-form-urlencoded'), $returnheaders);\t\t\n\t}", "title": "" }, { "docid": "1873ba2dd35c7d8623ebbcca3b29d010", "score": "0.5394026", "text": "public function post($data = null)\n {\n $this->setMethod(self::METHOD_POST);\n $this->setRawData($data);\n return $this->request();\n }", "title": "" }, { "docid": "c0fcc6203c6cc763c87a5e55d26bf554", "score": "0.53936034", "text": "public function process() {\n $this->checkDependencies();\n\n $this->runScript();\n\n return $this->response;\n }", "title": "" }, { "docid": "bf47eeefa20fe9ffb91ef3c088a03e85", "score": "0.53904706", "text": "public function transfer()\n {\n // prepare postfields\n $this->options[CURLOPT_POSTFIELDS] = $this->buildPostfields($this->values);\n // init curl\n $curl = curl_init();\n // set all options into curl object from $options\n curl_setopt_array($curl, $this->options);\n // excute the curl and write response into $response\n $response = curl_exec($curl);\n // close the curl connection\n curl_close($curl);\n // see if response is xml valid (else we have a basic api error)\n if (preg_match('/\\<\\?xml(.*)\\?\\>/', $response)) {\n // get node content\n $doc = new \\DOMDocument();\n // load the xml reponse (which is xml)\n $doc->loadXML($response);\n // get content from the firstChild (there is no good documentation about aspsms response bodys)\n $nodeContent = $doc->firstChild->textContent;\n // return the content\n return $nodeContent;\n } else {\n throw new Exception(sprintf(\"Invalid API Response '%s'\", trim($response)));\n }\n }", "title": "" }, { "docid": "86db12c9bcee993bdd444f880076455d", "score": "0.53819335", "text": "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->timeout );\n\t\t\n\t\tif ( $result && ! Error::is_error( $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\t\t\t\n\t\t\treturn TRUE;\n\t\t}\n\t\telse {\n\t\t\t// actually, processor->execute should throw an Error which would bubble up\n\t\t\t// we need a new Error class and error handler for that, though\n\t\t\t$this->executed = FALSE;\n\t\t\t\n\t\t\treturn $result;\n\t\t}\n\t}", "title": "" }, { "docid": "c1d03a278bce2b2b8f2698122d189602", "score": "0.5379172", "text": "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}", "title": "" }, { "docid": "65446984b5c4fd328c7bb3043bbab8ac", "score": "0.5375463", "text": "public function testCreateAfterSalesServiceReturnPolicyUsingPOST()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "title": "" }, { "docid": "dc2bb22632e15c78150ac7103165e417", "score": "0.5375038", "text": "public function Post()\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->Merge_Params();\n\t\t\t\t\t\t\n\t\t\t\t\t\t$lead_data = $this->Get_Lead_Data();\n\t\t\t\t\t\t$this->movePayDate($lead_data);\n\t\t\t\t\t\t$fields = $this->Generate_Fields($lead_data, $this->params);\n\n\t\t\t\t\t\t$result = new Vendor_Post_Result();\n\n\t\t\t\t\t\t$fred=Dupe_Bloom_Singleton::Get_Instance();\n\t\t\t\t\t\tif($fred->is_dupe($fields['email'],$fields['ssn']))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$result->Set_Message(\"Rejected\");\n\t\t\t\t\t\t\t$result->Set_Success(FALSE);\n\t\t\t\t\t\t\t$result->Set_Vendor_Decision('REJECTED');\n\t\t\t\t\t\t\t$reason=\"Failed OLP/CG dupe check\";\n\t\t\t\t\t\t\t$result->Set_Vendor_Reason($reason);\n\t\t\t\t\t\t\t$result->Set_Data_Sent(serialize($fields));\n\t\t\t\t\t\t\t//following response message must stay for CG-- usurped as a flag \n\t\t\t\t\t\t\t//used in olp.php Post_To_Winner\n\t\t\t\t\t\t\t$result->Set_Data_Received(\"failed_cg_dupes\");\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//passed the bloom filter check\n\t\t\t\t\t\t\t$result = $this->HTTP_Post_Process($fields,FALSE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\treturn $result;\n\t\t\t\t\t}", "title": "" }, { "docid": "344faf94a1d2c9b43eb799f5b5652f6a", "score": "0.5372354", "text": "public function executePost()\n {\n $this->data = array('success' => 1);\n return $this->toArray();\n }", "title": "" }, { "docid": "0ded09d2ddcdc2d86e2ccb5c655fea5f", "score": "0.53698546", "text": "public function send()\n {\n $this->httpClient->getEventDispatcher()->addListener(\n 'request.error',\n function ($event) {\n if ($event['response']->isClientError()) {\n $event->stopPropagation();\n }\n }\n );\n\n $httpRequest = $this->httpClient->createRequest(\n $this->getHttpMethod(),\n $this->getEndpoint(),\n null,\n $this->getData()\n );\n $httpResponse = $httpRequest\n ->setHeader('Authorization', 'Basic '.base64_encode($this->getApiKey().':'))\n ->send();\n\n return $this->response = new Response($this, $httpResponse->json());\n }", "title": "" }, { "docid": "74d6cf58e9399d8a7ec05825bcc7faa9", "score": "0.53652966", "text": "public function post($request, $response) {\n }", "title": "" }, { "docid": "64d1e793c090521f3dcc83df45ef4d9c", "score": "0.53627294", "text": "public function POST($url)\n\t{\n\t\t$headers = '';\n\t\t$hs = $this->getPOSTHeaders();\n\t\tforeach ($hs as $h => $v)\n\t\t{\n\t\t\t$headers .= \"$h: $v\\r\\n\";\n\t\t};\n\n\t\t$opts =\n\t\t\tarray('http' =>\n\t\t\t\tarray('method' => 'POST',\n\t\t\t\t\t'header' => $headers,\n\t\t\t\t\t'content' => $this->getData())\n\t\t\t);\n\n\t\t$context = stream_context_create($opts);\n\t\t$result = file_get_contents($url, false, $context);\n\t\t$resp_head = $http_response_header;\n\n\t\treturn array('body' => $result,\n\t\t\t'headers' => $resp_head);\n\t}", "title": "" }, { "docid": "cee00731f04b6f0572920df88c20d5ac", "score": "0.5362719", "text": "private function doPOST($url,$requestdata = array()) {\n $date = date('r');\n\n $requestheader = array(\n 'Host: '.parse_url($url,PHP_URL_HOST),\n 'Content-Type: application/x-www-form-urlencoded',\n 'Date: '. $date,\n );\n $data = '';\n foreach ($requestdata as $param => $value) {\n if (!is_array($value)) {\n $data .= $param.'='.urlencode($value).'&';\n } // else -> forget about arrays for now\n }\n $data = substr($data,0,-1);\n $requestheader[] = 'Content-Length: '.strlen($data);\n\n $header = '';\n foreach ($requestheader as $param) {\n $header .= $param.$this->LE;\n }\n\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_URL, $url);\n curl_setopt($curl, CURLOPT_TIMEOUT, 30);\n curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);\n curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, FALSE);\n curl_setopt($curl, CURLOPT_HTTPHEADER,$requestheader);\n curl_setopt($curl, CURLOPT_DNS_USE_GLOBAL_CACHE, TRUE);\n curl_setopt($curl, CURLOPT_USERAGENT,$this->UA);\n curl_setopt($curl, CURLOPT_POST, 1);\n\n curl_setopt($curl, CURLOPT_POSTFIELDS, $data);\n\n $result = curl_exec($curl);\n $status = curl_getinfo($curl,CURLINFO_HTTP_CODE);\n if ($status != 200) {\n $error = curl_error($curl);\n $this->dbg('Curl Error '.$status.' '.$error);\n }\n curl_close($curl);\n return $result;\n }", "title": "" }, { "docid": "548588656279d31d10c7c7e4e2bd5808", "score": "0.53621614", "text": "private function _POST()\n {\n // Retrieve the payload and send with the friendId to the handler.\n $payload = json_decode(file_get_contents('php://input'), true);\n\n // /api/v2/Message/send-message/{friendId} - Send a message to a friend.\n if(count($this->args) == 1 && $this->verb == 'send-message')\n {\n return \\Handlers\\Message::sendMessage($this->args[0], $payload, $this->user);\n }\n // /api/v2/Message/report-email/{$reportId} - Report a message, along with the user information of the person who sent it.\n else if(count($this->args) == 1 && $this->verb == 'report-email')\n {\n return \\Handlers\\Message::reportEmail($payload, $this->args[0], $this->user);\n }\n // Unsupported handler\n else\n throw new \\Exception(\"No handler found for the GET resource of this URI, please check the documentation.\");\n\n }", "title": "" }, { "docid": "1fe9013a7521475e91b1c578f076cbf9", "score": "0.5360264", "text": "public function post($endpoint, $headers, $data = array(), $options = array()) {\n\t\treturn $this->request($endpoint, $headers, $data, Requests::POST, $options);\n\t}", "title": "" }, { "docid": "d433fda1dd5d4b75ac58b79958318595", "score": "0.535358", "text": "public function process() {\n if(!$this->preparationSuccessful) {\n Mage::helper(\"unbxd_recommendation\")\n ->log(Zend_Log::ERR,\n sizeof($this->errors == 0)?\"prepare method not called\":json_encode($this->errors));\n return Mage::getModel(\"unbxd_recommendation/api_response\")\n ->setErrors(sizeof($this->errors) == 0?array(\"message\" => \"prepare method not called\"):$this->errors);\n }\n $request = Mage::getModel(\"unbxd_recommendation/api_request\")\n ->setUrl(static::$url)\n ->setMethod(static::method)\n ->setHeaders($this->headers)\n ->setTimeout(static::TIMEOUT)\n ->setJsonResponse(static::jsonResponse);\n if($this->isRawData()) {\n $request->setRawData(true);\n }\n if($this->getData()) {\n $request->addData($this->getData());\n }\n\n return $this->postProcess($request->execute());\n }", "title": "" }, { "docid": "5187928f64feb3f971dfb37675ba7dab", "score": "0.534974", "text": "function curl_post($post_to, $post_params) {\n $c = curl_init(); # let's do this!\n curl_setopt($c, CURLOPT_URL, $post_to); # URL\n curl_setopt($c, CURLOPT_POST, true); # do a POST\n curl_setopt($c, CURLOPT_POSTFIELDS, $post_params); # info to POST\n curl_setopt($c, CURLOPT_RETURNTRANSFER, true); # returns string instead of printing it out to the browser\n $result = curl_exec($c); # do it & capture in $result\n curl_close($c); # clean it up\n \n return $result;\n }", "title": "" }, { "docid": "2f7e7f4af8b8a2000148d408a42f4624", "score": "0.5348189", "text": "function _post($protocol, $host, $port, $path, $version, $timeout, $xmlRequest) {\n $url = $protocol . \"://\" . $host;\n $request_string = \"XmlString=\" . $xmlRequest;\n \n if ($this->logfile) { //Log header for the request\n error_log(\"\\n------------------------------------------\\n\", 3, $this->logfile);\n error_log(\"DATE AND TIME: \".date('Y-m-d H:i:s').\"\\n\", 3, $this->logfile);\n error_log(\"BAX URL: \" . $url . \"\\n\", 3, $this->logfile);\n }\n \n if (function_exists('exec') && $this->use_exec == '1' ) { //Only used if libcurl is not installed\n exec('which curl', $curl_output);\n if ($curl_output) {\n $curl_path = $curl_output[0];\n } else {\n $curl_path = 'curl'; // add the full path to cURL if necessary\n }\n \n if ($this->logfile) { //Write the request to the logfile\n error_log(\"BAX REQUEST using exec(): \" . $xmlRequest . \"\\n\", 3, $this->logfile);\n }\n \n $command = \"\" . $curl_path . \" -d \\\"\" . $request_string . \"\\\" \" . $url . \"\";\n// If you get curl error 60: \"error setting certificate verify locations\" then\n// comment out the previous line and uncomment the following line\n// $command = \"\" . $curl_path . \" -k -d \\\"\" . $request_string . \"\\\" \". $url . \"\";\n\n exec($command, $xmlResponse);\n if ( empty($xmlResponse) && $this->logfile) { // using exec no curl errors can be retrieved\n error_log(\"Error from cURL using exec() since there is no \\$xmlResponse\\n\", 3, $this->logfile);\n }\n if ($this->logfile) { //Write the response to the logfile\n error_log(\"BAX RESPONSE using exec(): \" . $xmlResponse[0] . \"\\n\", 3, $this->logfile);\n }\n \n } elseif ($this->use_exec == '1') { //No curl at all; we're out of luck\n if ($this->logfile) {\n error_log(\"Sorry, exec() cannot be called\\n\", 3, $this->logfile);\n }\n \n } else { // default behavior: cURL is assumed to be compiled in PHP\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_INFILESIZE, strlen($request_string));\n curl_setopt($ch, CURLOPT_POST, 1);\n curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($ch, CURLOPT_POSTFIELDS, $request_string);\n curl_setopt($ch, CURLOPT_TIMEOUT, (int)$timeout);\n if (defined('CURL_PROXY_HOST') && defined('CURL_PROXY_PORT') && CURL_PROXY_HOST != '' && CURL_PROXY_PORT != '') {\n curl_setopt($ch, CURLOPT_HTTPPROXYTUNNEL, TRUE);\n curl_setopt($ch, CURLOPT_PROXY, CURL_PROXY_HOST . \":\" . CURL_PROXY_PORT);\n curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n }\n \n// Uncomment the next line if you get curl error 60: error setting certificate verify locations\n// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n// Uncommenting the next line is most likely not necessary in case of error 60\n// curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n\n if ($this->logfile) { //Log the full request\n error_log(\"BAX REQUEST: \" . $xmlRequest . \"\\n\", 3, $this->logfile);\n }\n $xmlResponse = curl_exec ($ch);\n $xmlResponse = html_entity_decode ($xmlResponse); //Needed to decode the htmlencoded response\n \n if (curl_errno($ch) && $this->logfile) { //Log errors\n $error_from_curl = sprintf('Error [%d]: %s', curl_errno($ch), curl_error($ch));\n error_log(\"Error from cURL: \" . $error_from_curl . \"\\n\", 3, $this->logfile);\n }\n \n if ($this->logfile) { //Write the response to the logfile\n error_log(\"BAX RESPONSE: \" . $xmlResponse . \"\\n\", 3, $this->logfile);\n }\n curl_close ($ch);\n }\n\n if (strlen ($xmlResponse) < 10) { //If there is no usable response, create an error message\n $xmlResponse = \"<BaxRateQuoteResponse>\\n\" .\n \"<Error>\" . MODULE_SHIPPING_BAX_TEXT_COMM_UNKNOWN_ERROR . \"</Error>\\n\" .\n \"</BaxRateQuoteResponse>\\n\";\n }\n \n if ($this->use_exec == '1') {\n return $xmlResponse[0]; // $xmlResponse is an array in this case; we only need element 0\n } else {\n return $xmlResponse;\n }\n }", "title": "" }, { "docid": "2c622331a0c12a6804131930799c91b5", "score": "0.53472763", "text": "function PPHttpPost($methodName_, $arr) \n{\n global $environment, $feedback;\n $arr['METHOD'] = $methodName_;\n if(\"sandbox\" === $environment || \"beta-sandbox\" === $environment) {\n $API_Endpoint = \"https://api-3t.$environment.paypal.com/nvp\";\n } else {\n $API_Endpoint = 'https://api-3t.paypal.com/nvp';\n }\n\t// Set the curl parameters.\n\t$ch = curl_init();\n\tcurl_setopt($ch, CURLOPT_URL, $API_Endpoint);\n\tcurl_setopt($ch, CURLOPT_VERBOSE, 1);\n\n\t// Turn off the server and peer verification (TrustManager Concept).\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);\n\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);\n\n\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n\tcurl_setopt($ch, CURLOPT_POST, 1);\n\n\t// Set the API operation, version, and API signature in the request.\n $nvpreq = http_build_query($arr);\n\n\t// Set the request as a POST FIELD for curl.\n\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $nvpreq);\n\n\t// Get response from the server.\n\t$httpResponse = curl_exec($ch);\n\n\tif(!$httpResponse) {\n $feedback = \"$methodName_ failed: \".curl_error($ch).'('.curl_errno($ch).')';\n return false;\n\t}\n\n\t// Extract the response details.\n $httpParsedResponseAr = array();\n parse_str($httpResponse, $httpParsedResponseAr);\n\n\tif((0 == sizeof($httpParsedResponseAr)) || !array_key_exists('ACK', $httpParsedResponseAr)) {\n $feedback = \"Invalid HTTP Response for POST request($nvpreq) to $API_Endpoint.\";\n return false;\n\t}\n\n return $httpParsedResponseAr;\n}", "title": "" }, { "docid": "cc79eda064ba8eebe22d6e87c76b8d70", "score": "0.5347178", "text": "function postPost(){\n\t$curl = curl_init();\n\t// Set some options - we are passing in a useragent too here \n\t/// curl -X POST http://demo.wp-api.org/wp-json -d '{\"title\":\"My New Title\"}'\n\t\n\t\n\tcurl_setopt($curl, CURLOPT_HTTPHEADER,\n\t\t\tarray(\n\t\t\t\t\t\"Authorization: Basic \" . base64_encode('admin' . \":\" . 'admin')\n\t\t\t));\n\t\n\tcurl_setopt_array($curl, array(\n// \t\t\tCURLOPT_HTTPHEADER => \"Authorization: Basic \" . base64_encode('admin' . \":\" . 'admin'),\n\t\t\tCURLOPT_RETURNTRANSFER => 1,\n\t\t\tCURLOPT_URL => 'http://localhost/zecl_workspace/wp3/wp-json/wp/v2/posts', \n\t\t\tCURLOPT_POST => 1,\n\t\t\tCURLOPT_POSTFIELDS => array(\n\t\t\t\t\t'title' => 'KEKMAN'\n\t\t\t)\n\t));\n\t// Send the request & save response to $resp\n\t$resp = curl_exec($curl);\n\t// Close request to clear up some resources\n\techo 'RESPONSE IS::::';\n\tprint_r($resp);\n\techo 'END.<br/>';\n\tcurl_close($curl);\n}", "title": "" }, { "docid": "da0f611d5ede8efdc14cf6a772a19a5c", "score": "0.5343109", "text": "public function makePostRequest($options = []){\n $response = $this->client->request('POST', $options['endpoint'], [\n 'headers' => [\n 'Authorization' => 'Bearer ' . $this->auth->authenticate(),\n 'Content-Type' => 'application/json',\n ],\n 'json' => $options['body'],\n ]);\n\n return \\json_decode($response->getBody());\n }", "title": "" }, { "docid": "28f2ae46d56c0b032cdee4209d2464e6", "score": "0.5324571", "text": "function post_request($url, $data, $referer='') {\n $data = http_build_query($data);\n\n // parse the given URL\n $url = parse_url($url);\n\n if ($url['scheme'] != 'http') {\n die('Error: Only HTTP request are supported !');\n }\n\n // extract host and path:\n $host = $url['host'];\n $path = $url['path'];\n\n // open a socket connection on port 80 - timeout: 30 sec\n $fp = fsockopen($host, 80, $errno, $errstr, 30);\n\n if ($fp){\n\n // send the request headers:\n fputs($fp, \"POST $path HTTP/1.1\\r\\n\");\n fputs($fp, \"Host: $host\\r\\n\");\n\n if ($referer != '')\n fputs($fp, \"Referer: $referer\\r\\n\");\n\n fputs($fp, \"Content-type: application/x-www-form-urlencoded\\r\\n\");\n fputs($fp, \"Content-length: \". strlen($data) .\"\\r\\n\");\n fputs($fp, \"Connection: close\\r\\n\\r\\n\");\n fputs($fp, $data);\n\n $result = '';\n while(!feof($fp)) {\n // receive the results of the request\n $result .= fgets($fp, 128);\n }\n }\n else {\n return array(\n 'status' => 'err',\n 'error' => \"$errstr ($errno)\"\n );\n }\n\n // close the socket connection:\n fclose($fp);\n\n // split the result header from the content\n $result = explode(\"\\r\\n\\r\\n\", $result, 2);\n\n $header = isset($result[0]) ? $result[0] : '';\n $content = isset($result[1]) ? $result[1] : '';\n\n // return as structured array:\n return array(\n 'status' => 'ok',\n 'header' => $header,\n 'content' => $content\n );\n }", "title": "" }, { "docid": "1286e61df20e07c1e22ac8f7cb4eaf77", "score": "0.531801", "text": "public function execute()\n {\n //$headers = apache_request_headers();\n //$this->_logger->info(json_encode($headers));\n $responseContent = ['success' => false, 'statusCode' => 200];\n $data = $this->getRequest()->getContent();\n $payload = json_decode($data, true);\n if (in_array($payload['type'], ['order.accepted',\n 'order.complete',\n 'order.blocked',\n 'refund.failed',\n 'order.review_opened'])) {\n $type = strtoupper($payload['type']);\n $this->_logger->critical(\"\\n\\nWEBHOOK TYPE - $type\\n\\n\");\n $this->_logger->critical(\"WEBHOOK PAYLOAD \" . $data);\n $responseContent = $this->drConnectorRepositoryFactory->Create()->saveEventRequest($data);\n $this->_logger->info(\"WEBHOOK RESPONSE \" . json_encode($responseContent));\n }\n\n $response = $this->resultFactory->create(ResultFactory::TYPE_JSON);\n $response->setData($responseContent);\n $response->setHttpResponseCode($responseContent['statusCode']);\n return $response;\n }", "title": "" }, { "docid": "b2057c0635cdb00bc0a2013aabc44120", "score": "0.53104347", "text": "private function postRequest()\n {\n // validate data here\n if (!$this->validate()) {\n return;\n }\n\n $this->saveSettings($this->request->post);\n\n $this->session->data['success'] = $this->language->get('misc')['success'];\n http_response_code(302);\n $this->response->addHeader('Location: '.\n str_replace(\n ['&amp;', \"\\n\", \"\\r\"],\n ['&', '', ''],\n $this->url->link(\n 'marketplace/extension',\n 'user_token=' . $this->session->data['user_token'] . '&type=payment',\n true\n )\n ));\n $this->response->setOutput(true);\n }", "title": "" }, { "docid": "537bef59f85dbe3d81317029811a85cf", "score": "0.53092414", "text": "public function postDispatch(Yaf_Request_Abstract $request, Yaf_Response_Abstract $response) {\n }", "title": "" }, { "docid": "18c517096335ecfb7ce1b24137400921", "score": "0.5298741", "text": "protected function _sendRequest($responseMap = array())\n {\n $response = $this->_send($this->getUrl(), 'POST');\n $result = $this->_prepareResponse($response, $responseMap);\n return $result;\n }", "title": "" } ]
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "b8c0de5ee015fb6fa94c027671b1bb49", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n $inters =Interest::findOrFail($id);\n $inters->update($request->all());\n\n return redirect('admin/interests');\n }", "title": "" } ]
[ { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7425105", "text": "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 }", "title": "" }, { "docid": "08694713de71165eda639b86061c2dd3", "score": "0.70612276", "text": "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 }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "64141ab468cf691ac341537b76914234", "score": "0.6896673", "text": "public function updateStream($resource);", "title": "" }, { "docid": "896d8cce99ddf179cc210c3eea9dbc85", "score": "0.6582159", "text": "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 }", "title": "" }, { "docid": "3a9725a518af00151301cd75bfacc9b9", "score": "0.64491373", "text": "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 }", "title": "" }, { "docid": "a240b851b94ee0b2528d8320a97277d9", "score": "0.6346954", "text": "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 }", "title": "" }, { "docid": "1833fc434e2b6d8845470c7071f16b05", "score": "0.62114537", "text": "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 }", "title": "" }, { "docid": "e894dc3cd202ec4ba70765b750e0aef8", "score": "0.6145042", "text": "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}", "title": "" }, { "docid": "0926078283b626a7cbcf1c37921b4293", "score": "0.6119944", "text": "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 }", "title": "" }, { "docid": "d897a40d307670c0a2b7bba76cbe8e66", "score": "0.61128503", "text": "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 }", "title": "" }, { "docid": "7b0c66c5755e566e561fc492c4c6cef4", "score": "0.6099993", "text": "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 }", "title": "" }, { "docid": "78d3c773d3a549209d09486c7233c7b5", "score": "0.6087866", "text": "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "title": "" }, { "docid": "f6f8def0ac709abf6dd95f0dfa35d868", "score": "0.6052593", "text": "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "title": "" }, { "docid": "5334ba4a6880a32048930c6aab0c2e72", "score": "0.6018941", "text": "public function update($path);", "title": "" }, { "docid": "b63b74da9b6109b98718289434f6d2cf", "score": "0.60060275", "text": "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 }", "title": "" }, { "docid": "9f880585b8f772551748224960e1114a", "score": "0.59715486", "text": "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 }", "title": "" }, { "docid": "5fcb6827bd712d2ceee63009eacfae99", "score": "0.5946516", "text": "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 }", "title": "" }, { "docid": "8bf08d6952a759b61a0c0f2a1c1e4e68", "score": "0.59400934", "text": "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}", "title": "" }, { "docid": "eaee54943a52f02e9d836bade5ff0c75", "score": "0.59377414", "text": "public function updateStream($path, $resource, Config $config)\n {\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.5890722", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "3ec460d4bbd98e23f7e38b492a7d650e", "score": "0.5860816", "text": "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 }", "title": "" }, { "docid": "5dd04ceb203f7d30ce1633bff3acba55", "score": "0.5855127", "text": "public function update($data) {}", "title": "" }, { "docid": "5dd04ceb203f7d30ce1633bff3acba55", "score": "0.5855127", "text": "public function update($data) {}", "title": "" }, { "docid": "c8cfc09f393219dca339ad89d530539a", "score": "0.58513457", "text": "public function putStream($resource);", "title": "" }, { "docid": "52b1b7a30044d88d43eaebbf3d0a34c5", "score": "0.5815068", "text": "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 }", "title": "" }, { "docid": "0c03c39e441c2fe392d76d6370ae3ce2", "score": "0.5806887", "text": "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 }", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "3b6c3aaa23b4fb918ebc093545c13dc6", "score": "0.57525045", "text": "public function update($entity);", "title": "" }, { "docid": "7fa7323735ca22c15cfa4866e023dcb7", "score": "0.57337505", "text": "public function setResource($resource);", "title": "" }, { "docid": "68611877d8742448025a8506ebac8d13", "score": "0.5723295", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "title": "" }, { "docid": "cbf8435986892ace3d4dbcfbf62f6804", "score": "0.5714311", "text": "public function isUpdateResource();", "title": "" }, { "docid": "c5002bf927543520ff53e2b1ecdcf2a1", "score": "0.5694472", "text": "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 }", "title": "" }, { "docid": "8cfd45d18cf017442f2ebe0b78d0ddc0", "score": "0.5691319", "text": "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 }", "title": "" }, { "docid": "7e42fedef6bb33a605a9a912390eb1f7", "score": "0.56879413", "text": "public function store($data, Resource $resource);", "title": "" }, { "docid": "8a46c9ac29aec2f0c66f61cd6abd3e2a", "score": "0.5669989", "text": "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 }", "title": "" }, { "docid": "b247170cc6ffc22ce838d918ca6c8698", "score": "0.56565005", "text": "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 }", "title": "" }, { "docid": "c59db4eff4b7b3a830f6e52a576536c0", "score": "0.56505877", "text": "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "title": "" }, { "docid": "9d8e7ab90193c578a62deba30a0b7c06", "score": "0.5646085", "text": "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 }", "title": "" }, { "docid": "56c2b493ee3f6a8e2fe0dddef47259ba", "score": "0.5636683", "text": "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 }", "title": "" }, { "docid": "0e9e693dffd49cdb7c6c20a03ff5efd8", "score": "0.5633498", "text": "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 }", "title": "" }, { "docid": "f4e8f9eee2210f80fc3b28674c2ddfe5", "score": "0.5633378", "text": "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 }", "title": "" }, { "docid": "509df81c3a0f4ec1c8e5ccbf89e5931d", "score": "0.5632906", "text": "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 }", "title": "" }, { "docid": "bbd99fadb318f4a784afaa2bfa18ce90", "score": "0.5628826", "text": "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 }", "title": "" }, { "docid": "8eb8ff4a40a42fb82a98ac5091c3a8b4", "score": "0.56196684", "text": "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 }", "title": "" }, { "docid": "df5d4e0cf5f9405287ea81aaef9d998b", "score": "0.5609126", "text": "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 }", "title": "" }, { "docid": "f646252110cf32a5b2f73f7d1462f12e", "score": "0.5601397", "text": "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 }", "title": "" }, { "docid": "4c98bff950158ea59ef3f361bcba0f67", "score": "0.55944353", "text": "public function update(Qstore $request, $id)\n {\n //\n }", "title": "" }, { "docid": "87604b965f2923e2345b489944eb16ab", "score": "0.5582592", "text": "public function update(IEntity $entity);", "title": "" }, { "docid": "4a6724648abb94db5f42559e4cb12724", "score": "0.5581908", "text": "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 }", "title": "" }, { "docid": "4016847dea9b55e59a4acd18600a30f5", "score": "0.55813426", "text": "public function update($request, $id);", "title": "" }, { "docid": "b1223c0e87edc0874663308fb5757224", "score": "0.5575312", "text": "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}", "title": "" }, { "docid": "07a38b06bdddb569c910315d5b73bb88", "score": "0.55717176", "text": "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 }", "title": "" }, { "docid": "f77c93b62808595a63d9f6f31b1f80e0", "score": "0.55661047", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "title": "" }, { "docid": "c596fddf408b359acc12fe17624de997", "score": "0.55624634", "text": "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 }", "title": "" }, { "docid": "2f2babfe63e8f2a416fc581447274425", "score": "0.55614686", "text": "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 }", "title": "" }, { "docid": "b3d8abec86ebbd8bf61bddeb5110ba38", "score": "0.55608666", "text": "abstract public function put($data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "0af57b3d439623d9ddfbbd2c23e24b1f", "score": "0.55599797", "text": "public function update($id, $data);", "title": "" }, { "docid": "90cec2e0050ecd5971be612c49157c4a", "score": "0.55573726", "text": "public function testUpdateSupplierUsingPUT()\n {\n }", "title": "" }, { "docid": "9c243572303715ea37744cfc162e1a3c", "score": "0.5556878", "text": "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "title": "" }, { "docid": "45212faae39cc84fb7d386bd5ccbacd2", "score": "0.5554201", "text": "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 }", "title": "" }, { "docid": "137b494fd7c0c6a148f3726e66f7b425", "score": "0.5553069", "text": "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 }", "title": "" }, { "docid": "012d802cdd39ad4f48a5d0ab5db49368", "score": "0.55530256", "text": "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "title": "" }, { "docid": "6e27acd0248f696913d7581142ab1983", "score": "0.5543788", "text": "public abstract function update($object);", "title": "" }, { "docid": "9bd927a2b7c7b6455cfb1d5512fcad31", "score": "0.55435944", "text": "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "title": "" }, { "docid": "1756a9bc04ac536de80753840f877cda", "score": "0.55412996", "text": "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 }", "title": "" }, { "docid": "efa4460a1f0a94dc49a588c86ce1c95e", "score": "0.55393505", "text": "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 }", "title": "" }, { "docid": "dbf9ef4add161249e917da82a07a52d8", "score": "0.55368495", "text": "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 }", "title": "" }, { "docid": "c4d2a2fa9101020663f7a49d7cc6ddac", "score": "0.5535236", "text": "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 }", "title": "" }, { "docid": "6e9e95959e33006f578a3965f633d7d6", "score": "0.5534954", "text": "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 }", "title": "" }, { "docid": "294674761e7a90c0f3c7b7cbb244ad5a", "score": "0.55237365", "text": "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 }", "title": "" }, { "docid": "f30d20b4690f862c2d69a1ff92501896", "score": "0.5520468", "text": "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 }", "title": "" }, { "docid": "7f3bb76e340f6d3efbef92bcbabfbbfa", "score": "0.55163723", "text": "public function update($entity)\n {\n \n }", "title": "" }, { "docid": "2f7ad5c7cf9222645876124364520b78", "score": "0.55125296", "text": "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "title": "" }, { "docid": "f83dd36256d02e1f966e7e748f03289a", "score": "0.5511168", "text": "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 }", "title": "" }, { "docid": "0dc3227cc620ff2bfcf02b42a09128f6", "score": "0.5508345", "text": "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 }", "title": "" }, { "docid": "265c7e4e1d9ccb8f2d919846c5c6d0e1", "score": "0.55072427", "text": "public function update($id, $input);", "title": "" }, { "docid": "7cc9fd709d5dbe533ccc58575aee12e8", "score": "0.5502385", "text": "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)); }", "title": "" }, { "docid": "561edf3b1e08c4105ca00f8114894949", "score": "0.5502337", "text": "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}", "title": "" }, { "docid": "95f824afd6b94282d27a0d4cc2cee7bf", "score": "0.5501029", "text": "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 }", "title": "" }, { "docid": "98955a07074c5f9d7b65cb4edac55bd6", "score": "0.54995877", "text": "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 }", "title": "" }, { "docid": "b6c9eceaee979e0c01a261caf5a48b14", "score": "0.54979175", "text": "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 }", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "ebfc2a23b89e301d5a4b298c50156e0d", "score": "0.54949397", "text": "public function update($id);", "title": "" }, { "docid": "9ecc82591ba06b6a36749ed98ac6605d", "score": "0.54946727", "text": "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "title": "" }, { "docid": "48fef9aa4b1db49fbd41de594ae52cd6", "score": "0.5494196", "text": "public function put($path, $data = null);", "title": "" }, { "docid": "a3080528f24f5a6310506fe05f776170", "score": "0.54941916", "text": "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 }", "title": "" }, { "docid": "04652c1da37c7a438475c8d281a1b9fb", "score": "0.54925025", "text": "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 }", "title": "" }, { "docid": "d93eb8ea18e437ad56170f6f49f20674", "score": "0.5491807", "text": "public function update(Entity $entity);", "title": "" }, { "docid": "2a7096bf2a727a86ecc99d0ede5d263f", "score": "0.5483321", "text": "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 }", "title": "" }, { "docid": "61329b7ef8ead3531f1a05acebdc3cd5", "score": "0.5479606", "text": "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}", "title": "" }, { "docid": "b03a96e7dd0db2b1c6ad43b7c2cb89da", "score": "0.5479408", "text": "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 }", "title": "" }, { "docid": "2c0c433441de9cacab9878463a13e7bc", "score": "0.5478678", "text": "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 }", "title": "" }, { "docid": "2ba9e2fb1c6450012bb0ef54decacbcc", "score": "0.54667485", "text": "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 }", "title": "" }, { "docid": "dc09c6048588c09b320af9c0d862323d", "score": "0.5463411", "text": "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 }", "title": "" }, { "docid": "3898cbff513b04923b83b4748c2c7fa8", "score": "0.5460588", "text": "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 }", "title": "" }, { "docid": "5b72ae8e940480dd3b49bab90e39b090", "score": "0.5458525", "text": "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 }", "title": "" } ]
d410a4977c9d8a0f787666b5b0b91b55
Creates a form to delete a medecin entity.
[ { "docid": "446fcd4e748f39906f92bc389b9f83dc", "score": "0.79347515", "text": "private function createDeleteForm(Medecin $medecin)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('medecin_delete', array('login' => $medecin->getLogin()->getLogin())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" } ]
[ { "docid": "11b9dfd9d815b487f9accf40aa3f39ab", "score": "0.7868593", "text": "private function createDeleteForm(InformesPromocion $informesPromocion)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('informespromocion_delete', array('id' => $informesPromocion->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "46837078f4f366b214c73d490b72576d", "score": "0.7504171", "text": "private function createDeleteForm()\n {\n return $this->createFormBuilder()\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "15f47f885a1e5178cf28ef79842c5a0a", "score": "0.72519624", "text": "private function createDeleteForm(RefMotifAbsence $refMotifAbsence) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('refmotifabsence_delete', array('idMotiabse' => $refMotifAbsence->getIdmotiabse())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "06ea6ac52cf01139e461f808b6ad870e", "score": "0.7203618", "text": "public function createDeleteForm(EntityInterface $entity);", "title": "" }, { "docid": "31925663f60aab75dddfeec8f056ade5", "score": "0.71477985", "text": "private function createDeleteForm(MostraProdhimiParashikuar $mostraProdhimiParashikuar)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mostraprodhimiparashikuar_delete', array('id' => $mostraProdhimiParashikuar->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "5d38ccea6e0879b7e06bc9e9172da3ef", "score": "0.714108", "text": "private function createDeleteForm(Imprimante $imprimante)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('imprimante_delete', array('id' => $imprimante->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "1bf7a4bd4c4ec29a42bc1e4e82b05208", "score": "0.71406513", "text": "private function createDeleteForm(Venta $ventum) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('venta_delete', array('id' => $ventum->getId())))\r\n ->setMethod('DELETE')\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "48b1a94165cceb41bcda1a1e0d5dd85d", "score": "0.71361315", "text": "private function createDeleteForm(Membro $membro)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('membro_delete', array('id' => $membro->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "68f56e7a4e876e7ae0c533343bd0b079", "score": "0.70692116", "text": "private function createDeleteForm(Prometeo $prometeo)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('prometeo_delete', array('id' => $prometeo->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "cdadb54304ae95185cf5c1ed2ef2e2ee", "score": "0.7055345", "text": "public function deleteForm() {\n\t\t\trequire 'View/delete_form.php';\n\t\t}", "title": "" }, { "docid": "8e55812f7ad3d2aee36c158dd857c9dd", "score": "0.69964814", "text": "private function createDeleteForm(mechanicien $mechanicien)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mechanicien_delete', array('id' => $mechanicien->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "722d2506011d64715c20c91a7f1fe930", "score": "0.6983035", "text": "private function createDeleteForm(S2240codamb $s2240codamb)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('s2240codamb_delete', array('id' => $s2240codamb->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "effa8aef394efcfce9703a245809f550", "score": "0.6981585", "text": "private function createDeleteForm(RefMetier $refMetier)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('refmetier_delete', array('idMetier' => $refMetier->getIdmetier())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "3419e6a23521cd02f88cd124c21ceca7", "score": "0.6975368", "text": "private function createDeleteForm(FormularioDetalle $formularioDetalle)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('formulariodetalle_delete', array('id' => $formularioDetalle->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "e099f6075570a777c0b4be61c2537949", "score": "0.6957073", "text": "private function createDeleteForm(Insumo $insumo)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('insumo_delete', array('id' => $insumo->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "987169d8d6270d93750d9b34c73241d7", "score": "0.69494843", "text": "private function createDeleteForm(FinancasParcelamento $financasParcelamento)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cadastro_financasparcelamento_delete', array('id' => $financasParcelamento->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "7f9251bef18fcef2f439856dcef85ea4", "score": "0.69145006", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('medecin_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Supprimer', 'attr' => array('class'=>'btn btn-danger btn-block margin-bottom')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "8bf3cc4a3204dd5506034ea08ba8b697", "score": "0.6911692", "text": "private function createDeleteForm(Environnement $environnement)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('environnement_delete', array('id' => $environnement->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c329fd7a5d5113066c16b7f2879eb194", "score": "0.6893173", "text": "private function createDeleteForm(MostraPraisAntofage $mostraPraisAntofage)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mostrapraisantofage_delete', array('id' => $mostraPraisAntofage->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "34e493273da45d31a945c61bc78ec295", "score": "0.68919206", "text": "private function createDeleteForm(MostraKalimiPragut $mostraKalimiPragut)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mostrakalimipragut_delete', array('id' => $mostraKalimiPragut->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "3dde08adae230a123a10849dd160279f", "score": "0.68904305", "text": "private function createDeleteForm( Commande $commande ) {\n\t\t\treturn $this->createFormBuilder()\n\t\t\t\t->setAction(\n\t\t\t\t\t$this->generateUrl( 'commande_delete', array( 'id' => $commande->getId() ) )\n\t\t\t\t)\n\t\t\t\t->setMethod( 'DELETE' )\n\t\t\t\t->getForm();\n\t\t}", "title": "" }, { "docid": "2a53de2a25941135dca334f4634594fb", "score": "0.68760103", "text": "private function createDeleteForm(metuele $metuele)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_metuele_delete', array('id' => $metuele->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "8fcf37bbe348f7e2303af188ebc3e5c8", "score": "0.68745023", "text": "private function createDeleteForm(Humedad $humedad)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('humedad_delete', array('id' => $humedad->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "ef3677d468c810e8ae18852586cd12bf", "score": "0.6870807", "text": "private function createDeleteForm(Ekintzamotadet $ekintzamotadet)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_ekintzamotadet_delete', array('id' => $ekintzamotadet->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "18cb9c84c6f2a0b41b9e6ee7c0a9decb", "score": "0.68672824", "text": "private function createDeleteForm(Visita $visitum)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('visita_delete', array('id' => $visitum->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "92c0498ae11fb0d0b7f580d6a316ca0f", "score": "0.6854347", "text": "private function createDeleteForm(CursoModuloTema $cursoModuloTema)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_gestion_curso_modulo_temas_delete', array('id' => $cursoModuloTema->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "0c5b54e08b899ea9a7f104b71d18e35c", "score": "0.6849786", "text": "private function createDeleteForm(CampeonatoDisciplina $campeonatoDisciplina) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('campeonatodisciplina_delete', array('id' => $campeonatoDisciplina->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "d61c3f04976128a2df0ce686271058ed", "score": "0.683641", "text": "private function createDeleteForm(MostraFenologjia $mostraFenologjium)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mostrafenologjia_delete', array('id' => $mostraFenologjium->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "2a702c578661774ac0352078d02155b3", "score": "0.6835285", "text": "private function createDeleteForm(CvCfgTipoMedidaCautelar $cvCfgTipoMedidaCautelar)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cvcfgtipomedidacautelar_delete', array('id' => $cvCfgTipoMedidaCautelar->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "058de809aa698ab201d92a8509f3bbab", "score": "0.68305445", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n\t\t ->setAction($this->generateUrl('entrega_delete', array('id' => $id)))\n\t\t ->setMethod('DELETE')\n\t\t ->add('submit', 'submit', array('label' => 'Delete'))\n\t\t ->getForm()\n ;\n }", "title": "" }, { "docid": "7f0daf98f0014746645fc53e38c8fdd8", "score": "0.68301344", "text": "private function createDeleteForm(TipoMidia $tipoMidium)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cadastro_tipomidia_delete', array('id' => $tipoMidium->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "9adde70bdb0e386fd972b28014777356", "score": "0.680428", "text": "protected function delForm()\n {\n \n }", "title": "" }, { "docid": "175dd1f55c88e34731b902eeedf7aa28", "score": "0.68036544", "text": "private function createDeleteForm(MpersonalTalonario $mpersonalTalonario)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mpersonaltalonario_delete', array('id' => $mpersonalTalonario->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "36eeea74d65949d786458c3dbe437c7a", "score": "0.6792865", "text": "private function createDeleteForm(CustoEquipamento $custoEquipamento)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cadastro_custoequipamento_delete', array('id' => $custoEquipamento->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "ecad1d8e9229c7cb302d1cc300ff47f1", "score": "0.6787624", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('publicaciones_delete', array('id' => $id)))\n ->setMethod('DELETE')\n /* ->add('submit', 'submit', array(\n 'label' => 'Eliminar',\n 'attr'=>array(\n 'class'=>'btn btn-danger'\n ))) */\n ->getForm()\n ;\n }", "title": "" }, { "docid": "30765bf200f47b3943ab7b2e2eecbf54", "score": "0.67842704", "text": "private function createDeleteForm(Entry $entry)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('entry_delete', array('id' => $entry->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "bc921dfb4c136f7867fe931767bb1d6c", "score": "0.6769002", "text": "private function createDeleteForm(MostraPraisKarpofage $mostraPraisKarpofage)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mostrapraiskarpofage_delete', array('id' => $mostraPraisKarpofage->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "4cc080f665f75cdba4cc007ecbe92857", "score": "0.6759469", "text": "private function createDeleteForm(Herramientas $herramienta) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('herramientas_delete', array('id' => $herramienta->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "ebf83ffe7b73758856d3091ceb998a64", "score": "0.6753942", "text": "private function createDeleteForm(TGeneraAlmacen $tGeneraAlmacen) {\n\t\treturn $this->createFormBuilder()\n\t\t ->setAction($this->generateUrl('almacen_delete', array('id' => $tGeneraAlmacen->getId())))\n\t\t->setMethod('DELETE')\n\t\t->getForm()\n\t\t;\n\t}", "title": "" }, { "docid": "b677a8d485537897d6570c7f91282677", "score": "0.67513615", "text": "private function createDeleteForm(Animateur $animateur)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('animateur_delete', array('id' => $animateur->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "db3d601b9b258ac72cd5e0c1a57d72a1", "score": "0.6749014", "text": "private function createDeleteForm(Hermano $hermano)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_hermano_delete', array('id' => $hermano->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "c9a9c6b5f6341678913b2fa2557f837e", "score": "0.67306376", "text": "public function deleted(Form $form)\n {\n //\n }", "title": "" }, { "docid": "98083ba043a5d384409c68323c49a1d5", "score": "0.672989", "text": "private function createDeleteForm(\\WE\\ReportBundle\\Entity\\CDC $entity) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usuario_delete', array('id' => $entity->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "832e3171863b510b9fa1817ba8eb5722", "score": "0.67270803", "text": "public function deleteTemplateForm(){\n\t\tAccess::denied(\"can_edit_templates\");\n\t\t$provider = new PageAdminTemplate();\n\t\treturn $provider->getDeleteTemplateForm();\n\t}", "title": "" }, { "docid": "caae23281f94132aa2427df06f2fb20a", "score": "0.6725329", "text": "private function createDeleteForm(Famille $famille)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('famille_delete', array('id' => $famille->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "d014f624456725cf99635b9678d7f8e1", "score": "0.6716454", "text": "private function createDeleteForm(Commercant $commercant)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('commercant_delete', array('id' => $commercant->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "9db22e74af03c76de069be0b410c6195", "score": "0.6716", "text": "protected function createComponentDeleteForm()\n\t{\n\t\t$form = new Form;\n\t\t$form->addHidden('id', $this->getParameter('id'));\n\t\t$form->addSubmit('cancel', 'Cancel');\n\t\t$form->addSubmit('delete', 'Delete')->setAttribute('class', 'default');\n\t\t$form->onSuccess[] = $this->deleteFormSubmitted;\n\t\t$form->addProtection('Please submit this form again (security token has expired).');\n\t\treturn $form;\n\t}", "title": "" }, { "docid": "0146b6817a2de40589d8441a96fb11a5", "score": "0.6706574", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('evento_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar', 'attr' => array('class' => 'btn icon-button')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "99c71fc77d3b2755f7303d2ce8d134fd", "score": "0.6697072", "text": "private function createDeleteForm(MyFormation $myFormation)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('myformation_delete', array('id' => $myFormation->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "4dac516da36bd8515c3f1049495e4379", "score": "0.6690375", "text": "private function createDeleteForm(MsvTCAsignacion $msvTCAsignacion)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('msvtcasignacion_delete', array('id' => $msvTCAsignacion->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "f4690c95654eb79fd1493239fb5312dc", "score": "0.66836214", "text": "private function createDeleteForm(Motivo $motivo)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('motivo_delete', ['id' => $motivo->getId()]))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "099bac636d7f2258daec5efafe53575d", "score": "0.6683451", "text": "private function createDeleteForm($id)\n {\n $mensaje = $this->get('translator')->trans('views.recordactions.confirm', array(), 'MWSimpleCrudGeneratorBundle');\n $onclick = 'return confirm(\"'.$mensaje.'\");';\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('alumno_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array(\n 'translation_domain' => 'MWSimpleCrudGeneratorBundle',\n 'label' => 'views.recordactions.delete',\n 'attr' => array(\n 'class' => 'btn btn-danger',\n 'onclick' => $onclick,\n )\n ))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b6daa8a84639110bab382ab071c41466", "score": "0.6674657", "text": "private function createDeleteForm($id) {\n $this->securityControle();\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('absence_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Effacer'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "afc8fb9fa554b1e87d7bf86add2eb6bd", "score": "0.6673528", "text": "private function createDeleteForm(Reclamer $reclamer)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('reclamer_delete', array('idReclamation' => $reclamer->getIdreclamation())))\n ->setMethod('DELETE')\n ->getForm();\n }", "title": "" }, { "docid": "5084d5b53c87bd257c19d08b10570a6b", "score": "0.666641", "text": "private function createDeleteForm(Mesa $mesa)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mesa_delete', array('idmesa' => $mesa->getIdmesa())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "bee71fd26fde4b55daacd5f57b46cd46", "score": "0.66659117", "text": "private function createDeleteForm(Compmsg $compmsg)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('compmsg_delete', array('id' => $compmsg->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b4e4057704fb0963368200e0b3ce101a", "score": "0.66615444", "text": "private function createDeleteForm(Symptoms $symptom)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_symptoms_delete', array('id' => $symptom->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "6520b3a84a6a6965cc838abffbb2785f", "score": "0.6656369", "text": "public function createDeleteForm($id=null)\n {\n return $this->createFormBuilder()\n //->setAction($this->generateUrl('cv_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete','attr' => array('class' => 'submit-delete')))\n ->getForm();\n }", "title": "" }, { "docid": "6b8fd01af750a517e03790e7a48c354c", "score": "0.6653929", "text": "private function createDeleteForm(Graphiste $graphiste)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('graphiste_delete', array('id' => $graphiste->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "964e0d06b1d2272ad53c549315b01e3d", "score": "0.6644906", "text": "private function createDeleteForm(Symptoms $symptom)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('symptoms_delete', array('id' => $symptom->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "3833e79fda9726a57439dc9adc586c4e", "score": "0.66399825", "text": "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('partieA_livre_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Supprimer'))\r\n ->getForm()\r\n ;\r\n }", "title": "" }, { "docid": "ea7d9f41d4bb136432765bb023b44cdd", "score": "0.6635779", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('compramaterial_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar Compra', 'attr'=>array('class'=>'btn btn-danger btn-block')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "016b97bbbde23bf8e703203d20f77a89", "score": "0.66355395", "text": "private function createDeleteForm(Notification_message $notification_message) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('notification_message_delete', array('id' => $notification_message->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "45749fff2722d8a164f6db3a6e35b427", "score": "0.6632976", "text": "private function createDeleteForm(Message $message)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('message_delete', array('id' => $message->getId())))\n ->setMethod('DELETE')\n ->getForm();\n }", "title": "" }, { "docid": "eccc09cb71464812fb1623bd15f8131b", "score": "0.66279745", "text": "private function createDeleteForm(AbgPersona $abgPersona) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('abgpersona_delete', array('id' => $abgPersona->getId())))\r\n ->setMethod('DELETE')\r\n ->getForm();\r\n }", "title": "" }, { "docid": "3d41486343f134684778cf72168bcfc1", "score": "0.66257566", "text": "private function createDeleteForm(CrmCotizacion $cRMCotizacion)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_quotes_delete', array('id' => $cRMCotizacion->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "5b2fb6bd4c41234c8a4a305446469105", "score": "0.6625", "text": "private function createDeleteForm(Message $message)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('message_delete', array('id' => $message->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "1927b4ecabf81c28ce4503c20f41ae10", "score": "0.66189575", "text": "private function createDeleteForm(TramitePrecio $tramitePrecio)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tramiteprecio_delete', array('id' => $tramitePrecio->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "3682c29ae9794a42376245bd21034ecb", "score": "0.66160905", "text": "private function createDeleteForm(UserMedidaCautelar $userMedidaCautelar)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('usermedidacautelar_delete', array('id' => $userMedidaCautelar->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "39eaa7c92db3641584ee66881534156a", "score": "0.66101336", "text": "private function createDeleteForm(PropertyCate $propertyCate)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('propertycate_delete', array('id' => $propertyCate->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "f254d6ca56ddaf15dab83cb6f2330f98", "score": "0.6606109", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('Asignacion_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "b18620f40a40a950a51b05e866539f2b", "score": "0.6588173", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('inscription_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array(\n 'label' => 'Supprimer',\n 'attr' => array(\n 'class' => 'btn'\n )\n ))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "017ce57a22cb04fbea68e85d36c062a8", "score": "0.6585649", "text": "private function createDeleteForm(realizarExamen $realizarExaman)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('realizarexamen_delete', array('id' => $realizarExaman->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "f90615965901dba0289a57d5f490fc9b", "score": "0.6578206", "text": "private function createDeleteForm(Exploitant $exploitant)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('exploitant_delete', array('id' => $exploitant->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "a4ec52680f7d6023a7d3ab4be120d76c", "score": "0.6576369", "text": "private function createDeleteForm(ControleVendas $controleVenda)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_controle_vendas_delete', array('id' => $controleVenda->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "2f147366a183b16cf62175c2165c3623", "score": "0.6574333", "text": "private function createDeleteForm(Anfrage $anfrage)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('anfrage_delete', array('id' => $anfrage->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "4452b49e3d277015bb7ff175c3b19f3a", "score": "0.65669376", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('actas_comentarios_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "eae4924699ba947ca71abc025cac4829", "score": "0.65668225", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder(NULL, array ( 'attr' => array ( 'id' => 'formOGD' ) ) )\n ->setAction($this->generateUrl('courses_delete2', array('id' => $id)))\n ->add('delete', 'submit', array('label' => 'Oui','attr' => array ( 'class' => 'btn btn-color4' )))\n ->add('nodelete', 'submit', array('label' => 'Non','attr' => array ( 'class' => 'btn btn-inverse' )))\n ->getForm() \n ;\n }", "title": "" }, { "docid": "6038141c46d212dc649e9762c65bcd25", "score": "0.6565963", "text": "private function createDeleteForm(TilemgmtMaps $tilemgmtMap)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tilemgmtmaps_delete', array('id' => $tilemgmtMap->getId())))\n ->setMethod('DELETE')\n ->getForm();\n }", "title": "" }, { "docid": "1fff620aff07689535623cf365c55df8", "score": "0.6564669", "text": "public function del() //method untuk delete form masuk\n\t{\n\t\t$u = $this->uri->segment(3);\n\t\t$this->adminModel->delete($u);\n\t\tredirect('admin/viewform');\n\t}", "title": "" }, { "docid": "202d6adcfb3c662241584cacea9ba582", "score": "0.6564288", "text": "private function createDeleteForm(Creneau $creneau)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('creneau_delete', array('id' => $creneau->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "869e99caa6518d3c998b15697a0a438f", "score": "0.65614676", "text": "private function createDeleteForm(Colaboracionmonetaria $colaboracionmonetaria)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('colaboracionmonetaria_delete', array('id' => $colaboracionmonetaria->getIdColaboracion())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "dd46ee1410f584054ba20f8d621e4466", "score": "0.65595174", "text": "private function createDeleteForm(Picture $picture)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('picture_delete', array('id' => $picture->getId())))\n ->setMethod('DELETE')\n ->getForm();\n }", "title": "" }, { "docid": "d877e1668aa99dccd2144f50785f15bb", "score": "0.65567833", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('pedido_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar', 'attr' => array('class' => 'btn btn-danger entity-submit-delete pull-right')))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "9eab51ccff3eb564a87996ef6684c44c", "score": "0.6555462", "text": "private function createDeleteForm(Contratos $contrato)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('cadastro_contratos_delete', array('id' => $contrato->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "d65153f455feb01912c1162266bdba9c", "score": "0.65518004", "text": "private function createDeleteForm($id) {\n\t\treturn $this->createFormBuilder ()->setAction ( $this->generateUrl ( 'Admin_delete', array (\n\t\t\t\t'id' => $id \n\t\t) ) )->setMethod ( 'DELETE' )\n\t\t//->add ( 'submit', 'submit', array (\n\t\t\t//\t'label' => 'Delete' \n\t\t//) \n\t\t//)\n\t\t->getForm ();\n\t}", "title": "" }, { "docid": "695f2190cc5f16d9c3a940db91cd5a94", "score": "0.6549682", "text": "private function eliminarForma($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('pgDviConfiguracion_eliminar', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('boton', 'submit', ['label' => ' ', 'button_class' => 'btn btn-xs glyphicon glyphicon-trash', 'attr' => ['data-toggle' => 'tooltip',\n 'data-placement' => 'bottom',\n 'title' => '',\n 'data-original-title' => 'Eliminar']])\n ->getForm()\n ; \n }", "title": "" }, { "docid": "33f5cb28ca120903be36f67302a2a0cf", "score": "0.65487164", "text": "private function createDeleteForm($id) {\n return $this->createFormBuilder()\n\t\t ->setAction($this->generateUrl('cliente_delete', array('id' => $id)))\n\t\t ->setMethod('DELETE')\n\t\t ->add('submit', 'submit', array('label' => 'Delete'))\n\t\t ->getForm()\n ;\n }", "title": "" }, { "docid": "7249d67db1439bc05504a71af83d301d", "score": "0.65473497", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder(NULL, array ( 'attr' => array ( 'id' => 'formOGD' ) ) )\n ->setAction($this->generateUrl('topic_events_delete_2', array('id' => $id)))\n ->add('delete', 'submit', array('label' => 'Oui','attr' => array ( 'class' => 'btn btn-color3' )))\n ->add('nodelete', 'submit', array('label' => 'Non','attr' => array ( 'class' => 'btn btn-inverse' )))\n ->getForm() \n ;\n }", "title": "" }, { "docid": "dd61ea0312149241f52ffe0ff88ad9c5", "score": "0.6547203", "text": "private function createDeleteForm(InformMenu $informMenu)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_inform_menu_delete', array('id' => $informMenu->getId())))\n ->setMethod('DELETE')\n ->getForm();\n }", "title": "" }, { "docid": "999930090ca3ef66d8bc3fda318a7a8f", "score": "0.6544139", "text": "private function createDeleteForm(OffreVoyage $offreVoyage)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('offrevoyage_delete', array('id' => $offreVoyage->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "10795a0d79e92f1cce2fb03705f2002f", "score": "0.65384907", "text": "public function deleteAction()\n\t{\n\t\t$deleted = false;\n\t\t$message = 'Une erreur est survenue. Votre formation n\\'a pas &eacute;t&eacute; supprim&eacute;.';\n\n\t\t$entity = Curriculum::find( (int) $this->getRequest()->post('id') );\n\t\t$deleted = $entity->delete();\n\n\t\tif ( $deleted ) {\n\t\t\t$message = 'Votre formation a correctement &eacute;t&eacute; supprim&eacute;.';\n\t\t}\n\n\t\t$this->render( View::make( 'curriculums/index' , array(\n\t\t\t'status' => $deleted,\n\t\t\t'message' => $message,\n\t\t\t'title' => 'Mes Formations',\n\t\t\t'entities' => Curriculum::all()\n\t\t) ) );\n\t}", "title": "" }, { "docid": "add27106c2ee23be84bd34448c6ad286", "score": "0.65356165", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('miembro_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "ef42d8584849469002d540cf953162ee", "score": "0.65264374", "text": "private function createDeleteForm(Tcancha $tcancha)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('type_courtes_delete', array('id' => $tcancha->getIdTipo())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "a25e72ae5b10dfb9195e2d8ecae54c99", "score": "0.6522177", "text": "private function createDeleteForm(Demographic $demographic)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('demographic', ['demographic' => $demographic->getId()]))\n ->setMethod('DELETE')\n ->add('submit', SubmitType::class, ['label' => 'Delete'])\n ->getForm();\n }", "title": "" }, { "docid": "0375fe1778eeea962a3e07e73493e6a1", "score": "0.65201646", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mariage_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "1b101fd08bb2bf8aef8544c87086af78", "score": "0.6519835", "text": "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('supprimer_bu', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm();\r\n }", "title": "" }, { "docid": "46b086359cd78bfe3f5e1e1646019486", "score": "0.65143967", "text": "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('empleados_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar'))\n ->getForm()\n ;\n }", "title": "" }, { "docid": "407ae3e40b07d42b6f18c34ad7f4e2f2", "score": "0.6511415", "text": "private function createDeleteForm(Barco $barco)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('barco_delete', array('id' => $barco->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" }, { "docid": "ad575538dcaa5158ab62af164a086a47", "score": "0.6506171", "text": "private function createDeleteForm(Evenement $evenement)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('delete', array('id' => $evenement->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "title": "" } ]
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "58c046d657643e9a24aa4bddd10362e8", "score": "0.0", "text": "public function index()\n\t{\n\t\t$formmanager = SysFormManager::paginate(10);\n\n\t\treturn View::make('dynaflow::formmanager.index', compact('formmanager'));\n\t}", "title": "" } ]
[ { "docid": "d37ee75c4feac8dcd7712d902a70bf82", "score": "0.7607344", "text": "public function listAction()\n {\n \t/**\n \t * @todo return a paginated and ordered list, selecting only valid elements (move valid clause to rowset)\n \t */\n \t$this->view->resources = $this->_table->fetchAll(null, null, 15);\n }", "title": "" }, { "docid": "de80270cda7dc6348112d1542c1c3b6a", "score": "0.7491118", "text": "public function listingAction() {\r\n\r\n\t\t// Search Params\r\n\r\n\t\t// Do the show thingy\r\n\t\t\t// Get an array of friend ids\r\n\t\t\t// Get stuff\r\n\t\t\t// unset($values['show']);\r\n\r\n\t\t// Get blog paginator\r\n\r\n\t\t// Render\r\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\r\n\t}", "title": "" }, { "docid": "7a3b535f1a43231cd882da50772ec5ee", "score": "0.74615455", "text": "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', []);\n $filter = $this->Request()->getParam('filter', []);\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign(['success' => true, 'data' => $result]);\n }", "title": "" }, { "docid": "8e2e0cd6669d378062a560c70954d431", "score": "0.74168706", "text": "public function indexAction(): void\n {\n $limit = (int) $this->Request()->getParam('limit', 1000);\n $offset = (int) $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', []);\n $filter = $this->Request()->getParam('filter', []);\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "title": "" }, { "docid": "c11d55ce36b9b6bf39c0094bfe5d0fd7", "score": "0.7369403", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->config['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'));\n\n //add url parameter as hidden input in the search form\n $urlParameters = $this->getUrlParameters('search');\n $this->request->request->set('extraParameters', $urlParameters);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, array('paginator' => $paginator));\n\n if (method_exists($this, $customMethodName = 'create'.$this->entity['name'].'SearchForm')) {\n $searchForm = $this->{$customMethodName}();\n } else {\n $searchForm = $this->createSearchForm();\n }\n\n return $this->render($this->entity['templates']['list'], array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'searchForm' => $searchForm->createView(),\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n ));\n }", "title": "" }, { "docid": "e008dc293c8e1bdcbf38634c0f67a5d1", "score": "0.7354826", "text": "public function listAction() {\r\n\t\t// Preload info\r\n\r\n\r\n\t\t// Search Params\r\n\r\n\r\n\t\t// Get paginator\r\n\t\t// Render\r\n\t\t$this -> _helper -> content -> setNoRender() -> setEnabled();\r\n\t}", "title": "" }, { "docid": "e508f26cee6b6110b5e315b37bf01715", "score": "0.73057467", "text": "public function actionList()\n {\n $entity = $this->getEntity();\n if (!$entity->canList()) {\n $this->setEntityFlash('error', 'Unable to list {name}.');\n $this->redirectParent();\n }\n $this->render('list', array(\n 'entity' => $entity,\n ));\n }", "title": "" }, { "docid": "109b33b70bf69a93460d062b2f83502f", "score": "0.7226076", "text": "public function index()\n {\n $resources = $this->objStoreResource->getAllResource(auth()->id());\n return view('home.resource.index',compact('resources'));\n }", "title": "" }, { "docid": "68f3dc8f909d1dfb5a37b582d41cec68", "score": "0.719963", "text": "public function index()\n {\n\n extract($this->getResourceNames());\n\n $items = $modelPath::sortable()->paginate();\n \n\n\n return $this->compileView($resourceMultiple . '.index', [$resourceMultiple => $items]);\n }", "title": "" }, { "docid": "97f3caf6ecee75a55fbfadca2b98a829", "score": "0.7182086", "text": "protected function index()\n {\n $categories = Listing::paginate(10);\n return ListingResource::collection($categories);\n }", "title": "" }, { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.713195", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "9ee2301bbe5ddd99bc48b5c1f13682d6", "score": "0.7125178", "text": "public static function list()\n {\n $books = Book::findAll();\n\n // 2. Return/include de la view\n include(__DIR__ . '/../views/books/list.php');\n }", "title": "" }, { "docid": "db3decb51890b80d45fe4f716c97523a", "score": "0.71218187", "text": "public function list() {\n\t\t$this->protectIt( 'read' ); \n\t\tsetTitle( 'Listagem' );\n\t\t\n\t\t// Carrega o grid\n\t\tview( 'grid/grid' );\n\t}", "title": "" }, { "docid": "7a45345cbd9a9dd304c36c4a494e5375", "score": "0.71166694", "text": "public function index()\n {\n return $this->response->paginator(\n $this->filterQuery()->orderBy('id', 'desc')->paginate(request('limit', 10)),\n $this->transformer,\n ['key' => $this->resource_key]\n );\n }", "title": "" }, { "docid": "7ca504ed4a4a2ab91d9d42ce768fbca1", "score": "0.7111673", "text": "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $resources = $em->getRepository('AppBundle:Resource')->findAll();\n\n return $this->render('resource/index.html.twig', array(\n 'resources' => $resources,\n ));\n }", "title": "" }, { "docid": "260bd7b6f859caf980dd2ec389de158f", "score": "0.70988476", "text": "public function listAction()\n {\n $this->users->denyAccessToPage('admin');\n \n $all = $this->users->findAll();\n $status = $this->users->IsAuthenticated();\n \n $this->theme->setTitle(\"Visa alla användare\");\n $this->views->add('users/list-all', [\n 'users' => $all,\n 'title' => \"Visa alla användare\",\n 'status' => $status,\n ], 'main');\n \n $this->views->add('users/users-sidebar', [], 'rsidebar');\n }", "title": "" }, { "docid": "3ff8464571003af8b9340bbfec1e3e20", "score": "0.7088415", "text": "public static function listing()\n {\n echo new \\UMS\\Views\\Standard('listing.phtml');\n }", "title": "" }, { "docid": "24716f78fa1798ecee7344c0553e427b", "score": "0.70843154", "text": "protected function listAction()\n {\n $this->dispatch(EasyAdminEvents::PRE_LIST);\n\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->entity['list']['max_results'], $this->request->query->get('sortField'), $this->request->query->get('sortDirection'), $this->entity['list']['dql_filter']);\n\n $this->dispatch(EasyAdminEvents::POST_LIST, array('paginator' => $paginator));\n\n $parameters = array(\n 'paginator' => $paginator,\n 'fields' => $fields,\n 'delete_form_template' => $this->createDeleteForm($this->entity['name'], '__id__')->createView(),\n );\n\n return $this->render('@VortexginWebBundle/EasyAdmin/list.html.twig', $parameters); \n }", "title": "" }, { "docid": "f882d8455ca2c120342f2b2b1a1c2565", "score": "0.70281464", "text": "public function index()\n {\n $resources = DB::table('admin_resource')\n ->get()\n ->toArray();\n return view('admin.resource.index',compact('resources'));\n }", "title": "" }, { "docid": "ceecc69a5c7cd4cd8ab66be42cbae5ba", "score": "0.6991042", "text": "public function index()\n {\n $this->crud->hasAccessOrFail('list');\n\n $this->data['crud'] = $this->crud;\n $this->data['title'] = ucfirst($this->crud->entity_name_plural);\n\n // get all entries if AJAX is not enabled\n if (! $this->data['crud']->ajaxTable()) {\n $this->data['entries'] = $this->data['crud']->getEntries();\n }\n\n // load the view from /resources/views/vendor/backpack/crud/ if it exists, otherwise load the one in the package\n return view($this->crud->getListView(), $this->data);\n\t\t//return view('bcrud::list', $this->data);\n }", "title": "" }, { "docid": "a7c37722ff451d4806db867c3084436e", "score": "0.6983112", "text": "public function listing() {\r\n\r\n\t\t// Get the list of incidents from the database\r\n\t\t$incidents = $this->incident_model->list_all();\r\n\r\n\t\t// Prepare the data for the page\r\n\t\t$data = array(\r\n\t\t\t\t'title' => 'Listing of Incidents',\r\n\t\t\t\t'view' => 'incident/list',\r\n\t\t\t\t'incident_listing' => $this->incident_model->list_all()\r\n\t\t\t);\r\n\r\n\t\t// Load the view\r\n\t\t$this->load->view('main_template', $data);\r\n\r\n\t}", "title": "" }, { "docid": "36e3954f88638a9532a787d2cc444a30", "score": "0.6979115", "text": "function listAction() {\n $existing_api = _factory('sitemin_api_model_api')->get_gateway();\n $rs['api'] = $existing_api;\n $rs['_token'] = defaultHelper::page_hash_set('api,list');\n $rs['tpl'] = '/sitemin/api/view/_api_list.phtml';\n $rs['TITLE'] = 'API LIST';\n return array('view' => '/sitemin/view/index.phtml', 'data' => array('rs' => $rs));\n }", "title": "" }, { "docid": "970e35836b9768276ac32a7f819d569f", "score": "0.6969622", "text": "public function index()\n {\n return \"Here is the listing page.\";\n }", "title": "" }, { "docid": "e04c1be5ce440db436266eabe923599a", "score": "0.6958369", "text": "public function index() {\n\t\tSession::set(\"list_refer\", $_SERVER['REQUEST_URI']);\n\t\t$this->set_order();\n\t\t$this->display_action_name = 'List Items';\n\t\t$this->all_rows = $this->model->tree();\n\n\t\tif(!$this->all_rows) $this->all_rows = array();\n\t\t$this->filter_block_partial = $this->render_partial(\"filter_block\");\n\t\t$this->list = $this->render_partial(\"list\");\n\t}", "title": "" }, { "docid": "a4e3ca4a3d5bf61db50faf86a8841ea7", "score": "0.6958334", "text": "public function index()\n {\n return view('admin::resource.index');\n }", "title": "" }, { "docid": "61e25f17bfcad7555516a67f6d445d1a", "score": "0.6940597", "text": "public function indexAction()\n {\n $this->listentriesAction();\n }", "title": "" }, { "docid": "7f07ef0085f42180361c2986a0c246bc", "score": "0.6919749", "text": "public function index () {\n\t\t$this->showAll();\n\t}", "title": "" }, { "docid": "aa6c01f133b8fa50888c5287d810e174", "score": "0.69041467", "text": "public static function list() {\n $books = Book::findAll();\n\n // 2. Return/include de la view\n include( __DIR__ . '/../views/books/list.php');\n\n }", "title": "" }, { "docid": "cdbe57e5f68037a7d673227250684866", "score": "0.68880165", "text": "public function index()\n {\n return SpecializationResource::collection(Spec::paginate(10));\n }", "title": "" }, { "docid": "ce119cc9f5dd3ee1904e1fd10c2e5f4f", "score": "0.68733615", "text": "public function _list()\n\t{\n\t\t_root::getRequest()->setAction('list');\n\n\t\t$oAwardModel = new model_award();\n\t\t$tAwards = $oAwardModel->findAll();\n\n\t\t$oView = new _view('awards::list');\n\t\t$oView->tAwards = $tAwards;\n\n\t\t$this->oLayout->add('work', $oView);\n\t}", "title": "" }, { "docid": "5cbfcb7b405ab167a69ee36809e4e4c6", "score": "0.687026", "text": "public function index()\n {\n // Get items\n // $items = Item::orderBy('type', 'asc')->paginate(5);\n $items = Item::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of items as a resource\n return (ItemResource::collection($items))->response()->setStatusCode(200);\n }", "title": "" }, { "docid": "3880db888810873a15926adf0aeab153", "score": "0.68675166", "text": "public function action_list()\n {\n $model = Request::$current->param('model');\n $this->template->main->content = Model_Annex_Content::show_list($model);\n }", "title": "" }, { "docid": "0c8e64e28536e6fe176ead46e1742dc1", "score": "0.6852622", "text": "public function list()\n\t{\n\t\tglobal $venus;\n\t\t$this->prepare_items();\n\n\t\t$venus->plugins->run($this->prefix . 'list', $this);\n\t}", "title": "" }, { "docid": "fdd2aa08ee39ff613dfb2d2d853d735e", "score": "0.683835", "text": "public function index()\n {\n $this->checkPermission('shg_management_view');\n try {\n $data = $this->service->viewAllPartOne();\n $data = ShgListingResource::collection($data);\n\n return $this->respondWithSuccess($data);\n } catch (\\Throwable $th) {\n\n return $this->respondWithError($th);\n }\n }", "title": "" }, { "docid": "e5f507dbbe2411d3908a15f2210bc3ea", "score": "0.6836425", "text": "public function listAction() {\n $this->view->books = R::getAll('SELECT * FROM book WHERE title = :title', [':title' => 'Nodejs']);\n\n $this->render('list');\n }", "title": "" }, { "docid": "f29709817ec3db2d44ad77fdc0a55269", "score": "0.6829548", "text": "public function _index()\n\t{\n\t\t$this->_list();\n\t}", "title": "" }, { "docid": "4b8e52b6fdf81afdda958487f24d56b3", "score": "0.68279797", "text": "public function listAction()\n {\n $catalog = $this->container->get('catalog');\n\n $book_list = $catalog->listBooks();\n\n return [\n 'list' => $book_list,\n ];\n }", "title": "" }, { "docid": "0745910a7b8ed31535e75cefd27b7b8c", "score": "0.6801322", "text": "public function showAllAction()\n {\n //find all recipes in database\n $recipes = $this->getDoctrine()->getRepository('AppBundle:Recipe')->findAll();\n\n // show all recipes as links(it is set in Twig)\n return ['recipes' => $recipes];\n }", "title": "" }, { "docid": "41b8938878fc471b8e628e34cd112379", "score": "0.68005955", "text": "public function index(): ListResourceCollection\n {\n return new ListResourceCollection(TodoList::paginate(10));\n }", "title": "" }, { "docid": "d3a3617a0e0a9e2771655b1532f470c2", "score": "0.6792327", "text": "public function index()\n\t{\n\t\treturn BookResource::collection(Book::paginate(10));\n\t\t\n\t}", "title": "" }, { "docid": "6040a050b581e9888004ec972d7e09a0", "score": "0.6788249", "text": "public function listentriesAction()\n {\n // use app/MyFirstBlog/_templates/list.phtml for viewing\n $viewAllEntries = new View('list.phtml');\n $entries = $this->em->entry->getAll();\n\n // assign data to the template\n $viewAllEntries->assign('entries', $entries);\n\n echo $this->loadMainView($viewAllEntries);\n }", "title": "" }, { "docid": "8a85663335231f3143dcbf588b19dbfa", "score": "0.67871946", "text": "public function index()\n {\n $substances = $this->model->paginate();\n return $this->getView(__FUNCTION__ , compact('substances'));\n }", "title": "" }, { "docid": "1d602c01714319f06611ab4c66abd251", "score": "0.6786255", "text": "public function index()\n {\n //Retrieve all podcasts, ordered in descending order by their id value\n $podcasts = Podcast::orderBy('id', 'desc')->paginate(15);\n //Return the list of podcasts as a collection of PodcastResource instances\n return PodcastResource::collection($podcasts);\n }", "title": "" }, { "docid": "49c1d78d94eec140cbd39c5a0665f7cf", "score": "0.67806053", "text": "public function index()\n {\n // Get modules\n $modules = Module::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of modules as a resource\n return ModuleResource::collection($modules);\n }", "title": "" }, { "docid": "b8bbd5c4b2b076654ec4820cf0f4f302", "score": "0.67777556", "text": "public function index()\n {\n return ResponseHelper::findSuccess(\n 'Items',\n ItemResource::collection(Item::all())\n );\n }", "title": "" }, { "docid": "d73771ef09d730c6579f2a991515d849", "score": "0.67710793", "text": "public function index()\n {\n $loans = Loan::paginate();\n return LoanResource::collection($loans);\n }", "title": "" }, { "docid": "cdf88fbb286dc19c1ad1e099d34c24cd", "score": "0.67550325", "text": "public function indexAction() {\n $this->view->headTitle('List Student');\n\n $currentPageNumber = $this->getParam(\"page\", 1);\n $itemPerPage = $this->getParam(\"size\", 3);\n\n $paginator = $this->__factoryPaginator($currentPageNumber, $itemPerPage);\n $this->view->listStudents = $paginator;\n }", "title": "" }, { "docid": "a558183236ee0a06301b5345bfbe3fe1", "score": "0.67493373", "text": "public function index()\n {\n $companies = Company::paginate();\n\n return $this->resp->ok(eRespCode::C_LISTED_200_00, new CompaniesPaginationResourceCollection($companies));\n }", "title": "" }, { "docid": "79a7d6352cec8f118d68b28508fa7a97", "score": "0.6742735", "text": "public function index()\n {\n $lists = user()->lists()->get();\n\n return ListResource::collection($lists);\n }", "title": "" }, { "docid": "5f95d2756a5e123a83fb7c11ebb43128", "score": "0.6726971", "text": "public function showList()\n\t{\n\t\tinclude(\"/m23/inc/i18n/\".$GLOBALS[\"m23_language\"].\"/m23base.php\");\n\t\tHTML_showTableHeading($I18N_objectStorageObjectName, $I18N_description, $I18N_status/*, $I18N_action*/);\n\t\tforeach ($this->foundObjects as $object)\n\t\t\tHTML_showTableRow($this->getCOSName($object), $this->getCOSDescription($object), $this->getCOSStatusHumanReadable($object)/*, $this->getCOSStatus($object)*/);\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "aa4f8e62dc57e3f9dd552a60b0f54091", "score": "0.67116815", "text": "public function ListView()\n\t{\n\t\t$this->Render();\n\t}", "title": "" }, { "docid": "a69ac66edc8a557759a001c94242c947", "score": "0.6707937", "text": "function list() {\n global $app;\n $sth = $this->PDO->prepare(\"SELECT * FROM person\");\n $sth->execute();\n $result = $sth->fetchAll(\\PDO::FETCH_ASSOC);\n $app->render('default.php', [\"data\" => $result], 200);\n }", "title": "" }, { "docid": "7199baaacb728985be1992dbc56397e3", "score": "0.6706126", "text": "public function getIndex()\r\n { \r\n $response = $this->modelService->getAll();\r\n\r\n //return resources listing view\r\n return view(\\OogleeUConfig::get('config.user_index.index'), compact('response'));\r\n }", "title": "" }, { "docid": "61a33e299a8771fe4e3edd28a88e59b8", "score": "0.6694361", "text": "public function index()\n {\n $studentRecords = $this->studentRepository->getAllStudentRecords();\n return StudentResource::collection($studentRecords);\n }", "title": "" }, { "docid": "d79dbba2d57614ef830362a19c63a970", "score": "0.66864055", "text": "public function index()\n {\n return $this->view('list', [\n 'elements' => $this->service->index()\n ]);\n }", "title": "" }, { "docid": "f87e4c930a716211a968b3d9cc7f28cb", "score": "0.6679537", "text": "public function listAction()\n {\n $data = array(\n 'red',\n 'green',\n 'blue',\n 'yellow'\n );\n\n $request = $this->getRequest();\n $acceptHeader = $request->getHeader('Accept');\n\n $this->view->assign(\n array(\n 'data' => $data\n )\n );\n }", "title": "" }, { "docid": "daba699beaeef91359ed7b10313414c0", "score": "0.6675206", "text": "public function index()\n {\n $this->checkPermission(\"admin_permission_management\");\n $items = $this->service->getAll();\n\n $items = ApiResource::collection($items);\n\n return $this->respondWithSuccess($items);\n }", "title": "" }, { "docid": "5278e85997fa12c693ce5b7a9a5f2e24", "score": "0.6659221", "text": "public function index() {\n\t\treturn ClientResource::collection(Client::paginate(15));\n\t}", "title": "" }, { "docid": "601280f6c7a8fe1284080c1c22a3e447", "score": "0.6654493", "text": "public function index()\n {\n // Get Accounts\n $accounts = Account::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of Accounts as a resource\n return AccountResource::collection($accounts);\n }", "title": "" }, { "docid": "aa14178a7d612bc110499d18b35cfe1c", "score": "0.6653656", "text": "public function index()\n {\n return TodoResource::collection($this->todoRepository->findAll());\n }", "title": "" }, { "docid": "da0cc4a612f27e870e1a151346a2b1e3", "score": "0.66501856", "text": "public function index()\n {\n $sub_brand_details = SubBrandDetails::paginate(10);\n return SubBrandDetailsResource::collection($sub_brand_details);\n }", "title": "" }, { "docid": "d1c36ec734b04a00b0316be8705fdc95", "score": "0.6647826", "text": "public function defaultAction()\n {\n $this->listing();\n }", "title": "" }, { "docid": "d9dcf3302214d3795a06e4d23822d158", "score": "0.66456574", "text": "public function index()\n {\n $this->setDefaultData();\n $this->paginate = [\n 'contain' => ['RegisteredUsers', 'Listings'],\n 'conditions' => ['RegisteredUsers.username'\n => $this->Auth->user()['username']]\n ];\n $sellingLists = $this->paginate($this->SellingLists);\n\n $this->set(compact('sellingLists'));\n $this->set('_serialize', ['sellingLists']);\n }", "title": "" }, { "docid": "875081e376ab728c3750171aff9d42f9", "score": "0.6645129", "text": "public function index()\n {\n $items = $this->item->paginate(10);\n\n return $this->response->view('admin.item.index', [\n 'items' => $items\n ]);\n }", "title": "" }, { "docid": "e2eacd814cad9b8205ce83c08f3b5e18", "score": "0.6644318", "text": "public function showAllAction()\n {\n $title = \"Product overview\";\n $page = $this->app->page;\n $db = $this->app->db;\n\n $this->connection();\n $sql = \"SELECT * FROM product;\";\n $res = $db->executeFetchAll($sql);\n\n $data = [\n \"res\" => $res,\n \"check\" => \"check\"\n ];\n\n // $page->add(\"flash\", [], \"hej\");\n $page->add(\"products/header\");\n $page->add(\"products/show-all\", $data);\n\n return $page->render([\n \"title\" => $title,\n ]);\n }", "title": "" }, { "docid": "7ba8d3b39da88e11faeb12313b1810c2", "score": "0.6642726", "text": "public function index()\n {\n return view('pages.listing-list', [ 'listings' => Listing::all() ]);\n }", "title": "" }, { "docid": "2e266895b57f5ca532a4517799527c81", "score": "0.6637523", "text": "public function index()\n {\n $this->authorize('viewAny', Article::class);\n return ArticleResource::collection(Article::paginate(10));\n }", "title": "" }, { "docid": "c7312e7e8966df50b49658cf582ce6ec", "score": "0.66348624", "text": "public function index()\n {\n return ScreenResource::collection(Screen::orderby('created_at','desc')->paginate(10));\n }", "title": "" }, { "docid": "ddd89648877f652ca4fa01f7cfa10b0c", "score": "0.6634571", "text": "public function index()\n {\n return \\response()->json($this->listing->all());\n }", "title": "" }, { "docid": "db782cdc73caf0645a9287f4d968586b", "score": "0.66271836", "text": "public function actionList()\n {\n $dataProvider = Event::getEventsForView();\n return $this->render('list', ['listDataProvider' => $dataProvider]);\n }", "title": "" }, { "docid": "9d24fae63c3b76b647f11d2a4ee6986d", "score": "0.6619498", "text": "public function listAction() {\n $this->layout('layout/json');\n\n $sSystemKey = $_REQUEST['systemkey'];\n\n # get list label from query\n $sLang = 'en_US';\n if(isset($_REQUEST['lang'])) {\n $sLang = $_REQUEST['lang'];\n }\n\n // translating system\n $translator = new Translator();\n $aLangs = ['en_US','de_DE'];\n foreach($aLangs as $sLoadLang) {\n if(file_exists(__DIR__.'/../../../oneplace-translation/language/'.$sLoadLang.'.mo')) {\n $translator->addTranslationFile('gettext', __DIR__.'/../../../oneplace-translation/language/'.$sLang.'.mo', 'skeleton', $sLoadLang);\n }\n }\n\n $translator->setLocale($sLang);\n\n try {\n $oInstanceTbl = CoreController::$oServiceManager->get(\\OnePlace\\Instance\\Model\\InstanceTable::class);\n } catch(\\RuntimeException $e) {\n echo 'could not load instances';\n return false;\n }\n\n try {\n $oInstance = $oInstanceTbl->getSingle($sSystemKey,'instance_apikey');\n } catch(\\RuntimeException $e) {\n echo 'could not find your instance sorry';\n return false;\n }\n\n try {\n $oTag = CoreController::$aCoreTables['core-tag']->select(['tag_key'=>'category']);\n $oTag = $oTag->current();\n } catch(\\RuntimeException $e) {\n echo 'could not load tag';\n return false;\n }\n\n try {\n $oEntityTag = CoreController::$aCoreTables['core-entity-tag']->select(['tag_idfs'=>$oTag->Tag_ID,'entity_form_idfs'=>'article-single','tag_value'=>'Store Item']);\n $oEntityTag = $oEntityTag->current();\n } catch(\\RuntimeException $e) {\n echo 'could not load entity tag';\n return false;\n }\n\n try {\n $oArticleTbl = CoreController::$oServiceManager->get(\\OnePlace\\Article\\Model\\ArticleTable::class);\n $oItemsDB = $oArticleTbl->fetchAll(false,['multi_tag'=>$oEntityTag->Entitytag_ID]);\n } catch(\\RuntimeException $e) {\n echo 'could not load article';\n return false;\n }\n\n try {\n $aFields = $this->getFormFields('article-single');\n $oItemsDB = $oArticleTbl->fetchAll(false,['multi_tag'=>$oEntityTag->Entitytag_ID]);\n } catch(\\RuntimeException $e) {\n echo 'could not load article';\n return false;\n }\n\n $aItems = [];\n\n if(count($oItemsDB) > 0) {\n foreach($oItemsDB as $oItem) {\n $aPublicItem = ['id'=>$oItem->getID()];\n # add all fields to item\n foreach($aFields as $oField) {\n switch($oField->type) {\n case 'multiselect':\n # get selected\n $oTags = $oItem->getMultiSelectField($oField->fieldkey);\n $aTags = [];\n foreach($oTags as $oTag) {\n $aTags[] = ['id'=>$oTag->id,'label'=>$translator->translate($oTag->text,'skeleton',$sLang)];\n }\n $aPublicItem[$oField->fieldkey] = $aTags;\n break;\n case 'select':\n # get selected\n $oTag = $oItem->getSelectField($oField->fieldkey);\n if($oTag) {\n if (property_exists($oTag, 'tag_value')) {\n $aPublicItem[$oField->fieldkey] = ['id' => $oTag->id, 'label' => $translator->translate($oTag->tag_value,'skeleton',$sLang)];\n } else {\n $aPublicItem[$oField->fieldkey] = ['id' => $oTag->getID(), 'label' => $translator->translate($oTag->getLabel(),'skeleton',$sLang)];\n }\n }\n break;\n case 'text':\n case 'date':\n case 'textarea':\n case 'currency':\n $aPublicItem[$oField->fieldkey] = $translator->translate($oItem->getTextField($oField->fieldkey),'skeleton',$sLang);\n break;\n default:\n break;\n }\n }\n $aItems[] = $aPublicItem;\n }\n }\n\n $aReturn = ['state'=>'success','message'=>'welcome '.$oInstance->getLabel(),'category'=>$oEntityTag->tag_value,'items'=>$aItems];\n echo json_encode($aReturn);\n\n return false;\n }", "title": "" }, { "docid": "fbeb130c8eeb567e7fad3c7305600c0c", "score": "0.66142017", "text": "public function index()\n {\n $this->authorize('list', Client::class);\n\n return $this->ok($this->repo->paginate($this->request->all()));\n }", "title": "" }, { "docid": "dd6a998d3bb458c37ae44d961b97d40b", "score": "0.6612911", "text": "public function index()\n {\n //get contacts \n $contacts = Contacts::all();\n\n //return collection of contacts as a resource\n return ContactsResource::collection($contacts);\n }", "title": "" }, { "docid": "cb2a32c859addaec7f6f5ede08ff0730", "score": "0.66128945", "text": "public function index()\n {\n $responds = Respond::all();\n return RespondForListResource::collection($responds);\n }", "title": "" }, { "docid": "1a54ebc6660394a2c42a760823c26a75", "score": "0.66118765", "text": "public function index()\n {\n //Get works\n $works = Work::paginate(15);\n \n //Return collection of works as a resource\n return WorkResource::collection($works);\n }", "title": "" }, { "docid": "5c88cf68eb91b67ee61edf19f3f2ae11", "score": "0.6608679", "text": "public function index()\n {\n $inven = Inventory::paginate(15);\n\n return InventoryResource::collection($inven);\n }", "title": "" }, { "docid": "68fd86bd147479dce20ee02a8707173a", "score": "0.6592657", "text": "public function index()\n {\n //\n return CardResource::collection($this->cardRepo->getAll());\n }", "title": "" }, { "docid": "42a6f7bb31023e697bf6d8fe877d4585", "score": "0.658499", "text": "public function index()\n {\n $items = Item::all();\n return $this->sendData('list', $items, 200);\n }", "title": "" }, { "docid": "209ce25a3fdacd16972a8a7301eac167", "score": "0.6584275", "text": "public function listAction()\n {\n $entities = $this->get('trip.repository')->findActive(5);\n\n return $this->render('TripBundle:Trip:list_block.html.twig', array(\n 'entities' => $entities,\n 'list_length' => 5,\n ));\n }", "title": "" }, { "docid": "c6efa0ee8e5b46e919fc3043bad53b51", "score": "0.65816754", "text": "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate());\n }", "title": "" }, { "docid": "28b9b7b045b952a1e51b3daabb3db025", "score": "0.65804577", "text": "function Index()\n\t\t{\n\t\t\t$this->DefaultParameters();\n//\t\t\tif (!isset($this->request->get['parent_id'])) $this->request->get['parent_id'] = '0';\n\t\t\t\r\n\t\t\t$parameters = array('num_rows');\r\n\t\t\t$this->data[$this->name] = $this->controller_model->ListItemsPaged($this->request->get, '', $parameters);\r\n\t\t\t$this->data['num_rows'] = $parameters['num_rows'];\n\t\t}", "title": "" }, { "docid": "679aeb0a886968964597db4d52db9f05", "score": "0.65769154", "text": "public function action_list() {\n\t\tKohana::$log->add(Kohana::DEBUG,'Executing Controller_Admin_Photo::action_list');\n\n\t\t// Build request\n\t\t$query = DB::select();\n\n\t\tif(isset($_POST['terms']))\n\t\t{\n\t\t\t$query->where('title','like',\"%\".$_POST['terms'].\"%\");\n\t\t\t$query->or_where('subtitle','like',\"%\".$_POST['terms'].\"%\");\n\t\t}\n\n\t\t$photos = Sprig::factory('photo')->load($query, FALSE);\n\n\n\t\tif(Request::$is_ajax)\n\t\t{\n\t\t\t// return a json encoded HTML table\n $this->request->response = json_encode(\n\t\t\t\tView::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n ->render()\n );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// return the full page\n\t\t\t$this->template->content = View::factory('admin/photo/list')\n\t\t\t\t->set('tbody', View::factory('admin/photo/list_tbody')\n\t\t\t\t\t->bind('photos', $photos)\n\t\t\t\t);\n\t\t}\n\t}", "title": "" }, { "docid": "bb496e1f3376022c7114e22d5ed48267", "score": "0.6573981", "text": "public function index()\n\t{\n\t\t$this->getItem();\n\t}", "title": "" }, { "docid": "e99878c1a0eff5bcf7bf12ed5c8ef9d5", "score": "0.65716714", "text": "public function show()\n {\n return view('listing::show');\n }", "title": "" }, { "docid": "423da9caffc6ac8f568bcebdebf9afbe", "score": "0.65662223", "text": "public function listAction()\n {\n $this->view->users = UserCatalog::getInstance()->getActives();\n $this->setTitle('List the User');\n }", "title": "" }, { "docid": "2d21f0bc716b4c176e994f7636cae49f", "score": "0.65646654", "text": "public function index()\n {\n $branches = Branch::paginate(15);\n return BranchResource::collection($branches);\n }", "title": "" }, { "docid": "c192cad1748d0fe11000b8d2063a908e", "score": "0.65643096", "text": "public function index()\n {\n return $this->view('lists');\n }", "title": "" }, { "docid": "367f38d2314314134a538ae223f4cd5d", "score": "0.6560926", "text": "public function index () {\n permiss ( 'user.list' );\n\n $data = $this->entity\n ->with(['role'])\n ->where('id', '<>', \\Auth::id())\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "title": "" }, { "docid": "32b26e83b4a0ac1871cecd5a10eb2445", "score": "0.65592414", "text": "public function actionList()\r\n {\r\n $option = $this->getParams();\r\n $table = $this->getTableName($option);\r\n $model = $this->model($table);\r\n\r\n $list = $model->all(\r\n function ($ar) use ($table, $model, $option) {\r\n return $model->handleActiveRecord($ar, $table, $option);\r\n },\r\n null,\r\n Yii::$app->params['use_cache']\r\n );\r\n\r\n $this->success($list);\r\n }", "title": "" }, { "docid": "04afb7d77b84ccf4a4dd5ac14fa2c226", "score": "0.6552952", "text": "public function index()\n { \n $this->paginate = [\n 'order' => ['Firms.name' => 'ASC'],\n 'maxLimit' => 20\n ];\n $firms = $this->paginate($this->Firms);\n\n $this->set(compact('firms'));\n }", "title": "" }, { "docid": "6463720c82b75c6c9ffdb8fa297632ea", "score": "0.65498865", "text": "public function index()\n\t{\n $inventaries = Inventary::orderBy('updated_at', 'desc')->paginate(12);\n return view(self::$prefixView . 'lists', compact('inventaries'));\n\t}", "title": "" }, { "docid": "04cfd6b456f88347b94d80eedaf2f138", "score": "0.65456504", "text": "public function index()\n {\n return new FormatResourceCollection(Format::paginate(12));\n }", "title": "" }, { "docid": "4b7799b0d4a4b471dbc995e613462306", "score": "0.6540187", "text": "public function listAction()\n {\n return new Response(\n json_encode([\n [\n 'id' => 1,\n 'title' => 'First Post on Vox',\n 'author' => 'Mario Rossi',\n 'author_id' => 1,\n 'excerpt' => \"Here we are! Finally this is my first post on Vox and I am so happy that...\",\n 'content' => \"Here we are! Finally this is my first post on Vox and I am so happy that this is my lorem ipsum bla bla bla bla!\",\n 'date' => \"08/01/2015\"\n ],\n [\n 'id' => 2,\n 'title' => 'And yes, this is my second post!',\n 'author' => 'Lukas Schneider',\n 'author_id' => 2,\n 'excerpt' => \"Well this is already my second post and so you already know that...\",\n 'content' => \"Well this is already my second post and so you already know that, in terms of being my second post,\n this is exactly what is says it is: my second, incredibly well written and fantastimagically published post!\",\n 'date' => \"09/02/2015\"\n ]\n ]),\n 200,\n 'application/json'\n );\n }", "title": "" }, { "docid": "7bf076a0c3e59596e2f2d0bcbed69f85", "score": "0.65379655", "text": "public function index()\n {\n $artigos = Artigo::paginate(15);\n return ArtigoResource::collection($artigos);\n }", "title": "" }, { "docid": "3ce1999f8313263a55f4c0a4a6d107fc", "score": "0.6527433", "text": "public function index()\n\t{\n\t\tif(!$this->permission->has_permission(\"specialization_viewall\")){\n\t\t\techo \"No permissions\";\n\t\t\treturn;\n\t\t}\n\n\t\t// Get all specialization from db\n\t\t$specialization = $this->SpecializationModel->GetAll();\n\n\t\t// Define data array\n\t\t$data = array(\n\t\t\t\"specialization_list\" => $specialization\n\t\t);\n\n\t\t// Load specialization view\n\t\t$this->layout->view('manage_details/specialization/specialization',$data);\n\t}", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "37171947214224489a9ea88290a99d00", "score": "0.652515", "text": "public function index()\n {\n return view(self::$prefixView.'list');\n }", "title": "" }, { "docid": "0e0fe48e1d16e1503e2b168a9374594b", "score": "0.6524685", "text": "public function index()\n {\n $todos = $this->todo->fetchPaginated();\n\n if ($todos->count() > 0) {\n return $this->respondWithPaginatedData($todos);\n }\n return $this->respondWithNoContent();\n }", "title": "" }, { "docid": "c21960757730e605b84ad99c7f97a9e0", "score": "0.6521291", "text": "public function index() {\n\n // 1. Récupérer les cars\n\n $cars = $this->container->getCarManager()->findAll();\n\n // 2. Afficher les cars\n echo $this->container->getTwig()->render('cars/index.html.twig', [\n 'cars' => $cars\n ]);\n }", "title": "" }, { "docid": "b1dec5f0dac45e2b14cc0f57d1289acb", "score": "0.65199256", "text": "public function index()\n {\n //\n\t\t\t\t// $resources = Resource::all();\n\t\t\t\t// $resources = $resources->sortByDesc('creation_date');\n\t\t\t\t// return response()->json($resources->values()->all());\n\n\t\t\t\treturn response()->json(Resource::orderBy('creation_date', 'desc')->get());\n }", "title": "" } ]
67c6feeefa7d7524f09b6d2e449bf252
Show the form for editing the specified SynonymAntonymController.
[ { "docid": "ed1e6ed6f60bebbe51ff3af617ec1ffa", "score": "0.68668795", "text": "public function edit($id)\n {\n $synonymAntonymController = $this->synonymAntonymControllerRepository->findWithoutFail($id);\n\n if (empty($synonymAntonymController)) {\n Flash::error('Synonym Antonym Controller not found');\n\n return redirect(route('synonymAntonymControllers.index'));\n }\n\n return view('synonym_antonym_controllers.edit')->with('synonymAntonymController', $synonymAntonymController);\n }", "title": "" } ]
[ { "docid": "08b4d3d882be9ce5cd3a2421d6ca5b1b", "score": "0.6064744", "text": "public function edit()\n {\n return view('adminusermanager::edit');\n }", "title": "" }, { "docid": "6f4bc12f25b921cffdab1f902578cd19", "score": "0.6064717", "text": "public function edit($id)\n {\n $managerTemp = Manager::find($id);\n\n return view('admin.manager-admin.edit', compact('managerTemp'));\n }", "title": "" }, { "docid": "a71e27a959041b3dc97b873e60de94e7", "score": "0.6059973", "text": "public function showEditForm()\n {\n return view('profile.edit');\n }", "title": "" }, { "docid": "18527251f9ef186ce3fe75e5b272924a", "score": "0.6003588", "text": "public function edit()\n {\n return view('rms::edit');\n }", "title": "" }, { "docid": "18527251f9ef186ce3fe75e5b272924a", "score": "0.6003588", "text": "public function edit()\n {\n return view('rms::edit');\n }", "title": "" }, { "docid": "96e0bf49203a7a30cb1297af3a5ef9c0", "score": "0.5958204", "text": "public function edit($id)\n {\n if (! Gate::allows('acronym_edit')) {\n return abort(401);\n }\n \n $partners = \\App\\Partner::get()->pluck('name', 'id')->prepend(trans('global.app_please_select'), '');\n\n $acronym = Acronym::findOrFail($id);\n\n return view('admin.acronyms.edit', compact('acronym', 'partners'));\n }", "title": "" }, { "docid": "3dd44d1e7d8bcebcd2372dc1c082f05e", "score": "0.5946188", "text": "public function edit(Manager $manager) {\n //\n\n return view('admin.manager.edit', compact('manager'));\n }", "title": "" }, { "docid": "66cbaef1a04d9a9869e113dad5721e8f", "score": "0.59152293", "text": "public function edit()\n {\n return view('admin.control.modify.edit');\n }", "title": "" }, { "docid": "1f1fbaf4a6b16a7929b4ed49489555ed", "score": "0.59119785", "text": "public function edit($id)\n {\n $model = Kain::findOrFail($id);\n return view('adminstok.stokkain.form', compact('model'));\n }", "title": "" }, { "docid": "5b4e32ca32f064d272fb0bef2ef84ad8", "score": "0.59080553", "text": "public function edit(MedSmena $medsmena)\n {\n return View::make('medsmenas.edit', [\n 'medSmena' => $medsmena\n ]);\n }", "title": "" }, { "docid": "e7a9f0cd5f81c5ec58b94fd940995bcc", "score": "0.5905889", "text": "public function edit(Alias $alias)\n {\n //\n return view('alias.edit', compact(['alias']));\n }", "title": "" }, { "docid": "69841fe8029f874bfd032d16b25b8a3d", "score": "0.5901076", "text": "public function edit($id)\n {\n $manager = manager::findOrFail($id);\n return view('managers.edit', ['manager' => $manager]);\n }", "title": "" }, { "docid": "ff3491a452a8667ffe0495928d33acd7", "score": "0.5831115", "text": "public function edit(Artist $artist)\n {\n //$this->authorize('artists.update', $artist);\n return view('artists.edit', ['artist' => $artist]);\n }", "title": "" }, { "docid": "2d9e54c770acc08276feda2cbf9d7a63", "score": "0.5827078", "text": "public function edit($id)\n {\n $manager = Manager::findOrFail($id);\n return view('managers.edit')->with('manager', $manager);\n }", "title": "" }, { "docid": "231882e93a58215aa3b11a974a66292d", "score": "0.5825247", "text": "public function edit()\n {\n return view('admin::edit');\n }", "title": "" }, { "docid": "5d0ab843c508dbf36cf4a5436015d889", "score": "0.57905626", "text": "public function edit($id)\n {\n $title = ' | Edit TNA';\n\n $tna = Tna::find($id);\n $tna_terms = TnaTerm::where('tna_id', $id)->get();\n $user_types = UserType::all();\n\n return view('tna.edit_tna', compact('title', 'tna', 'tna_terms', 'user_types'));\n }", "title": "" }, { "docid": "bafb1ed273f0180466b7d085feefbf3a", "score": "0.5785559", "text": "public function edit(Patent $patent)\n {\n return view('admin.entity.patent.edit', ['item' => $patent, 'routeName' => self::self_route, 'formMethod' => self::put_method, 'routeAction' => 'update']);\n }", "title": "" }, { "docid": "8a4c0842929917eb81bec5f316d8a215", "score": "0.5746337", "text": "public function edit(Artist $artist)\n {\n //\n return view('artist.edit',compact('artist'));\n }", "title": "" }, { "docid": "0df359c754c5b02376e217e5cac8ffbb", "score": "0.5737149", "text": "public function edit(Almacen $almacen)\n {\t\t$loc=Local::All();\n return view(\"almacen.editAlm\",compact('almacen','loc'));\n }", "title": "" }, { "docid": "ef87b52b43043e1e2e67244d823676c4", "score": "0.5733205", "text": "public function edit($id)\n {\n //\n return view ('materias.formEditMateria', compact('id'));\n }", "title": "" }, { "docid": "0d269e3c346600f8cffcb446f6c457c6", "score": "0.5722478", "text": "public function edit(Manager $manager)\n {\n $species = Specie::all();\n return view('manager.edit', ['manager' => $manager, 'species' => $species]);\n }", "title": "" }, { "docid": "94c25f335e788a15ac092142288e8b31", "score": "0.5720896", "text": "public function edit(AdminAppointmentModel $admin_appointment_show)\n {\n if(Auth::user()->admin==\"patient\"){\n return view('patient.edit_appointment',compact('admin_appointment_show'));\n }\n return view('admin.edit_appointment',compact('admin_appointment_show'));\n }", "title": "" }, { "docid": "d42a538a54c180b9f8f4959cb25a5052", "score": "0.5705972", "text": "public function edit()\n {\n return view('codeeduuser::edit');\n }", "title": "" }, { "docid": "5674a26e441dcb2e7138639295da22b9", "score": "0.5702197", "text": "public function edit($id)\n {\n $atorny = Atornies::find($id);\n\t\t\n return view('admin.Atornies.edit')->with('atorny', $atorny);\n }", "title": "" }, { "docid": "96884a0d55f36349b743e3d913248156", "score": "0.56979674", "text": "function edit()\n {\n $this->_view_edit('edit');\n }", "title": "" }, { "docid": "61306514e1cf1464d68d3a24571e4a5d", "score": "0.5696433", "text": "public function edit()\n {\n return view('access::edit');\n }", "title": "" }, { "docid": "b7a9dbd94e4c376397338c3286f585f3", "score": "0.5687632", "text": "public function action_edit() {\n $article_id = $this->request->param('id');\n $article = new Model_Article($article_id);\n\n $this->template->title = \"Editar Art&iacute;culo\";\n $this->template->content = View::factory('article/dashboard/form')\n ->bind('article', $article);\n }", "title": "" }, { "docid": "55c52f56b597ab89ed7d81d3df8ded76", "score": "0.5668881", "text": "public function edit($id)\n {\n return view('admin.authors.form', ['model' => \\App\\User::findOrFail($id)]);\n }", "title": "" }, { "docid": "2d9e7b8562c8a8896b122b3744ff91a1", "score": "0.56601775", "text": "public function edit(tb_outlet $tb_outlet)\n {\n //\n }", "title": "" }, { "docid": "3b2272e4f41858e03cba6e1fd7ded5dd", "score": "0.56441927", "text": "public function edit($id)\n {\n return view('subjectregister::edit');\n }", "title": "" }, { "docid": "c6d3097c1d0013104b0d1ffac4eb0f05", "score": "0.5643873", "text": "public function edit($id)\n {\n $concepto= Conceptsat::find($id);\n return view('Catalogos.editconceptsat',compact('concepto'));\n }", "title": "" }, { "docid": "6de49d177d0995684182c3e4b42a6dde", "score": "0.56341696", "text": "public function edit(Mahasiswa $mahasiswa)\n {\n //\n\t\treturn view('mahasiswa.edit',compact('mahasiswa'));\n }", "title": "" }, { "docid": "63a4476e92eeb1099976695d675e3f05", "score": "0.5633944", "text": "public function edit(Masjid $masjid)\n {\n return view('masjid.edit', ['masjid' => $masjid]);\n }", "title": "" }, { "docid": "32a87becdaa7cbbef0cac7432782c5a6", "score": "0.5627568", "text": "public function edit(Artist $artist)\n {\n return view ('artists.edit' , compact('artist'));\n }", "title": "" }, { "docid": "4ee1e5c9714f439a2365dd45a2c99a3f", "score": "0.56267625", "text": "public function viewEditAccount()\n\t{\n\t\treturn view('edit_account');\n\t}", "title": "" }, { "docid": "e7eb022f99d007266654247f8c875bb2", "score": "0.5616945", "text": "public function edit()\n {\n return view('leaveapplication::edit');\n }", "title": "" }, { "docid": "b1e091bc34289ce5815c7d0b31f9819f", "score": "0.5614567", "text": "public function edit()\n {\n return view('penerimaanbarangpo::edit');\n }", "title": "" }, { "docid": "1429471115e521248954b34724790ded", "score": "0.5610334", "text": "public function edit($id)\n {\n $director = Director::find($id);\n return view('directors/edit', ['director' => $director]);\n }", "title": "" }, { "docid": "83326039f95c2646545c4688dbec21d3", "score": "0.56083447", "text": "public function edit(Theater $theater)\n {\n return view('admin.theater.edittheater', compact('theater'));\n }", "title": "" }, { "docid": "1b4f4e362fed2de89017561df1ebe8cb", "score": "0.5601203", "text": "public function edit(Director $director)\n {\n return view('admin.directors.create')->with('director',$director);\n }", "title": "" }, { "docid": "ec88b26110a190c04f9425a51a28d94a", "score": "0.5598674", "text": "public function edit()\n\t{\n\n\t\t// Redirect to the edit screen.\n\t\t$this->setRedirect(JRoute::_('index.php?option=com_tks_agenda&view=itemeditform&layout=edit', false));\n\t}", "title": "" }, { "docid": "a695b4f4340bb78a765476c7a7b02c4c", "score": "0.55959266", "text": "public function edit()\n {\n return view('clientapp::edit');\n }", "title": "" }, { "docid": "41b8c439485926b8babc40db0a3901e4", "score": "0.5590901", "text": "public function edit($id)\n {\n $jns_tamu = Jenistamu::findorfail($id);\n return view('Admin.Jenistamu.edit-jenis-tamu', compact('jns_tamu'));\n }", "title": "" }, { "docid": "771d6f1503c1e7d129a837f4450e2da2", "score": "0.55903035", "text": "public function edit(actor $actor)\n {\n\n return view('actor.edit', compact(\"actor\"));\n }", "title": "" }, { "docid": "76c4c5864c21722dc2e8515a1b9faa0a", "score": "0.5585734", "text": "public function edit(Avalia $avalia)\n {\n return view('avalias.edit')\n ->with('avalia', $avalia);\n }", "title": "" }, { "docid": "47db9ef3b20930523d7d0ff648400ff6", "score": "0.5579263", "text": "public function edit(Merek $merek)\n {\n return view('merek.edit',compact('merek'));\n }", "title": "" }, { "docid": "d38180038ed5b6fde7cb6b7829d278fc", "score": "0.55766076", "text": "public function edit()\n {\n JRequest::setVar( 'view', 'actions' );\n JRequest::setVar( 'layout', 'form' );\n JRequest::setVar( 'hidemainmenu', 1 );\n\n parent::display();\n }", "title": "" }, { "docid": "5148fc2c4bd443d1e013339b91d437a0", "score": "0.5574427", "text": "public function edit(symptoms $symptoms)\n {\n //\n }", "title": "" }, { "docid": "31fee70ed79adf37de731a57f6eea1fa", "score": "0.5569405", "text": "public function edit()\n {\n return view('onlineappointment::edit');\n }", "title": "" }, { "docid": "8202b11a0ebab1ee33526e691e4d3eed", "score": "0.556852", "text": "public function edit()\n {\n return view('frontend.edit');\n }", "title": "" }, { "docid": "cc2d58cc2ac2e8a87f4b9117db60979f", "score": "0.5567449", "text": "public function edit(Tarea $tarea)\n {\n $empleados = Empleado::all();\n return view('tareas.form', compact('tarea','empleados'));\n }", "title": "" }, { "docid": "701c592af1d277babf262ba31d833e6d", "score": "0.5563494", "text": "public function edit()\n {\n return view('fehome::edit');\n }", "title": "" }, { "docid": "a24599066bac0163defb46834bc3b938", "score": "0.5561421", "text": "public function edit($id)\n {\n $swimmer = Swimmer::findOrFail($id);\n\n return view('Instructors.swimmers.edit', compact('swimmer'));\n }", "title": "" }, { "docid": "78b155166c122d52ab55723c3a4850f3", "score": "0.55601525", "text": "public function edit($id)\n {\n $asesor = Asesor::findOrFail($id);\n\n return view('Administrador.editasesor', compact('asesor'));\n }", "title": "" }, { "docid": "93c08f11b510a987a83f49314be311e9", "score": "0.55527556", "text": "public function edit($id)\n {\n $medidor = $this->medidorRepository->find($id);\n\n if (empty($medidor)) {\n Flash::error('Medidor not found');\n\n return redirect(route('medidors.index'));\n }\n\n return view('admin.medidors.edit')->with('medidor', $medidor)->with('opcion',1);\n }", "title": "" }, { "docid": "71eb40d9c455909cddcbe4756fe10aa1", "score": "0.5551297", "text": "public function show($id)\n {\n $synonymAntonymController = $this->synonymAntonymControllerRepository->findWithoutFail($id);\n\n if (empty($synonymAntonymController)) {\n Flash::error('Synonym Antonym Controller not found');\n\n return redirect(route('synonymAntonymControllers.index'));\n }\n\n return view('synonym_antonym_controllers.show')->with('synonymAntonymController', $synonymAntonymController);\n }", "title": "" }, { "docid": "5af850265a4a33e59e46a01b80ede2a3", "score": "0.55505997", "text": "public function edit()\n {\n return view('user::edit');\n }", "title": "" }, { "docid": "0f3195a271e45791ede21cc656e61ba9", "score": "0.5547631", "text": "public function edit($id)\n\t{\n\t\t// get the nerd\n\t\t$athome = Athomes::find($id);\n\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('athome.edit')\n\t\t\t->with('athome', $athome);\n\t}", "title": "" }, { "docid": "3bbe55119344c4ac515823f48dd801f5", "score": "0.55475557", "text": "public function edit($id)\n {\n $torcedor = $this->torcedores->find($id);\n\n return view('admin.torcedores.edit', compact('torcedor'));\n }", "title": "" }, { "docid": "2fac806ecfe70c9a13205df66ff1a3c5", "score": "0.5544925", "text": "public function edit($id)\n\t{\n\t\t$nurse = Nurse::find($id);\n\t \n\t \n\t\treturn view('admin.nurse.edit', compact('nurse'));\n\t}", "title": "" }, { "docid": "4712a4f5b9bb122aabb49aef0daf75bf", "score": "0.55441463", "text": "public function edit($id)\n {\n $mtto=TipoMantenimiento::find($id);\n return view('nomencladores.mantenimiento.edit',\n compact('mtto'))->render();\n }", "title": "" }, { "docid": "497734dcfdf652f1ef173009bfa1707a", "score": "0.55432516", "text": "public function edit($id)\n {\n $authority = Authority::find($id);\n\n if (is_null($authority)) {\n return Redirect::route('authority.index');\n }\n\n return view('authorities.form')->with('authority', $authority);\n }", "title": "" }, { "docid": "252bb1be1653ac571b3c6839bf1523ea", "score": "0.5543163", "text": "public function edit($id){\n $author = Author::findOrFail($id);\n return view('admin/author/edit', compact('author'));\n }", "title": "" }, { "docid": "18e3ea517c4d869fcdcc74728b14c3b4", "score": "0.5540261", "text": "public function edit(Monument $monument)\n {\n //\n return view('monument.edit',compact('monument'));\n }", "title": "" }, { "docid": "c83d617c4b1145aa151a72dd61dd4c59", "score": "0.55392206", "text": "function edit()\r\n\t{\r\n\t\tJRequest::setVar( 'view', 'Suggestion' );\r\n\t\tJRequest::setVar( 'layout', 'form' );\r\n\t\tJRequest::setVar( 'hidemainmenu', 1);\r\n\r\n\t\tparent::display();\r\n\t}", "title": "" }, { "docid": "9f2cab52b8b59162abde581189226d17", "score": "0.55363226", "text": "public function edit($id)\n {\n $empresas = Empresa::all();\n $ramal = Ramal::find($id);\n $setores = Setor::where('empresa_id', $ramal->empresa->id)->get();\n return view(\"admin.ramal.editform\", compact('empresas', 'ramal', 'setores'));\n }", "title": "" }, { "docid": "adce8dd3bf2f10d111f097d2a8a519fd", "score": "0.5535542", "text": "public function edit(Guardian $guardian)\n {\n return view('student::guardians.edit',\n ['title'=>trans('student::local.edit_guardian'),'guardian'=>$guardian]);\n }", "title": "" }, { "docid": "913ee15963371fed1d1a3bd6300bdf96", "score": "0.5532706", "text": "public function edit($id)\n {\n \n $manager = Manager::find($id);\n $sectors = Sector::all('id', 'name');\n \n\n return view('managers.edit',compact('sectors','manager'));\n }", "title": "" }, { "docid": "518d831e63f029952be65f5f2aa8d689", "score": "0.5531461", "text": "public function edit($id)\n {\n $instructor = Instructor::findOrFail($id);\n return view(\"backend.instructors.edit\", compact(\"instructor\"));\n }", "title": "" }, { "docid": "4720300c7c9c478bababaa7f9ec7c0e9", "score": "0.55183786", "text": "public function edit($id)\n {\n $director=Director::find($id);\n return view('admin.director.edit')->with('director',$director);\n }", "title": "" }, { "docid": "d080b832c14528aa1f46908eb2a7478f", "score": "0.55113983", "text": "public function edit($id)\n { \n $administrador = Administrador::find($id);\n\n return view('administradores.edit')->with('administrador',$administrador);\n }", "title": "" }, { "docid": "197384e2367ce0d9eee0c5a9a18de60b", "score": "0.5507877", "text": "public function edit($id)\n {\n if (! Gate::allows('etat_om_edit')) {\n return abort(401);\n }\n $etat_om = EtatOm::findOrFail($id);\n\n return view('admin.etat_oms.edit', compact('etat_om'));\n }", "title": "" }, { "docid": "75a3c1bc832e873b611dc4dc177bc7cf", "score": "0.55054927", "text": "public function editform($id){\n $usuario = User::findOrFail($id);\n\n return view('usuarios.editform', compact('usuario'));\n }", "title": "" }, { "docid": "447b000f946fc32d26e0a5d2c08d938e", "score": "0.5502667", "text": "public function edit($id)\n {\n $mahasiswa = Mahasiswa::find($id);\n return view('mahasiswa.edit', compact('mahasiswa'));\n }", "title": "" }, { "docid": "b9a3fc3e419886ff84ecfe53ea48de38", "score": "0.5494684", "text": "public function edit($id)\n {\n //\n $sanpham = sanPham::findOrFail($id);\n return view('admin.sanPham.edit')\n ->with('sanpham',$sanpham);\n }", "title": "" }, { "docid": "bacba5814f1b9c5c97af494e9909a912", "score": "0.54946375", "text": "public function edit(Analyst $analyst)\n {\n return view('app.analysts.edit', compact('analyst'));\n }", "title": "" }, { "docid": "26a4f4bf45a44bdaa00e5c4e801a2d2c", "score": "0.5491665", "text": "public function edit()\n {\n return view('frontend.dashboard.editAccount');\n }", "title": "" }, { "docid": "3ad62d3770a29dcd6af2e0645a896c3c", "score": "0.5482192", "text": "public function edit($id)\n {\n //\n $admin = Admin::find($id);\n $title = atrans('edit');\n return view('admin.admins.edit', compact('admin', 'title'));\n }", "title": "" }, { "docid": "a898eb53454b1aa7c86919bf4241a9d9", "score": "0.5481929", "text": "public function edit($id)\n\t{\n\t\t$concepto = Concepto::find($id);\n\n\t\treturn View::make('back.Conceptos.edit', compact('concepto'));\n\t}", "title": "" }, { "docid": "0d4d19a125ed9e9acee52c313bae6d91", "score": "0.54811215", "text": "public function edit(Nominaciones $nominacion)\n {\n //$this->authorize('update', $nominacion);\n\n return view('nominaciones.edit', compact('nominacion'));\n }", "title": "" }, { "docid": "0e6a515fbe3ef739fb91861e170c13fe", "score": "0.5472328", "text": "public function edit()\n {\n return view('sms::edit');\n }", "title": "" }, { "docid": "ee79b4eb81aff0d435d6059a6acef55c", "score": "0.54676294", "text": "public function edit($id)\n {\n $alimento = Alimento::findOrFail($id);\n return view ('alimento/editAlimento', compact('alimento'));\n\n }", "title": "" }, { "docid": "5603d1c486cfad99894ea21c09f82af8", "score": "0.5460486", "text": "public function edit($id)\n {\n //\n $mahasiswa = Student::find($id);\n return view('mahasiswa/edit', compact('mahasiswa'));\n }", "title": "" }, { "docid": "eba2105c042be0f516891a02bf6b79f1", "score": "0.5459496", "text": "public function edit()\n {\n return view('account.view');\n }", "title": "" }, { "docid": "9a48bf0c9d0d9833ca8005c8bffd2ada", "score": "0.5458326", "text": "public function edit($id) {\n\t\t$admin = Admin::find($id);\n\n\t\treturn view('admin.admins.edit')->with(['admin' => $admin, 'title' => 'Edit Admin']);\n\n\t}", "title": "" }, { "docid": "dbf4067fd9e44e854149ba82d9843624", "score": "0.5455963", "text": "public function edit(State $etat)\n {\n return view('back.states.form', ['state' => $etat]);\n }", "title": "" }, { "docid": "c2fc926149be4c3a2a196ea8c1afec8b", "score": "0.5455513", "text": "public function edit(Materia $materium)\n {\n return view('materias.formMateria')->with(['materia' => $materium]);\n //return view('materias.formEditMateria',compact('id'));\n }", "title": "" }, { "docid": "4e09d9c17a6aceefb0b461c0178bb595", "score": "0.5453241", "text": "public function edit(Form $form)\n {\n $this->authorize('view', $form);\n return view('forms.edit')->with(['form' => $form]);\n }", "title": "" }, { "docid": "df6d54dcbed556f6b6219064413007ac", "score": "0.5451136", "text": "public function edit($id)\n {\n $metadato = Metadata::find($id);\n\n return view('adm.metadata.edit',compact('metadato'));\n }", "title": "" }, { "docid": "7f851541ade9c8b0d2057776bc95e9a0", "score": "0.54497015", "text": "public function edit($id)\n {\n $user = User::where('role_id', 3)->findOrFail($id);\n $owner = Owner::where('user_id', $id)->first();\n return view('manager.owners.edit', compact('user', 'owner'));\n }", "title": "" }, { "docid": "a9c60f4998cc62c5d2183cc3249b3573", "score": "0.54494107", "text": "public function edit($alias)\n {\n\n }", "title": "" }, { "docid": "45d14265a720e166c9faaffd3c7c749b", "score": "0.5449317", "text": "public function actionEdit()\n\t{\n\t \t// render the template, pass model on render template\n \t$this->renderTemplate('weatheroots/_edit');\n\t}", "title": "" }, { "docid": "317b0725469f8a143a11fd1ca79d7897", "score": "0.5448591", "text": "public function edit( Movie $movie,Person $person)\n {\n return view('Flooflix_websiteManagement.forms.movie.editPerson', compact('movie','person')); \n }", "title": "" }, { "docid": "0132281e923c663960827a2dba422346", "score": "0.54475087", "text": "public function edit(form $form)\n {\n return view('forms.edit',compact('form'));\n }", "title": "" }, { "docid": "e60972d457ee003244ad27c4c457b141", "score": "0.5446343", "text": "public function edit(FormBuilder $formBuilder, $id) {\n $user = AdminUser::withTrashed()->where('id', $id)->first();\n\n $form = $formBuilder->create(AdministratorForm::class, [\n 'method' => 'PUT',\n 'url' => route('provision.administration.administrators.update', $id),\n 'role' => 'form',\n 'id' => 'formID',\n 'model' => $user,\n ]);\n\n Administration::setTitle(trans('administration::administrators.edit_administrator', ['name' => $user->name]));\n\n \\Breadcrumbs::register('admin_final', function ($breadcrumbs) use ($user) {\n $breadcrumbs->parent('admin_home');\n $breadcrumbs->push(trans('administration::administrators.administrators'), route('provision.administration.administrators.index'));\n $breadcrumbs->push(trans('administration::administrators.edit_administrator', ['name' => $user->name]), route('provision.administration.administrators.index'));\n });\n\n return view('administration::empty-form', compact('form'));\n }", "title": "" }, { "docid": "016de80be78206e927b7a8d920bb8b3a", "score": "0.54455566", "text": "public function edit(Pendaftar $pendaftar)\n {\n return view('pendaftars.edit',compact('pendaftar'));\n }", "title": "" }, { "docid": "9ca7e98df419126b4baf38a32cd26229", "score": "0.544448", "text": "public function edit()\n {\n return view('admin.charters.editar_charter');\n }", "title": "" }, { "docid": "481f1e50b870b93d8666b34c126e5efa", "score": "0.5443639", "text": "public function getEdit($id)\n\t{\n\t\t// get the nerd\n\t\t$nerd = Nerd::find($id);\n\n\t\t// show the edit form and pass the nerd\n\t\treturn View::make('nerds.edit')\n\t\t\t->with('nerd', $nerd);\n\t}", "title": "" }, { "docid": "7d91baf764c75e4bafe47b643860c419", "score": "0.5443601", "text": "public function edit(tennant $tennant)\n {\n $kategoris = kategori::all();\n $lantais = lantai::all();\n return view('tennant.edit',compact('tennant','kategoris','lantais'));\n }", "title": "" }, { "docid": "98d7ef7a4eb9037da08b3ceca30156a2", "score": "0.5441585", "text": "public function edit()\n {\n return view('psb::edit');\n }", "title": "" } ]
8c921f20c8574a9468c06d90fb1961d0
Gather the meta data for the response.
[ { "docid": "13583ba1b1504323eb3b1b04effc533f", "score": "0.0", "text": "protected function meta($paginated)\n {\n return Arr::except($paginated, [\n 'data',\n 'first_page_url',\n 'last_page_url',\n 'prev_page_url',\n 'next_page_url',\n ]);\n }", "title": "" } ]
[ { "docid": "7d11d7d78a3b6de18811f201b38d13d7", "score": "0.7101769", "text": "public function getResponseMeta(){\n\t\treturn $this->responseMeta;\n\t}", "title": "" }, { "docid": "ac16531f5f237bee6ff5b7c2d64fcf42", "score": "0.709914", "text": "public function fetchMetaData()\n {\n if (!$this->metaRoute) return;\n\n $service = $this->getLocator()->Make($this->metaDataServiceInterface);\n $data = ($service->getPage($this->metaRoute)) ?: [];\n\n $this->metaData = (!empty($this->metaData)) ?\n array_merge($data, $this->metaData) : $data;\n }", "title": "" }, { "docid": "a0ef7fb0d7575aabd7a6d0b76ccf619b", "score": "0.6849742", "text": "public function getMeta();", "title": "" }, { "docid": "c4c08b72a039dafd0a3542f7c6028625", "score": "0.6485335", "text": "public function getMetaData()\n {\n return $this->meta_data;\n }", "title": "" }, { "docid": "c4c08b72a039dafd0a3542f7c6028625", "score": "0.6485335", "text": "public function getMetaData()\n {\n return $this->meta_data;\n }", "title": "" }, { "docid": "b428be1f0e57647e4514ff45e9205b2a", "score": "0.64347965", "text": "public function getMetaData();", "title": "" }, { "docid": "b428be1f0e57647e4514ff45e9205b2a", "score": "0.64347965", "text": "public function getMetaData();", "title": "" }, { "docid": "b428be1f0e57647e4514ff45e9205b2a", "score": "0.64347965", "text": "public function getMetaData();", "title": "" }, { "docid": "88290c20e1bf4087cf0f198df346b7a3", "score": "0.641893", "text": "public function api_meta_response($data) {\n if(empty($data)) {\n $response['message'] = lang('text_rest_no_records');\n }\n $response = [\n 'data' => $data,\n '_meta' => [\n 'total_results' => config_item('pagination')['total_results'],\n 'per_page' => config_item('pagination')['per_page'],\n 'offset' => config_item('pagination')['offset'],\n ]\n ];\n\n $this->response($response, 200);\n }", "title": "" }, { "docid": "e3a8a0d7003ba683b58061007f04fb27", "score": "0.64143115", "text": "public function metadata() {\n $response = $this->client->get($this->path() . '/metadata');\n return $response->json();\n }", "title": "" }, { "docid": "63f7d4fc8228d81b6fe5712ae9c47be9", "score": "0.63931084", "text": "function fetchMeta()\n {\n if ($this->hasFlag(AF_ONETOONE_INTEGRATE))\n {\n $this->createDestination();\n $this->getDestination()->setAttribSizes();\n }\n }", "title": "" }, { "docid": "42385ca08b1e14c8d0a12abf7f5dd972", "score": "0.6363547", "text": "public function handleMetas(IPage $page)\r\n {\r\n /* @var $response sfWebResponse */\r\n $response = $this -> getResponse();\r\n\r\n if(!$meta_description = $page -> getMetaDescription())\r\n {\r\n $meta_description = $page -> getWebsite() -> getMetaDescription();\r\n }\r\n\r\n if(!$meta_keywords = $page -> getMetaKeywords())\r\n {\r\n $meta_keywords = $page -> getWebsite() -> getMetaKeywords();\r\n }\r\n\r\n $response -> setTitle($page -> getWebsite() -> getFirmName());\r\n\r\n if($page -> getMetaTitle())\r\n {\r\n $response -> setTitle($page -> getMetaTitle());\r\n }\r\n elseif($page -> getTitle())\r\n {\r\n $response -> setTitle($page -> getTitle());\r\n }\r\n\r\n $response -> addMeta(\"keywords\", $meta_keywords);\r\n $response -> addMeta(\"description\", $meta_description);\r\n }", "title": "" }, { "docid": "03588360e787d781270433e35e988139", "score": "0.63409287", "text": "function _getMetaInformation() { return self::$metaInformation; }", "title": "" }, { "docid": "b9959e54a7e56d9d015fef40cbbdc101", "score": "0.6335061", "text": "protected function meta(): JsonResponse\n {\n return new JsonResponse(Meta::get(), 200);\n }", "title": "" }, { "docid": "3150f4a824e7bb7a6a1e114b0e913f19", "score": "0.62210345", "text": "public function meta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "a1509f4ff1840ffe86bf3ef847b8d4fa", "score": "0.62096965", "text": "protected function loadMeta()\n {\n $this->metas = Rst::extractMeta($this->file);\n }", "title": "" }, { "docid": "7ad417423f095316c4dbfcf6a711c8ec", "score": "0.62033165", "text": "function meta_fetch($data)\n {\n //Get default metas\n $default = $this->defaults();\n\n if (isset($data['page_meta_title']) && !empty($data['page_meta_title'])) {\n $meta['title'] = $data['page_meta_title'];\n } else {\n $meta['title'] = $default['title'];\n }\n\n if (isset($data['page_meta_keywords']) && !empty($data['page_meta_keywords'])) {\n $meta['keywords'] = $data['page_meta_keywords'];\n } else {\n $meta['keywords'] = $default['keywords'];\n }\n\n if (isset($data['page_meta_description']) && !empty($data['page_meta_description'])) {\n $meta['description'] = $data['page_meta_description'];\n } else {\n $meta['description'] = $default['description'];\n }\n\n return $meta;\n }", "title": "" }, { "docid": "7911d5c8c05167edba2b3e84a187c3f9", "score": "0.61779624", "text": "public function metaDataInfo() {\n $url = \"http://three.waterfallmobile.com\" . \"/api/v1/metadata\";\n $return = $this->curl_get($url);\n return $return;\n }", "title": "" }, { "docid": "25b986d1c2fe6c538c0b01d07304b04b", "score": "0.6150328", "text": "public function getResponseCacheMetadata();", "title": "" }, { "docid": "f1d7aab6e625fb8d0eef7b6a8abc76b3", "score": "0.6136952", "text": "public function getMetaInfo()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "c8c35dc10400e113035b91b95f4d5dce", "score": "0.61184734", "text": "public function renderAllMeta();", "title": "" }, { "docid": "10e4388c126206367fb5c759145a1402", "score": "0.6084073", "text": "public function getMeta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "10e4388c126206367fb5c759145a1402", "score": "0.6084073", "text": "public function getMeta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "10e4388c126206367fb5c759145a1402", "score": "0.6084073", "text": "public function getMeta()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.6067481", "text": "public function getMetadata();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.6067481", "text": "public function getMetadata();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.6067481", "text": "public function getMetadata();", "title": "" }, { "docid": "064fe0466345b9ccd2a92c3d5ada451a", "score": "0.6067481", "text": "public function getMetadata();", "title": "" }, { "docid": "6c24a94bfc0d25ef98532e62911eccaa", "score": "0.60177267", "text": "function getMeta() {\n return $this->meta;\n }", "title": "" }, { "docid": "592f929a5a86de79800e80d15d195f2e", "score": "0.600843", "text": "public function meta()\n {\n return $this->attributes['meta'];\n }", "title": "" }, { "docid": "e2d3c756be979cb1e7e75550a51228dd", "score": "0.6006302", "text": "public function getMeta() {\n return $this->meta;\n }", "title": "" }, { "docid": "e2d3c756be979cb1e7e75550a51228dd", "score": "0.6006302", "text": "public function getMeta() {\n return $this->meta;\n }", "title": "" }, { "docid": "b420489c7e7b96162d001746af9ba41a", "score": "0.6002543", "text": "private function get_meta() {\n\t\t$this->meta = new Storage( $this->name . '_meta', null );\n\t}", "title": "" }, { "docid": "dff1c2f7fc610efd1017e6a12a4343d7", "score": "0.5997815", "text": "public function getMetaDataFromApiResponse()\n {\n return $this->getValueFromArrayKey(self::API_RESPONSE_METADATA_KEY, $this->apiResponse);\n }", "title": "" }, { "docid": "89fee947233d1e8073ef9e373ed58a70", "score": "0.59974784", "text": "public function GetMetaData() {\n\t\tif (!count($this->meta) && isset($this->html)) {\n\t\t\t$meta\t\t= preg_match_all('/<meta\\s+name=\"([^\"]+)\"(?:\\s+content=\"([^\"]+)\")?\\s*\\/?>/', $this->html, $matches);\n\t\t\t$this->meta = $meta ? array_combine($matches[1], $matches[2]) : array();\n\t\t}\n\t\treturn $this->meta;\n\t}", "title": "" }, { "docid": "6e25b4e818cd490e3eefaabb88bd670d", "score": "0.5995988", "text": "abstract public function fetchMetadata();", "title": "" }, { "docid": "d4e9b8a92ea24982b4c7da84b7b1b4db", "score": "0.59791183", "text": "public function getMeta()\n {\n return $this->Meta;\n }", "title": "" }, { "docid": "80daaadd4f85f76a98541dbbae35fc5c", "score": "0.5972535", "text": "abstract protected function metadata();", "title": "" }, { "docid": "2a6ee78c75acd7ab6382c84b7dc6cb3d", "score": "0.5971117", "text": "public function meta()\n {\n return array_merge([\n 'resourceName' => $this->resourceName,\n 'label' => forward_static_call([$this->resourceClass, 'label']),\n 'singularLabel' => $this->singularLabel\n ?? $this->name\n ?? forward_static_call([$this->resourceClass, 'singularLabel']),\n 'belongsToRelationship' => $this->belongsToRelationship,\n 'belongsToId' => $this->belongsToId,\n 'searchable' => $this->searchable,\n 'viewable' => $this->viewable ?? true,\n 'reverse' => false,\n ], $this->meta);\n }", "title": "" }, { "docid": "dab52527c220ec486c9c0ea5f23b0277", "score": "0.5950835", "text": "public static function prepare_basic_metadata()\n\t{\n\t\t$meta = new self();\n\n\t\t// Set the data into context for template use\n\t\t$meta->setContext();\n\t}", "title": "" }, { "docid": "031aeaeb6c5c6ccfad7577a8ea881bcc", "score": "0.59481496", "text": "public function meta()\n {\n $pluginSettings = craft()->plugins->getPlugin('oneSeo')->getSettings();\n\n $metaData = [\n 'url' => craft()->getSiteUrl(),\n 'pageTitle' => craft()->siteName\n ];\n\n $element = craft()->urlManager->getMatchedElement();\n\n if ($element && $element->getElementType() == ElementType::Entry)\n {\n // Look for a custom SEO title\n $pageTitle = $element->title;\n $customTitle = $element->seoTitle;\n if (strlen($customTitle)) $pageTitle = $customTitle;\n $metaData['pageTitle'] = $pageTitle;\n\n // Look for a custom SEO description in CMS\n $customDescription = $element->seoMetaDescription;\n if (strlen($customDescription)) $metaData['description'] = $customDescription;\n\n // Look for a custom SEO image\n $customImage = $element->seoImage;\n if ($customImage->count())\n {\n $metaData['image'] = $customImage[0]->url;\n }\n else\n {\n // Try to find existing images in the entry\n foreach ($element->getFieldLayout()->getFields() as $fieldLayoutField)\n {\n $field = $fieldLayoutField->getField();\n $type = $field->type;\n if ($type == 'Assets')\n {\n $value = $element->getFieldValue($field->handle);\n if ($value->count())\n {\n $metaData['image'] = $value[0]->url;\n break;\n }\n }\n }\n }\n }\n\n // Set URL\n $metaData['url'] = craft()->request->getHostInfo().craft()->request->getRequestUri();\n\n // Override defaults with template customizations\n // Title…\n $dividerChar = ' ' . $pluginSettings->titleDividerCharacter . ' ';\n if ($customTemplateTitle = craft()->oneSeo_meta->getMetaTitle()) {\n $metaData['pageTitle'] = implode($dividerChar, $customTemplateTitle);\n }\n // Description…\n if ($customTemplateDescription = craft()->oneSeo_meta->getMetaDescription()) {\n $metaData['description'] = $customTemplateDescription;\n }\n // Image…\n if ($customTemplateImage = craft()->oneSeo_meta->getMetaImage()) {\n $metaData['image'] = $customTemplateImage;\n }\n\n // Concatenate the full title\n if ($metaData['pageTitle'] != craft()->siteName) {\n $metaData['pageTitle'] = $metaData['pageTitle'] . $dividerChar . craft()->siteName;\n }\n\n\n $originalPath = craft()->path->getTemplatesPath();\n $pluginTemplatePath = craft()->path->getPluginsPath() . 'oneseo/templates';\n craft()->path->setTemplatesPath($pluginTemplatePath);\n $html = craft()->templates->render('meta', $metaData);\n craft()->path->setTemplatesPath($originalPath);\n echo $html;\n }", "title": "" }, { "docid": "1bced383ec2919aef4521d7e18283946", "score": "0.5943089", "text": "public function getMeta() {\n\t\treturn $this->meta;\n\t}", "title": "" }, { "docid": "ceae5260e6877ca6b2d93773fff84dbc", "score": "0.5931917", "text": "public function meta()\n {\n return array_merge([\n 'wrapperClasses' => $this->wrapperClasses,\n 'indexClasses' => $this->indexClasses,\n 'inputClasses' => $this->inputClasses,\n 'fieldClasses' => $this->fieldClasses,\n 'panelFieldClasses' => $this->panelFieldClasses,\n 'labelClasses' => $this->labelClasses,\n 'panelLabelClasses' => $this->panelLabelClasses,\n 'panelWrapperClasses' => $this->panelWrapperClasses,\n 'excerptClasses' => $this->excerptClasses,\n 'thumbnailUrl' => $this->resolveThumbnailUrl(),\n 'previewUrl' => call_user_func($this->previewUrlCallback),\n 'downloadable' => isset($this->downloadResponseCallback) && ! empty($this->value),\n 'deletable' => isset($this->deleteCallback) && $this->deletable,\n ], $this->meta);\n }", "title": "" }, { "docid": "c75809a56ee26c14073e35d386372d64", "score": "0.5905016", "text": "public function getMetas() {\n\t\tif ($this->_metas === null) {\n\t\t\t$this->_metas = new DataList(true);\n\n\t\t\t$table_page = DataBase::objectToTableName($this);\n\t\t\tif (DataBase::getInstance(_DB_DSN_PAGE)->exist($table_page)) {\n\t\t\t\t$table_list = $table_page . '_array';\n\n\t\t\t\t$query = SqlQuery::getTemp(SqlQuery::$TYPE_SELECT);\n\t\t\t\t$where = array('page_id' => $this->getId(), 'page_prop' => '_metas');\n\t\t\t\t$query->initSelect('key, value', '`' . $table_list . '`', $where);\n\t\t\t\t$rows = DataBase::getInstance(_DB_DSN_PAGE)->fetchAll($query);\n\t\t\t\tforeach ($rows as $row) {\n\t\t\t\t\t$meta = \\Flea::getBuildUtil()->replaceFleaVars($row['value'], $this);\n\t\t\t\t\t$this->_metas->add($meta, $row['key']);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $this->_metas;\n\t}", "title": "" }, { "docid": "409664dc02d7c36b0ef82620056fdbbc", "score": "0.58894324", "text": "public function getMetaProperties();", "title": "" }, { "docid": "a3ee3dc3c439ef20a217a8ebedfdf89a", "score": "0.58764154", "text": "private function getMetadata()\n {\n $metadata = $values = [];\n // Match \"description\", or Twitter's \"twitter:description\" (Cards)\n // in name attribute.\n $namePattern = '/^\\s*((twitter)\\s*:\\s*)?(description|title|image)\\s*$/i';\n\n // Match Facebook's Open Graph title & description properties.\n $propertyPattern = '/^\\s*og\\s*:\\s*(description|title|image)\\s*$/i';\n\n foreach ($this->dom->getElementsByTagName('meta') as $meta) {\n /* @var Readability $meta */\n $elementName = $meta->getAttribute('name');\n $elementProperty = $meta->getAttribute('property');\n\n if (in_array('author', [$elementName, $elementProperty])) {\n $metadata['byline'] = $meta->getAttribute('content');\n continue;\n }\n\n $name = null;\n if (preg_match($namePattern, $elementName)) {\n $name = $elementName;\n } elseif (preg_match($propertyPattern, $elementProperty)) {\n $name = $elementProperty;\n }\n\n if ($name) {\n $content = $meta->getAttribute('content');\n if ($content) {\n // Convert to lowercase and remove any whitespace\n // so we can match below.\n $name = preg_replace('/\\s/', '', strtolower($name));\n $values[$name] = trim($content);\n }\n }\n }\n if (array_key_exists('description', $values)) {\n $metadata['excerpt'] = $values['description'];\n } elseif (array_key_exists('og:description', $values)) {\n // Use facebook open graph description.\n $metadata['excerpt'] = $values['og:description'];\n } elseif (array_key_exists('twitter:description', $values)) {\n // Use twitter cards description.\n $metadata['excerpt'] = $values['twitter:description'];\n }\n\n if (array_key_exists('og:title', $values)) {\n // Use facebook open graph title.\n $metadata['title'] = $values['og:title'];\n } elseif (array_key_exists('twitter:title', $values)) {\n // Use twitter cards title.\n $metadata['title'] = $values['twitter:title'];\n }\n\n if (array_key_exists('og:image', $values) || array_key_exists('twitter:image', $values)) {\n $metadata['image'] = ($values['og:image']) ? $values['og:image'] : $values['twitter:image'];\n } else {\n $metadata['image'] = null;\n }\n\n return $metadata;\n }", "title": "" }, { "docid": "fff7f1f67f1aea291b666b6c0b8f579e", "score": "0.5866897", "text": "function parseMeta()\n {\n $output = '<title>'.$this->page_array['title'].'</title>';\n $output .= '<meta http-equiv=\"content-type\" content=\"'.$this->escape($this->page_array['content_type']).'\" />';\n $output .= '<meta name=\"description\" content=\"'.$this->escape($this->page_array['description']).'\" />';\n $output .= '<meta name=\"keywords\" content=\"'.$this->escape($this->page_array['keywords']).'\" />';\n return $output;\n }", "title": "" }, { "docid": "594770893eb5477600897a76c23e9fe2", "score": "0.5864912", "text": "public function getResponseMetadata()\n {\n return $this->_fields['ResponseMetadata']['FieldValue'];\n }", "title": "" }, { "docid": "1e7581946b11d18596d1dad1c4248444", "score": "0.5856612", "text": "public function metadata()\n {\n // If created from JSON, metadata does not get fetched.\n if (!isset($this->metadata)) {\n $this->loadExtraData();\n }\n\n return $this->metadata;\n }", "title": "" }, { "docid": "6667f21166671446d473f35df769ae39", "score": "0.5855877", "text": "function fetch_meta_list ($data) {\r\n\t\tif (!Upfront_Permissions::current(Upfront_Permissions::EDIT)) $this->_reject();\r\n\r\n\t\t$meta_type = $data['metaType'];\r\n\t\tif (!$meta_type && array_search($meta_type, array('comment', 'post')) === false) {\r\n\t\t\t$this->_out(new Upfront_JsonResponse_Error(\"Invalid meta type\"));\r\n\t\t}\r\n\r\n\t\t$object_id = $data['objectId'];\r\n\t\tif (!$object_id) $this->_out(new Upfront_JsonResponse_Error(\"No object id given\"));\r\n\r\n\t\t$meta = $this->parse_single_meta(get_metadata($meta_type, $object_id));\r\n\r\n\t\t// Extract values\r\n\t\tforeach ($meta as $key => $val) {\r\n\t\t\tif (is_array($val) && sizeof($val) == 1) $meta[$key] = $val[0];\r\n\t\t}\r\n\r\n\t\t$this->_out(new Upfront_JsonResponse_Success(array('results' => $meta)));\r\n\t}", "title": "" }, { "docid": "57993cadfed0d431092241953ec085d1", "score": "0.58313125", "text": "public function getMetadata() {\n }", "title": "" }, { "docid": "32ce277073591e457d2a7e97922e8f81", "score": "0.5826479", "text": "public function getMetadata()\n\t{\n\t\t$this->metadata = \\App::make(Metadata::class);\n\t\tview()->share('metadata', $this->metadata);\n\t}", "title": "" }, { "docid": "59525629c6b221bec50ad5e5c07a6e67", "score": "0.5823887", "text": "public function load_all_meta(){\n \n }", "title": "" }, { "docid": "877b9f59cc4866d5317d096f6afb7eb2", "score": "0.581537", "text": "function fetch_meta_list ($data) {\n\t\tif (!Upfront_Permissions::current(Upfront_Permissions::EDIT)) $this->_reject();\n\n\t\t$meta_type = $data['metaType'];\n\t\tif (!$meta_type && array_search($meta_type, array('comment', 'post')) === false) {\n\t\t\t$this->_out(new Upfront_JsonResponse_Error(\"Invalid meta type\"));\n\t\t}\n\n\t\t$object_id = $data['objectId'];\n\t\tif (!$object_id) $this->_out(new Upfront_JsonResponse_Error(\"No object id given\"));\n\n\t\t$meta = $this->parse_single_meta(get_metadata($meta_type, $object_id));\n\n\t\t// Extract values\n\t\tforeach ($meta as $key => $val) {\n\t\t\tif (is_array($val) && sizeof($val) == 1) $meta[$key] = $val[0];\n\t\t}\n\n\t\t$this->_out(new Upfront_JsonResponse_Success(array('results' => $meta)));\n\t}", "title": "" }, { "docid": "802545ad9e3052b11e8e4179e695e8d3", "score": "0.58102804", "text": "function pbt_add_metadata() {\n\tif ( is_front_page() ) {\n\t\techo pbt_get_seo_meta_elements();\n\t\techo pbt_get_microdata_meta_elements();\n\t} else {\n\t\techo pbt_get_microdata_meta_elements();\n\t}\n}", "title": "" }, { "docid": "de738961d2060ed77a7d021d568ee2d6", "score": "0.579885", "text": "public function getResponseMetadata()\n {\n return $this->fields['ResponseMetadata']['FieldValue'];\n }", "title": "" }, { "docid": "50922ca84597ae7f21fcf0c370b4a39d", "score": "0.57643974", "text": "private function getMeta(){\n\t\tif(empty($this->meta))\n\t\t\t$this->meta = $this->parser->getTags('meta');\n\t\t\n\t\treturn $this->meta;\n\t}", "title": "" }, { "docid": "dedca3e026415a950d61539982769410", "score": "0.57602304", "text": "public function getAll()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "799c503c72dc37a246dc328929b1d15b", "score": "0.573654", "text": "public static function getMeta() {\n return json_decode(\n '['\n . ' {'\n . ' \"name\":\"appointment_id\",'\n . ' \"type\":\"int\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_patient_id\",'\n . ' \"type\":\"int\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_user_id\",'\n . ' \"type\":\"int\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_state\",'\n . ' \"type\":\"int\",'\n . ' \"default\": \"0\"'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_time\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_date\",'\n . ' \"type\":\"date\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_reason\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_doctor_id\",'\n . ' \"type\":\"int\",'\n . ' \"default\": null'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_cncl\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": \"0\"'\n . ' },'\n . ' {'\n . ' \"name\":\"appointment_cncl_reason\",'\n . ' \"type\":\"varchar\",'\n . ' \"default\": null'\n . ' }'\n . ']'\n );\n }", "title": "" }, { "docid": "594234d354ca5660f338d4e742f67a7c", "score": "0.57350576", "text": "public function getBareMeta() {\n $this->seekToSection('KFH');\n // Skip past section header and checksum\n $this->seek(12, 1);\n $meta = $this->unpack([\n 'creationTimestamp' => 'V',\n 'modifiedTimestamp' => 'V',\n 'appVersion' => 'V',\n 'rootAuthorId' => 'H20',\n 'parentAuthorId' => 'H20',\n 'currentAuthorId' => 'H20',\n 'rootAuthorName' => 'a22',\n 'parentAuthorName' => 'a22',\n 'currentAuthorName' => 'a22',\n 'rootFilename' => 'a28',\n 'parentFilename' => 'a28',\n 'currentFilename' => 'a28',\n 'frameCount' => 'v',\n 'thumbIndex' => 'v',\n 'flags' => 'v',\n 'frameSpeed' => 'C',\n 'layerFlags' => 'C',\n ], 204);\n\n $meta2 = [\n 'lock' => ($meta['flags'] & 0x1) === 1,\n 'loop' => (($meta['flags'] >> 1) & 0x01) === 1,\n 'flags' => $meta['flags'],\n 'layer_flags' => $meta['layerFlags'],\n 'app_version' => $meta['appVersion'],\n 'frame_count' => $meta['frameCount'],\n 'frame_speed' => $meta['frameSpeed'],\n 'thumb_index' => $meta['thumbIndex'],\n 'modified' => $meta['modifiedTimestamp'] + 946684800,\n 'created' => $meta['creationTimestamp'] + 946684800,\n 'root' => [\n 'username' => $this->formatUsername($meta['rootAuthorName']),\n 'fsid' => $this->formatAuthorId($meta['rootAuthorId']),\n 'filename' => $this->formatFilename($meta['rootFilename']),\n ],\n 'parent' => [\n 'username' => $this->formatUsername($meta['parentAuthorName']),\n 'fsid' => $this->formatAuthorId($meta['parentAuthorId']),\n 'filename' => $this->formatFilename($meta['parentFilename']),\n ],\n 'current' => [\n 'username' => $this->formatUsername($meta['currentAuthorName']),\n 'fsid' => $this->formatAuthorId($meta['currentAuthorId']),\n 'filename' => $this->formatFilename($meta['currentFilename']),\n ],\n ];\n return $meta2;\n }", "title": "" }, { "docid": "410b786aa44ecf40abc4b7ca277ede61", "score": "0.5727345", "text": "public static function requestMetadata() {\n self::logMessage(\"Requesting resource metadata.\");\n return self::requestdata(\"\\$metadata\");\n }", "title": "" }, { "docid": "537260f0ece768280de15c3ee01f92ca", "score": "0.5690245", "text": "private function generateMeta(): void\n {\n $generator = new Meta\\Generator();\n\n $generator->register(\n $this->generateMetaDataForRouter(Broker::getInstance(), 'getRouter')\n );\n\n $generator->register(\n $this->generateMetaDataForRouter(Broker::getInstance()->getRouter(Locator\\ByClassName::class), 'make')\n );\n\n $generator->generate('easy-extend.meta.php');\n }", "title": "" }, { "docid": "ff34fb613d008950d789619cae5f7434", "score": "0.5682662", "text": "function getMeta(&$Page) {\n\n static $meta;\n if (! is_array($meta)) {\n Loader::load(\"managers.meta.MetaHelper\", true, _SBC_SYS_);\n $meta = MetaHelper::getMetaData();\n }\n \n $groups = array();\n $tmp = $Page->getMetagroup();\n if (!empty($tmp)) {\n $groups = explode(',', $tmp);\n }\n \n $meta = array();\n $count = count($groups);\n for ($i=0; $i<$count; $i++) {\n $these = Utils::findAllByKey(\n $meta, \n 'metagroups', \n $groups[$i]\n );\n if (!count($these)) continue;\n foreach ($these as $m) {\n $meta[$m->name] = $m->content;\n }\n }\n \n $description = $Page->getMeta_description();\n if (!empty($description)) {\n $meta['description'] = $description;\n }\n \n if ($keywords = Filter::get($page, 'keywords')) {\n if (isset($meta['keywords'])) {\n $meta['keywords'] .= \", $keywords\";\n }\n else {\n $meta['keywords'] = $keywords;\n }\n }\n return $meta;\n }", "title": "" }, { "docid": "0ab0c140e4ad31eac1a0b7467e90b60d", "score": "0.56707776", "text": "protected function responseMeta(array $response = [], $status = 200, $message = 'Ok')\n {\n $meta = array_merge([\n 'code' => $status,\n 'message' => $message\n ], array_get($response, 'meta', []));\n\n $response['meta'] = $meta;\n\n return $response;\n }", "title": "" }, { "docid": "16ee68df27943d8d89246e4f072330af", "score": "0.56705123", "text": "public static function getMetaBoxData()\n\t{\n\t\tcheck_ajax_referer( 'tistory_writer' );\n\t\t$requestMgr = self::getManager(FEATURE_KEY\\REQUEST);\n\t\twp_die($requestMgr->getMetaBoxData());\n\t}", "title": "" }, { "docid": "9cc82ed2b159fece085a75537681ff87", "score": "0.56644064", "text": "public function getMetaData()\n {\n $meta = parent::getMetaData();\n $meta['description'] = $this->__('Flexible surveyor.');\n /*\n $additionalPermissionSchema = array(\n 'SurveyManager::Survey' => 'Name::Survey ID',\n 'SurveyManager::Page' => 'Name::Page ID',\n 'SurveyManager::Question' => 'Name::Question ID',\n 'SurveyManager::Response' => ':IP Address:Response ID',\n 'SurveyManager::Datum' => '::Datum ID',\n 'SurveyManager::Respond' => '::'\n );\n \n $meta['securityschema'] = array_merge($meta['securityschema'], $additionalPermissionSchema);\n */\n return $meta;\n }", "title": "" }, { "docid": "42dc8b7b4751774273bf65297a495084", "score": "0.56582004", "text": "protected function getMetaData($fields) {\n\n\t\t// ExtJS api: http://www.extjs.com/deploy/dev/docs/?class=Ext.data.JsonReader\n//\t\tmetaData: {\n// // used by store to set its sortInfo\n// \"sortInfo\":{\n// \"field\": \"name\",\n// \"direction\": \"ASC\"\n// },\n// // paging data (if applicable)\n// \"start\": 0,\n// \"limit\": 2,\n// // custom property\n// \"foo\": \"bar\"\n// },\n\t\t$metaData['idProperty'] = 'uid';\n\t\t$metaData['root'] = 'records';\n\t\t$metaData['totalProperty'] = 'total';\n\t\t$metaData['successProperty'] = 'success';\n\t\t$metaData['fields'] = array(\n\t\t\t// Additional fields\n\t\t\tarray('name' => 'cruser_formatted', 'type' => 'string'),\n\t\t\tarray('name' => 'pid_formatted', 'type' => 'string'),\n\t\t\tarray('name' => 'extkey_formatted', 'type' => 'string'),\n\t\t\tarray('name' => 'has_data_var', 'type' => 'boolean'),\n\t\t);\n\n\t\t// merges additiionnal fields with \"regular\" fields\n\t\t$metaData['fields'] = array_merge($this->getFieldMetaData($fields), $metaData['fields']);\n\t\treturn $metaData;\n\t}", "title": "" }, { "docid": "570fcaad481d85230adba1ac8cb4e05c", "score": "0.56551474", "text": "protected function _listMeta(){\n $_params = $this->_buildParamsFilters();\n\n //Get all metas defined for this row\n return Centurion_Db::getSingleton('seo/meta')\n ->getCache()\n ->filter($_params);\n\n }", "title": "" }, { "docid": "ee9c7d3398d77d924a38c95af288805c", "score": "0.5645805", "text": "private function prepareMeta() {\n\t\tif (is_array($this->meta) && count($this->meta)) {\n\t\t\tforeach ($this->meta as $label => $value) {\n\t\t\t\t$this->meta[$label] = str_replace(\"\\r\", '', $value);\n\t\t\t}\n\t\t}\n\t\t$this->addGeneratorString();\n\n\t\t$metadata = $this->meta;\n\t\tunset($metadata['@attributes']);\n\n\t\treturn $metadata;\n\t}", "title": "" }, { "docid": "8df9ce34ac9d6c35e4c6e45cb13cae7d", "score": "0.56369764", "text": "public function getInfo()\n {\n return $this->responseInfo;\n }", "title": "" }, { "docid": "4674741adce3d182db8f66027d37d13c", "score": "0.5636956", "text": "function integration_meta() {\n\tglobal $p, $db;\n\t\n\t$twitter = true;\n\t$opengraph = true;\n\t$google = true;\n\t\n\t$user = $db->getGlobalUserData();\n\t\n\tif ($p) { // Single post\n\t\t$post = $db->getSinglePost($p);\n\t\t// Common tags\n\t\techo '\n\t\t\t<meta name=\"description\" content=\"' . substr(strip_tags( $post->getContent()),0,250) . '\" />\n\t\t\t<meta name=\"author\" content=\"' . $post->getAuthor(Post::AUTHOR_FULL_NAME) . '\" />\n\t\t\t<meta name=\"keywords\" content=\"' . $post->getKeywords() . '\" />\n\t\t';\n\t\tif ($twitter) { // Twitter specific tags\n\t\t\techo '\n\t\t\t\t<meta name=\"twitter:card\" content=\"summary\" />\n\t\t\t\t<meta name=\"twitter:site\" content=\"\" />\n\t\t\t\t<meta name=\"twitter:title\" content=\"' . $post->getTitle() . '\" />\n\t\t\t\t<meta name=\"twitter:description\" content=\"' . substr(strip_tags( $post->getContent()),0,250) . '\" />\n\t\t\t\t<meta name=\"twitter:creator\" content=\"' . $post->getAuthor(Post::AUTHOR_TWITTER) . '\" />\n\t\t\t';\n\t\t}\n\t\tif ($opengraph) { // Open Graph specific tags\n\t\t\techo '\n\t\t\t\t<meta property=\"og:title\" content=\"' . $post->getTitle() . '\" />\n\t\t\t\t<meta property=\"og:type\" content=\"article\" />\n\t\t\t\t<meta property=\"article:published_time\" content=\"' . $post->getISODate() . '\" />\n\t\t\t\t<meta property=\"article:modified_time\" content=\"' . $post->getISODateUpdated() . '\" />\n\t\t\t\t<meta property=\"article:author\" content=\"http://facebook.com/' . $post->getAuthor(Post::AUTHOR_FACEBOOK) . '\" />\n\t\t\t\t<meta property=\"og:url\" content=\" http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/?p=' . $post->getNr() .'\" />\n\t\t\t\t<meta property=\"og:site_name\" content=\"' . info('title') . '\"\t/>\n\t\t\t\t<meta property=\"og:description\" content=\"'. substr(strip_tags( $post->getContent()),0,250).'\" />\n\t\t\t';\n\t\t}\n\t\tif ($google) { // Google specific tags\n\t\t\techo '\n\t\t\t\t<link href=\"https://plus.google.com/' . $post->getAuthor(Post::AUTHOR_GOOGLE_PLUS) . '\" rel=\"author\" />\n\t\t\t';\n\t\t}\n\t} else { // Blogstream\n\t\t// Common tags\n\t\techo '\n\t\t\t<meta name=\"description\" content=\"' . substr(strip_tags( info('description')),0,250) . '\" />\n\t\t\t<meta name=\"author\" content=\"' . $user->getName() . '\" />\n\t\t';\n\t\tif ($opengraph) { // Open Graph specific tags\n\t\t\techo '\n\t\t\t\t<meta property=\"og:title\" content=\"' . info('title') . '\" />\n\t\t\t\t<meta property=\"og:type\" content=\"website\" />\n\t\t\t\t<meta property=\"og:url\" content=\" http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/' .'\" />\n\t\t\t\t<meta property=\"og:site_name\" content=\"' . info('title') . '\"\t/>\n\t\t\t\t<meta property=\"og:description\" content=\"'. info('description') .'\" />\n \t\t\t\t<meta property=\"og:author\" content=\"' . $user->getFacebook() . '\" />\n\t\t\t';\n\t\t\tif (file_exists(SampiCMS\\ROOT . '/sampi/resources/images/site_logo_l.png')) {\n\t\t\t\techo '<meta property=\"og:image\" content=\"http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/sampi/resources/images/site_logo_l.png\" />';\n\t\t\t} elseif (file_exists(SampiCMS\\ROOT . '/sampi/resources/images/site_logo_m.png')) {\n\t\t\t\techo '<meta property=\"og:image\" content=\"http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/sampi/resources/images/site_logo_m.png\" />';\n\t\t\t} elseif (file_exists(SampiCMS\\ROOT . '/sampi/resources/images/site_logo_s.png')) {\n\t\t\t\techo '<meta property=\"og:image\" content=\"http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/sampi/resources/images/site_logo_s.png\" />';\n\t\t\t} elseif (file_exists(SampiCMS\\ROOT . '/sampi/resources/images/logo_l.png')) {\n\t\t\t\techo '<meta property=\"og:image\" content=\"http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/sampi/resources/images/logo_l.png\" />';\n\t\t\t} elseif (file_exists(SampiCMS\\ROOT . '/sampi/resources/images/logo_m.png')) {\n\t\t\t\techo '<meta property=\"og:image\" content=\"http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/sampi/resources/images/logo_m.png\" />';\n\t\t\t} elseif (file_exists(SampiCMS\\ROOT . '/sampi/resources/images/logo_s.png')) {\n\t\t\t\techo '<meta property=\"og:image\" content=\"http://' . $_SERVER['HTTP_HOST'] . SampiCMS\\REL_ROOT . '/sampi/resources/images/logo_s.png\" />';\n\t\t\t}\n\t\t}\n\t\tif ($twitter) { // Twitter specific tags\n\t\t\techo '\n\t\t\t\t<meta name=\"twitter:card\" content=\"summary\" />\n\t\t\t\t<meta name=\"twitter:site\" content=\"\" />\n\t\t\t\t<meta name=\"twitter:title\" content=\"' . info('title') . '\" />\n\t\t\t\t<meta name=\"twitter:description\" content=\"' . substr(strip_tags( info('description')),0,250) . '\" />\n\t\t\t\t<meta name=\"twitter:creator\" content=\"' . $user->getTwitter() . '\" />\n\t\t\t';\n\t\t}\n\t\tif ($google) { // Google specific tags\n\t\t\techo '\n\t\t\t\t<link href=\"https://plus.google.com/' . $user->getGooglePlus() . '\" rel=\"author\" />\n\t\t\t';\n\t\t}\n\t}\n}", "title": "" }, { "docid": "3ddf80fd9ace342016f22201107502d2", "score": "0.5617535", "text": "private function commonMetaData(): array\n {\n $description = $this->selectedProduct->meta_description . '. ';\n if (isset($this->priceUah)) {\n $description .= $this->str->ucfirst(trans('meta.phrases.buу_for_price', ['price' => $this->priceUah])) . '. ';\n\n } else {\n $description .= $this->str->ucfirst(trans('meta.phrases.bue')) . '. ';\n }\n $description .= $this->str->ucfirst(trans('meta.phrases.phones')) . '.';\n\n return [\n 'commonMetaData' => [\n 'title' => $this->selectedProduct->meta_title,\n 'description' => $description,\n 'keywords' => $this->selectedProduct->meta_keywords,\n ],\n ];\n }", "title": "" }, { "docid": "51f54ee10c94dc36386975d291fe30ae", "score": "0.561497", "text": "public function getResponseHeaderMetadata()\n {\n return $this->_fields['ResponseHeaderMetadata']['FieldValue'];\n }", "title": "" }, { "docid": "bcf144524acc4ed86d0794da41e8cfd2", "score": "0.559574", "text": "public function meta() {\n\t\treturn [\n\t\t\t'name' => 'Extra page',\n\t\t\t'description' => 'This is a extra page',\n\t\t\t'template' => 'pages/extra-page.php'\n\t\t];\n\t}", "title": "" }, { "docid": "3fe6fe482b3bc7c187a25b9a79f6839a", "score": "0.55742633", "text": "protected function set_meta_desc()\r\r\n {\r\r\n define('_KEYWORDS',_view_results);\r\r\n define('_DESCRIPTION',_view_results);\r\r\n define('_TITLE_PAGE',_view_results);\r\r\n }", "title": "" }, { "docid": "cd90f8b9c474d4e54ce012afbaaf7cd0", "score": "0.55730134", "text": "public function admin_api_transfer_meta() {\n\t\ttry {\n\t\t\tlist($source, $title, $preview) = $this->_handleTransferRequest();\n\t\t} catch (Exception $e) {\n\t\t\t$message = \"Exception while initially handling media transfer request for meta:\\n\";\n\t\t\t$message .= \"message: \" . $e->getMessage() . \"\\n\";\n\t\t\t$message .= \"trace:\\n\" . $e->getTraceAsString();\n\t\t\tLogger::write('notice', $message);\n\n\t\t\t$response = new JSendResponse('error', $e->getMessage());\n\n\t\t\treturn $this->render([\n\t\t\t\t'status' => 500,\n\t\t\t\t'type' => 'json',\n\t\t\t\t'data' => $response->to('array')\n\t\t\t]);\n\t\t}\n\n\t\t$item = Media::create([\n\t\t\t'url' => $source,\n\t\t\t'title' => $title\n\t\t]);\n\t\t$file = [\n\t\t\t'size' => $item->size(),\n\t\t\t'title' => $item->title,\n\t\t\t'preview' => $preview\n\t\t];\n\t\t$response = new JSendResponse('success', compact('file'));\n\n\t\t$this->render([\n\t\t\t'type' => 'json',\n\t\t\t'data' => $response->to('array')\n\t\t]);\n\t}", "title": "" }, { "docid": "42d61ae3a8b6cf4581f2d062e2d153d0", "score": "0.55637735", "text": "public function getMetaDescription();", "title": "" }, { "docid": "8218aac10c2eef494c6d39eb61ebd7e1", "score": "0.5562902", "text": "public function getMetaDescription() {\n return $this->getData(self::META_DESCRIPTION);\n }", "title": "" }, { "docid": "e1b95b6447111b23ba271907401c13ba", "score": "0.5561294", "text": "public function trigger_metadata() {\n foreach ($this->metadata as $key => $value) {\n echo '<meta name=\"' . $key . '\" content=\"' . $value . '\" />';\n }\n }", "title": "" }, { "docid": "1ea0a7679bb914b8609280281dbd6176", "score": "0.5561204", "text": "public function metadatos()\n\t\t{\n\t\t\treturn \"\n <meta name='Revisit' content='1 day'/>\n <meta name='Distribution' content='Global'/>\n <meta name='Robots' content='all'/>\n <meta http-equiv='Content-Language' content='es'/>\n <meta http-equiv='Content-Style-Type' content='text/css'/>\n <meta name='Title' content='InfraSoft Servicios Informaticos'/>\n <meta name='Author' content='Ariel Marcelo Diaz'/> \n <meta name='keywords' content='\".$this->tag.\"'/>\n <meta name='description' content='\".$this->descripcion.\"'/>\n <link rel='canonical' href='http://infrasoft.com.ar/'/>\n <meta name='google-site-verification' content='5quw57-5vY5HJSCDwHIMxEJPkflMJHuVl0ATGqBrMJY' />\n <link href='https://plus.google.com/+InfrasoftAr/posts' rel='publisher'/>\n <link href='https://www.facebook.com/infrasofts' rel='publisher'/>\n <link href='https://twitter.com/infra_soft' rel='publisher'/>\n <meta name='google-site-verification' content='8Tu1UONSpU7Tn_Daju4hLzdjqNF4PHBpBkm7RFeusjs' />\n <!--[if lt IE 9]>\n <script src='http://html5shiv.googlecode.com/svn/trunk/html5.js'></script>\n <![endif]-->\n <!-- GOOGLE FONTS \n\t\t<link href='http://fonts.googleapis.com/css?family=Ubuntu' rel='stylesheet' type='text/css'>-->\".\n\t\t$this->adicional;\n\t\t}", "title": "" }, { "docid": "02f9097fadab733b782aa1ea42a5629e", "score": "0.55449563", "text": "private function insureMeta() {\n if ($this->meta == null) {\n if (empty($this->id)) {\n $this->meta = [];\n } else {\n $this->meta = get_post_meta($this->id);\n }\n }\n }", "title": "" }, { "docid": "3e07be2717183c4de43cc76d26fffb16", "score": "0.5540711", "text": "public function get_meta_tags() {\n\t\t// Sitemap options are shown on the settings page so the decision to fallback should be made after checking\n\t\t// if Smartcrawl_Settings::TAB_SETTINGS is allowed.\n\t\t//\n\t\t// This logic follows the pattern used in Smartcrawl_Settings._populate_options\n\t\t$smartcrawl_options = is_multisite() && smartcrawl_is_switch_active( 'SMARTCRAWL_SITEWIDE' ) || ! smartcrawl_is_allowed_tab( Smartcrawl_Settings::TAB_SETTINGS )\n\t\t\t? get_site_option( Smartcrawl_Settings::TAB_SITEMAP . '_options', array() )\n\t\t\t: get_option( Smartcrawl_Settings::TAB_SITEMAP . '_options', array() );\n\n\t\t$metas = array();\n\n\t\t$include_verifications = (bool) (\n\t\t\tempty( $smartcrawl_options['verification-pages'] )\n\t\t\t|| (\n\t\t\t\t! empty( $smartcrawl_options['verification-pages'] )\n\t\t\t\t&&\n\t\t\t\t'home' === $smartcrawl_options['verification-pages']\n\t\t\t\t&&\n\t\t\t\tis_front_page()\n\t\t\t)\n\t\t);\n\n\t\t// Full meta overrides.\n\t\tif ( ! empty( $smartcrawl_options['verification-google-meta'] ) && $include_verifications ) {\n\t\t\t$metas['google'] = $smartcrawl_options['verification-google-meta'];\n\t\t}\n\t\tif ( ! empty( $smartcrawl_options['verification-bing-meta'] ) && $include_verifications ) {\n\t\t\t$metas['bing'] = $smartcrawl_options['verification-bing-meta'];\n\t\t}\n\n\t\t$additional = ! empty( $smartcrawl_options['additional-metas'] ) ? $smartcrawl_options['additional-metas'] : array();\n\t\tif ( ! is_array( $additional ) ) {\n\t\t\t$additional = array();\n\t\t}\n\n\t\tforeach ( $additional as $meta ) {\n\t\t\t$metas[] = $meta;\n\t\t}\n\n\t\treturn $metas;\n\t}", "title": "" }, { "docid": "a6a9cd45975d0c1311cba5aaa1b88964", "score": "0.5540274", "text": "public function getMetaCollection(){\r\n return $this->metaCollection;\r\n }", "title": "" }, { "docid": "620e5d58d272cc219621a4c5083c60ad", "score": "0.55356777", "text": "protected function get_meta_data() {\n //gather meta data\n if(empty($this->imagestring)) {\n $info = getimagesize($this->filename);\n switch ($info['mime']) {\n case 'image/gif':\n $this->image = imagecreatefromgif($this->filename);\n break;\n case 'image/jpeg':\n $this->image = imagecreatefromjpeg($this->filename);\n break;\n case 'image/png':\n $this->image = imagecreatefrompng($this->filename);\n break;\n default:\n throw new Exception('Invalid image: '.$this->filename);\n break;\n }\n } elseif (function_exists('getimagesizefromstring')) {\n $info = getimagesizefromstring($this->imagestring);\n } else {\n throw new Exception('PHP 5.4 is required to use method getimagesizefromstring');\n }\n $this->original_info = array(\n 'width' => $info[0],\n 'height' => $info[1],\n 'orientation' => $this->get_orientation(),\n 'exif' => function_exists('exif_read_data') && $info['mime'] === 'image/jpeg' && $this->imagestring === null ? $this->exif = @exif_read_data($this->filename) : null,\n 'format' => preg_replace('/^image\\//', '', $info['mime']),\n 'mime' => $info['mime']\n );\n $this->width = $info[0];\n $this->height = $info[1];\n imagesavealpha($this->image, true);\n imagealphablending($this->image, true);\n return $this;\n }", "title": "" }, { "docid": "0710d31486105508e0be3796937a97b1", "score": "0.552846", "text": "public function prepare_movie_for_response( $response, $post, $request ) {\n\n\t\t$response = $this->prepare_post_for_response( $response, $post, $request );\n\n\t\t$meta = utils\\get_registered_movie_meta();\n\n\t\t// Some meta should not be visible, although they may be editable.\n\t\t$protected = wp_filter_object_list( $meta, array( 'protected' => true ) );\n\t\tforeach ( $protected as $key => $value ) {\n\t\t\t$meta_key = utils\\movie\\prefix( $key );\n\t\t\tif ( isset( $response->data['meta'][ $meta_key ] ) ) {\n\t\t\t\tunset( $response->data['meta'][ $meta_key ] );\n\t\t\t}\n\t\t}\n\n\t\tif ( 'edit' === $request['context'] ) {\n\t\t\t$snapshot = utils\\movie\\get_meta( $post->ID, 'snapshot' );\n\t\t\tif ( ! empty( $snapshot ) ) {\n\t\t\t\t$response->data['snapshot'] = json_decode( $snapshot );\n\t\t\t}\n\n\t\t\t$persons = utils\\movie\\get_meta( $post->ID, 'related_persons' );\n\t\t\tif ( ! empty( $persons ) ) {\n\t\t\t\t$response->data['persons'] = $persons;\n\t\t\t}\n\t\t} elseif ( isset( $response->data['meta'] ) ) {\n\t\t\tforeach ( $response->data['meta'] as $key => $value ) {\n\t\t\t\tunset( $response->data['meta'][ $key ] );\n\t\t\t\t$response->data['meta'][ utils\\movie\\unprefix( $key, false ) ] = $value;\n\t\t\t}\n\t\t}\n\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "975344dc5ce1829380165e5025fe4740", "score": "0.55241686", "text": "public function __invoke($request, $response, $next){\n\n // Init meta array\n $meta = [];\n\n // Get version number from config\n $meta['version'] = $this->container->get('settings')['version'];\n\n // Set meta info environment variable and push to twig\n $_SESSION['meta'] = $meta;\n $this->container->view->getEnvironment()->addGlobal('meta', $_SESSION['meta']);\n\n $response = $next($request, $response);\n\t\treturn $response;\n }", "title": "" }, { "docid": "7b18f214f4ef74fabf93cca90c819c48", "score": "0.5521963", "text": "public function all()\n {\n return $this->meta;\n }", "title": "" }, { "docid": "fa4cd31726578df01a7dd682b668a783", "score": "0.55207366", "text": "function SetMetaData() {\n //for current photo page\n if(!empty($this->id)){\n $mtitle = stripslashes($this->pageData['title']);\n $mdescr = stripslashes($this->pageData['description']);\n $mkeywords = stripslashes($this->pageData['keywords']);\n\n if(empty($mtitle))\n $this->title = stripslashes($this->pageData['name']);\n else\n $this->title = $mtitle;\n\n if(empty($mdescr))\n $this->description = stripslashes($this->pageData['name']);\n else\n $this->description = $mtitle;\n\n if(empty($mkeywords))\n $this->keywords = '';\n else\n $this->keywords = $mtitle;\n }\n //for current cateogy page\n elseif(!empty($this->category)){\n $mtitle = stripslashes($this->catData['mtitle']);\n $mdescr = stripslashes($this->catData['mdescr']);\n $mkeywords = stripslashes($this->catData['mkeywords']);\n\n if(empty($mtitle))\n $this->title = stripslashes($this->catData['name']);\n else\n $this->title = $mtitle;\n if ($this->page > 1)\n $this->title .= ' - ' . $this->multi['TXT_META_PAGING'] . $this->page;\n\n if(empty($mdescr))\n $this->description = stripslashes($this->catData['name']);\n else\n $this->description = $mtitle;\n\n if(empty($mkeywords))\n $this->keywords = '';\n else\n $this->keywords = $mtitle;\n }\n //for photogallery main page\n else{\n $this->title = '';\n $this->description = '';\n $this->keywords = '';\n }\n return true;\n }", "title": "" }, { "docid": "74fa1ce2b1a523cc04ab70aabe752c50", "score": "0.5503581", "text": "public function setMetaData($var)\n {\n $arr = GPBUtil::checkMapField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Io\\Axoniq\\Axonserver\\Grpc\\MetaDataValue::class);\n $this->meta_data = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "74fa1ce2b1a523cc04ab70aabe752c50", "score": "0.5503581", "text": "public function setMetaData($var)\n {\n $arr = GPBUtil::checkMapField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Io\\Axoniq\\Axonserver\\Grpc\\MetaDataValue::class);\n $this->meta_data = $arr;\n\n return $this;\n }", "title": "" }, { "docid": "d4718ec60950a882cac07647b78c0dd3", "score": "0.5502704", "text": "private function assert_meta () {\n if (!$this->metadata) $this->readMeta();\n }", "title": "" }, { "docid": "a8d424dda71b0623b1146cc47a7c3300", "score": "0.5480374", "text": "function getHTMLMetaData() {\n\tglobal $_zp_gallery, $_zp_current_album, $_zp_current_image, $_zp_current_zenpage_news,\n\t\t\t\t\t$_zp_current_zenpage_page, $_zp_gallery_page, $_zp_current_category, $_zp_authority;\n\t$url = sanitize(\"http://\".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);\n\n\t// Convert locale shorttag to allowed html meta format\n\t$locale = getOption(\"locale\");\n\t$locale = strtr($locale,\"_\",\"-\");\n\n\t// generate page title, get date\n\t\t$pagetitle = \"\";\n\t\t$date = strftime(DATE_FORMAT); // if we don't have a item date use current date\n\t\t$desc = getBareGalleryDesc();\n\t if(is_object($_zp_current_image) AND is_object($_zp_current_album)) {\n\t\t\t$pagetitle = getBareImageTitle().\" (\". getBareAlbumTitle().\") - \";\n\t\t\t$date = getImageDate();\n\t\t\t$desc = getBareImageDesc();\n\t\t}\n\t\tif(is_object($_zp_current_album) AND !is_object($_zp_current_image)) {\n\t\t\t$pagetitle = getBareAlbumTitle().\" - \";\n\t\t\t$date = getAlbumDate();\n\t\t\t$desc = getBareAlbumDesc();\n\t\t}\n\t\tif(function_exists(\"is_NewsArticle\")) {\n\t\t\tif(is_NewsArticle()) {\n\t\t\t\t$pagetitle = getBareNewsTitle().\" - \";\n\t\t\t\t$date = getNewsDate();\n\t\t\t\t$desc = strip_tags(getNewsContent());\n\t\t\t} else \tif(is_NewsCategory()) {\n\t\t\t\t$pagetitle = $_zp_current_category->getTitlelink().\" - \";\n\t\t\t\t$date = strftime(DATE_FORMAT);\n\t\t\t\t$desc = \"\";\n\t\t\t} else if(is_Pages()) {\n\t\t\t\t$pagetitle = getBarePageTitle().\" - \";\n\t\t\t\t$date = getPageDate();\n\t\t\t\t$desc = strip_tags(getPageContent());\n\t\t\t}\n\t\t}\n\t\t// shorten desc to the allowed 200 characters if necesssary.\n\t\tif(strlen($desc) > 200) {\n\t\t\t$desc = substr($desc,0,200);\n\t\t}\n\n\t\t$pagetitle = $pagetitle.getBareGalleryTitle();\n\n\t// get master admin\n\t$admin = $_zp_authority->getAnAdmin(array('`user`=' => $_zp_authority->master_user, '`valid`=' => 1));\n\t$author = $admin->getName();\n\t$meta = '';\n\tif(getOption('htmlmeta_http-equiv-language')) { $meta .= '<meta http-equiv=\"language\" content=\"'.$locale.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-language')) { $meta .= '<meta name=\"language\" content=\"'.$locale.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-content-language')) { $meta .= '<meta name=\"content-language\" content=\"'.$locale.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_http-equiv-imagetoolbar')) { $meta .= '<meta http-equiv=\"imagetoolbar\" content=\"false\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_http-equiv-cache-control')) { $meta .= '<meta http-equiv=\"cache-control\" content=\"'.getOption(\"htmlmeta_cache_control\").'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_http-equiv-pragma')) { $meta .= '<meta http-equiv=\"pragma\" content=\"'.getOption(\"htmlmeta_pragma\").'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_http-equiv-content-style-type')) { $meta .= '<meta http-equiv=\"Content-Style-Type\" content=\"text/css\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-title')) { $meta .= '<meta name=\"title\" content=\"'.$pagetitle.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-keywords')) { $meta .= '<meta name=\"keywords\" content=\"'.getMetaKeywords().'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-description')) { $meta .= '<meta name=\"description\" content=\"'.$desc.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-page-topic')) { $meta .= '<meta name=\"page-topic\" content=\"'.$desc.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-robots')) { $meta .= '<meta name=\"robots\" content=\"'.getOption(\"htmlmeta_robots\").'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-publisher')) { $meta .= '<meta name=\"publisher\" content=\"'.FULLWEBPATH.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-creator')) { $meta .= '<meta name=\"creator\" content=\"'.FULLWEBPATH.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-author')) { $meta .= '<meta name=\"author\" content=\"'.$author.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-copyright')) { $meta .= '<meta name=\"copyright\" content=\" (c) '.FULLWEBPATH.' - '.$author.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-rights')) { $meta .= '<meta name=\"rights\" content=\"'.$author.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-rights')) { $meta .= '<meta name=\"generator\" content=\"Zenphoto '.ZENPHOTO_VERSION . ' [' . ZENPHOTO_RELEASE . ']\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-revisit-after')) { $meta .= '<meta name=\"revisit-after\" content=\"'.getOption(\"htmlmeta_revisit_after\").'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-expires')) { $meta .= '<meta name=\"expires\" content=\"'.getOption(\"htmlmeta_expires\").'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-expires')) { $meta .= '<meta name=\"date\" content=\"'.$date.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.titl')) { $meta .= '<meta name=\"DC.title\" content=\"'.$pagetitle.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.keywords')) { $meta .= '<meta name=\"DC.keywords\" content=\"'.gettMetaKeywords().'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.description')) { $meta .= '<meta name=\"DC.description\" content=\"'.$desc.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.language')) { $meta .= '<meta name=\"DC.language\" content=\"'.$locale.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.subject')) { $meta .= '<meta name=\"DC.subject\" content=\"'.$desc.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.publisher')) { $meta .= '<meta name=\"DC.publisher\" content=\"'.FULLWEBPATH.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.creator')) { $meta .= '<meta name=\"DC.creator\" content=\"'.FULLWEBPATH.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.date')) { $meta .= '<meta name=\"DC.date\" content=\"'.$date.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.type')) { $meta .= '<meta name=\"DC.type\" content=\"Text\" /> <!-- ? -->'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.format')) { $meta .= '<meta name=\"DC.format\" content=\"text/html\" /><!-- What else? -->'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.identifier')) { $meta .= '<meta name=\"DC.identifier\" content=\"'.FULLWEBPATH.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.rights')) { $meta .= '<meta name=\"DC.rights\" content=\"'.FULLWEBPATH.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.source')) { $meta .= '<meta name=\"DC.source\" content=\"'.$url.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.relation')) { $meta .= '<meta name=\"DC.relation\" content=\"'.FULLWEBPATH.'\" />'.\"\\n\"; }\n\tif(getOption('htmlmeta_name-DC.Date.created')) { $meta .= '<meta name=\"DC.Date.created\" content=\"'.$date.'\" />'.\"\\n\"; }\n\n\techo $meta;\n}", "title": "" }, { "docid": "df967cada220c201be0052beb075f2ba", "score": "0.54775095", "text": "protected function _getMetadata()\n {\n if (!isset($this->_md)) {\n try {\n $this->_md = json_decode($this->_vfs->read($this->_vfspath, self::METADATA_NAME), true);\n } catch (Horde_Vfs_Exception $e) {}\n\n if (!is_array($this->_md)) {\n $this->_md = array();\n }\n }\n }", "title": "" }, { "docid": "a5683c17c4b51df840ed91e7368fd7fa", "score": "0.5476155", "text": "public function getMetadata() {\n $fullurl = $this->baseurl . \"?command=getmetadata&database=\" . urlencode($this->database);\n $response = $this->_doCall($fullurl);\n return $response;\n }", "title": "" }, { "docid": "34f5bda9c0de5e8a69a900f6923a329a", "score": "0.5471656", "text": "public function checkMetas(){\n\t\tif($this->metas!==null) return $this->metas;\n\t\t$parsedHtml=$this->_parseHtml();\n\t\t\n\t\t// http://www.sagerock.com/blog/title-tag-meta-description-length/\n\t\t\n\t\t$metaTitle=$parsedHtml->find('head title');\n\t\t$this->check($metaTitle,'Meta title tags')->size(1);\n\t\t$metaTitle=$metaTitle[0]; $metaTitleText=hdecode($metaTitle->innertext);\n\t\t$c=$this->check($metaTitleText,'Meta title')->doubleSpace()->minLength($this->testClass->_mustBePerfect() ? 20 : 15);\n\t\tif($this->testClass->_mustBePerfect()) $c->maxLength(69);\n\t\t\n\t\t$metaDescription=$parsedHtml->find('head meta[name=\"description\"]');\n\t\t$this->check($metaDescription,'Meta description tags')->size(1);\n\t\t$metaDescription=$metaDescription[0]; $metaDescriptionContent=hdecode($metaDescription->content);\n\t\t$c=$this->check($metaDescriptionContent,'Meta description')->doubleSpace()->minLength(50);\n\t\tif($this->testClass->_mustBePerfect()) $c->maxLength(150);\n\t\t\n\t\t$metaKeywords=$parsedHtml->find('head meta[name=\"keywords\"]');\n\t\t$this->check($metaKeywords,'Meta keywords tags')->size(1);\n\t\t$metaKeywords=$metaKeywords[0]; $metaKeywordsContent=hdecode($metaKeywords->content);\n\t\t$this->check($metaKeywordsContent,'Meta keywords')->doubleSpace();\n\t\t\n\t\t$metaOgSiteName=$parsedHtml->find('head meta[property=\"og:site_name\"]');\n\t\t$this->check($metaOgSiteName,'Meta og:site_name tags')->size(1);\n\t\t$metaOgSiteName=$metaOgSiteName[0]; $metaOgSiteNameContent=hdecode($metaOgSiteName->content);\n\t\t$this->check($metaOgSiteNameContent,'Meta og:site_name')->doubleSpace();\n\t\t\n\t\t$metaOgTitle=$parsedHtml->find('head meta[property=\"og:title\"]');\n\t\t$this->check($metaOgTitle,'Meta og:title tags')->size(1);\n\t\t$metaOgTitle=$metaOgTitle[0]; $metaOgTitleContent=hdecode($metaOgTitle->content);\n\t\t$this->check($metaOgTitleContent,'Meta og:title')->doubleSpace();\n\t\t\n\t\t\n\t\treturn array('metaTitle'=>$metaTitle,'title'=>$metaTitleText,\n\t\t\t\t'metaDescription'=>$metaDescription,'description'=>$metaDescriptionContent,\n\t\t\t\t'metaKeywords'=>$metaKeywords,'keywords'=>$metaKeywordsContent,\n\t\t\t\t'meta_og_siteName'=>$metaOgSiteName, 'og_siteName'=>$metaOgSiteNameContent,\n\t\t\t\t'meta_og_title'=>$metaOgTitle, 'og_title'=>$metaOgTitleContent\n\t\t);\n\t}", "title": "" }, { "docid": "ff35db1589a202c5e1c249a9022ed8c4", "score": "0.5470947", "text": "function rest_api_provider_meta() {\n register_rest_field('provider', 'provider_meta', array(\n 'get_callback' => 'get_provider_meta',\n 'update_callback' => null,\n 'schema' => null,\n )\n\t);\n\tregister_rest_field('location', 'location_meta', array(\n\t\t\t'get_callback' => 'get_location_meta',\n\t\t\t'update_callback' => null,\n\t\t\t'schema' => null,\n\t\t)\n\t);\n\tregister_rest_field('expertise', 'expertise_meta', array(\n\t\t\t'get_callback' => 'get_expertise_meta',\n\t\t\t'update_callback' => null,\n\t\t\t'schema' => null,\n\t\t)\n\t);\n\tregister_rest_field('condition', 'condition_meta', array(\n\t\t\t'get_callback' => 'get_condition_meta',\n\t\t\t'update_callback' => null,\n\t\t\t'schema' => null,\n\t\t)\n\t);\n\tregister_rest_field('treatment', 'treatment_meta', array(\n\t\t\t'get_callback' => 'get_treatment_meta',\n\t\t\t'update_callback' => null,\n\t\t\t'schema' => null,\n\t\t)\n\t);\n\tregister_rest_field('clinical-resource', 'resource_meta', array(\n\t\t\t'get_callback' => 'get_resource_meta',\n\t\t\t'update_callback' => null,\n\t\t\t'schema' => null,\n\t\t)\n\t);\n}", "title": "" }, { "docid": "9df5155ea9e1dffe2ab21af5ab3b717c", "score": "0.54657763", "text": "protected function getMetaData(Response $response)\n {\n $links = array();\n\n foreach (explode(\"\\n\", $response->getBody()) as $link) {\n $elements = $this->decodeLink($link);\n\n if (!isset($elements['rel'], $elements['datetime'])) {\n continue;\n }\n\n $links[] = new Snapshot(\\DateTime::createFromFormat('D, d M Y H:i:s \\G\\M\\T', $elements['datetime']), substr($elements['link'], 1, -1));\n }\n\n return $links;\n }", "title": "" }, { "docid": "b305d71f903b31a3fda03694b2544096", "score": "0.5459565", "text": "protected function htmlMeta()\n {\n }", "title": "" }, { "docid": "a6f346cb4c45edf151af5236265b0b8a", "score": "0.54551417", "text": "private function getInstanceMetadata()\n {\n $response = null;\n $httpClient = $this->httpClientFactory->create();\n try {\n // Doc: https://docs.aws.amazon.com/en_us/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-data-retrieval\n $httpClient->setUri('http://169.254.169.254/latest/meta-data/');\n $httpClient->setMethod(\\Zend_Http_Client::GET);\n $httpClient->setHeaders('Accept', 'application/json');\n $httpClient->setConfig([\n 'timeout' => 2 // Response should be quick\n ]);\n $response = $httpClient->request();\n } catch (\\Zend_Http_Client_Exception $e) {\n return false;\n }\n\n return $response !== null ? $response->getBody() : false;\n }", "title": "" }, { "docid": "b5195b39144e892c9b62f5873a209821", "score": "0.545364", "text": "private function _updateMetaData()\n {\n $langCode = $this->getLangCode();\n $aDictionary = $this->_aDictionaries[$langCode];\n $aMetaData = array(\n '__SGL_UPDATED_BY' => SGL_Session::getUsername(),\n '__SGL_UPDATED_BY_ID' => SGL_Session::getUid(),\n '__SGL_LAST_UPDATED' => SGL_Date::getTime(true)\n );\n // we do it in this way to put meta data first in array\n foreach ($aMetaData as $k => $v) {\n if (isset($aDictionary[$k])) {\n unset($aDictionary[$k]);\n }\n }\n $this->_aDictionaries[$langCode] = $aMetaData + $aDictionary;\n }", "title": "" }, { "docid": "5aac176e4c1affd36572024f2910241d", "score": "0.5439848", "text": "private function processGETResponse($response) {\n $song_info = $response[\"response\"][\"songs\"][0];\n $this->title = $song_info[\"title\"];\n $this->artist_name = $song_info[\"artist_name\"];\n $this->song_type = implode(', ', $song_info[\"song_type\"]);\n $this->artist_id = $song_info[\"artist_id\"];\n\n $audio_summary_array = $song_info[\"audio_summary\"];\n $this->key = $audio_summary_array[\"key\"];\n $this->energy = $audio_summary_array[\"energy\"];\n $this->liveness = $audio_summary_array[\"liveness\"];\n $this->tempo = $audio_summary_array[\"tempo\"];\n $this->speechiness = $audio_summary_array[\"speechiness\"];\n $this->acousticness = $audio_summary_array[\"acousticness\"];\n $this->instrumentalness = $audio_summary_array[\"instrumentalness\"];\n $this->mode = $audio_summary_array[\"mode\"];\n $this->time_signature = $audio_summary_array[\"time_signature\"];\n $this->duration = $audio_summary_array[\"duration\"];\n $this->loudness = $audio_summary_array[\"loudness\"];\n $this->valence = $audio_summary_array[\"valence\"];\n $this->danceability = $audio_summary_array[\"danceability\"];\n }", "title": "" } ]
6473bd197f1ccb5d3f46e64feb74ffaf
Load authors data if the site enabled it.
[ { "docid": "18e833feddcc1b5a145353783518fc78", "score": "0.8300532", "text": "protected function loadAuthors(): void\n {\n if ($this->site instanceof WithAuthorsInterface) {\n $this->blogData['authors'] = $this->loadData(\n 'users',\n $this->site->getAuthorsFilters($this->blogData),\n [$this->site, 'dataAuthor'],\n $this->site->getAuthorValue(),\n $this->site->getAuthorKey()\n );\n }\n }", "title": "" } ]
[ { "docid": "ea62d0d689a5e95a253e87dc49ff4c57", "score": "0.6529532", "text": "public function wordfes2014_setup_author()\n\t{\n\n\t\tglobal $wp_query;\n\n\t\tif ( $wp_query->is_author()\n\t\t\t\t && isset( $wp_query->post ) ) {\n\n\t\t\t\t$GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author );\n\t\t}\n\t}", "title": "" }, { "docid": "40505f07921381d883e3171c32c696b3", "score": "0.64848346", "text": "function obtainAuthors()\n {\n $this->performRequest('GET', '/authors');\n }", "title": "" }, { "docid": "3042f5eb67280ea1b89f60f2985c3d72", "score": "0.64624894", "text": "function writ_setup_author() {\n\tglobal $wp_query;\n\n\tif ( $wp_query->is_author() && isset( $wp_query->post ) ) {\n\t\t$GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author );\n\t}\n}", "title": "" }, { "docid": "d702b06cf301c6786408b7847c4dd3f9", "score": "0.6337765", "text": "private function _processAuthors()\n\t{\n\t\t$authorDao = DAORegistry::getDAO('AuthorDAO');\n\n\t\t$userGroupId = null;\n\t\t$userGroupDao = DAORegistry::getDAO('UserGroupDAO');\n\t\t$userGroupIds = $userGroupDao->getUserGroupIdsByRoleId(ROLE_ID_AUTHOR, $this->_journal->getId());\n\t\tif (!empty($userGroupIds)) $userGroupId = $userGroupIds[0];\n\n\t\t$contributorNode = $this->_articleNode->getChildByName('authors');\n\t\tif (!$contributorNode) {\n\t\t\t// No authors present, create default 'N/A' author\n\t\t\t$author = $this->_createEmptyAuthor($userGroupId);\n\t\t\t$authorDao->insertObject($author);\n\t\t} else {\n\t\t\t// Otherwise, parse all author names first\n\t\t\tfor ($index=0; ($node = $contributorNode->getChildByName('author', $index)); $index++) {\n\t\t\t\tif (!$node) continue;\n\t\t\t\t$author = $this->_handleAuthorNode(\n\t\t\t\t\t\t$node,\n\t\t\t\t\t\t$index,\n\t\t\t\t\t\t$userGroupId\n\t\t\t\t);\n\t\t\t\tif ($author) $authorDao->insertObject($author);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f69c4b47e68ee8500ba5fb39198a5d0a", "score": "0.62179774", "text": "function _pensoft_publication_xml_load_author($value) {\n $collection = reset(entity_load('field_collection_item', array($value)));\n if (empty($collection->field_publication_author_user[LANGUAGE_NONE][0]['uid'])) {\n // It's possible to create a field collection without an author. If this was done,\n // just ignore it.\n return NULL;\n }\n $wrapper = entity_metadata_wrapper('field_collection_item', $collection);\n $author = _publication_xml_load_user($collection->field_publication_author_user[LANGUAGE_NONE][0]['uid']);\n if ($wrapper->field_publication_author_rights->value()) {\n $author->processed_rights = $wrapper->field_publication_author_rights->value();\n }\n if ($wrapper->field_publication_author_submit->value()) {\n $author->processed_submit = 1;\n } else {\n $author->processed_submit = 0;\n }\n\n return $author;\n}", "title": "" }, { "docid": "502198a97292fdc08cd6e696612355a1", "score": "0.6144699", "text": "public function byAuthor() {\n\t\tif($this->isExternal()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif(in_array($this->getUser()->getUser(), $this->getArticle()->getAuthors())) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "672dd28783c074315e2fba5ffb1ec489", "score": "0.61154884", "text": "function authors() {\n\tglobal $app, $globalSettings, $bbs;\n\n\t$grouped_authors = $bbs->allAuthors();\t\t\n\t$app->render('authors.html',array(\n\t\t'page' => mkPage($globalSettings['langa']['authors'],3), \n\t\t'authors' => $grouped_authors));\n}", "title": "" }, { "docid": "6b3f3054c182aaa2ac61c7590b689a65", "score": "0.6023835", "text": "public function authors()\n {\n echo json_encode($this->quotes->all_authors());\n }", "title": "" }, { "docid": "258832a9aec2a51913dc71ddd91258ac", "score": "0.5952095", "text": "public function getAuthors();", "title": "" }, { "docid": "258832a9aec2a51913dc71ddd91258ac", "score": "0.5952095", "text": "public function getAuthors();", "title": "" }, { "docid": "35ff0b3540c202d212bf31aa76d6642c", "score": "0.59349966", "text": "public function getAuthors()\n {\n if (array_key_exists('authors', $this->_data)) {\n return $this->_data['authors'];\n }\n\n $authors = $this->getExtension('Atom')->getAuthors();\n\n $this->_data['authors'] = $authors;\n\n return $this->_data['authors'];\n }", "title": "" }, { "docid": "097de6bcbbe83017c716fb8ae1049575", "score": "0.58512807", "text": "function additional_authors_the_authors( $post_id = NULL, $additional_vars = null ) {\n\tglobal $additional_authors;\n\t$additional_authors->render->the_authors( $post_id, $additional_vars );\n}", "title": "" }, { "docid": "b0d36e7be6478d78f36c43db4de9fec8", "score": "0.5842138", "text": "function csco_coauthors_enabled() {\n\t\tif ( class_exists( 'Powerkit' ) && class_exists( 'CoAuthors_Plus' ) ) {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "33c4096f535486933803fe6a1efcadcd", "score": "0.5765624", "text": "public function getAuthors(){\n $this->autoRender = FALSE;\n $authors = $this->Authors->find('all')\n ->select(array('Authors.id', 'Authors.first_name', 'Authors.last_name', 'Authors.date_of_birth'))\n ->all();\n if($authors->isEmpty){\n return json_encode('We couldn\\'t find any author with these credentials.');\n }\n echo json_encode($authors);\n }", "title": "" }, { "docid": "ce3b07c2f638e5ca4ab58c71634cb367", "score": "0.57506794", "text": "function getAuthors()\n {\n return $this->_authors;\n }", "title": "" }, { "docid": "3cc599da6e4bd2876005be7ae11f19a8", "score": "0.5687242", "text": "function _get_authors()\n\t{\n\n\t\t// Return data if already cached\n\t\tif($this->EE->session->cache('zenbu', 'authors'))\n\t\t{\n\t\t\treturn $this->EE->session->cache('zenbu', 'authors');\n\t\t}\n\n\t\t$output = array();\n\t\t// First check if user can see other member's entries. If they can't, no point in populating this field any more.\n\t\tif($this->EE->session->userdata['can_view_other_entries'] == 'n')\n\t\t{\n\t\t\treturn $output;\n\t\t}\n\t\t\n\t\t$results = $this->EE->db->query(\"/* Zenbu _get_authors */ \\n SELECT exp_members.member_id, exp_members.screen_name FROM exp_members\");\n\t\t\n\t\tif($results->num_rows() > 0)\n\t\t{\n\t\t\tforeach($results->result_array() as $row)\n\t\t\t{\n\t\t\t\t$output[$row['member_id']] = $row['screen_name'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t$results->free_result();\n\n\t\t$this->EE->session->set_cache('zenbu', 'authors', $output);\n\n\t\treturn $output;\n\t\n\t}", "title": "" }, { "docid": "2006449eded034d96979564ce1b37938", "score": "0.5638981", "text": "function author($ads) { $this->data['author'] = $ads; }", "title": "" }, { "docid": "13144deaa2673c74f1ae7459228979a6", "score": "0.5614305", "text": "function isAuthor(){\n return ($this->userlevel == AUTHOR_LEVEL ||\n $this->userlevel == ADMIN_LEVEL);\n }", "title": "" }, { "docid": "5b5a3bc61831b73ee5e10d3f6272801a", "score": "0.5593799", "text": "function isAuthor(){\n\t\treturn ($this->userType == 'author');\n\t}", "title": "" }, { "docid": "aeb884203dfdd13b5961fe06ec689650", "score": "0.55918247", "text": "protected function isAuthor() {\n return $this->getSocialUser() &&\n $this->getSocialUser()->ID === $this->connectObj->CreatedBySocialUser->ID;\n }", "title": "" }, { "docid": "c211af108984b852bff76a21f0212ada", "score": "0.5581176", "text": "public function authors()\n {\n return $this->get('/authors');\n }", "title": "" }, { "docid": "d2958831d34bc5a871484112c86fcbaa", "score": "0.55560225", "text": "function _pensoft_publication_xml_load_biblio_author($value) {\n $biblio_author = array(1,2,3,4,5);\n if (in_array($value['auth_type'], $biblio_author)) {\n return (object)$value;\n } else {\n return NULL;\n }\n}", "title": "" }, { "docid": "fc31c3b5621801d66e52dfe5ba2fd90e", "score": "0.55556357", "text": "function zzz(){\n $this->data['pagebody'] = 'justone'; // this is the view we want shown\n // build the list of authors, to pass on to our view\n $source = $this->quotes->get(1);\n\n $authors = array('who' => $source['who'], 'what' => $source['what'], 'mug' => $source['mug']);\n\n $this->data = array_merge($this->data, $authors);\n\n $this->render();\n }", "title": "" }, { "docid": "ce671f457a3788445502d30ab4b93f74", "score": "0.555497", "text": "public function article_author() {\n\t\t$author = Helper::get_user_meta( 'twitter_author', $GLOBALS['post']->post_author );\n\t\t$author = $author ? $author : get_user_meta( $GLOBALS['post']->post_author, 'twitter', true );\n\t\t$author = $this->get_twitter_id( ltrim( trim( $author ), '@' ) );\n\n\t\tif ( Str::is_non_empty( $author ) ) {\n\t\t\t$this->tag( 'twitter:creator', '@' . $author );\n\t\t} elseif ( Str::is_non_empty( $this->site ) ) {\n\t\t\t$this->tag( 'twitter:creator', '@' . $this->site );\n\t\t}\n\t}", "title": "" }, { "docid": "4315abf44c504de90e9207688774c7be", "score": "0.55383986", "text": "private function _setAuthor()\n {\n $user = UserFactory::create();\n $this->author = [\n 'email' => $user->get('email'),\n 'displayName' => $user->get('displayName'),\n 'authorId' => $user->get('employeeId'),\n ];\n }", "title": "" }, { "docid": "2491d7e115a6ed7ddb2b8a3a70a7d13b", "score": "0.55287427", "text": "protected function _getAuthor(){\r\n\t\t$criteria = array('contentcreator' => $this->_author);\r\n\t\t$personModel = $this->getModel('person');\r\n\t\treturn $personModel->getPerson($criteria);\r\n\t}", "title": "" }, { "docid": "76a3e240ef7b9d7c620583f27f5140ea", "score": "0.5524971", "text": "function _passed_reject_authors() {\n\t\t$reject_authors = $this->_config->get_array( 'pgcache.reject.authors' );\n\t\tif ( !empty( $reject_authors ) ) {\n\t\t\tif ( $author = get_the_author_meta( 'user_login' ) ) {\n\t\t\t\tif ( in_array( $author, $reject_authors ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.5514595", "text": "public function getAuthor();", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.5514595", "text": "public function getAuthor();", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.5514595", "text": "public function getAuthor();", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.5514595", "text": "public function getAuthor();", "title": "" }, { "docid": "9abc4f4188dff85bd0acf66ab96e36a9", "score": "0.5514595", "text": "public function getAuthor();", "title": "" }, { "docid": "b95fead113137dddcdd80c0bb216bbf3", "score": "0.549639", "text": "function b_ams_author_show($options)\n{\n if (!isset($options[3])) {\n $options[3] = 'average';\n }\n include_once XOOPS_ROOT_PATH . '/modules/AMS/class/class.newsstory.php';\n $block = array();\n $authors = AmsStory::getAuthors($options[1], $options[0], $options[2], $options[3]);\n if (is_array($authors) && count($authors) > 0) {\n $block['authors'] = $authors;\n }\n return $block;\n}", "title": "" }, { "docid": "7a19bf947b4dc83c0ba7bf026c5b029e", "score": "0.54848015", "text": "private function appendAuthors($pageData)\n {\n $pageData->each(function($item, $key) {\n $item->author = $item->user->name;\n });\n\n return $pageData;\n }", "title": "" }, { "docid": "be43eb24f600dacbe027bf28c8b9d54f", "score": "0.5467435", "text": "public function isUserAuthor()\n {\n\t return Yii::$app->user->identity->id === $this->getUserAuthor();\n }", "title": "" }, { "docid": "e530860a4e371491e7d90f2384df8480", "score": "0.5456017", "text": "public function init()\n {\n //Get all all authors with their articles\n\t $query = Maestro::find();\n\t\tforeach($query->all() as $pro) {\n\t\t\t//Add rows with the Author, # of articles and last publishing date\n\t\t\t$this->allModels[] = [\n\t\t\t\t'IdMaestro' => $pro->idMaestro,\n\t\t\t\t'Nombre' => $pro->nombre,\n\t\t\t\t'Foto' => $pro->imagen,\n\t\t\t\t'UserID' => $pro->user_id,\n\t\t\t\t'Descripcion' => $pro->descripcion,\n\t\t\t\t'Facebook' => $pro->linkFace,\n\t\t\t\t'Twitter' => $pro->linkTwitter,\n\t\t\t\t'Google+' => $pro->linkGoogle,\n\t\t\t\t'Instagram' => $pro->linkInstagram,\n\t\t\t];\n\t\t}\n\t}", "title": "" }, { "docid": "9028dc82b6f9144968bf2ea9873de747", "score": "0.5448916", "text": "private function updateBookAuthors() {\n $this->_registry->getObject('db')->delete('book_authors', $this->_bookId, 'book_id');\n $this->insertBookAuthors();\n }", "title": "" }, { "docid": "50d9d0e44ddb2220fb6c4630229849a4", "score": "0.5446913", "text": "public function getAuthors()\n {\n return $this->authors;\n }", "title": "" }, { "docid": "4a64a352e6ee929dc361513e4008cae3", "score": "0.54395276", "text": "public function getAuthors() {\n\t\treturn self::$authors;\n\t}", "title": "" }, { "docid": "77b7e492cea255898784f8aedf89a740", "score": "0.5419403", "text": "public function author()\n {\n $this->load->module('author');\n $this->author->index();\n }", "title": "" }, { "docid": "7c8e26ae46a42c92a59a32c42e456ed0", "score": "0.5416367", "text": "public function buildAuthorities()\n {\n $this->authorities = array();\n }", "title": "" }, { "docid": "586a49ca79cd2d3ae70a019a447fb9b4", "score": "0.5414018", "text": "public function getAuthorInfo()\n {\n return $this->authorInfo;\n }", "title": "" }, { "docid": "b8094fb1dc408ed2541c16d78c16f497", "score": "0.54012406", "text": "public function get_html_authors() {\n\n $html = '<tr class=\"wm-widget-sub-title\"><td>{{author-title}}:</td></tr>';\n\n /**\n * Display the authors section using Wiki Modern Authors and Contributors plugin\n * data or default to the standard WordPress Post author.\n */\n if( $this->_aacp ){\n // TODO: Make the plugin and remove this! The proper way should be to overide this function.\n /** Gather all authors. */\n\n /** Gather all co-authors. */\n\n /** Gather all contributors. */\n } else {\n /** Use default WordPress Post author. */\n $post = get_post();\n $author = get_the_author_meta( 'display_name', $post->post_author );\n $html .= '<tr class=\"wm-widget-info\"><td>' . $author . '</td></tr>';\n /** Replace the author title to be singular. */\n $html = str_replace( '{{author-title}}', 'Author', $html );\n }\n\n return $html;\n }", "title": "" }, { "docid": "ef0e705aa2c8807b874bfefa685b4f4d", "score": "0.539599", "text": "public static function listAuthors() {\n $sql = \"SELECT ID_AUTHOR, NAME, YEAROFBIRTH FROM `author` ORDER BY ID_AUTHOR DESC\";\n $result = self::execQuery ($sql);\n $authors = false;\n if(isset($result)){\n $authors = $result->fetchAll(PDO::FETCH_ASSOC);\n }\n return $authors;\n }", "title": "" }, { "docid": "2c3cd7a4dd9c84a1daedb7a8acf7dddb", "score": "0.53883916", "text": "function _loadData() {\r\n // Lets load the content if it doesn't already exist\r\n if (empty($this->_data)) {\r\n $query = 'SELECT * '.\r\n ' FROM #__artists AS w' .\r\n ' WHERE w.id = '.(int) $this->_id;\r\n $this->_db->setQuery($query);\r\n $this->_data = $this->_db->loadObject();\r\n return (boolean) $this->_data;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "dba3725948a572b0e7827d6904749c2f", "score": "0.5376685", "text": "public function get_authors() {\n\n\t\t$authors = get_coauthors( $this->get_id() );\n\t\tforeach ( $authors as $key => &$author ) {\n\t\t\tif ( 'guest-author' == $author->type ) {\n\t\t\t\tif ( class_exists( 'Guest_Author' ) ) {\n\t\t\t\t\t$author = new Guest_Author( $author );\n\t\t\t\t} else {\n\t\t\t\t\t$author = new User( $author );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$author = new User( $author );\n\t\t\t}\n\t\t}\n\t\treturn $authors;\n\t}", "title": "" }, { "docid": "09eafd7169ad129198d1cc9c4dcf0659", "score": "0.5376315", "text": "public function getAuthors()\n {\n return $this->_authors;\n }", "title": "" }, { "docid": "d6130cf54dc25fdc9ad220dfbd26cc89", "score": "0.5356929", "text": "function index()\n {\n $this->data['pagebody'] = 'justone';\n \n // build the list of authors, to pass on to our view\n $source = $this->quotes->get('4');\n \n // accesses data array and loads the data stored in the array\n $this->data['mug'] = $source['mug'];\n $this->data['who'] = $source['who'];\n $this->data['what'] = $source['what'];\n\n $this->render();\n }", "title": "" }, { "docid": "baf7fc695e7f3219ad3edfc7fbfd2714", "score": "0.5346593", "text": "public function testGetAllAuthors()\n {\n $user = User::all()->first();\n $token = JWTAuth::fromUser($user);\n\n $response = $this->withHeader('Authorization', 'Bearer ' . $token)->get('book/author');\n $response\n ->assertStatus(200);\n }", "title": "" }, { "docid": "26b1fcf9f576b96cbfa05391a0172bad", "score": "0.53327984", "text": "public function getAuthorities();", "title": "" }, { "docid": "1080195ef32e62dea3b0af9c5e44ddea", "score": "0.53285265", "text": "public static function getAuthors() {\n $sql = \"SELECT ID_AUTHOR, NAME FROM `AUTHOR` ORDER BY ID_AUTHOR ASC\";\n $result = self::execQuery ($sql);\n $authors = null;\n if(isset($result)){\n $authors = $result->fetchAll(PDO::FETCH_ASSOC);\n }\n return $authors; \n }", "title": "" }, { "docid": "7297165dc61a13c2919f3072408ee5c4", "score": "0.53196657", "text": "public function skip_authors( $data, $meta ) {\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "0b9ec23f07654e2435dcde6db46faf16", "score": "0.5309129", "text": "function index() {\n $this->data['pagebody'] = 'justone'; // this is the view we want shown\n // build the list of authors, to pass on to our view\n $source = $this->quotes->first();\n\n $authors = array('who' => $source['who'], 'what' => $source['what'], 'mug' => $source['mug']);\n\n $this->data = array_merge($this->data, $authors);\n\n $this->render();\n }", "title": "" }, { "docid": "7b7a56ceade35aeea7af9d2ccb5073c8", "score": "0.53083104", "text": "public function getAuthor()\n {\n return (isset($this->data['author'])) ? $this->data['author'] : null;\n }", "title": "" }, { "docid": "e5295d1528ea197a63e36bc361ca0169", "score": "0.53009355", "text": "public function fillAuthor(): void\n {\n $this->author = new User($this->authorId);\n }", "title": "" }, { "docid": "ac38cec61df860c9bfcc41d55ed7a34c", "score": "0.5300557", "text": "public function loadData()\n {\n // TODO: load extra data e.g. from DB\n }", "title": "" }, { "docid": "e11ea526636bbdba729d2dedf5bf417f", "score": "0.5276439", "text": "function filterAuthor(array $data): bool\n{\n\t\t$URLAuthorId = $_GET['id'];\n\t\treturn $data['id'] == $URLAuthorId;\n}", "title": "" }, { "docid": "c6629e4371aab7fd8f21c125d942393b", "score": "0.5272085", "text": "function discussion_post_info_author($config){\n\t\t$default_config = array(\n\t\t\t'author' => ''\n\t\t);\n\n $params = (shortcode_atts($default_config, $config));\n\n\t\tif($params['author'] == 'yes'){\n\t\t\tdiscussion_get_module_template_part('templates/parts/post-info/post-info-author', 'blog', '', $params);\n\t\t}\n\t}", "title": "" }, { "docid": "36a61dcc1fecf228a9ef8b9876c83bad", "score": "0.52649224", "text": "function addAuthor($order, $code, $name, $lastname, $mail, $webpage, \n\t\t $institutions)\n {\n $this->_authors[$order] = array('code' => $code,\n\t\t\t\t 'name' => $name,\n\t\t\t\t 'lastname' => $lastname,\n\t\t\t\t 'mail' => $mail,\n\t\t\t\t 'webpage' => $webpage,\n\t\t\t\t 'institutions' => $institutions);\n return true;\n }", "title": "" }, { "docid": "c3cf740483ca8c68baf4cc623bb2b145", "score": "0.52565306", "text": "public function step_authors()\n\t{\n\t\t// Incoming\n\t\t$id = Request::getInt('id', 0);\n\n\t\t// Ensure we have an ID to work with\n\t\tif (!$id)\n\t\t{\n\t\t\tApp::abort(404, Lang::txt('COM_CONTRIBUTE_NO_ID'));\n\t\t}\n\n\t\t// Load the resource\n\t\t$row = Entry::oneOrFail($id);\n\n\t\t// Get groups\n\t\t$groups = User::groups('members');\n\n\t\t$this->_checkProgress($id);\n\n\t\t// Output HTML\n\t\t$this->view\n\t\t\t->set('row', $row)\n\t\t\t->set('id', $id)\n\t\t\t->set('groups', $groups)\n\t\t\t->set('next_step', $this->step + 1)\n\t\t\t->set('task', 'draft')\n\t\t\t->set('progress', $this->progress)\n\t\t\t->setErrors($this->getErrors())\n\t\t\t->display();\n\t}", "title": "" }, { "docid": "767bbd1d43026126ddae8ab3fad6816f", "score": "0.524882", "text": "public function _replyToAddAuthorTableFilter() {\n \n if ( ! $this->oProp->bEnableAuthorTableFileter ) { return; }\n \n if ( \n ! ( isset( $_GET['post_type'] ) && post_type_exists( $_GET['post_type'] ) \n && in_array( strtolower( $_GET['post_type'] ), array( $this->oProp->sPostType ) ) ) \n ) {\n return;\n }\n \n wp_dropdown_users( array(\n 'show_option_all' => 'Show all Authors',\n 'show_option_none' => false,\n 'name' => 'author',\n 'selected' => ! empty( $_GET['author'] ) ? $_GET['author'] : 0,\n 'include_selected' => false\n ));\n \n }", "title": "" }, { "docid": "82e5eb003b4eb52ca48755cb36a79460", "score": "0.5239068", "text": "public function getIsAuthorScope() {\n\t\treturn ($this->scope == 'authors');\n\t}", "title": "" }, { "docid": "2637bd4c8fd22dccd30468ec85f16dce", "score": "0.52388954", "text": "public function testGettingAnAuthor()\n {\n $blog = $this->contextBasicBlog();\n $this->createTestAuthor();\n $this->manager->commit();\n $author = $this->manager->getAuthor('Pedro');\n $this->assertEquals('Pedro', $author->getName());\n }", "title": "" }, { "docid": "7fab396da473600fb82181c5ac828a08", "score": "0.5210204", "text": "private function set_data() {\n $maybe_id = get_queried_object_id();\n\n if ( is_singular() ) {\n $data = $this->prepare_post_data( $maybe_id );\n } elseif ( is_author() ) {\n // @TODO Currently broken, see https://github.com/spiritedmedia/spiritedmedia/issues/3087\n $user = new User( $maybe_id );\n $name = Utils::sanitize_string_for_json( 'Author — ' . $user->get_display_name() );\n $data = [\n 'name' => $name,\n 'url' => $user->get_permalink(),\n ];\n } elseif ( is_archive() ) {\n $name = Utils::sanitize_string_for_json( Frontend::get_archive_title() );\n $data = [\n 'name' => $name,\n ];\n } else {\n $data = [\n 'name' => PEDESTAL_BLOG_NAME,\n 'url' => home_url(),\n ];\n }\n\n $data = wp_parse_args( $data, $this->data );\n\n if ( ! empty( $data['url'] ) ) {\n $data['mainEntityOfPage'] = $data['url'];\n }\n\n // Set these last in case the values have ended up empty after everything\n if ( empty( $data['description'] ) ) {\n $data['description'] = PEDESTAL_BLOG_TAGLINE;\n }\n if ( empty( $data['author'] ) ) {\n $data['author'] = $this->get_site_org_schema();\n }\n if ( empty( $data['creator'] ) ) {\n $data['creator'] = $this->get_site_org_schema();\n }\n\n $this->data = $data;\n }", "title": "" }, { "docid": "6c331c2aee9249b2ed9b6f19b8e39200", "score": "0.51918006", "text": "private function isArticleLoaded() {\n\t\tif($this->article === null || !is_array($this->article) ) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "f5ea73d7c8d70e032405436790643761", "score": "0.51830786", "text": "function wpdocs_my_display_callback( $post ) {\nglobal $post;\n\t\t$args = array(\n\t'blog_id' => $GLOBALS['blog_id'],\n\t'role' => 'author',\n\t'meta_key' => '',\n\t'meta_value' => '',\n\t'meta_compare' => '',\n\t'meta_query' => array(),\n\t'date_query' => array(), \n\t'include' => array(),\n\t'exclude' => array(),\n\t'orderby' => 'login',\n\t'order' => 'ASC',\n\t'offset' => '',\n\t'search' => '',\n\t'number' => '',\n\t'count_total' => false,\n\t'fields' => 'all',\n\t'who' => ''\n ); \n $authors=get_users( $args );\n $values = get_post_meta( $post->ID,'check',true );\n\n // We'll use this nonce field later on when saving.\n wp_nonce_field( 'my_meta_box_nonce', 'meta_box_nonce' );\n\n foreach ($authors as $auth ):\n \t$checked = '';\n \tif(is_array($values) and in_array($auth->ID,$values))\n \t\t$checked = 'checked=\"checked\"';\n \t?>\n\n\t <input type=\"checkbox\" name=\"check[]\" value=\"<?php echo $auth->ID; ?>\" <?php echo $checked; ?>><?php echo $auth->display_name; ?></input><br><br>\n\n<?php endforeach;\n}", "title": "" }, { "docid": "06b2bc6485c7c0c59cac30cd5342fbce", "score": "0.5164207", "text": "public function do_authors_sitemap( $page = 1 ) {\n\t\t$authors = get_users( apply_filters( 'alley_sitemap_user_args', array(\n\t\t\t'orderby' => 'ID',\n\t\t\t'order' => 'ASC',\n\t\t\t'who' => 'authors',\n\t\t\t'number' => 1000,\n\t\t\t'offset' => ( $page * 1000 ) - 1000\n\t\t) ) );\n\n\t\tforeach ( $authors as $author ) {\n\t\t\techo $this->author_sitemap_entry( $author );\n\t\t}\n\n\t\t// $this->update_transient( \"{$post_type}-posts-sitemap-{$page}.xml\", mysql2date( 'c', $post->post_modified_gmt ) );\n\t}", "title": "" }, { "docid": "33a7e2f4983c5909474d1cb1a63c90f4", "score": "0.5156699", "text": "abstract protected function load_user_data();", "title": "" }, { "docid": "faf95cd4cd94aa92ca315e124509c908", "score": "0.51550627", "text": "public function testAuthor() {\n\t\t$user = new User();\n\n\t\t$this->_testGetterSetter('getAuthor', 'setAuthor', $user);\n\t}", "title": "" }, { "docid": "3fbf7f8d518a75e381d4752f2583492d", "score": "0.5148453", "text": "public function isAuthor($user_id=NULL)\n\t{\n\t\t$wpa = new WikiTableAuthor($this->_db);\n\t\treturn $wpa->isAuthor($this->id, $user_id);\n\t}", "title": "" }, { "docid": "783e2a3f7529e4894f40d33d5bfab2f5", "score": "0.51444596", "text": "function switch_author() {\n\t\tif ( ! is_author() ) \n\t\t\treturn;\n\t\t$author_name = get_query_var('author_name');\n\t\t$key = array_search($author_name, $this->users);\n \tif ( $key ) {\n \t set_query_var('author_name', $key);\n\t $author = get_user_by('login', $key);\n\t set_query_var('author', $author->ID);\n\t } else {\n\t\t\tset_query_var('author_name', false);\n\t\t\tset_query_var('author', false);\n\t\t\tadd_action('template_redirect', array(&$this, 'redirect_404'));\n\t\t}\n\t}", "title": "" }, { "docid": "67ed1fd2abc8f07050a2c4971da5971a", "score": "0.51437", "text": "function getAuthors() {\n\t\t\tglobal $multi_prefix;\n\t\t$sql = \"\n\t\t\tSELECT *\n\t\t\tFROM {$multi_prefix}author\n\t\t\tORDER BY author_name\n\t\t\";\n\t\treturn getArrayFromSql(\"author_id\", $sql);\n\t}", "title": "" }, { "docid": "33558a8c3ab173ab6f4a30a999d30322", "score": "0.5143164", "text": "function objectiv_add_author_to_head() {\n\t?>\n\t<meta name=\"author\" content=\"<?php bloginfo( 'name' ); ?>\">\n\t<?php\n}", "title": "" }, { "docid": "4308d257215761c1199494d15f90f25b", "score": "0.51374847", "text": "function index() {\n $this->data['pagebody'] = 'justone'; // this is the view we want shown\n // build the list of authors, to pass on to our view\n $source = $this->quotes->first();\n \n $this->data['who'] = $source['who'];\n $this->data['mug'] = $source['mug'];\n $this->data['what'] = $source['what'];\n\n $this->render();\n }", "title": "" }, { "docid": "f35b42451a477f96a9a15a4227101aea", "score": "0.5131771", "text": "public static function getAuthors()\n {\n return self::query()->select('user_id', 'name', 'username')->groupBy('user_id', 'name')->join('@system_user', 'user_id = @system_user.id')->execute()->fetchAll();\n }", "title": "" }, { "docid": "19cc10775835b0dc4e2d46d3de07727e", "score": "0.51307726", "text": "function isAuthor( $user, $articleID )\r\n {\r\n if( !is_a( $user, \"eZUser\" ) )\r\n return false;\r\n\r\n $db =& eZDB::globalDatabase();\r\n $db->query_single( $res, \"SELECT AuthorID from eZArticle_Article WHERE ID='$articleID'\");\r\n $authorID = $res[$db->fieldName(\"AuthorID\")];\r\n if( $authorID == $user->id() )\r\n return true;\r\n\r\n return false;\r\n }", "title": "" }, { "docid": "72ef7d289df90d4e3beda9897e059970", "score": "0.5106824", "text": "function addCoAuthors($xpath, $ID) {\n $coAuthors = $xpath->query('//a[@class=\"gsc_rsb_lc\"]/@href');\n if ($coAuthors -> item(0)) {\n $gscaURL = $coAuthors-> item(0) ->nodeValue;\n $coAuthors = scrapper(\"scholar.google.pt\".$gscaURL);\n $authors = $coAuthors -> query('//h3[@class=\"gsc_1usr_name\"]');\n $links = $coAuthors -> query('//h3[@class=\"gsc_1usr_name\"]/a/@href');\n $coAuthorsList = createArray($authors);\n $coAuthorLinkList = createArray($links);\n $coAuthorCol = array();\n for($i = 0; $i < count($coAuthorsList); ++$i){\n $coAuthorCol[\"$coAuthorsList[$i]\"] = $coAuthorLinkList[$i];\n };\n foreach($coAuthorCol as $name => $URL) {\n $check = select_author($select = [], false, false, false, false, $link = $URL);\n if ($check -> num_rows == 0) {\n $coAuthorID = add_author($name, 'NULL', 'NULL', $link = $URL, 'NULL');\n $coAuthorID = intval($coAuthorID);\n } else {\n echo \"<p>[CO-AUTHOR] \".$name.\" already in the database.</p>\";\n $coAuthorID = select_author($select = [\"id\"], false, false, false, false, $link = $URL) ->fetch_array()[0];\n $coAuthorID = intval($coAuthorID);\n }\n $checkAuthCo = select_author_coauthors($ID, $select = [], $coAuthorID);\n if ($checkAuthCo -> num_rows == 0) {\n insert_author_coauthors($ID, [$coAuthorID]);\n }\n }\n }\n}", "title": "" }, { "docid": "c67bf1706edc9b0d931bb46b9a3f9f7a", "score": "0.5104295", "text": "function set_author($author = '')\n {\n $course_id = api_get_course_int_id();\n if ($this->debug > 0) { error_log('In aicc::set_author('.$author.') method', 0); }\n $lp = $this->get_id();\n if ($lp != 0) {\n $tbl_lp = Database::get_course_table(TABLE_LP_MAIN);\n $sql = \"UPDATE $tbl_lp SET author = '$author' WHERE c_id = \".$course_id.\" id = \".$lp;\n $res = Database::query($sql);\n return $res;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9193cdb35bae91927f2d77e56f31d861", "score": "0.51002467", "text": "public function getAuthors($id);", "title": "" }, { "docid": "72c359abef69692e622b811ec0c78362", "score": "0.5090469", "text": "public function getAuthors()\n\t\t{\n\t\t\t\n\t\treturn $this->hasOne(Authors::className(),['author_id'=>'id_author']);\t\n\t\t}", "title": "" }, { "docid": "93c0befbc45a13a014a15d8b51eeea04", "score": "0.5089105", "text": "function author_id ($unfamiliar_author = 'create') {\r\n\t\tglobal $wpdb;\r\n\r\n\t\t$a = $this->named['author'];\r\n\r\n\t\t$source = $this->source();\r\n\t\t$forbidden = apply_filters('feedwordpress_forbidden_author_names',\r\n\t\t\tarray('admin', 'administrator', 'www', 'root'));\r\n\t\t\r\n\t\t// Prepare the list of candidates to try for author name: name from\r\n\t\t// feed, original source title (if any), immediate source title live\r\n\t\t// from feed, subscription title, prettied version of feed homepage URL,\r\n\t\t// prettied version of feed URL, or, failing all, use \"unknown author\"\r\n\t\t// as last resort\r\n\r\n\t\t$candidates = array();\r\n\t\t$candidates[] = $a['name'];\r\n\t\tif (!is_null($source)) : $candidates[] = $source['title']; endif;\r\n\t\t$candidates[] = $this->link->name(/*fromFeed=*/ true);\r\n\t\t$candidates[] = $this->link->name(/*fromFeed=*/ false);\r\n\t\tif (strlen($this->link->homepage()) > 0) : $candidates[] = feedwordpress_display_url($this->link->homepage()); endif;\r\n\t\t$candidates[] = feedwordpress_display_url($this->link->uri());\r\n\t\t$candidates[] = 'unknown author';\r\n\t\t\r\n\t\t// Pick the first one that works from the list, screening against empty\r\n\t\t// or forbidden names.\r\n\t\t\r\n\t\t$author = NULL;\r\n\t\twhile (is_null($author) and ($candidate = each($candidates))) :\r\n\t\t\tif (!is_null($candidate['value'])\r\n\t\t\tand (strlen(trim($candidate['value'])) > 0)\r\n\t\t\tand !in_array(strtolower(trim($candidate['value'])), $forbidden)) :\r\n\t\t\t\t$author = $candidate['value'];\r\n\t\t\tendif;\r\n\t\tendwhile;\r\n\t\t\r\n\t\t$email = (isset($a['email']) ? $a['email'] : NULL);\r\n\t\t$authorUrl = (isset($a['uri']) ? $a['uri'] : NULL);\r\n\r\n\t\t\r\n\t\t$hostUrl = $this->link->homepage();\r\n\t\tif (is_null($hostUrl) or (strlen($hostUrl) < 0)) :\r\n\t\t\t$hostUrl = $this->link->uri();\r\n\t\tendif;\r\n\r\n\t\t$match_author_by_email = !('yes' == get_option(\"feedwordpress_do_not_match_author_by_email\"));\r\n\t\tif ($match_author_by_email and !FeedWordPress::is_null_email($email)) :\r\n\t\t\t$test_email = $email;\r\n\t\telse :\r\n\t\t\t$test_email = NULL;\r\n\t\tendif;\r\n\r\n\t\t// Never can be too careful...\r\n\t\t$login = sanitize_user($author, /*strict=*/ true);\r\n\r\n\t\t// Possible for, e.g., foreign script author names\r\n\t\tif (strlen($login) < 1) :\r\n\t\t\t// No usable characters in author name for a login.\r\n\t\t\t// (Sometimes results from, e.g., foreign scripts.)\r\n\t\t\t//\r\n\t\t\t// We just need *something* in Western alphanumerics,\r\n\t\t\t// so let's try the domain name.\r\n\t\t\t//\r\n\t\t\t// Uniqueness will be guaranteed below if necessary.\r\n\r\n\t\t\t$url = parse_url($hostUrl);\r\n\t\t\t\r\n\t\t\t$login = sanitize_user($url['host'], /*strict=*/ true);\r\n\t\t\tif (strlen($login) < 1) :\r\n\t\t\t\t// This isn't working. Frak it.\r\n\t\t\t\t$login = 'syndicated';\r\n\t\t\tendif;\r\n\t\tendif;\r\n\r\n\t\t$login = apply_filters('pre_user_login', $login);\r\n\r\n\t\t$nice_author = sanitize_title($author);\r\n\t\t$nice_author = apply_filters('pre_user_nicename', $nice_author);\r\n\r\n\t\t$reg_author = $wpdb->escape(preg_quote($author));\r\n\t\t$author = $wpdb->escape($author);\r\n\t\t$email = $wpdb->escape($email);\r\n\t\t$test_email = $wpdb->escape($test_email);\r\n\t\t$authorUrl = $wpdb->escape($authorUrl);\r\n\r\n\t\t// Check for an existing author rule....\r\n\t\tif (isset($this->link->settings['map authors']['name']['*'])) :\r\n\t\t\t$author_rule = $this->link->settings['map authors']['name']['*'];\r\n\t\telseif (isset($this->link->settings['map authors']['name'][strtolower(trim($author))])) :\r\n\t\t\t$author_rule = $this->link->settings['map authors']['name'][strtolower(trim($author))];\r\n\t\telse :\r\n\t\t\t$author_rule = NULL;\r\n\t\tendif;\r\n\r\n\t\t// User name is mapped to a particular author. If that author ID exists, use it.\r\n\t\tif (is_numeric($author_rule) and get_userdata((int) $author_rule)) :\r\n\t\t\t$id = (int) $author_rule;\r\n\r\n\t\t// User name is filtered out\r\n\t\telseif ('filter' == $author_rule) :\r\n\t\t\t$id = NULL;\r\n\t\t\r\n\t\telse :\r\n\t\t\t// Check the database for an existing author record that might fit\r\n\r\n\t\t\t// First try the user core data table.\r\n\t\t\t$id = $wpdb->get_var(\r\n\t\t\t\"SELECT ID FROM $wpdb->users\r\n\t\t\tWHERE TRIM(LCASE(display_name)) = TRIM(LCASE('$author'))\r\n\t\t\tOR TRIM(LCASE(user_login)) = TRIM(LCASE('$author'))\r\n\t\t\tOR (\r\n\t\t\t\tLENGTH(TRIM(LCASE(user_email))) > 0\r\n\t\t\t\tAND TRIM(LCASE(user_email)) = TRIM(LCASE('$test_email'))\r\n\t\t\t)\");\r\n\t\r\n\t\t\t// If that fails, look for aliases in the user meta data table\r\n\t\t\tif (is_null($id)) :\r\n\t\t\t\t$id = $wpdb->get_var(\r\n\t\t\t\t\"SELECT user_id FROM $wpdb->usermeta\r\n\t\t\t\tWHERE\r\n\t\t\t\t\t(meta_key = 'description' AND TRIM(LCASE(meta_value)) = TRIM(LCASE('$author')))\r\n\t\t\t\t\tOR (\r\n\t\t\t\t\t\tmeta_key = 'description'\r\n\t\t\t\t\t\tAND TRIM(LCASE(meta_value))\r\n\t\t\t\t\t\tRLIKE CONCAT(\r\n\t\t\t\t\t\t\t'(^|\\\\n)a\\\\.?k\\\\.?a\\\\.?( |\\\\t)*:?( |\\\\t)*',\r\n\t\t\t\t\t\t\tTRIM(LCASE('$reg_author')),\r\n\t\t\t\t\t\t\t'( |\\\\t|\\\\r)*(\\\\n|\\$)'\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\tendif;\r\n\r\n\t\t\t// ... if you don't find one, then do what you need to do\r\n\t\t\tif (is_null($id)) :\r\n\t\t\t\tif ($unfamiliar_author === 'create') :\r\n\t\t\t\t\t$userdata = array();\r\n\r\n\t\t\t\t\t// WordPress 3 is going to pitch a fit if we attempt to register\r\n\t\t\t\t\t// more than one user account with an empty e-mail address, so we\r\n\t\t\t\t\t// need *something* here. Ugh.\r\n\t\t\t\t\tif (strlen($email) == 0 or FeedWordPress::is_null_email($email)) :\r\n\t\t\t\t\t\t$url = parse_url($hostUrl);\r\n\t\t\t\t\t\t$email = $nice_author.'@'.$url['host'];\r\n\t\t\t\t\tendif;\r\n\r\n\t\t\t\t\t#-- user table data\r\n\t\t\t\t\t$userdata['ID'] = NULL; // new user\r\n\t\t\t\t\t$userdata['user_login'] = $login;\r\n\t\t\t\t\t$userdata['user_nicename'] = $nice_author;\r\n\t\t\t\t\t$userdata['user_pass'] = substr(md5(uniqid(microtime())), 0, 6); // just something random to lock it up\r\n\t\t\t\t\t$userdata['user_email'] = $email;\r\n\t\t\t\t\t$userdata['user_url'] = $authorUrl;\r\n\t\t\t\t\t$userdata['nickname'] = $author;\r\n\t\t\t\t\t$parts = preg_split('/\\s+/', trim($author), 2);\r\n\t\t\t\t\tif (isset($parts[0])) : $userdata['first_name'] = $parts[0]; endif;\r\n\t\t\t\t\tif (isset($parts[1])) : $userdata['last_name'] = $parts[1]; endif;\r\n\t\t\t\t\t$userdata['display_name'] = $author;\r\n\t\t\t\t\t$userdata['role'] = 'contributor';\r\n\t\t\t\t\t\r\n\t\t\t\t\tdo { // Keep trying until you get it right. Or until PHP crashes, I guess.\r\n\t\t\t\t\t\t$id = wp_insert_user($userdata);\r\n\t\t\t\t\t\tif (is_wp_error($id)) :\r\n\t\t\t\t\t\t\t$codes = $id->get_error_code();\r\n\t\t\t\t\t\t\tswitch ($codes) :\r\n\t\t\t\t\t\t\tcase 'empty_user_login' :\r\n\t\t\t\t\t\t\tcase 'existing_user_login' :\r\n\t\t\t\t\t\t\t\t// Add a random disambiguator\r\n\t\t\t\t\t\t\t\t$userdata['user_login'] .= substr(md5(uniqid(microtime())), 0, 6);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'existing_user_email' :\r\n\t\t\t\t\t\t\t\t// No disassemble!\r\n\t\t\t\t\t\t\t\t$parts = explode('@', $userdata['user_email'], 2);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Add a random disambiguator as a gmail-style username extension\r\n\t\t\t\t\t\t\t\t$parts[0] .= '+'.substr(md5(uniqid(microtime())), 0, 6);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t// Reassemble\r\n\t\t\t\t\t\t\t\t$userdata['user_email'] = $parts[0].'@'.$parts[1];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tendswitch;\r\n\t\t\t\t\t\tendif;\r\n\t\t\t\t\t} while (is_wp_error($id));\r\n\t\t\t\telseif (is_numeric($unfamiliar_author) and get_userdata((int) $unfamiliar_author)) :\r\n\t\t\t\t\t$id = (int) $unfamiliar_author;\r\n\t\t\t\telseif ($unfamiliar_author === 'default') :\r\n\t\t\t\t\t$id = 1;\r\n\t\t\t\tendif;\r\n\t\t\tendif;\r\n\t\tendif;\r\n\r\n\t\tif ($id) :\r\n\t\t\t$this->link->settings['map authors']['name'][strtolower(trim($author))] = $id;\r\n\t\t\t\r\n\t\t\t// Multisite: Check whether the author has been recorded\r\n\t\t\t// on *this* blog before. If not, put her down as a\r\n\t\t\t// Contributor for *this* blog.\r\n\t\t\t$user = new WP_User((int) $id);\r\n\t\t\tif (empty($user->roles)) :\r\n\t\t\t\t$user->add_role('contributor');\r\n\t\t\tendif;\r\n\t\tendif;\r\n\t\treturn $id;\t\r\n\t}", "title": "" }, { "docid": "61827854ba90fd5608591d209dfc2ed3", "score": "0.50879747", "text": "private function getAuthor() {\n\t\treturn $GLOBALS['USERINFO']['name'];\n\t}", "title": "" }, { "docid": "795a8bcb2beb670009d22946353bd03e", "score": "0.5073773", "text": "function obtainAuthor($author)\n {\n $this->performRequest('GET', \"/authors/{$author}\");\n }", "title": "" }, { "docid": "b27c17afa7ec44b410976b84c0b3ca15", "score": "0.5069247", "text": "function wpl_owt_authors_metabox() {\n add_meta_box(\"owt-author-id\", \"OWT Author Metabox\", \"wpl_owt_author_callback_function\", \"book\", \"side\", \"high\");\n}", "title": "" }, { "docid": "0ce580f2ba6301a5b98e8c858e9b1c51", "score": "0.5060416", "text": "private function metaAuthor(){\r\n echo '<meta name = \"author\" content = \"Quinten van Langen\"/>';\r\n }", "title": "" }, { "docid": "4bb8ca132cd6bb7feaa7f6400688879c", "score": "0.5058317", "text": "function setAuthor($author = \"\")\n\t{\n\t\tif (!$author)\n\t\t{\n\t\t\t$author = $this->ilias->account->fullname;\n\t\t}\n\t\t$this->author = $author;\n\t}", "title": "" }, { "docid": "03372a0d9b256b25b942e8d7f59e0efc", "score": "0.5056275", "text": "function setAuthor( $user )\r\n {\r\n if ( is_a( $user, \"eZUser\" ) )\r\n {\r\n $this->AuthorID = $user->id();\r\n }\r\n }", "title": "" }, { "docid": "2a8efee09859e02194b413a6c56f1023", "score": "0.50470376", "text": "private function load_data(){\n\t//\t$this->persons = Person::FindOrFail(2) ;\n\t\t//$this->relations = Family::getAll() ;\n\t}", "title": "" }, { "docid": "6296b1800f92ad5dd280a3af02b3e443", "score": "0.5044938", "text": "function inGroup() {\n global $serendipity;\n\n $checkgroups = explode('^', $this->get_config('hide_for_authors'));\n\n if (!isset($serendipity['authorid']) || !is_array($checkgroups)) {\n return false;\n }\n\n $mygroups =& serendipity_getGroups($serendipity['authorid'], true);\n if (!is_array($mygroups)) {\n return false;\n }\n\n foreach($checkgroups AS $key => $groupid) {\n if ($groupid == 'all') {\n return true;\n } elseif (in_array($groupid, $mygroups)) {\n return true;\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "3594f8570b9e2674ff2285e67b56b590", "score": "0.5039878", "text": "public function getauthors() {\n\t\t$authors = array();\t\n\n\t\t$nodes = $this->xpath->query(\"//author\");\n\t\tfor ($i=0; $i < $nodes->length; $i++) {\n\t\t\t$author = new Author();\n\n\t\t\t$names = $nodes->item($i)->getElementsByTagName(\"name\");\n\t\t\tif ($names->length > 0) {\n\t\t\t\t$author->name = $names->item(0)->textContent;\n\t\t\t} else {\n\t\t\t\t$author->name = \"\";\n\t\t\t}\n\n\t\t\t$titles = $nodes->item($i)->getElementsByTagName(\"email\");\n\t\t\tif ($titles->length > 0) {\n\t\t\t\t$author->email = $titles->item(0)->textContent;\n\t\t\t} else {\n\t\t\t\t$author->email = \"\";\n\t\t\t}\n\t\t\tarray_push($authors, $author);\n\t\t}\n\n\t\treturn $authors;\n\t}", "title": "" }, { "docid": "cdbecbe85ae2479aa55175c019fbab29", "score": "0.5039057", "text": "public function isAuthor(User $user = null)\n {\n return $user->getEmail() == $this->getAuthorEmail();\n\n }", "title": "" }, { "docid": "e1947315b5fda8092d28503ae3b84d65", "score": "0.50386894", "text": "function _initData() {\r\n // Lets load the content if it doesn't already exist\r\n if (empty($this->_data)) {\r\n $artist = new stdClass();\r\n $artist->id\t\t\t\t= 0;\r\n $artist->name\t\t\t\t= null;\r\n $artist->alias\t\t\t\t= null;\r\n $artist->description\t\t\t= null;\r\n\r\n // Artist fields\r\n $artist->picture\t\t\t\t= null;\r\n\r\n // Required fields\r\n $artist->published\t\t\t= 0;\r\n $artist->checked_out\t\t\t= 0;\r\n $artist->checked_out_time\t\t\t= 0;\r\n $artist->ordering\t\t\t\t= 0;\r\n $artist->params\t\t\t\t= null;\r\n $this->_data\t\t\t\t= $artist;\r\n return (boolean) $this->_data;\r\n }\r\n return true;\r\n }", "title": "" }, { "docid": "b3003df48323debb08f1914b7231ec57", "score": "0.5038214", "text": "function createAuthors($data)\n {\n $this->performRequest('POST', '/authors', $data);\n }", "title": "" }, { "docid": "a60823661171d444e01bfef094ac7aad", "score": "0.50381464", "text": "function amt_get_schemaorg_author_metatags( $author_id ) {\n//$author_obj = get_user_by( 'id', $author_id );\n\n $metadata_arr = array();\n\n // name\n $display_name = get_the_author_meta('display_name', $author_id);\n $metadata_arr[] = '<meta itemprop=\"name\" content=\"' . esc_attr( $display_name ) . '\" />';\n // description\n // Here we sanitize the provided description for safety\n $author_description = sanitize_text_field( amt_sanitize_description( get_the_author_meta('description', $author_id) ) );\n if ( !empty($author_description) ) {\n $metadata_arr[] = '<meta itemprop=\"description\" content=\"' . esc_attr( $author_description ) . '\" />';\n }\n\n // Profile Image\n $author_email = sanitize_email( get_the_author_meta('user_email', $author_id) );\n $avatar_size = apply_filters( 'amt_avatar_size', 128 );\n $avatar_url = '';\n // First try to get the avatar link by using get_avatar().\n // Important: for this to work the \"Show Avatars\" option should be enabled in Settings > Discussion.\n $avatar_img = get_avatar( get_the_author_meta('ID', $author_id), $avatar_size, '', get_the_author_meta('display_name', $author_id) );\n if ( ! empty($avatar_img) ) {\n if ( preg_match(\"#src=['\\\"]([^'\\\"]+)['\\\"]#\", $avatar_img, $matches) ) {\n $avatar_url = $matches[1];\n }\n } elseif ( ! empty($author_email) ) {\n // If the user has provided an email, we use it to construct a gravatar link.\n $avatar_url = \"http://www.gravatar.com/avatar/\" . md5( $author_email ) . \"?s=\" . $avatar_size;\n }\n if ( ! empty($avatar_url) ) {\n //$avatar_url = html_entity_decode($avatar_url, ENT_NOQUOTES, 'UTF-8');\n $metadata_arr[] = '<meta itemprop=\"image\" content=\"' . esc_url_raw( $avatar_url ) . '\" />';\n }\n\n // url\n // The URL to the author archive is added as the url.\n $metadata_arr[] = '<meta itemprop=\"url\" content=\"' . esc_url_raw( get_author_posts_url( $author_id ) ) . '\" />';\n // sameAs\n // Social Profile Links are added as sameAs properties\n // Those from the WordPress User Profile page are used.\n // Google+ Author\n $googleplus_author_url = get_the_author_meta('amt_googleplus_author_profile_url', $author_id);\n if ( !empty($googleplus_author_url) ) {\n $metadata_arr[] = '<meta itemprop=\"sameAs\" content=\"' . esc_url_raw( $googleplus_author_url, array('http', 'https') ) . '\" />';\n }\n // Facebook\n $facebook_author_url = get_the_author_meta('amt_facebook_author_profile_url', $author_id);\n if ( !empty($facebook_author_url) ) {\n $metadata_arr[] = '<meta itemprop=\"sameAs\" content=\"' . esc_url_raw( $facebook_author_url, array('http', 'https') ) . '\" />';\n }\n // Twitter\n $twitter_author_username = get_the_author_meta('amt_twitter_author_username', $author_id);\n if ( !empty($twitter_author_username) ) {\n $metadata_arr[] = '<meta itemprop=\"sameAs\" content=\"https://twitter.com/' . esc_attr( $twitter_author_username ) . '\" />';\n }\n // The User URL as set by the user in the WordPress User Profile page.\n $user_url = get_the_author_meta( 'user_url', $author_id );\n if ( !empty($user_url) ) {\n $metadata_arr[] = '<meta itemprop=\"sameAs\" content=\"' . esc_url_raw( $user_url, array('http', 'https') ) . '\" />';\n }\n\n // Allow filtering of the Author meta tags\n $metadata_arr = apply_filters( 'amt_schemaorg_author_extra', $metadata_arr );\n\n return $metadata_arr;\n}", "title": "" }, { "docid": "58f9cb258d28e40baf2e30fc32bab87e", "score": "0.50332034", "text": "public function setAuthor($author);", "title": "" }, { "docid": "f4671d34d0e4c77d46cdbc5d8b54b5e6", "score": "0.502912", "text": "public function index()\n {\n $authors = $this->Authors\n // Use the plugins 'search' custom finder and pass in the\n // processed query params\n ->find('search', $this->Authors->filterParams($this->request->query))\n ->contain(['Publications']);\n // ->where(['Authors.surname IS NOT' => null]);\n $this->paginate($authors);\n\n //setting view variables\n $this->set('authors', $authors);\n $this->set('_serialize', ['authors'], 'title');\n }", "title": "" }, { "docid": "7120d6e4f986f4ae21562200f3aee873", "score": "0.502894", "text": "public function setAuthor($author){\n $this->metaAuthor = $author;\n }", "title": "" }, { "docid": "d6e56f93662f691b307676bf7d598bdf", "score": "0.5025735", "text": "function amt_get_jsonld_schemaorg_author_array( $author_id ) {\n //$author_obj = get_user_by( 'id', $author_id );\n\n $metadata_arr = array();\n // Schema.org type\n $metadata_arr['@type'] = 'Person';\n\n // name\n $display_name = get_the_author_meta('display_name', $author_id);\n $metadata_arr['name'] = esc_attr( $display_name );\n // description\n // Here we sanitize the provided description for safety\n $author_description = sanitize_text_field( amt_sanitize_description( get_the_author_meta('description', $author_id) ) );\n if ( !empty($author_description) ) {\n $metadata_arr['description'] = esc_attr( $author_description );\n }\n\n // Profile Image\n $author_email = sanitize_email( get_the_author_meta('user_email', $author_id) );\n $avatar_size = apply_filters( 'amt_avatar_size', 128 );\n $avatar_url = '';\n // First try to get the avatar link by using get_avatar().\n // Important: for this to work the \"Show Avatars\" option should be enabled in Settings > Discussion.\n $avatar_img = get_avatar( get_the_author_meta('ID', $author_id), $avatar_size, '', get_the_author_meta('display_name', $author_id) );\n if ( ! empty($avatar_img) ) {\n if ( preg_match(\"#src=['\\\"]([^'\\\"]+)['\\\"]#\", $avatar_img, $matches) ) {\n $avatar_url = $matches[1];\n }\n } elseif ( ! empty($author_email) ) {\n // If the user has provided an email, we use it to construct a gravatar link.\n $avatar_url = \"http://www.gravatar.com/avatar/\" . md5( $author_email ) . \"?s=\" . $avatar_size;\n }\n if ( ! empty($avatar_url) ) {\n //$avatar_url = html_entity_decode($avatar_url, ENT_NOQUOTES, 'UTF-8');\n $metadata_arr['image'] = esc_url_raw( $avatar_url );\n }\n\n // url\n // The URL to the author archive is added as the url.\n $metadata_arr['url'] = esc_url_raw( get_author_posts_url( $author_id ) );\n // sameAs\n $metadata_arr['sameAs'] = array();\n // Social Profile Links are added as sameAs properties\n // Those from the WordPress User Profile page are used.\n // Google+ Author\n $googleplus_author_url = get_the_author_meta('amt_googleplus_author_profile_url', $author_id);\n if ( !empty($googleplus_author_url) ) {\n $metadata_arr['sameAs'][] = esc_url_raw( $googleplus_author_url, array('http', 'https') );\n }\n // Facebook\n $facebook_author_url = get_the_author_meta('amt_facebook_author_profile_url', $author_id);\n if ( !empty($facebook_author_url) ) {\n $metadata_arr['sameAs'][] = esc_url_raw( $facebook_author_url, array('http', 'https') );\n }\n // Twitter\n $twitter_author_username = get_the_author_meta('amt_twitter_author_username', $author_id);\n if ( !empty($twitter_author_username) ) {\n $metadata_arr['sameAs'][] = 'https://twitter.com/' . esc_attr( $twitter_author_username );\n }\n // The User URL as set by the user in the WordPress User Profile page.\n $user_url = get_the_author_meta( 'user_url', $author_id );\n if ( !empty($user_url) ) {\n $metadata_arr['sameAs'][] = esc_url_raw( $user_url, array('http', 'https') );\n }\n\n // Allow filtering of the Author meta tags\n $metadata_arr = apply_filters( 'amt_jsonld_schemaorg_author_extra', $metadata_arr );\n\n return $metadata_arr;\n}", "title": "" }, { "docid": "2cae1493e3753b5d95f08f1a4ae9b611", "score": "0.5021353", "text": "function license_authors($authors)\n {\n if (true === is_array($authors)) {\n return implode(\"\\n * @author \", $authors);\n } else {\n return $authors;\n }\n }", "title": "" }, { "docid": "f5fe3272fa0f96b3ae0c5ac4c27f9af9", "score": "0.5017156", "text": "function loadData($request, $filter) {\n\t\t$monograph = $this->getMonograph();\n\n\t\t// If it's a new chapter, it has no authors.\n\t\tif (!$this->getChapterId()) return array();\n\n\t\t// Retrieve the contributors associated with this chapter to be displayed in the grid\n\t\t$chapterAuthorDao = DAORegistry::getDAO('ChapterAuthorDAO');\n\t\t$chapterAuthors = $chapterAuthorDao->getAuthors($monograph->getId(), $this->getChapterId());\n\n\t\treturn $chapterAuthors;\n\t}", "title": "" } ]