code stringlengths 4 1.01M |
|---|
<?php
namespace Symfasize\Bundle\ConfigurationBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
class ConfigurationType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('symfonyVersion', new TextType(), array('required' => false));
$builder->add('projectDirectory', new TextType());
$builder->add('removeDemoBundle', new CheckboxType(), array('required' => false));
$builder->add('useGitCommits', new CheckboxType(), array('required' => false));
$builder->add('generateScriptOnly', new CheckboxType(), array('required' => false));
$builder->add('bundleConfiguration', 'bundle_configuration');
$builder->add('bundles', 'collection', array('type' => 'bundle', 'allow_add' => true));
$builder->add('withBundleWizard', new CheckboxType(), array('required' => false));
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(
array(
'data_class' => 'Symfasize\Bundle\ConfigurationBundle\Dto\Configuration',
)
);
}
/**
* Returns the name of this type.
*
* @return string The name of this type
*/
public function getName()
{
return 'configuration';
}
}
|
# react-share
[](https://badge.fury.io/js/react-share)
[](https://npmjs.org/package/react-share)
> Easy social media share buttons and share counts.
<img src="example.png" alt="Share buttons and counts example" />
### Features
* no external script loading, i.e. no dependencies on SDKs
* opens a popup share-window
* share buttons for:
- Facebook
- Twitter
- Telegram
- Google+
- Whatsapp
- LinkedIn
- Pinterest
- VK
- Odnoklassniki
- Reddit
* share counts for
- Facebook
- Google+
- Linkedin
- Pinterest
- VK
- Odnoklassniki
- Reddit
* social media icons included in the library
* supports also custom icons
#### Demo
To run demos: clone repo and run `npm install && npm run run-demos`
and open `http://localhost:8080/demo0/`.
## Install
```shell
npm install react-share --save
```
## Browser
ShareButtons work on all browsers.
ShareCounts works on all browsers, with the exception of Goolge Plus share count
working only on IE11 and newer (XHR CORS problem).
## Compatibility
Compatible with React versions `0.13.x`, `0.14.x` and `15.x.x`.
## API
```js
import {
ShareButtons,
ShareCounts,
generateShareIcon
} from 'react-share';
```
### Share buttons
```js
const {
FacebookShareButton,
GooglePlusShareButton,
LinkedinShareButton,
TwitterShareButton,
TelegramShareButton,
WhatsappShareButton,
PinterestShareButton,
VKShareButton,
OKShareButton,
RedditShareButton,
} = ShareButtons;
```
##### Share button props
| |Required props|Optional props|
|-------|--------|--------------|
|__All__|__`children`__: A React node (e.g. string or element)<br />__`url`__: URL of the shared page (string)|__`disabled`__: Disables click action and adds `disabled` class (bool)<br/>__`disabledStyle`__: Style when button is disabled (object, default = { opacity: 0.6 })<br/>__`windowWidth`, `windowHeight`__: opened window dimensions (int, different defaults for all share buttons)<br>__`beforeOnClick`__: Takes a function that returns a Promise to be fulfilled before calling `onClick`. If you do not return promise, `onClick` is called immediately.|
|FacebookShareButton|-|__`title`__: Title of the shared page (string)<br/>__`description`__: Description of the shared page (string)<br/>__`picture`__: An absolute link to the image that will be shared (string)|
|GooglePlusShareButton|-|-|
|LinkedinShareButton|-|__`title`__: Title of the shared page (string)<br/>__`description`__: Description of the shared page (string)|
|TwitterShareButton|-|__`title`__: Title of the shared page (string)<br/>__`via`__: (string)<br/>__`hashtags`__: (array)|
|TelegramShareButton|-|__`title`__: Title of the shared page (string)<br/>|
|WhatsappShareButton|-|__`title`__: Title of the shared page (string)<br/>__`separator`__: Separates title from the url, default: " " (string)|
|PinterestShareButton|__`media`__: An absolute link to the image that will be pinned (string)|__`description`__: Description for the shared media.|
|VKShareButton|-|__`title`__: Title of the shared page (string)<br/>__`description`__: Description of the shared page (string)<br/>__`image`__: An absolute link to the image that will be shared (string)|
|OKShareButton|-|__`title`__: Title of the shared page (string)<br/>__`description`__: Description of the shared page (string)<br/>__`image`__: An absolute link to the image that will be shared (string)|
|RedditShareButton|-|__`title`__: Title of the shared page (string)|
### Share counts
```js
const {
FacebookShareCount,
GooglePlusShareCount,
LinkedinShareCount,
PinterestShareCount,
VKShareCount,
OKShareCount,
RedditShareCount,
} = ShareCounts;
```
All share count components take in only one mandatory prop: `url`, which is the
URL you are sharing. `className` prop is optional.
Example:
```jsx
<FacebookShareCount url={shareUrl} />
```
If you want to render anything else but the count,
you can provide a function as a child element that takes in `shareCount` as an
argument and returns an element:
```jsx
<FacebookShareCount url={shareUrl}>
{shareCount => (
<span className="myShareCountWrapper">{shareCount}</span>
)}
</FacebookShareCount>
```
### Icons
```js
const FacebookIcon = generateShareIcon('facebook');
const TwitterIcon = generateShareIcon('twitter');
const TelegramIcon = generateShareIcon('telegram');
const WhatsappIcon = generateShareIcon('whatsapp');
const GooglePlusIcon = generateShareIcon('google');
const LinkedinIcon = generateShareIcon('linkedin');
const PinterestIcon = generateShareIcon('pinterest');
const VKIcon = generateShareIcon('vk');
const OKIcon = generateShareIcon('ok');
const RedditIcon = generateShareIcon('reddit');
```
Props:
* `size`: Icon size in pixels (number)
* `round`: Whether to show round or rect icons (bool)
* `iconBgStyle`: customize background style, e.g. `fill` (object)
* `logoFillColor`: customize logo's fill color (string, default = 'white')
Example:
```
<TwitterIcon size={32} round={true} />
```
## License
MIT
## Icons
Icon paths provided by:
[react-social-icons](https://github.com/jaketrent/react-social-icons).
|
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "utils/VerticalLinearizer2D.hpp"
#include <cstdlib>
void verticalLinearizer2D_test_array(const std::size_t width, const std::size_t height)
{
VerticalLinearizer2D linearizer (width, height, -10, -20);
std::size_t linearized = 0;
for(int y = -20; y < height; ++y) {
for(int x = -10; x < width; ++x) {
BOOST_REQUIRE(linearizer.getX(linearized) == x);
BOOST_REQUIRE(linearizer.getY(linearized) == y);
BOOST_REQUIRE(linearizer.linearize(x, y) == linearized);
linearized += 1;
}
}
}
BOOST_AUTO_TEST_CASE( VerticalLinearizer2DTest )
{
verticalLinearizer2D_test_array(0, 0);
verticalLinearizer2D_test_array(10, 10);
verticalLinearizer2D_test_array(20, 60);
verticalLinearizer2D_test_array(60, 20);
}
|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Npgsql;
namespace YuGiOh.Common.Interfaces
{
public interface IBackupsRepositoryConfiguration
{
NpgsqlConnection GetBackupsDbConnection();
}
}
|
#include <seqan/sequence.h>
#include <seqan/index.h>
using namespace seqan;
int main()
{
String<Dna5> genome = "TTATTAAGCGTATAGCCCTATAAATATAA";
Index<String<Dna5>, IndexEsa<> > esaIndex(genome);
Finder<Index<String<Dna5>, IndexEsa<> > > esaFinder(esaIndex);
while(find(esaFinder, "TATAA")){
std::cout << position(esaFinder) << '\n'; // -> 0
}
} |
#content {
position: relative;
left: 50%;
transform: translateX(-50%);
padding: 9.5px;
border-radius: 4px;
width: 70%;
}
fieldset {
margin: 0 auto;
font-family: sans-serif;
background: #fff;
border-radius: 5px;
padding: 15px;
margin-bottom: 20px;
box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
max-width: 750px;
}
fieldset legend {
background: #1F497D;
color: #fff;
padding: 5px 10px ;
font-size: 20px;
border-radius: 5px;
box-shadow: 0 0 0 5px #ddd;
}
.contact {
margin-top: 20px;
display: inline-block;
width: 100%;
}
.contact p {
margin-bottom: 8px;
font-size: 17px;
}
.contact p strong {
display: inline-block;
width: 35%;
text-align: right;
margin-right: 20px;
}
.title {
background: none;
color: #66BB6A;
text-align: center;
font-weight: bold;
}
.detail-content {
width: 80%;
margin: 0 auto;
padding-left: 5px;
}
.detail-title {
margin-top: 20px;
font-size: 23px;
color: #1b809e;
}
.detail {
text-align: justify;
font-size: 15px;
}
.gallery {
margin-top: 50px;
}
.gallery .item {
height: 300px;
}
.gallery .item img {
height: 100% !important;
margin: 0 auto;
max-width: 480px !important;
}
.gallery .carousel {
display: inline-block;
min-width: 480px;
left: 50%;
transform: translateX(-50%);
}
@media screen and (max-width: 900px) {
.gallery .carousel {
min-width: 100%;
}
}
.gallery .carousel-inner {
margin: 0 auto;
}
.gallery .carousel-control {
width: 40px;
height: 40px;
}
.gallery .carousel-control.left,
.gallery .carousel-control.right {
top: 50%;
background-image: none;
}
.gallery .carousel-control.left {
transform: translateX(-100%);
}
@media screen and (max-width: 600px) {
.gallery .carousel-control.left {
transform: translateX(0);
}
}
.gallery .carousel-control.right {
transform: translateX(100%);
}
@media screen and (max-width: 600px) {
.gallery .carousel-control.right {
transform: translateX(0);
}
}
.glyphicon.size40 {
font-size: 40px;
color: #000000;
}
.paging a {
display: inline-block;
padding: 5px 14px;
background-color: #ffffff;
border: 1px solid #dddddd;
border-radius: 15px;
color: #dd4814;
text-decoration: none;
font-size: 18px;
}
.paging a:hover {
background-color: #eeeeee;
}
@media screen and (max-width: 900px) {
#content {
width: 90%;
}
}
@media screen and (max-width: 700px) {
fieldset {
width: 100%;
}
}
@media screen and (max-width: 600px) {
#content {
width: 100%;
}
}
|
<section>
<?php
echo getClientPage(10);
?>
</section> |
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component';
import { jqxCheckBoxComponent } from 'components/angular_jqxcheckbox';
@NgModule({
imports: [BrowserModule, FormsModule],
declarations: [AppComponent, jqxCheckBoxComponent],
bootstrap: [AppComponent]
})
export class AppModule { }
|
import AnswerRating from './answerRating';
import FeedBackResults from './feedbackResults';
import './less/feedback.less';
// Check if bar rating should be initialized
const ratingWrapper = document.querySelector('.rating-wrapper');
if (ratingWrapper !== null) {
AnswerRating();
}
// Check if feed back results charts should be initialized
const feedBackResultsElement = document.getElementById('feedback-results');
if (feedBackResultsElement !== null) {
FeedBackResults();
}
|

**Issues:** https://trello.com/b/VfMhU57V/ig10
**Game:** http://ct.gummibeer.de/
## Installation
```
npm install
npm start
```
|
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct mData {
int chan;
int note;
int vel;
} mData;
extern void __stdcall mPlay(void *);
extern void __stdcall mStop();
extern void __stdcall mGetData(mData *,int,int);
//first int is a channel number, second int is 'fake velocity' fadeout (from max to 0 in ms)
//returns last played note number, together with it's 'fake velocity'
#ifdef __cplusplus
}
#endif
|
{# copyright and footer links #} |
from __future__ import print_function
import sys
sys.path.append('..') # help python find cyton.py relative to scripts folder
from openbci import cyton as bci
import logging
import time
def printData(sample):
# os.system('clear')
print("----------------")
print("%f" % (sample.id))
print(sample.channel_data)
print(sample.aux_data)
print("----------------")
if __name__ == '__main__':
# port = '/dev/tty.OpenBCI-DN008VTF'
port = '/dev/tty.usbserial-DB00JAM0'
# port = '/dev/tty.OpenBCI-DN0096XA'
baud = 115200
logging.basicConfig(filename="test.log", format='%(asctime)s - %(levelname)s : %(message)s', level=logging.DEBUG)
logging.info('---------LOG START-------------')
board = bci.OpenBCICyton(port=port, scaled_output=False, log=True)
print("Board Instantiated")
board.ser.write('v')
time.sleep(10)
board.start_streaming(printData)
board.print_bytes_in()
|
package com.tazine.container.collection.set.cases.stud;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* @author frank
* @since 1.0.0
*/
public class Client {
public static void main(String[] args) {
Set<Student> set = new HashSet<>();
Student s1 = new Student(1, "kobe");
Student s2 = new Student(1, "james");
System.out.println(s1 == s2);
System.out.println(s1.equals(s2));
set.add(s1);
System.out.println(set);
s1.setSno(2);
Iterator<Student> it = set.iterator();
System.out.println(s1.equals(it.next()));
set.add(s1);
System.out.println(set);
}
}
|
// Copyright © 2018 Wave Engine S.L. All rights reserved. Use is subject to license terms.
#region Using Statements
using System;
using WaveEngine.Common.Math;
using WaveEngine.Framework;
using WaveEngine.Framework.Graphics;
#endregion
namespace WaveEngine.Components.GameActions
{
/// <summary>
/// Game action which animates an 3D entity
/// </summary>
public class MoveTo3DGameAction : Vector3AnimationGameAction
{
/// <summary>
/// The transform
/// </summary>
private Transform3D transform;
/// <summary>
/// If the animation is in local coordinates.
/// </summary>
private bool local;
/// <summary>
/// Initializes a new instance of the <see cref="MoveTo3DGameAction"/> class.
/// </summary>
/// <param name="entity">The target entity</param>
/// <param name="to">The target position</param>
/// <param name="time">Animation duration</param>
/// <param name="ease">The ease function</param>
/// <param name="local">If the position is in local coordinates.</param>
public MoveTo3DGameAction(Entity entity, Vector3 to, TimeSpan time, EaseFunction ease = EaseFunction.None, bool local = false)
: base(entity, Vector3.Zero, to, time, ease)
{
this.local = local;
if (local)
{
this.updateAction = this.LocalMoveAction;
}
else
{
this.updateAction = this.MoveAction;
}
this.transform = entity.FindComponent<Transform3D>();
}
/// <summary>
/// Performs the run operation
/// </summary>
protected override void PerformRun()
{
this.from = this.local ? this.transform.LocalPosition : this.transform.Position;
base.PerformRun();
}
/// <summary>
/// Move action
/// </summary>
/// <param name="delta">The delta movement</param>
private void MoveAction(Vector3 delta)
{
this.transform.Position = delta;
}
/// <summary>
/// Move action
/// </summary>
/// <param name="delta">The delta movement</param>
private void LocalMoveAction(Vector3 delta)
{
this.transform.LocalPosition = delta;
}
}
}
|
function initialize(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
exec: {
build: {
command: 'make build'
},
// 'build-types': { command: 'make build-types' },
'build-style': { command: 'make build-style' },
'build-server': { command: 'make build-server' },
'build-client': { command: 'make build-client' },
// 'database-shell': {
// command: "echo 'mongo --username client --password testing christian.mongohq.com:10062/Beta-CitizenDish'"
// }
},
watch: {
types: {
files: [ 'types/egyptian-number-system.d.ts'],
tasks: [ 'exec:build-types'],
spawn: false
},
style: {
files: [ 'style/less/*.less', 'style/less/**/*.less','public/less/**/*.less' ],
tasks: [ 'exec:build-style'],
spawn: false
},
server: {
files: [ 'server/**/*.ts', 'server/*.ts', ],
tasks: [ 'exec:build-server' ],
spawn: false
},
client: {
files: [ 'client/**/*.ts', 'client/*.ts'],
tasks: [ 'exec:build-client' ],
spawn: false
}
},
nodemon: {
application: {
script: 'server/api.js',
options: {
ext: 'js',
watch: ['server'],
ignore: ['server/**'],
delay: 2000,
legacyWatch: false
}
},
developer: {
script: 'server/developer-api.js',
options: {
ext: 'js',
watch: ['server'],
// ignore: ['server/**'],
delay: 3000,
legacyWatch: false
}
}
} ,
concurrent: {
options: {
logConcurrentOutput: true
},
developer: {
tasks: [ 'exec:build', 'nodemon:developer', 'watch:style', 'watch:server', 'watch:client' ]
// tasks: [ 'exec:build', 'nodemon:server', 'watch:types', 'watch:style', 'watch:server', 'watch:client' ]
},
application: {
tasks: [ 'exec:build', 'nodemon:application', 'watch:style', 'watch:server', 'watch:client' ]
// tasks: [ 'exec:build', 'nodemon:server', 'watch:types', 'watch:style', 'watch:server', 'watch:client' ]
}
}
}) ;
grunt.loadNpmTasks('grunt-exec');
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-concurrent');
grunt.registerTask('default', ['concurrent:application']) ;
grunt.registerTask('developer', ['concurrent:developer']) ;
grunt.option('debug', true);
// grunt.option('force', true);
}
module.exports = initialize; |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="ApiGen 2.8.0" />
<meta name="robots" content="noindex" />
<title>File vendor/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php | seip</title>
<script type="text/javascript" src="resources/combined.js?784181472"></script>
<script type="text/javascript" src="elementlist.js?3927760630"></script>
<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />
</head>
<body>
<div id="left">
<div id="menu">
<a href="index.html" title="Overview"><span>Overview</span></a>
<div id="groups">
<h3>Namespaces</h3>
<ul>
<li><a href="namespace-Acme.html">Acme<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.html">DemoBundle<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Acme.DemoBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Acme.DemoBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Acme.DemoBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Acme.DemoBundle.Form.html">Form</a>
</li>
<li><a href="namespace-Acme.DemoBundle.Proxy.html">Proxy<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.html">__CG__<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.html">Symfony<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.html">Component<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Acl.html">Acl<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Acl.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Acl.Tests.Domain.html">Domain</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Core.html">Core<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Core.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Proxy.__CG__.Symfony.Component.Security.Core.Tests.Util.html">Util</a>
</li>
</ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Acme.DemoBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Tests.Controller.html">Controller</a>
</li>
</ul></li>
<li><a href="namespace-Acme.DemoBundle.Twig.html">Twig<span></span></a>
<ul>
<li><a href="namespace-Acme.DemoBundle.Twig.Extension.html">Extension</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Alpha.html">Alpha</a>
</li>
<li><a href="namespace-Apc.html">Apc<span></span></a>
<ul>
<li><a href="namespace-Apc.NamespaceCollision.html">NamespaceCollision<span></span></a>
<ul>
<li><a href="namespace-Apc.NamespaceCollision.A.html">A<span></span></a>
<ul>
<li><a href="namespace-Apc.NamespaceCollision.A.B.html">B</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Apc.Namespaced.html">Namespaced</a>
</li>
</ul></li>
<li><a href="namespace-Assetic.html">Assetic<span></span></a>
<ul>
<li><a href="namespace-Assetic.Asset.html">Asset<span></span></a>
<ul>
<li><a href="namespace-Assetic.Asset.Iterator.html">Iterator</a>
</li>
</ul></li>
<li><a href="namespace-Assetic.Cache.html">Cache</a>
</li>
<li><a href="namespace-Assetic.Exception.html">Exception</a>
</li>
<li><a href="namespace-Assetic.Extension.html">Extension<span></span></a>
<ul>
<li><a href="namespace-Assetic.Extension.Twig.html">Twig</a>
</li>
</ul></li>
<li><a href="namespace-Assetic.Factory.html">Factory<span></span></a>
<ul>
<li><a href="namespace-Assetic.Factory.Loader.html">Loader</a>
</li>
<li><a href="namespace-Assetic.Factory.Resource.html">Resource</a>
</li>
<li><a href="namespace-Assetic.Factory.Worker.html">Worker</a>
</li>
</ul></li>
<li><a href="namespace-Assetic.Filter.html">Filter<span></span></a>
<ul>
<li><a href="namespace-Assetic.Filter.GoogleClosure.html">GoogleClosure</a>
</li>
<li><a href="namespace-Assetic.Filter.Sass.html">Sass</a>
</li>
<li><a href="namespace-Assetic.Filter.Yui.html">Yui</a>
</li>
</ul></li>
<li><a href="namespace-Assetic.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Bazinga.html">Bazinga<span></span></a>
<ul>
<li><a href="namespace-Bazinga.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.html">JsTranslationBundle<span></span></a>
<ul>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Finder.html">Finder</a>
</li>
<li><a href="namespace-Bazinga.Bundle.JsTranslationBundle.Tests.html">Tests</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Bazinga.JsTranslationBundle.html">JsTranslationBundle<span></span></a>
<ul>
<li><a href="namespace-Bazinga.JsTranslationBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Bazinga.JsTranslationBundle.Tests.Controller.html">Controller</a>
</li>
<li><a href="namespace-Bazinga.JsTranslationBundle.Tests.Finder.html">Finder</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Beta.html">Beta</a>
</li>
<li><a href="namespace-Blameable.html">Blameable<span></span></a>
<ul>
<li><a href="namespace-Blameable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Blameable.Fixture.Document.html">Document</a>
</li>
<li><a href="namespace-Blameable.Fixture.Entity.html">Entity</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-ClassesWithParents.html">ClassesWithParents</a>
</li>
<li><a href="namespace-ClassLoaderTest.html">ClassLoaderTest</a>
</li>
<li><a href="namespace-ClassMap.html">ClassMap</a>
</li>
<li><a href="namespace-Composer.html">Composer<span></span></a>
<ul>
<li><a href="namespace-Composer.Autoload.html">Autoload</a>
</li>
</ul></li>
<li><a href="namespace-Container14.html">Container14</a>
</li>
<li><a href="namespace-Doctrine.html">Doctrine<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.html">DoctrineBundle<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Command.html">Command<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Command.Proxy.html">Proxy</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Mapping.html">Mapping</a>
</li>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Tests.DependencyInjection.html">DependencyInjection</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Bundle.DoctrineBundle.Twig.html">Twig</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Bundle.FixturesBundle.html">FixturesBundle<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Bundle.FixturesBundle.Command.html">Command</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Doctrine.Common.html">Common<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.Annotations.html">Annotations<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.Annotations.Annotation.html">Annotation</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Common.Cache.html">Cache</a>
</li>
<li><a href="namespace-Doctrine.Common.Collections.html">Collections<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.Collections.Expr.html">Expr</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Common.DataFixtures.html">DataFixtures<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.DataFixtures.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.DataFixtures.Event.Listener.html">Listener</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Common.DataFixtures.Exception.html">Exception</a>
</li>
<li><a href="namespace-Doctrine.Common.DataFixtures.Executor.html">Executor</a>
</li>
<li><a href="namespace-Doctrine.Common.DataFixtures.Purger.html">Purger</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Common.Inflector.html">Inflector</a>
</li>
<li><a href="namespace-Doctrine.Common.Lexer.html">Lexer</a>
</li>
<li><a href="namespace-Doctrine.Common.Persistence.html">Persistence<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.Persistence.Event.html">Event</a>
</li>
<li><a href="namespace-Doctrine.Common.Persistence.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.Persistence.Mapping.Driver.html">Driver</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Doctrine.Common.Proxy.html">Proxy<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Common.Proxy.Exception.html">Exception</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Common.Reflection.html">Reflection</a>
</li>
<li><a href="namespace-Doctrine.Common.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.DBAL.html">DBAL<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Cache.html">Cache</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Connections.html">Connections</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.html">Driver<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Driver.DrizzlePDOMySql.html">DrizzlePDOMySql</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.IBMDB2.html">IBMDB2</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.Mysqli.html">Mysqli</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.OCI8.html">OCI8</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.PDOIbm.html">PDOIbm</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.PDOMySql.html">PDOMySql</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.PDOOracle.html">PDOOracle</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.PDOPgSql.html">PDOPgSql</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.PDOSqlite.html">PDOSqlite</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.PDOSqlsrv.html">PDOSqlsrv</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Driver.SQLSrv.html">SQLSrv</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.DBAL.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Event.Listeners.html">Listeners</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.DBAL.Id.html">Id</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Logging.html">Logging</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Platforms.html">Platforms<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Platforms.Keywords.html">Keywords</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.DBAL.Portability.html">Portability</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Query.html">Query<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Query.Expression.html">Expression</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.DBAL.Schema.html">Schema<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Schema.Synchronizer.html">Synchronizer</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Schema.Visitor.html">Visitor</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.DBAL.Sharding.html">Sharding<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Sharding.ShardChoser.html">ShardChoser</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Sharding.SQLAzure.html">SQLAzure<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Sharding.SQLAzure.Schema.html">Schema</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Doctrine.DBAL.Tools.html">Tools<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Tools.Console.html">Console<span></span></a>
<ul>
<li><a href="namespace-Doctrine.DBAL.Tools.Console.Command.html">Command</a>
</li>
<li><a href="namespace-Doctrine.DBAL.Tools.Console.Helper.html">Helper</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Doctrine.DBAL.Types.html">Types</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.html">ORM<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Decorator.html">Decorator</a>
</li>
<li><a href="namespace-Doctrine.ORM.Event.html">Event</a>
</li>
<li><a href="namespace-Doctrine.ORM.Id.html">Id</a>
</li>
<li><a href="namespace-Doctrine.ORM.Internal.html">Internal<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Internal.Hydration.html">Hydration</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Mapping.Builder.html">Builder</a>
</li>
<li><a href="namespace-Doctrine.ORM.Mapping.Driver.html">Driver</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.Persisters.html">Persisters</a>
</li>
<li><a href="namespace-Doctrine.ORM.Proxy.html">Proxy</a>
</li>
<li><a href="namespace-Doctrine.ORM.Query.html">Query<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Query.AST.html">AST<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Query.AST.Functions.html">Functions</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.Query.Exec.html">Exec</a>
</li>
<li><a href="namespace-Doctrine.ORM.Query.Expr.html">Expr</a>
</li>
<li><a href="namespace-Doctrine.ORM.Query.Filter.html">Filter</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.Repository.html">Repository</a>
</li>
<li><a href="namespace-Doctrine.ORM.Tools.html">Tools<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Tools.Console.html">Console<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Tools.Console.Command.html">Command<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Tools.Console.Command.ClearCache.html">ClearCache</a>
</li>
<li><a href="namespace-Doctrine.ORM.Tools.Console.Command.SchemaTool.html">SchemaTool</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.Tools.Console.Helper.html">Helper</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.Tools.Event.html">Event</a>
</li>
<li><a href="namespace-Doctrine.ORM.Tools.Export.html">Export<span></span></a>
<ul>
<li><a href="namespace-Doctrine.ORM.Tools.Export.Driver.html">Driver</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.ORM.Tools.Pagination.html">Pagination</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Doctrine.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.html">Common<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.html">Annotations<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Bar.html">Bar</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Fixtures.Annotation.html">Annotation</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Foo.html">Foo</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.FooBar.html">FooBar</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.html">Ticket<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.Doctrine.html">Doctrine<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.Doctrine.ORM.html">ORM<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Annotations.Ticket.Doctrine.ORM.Mapping.html">Mapping</a>
</li>
</ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Doctrine.Tests.Common.Cache.html">Cache</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.Collections.html">Collections</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.DataFixtures.html">DataFixtures<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.DataFixtures.Executor.html">Executor</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.DataFixtures.TestEntity.html">TestEntity</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.DataFixtures.TestFixtures.html">TestFixtures</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Tests.Common.Inflector.html">Inflector</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.Persistence.html">Persistence<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Persistence.Mapping.html">Mapping</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Tests.Common.Proxy.html">Proxy</a>
</li>
<li><a href="namespace-Doctrine.Tests.Common.Reflection.html">Reflection<span></span></a>
<ul>
<li><a href="namespace-Doctrine.Tests.Common.Reflection.Dummies.html">Dummies</a>
</li>
</ul></li>
<li><a href="namespace-Doctrine.Tests.Common.Util.html">Util</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Entity.html">Entity<span></span></a>
<ul>
<li><a href="namespace-Entity.Repository.html">Repository</a>
</li>
</ul></li>
<li><a href="namespace-Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-Fixtures.Bundles.html">Bundles<span></span></a>
<ul>
<li><a href="namespace-Fixtures.Bundles.AnnotationsBundle.html">AnnotationsBundle<span></span></a>
<ul>
<li><a href="namespace-Fixtures.Bundles.AnnotationsBundle.Entity.html">Entity</a>
</li>
</ul></li>
<li><a href="namespace-Fixtures.Bundles.Vendor.html">Vendor<span></span></a>
<ul>
<li><a href="namespace-Fixtures.Bundles.Vendor.AnnotationsBundle.html">AnnotationsBundle<span></span></a>
<ul>
<li><a href="namespace-Fixtures.Bundles.Vendor.AnnotationsBundle.Entity.html">Entity</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Fixtures.Bundles.XmlBundle.html">XmlBundle<span></span></a>
<ul>
<li><a href="namespace-Fixtures.Bundles.XmlBundle.Entity.html">Entity</a>
</li>
</ul></li>
<li><a href="namespace-Fixtures.Bundles.YamlBundle.html">YamlBundle<span></span></a>
<ul>
<li><a href="namespace-Fixtures.Bundles.YamlBundle.Entity.html">Entity</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Foo.html">Foo<span></span></a>
<ul>
<li><a href="namespace-Foo.Bar.html">Bar</a>
</li>
</ul></li>
<li><a href="namespace-FOS.html">FOS<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.html">RestBundle<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Controller.html">Controller<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Controller.Annotations.html">Annotations</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Decoder.html">Decoder</a>
</li>
<li><a href="namespace-FOS.RestBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-FOS.RestBundle.Examples.html">Examples</a>
</li>
<li><a href="namespace-FOS.RestBundle.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Form.Extension.html">Extension</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Normalizer.html">Normalizer<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Normalizer.Exception.html">Exception</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Request.html">Request</a>
</li>
<li><a href="namespace-FOS.RestBundle.Response.html">Response<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Response.AllowedMethodsLoader.html">AllowedMethodsLoader</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Routing.html">Routing<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Routing.Loader.html">Loader<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Routing.Loader.Reader.html">Reader</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-FOS.RestBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Tests.Controller.html">Controller<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Tests.Controller.Annotations.html">Annotations</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Tests.Decoder.html">Decoder</a>
</li>
<li><a href="namespace-FOS.RestBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Tests.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Tests.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-FOS.RestBundle.Tests.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Tests.Fixtures.Controller.html">Controller</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Tests.Normalizer.html">Normalizer</a>
</li>
<li><a href="namespace-FOS.RestBundle.Tests.Request.html">Request</a>
</li>
<li><a href="namespace-FOS.RestBundle.Tests.Routing.html">Routing<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Tests.Routing.Loader.html">Loader</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Tests.Util.html">Util</a>
</li>
<li><a href="namespace-FOS.RestBundle.Tests.View.html">View</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.Util.html">Util<span></span></a>
<ul>
<li><a href="namespace-FOS.RestBundle.Util.Inflector.html">Inflector</a>
</li>
</ul></li>
<li><a href="namespace-FOS.RestBundle.View.html">View</a>
</li>
</ul></li>
<li><a href="namespace-FOS.UserBundle.html">UserBundle<span></span></a>
<ul>
<li><a href="namespace-FOS.UserBundle.Command.html">Command</a>
</li>
<li><a href="namespace-FOS.UserBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-FOS.UserBundle.CouchDocument.html">CouchDocument</a>
</li>
<li><a href="namespace-FOS.UserBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-FOS.UserBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-FOS.UserBundle.Doctrine.html">Doctrine</a>
</li>
<li><a href="namespace-FOS.UserBundle.Document.html">Document</a>
</li>
<li><a href="namespace-FOS.UserBundle.Entity.html">Entity</a>
</li>
<li><a href="namespace-FOS.UserBundle.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-FOS.UserBundle.Form.DataTransformer.html">DataTransformer</a>
</li>
<li><a href="namespace-FOS.UserBundle.Form.Handler.html">Handler</a>
</li>
<li><a href="namespace-FOS.UserBundle.Form.Model.html">Model</a>
</li>
<li><a href="namespace-FOS.UserBundle.Form.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-FOS.UserBundle.Mailer.html">Mailer</a>
</li>
<li><a href="namespace-FOS.UserBundle.Model.html">Model</a>
</li>
<li><a href="namespace-FOS.UserBundle.Propel.html">Propel</a>
</li>
<li><a href="namespace-FOS.UserBundle.Security.html">Security</a>
</li>
<li><a href="namespace-FOS.UserBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-FOS.UserBundle.Tests.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-FOS.UserBundle.Tests.Doctrine.html">Doctrine</a>
</li>
<li><a href="namespace-FOS.UserBundle.Tests.Model.html">Model</a>
</li>
<li><a href="namespace-FOS.UserBundle.Tests.Security.html">Security</a>
</li>
<li><a href="namespace-FOS.UserBundle.Tests.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-FOS.UserBundle.Util.html">Util</a>
</li>
<li><a href="namespace-FOS.UserBundle.Validator.html">Validator</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.html">Gedmo<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Blameable.html">Blameable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Blameable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Blameable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Blameable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Blameable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Blameable.Traits.html">Traits</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Exception.html">Exception</a>
</li>
<li><a href="namespace-Gedmo.IpTraceable.html">IpTraceable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.IpTraceable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.IpTraceable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.IpTraceable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.IpTraceable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.IpTraceable.Traits.html">Traits</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Loggable.html">Loggable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Loggable.Document.html">Document<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Loggable.Document.MappedSuperclass.html">MappedSuperclass</a>
</li>
<li><a href="namespace-Gedmo.Loggable.Document.Repository.html">Repository</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Loggable.Entity.html">Entity<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Loggable.Entity.MappedSuperclass.html">MappedSuperclass</a>
</li>
<li><a href="namespace-Gedmo.Loggable.Entity.Repository.html">Repository</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Loggable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Loggable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Loggable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Loggable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Gedmo.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Annotation.html">Annotation</a>
</li>
<li><a href="namespace-Gedmo.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Mapping.Mock.html">Mock<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Mock.Extension.html">Extension<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.html">Encoder<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Mock.Extension.Encoder.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Gedmo.Mapping.Mock.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Mock.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Mapping.Mock.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Gedmo.Mapping.Xml.html">Xml</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.ReferenceIntegrity.html">ReferenceIntegrity<span></span></a>
<ul>
<li><a href="namespace-Gedmo.ReferenceIntegrity.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.ReferenceIntegrity.Mapping.Driver.html">Driver</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.References.html">References<span></span></a>
<ul>
<li><a href="namespace-Gedmo.References.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.References.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.References.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.References.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Gedmo.Sluggable.html">Sluggable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Sluggable.Handler.html">Handler</a>
</li>
<li><a href="namespace-Gedmo.Sluggable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Sluggable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Sluggable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Sluggable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Sluggable.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.SoftDeleteable.html">SoftDeleteable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.SoftDeleteable.Filter.html">Filter<span></span></a>
<ul>
<li><a href="namespace-Gedmo.SoftDeleteable.Filter.ODM.html">ODM</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.SoftDeleteable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.SoftDeleteable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.SoftDeleteable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.SoftDeleteable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.SoftDeleteable.Query.html">Query<span></span></a>
<ul>
<li><a href="namespace-Gedmo.SoftDeleteable.Query.TreeWalker.html">TreeWalker<span></span></a>
<ul>
<li><a href="namespace-Gedmo.SoftDeleteable.Query.TreeWalker.Exec.html">Exec</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.SoftDeleteable.Traits.html">Traits</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Sortable.html">Sortable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Sortable.Entity.html">Entity<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Sortable.Entity.Repository.html">Repository</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Sortable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Sortable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Sortable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Sortable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Gedmo.Timestampable.html">Timestampable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Timestampable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Timestampable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Timestampable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Timestampable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Timestampable.Traits.html">Traits</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Tool.html">Tool<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tool.Logging.html">Logging<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tool.Logging.DBAL.html">DBAL</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Tool.Wrapper.html">Wrapper</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Translatable.html">Translatable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translatable.Document.html">Document<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translatable.Document.MappedSuperclass.html">MappedSuperclass</a>
</li>
<li><a href="namespace-Gedmo.Translatable.Document.Repository.html">Repository</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Translatable.Entity.html">Entity<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translatable.Entity.MappedSuperclass.html">MappedSuperclass</a>
</li>
<li><a href="namespace-Gedmo.Translatable.Entity.Repository.html">Repository</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Translatable.Hydrator.html">Hydrator<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translatable.Hydrator.ORM.html">ORM</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Translatable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translatable.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Translatable.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translatable.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Translatable.Query.html">Query<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translatable.Query.TreeWalker.html">TreeWalker</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Translator.html">Translator<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Translator.Document.html">Document</a>
</li>
<li><a href="namespace-Gedmo.Translator.Entity.html">Entity</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Tree.html">Tree<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Document.html">Document<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Document.MongoDB.html">MongoDB<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Document.MongoDB.Repository.html">Repository</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Tree.Entity.html">Entity<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Entity.MappedSuperclass.html">MappedSuperclass</a>
</li>
<li><a href="namespace-Gedmo.Tree.Entity.Repository.html">Repository</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Tree.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Mapping.Driver.html">Driver</a>
</li>
<li><a href="namespace-Gedmo.Tree.Mapping.Event.html">Event<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Mapping.Event.Adapter.html">Adapter</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Tree.Strategy.html">Strategy<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Strategy.ODM.html">ODM<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Tree.Strategy.ODM.MongoDB.html">MongoDB</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Tree.Strategy.ORM.html">ORM</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Gedmo.Uploadable.html">Uploadable<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Uploadable.Event.html">Event</a>
</li>
<li><a href="namespace-Gedmo.Uploadable.FileInfo.html">FileInfo</a>
</li>
<li><a href="namespace-Gedmo.Uploadable.FilenameGenerator.html">FilenameGenerator</a>
</li>
<li><a href="namespace-Gedmo.Uploadable.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Gedmo.Uploadable.Mapping.Driver.html">Driver</a>
</li>
</ul></li>
<li><a href="namespace-Gedmo.Uploadable.MimeType.html">MimeType</a>
</li>
<li><a href="namespace-Gedmo.Uploadable.Stub.html">Stub</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Incenteev.html">Incenteev<span></span></a>
<ul>
<li><a href="namespace-Incenteev.ParameterHandler.html">ParameterHandler<span></span></a>
<ul>
<li><a href="namespace-Incenteev.ParameterHandler.Tests.html">Tests</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-IpTraceable.html">IpTraceable<span></span></a>
<ul>
<li><a href="namespace-IpTraceable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-IpTraceable.Fixture.Document.html">Document</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-JMS.html">JMS<span></span></a>
<ul>
<li><a href="namespace-JMS.Parser.html">Parser<span></span></a>
<ul>
<li><a href="namespace-JMS.Parser.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.html">Serializer<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.Annotation.html">Annotation</a>
</li>
<li><a href="namespace-JMS.Serializer.Builder.html">Builder</a>
</li>
<li><a href="namespace-JMS.Serializer.Construction.html">Construction</a>
</li>
<li><a href="namespace-JMS.Serializer.EventDispatcher.html">EventDispatcher<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.EventDispatcher.Subscriber.html">Subscriber</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.Exception.html">Exception</a>
</li>
<li><a href="namespace-JMS.Serializer.Exclusion.html">Exclusion</a>
</li>
<li><a href="namespace-JMS.Serializer.Handler.html">Handler</a>
</li>
<li><a href="namespace-JMS.Serializer.Metadata.html">Metadata<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.Metadata.Driver.html">Driver</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.Naming.html">Naming</a>
</li>
<li><a href="namespace-JMS.Serializer.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.Tests.Exclusion.html">Exclusion</a>
</li>
<li><a href="namespace-JMS.Serializer.Tests.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.Tests.Fixtures.Discriminator.html">Discriminator</a>
</li>
<li><a href="namespace-JMS.Serializer.Tests.Fixtures.Doctrine.html">Doctrine</a>
</li>
<li><a href="namespace-JMS.Serializer.Tests.Fixtures.DoctrinePHPCR.html">DoctrinePHPCR</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.Tests.Handler.html">Handler</a>
</li>
<li><a href="namespace-JMS.Serializer.Tests.Metadata.html">Metadata<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.Tests.Metadata.Driver.html">Driver</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.Tests.Serializer.html">Serializer<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.Tests.Serializer.EventDispatcher.html">EventDispatcher<span></span></a>
<ul>
<li><a href="namespace-JMS.Serializer.Tests.Serializer.EventDispatcher.Subscriber.html">Subscriber</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.Tests.Serializer.Naming.html">Naming</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.Tests.Twig.html">Twig</a>
</li>
</ul></li>
<li><a href="namespace-JMS.Serializer.Twig.html">Twig</a>
</li>
<li><a href="namespace-JMS.Serializer.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-JMS.SerializerBundle.html">SerializerBundle<span></span></a>
<ul>
<li><a href="namespace-JMS.SerializerBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-JMS.SerializerBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-JMS.SerializerBundle.Serializer.html">Serializer</a>
</li>
<li><a href="namespace-JMS.SerializerBundle.Templating.html">Templating</a>
</li>
<li><a href="namespace-JMS.SerializerBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-JMS.SerializerBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-JMS.SerializerBundle.Tests.DependencyInjection.Fixture.html">Fixture</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-JMS.TranslationBundle.html">TranslationBundle<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Annotation.html">Annotation</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Command.html">Command</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-JMS.TranslationBundle.Exception.html">Exception</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Logger.html">Logger</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Model.html">Model</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Functional.html">Functional<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Functional.TestBundle.html">TestBundle<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Functional.TestBundle.Controller.html">Controller</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Model.html">Model</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.html">Translation<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Comparison.html">Comparison</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.html">Extractor<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.File.html">File<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.File.Fixture.html">Fixture</a>
</li>
</ul></li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.SimpleTest.html">SimpleTest<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.SimpleTest.Controller.html">Controller</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Extractor.Fixture.SimpleTest.Form.html">Form</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Loader.html">Loader<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Tests.Translation.Loader.Symfony.html">Symfony</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-JMS.TranslationBundle.Tests.Twig.html">Twig</a>
</li>
</ul></li>
<li><a href="namespace-JMS.TranslationBundle.Translation.html">Translation<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Translation.Comparison.html">Comparison</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Translation.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Translation.Extractor.html">Extractor<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Translation.Extractor.File.html">File</a>
</li>
</ul></li>
<li><a href="namespace-JMS.TranslationBundle.Translation.Loader.html">Loader<span></span></a>
<ul>
<li><a href="namespace-JMS.TranslationBundle.Translation.Loader.Symfony.html">Symfony</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-JMS.TranslationBundle.Twig.html">Twig</a>
</li>
<li><a href="namespace-JMS.TranslationBundle.Util.html">Util</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Knp.html">Knp<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.html">MenuBundle<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Bundle.MenuBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Provider.html">Provider</a>
</li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Renderer.html">Renderer</a>
</li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.Templating.Helper.html">Helper</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Provider.html">Provider</a>
</li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Renderer.html">Renderer</a>
</li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.html">Stubs<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.Child.html">Child<span></span></a>
<ul>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.Child.Menu.html">Menu</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Stubs.Menu.html">Menu</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Bundle.MenuBundle.Tests.Templating.html">Templating</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Knp.Menu.html">Menu<span></span></a>
<ul>
<li><a href="namespace-Knp.Menu.Factory.html">Factory</a>
</li>
<li><a href="namespace-Knp.Menu.Integration.html">Integration<span></span></a>
<ul>
<li><a href="namespace-Knp.Menu.Integration.Silex.html">Silex</a>
</li>
<li><a href="namespace-Knp.Menu.Integration.Symfony.html">Symfony</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Menu.Iterator.html">Iterator</a>
</li>
<li><a href="namespace-Knp.Menu.Loader.html">Loader</a>
</li>
<li><a href="namespace-Knp.Menu.Matcher.html">Matcher<span></span></a>
<ul>
<li><a href="namespace-Knp.Menu.Matcher.Voter.html">Voter</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Menu.Provider.html">Provider</a>
</li>
<li><a href="namespace-Knp.Menu.Renderer.html">Renderer</a>
</li>
<li><a href="namespace-Knp.Menu.Silex.html">Silex<span></span></a>
<ul>
<li><a href="namespace-Knp.Menu.Silex.Voter.html">Voter</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Menu.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Knp.Menu.Tests.Factory.html">Factory</a>
</li>
<li><a href="namespace-Knp.Menu.Tests.Integration.html">Integration<span></span></a>
<ul>
<li><a href="namespace-Knp.Menu.Tests.Integration.Silex.html">Silex</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Menu.Tests.Iterator.html">Iterator</a>
</li>
<li><a href="namespace-Knp.Menu.Tests.Loader.html">Loader</a>
</li>
<li><a href="namespace-Knp.Menu.Tests.Matcher.html">Matcher<span></span></a>
<ul>
<li><a href="namespace-Knp.Menu.Tests.Matcher.Voter.html">Voter</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Menu.Tests.Provider.html">Provider</a>
</li>
<li><a href="namespace-Knp.Menu.Tests.Renderer.html">Renderer</a>
</li>
<li><a href="namespace-Knp.Menu.Tests.Silex.html">Silex</a>
</li>
<li><a href="namespace-Knp.Menu.Tests.Twig.html">Twig</a>
</li>
<li><a href="namespace-Knp.Menu.Tests.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Knp.Menu.Twig.html">Twig</a>
</li>
<li><a href="namespace-Knp.Menu.Util.html">Util</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Loggable.html">Loggable<span></span></a>
<ul>
<li><a href="namespace-Loggable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Loggable.Fixture.Document.html">Document<span></span></a>
<ul>
<li><a href="namespace-Loggable.Fixture.Document.Log.html">Log</a>
</li>
</ul></li>
<li><a href="namespace-Loggable.Fixture.Entity.html">Entity<span></span></a>
<ul>
<li><a href="namespace-Loggable.Fixture.Entity.Log.html">Log</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Lunetics.html">Lunetics<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.html">LocaleBundle<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Cookie.html">Cookie</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Event.html">Event</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Form.Extension.html">Extension<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Form.Extension.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Form.Extension.Type.html">Type</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.LocaleGuesser.html">LocaleGuesser</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.LocaleInformation.html">LocaleInformation</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Matcher.html">Matcher</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Session.html">Session</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Switcher.html">Switcher</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Templating.Helper.html">Helper</a>
</li>
</ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Controller.html">Controller</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Event.html">Event</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.Extension.html">Extension<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.Extension.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Form.Extension.Type.html">Type</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.LocaleGuesser.html">LocaleGuesser</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.LocaleInformation.html">LocaleInformation</a>
</li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Templating.Helper.html">Helper</a>
</li>
</ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Twig.html">Twig<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Twig.Extension.html">Extension</a>
</li>
</ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Tests.Validator.html">Validator</a>
</li>
</ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Twig.html">Twig<span></span></a>
<ul>
<li><a href="namespace-Lunetics.LocaleBundle.Twig.Extension.html">Extension</a>
</li>
</ul></li>
<li><a href="namespace-Lunetics.LocaleBundle.Validator.html">Validator</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Mapping.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Mapping.Fixture.Compatibility.html">Compatibility</a>
</li>
<li><a href="namespace-Mapping.Fixture.Document.html">Document</a>
</li>
<li><a href="namespace-Mapping.Fixture.Unmapped.html">Unmapped</a>
</li>
<li><a href="namespace-Mapping.Fixture.Xml.html">Xml</a>
</li>
<li><a href="namespace-Mapping.Fixture.Yaml.html">Yaml</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Metadata.html">Metadata<span></span></a>
<ul>
<li><a href="namespace-Metadata.Cache.html">Cache</a>
</li>
<li><a href="namespace-Metadata.Driver.html">Driver</a>
</li>
<li><a href="namespace-Metadata.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Metadata.Tests.Cache.html">Cache</a>
</li>
<li><a href="namespace-Metadata.Tests.Driver.html">Driver<span></span></a>
<ul>
<li><a href="namespace-Metadata.Tests.Driver.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Metadata.Tests.Driver.Fixture.A.html">A</a>
</li>
<li><a href="namespace-Metadata.Tests.Driver.Fixture.B.html">B</a>
</li>
<li><a href="namespace-Metadata.Tests.Driver.Fixture.C.html">C<span></span></a>
<ul>
<li><a href="namespace-Metadata.Tests.Driver.Fixture.C.SubDir.html">SubDir</a>
</li>
</ul></li>
<li><a href="namespace-Metadata.Tests.Driver.Fixture.T.html">T</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Metadata.Tests.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-Metadata.Tests.Fixtures.ComplexHierarchy.html">ComplexHierarchy</a>
</li>
</ul></li></ul></li></ul></li>
<li class="active"><a href="namespace-Monolog.html">Monolog<span></span></a>
<ul>
<li class="active"><a href="namespace-Monolog.Formatter.html">Formatter</a>
</li>
<li><a href="namespace-Monolog.Handler.html">Handler<span></span></a>
<ul>
<li><a href="namespace-Monolog.Handler.FingersCrossed.html">FingersCrossed</a>
</li>
<li><a href="namespace-Monolog.Handler.SyslogUdp.html">SyslogUdp</a>
</li>
</ul></li>
<li><a href="namespace-Monolog.Processor.html">Processor</a>
</li>
</ul></li>
<li><a href="namespace-MyProject.html">MyProject<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.html">Proxies<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.html">__CG__<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.html">Doctrine<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.Tests.Common.html">Common<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.Doctrine.Tests.Common.Util.html">Util</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.html">OtherProject<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.html">Proxies<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.html">__CG__<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.html">Doctrine<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.Tests.Common.html">Common<span></span></a>
<ul>
<li><a href="namespace-MyProject.Proxies.__CG__.OtherProject.Proxies.__CG__.Doctrine.Tests.Common.Util.html">Util</a>
</li>
</ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-NamespaceCollision.html">NamespaceCollision<span></span></a>
<ul>
<li><a href="namespace-NamespaceCollision.A.html">A<span></span></a>
<ul>
<li><a href="namespace-NamespaceCollision.A.B.html">B</a>
</li>
</ul></li>
<li><a href="namespace-NamespaceCollision.C.html">C<span></span></a>
<ul>
<li><a href="namespace-NamespaceCollision.C.B.html">B</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Namespaced.html">Namespaced</a>
</li>
<li><a href="namespace-Namespaced2.html">Namespaced2</a>
</li>
<li><a href="namespace-Negotiation.html">Negotiation<span></span></a>
<ul>
<li><a href="namespace-Negotiation.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-None.html">None</a>
</li>
<li><a href="namespace-Pequiven.html">Pequiven<span></span></a>
<ul>
<li><a href="namespace-Pequiven.SEIPBundle.html">SEIPBundle<span></span></a>
<ul>
<li><a href="namespace-Pequiven.SEIPBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Pequiven.SEIPBundle.DataFixtures.html">DataFixtures</a>
</li>
<li><a href="namespace-Pequiven.SEIPBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Pequiven.SEIPBundle.Entity.html">Entity</a>
</li>
<li><a href="namespace-Pequiven.SEIPBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Pequiven.SEIPBundle.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Pequiven.SEIPBundle.Form.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Pequiven.SEIPBundle.Menu.html">Menu<span></span></a>
<ul>
<li><a href="namespace-Pequiven.SEIPBundle.Menu.Template.html">Template<span></span></a>
<ul>
<li><a href="namespace-Pequiven.SEIPBundle.Menu.Template.Developer.html">Developer</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Pequiven.SEIPBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Pequiven.SEIPBundle.Tests.Controller.html">Controller</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-PHP.html">PHP</a>
</li>
<li><a href="namespace-PhpCollection.html">PhpCollection<span></span></a>
<ul>
<li><a href="namespace-PhpCollection.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-PhpOption.html">PhpOption<span></span></a>
<ul>
<li><a href="namespace-PhpOption.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Proxies.html">Proxies<span></span></a>
<ul>
<li><a href="namespace-Proxies.__CG__.html">__CG__<span></span></a>
<ul>
<li><a href="namespace-Proxies.__CG__.Pequiven.html">Pequiven<span></span></a>
<ul>
<li><a href="namespace-Proxies.__CG__.Pequiven.SEIPBundle.html">SEIPBundle<span></span></a>
<ul>
<li><a href="namespace-Proxies.__CG__.Pequiven.SEIPBundle.Entity.html">Entity</a>
</li>
</ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Psr.html">Psr<span></span></a>
<ul>
<li><a href="namespace-Psr.Log.html">Log<span></span></a>
<ul>
<li><a href="namespace-Psr.Log.Test.html">Test</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-ReferenceIntegrity.html">ReferenceIntegrity<span></span></a>
<ul>
<li><a href="namespace-ReferenceIntegrity.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-ReferenceIntegrity.Fixture.Document.html">Document<span></span></a>
<ul>
<li><a href="namespace-ReferenceIntegrity.Fixture.Document.ManyNullify.html">ManyNullify</a>
</li>
<li><a href="namespace-ReferenceIntegrity.Fixture.Document.ManyRestrict.html">ManyRestrict</a>
</li>
<li><a href="namespace-ReferenceIntegrity.Fixture.Document.OneNullify.html">OneNullify</a>
</li>
<li><a href="namespace-ReferenceIntegrity.Fixture.Document.OneRestrict.html">OneRestrict</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-References.html">References<span></span></a>
<ul>
<li><a href="namespace-References.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-References.Fixture.ODM.html">ODM<span></span></a>
<ul>
<li><a href="namespace-References.Fixture.ODM.MongoDB.html">MongoDB</a>
</li>
</ul></li>
<li><a href="namespace-References.Fixture.ORM.html">ORM</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Sensio.html">Sensio<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.DistributionBundle.html">DistributionBundle<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.DistributionBundle.Composer.html">Composer</a>
</li>
<li><a href="namespace-Sensio.Bundle.DistributionBundle.Configurator.html">Configurator<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.DistributionBundle.Configurator.Form.html">Form</a>
</li>
<li><a href="namespace-Sensio.Bundle.DistributionBundle.Configurator.Step.html">Step</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.DistributionBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Sensio.Bundle.DistributionBundle.DependencyInjection.html">DependencyInjection</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.html">FrameworkExtraBundle<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Configuration.html">Configuration</a>
</li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Request.html">Request<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Request.ParamConverter.html">ParamConverter</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Routing.html">Routing</a>
</li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Security.html">Security</a>
</li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Templating.html">Templating</a>
</li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Configuration.html">Configuration</a>
</li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.EventListener.html">EventListener<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.EventListener.Fixture.html">Fixture</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Request.html">Request<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Request.ParamConverter.html">ParamConverter</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Routing.html">Routing</a>
</li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.BarBundle.html">BarBundle<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.BarBundle.Controller.html">Controller</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBarBundle.html">FooBarBundle<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBarBundle.Controller.html">Controller</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.html">FooBundle<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.FrameworkExtraBundle.Tests.Templating.Fixture.FooBundle.Controller.html">Controller</a>
</li>
</ul></li></ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.html">GeneratorBundle<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.Command.html">Command<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.Command.Helper.html">Helper</a>
</li>
</ul></li>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.Generator.html">Generator</a>
</li>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.Manipulator.html">Manipulator</a>
</li>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.Tests.Command.html">Command</a>
</li>
<li><a href="namespace-Sensio.Bundle.GeneratorBundle.Tests.Generator.html">Generator</a>
</li>
</ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Sluggable.html">Sluggable<span></span></a>
<ul>
<li><a href="namespace-Sluggable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Sluggable.Fixture.Doctrine.html">Doctrine</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Document.html">Document<span></span></a>
<ul>
<li><a href="namespace-Sluggable.Fixture.Document.Handler.html">Handler</a>
</li>
</ul></li>
<li><a href="namespace-Sluggable.Fixture.Handler.html">Handler<span></span></a>
<ul>
<li><a href="namespace-Sluggable.Fixture.Handler.People.html">People</a>
</li>
</ul></li>
<li><a href="namespace-Sluggable.Fixture.Inheritance.html">Inheritance</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Inheritance2.html">Inheritance2</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Issue104.html">Issue104</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Issue116.html">Issue116</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Issue131.html">Issue131</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Issue449.html">Issue449</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Issue633.html">Issue633</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Issue827.html">Issue827</a>
</li>
<li><a href="namespace-Sluggable.Fixture.Issue939.html">Issue939</a>
</li>
<li><a href="namespace-Sluggable.Fixture.MappedSuperclass.html">MappedSuperclass</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-SoftDeleteable.html">SoftDeleteable<span></span></a>
<ul>
<li><a href="namespace-SoftDeleteable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-SoftDeleteable.Fixture.Document.html">Document</a>
</li>
<li><a href="namespace-SoftDeleteable.Fixture.Entity.html">Entity</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Sortable.html">Sortable<span></span></a>
<ul>
<li><a href="namespace-Sortable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Sortable.Fixture.Transport.html">Transport</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Stof.html">Stof<span></span></a>
<ul>
<li><a href="namespace-Stof.DoctrineExtensionsBundle.html">DoctrineExtensionsBundle<span></span></a>
<ul>
<li><a href="namespace-Stof.DoctrineExtensionsBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Stof.DoctrineExtensionsBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Stof.DoctrineExtensionsBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Stof.DoctrineExtensionsBundle.Uploadable.html">Uploadable</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.html">Symfony<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.html">Bridge<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.html">Doctrine<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.DataFixtures.html">DataFixtures</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.CompilerPass.html">CompilerPass</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.DependencyInjection.Security.UserProvider.html">UserProvider</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bridge.Doctrine.ExpressionLanguage.html">ExpressionLanguage</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Form.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Form.DataTransformer.html">DataTransformer</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Form.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Form.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Doctrine.HttpFoundation.html">HttpFoundation</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Logger.html">Logger</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Security.RememberMe.html">RememberMe</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Security.User.html">User</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Test.html">Test</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DataFixtures.html">DataFixtures</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.DependencyInjection.CompilerPass.html">CompilerPass</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.ExpressionLanguage.html">ExpressionLanguage</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Fixtures.html">Fixtures</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.DataTransformer.html">DataTransformer</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Form.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.HttpFoundation.html">HttpFoundation</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Logger.html">Logger</a>
</li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Security.User.html">User</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Validator.html">Validator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Tests.Validator.Constraints.html">Constraints</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bridge.Doctrine.Validator.html">Validator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Doctrine.Validator.Constraints.html">Constraints</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bridge.Monolog.html">Monolog<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Monolog.Formatter.html">Formatter</a>
</li>
<li><a href="namespace-Symfony.Bridge.Monolog.Handler.html">Handler</a>
</li>
<li><a href="namespace-Symfony.Bridge.Monolog.Processor.html">Processor</a>
</li>
<li><a href="namespace-Symfony.Bridge.Monolog.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Monolog.Tests.Handler.html">Handler</a>
</li>
<li><a href="namespace-Symfony.Bridge.Monolog.Tests.Processor.html">Processor</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bridge.Propel1.html">Propel1<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Propel1.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Propel1.DependencyInjection.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Propel1.DependencyInjection.Security.UserProvider.html">UserProvider</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bridge.Propel1.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Propel1.Form.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.Form.DataTransformer.html">DataTransformer</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.Form.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.Form.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Propel1.Logger.html">Logger</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Propel1.Security.User.html">User</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Propel1.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Propel1.Tests.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.Tests.Fixtures.html">Fixtures</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.Tests.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Propel1.Tests.Form.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Symfony.Bridge.Propel1.Tests.Form.DataTransformer.html">DataTransformer</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Bridge.ProxyManager.html">ProxyManager<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.ProxyManager.LazyProxy.html">LazyProxy<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.ProxyManager.LazyProxy.Instantiator.html">Instantiator</a>
</li>
<li><a href="namespace-Symfony.Bridge.ProxyManager.LazyProxy.PhpDumper.html">PhpDumper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.html">LazyProxy<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.Instantiator.html">Instantiator</a>
</li>
<li><a href="namespace-Symfony.Bridge.ProxyManager.Tests.LazyProxy.PhpDumper.html">PhpDumper</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Bridge.Twig.html">Twig<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Twig.Extension.html">Extension</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.Form.html">Form</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.Node.html">Node</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.NodeVisitor.html">NodeVisitor</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Twig.Tests.Extension.html">Extension<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bridge.Twig.Tests.Extension.Fixtures.html">Fixtures</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Twig.Tests.Node.html">Node</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.Tests.NodeVisitor.html">NodeVisitor</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.Tests.TokenParser.html">TokenParser</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.Tests.Translation.html">Translation</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bridge.Twig.TokenParser.html">TokenParser</a>
</li>
<li><a href="namespace-Symfony.Bridge.Twig.Translation.html">Translation</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.html">AsseticBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Config.html">Config</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.html">Factory<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.Resource.html">Resource</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Factory.Worker.html">Worker</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Routing.html">Routing</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Templating.html">Templating</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Factory.html">Factory<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Factory.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.Templating.html">Templating</a>
</li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Tests.TestBundle.html">TestBundle</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.AsseticBundle.Twig.html">Twig</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.html">FrameworkBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Console.html">Console<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Console.Descriptor.html">Descriptor</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Console.Helper.html">Helper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Fragment.html">Fragment</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.HttpCache.html">HttpCache</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Routing.html">Routing</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.Asset.html">Asset</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.Helper.html">Helper</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Templating.Loader.html">Loader</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Test.html">Test</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Console.html">Console<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Console.Descriptor.html">Descriptor</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Fixtures.BaseBundle.html">BaseBundle</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Fragment.html">Fragment</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.html">Functional<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.app.html">app</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.Bundle.TestBundle.html">TestBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Functional.Bundle.TestBundle.Controller.html">Controller</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Routing.html">Routing</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.Helper.html">Helper<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.Helper.Fixtures.html">Fixtures</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Templating.Loader.html">Loader</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Translation.html">Translation</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Tests.Validator.html">Validator</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Translation.html">Translation</a>
</li>
<li><a href="namespace-Symfony.Bundle.FrameworkBundle.Validator.html">Validator</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.MonologBundle.html">MonologBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.MonologBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.MonologBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.MonologBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.MonologBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.MonologBundle.Tests.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.html">SecurityBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Security.Factory.html">Factory</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.DependencyInjection.Security.UserProvider.html">UserProvider</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Security.html">Security</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Templating.Helper.html">Helper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.DependencyInjection.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.DependencyInjection.Security.Factory.html">Factory</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.html">Functional<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.app.html">app</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.CsrfFormLoginBundle.html">CsrfFormLoginBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.CsrfFormLoginBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.CsrfFormLoginBundle.Form.html">Form</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.html">FormLoginBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Tests.Functional.Bundle.FormLoginBundle.Security.html">Security</a>
</li>
</ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Twig.html">Twig<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SecurityBundle.Twig.Extension.html">Extension</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.html">SwiftmailerBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.SwiftmailerBundle.Tests.DependencyInjection.html">DependencyInjection</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.html">TwigBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.TwigBundle.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Debug.html">Debug</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.TwigBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Extension.html">Extension</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Node.html">Node</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.Tests.TokenParser.html">TokenParser</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.TwigBundle.TokenParser.html">TokenParser</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.html">WebProfilerBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Profiler.html">Profiler</a>
</li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Bundle.WebProfilerBundle.Tests.Profiler.html">Profiler</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Component.html">Component<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.BrowserKit.html">BrowserKit<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.BrowserKit.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.ClassLoader.html">ClassLoader<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.ClassLoader.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Config.html">Config<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Config.Definition.html">Definition<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Config.Definition.Builder.html">Builder</a>
</li>
<li><a href="namespace-Symfony.Component.Config.Definition.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-Symfony.Component.Config.Definition.Exception.html">Exception</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Config.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Config.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.Config.Resource.html">Resource</a>
</li>
<li><a href="namespace-Symfony.Component.Config.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Config.Tests.Definition.html">Definition<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Config.Tests.Definition.Builder.html">Builder</a>
</li>
<li><a href="namespace-Symfony.Component.Config.Tests.Definition.Dumper.html">Dumper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Config.Tests.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Config.Tests.Fixtures.Configuration.html">Configuration</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Config.Tests.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.Config.Tests.Resource.html">Resource</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Config.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Console.html">Console<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Console.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Descriptor.html">Descriptor</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Event.html">Event</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Formatter.html">Formatter</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Helper.html">Helper</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Input.html">Input</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Output.html">Output</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tester.html">Tester</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Console.Tests.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.Descriptor.html">Descriptor</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.Fixtures.html">Fixtures</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.Formatter.html">Formatter</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.Helper.html">Helper</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.Input.html">Input</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.Output.html">Output</a>
</li>
<li><a href="namespace-Symfony.Component.Console.Tests.Tester.html">Tester</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.CssSelector.html">CssSelector<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.CssSelector.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.CssSelector.Node.html">Node</a>
</li>
<li><a href="namespace-Symfony.Component.CssSelector.Parser.html">Parser<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.CssSelector.Parser.Handler.html">Handler</a>
</li>
<li><a href="namespace-Symfony.Component.CssSelector.Parser.Shortcut.html">Shortcut</a>
</li>
<li><a href="namespace-Symfony.Component.CssSelector.Parser.Tokenizer.html">Tokenizer</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.CssSelector.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.CssSelector.Tests.Node.html">Node</a>
</li>
<li><a href="namespace-Symfony.Component.CssSelector.Tests.Parser.html">Parser<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.CssSelector.Tests.Parser.Handler.html">Handler</a>
</li>
<li><a href="namespace-Symfony.Component.CssSelector.Tests.Parser.Shortcut.html">Shortcut</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.CssSelector.Tests.XPath.html">XPath</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.CssSelector.XPath.html">XPath<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.CssSelector.XPath.Extension.html">Extension</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Debug.html">Debug<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Debug.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Debug.FatalErrorHandler.html">FatalErrorHandler</a>
</li>
<li><a href="namespace-Symfony.Component.Debug.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Debug.Tests.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Debug.Tests.FatalErrorHandler.html">FatalErrorHandler</a>
</li>
<li><a href="namespace-Symfony.Component.Debug.Tests.Fixtures.html">Fixtures</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.DependencyInjection.Compiler.html">Compiler</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Dump.html">Dump</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Extension.html">Extension</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.LazyProxy.html">LazyProxy<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.DependencyInjection.LazyProxy.Instantiator.html">Instantiator</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.LazyProxy.PhpDumper.html">PhpDumper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.ParameterBag.html">ParameterBag</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Compiler.html">Compiler</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Extension.html">Extension</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.LazyProxy.html">LazyProxy<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.LazyProxy.Instantiator.html">Instantiator</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.LazyProxy.PhpDumper.html">PhpDumper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.DependencyInjection.Tests.ParameterBag.html">ParameterBag</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.DomCrawler.html">DomCrawler<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.DomCrawler.Field.html">Field</a>
</li>
<li><a href="namespace-Symfony.Component.DomCrawler.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.DomCrawler.Tests.Field.html">Field</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.EventDispatcher.html">EventDispatcher<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.EventDispatcher.Debug.html">Debug</a>
</li>
<li><a href="namespace-Symfony.Component.EventDispatcher.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.ExpressionLanguage.html">ExpressionLanguage<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.ExpressionLanguage.Node.html">Node</a>
</li>
<li><a href="namespace-Symfony.Component.ExpressionLanguage.ParserCache.html">ParserCache</a>
</li>
<li><a href="namespace-Symfony.Component.ExpressionLanguage.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.ExpressionLanguage.Tests.Node.html">Node</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Filesystem.html">Filesystem<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Filesystem.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Filesystem.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Finder.html">Finder<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Finder.Adapter.html">Adapter</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Comparator.html">Comparator</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Expression.html">Expression</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Iterator.html">Iterator</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Shell.html">Shell</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Finder.Tests.Comparator.html">Comparator</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Tests.Expression.html">Expression</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Tests.FakeAdapter.html">FakeAdapter</a>
</li>
<li><a href="namespace-Symfony.Component.Finder.Tests.Iterator.html">Iterator</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.html">Extension<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Extension.Core.html">Core<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Extension.Core.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Core.DataMapper.html">DataMapper</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Core.DataTransformer.html">DataTransformer</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Core.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Core.Type.html">Type</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Core.View.html">View</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Extension.Csrf.html">Csrf<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Extension.Csrf.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Csrf.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.html">DataCollector<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.Proxy.html">Proxy</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.DataCollector.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Extension.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.HttpFoundation.html">HttpFoundation<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Extension.HttpFoundation.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Extension.Templating.html">Templating</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Validator.html">Validator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Extension.Validator.Constraints.html">Constraints</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Validator.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Validator.Type.html">Type</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Validator.Util.html">Util</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Extension.Validator.ViolationMapper.html">ViolationMapper</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Form.Guess.html">Guess</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Test.html">Test</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.html">Extension<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.html">Core<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.ChoiceList.html">ChoiceList</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.DataMapper.html">DataMapper</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.DataTransformer.html">DataTransformer</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Core.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.html">Csrf<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.CsrfProvider.html">CsrfProvider</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Csrf.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.DataCollector.html">DataCollector<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.DataCollector.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.HttpFoundation.html">HttpFoundation<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.HttpFoundation.EventListener.html">EventListener</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.html">Validator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.Constraints.html">Constraints</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.Type.html">Type</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.Util.html">Util</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Extension.Validator.ViolationMapper.html">ViolationMapper</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Form.Tests.Fixtures.html">Fixtures</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Guess.html">Guess</a>
</li>
<li><a href="namespace-Symfony.Component.Form.Tests.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Form.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.HttpFoundation.html">HttpFoundation<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.File.html">File<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.File.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.HttpFoundation.File.MimeType.html">MimeType</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Session.html">Session<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.Session.Attribute.html">Attribute</a>
</li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Session.Flash.html">Flash</a>
</li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Session.Storage.html">Storage<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.Session.Storage.Handler.html">Handler</a>
</li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Session.Storage.Proxy.html">Proxy</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.File.html">File<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.File.MimeType.html">MimeType</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.html">Session<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Attribute.html">Attribute</a>
</li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Flash.html">Flash</a>
</li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Storage.html">Storage<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Storage.Handler.html">Handler</a>
</li>
<li><a href="namespace-Symfony.Component.HttpFoundation.Tests.Session.Storage.Proxy.html">Proxy</a>
</li>
</ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Component.HttpKernel.html">HttpKernel<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpKernel.Bundle.html">Bundle</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.CacheClearer.html">CacheClearer</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Config.html">Config</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.DataCollector.html">DataCollector<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpKernel.DataCollector.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.HttpKernel.Debug.html">Debug</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Event.html">Event</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Fragment.html">Fragment</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.HttpCache.html">HttpCache</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Log.html">Log</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Profiler.html">Profiler</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Bundle.html">Bundle</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.CacheClearer.html">CacheClearer</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.CacheWarmer.html">CacheWarmer</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Config.html">Config</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Controller.html">Controller</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.DataCollector.html">DataCollector</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Debug.html">Debug</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionAbsentBundle.html">ExtensionAbsentBundle</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionLoadedBundle.html">ExtensionLoadedBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionLoadedBundle.DependencyInjection.html">DependencyInjection</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionPresentBundle.html">ExtensionPresentBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionPresentBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fixtures.ExtensionPresentBundle.DependencyInjection.html">DependencyInjection</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Fragment.html">Fragment</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.HttpCache.html">HttpCache</a>
</li>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Profiler.html">Profiler<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.HttpKernel.Tests.Profiler.Mock.html">Mock</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Icu.html">Icu<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Icu.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.html">Intl<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Collator.html">Collator</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.DateFormatter.html">DateFormatter<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.DateFormatter.DateFormat.html">DateFormat</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.Globals.html">Globals</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.Locale.html">Locale</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.NumberFormatter.html">NumberFormatter</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.ResourceBundle.html">ResourceBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Compiler.html">Compiler</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Reader.html">Reader</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Transformer.html">Transformer<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Transformer.Rule.html">Rule</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Util.html">Util</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.ResourceBundle.Writer.html">Writer</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Tests.Collator.html">Collator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Tests.Collator.Verification.html">Verification</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Tests.DateFormatter.html">DateFormatter<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Tests.DateFormatter.Verification.html">Verification</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Tests.Globals.html">Globals<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Tests.Globals.Verification.html">Verification</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Tests.Locale.html">Locale<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Tests.Locale.Verification.html">Verification</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Tests.NumberFormatter.html">NumberFormatter<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Tests.NumberFormatter.Verification.html">Verification</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.html">ResourceBundle<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.Reader.html">Reader</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.Util.html">Util</a>
</li>
<li><a href="namespace-Symfony.Component.Intl.Tests.ResourceBundle.Writer.html">Writer</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Tests.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Intl.Util.html">Util</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Locale.html">Locale<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Locale.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Locale.Tests.Stub.html">Stub</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.OptionsResolver.html">OptionsResolver<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.OptionsResolver.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.OptionsResolver.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Process.html">Process<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Process.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Process.Tests.html">Tests</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.PropertyAccess.html">PropertyAccess<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.PropertyAccess.Exception.html">Exception</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Routing.html">Routing<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Routing.Annotation.html">Annotation</a>
</li>
<li><a href="namespace-Symfony.Component.Routing.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Routing.Generator.html">Generator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Routing.Generator.Dumper.html">Dumper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Routing.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.Routing.Matcher.html">Matcher<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Routing.Matcher.Dumper.html">Dumper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Routing.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Routing.Tests.Annotation.html">Annotation</a>
</li>
<li><a href="namespace-Symfony.Component.Routing.Tests.Fixtures.html">Fixtures<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Routing.Tests.Fixtures.AnnotatedClasses.html">AnnotatedClasses</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Routing.Tests.Generator.html">Generator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Routing.Tests.Generator.Dumper.html">Dumper</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Routing.Tests.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.Routing.Tests.Matcher.html">Matcher<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Routing.Tests.Matcher.Dumper.html">Dumper</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Security.html">Security<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Acl.html">Acl<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Acl.Dbal.html">Dbal</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Domain.html">Domain</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Model.html">Model</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Permission.html">Permission</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Acl.Tests.Dbal.html">Dbal</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Tests.Domain.html">Domain</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Tests.Permission.html">Permission</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Acl.Tests.Voter.html">Voter</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Acl.Voter.html">Voter</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Core.html">Core<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Authentication.html">Authentication<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Authentication.Provider.html">Provider</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Authentication.RememberMe.html">RememberMe</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Authentication.Token.html">Token</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Core.Authorization.html">Authorization<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Authorization.Voter.html">Voter</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Core.Encoder.html">Encoder</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Event.html">Event</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Role.html">Role</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.html">Authentication<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.Provider.html">Provider</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.RememberMe.html">RememberMe</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Authentication.Token.html">Token</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Authorization.html">Authorization<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Authorization.Voter.html">Voter</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Encoder.html">Encoder</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Role.html">Role</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.User.html">User</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Util.html">Util</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Validator.html">Validator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Tests.Validator.Constraints.html">Constraints</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Security.Core.User.html">User</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Util.html">Util</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Core.Validator.html">Validator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Core.Validator.Constraints.html">Constraints</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Security.Csrf.html">Csrf<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Csrf.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Csrf.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Csrf.Tests.TokenGenerator.html">TokenGenerator</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Csrf.Tests.TokenStorage.html">TokenStorage</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Csrf.TokenGenerator.html">TokenGenerator</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Csrf.TokenStorage.html">TokenStorage</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Http.html">Http<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Http.Authentication.html">Authentication</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Authorization.html">Authorization</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.EntryPoint.html">EntryPoint</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Event.html">Event</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Firewall.html">Firewall</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Logout.html">Logout</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.RememberMe.html">RememberMe</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Session.html">Session</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Http.Tests.Authentication.html">Authentication</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Tests.EntryPoint.html">EntryPoint</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Tests.Firewall.html">Firewall</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Tests.Logout.html">Logout</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Tests.RememberMe.html">RememberMe</a>
</li>
<li><a href="namespace-Symfony.Component.Security.Http.Tests.Session.html">Session</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Security.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Tests.Core.html">Core<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Tests.Core.Authentication.html">Authentication<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Tests.Core.Authentication.Token.html">Token</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Tests.Core.User.html">User</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Security.Tests.Http.html">Http<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Security.Tests.Http.Firewall.html">Firewall</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Serializer.html">Serializer<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Serializer.Encoder.html">Encoder</a>
</li>
<li><a href="namespace-Symfony.Component.Serializer.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Serializer.Normalizer.html">Normalizer</a>
</li>
<li><a href="namespace-Symfony.Component.Serializer.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Serializer.Tests.Encoder.html">Encoder</a>
</li>
<li><a href="namespace-Symfony.Component.Serializer.Tests.Fixtures.html">Fixtures</a>
</li>
<li><a href="namespace-Symfony.Component.Serializer.Tests.Normalizer.html">Normalizer</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Stopwatch.html">Stopwatch</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.html">Templating<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Templating.Asset.html">Asset</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.Helper.html">Helper</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.Storage.html">Storage</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Templating.Tests.Fixtures.html">Fixtures</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.Tests.Helper.html">Helper</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.Tests.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.Templating.Tests.Storage.html">Storage</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Translation.html">Translation<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Translation.Catalogue.html">Catalogue</a>
</li>
<li><a href="namespace-Symfony.Component.Translation.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-Symfony.Component.Translation.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Translation.Extractor.html">Extractor</a>
</li>
<li><a href="namespace-Symfony.Component.Translation.Loader.html">Loader</a>
</li>
<li><a href="namespace-Symfony.Component.Translation.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Translation.Tests.Catalogue.html">Catalogue</a>
</li>
<li><a href="namespace-Symfony.Component.Translation.Tests.Dumper.html">Dumper</a>
</li>
<li><a href="namespace-Symfony.Component.Translation.Tests.Loader.html">Loader</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Translation.Writer.html">Writer</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Validator.html">Validator<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Validator.Constraints.html">Constraints</a>
</li>
<li><a href="namespace-Symfony.Component.Validator.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Validator.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Validator.Mapping.Cache.html">Cache</a>
</li>
<li><a href="namespace-Symfony.Component.Validator.Mapping.Loader.html">Loader</a>
</li>
</ul></li>
<li><a href="namespace-Symfony.Component.Validator.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Validator.Tests.Constraints.html">Constraints</a>
</li>
<li><a href="namespace-Symfony.Component.Validator.Tests.Fixtures.html">Fixtures</a>
</li>
<li><a href="namespace-Symfony.Component.Validator.Tests.Mapping.html">Mapping<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Validator.Tests.Mapping.Cache.html">Cache</a>
</li>
<li><a href="namespace-Symfony.Component.Validator.Tests.Mapping.Loader.html">Loader</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Symfony.Component.Yaml.html">Yaml<span></span></a>
<ul>
<li><a href="namespace-Symfony.Component.Yaml.Exception.html">Exception</a>
</li>
<li><a href="namespace-Symfony.Component.Yaml.Tests.html">Tests</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Tecnocreaciones.html">Tecnocreaciones<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.html">Bundle<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.html">AjaxFOSUserBundle<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.DependencyInjection.html">DependencyInjection<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.DependencyInjection.Compiler.html">Compiler</a>
</li>
</ul></li>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Event.html">Event</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.EventListener.html">EventListener</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Handler.html">Handler</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.AjaxFOSUserBundle.Tests.Controller.html">Controller</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.html">InstallBundle<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.Command.html">Command</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.InstallBundle.Tests.Controller.html">Controller</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.html">TemplateBundle<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Controller.html">Controller</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Menu.html">Menu<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Menu.Template.html">Template<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Menu.Template.Developer.html">Developer</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Bundle.TemplateBundle.Tests.Controller.html">Controller</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-Tecnocreaciones.Vzla.html">Vzla<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.html">GovernmentBundle<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.DependencyInjection.html">DependencyInjection</a>
</li>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Form.html">Form<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Form.Type.html">Type</a>
</li>
</ul></li>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Menu.html">Menu<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Menu.Template.html">Template<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Menu.Template.Developer.html">Developer</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Model.html">Model</a>
</li>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Tests.html">Tests<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Tests.Controller.html">Controller</a>
</li>
</ul></li>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Twig.html">Twig<span></span></a>
<ul>
<li><a href="namespace-Tecnocreaciones.Vzla.GovernmentBundle.Twig.Extension.html">Extension</a>
</li>
</ul></li></ul></li></ul></li></ul></li>
<li><a href="namespace-TestBundle.html">TestBundle<span></span></a>
<ul>
<li><a href="namespace-TestBundle.Fabpot.html">Fabpot<span></span></a>
<ul>
<li><a href="namespace-TestBundle.Fabpot.FooBundle.html">FooBundle<span></span></a>
<ul>
<li><a href="namespace-TestBundle.Fabpot.FooBundle.Controller.html">Controller</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-TestBundle.FooBundle.html">FooBundle<span></span></a>
<ul>
<li><a href="namespace-TestBundle.FooBundle.Controller.html">Controller<span></span></a>
<ul>
<li><a href="namespace-TestBundle.FooBundle.Controller.Sub.html">Sub</a>
</li>
<li><a href="namespace-TestBundle.FooBundle.Controller.Test.html">Test</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-TestBundle.Sensio.html">Sensio<span></span></a>
<ul>
<li><a href="namespace-TestBundle.Sensio.Cms.html">Cms<span></span></a>
<ul>
<li><a href="namespace-TestBundle.Sensio.Cms.FooBundle.html">FooBundle<span></span></a>
<ul>
<li><a href="namespace-TestBundle.Sensio.Cms.FooBundle.Controller.html">Controller</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-TestBundle.Sensio.FooBundle.html">FooBundle<span></span></a>
<ul>
<li><a href="namespace-TestBundle.Sensio.FooBundle.Controller.html">Controller</a>
</li>
</ul></li></ul></li></ul></li>
<li><a href="namespace-TestFixtures.html">TestFixtures</a>
</li>
<li><a href="namespace-Timestampable.html">Timestampable<span></span></a>
<ul>
<li><a href="namespace-Timestampable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Timestampable.Fixture.Document.html">Document</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Tool.html">Tool</a>
</li>
<li><a href="namespace-Translatable.html">Translatable<span></span></a>
<ul>
<li><a href="namespace-Translatable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Translatable.Fixture.Document.html">Document<span></span></a>
<ul>
<li><a href="namespace-Translatable.Fixture.Document.Personal.html">Personal</a>
</li>
</ul></li>
<li><a href="namespace-Translatable.Fixture.Issue114.html">Issue114</a>
</li>
<li><a href="namespace-Translatable.Fixture.Issue138.html">Issue138</a>
</li>
<li><a href="namespace-Translatable.Fixture.Issue165.html">Issue165</a>
</li>
<li><a href="namespace-Translatable.Fixture.Issue173.html">Issue173</a>
</li>
<li><a href="namespace-Translatable.Fixture.Issue75.html">Issue75</a>
</li>
<li><a href="namespace-Translatable.Fixture.Issue922.html">Issue922</a>
</li>
<li><a href="namespace-Translatable.Fixture.Personal.html">Personal</a>
</li>
<li><a href="namespace-Translatable.Fixture.Template.html">Template</a>
</li>
<li><a href="namespace-Translatable.Fixture.Type.html">Type</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Translator.html">Translator<span></span></a>
<ul>
<li><a href="namespace-Translator.Fixture.html">Fixture</a>
</li>
</ul></li>
<li><a href="namespace-Tree.html">Tree<span></span></a>
<ul>
<li><a href="namespace-Tree.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Tree.Fixture.Closure.html">Closure</a>
</li>
<li><a href="namespace-Tree.Fixture.Document.html">Document</a>
</li>
<li><a href="namespace-Tree.Fixture.Genealogy.html">Genealogy</a>
</li>
<li><a href="namespace-Tree.Fixture.Mock.html">Mock</a>
</li>
<li><a href="namespace-Tree.Fixture.Repository.html">Repository</a>
</li>
<li><a href="namespace-Tree.Fixture.Transport.html">Transport</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Uploadable.html">Uploadable<span></span></a>
<ul>
<li><a href="namespace-Uploadable.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Uploadable.Fixture.Entity.html">Entity</a>
</li>
</ul></li></ul></li>
<li><a href="namespace-Wrapper.html">Wrapper<span></span></a>
<ul>
<li><a href="namespace-Wrapper.Fixture.html">Fixture<span></span></a>
<ul>
<li><a href="namespace-Wrapper.Fixture.Document.html">Document</a>
</li>
<li><a href="namespace-Wrapper.Fixture.Entity.html">Entity</a>
</li>
</ul></li></ul></li>
</ul>
</div>
<hr />
<div id="elements">
<h3>Classes</h3>
<ul>
<li><a href="class-Monolog.Formatter.ChromePHPFormatter.html">ChromePHPFormatter</a></li>
<li><a href="class-Monolog.Formatter.ChromePHPFormatterTest.html">ChromePHPFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.ElasticaFormatter.html">ElasticaFormatter</a></li>
<li><a href="class-Monolog.Formatter.ElasticaFormatterTest.html">ElasticaFormatterTest</a></li>
<li class="active"><a href="class-Monolog.Formatter.FlowdockFormatter.html">FlowdockFormatter</a></li>
<li><a href="class-Monolog.Formatter.FlowdockFormatterTest.html">FlowdockFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.FormatterInterface.html" class="invalid">FormatterInterface</a></li>
<li><a href="class-Monolog.Formatter.GelfMessageFormatter.html">GelfMessageFormatter</a></li>
<li><a href="class-Monolog.Formatter.GelfMessageFormatterTest.html">GelfMessageFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.HtmlFormatter.html">HtmlFormatter</a></li>
<li><a href="class-Monolog.Formatter.JsonFormatter.html">JsonFormatter</a></li>
<li><a href="class-Monolog.Formatter.JsonFormatterTest.html">JsonFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.LineFormatter.html" class="invalid">LineFormatter</a></li>
<li><a href="class-Monolog.Formatter.LineFormatterTest.html">LineFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.LogglyFormatter.html">LogglyFormatter</a></li>
<li><a href="class-Monolog.Formatter.LogglyFormatterTest.html">LogglyFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.LogstashFormatter.html">LogstashFormatter</a></li>
<li><a href="class-Monolog.Formatter.LogstashFormatterTest.html">LogstashFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.NormalizerFormatter.html" class="invalid">NormalizerFormatter</a></li>
<li><a href="class-Monolog.Formatter.NormalizerFormatterTest.html">NormalizerFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.ScalarFormatter.html">ScalarFormatter</a></li>
<li><a href="class-Monolog.Formatter.ScalarFormatterTest.html">ScalarFormatterTest</a></li>
<li><a href="class-Monolog.Formatter.TestBar.html">TestBar</a></li>
<li><a href="class-Monolog.Formatter.TestBarNorm.html">TestBarNorm</a></li>
<li><a href="class-Monolog.Formatter.TestFoo.html">TestFoo</a></li>
<li><a href="class-Monolog.Formatter.TestFooNorm.html">TestFooNorm</a></li>
<li><a href="class-Monolog.Formatter.WildfireFormatter.html">WildfireFormatter</a></li>
<li><a href="class-Monolog.Formatter.WildfireFormatterTest.html">WildfireFormatterTest</a></li>
</ul>
</div>
</div>
</div>
<div id="splitter"></div>
<div id="right">
<div id="rightInner">
<form id="search">
<input type="hidden" name="cx" value="" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" class="text" />
<input type="submit" value="Search" />
</form>
<div id="navigation">
<ul>
<li>
<a href="index.html" title="Overview"><span>Overview</span></a>
</li>
<li>
<a href="namespace-Monolog.Formatter.html" title="Summary of Monolog\Formatter"><span>Namespace</span></a>
</li>
<li>
<a href="class-Monolog.Formatter.FlowdockFormatter.html" title="Summary of Monolog\Formatter\FlowdockFormatter"><span>Class</span></a>
</li>
</ul>
<ul>
<li>
<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
</li>
</ul>
<ul>
</ul>
</div>
<pre><code><span id="1" class="l"><a class="l" href="#1"> 1: </a><span class="xlang"><?php</span>
</span><span id="2" class="l"><a class="l" href="#2"> 2: </a>
</span><span id="3" class="l"><a class="l" href="#3"> 3: </a><span class="php-comment">/*
</span></span><span id="4" class="l"><a class="l" href="#4"> 4: </a><span class="php-comment"> * This file is part of the Monolog package.
</span></span><span id="5" class="l"><a class="l" href="#5"> 5: </a><span class="php-comment"> *
</span></span><span id="6" class="l"><a class="l" href="#6"> 6: </a><span class="php-comment"> * (c) Jordi Boggiano <j.boggiano@seld.be>
</span></span><span id="7" class="l"><a class="l" href="#7"> 7: </a><span class="php-comment"> *
</span></span><span id="8" class="l"><a class="l" href="#8"> 8: </a><span class="php-comment"> * For the full copyright and license information, please view the LICENSE
</span></span><span id="9" class="l"><a class="l" href="#9"> 9: </a><span class="php-comment"> * file that was distributed with this source code.
</span></span><span id="10" class="l"><a class="l" href="#10"> 10: </a><span class="php-comment"> */</span>
</span><span id="11" class="l"><a class="l" href="#11"> 11: </a>
</span><span id="12" class="l"><a class="l" href="#12"> 12: </a><span class="php-keyword1">namespace</span> Monolog\Formatter;
</span><span id="13" class="l"><a class="l" href="#13"> 13: </a>
</span><span id="14" class="l"><a class="l" href="#14"> 14: </a><span class="php-comment">/**
</span></span><span id="15" class="l"><a class="l" href="#15"> 15: </a><span class="php-comment"> * formats the record to be used in the FlowdockHandler
</span></span><span id="16" class="l"><a class="l" href="#16"> 16: </a><span class="php-comment"> *
</span></span><span id="17" class="l"><a class="l" href="#17"> 17: </a><span class="php-comment"> * @author Dominik Liebler <liebler.dominik@gmail.com>
</span></span><span id="18" class="l"><a class="l" href="#18"> 18: </a><span class="php-comment"> */</span>
</span><span id="19" class="l"><a class="l" href="#19"> 19: </a><span class="php-keyword1">class</span> <a id="FlowdockFormatter" href="#FlowdockFormatter">FlowdockFormatter</a> <span class="php-keyword1">implements</span> FormatterInterface
</span><span id="20" class="l"><a class="l" href="#20"> 20: </a>{
</span><span id="21" class="l"><a class="l" href="#21"> 21: </a> <span class="php-comment">/**
</span></span><span id="22" class="l"><a class="l" href="#22"> 22: </a><span class="php-comment"> * @var string
</span></span><span id="23" class="l"><a class="l" href="#23"> 23: </a><span class="php-comment"> */</span>
</span><span id="24" class="l"><a class="l" href="#24"> 24: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$source" href="#$source">$source</a></span>;
</span><span id="25" class="l"><a class="l" href="#25"> 25: </a>
</span><span id="26" class="l"><a class="l" href="#26"> 26: </a> <span class="php-comment">/**
</span></span><span id="27" class="l"><a class="l" href="#27"> 27: </a><span class="php-comment"> * @var string
</span></span><span id="28" class="l"><a class="l" href="#28"> 28: </a><span class="php-comment"> */</span>
</span><span id="29" class="l"><a class="l" href="#29"> 29: </a> <span class="php-keyword1">private</span> <span class="php-var"><a id="$sourceEmail" href="#$sourceEmail">$sourceEmail</a></span>;
</span><span id="30" class="l"><a class="l" href="#30"> 30: </a>
</span><span id="31" class="l"><a class="l" href="#31"> 31: </a> <span class="php-comment">/**
</span></span><span id="32" class="l"><a class="l" href="#32"> 32: </a><span class="php-comment"> * @param string $source
</span></span><span id="33" class="l"><a class="l" href="#33"> 33: </a><span class="php-comment"> * @param string $sourceEmail
</span></span><span id="34" class="l"><a class="l" href="#34"> 34: </a><span class="php-comment"> */</span>
</span><span id="35" class="l"><a class="l" href="#35"> 35: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="___construct" href="#___construct">__construct</a>(<span class="php-var">$source</span>, <span class="php-var">$sourceEmail</span>)
</span><span id="36" class="l"><a class="l" href="#36"> 36: </a> {
</span><span id="37" class="l"><a class="l" href="#37"> 37: </a> <span class="php-var">$this</span>->source = <span class="php-var">$source</span>;
</span><span id="38" class="l"><a class="l" href="#38"> 38: </a> <span class="php-var">$this</span>->sourceEmail = <span class="php-var">$sourceEmail</span>;
</span><span id="39" class="l"><a class="l" href="#39"> 39: </a> }
</span><span id="40" class="l"><a class="l" href="#40"> 40: </a>
</span><span id="41" class="l"><a class="l" href="#41"> 41: </a> <span class="php-comment">/**
</span></span><span id="42" class="l"><a class="l" href="#42"> 42: </a><span class="php-comment"> * {@inheritdoc}
</span></span><span id="43" class="l"><a class="l" href="#43"> 43: </a><span class="php-comment"> */</span>
</span><span id="44" class="l"><a class="l" href="#44"> 44: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_format" href="#_format">format</a>(<span class="php-keyword1">array</span> <span class="php-var">$record</span>)
</span><span id="45" class="l"><a class="l" href="#45"> 45: </a> {
</span><span id="46" class="l"><a class="l" href="#46"> 46: </a> <span class="php-var">$tags</span> = <span class="php-keyword1">array</span>(
</span><span id="47" class="l"><a class="l" href="#47"> 47: </a> <span class="php-quote">'#logs'</span>,
</span><span id="48" class="l"><a class="l" href="#48"> 48: </a> <span class="php-quote">'#'</span> . <span class="php-keyword2">strtolower</span>(<span class="php-var">$record</span>[<span class="php-quote">'level_name'</span>]),
</span><span id="49" class="l"><a class="l" href="#49"> 49: </a> <span class="php-quote">'#'</span> . <span class="php-var">$record</span>[<span class="php-quote">'channel'</span>],
</span><span id="50" class="l"><a class="l" href="#50"> 50: </a> );
</span><span id="51" class="l"><a class="l" href="#51"> 51: </a>
</span><span id="52" class="l"><a class="l" href="#52"> 52: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$record</span>[<span class="php-quote">'extra'</span>] <span class="php-keyword1">as</span> <span class="php-var">$value</span>) {
</span><span id="53" class="l"><a class="l" href="#53"> 53: </a> <span class="php-var">$tags</span>[] = <span class="php-quote">'#'</span> . <span class="php-var">$value</span>;
</span><span id="54" class="l"><a class="l" href="#54"> 54: </a> }
</span><span id="55" class="l"><a class="l" href="#55"> 55: </a>
</span><span id="56" class="l"><a class="l" href="#56"> 56: </a> <span class="php-var">$subject</span> = <span class="php-keyword2">sprintf</span>(
</span><span id="57" class="l"><a class="l" href="#57"> 57: </a> <span class="php-quote">'in %s: %s - %s'</span>,
</span><span id="58" class="l"><a class="l" href="#58"> 58: </a> <span class="php-var">$this</span>->source,
</span><span id="59" class="l"><a class="l" href="#59"> 59: </a> <span class="php-var">$record</span>[<span class="php-quote">'level_name'</span>],
</span><span id="60" class="l"><a class="l" href="#60"> 60: </a> <span class="php-var">$this</span>->getShortMessage(<span class="php-var">$record</span>[<span class="php-quote">'message'</span>])
</span><span id="61" class="l"><a class="l" href="#61"> 61: </a> );
</span><span id="62" class="l"><a class="l" href="#62"> 62: </a>
</span><span id="63" class="l"><a class="l" href="#63"> 63: </a> <span class="php-var">$record</span>[<span class="php-quote">'flowdock'</span>] = <span class="php-keyword1">array</span>(
</span><span id="64" class="l"><a class="l" href="#64"> 64: </a> <span class="php-quote">'source'</span> => <span class="php-var">$this</span>->source,
</span><span id="65" class="l"><a class="l" href="#65"> 65: </a> <span class="php-quote">'from_address'</span> => <span class="php-var">$this</span>->sourceEmail,
</span><span id="66" class="l"><a class="l" href="#66"> 66: </a> <span class="php-quote">'subject'</span> => <span class="php-var">$subject</span>,
</span><span id="67" class="l"><a class="l" href="#67"> 67: </a> <span class="php-quote">'content'</span> => <span class="php-var">$record</span>[<span class="php-quote">'message'</span>],
</span><span id="68" class="l"><a class="l" href="#68"> 68: </a> <span class="php-quote">'tags'</span> => <span class="php-var">$tags</span>,
</span><span id="69" class="l"><a class="l" href="#69"> 69: </a> <span class="php-quote">'project'</span> => <span class="php-var">$this</span>->source,
</span><span id="70" class="l"><a class="l" href="#70"> 70: </a> );
</span><span id="71" class="l"><a class="l" href="#71"> 71: </a>
</span><span id="72" class="l"><a class="l" href="#72"> 72: </a> <span class="php-keyword1">return</span> <span class="php-var">$record</span>;
</span><span id="73" class="l"><a class="l" href="#73"> 73: </a> }
</span><span id="74" class="l"><a class="l" href="#74"> 74: </a>
</span><span id="75" class="l"><a class="l" href="#75"> 75: </a> <span class="php-comment">/**
</span></span><span id="76" class="l"><a class="l" href="#76"> 76: </a><span class="php-comment"> * {@inheritdoc}
</span></span><span id="77" class="l"><a class="l" href="#77"> 77: </a><span class="php-comment"> */</span>
</span><span id="78" class="l"><a class="l" href="#78"> 78: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_formatBatch" href="#_formatBatch">formatBatch</a>(<span class="php-keyword1">array</span> <span class="php-var">$records</span>)
</span><span id="79" class="l"><a class="l" href="#79"> 79: </a> {
</span><span id="80" class="l"><a class="l" href="#80"> 80: </a> <span class="php-var">$formatted</span> = <span class="php-keyword1">array</span>();
</span><span id="81" class="l"><a class="l" href="#81"> 81: </a>
</span><span id="82" class="l"><a class="l" href="#82"> 82: </a> <span class="php-keyword1">foreach</span> (<span class="php-var">$records</span> <span class="php-keyword1">as</span> <span class="php-var">$record</span>) {
</span><span id="83" class="l"><a class="l" href="#83"> 83: </a> <span class="php-var">$formatted</span>[] = <span class="php-var">$this</span>->format(<span class="php-var">$record</span>);
</span><span id="84" class="l"><a class="l" href="#84"> 84: </a> }
</span><span id="85" class="l"><a class="l" href="#85"> 85: </a>
</span><span id="86" class="l"><a class="l" href="#86"> 86: </a> <span class="php-keyword1">return</span> <span class="php-var">$formatted</span>;
</span><span id="87" class="l"><a class="l" href="#87"> 87: </a> }
</span><span id="88" class="l"><a class="l" href="#88"> 88: </a>
</span><span id="89" class="l"><a class="l" href="#89"> 89: </a> <span class="php-comment">/**
</span></span><span id="90" class="l"><a class="l" href="#90"> 90: </a><span class="php-comment"> * @param string $message
</span></span><span id="91" class="l"><a class="l" href="#91"> 91: </a><span class="php-comment"> *
</span></span><span id="92" class="l"><a class="l" href="#92"> 92: </a><span class="php-comment"> * @return string
</span></span><span id="93" class="l"><a class="l" href="#93"> 93: </a><span class="php-comment"> */</span>
</span><span id="94" class="l"><a class="l" href="#94"> 94: </a> <span class="php-keyword1">public</span> <span class="php-keyword1">function</span> <a id="_getShortMessage" href="#_getShortMessage">getShortMessage</a>(<span class="php-var">$message</span>)
</span><span id="95" class="l"><a class="l" href="#95"> 95: </a> {
</span><span id="96" class="l"><a class="l" href="#96"> 96: </a> <span class="php-var">$maxLength</span> = <span class="php-num">45</span>;
</span><span id="97" class="l"><a class="l" href="#97"> 97: </a>
</span><span id="98" class="l"><a class="l" href="#98"> 98: </a> <span class="php-keyword1">if</span> (<span class="php-keyword2">strlen</span>(<span class="php-var">$message</span>) > <span class="php-var">$maxLength</span>) {
</span><span id="99" class="l"><a class="l" href="#99"> 99: </a> <span class="php-var">$message</span> = <span class="php-keyword2">substr</span>(<span class="php-var">$message</span>, <span class="php-num">0</span>, <span class="php-var">$maxLength</span> - <span class="php-num">4</span>) . <span class="php-quote">' ...'</span>;
</span><span id="100" class="l"><a class="l" href="#100">100: </a> }
</span><span id="101" class="l"><a class="l" href="#101">101: </a>
</span><span id="102" class="l"><a class="l" href="#102">102: </a> <span class="php-keyword1">return</span> <span class="php-var">$message</span>;
</span><span id="103" class="l"><a class="l" href="#103">103: </a> }
</span><span id="104" class="l"><a class="l" href="#104">104: </a>}
</span><span id="105" class="l"><a class="l" href="#105">105: </a></span></code></pre>
<div id="footer">
seip API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
</div>
</div>
</div>
</body>
</html>
|
__author__ = 'mengpeng'
import os
from unittest import TestCase
from pycrawler.scraper import DefaultScraper
from pycrawler.handler import Handler
from pycrawler.utils.tools import gethash
from test_scraper import SpiderTest
class TestTempHandler(TestCase):
def test_setargs(self):
h = Handler.get('TempHandler')(SpiderTest('testspider'))
self.assertEqual('./tmp/testspider/', h.args['path'])
args = {'path': './newpath/'}
h.setargs(args)
self.assertEqual('./newpath/testspider/', h.args['path'])
def test_parse(self):
h = Handler.get('TempHandler')(SpiderTest('testspider'))
h.parse('conent', 'testurl1')
self.assertTrue(os.path.exists(h._tmpfilename('testurl1')))
def test__tmpfilename(self):
h = Handler.get('TempHandler')(SpiderTest('testspider'))
self.assertEqual('./tmp/testspider/' + str(gethash('sample')) + '.html', h._tmpfilename('sample'))
self.assertTrue(os.path.exists('./tmp/')) |
<?php namespace Fbf\LaravelSimpleFaqs;
use Eloquent;
class Faq extends Eloquent {
const DRAFT = 'DRAFT';
const APPROVED = 'APPROVED';
protected $table = 'fbf_laravel_simple_faqs';
public static $sluggable = array(
'build_from' => 'question',
'save_to' => 'slug',
'unique' => true,
);
} |
#ifndef __ACTOR_H__
#define __ACTOR_H__
/*
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// --
// -- File Name: FOUR.Actor.h
// --
// -- Author(s): Paul Nispel
// --
// -- Creation Date: 4/17/2013
// --
// ----------------------------------------------------------------------------
// --
// -- Copyright Paul Nispel 2013
// --
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
*/
class Vector3;
class Component;
// ------------------------------------ //
#include "../core/Group.h"
// --------------------------------------------------------------------
// *** A C T O R
// --------------------------------------------------------------------
class Actor {
public: // *** P U B L I C V A R I A B L E S
Actor * parent;
Vector3 * position;
Group< Actor * > children;
public: // *** P U B L I C M E T H O D S
Actor() {}
Actor * createChild () { return this;}
Actor * addChild () { return this;}
protected:
private:
};
#endif //__ACTOR_H__ |
---
title: Criando uma linguagem de programação com o ANTLR4
layout: post
date: '2017-10-08 16:00:00'
disqus: 'true'
categories: compilers
---
Neste artigo, vamos aprender como criar uma linguagem de programação simples com o **ANTLR4**, que é uma ferramenta em que você define uma gramática, e por meio do resultado de sua gramática você cria os comportamentos de sua linguagem. Recomendo a leitura do artigo [Entendendo o Processo de Compilação](https://www.sergioaugrod.com/compilers/2017/02/27/entendendo-o-processo-de-compilacao.html) que tem uma explicação um pouco mais detalhada sobre o que é Análise Léxica e Análise Sintática, que é o resultado gerado pelo ANTLR4 por meio de sua gramática.
#### Instalando o ANTLR4 no Linux
- Instale o Java com versão acima da 1.6;
- Execute os passos abaixo para baixar e instalar o binário no Linux:
{% highlight shell_session %}
$ cd /usr/local/lib
$ curl -O http://www.antlr.org/download/antlr-4.5.3-complete.jar
{% endhighlight %}
- Exporte o CLASSPATH do ANTLR4, se possível já adicione em seu .bash_profile ou .zshrc:
{% highlight shell_session %}
$ export CLASSPATH=".:/usr/local/lib/antlr-4.5.3-complete.jar:$CLASSPATH"
{% endhighlight %}
Para mais detalhes sobre a instalação visite o [Getting Started](https://github.com/antlr/antlr4/blob/master/doc/getting-started.md) do ANTLR4, que também possui os passos para instalação em outros sitemas operacionais.
#### Criando a gramática de nossa linguagem
A gramática da nossa linguagem é onde será definida a *syntax*, e tudo que é permitido se ter como instrução. Vamos chamar nossa linguagem de **Zerolang**. Para isso vamos criar nosso arquivo de gramática Zerolang.g4 (g4 é a extensão do ANTLR).
Já editando o arquivo Zerolang.g4, no início vamos definir o nome da gramática (mesmo nome do arquivo):
```
grammar Zerolang;
```
Agora vamos criar a chave inicial da nossa gramática, vamos dar o nome de *program*, podendo ser qualquer outro nome de sua escolha:
```
program
: 'begin' statement+ 'end';
```
Repare que logo abaixo da chave há uma outra declaração, nela queremos dizer, que nosso código deve iniciar com *begin*, ter um ou mais *statement* e terminar com *end*. Agora vamos definir o que é a chave *statement*:
```
statement
: assign
| print ;
```
Como descrito acima, essa chave pode ser outra duas chaves, *assign* ou *print*. Vamos começar definindo o que é a chave *assign*, que é a responsável pela declaração de variáveis:
```
assign
: 'var' ID '=>' (NUMBER | ID) ;
```
Nossa declaração de variável na Zerolang será da seguinte forma: `var variavel => 10`. O valor da variável pode ser um número(NUMBER) ou um identificador(ID), que vamos deixar para definir no final. Agora vamos para definição da chave *print*:
```
print
: 'print' (NUMBER | ID) ;
```
O print em nossa linguagem poderá ser de um número(NUMBER) ou uma variável(ID). Por exemplo: `print 25`.
E no final da nossa gramática vamos definir o que é um número, um identificador e o que ignorar no código:
```
ID : [a-z]+ ;
NUMBER : [0-9]+ ;
WS : [ \n\t]+ -> skip;
```
O resultado final deste arquivo pode ser visualizado no [Github](https://github.com/sergioaugrod/zerolang/blob/master/src/Zerolang.g4).
#### Gerando o Parser e Lexer da linguagem
O ANTLR4 é uma ferramenta bem interessante, e com ela somente é necessário escrever a gramática da linguagem, sem se preocupar com o resultado do lexer/parser, tudo será gerado pela ferramenta. O código gerado pelo **ANTLR4** por padrão é para a linguagem Java, mas tem *outputs* para Python, Javascript entre outras linguagens. Para gerar os arquivos por meio do arquivo Zerolang.g4 siga os passos abaixo:
{% highlight shell_session %}
$ antlr4 Zerolang.g4
$ javac Zerolang*.java
{% endhighlight %}
#### Testando nossa gramática
Executando o comando abaixo você conseguirá testar a gramática criada e visualizar a AST gerada pelo seu código fonte:
{% highlight shell_session %}
$ grun Zerolang program -gui
begin
a => 10
print a
end
{% endhighlight %}
#### Navegando pela árvore gerada pelo parser do ANTLR
Agora devemos navegar pela AST e assim estabelecer os comportamentos de nossa linguagem. Devemos criar um *Listener*, abaixo criei uma classe chamada *MyListener* e herdei da classe *ZerolangBaseListener* (gerada pelo ANTLR4). Implementei utilizando a linguagem Kotlin, fiquem a vontade para utilizar o Java.
{% highlight kotlin %}
class MyListener : ZerolangBaseListener() {
val variables : MutableMap<String, Int?> = mutableMapOf()
override fun exitAssign(ctx: ZerolangParser.AssignContext) {
val variableName = ctx.ID(0).text
val variableValue = Integer.parseInt(ctx.NUMBER().text)
variables.put(variableName, variableValue)
}
override fun exitPrint(ctx: ZerolangParser.PrintContext) {
val output = if (ctx.ID() == null) ctx.NUMBER().text else variables[ctx.ID().text]
println(output)
}
}
{% endhighlight %}
Na classe acima sobrescrevi dois métodos: *exitAssign* e *exitPrint*. O primeiro será executado após uma instrução de atribuição de variável (assign) e o segundo após uma instrução de print. É aqui que você deverá implementar os comportamentos de sua linguagem. No caso do *exitAssign* estamos "criando" as variáveis e adicionando em um *HashMap*. O *exitPrint* "printa" um valor ou uma varíavel.
#### Executando o código
Vamos agora criar a classe principal da nossa linguagem, responsável por executar nosso código fonte:
{% highlight kotlin %}
import org.antlr.v4.runtime.ANTLRInputStream
import org.antlr.v4.runtime.CommonTokenStream
import java.io.FileInputStream
fun main(args: Array<String>) {
val sourceCode = "code.zl"
val input = ANTLRInputStream(FileInputStream(sourceCode))
val lexer = ZerolangLexer(input)
val parser = ZerolangParser(CommonTokenStream(lexer))
parser.addParseListener(MyListener())
parser.program()
}
{% endhighlight %}
Nesta classe estamos lendo o código fonte, criando o lexer, parser e adicionando o nosso o *Listener* criado anteriormente.
Vamos agora criar o arquivo com o nome de `code.zl` (nome definido na classe anterior), que conterá o código fonte de nossa linguagem:
```
begin
var a => 10
print a
end
```
Vamos testar nossa linguagem criada:
{% highlight shell_session %}
$ java Main
{% endhighlight %}
#### Links
- https://github.com/antlr/antlr4
- https://github.com/antlr/antlr4/blob/master/doc/getting-started.md
- https://github.com/sergioaugrod/zerolang
- https://www.sergioaugrod.com.br/compilers/2017/02/27/entendendo-o-processo-de-compilacao.html
- https://kotlinlang.org
|
---
layout: default
date: 2016-12-04T12:06:24+08:00
categories: api
title: API documentation
permalink: /api
---
<a href="/cn/api" class="ui labeled icon mini button"><i class="hand point right icon"></i>中文</a>
## Template functions
### Common functions
<div class="ui styled accordion" style="width: 100%">
<!-- context -->
<div class="title"><h5><code><span class="function-name">context</span>()</code>
Get context object
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{define "T_struct"}}
{{.Doc}}type {{.Name}} struct {
{{range $field := .Fields}}{{$field.Name}} {{<span class="function-name">context</span>.BuildType $field.Type}}
{{end}}
}
{{end}}
{% endraw %}</code></pre></div>
<!-- error -->
<div class="title"><h5><code><span class="function-name">error</span>(<span class="field-name">format</span> int, <span class="field-name">args</span> ...any)</code>
Output error message
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">error</span> "Error: %s" "no such file"}}
{% endraw %}</code></pre></div>
<!-- includeTemplate -->
<div class="title"><h5><code><span class="function-name">includeTemplate</span>(<span class="field-name">filename</span> string, <span class="field-name">data</span> any)</code>
Include template file
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">includeTemplate</span> "file.temp" .}}
{% endraw %}</code></pre></div>
<!-- include -->
<div class="title"><h5><code><span class="function-name">include</span>(<span class="field-name">filename</span> string)</code>
Include file
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">include</span> "file.ext"}}
{% endraw %}</code></pre></div>
<!-- isInt -->
<div class="title"><h5><code><span class="function-name">isInt</span>(<span class="field-name">type</span> string)</code>
Determine if type is an integer
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">isInt</span> "int"}} {{/*true*/}}
{{<span class="function-name">isInt</span> "int8"}} {{/*true*/}}
{{<span class="function-name">isInt</span> "uint"}} {{/*true*/}}
{{<span class="function-name">isInt</span> "uint32"}} {{/*true*/}}
{{<span class="function-name">isInt</span> "string"}} {{/*false*/}}
{% endraw %}</code></pre></div>
<!-- joinPath -->
<div class="title"><h5><code><span class="function-name">joinPath</span>(<span class="field-name">paths</span> ...string)</code>
Join path, like the filepath.Join function of go
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">joinPath</span> "path" "to/"}} {{/*path/to*/}}
{% endraw %}</code></pre></div>
<!-- osenv -->
<div class="title"><h5><code><span class="function-name">osenv</span>(<span class="field-name">key</span> string)</code>
Get system environment variables
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">osenv</span> "HOME"}}
{% endraw %}</code></pre></div>
<!-- outdir -->
<div class="title"><h5><code><span class="function-name">outdir</span>()</code>
Get the root directory of the generated file (that is, the directory specified by the -O parameter)
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{joinPath (<span class="function-name">outdir</span>) "subdir"}}
{% endraw %}</code></pre></div>
<!-- pwd -->
<div class="title"><h5><code><span class="function-name">pwd</span>()</code>
Get the directory where the current template file is located
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{joinPath (<span class="function-name">pwd</span>) "subdir"}}
{% endraw %}</code></pre></div>
<!-- slice -->
<div class="title"><h5><code><span class="function-name">slice</span>(<span class="field-name">values</span> ...any)</code>
Make all the parameters into a slice
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{$s := (<span class="function-name">slice</span> "abc" 123 true)}}
{{valueAt $s 0}}
{{valueAt $s 1}}
{{valueAt $s 2}}
{% endraw %}</code></pre></div>
<!-- valueAt -->
<div class="title"><h5><code><span class="function-name">valueAt</span>(<span class="field-name">values</span> []any, <span class="field-name">i</span> int)</code>
Get the ith element of the array values (i starts at 0)
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{$s := (slice "abc" 123 true)}}
{{<span class="function-name">valueAt</span> $s 0}}
{{<span class="function-name">valueAt</span> $s 1}}
{{<span class="function-name">valueAt</span> $s 2}}
{% endraw %}</code></pre></div>
</div>
### String functions
<div class="ui styled accordion" style="width: 100%">
<!-- append -->
<div class="title"><h5><code><span class="function-name">append</span>(<span class="field-name">appended</span> string, <span class="field-name">s</span> string)</code>
Append string (return s + appended)
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">append</span> "King" "Hello"}} {{/*HelloKing*/}}
{{title "hello" | <span class="function-name">append</span> "King"}} {{/*HelloKing*/}}
{% endraw %}</code></pre></div>
<!-- containsAny -->
<div class="title"><h5><code><span class="function-name">containsAny</span>(<span class="field-name">chars</span> string, <span class="field-name">s</span> string)</code>
Check if the string s contains one of the unicode characters in chars
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">containsAny</span> "abcd" "hello"}} {{/*false*/}}
{{<span class="function-name">containsAny</span> "abcd" "bug"}} {{/*true*/}}
{% endraw %}</code></pre></div>
<!-- contains -->
<div class="title"><h5><code><span class="function-name">contains</span>(<span class="field-name">substr</span> string, <span class="field-name">s</span> string)</code>
Check if the substr substring is included in the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">contains</span> "abcd" "bug"}} {{/*false*/}}
{{<span class="function-name">contains</span> "abcd" "helloabcde"}} {{/*true*/}}
{% endraw %}</code></pre></div>
<!-- count -->
<div class="title"><h5><code><span class="function-name">count</span>(<span class="field-name">substr</span> string, <span class="field-name">s</span> string)</code>
Calculate how many substr substrings are contained in the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">count</span> "abc" "bug"}} {{/*0*/}}
{{<span class="function-name">contains</span> "abc" "helloabc"}} {{/*1*/}}
{{<span class="function-name">contains</span> "abc" "helloabcxxabcd"}} {{/*2*/}}
{% endraw %}</code></pre></div>
<!-- firstOf -->
<div class="title"><h5><code><span class="function-name">firstOf</span>(<span class="field-name">sep</span> string, <span class="field-name">s</span> string)</code>
Split the string s with sep as the separator to get the first string
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">firstOf</span> "," "hello,world"}} {{/*hello*/}}
{% endraw %}</code></pre></div>
<!-- hasPrefix -->
<div class="title"><h5><code><span class="function-name">hasPrefix</span>(<span class="field-name">prefix</span> string, <span class="field-name">s</span> string)</code>
Determine if the string s has a prefix prefix
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">hasPrefix</span> "hel" "hello,world"}} {{/*true*/}}
{% endraw %}</code></pre></div>
<!-- hasSuffix -->
<div class="title"><h5><code><span class="function-name">hasSuffix</span>(<span class="field-name">suffix</span> string, <span class="field-name">s</span> string)</code>
Determine if the string s has a suffix suffix
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">hasSuffix</span> "ld" "hello,world"}} {{/*true*/}}
{% endraw %}</code></pre></div>
<!-- index -->
<div class="title"><h5><code><span class="function-name">index</span>(<span class="field-name">substr</span> string, <span class="field-name">s</span> string)</code>
Get the index of the substring substr in the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">index</span> "xx" "hello,tele"}} {{/*-1*/}}
{{<span class="function-name">index</span> "el" "hello,tele"}} {{/*1*/}}
{{<span class="function-name">index</span> "llo" "hello,tele"}} {{/*2*/}}
{% endraw %}</code></pre></div>
<!-- joinStrings -->
<div class="title"><h5><code><span class="function-name">joinStrings</span>(<span class="field-name">sep</span> string, <span class="field-name">strs</span> []string)</code>
Join the strs array into a string with sep as a separator
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{$s := (slice "hello" "world")}}
{{<span class="function-name">joinStrings</span>"," $s}} {{/*hello,world*/}}
{% endraw %}</code></pre></div>
<!-- join -->
<div class="title"><h5><code><span class="function-name">join</span>(<span class="field-name">sep</span> string, <span class="field-name">strs</span> ...string)</code>
Join the variable length parameter strs into a string with sep as the separator
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">join</span>"," "hello" "world"}} {{/*hello,world*/}}
{% endraw %}</code></pre></div>
<!-- lastIndex -->
<div class="title"><h5><code><span class="function-name">lastIndex</span>(<span class="field-name">substr</span> string, <span class="field-name">s</span> string)</code>
Get the index of the last matched substring substr in the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">index</span> "xx" "hello,tele"}} {{/*-1*/}}
{{<span class="function-name">lastIndex</span> "el" "hello,tele"}} {{/*7*/}}
{{<span class="function-name">index</span> "llo" "hello,tele"}} {{/*2*/}}
{% endraw %}</code></pre></div>
<!-- lastOf -->
<div class="title"><h5><code><span class="function-name">lastOf</span>(<span class="field-name">sep</span> string, <span class="field-name">s</span> string)</code>
Split the string s with sep as the separator to get the last string
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">lastOf</span> "," "hello,world"}} {{/*world*/}}
{% endraw %}</code></pre></div>
<!-- lowerCamel -->
<div class="title"><h5><code><span class="function-name">lowerCamel</span>(<span class="field-name">s</span> string)</code>
Convert the string s to lower camel-case
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">lowerCamel</span> "helloWorld"}} {{/*helloWorld*/}}
{{<span class="function-name">lowerCamel</span> "HelloWorld"}} {{/*helloWorld*/}}
{{<span class="function-name">lowerCamel</span> "hello_world"}} {{/*helloWorld*/}}
{% endraw %}</code></pre></div>
<!-- nthOf -->
<div class="title"><h5><code><span class="function-name">nthOf</span>(<span class="field-name">sep</span> string, <span class="field-name">n</span> int, <span class="field-name">s</span> string)</code>
Split the string s with sep as the separator to get the nth string (n starts at 0)
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">nthOf</span> "," 0 "hello,world"}} {{/*hello*/}}
{{<span class="function-name">nthOf</span> "," 1 "hello,world"}} {{/*world*/}}
{% endraw %}</code></pre></div>
<!-- oneof -->
<div class="title"><h5><code><span class="function-name">oneof</span>(<span class="field-name">s</span> string, <span class="field-name">set</span> ...string)</code>
Determine if the string s is one of the string values set
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">oneof</span> "haha" "hello" "world"}} {{/*false*/}}
{{<span class="function-name">oneof</span> "hello" "hello" "world"}} {{/*true*/}}
{{<span class="function-name">oneof</span> "world" "hello" "world"}} {{/*true*/}}
{% endraw %}</code></pre></div>
<!-- repeat -->
<div class="title"><h5><code><span class="function-name">repeat</span>(<span class="field-name">count</span> int, <span class="field-name">s</span> string)</code>
Repeat the string s count times
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">repeat</span> 2 "hello"}} {{/*hellohello*/}}
{% endraw %}</code></pre></div>
<!-- replace -->
<div class="title"><h5><code><span class="function-name">replace</span>(<span class="field-name">old</span> string, <span class="field-name">new</span> string, <span class="field-name">n</span> int, <span class="field-name">s</span> string)</code>
Replace substring old in string s with new
</h5></div><div class="content"><p>最多替换 n 个子串,n 为 -1 时替换所有子串。Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">replace</span> "world" "king" 1 "hello,world,world"}} {{/*hello,king,world*/}}
{{<span class="function-name">replace</span> "world" "king" 2 "hello,world,world"}} {{/*hello,king,king*/}}
{{<span class="function-name">replace</span> "world" "king" -1 "hello,world,world"}} {{/*hello,king,king*/}}
{% endraw %}</code></pre></div>
<!-- splitN -->
<div class="title"><h5><code><span class="function-name">splitN</span>(<span class="field-name">sep</span> string, <span class="field-name">n</span> int, <span class="field-name">s</span> string)</code>
Split the string s into at most n substrings with sep as a separator
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">splitN</span> "," 2 "hello,world,world"}} {{/*["hello","world,world"]*/}}
{{<span class="function-name">splitN</span> "," -1 "hello,world,world"}} {{/*["hello","world,world"]*/}}
{% endraw %}</code></pre></div>
<!-- split -->
<div class="title"><h5><code><span class="function-name">split</span>(<span class="field-name">sep</span> string, <span class="field-name">s</span> string)</code>
Split the string s with sep as a separator
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">split</span> "," "hello,world,world"}} {{/*["hello","world","world"]*/}}
{% endraw %}</code></pre></div>
<!-- stringAt -->
<div class="title"><h5><code><span class="function-name">stringAt</span>(<span class="field-name">strs</span> []string, <span class="field-name">index</span> int)</code>
Get the nth string in the string array strs
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{$s := (slice "hello" "world")}}
{{<span class="function-name">stringAt</span> $s 0}} {{/*hello*/}}
{{<span class="function-name">stringAt</span> $s 1}} {{/*world*/}}
{% endraw %}</code></pre></div>
<!-- string -->
<div class="title"><h5><code><span class="function-name">string</span>(<span class="field-name">data</span> any)</code>
Convert data to a string
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">string</span> 123}} {{/*123*/}}
{% endraw %}</code></pre></div>
<!-- substr -->
<div class="title"><h5><code><span class="function-name">substr</span>(<span class="field-name">start</span> int, <span class="field-name">end</span> int, <span class="field-name">s</span> string)</code>
Get the substring of the range [start,end) from the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">substr</span> 0 1 "abcdef"}} {{/*a*/}}
{{<span class="function-name">substr</span> 0 1 "abcdef"}} {{/*a*/}}
{{<span class="function-name">substr</span> 0 3 "abcdef"}} {{/*abc*/}}
{{<span class="function-name">substr</span> 1 3 "abcdef"}} {{/*bc*/}}
{{<span class="function-name">substr</span> 2 0 "abcdef"}} {{/*cdef*/}}
{{<span class="function-name">substr</span> 2 -1 "abcdef"}} {{/*cde*/}}
{% endraw %}</code></pre></div>
<!-- title -->
<div class="title"><h5><code><span class="function-name">title</span>(<span class="field-name">s</span> string)</code>
Capitalize the first letter of the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">title</span> "hello"}} {{/*Hello*/}}
{% endraw %}</code></pre></div>
<!-- toLower -->
<div class="title"><h5><code><span class="function-name">toLower</span>(<span class="field-name">s</span> string)</code>
Convert the string s to lowercase
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">toLower</span> "HELLO"}} {{/*hello*/}}
{% endraw %}</code></pre></div>
<!-- toUpper -->
<div class="title"><h5><code><span class="function-name">toUpper</span>(<span class="field-name">s</span> string)</code>
Convert the string s to uppercase
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">toUpper</span> "hello"}} {{/*HELLO*/}}
{% endraw %}</code></pre></div>
<!-- trimPrefix -->
<div class="title"><h5><code><span class="function-name">trimPrefix</span>(<span class="field-name">prefix</span> string, <span class="field-name">s</span> string)</code>
Remove the prefix prefix of the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">trimPrefix</span> "he" "hello"}} {{/*llo*/}}
{% endraw %}</code></pre></div>
<!-- trimSpace -->
<div class="title"><h5><code><span class="function-name">trimSpace</span>(<span class="field-name">prefix</span> string, <span class="field-name">s</span> string)</code>
Remove blank characters both ends of the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">trimSpace</span> "\t\nhello "}} {{/*hello*/}}
{% endraw %}</code></pre></div>
<!-- trimSuffix -->
<div class="title"><h5><code><span class="function-name">trimSuffix</span>(<span class="field-name">suffix</span> string, <span class="field-name">s</span> string)</code>
Remove the suffix suffix of the string s
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">trimSuffix</span> "lo" "hello"}} {{/*hel*/}}
{% endraw %}</code></pre></div>
<!-- underScore -->
<div class="title"><h5><code><span class="function-name">underScore</span>(<span class="field-name">s</span> string)</code>
Convert the string s to an underscore snake
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">underScore</span> "helloWorld"}} {{/*hello_world*/}}
{{<span class="function-name">underScore</span> "HelloWorld"}} {{/*hello_world*/}}
{% endraw %}</code></pre></div>
<!-- upperCamel -->
<div class="title"><h5><code><span class="function-name">upperCamel</span>(<span class="field-name">s</span> string)</code>
Convert the string s to upper camel-case
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">upperCamel</span> "helloWorld"}} {{/*HelloWorld*/}}
{{<span class="function-name">upperCamel</span> "HelloWorld"}} {{/*HelloWorld*/}}
{{<span class="function-name">upperCamel</span> "hello_world"}} {{/*HelloWorld*/}}
{% endraw %}</code></pre></div>
</div>
### Logical functions
<div class="ui styled accordion" style="width: 100%">
<!-- AND -->
<div class="title"><h5><code><span class="function-name">AND</span>(<span class="field-name">bools</span> ...bool)</code>
And operation
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">AND</span> true true}} {{/*true*/}}
{{<span class="function-name">AND</span> true false true}} {{/*false*/}}
{{<span class="function-name">AND</span> true}} {{/*true*/}}
{{<span class="function-name">AND</span> false}} {{/*false*/}}
{% endraw %}</code></pre></div>
<!-- NOT -->
<div class="title"><h5><code><span class="function-name">NOT</span>(<span class="field-name">b</span> bool)</code>
Inverse operation
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">NOT</span> true}} {{/*false*/}}
{{<span class="function-name">NOT</span> false}} {{/*true*/}}
{% endraw %}</code></pre></div>
<!-- OR -->
<div class="title"><h5><code><span class="function-name">OR</span>(<span class="field-name">bools</span> ...bool)</code>
Or operation
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">OR</span> true true}} {{/*true*/}}
{{<span class="function-name">OR</span> true false true}} {{/*true*/}}
{{<span class="function-name">OR</span> true}} {{/*true*/}}
{{<span class="function-name">OR</span> false}} {{/*false*/}}
{% endraw %}</code></pre></div>
<!-- XOR -->
<div class="title"><h5><code><span class="function-name">XOR</span>(<span class="field-name">bools</span> ...bool)</code>
XOR operation
</h5></div><div class="content"><p>Exmaples</p><pre>
<code>{% raw %}{{<span class="function-name">XOR</span> true true}} {{/*false*/}}
{{<span class="function-name">XOR</span> false false}} {{/*false*/}}
{{<span class="function-name">XOR</span> true false}} {{/*true*/}}
{{<span class="function-name">XOR</span> false true}} {{/*true*/}}
{% endraw %}</code></pre></div>
</div>
|
const should = require('should');
const MissionLog = require('../lib/log').MissionLog;
const Severity = require('../lib/Severity');
describe('MissionLog', function () {
it('should test the properties', function () {
const Log = new MissionLog();
Log.should.have.property('severities').with.lengthOf(5);
Log.should.have.property('defaultSeverity');
});
it('should return the default severity', function () {
const Log = new MissionLog();
Log.getDefaultSeverity().name.should.be.equal('VERBOSE');
const severities = Log.getSeverities();
should(severities.length).be.equal(5);
});
it('should add a new severity', function() {
const severityName = 'Test123123';
const newSeverity = new Severity(severityName);
const Log = new MissionLog();
Log.addSeverity(newSeverity);
const severities = Log.getSeverities();
const length = severities.length;
should(length).be.equal(6);
should(severities[5].name).be.equal(severityName.toUpperCase());
});
it('should switch the default severity', function() {
const newSeverity = new Severity('Test');
const Log = new MissionLog();
Log.setDefaultSeverity(newSeverity);
const defaultSeverity = Log.getDefaultSeverity();
should(defaultSeverity.name).equal(newSeverity.name);
});
it('should try to add a severity twice', function() {
const firstSeverity = new Severity('UnitTesting');
const secondSeverity = new Severity('UnitTesting');
const Log = new MissionLog();
const preCount = Log.getSeverities().length;
Log.addSeverity(firstSeverity);
const afterFirst = Log.getSeverities().length;
Log.addSeverity(secondSeverity);
const afterSecond = Log.getSeverities().length;
should(afterFirst).be.equal(afterSecond);
});
it('should log using verbose severity', function () {
const Log = new MissionLog();
Log.log('VERBOSE', 'test');
});
});
|
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Rych Data, Elizabeth's Experiments in Data Science">
<title>python tag // Rych Data // Elizabeth's Experiments in Data Science</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/pure/0.3.0/pure-min.css">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.1.0/css/font-awesome.min.css">
<link rel="stylesheet" href="../theme/css/pure.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
</head>
<body>
<div class="pure-g-r" id="layout">
<div class="sidebar pure-u">
<div class="cover-img" style="background-image: url('https://static.pexels.com/photos/205324/pexels-photo-205324.jpeg')">
<div class="cover-body">
<header class="header">
<hgroup>
<h1 class="brand-main"><a href="..">Rych Data</a></h1>
<p class="tagline">Elizabeth's Experiments in Data Science</p>
<p class="links"><a href="/pages/about-rych-data.html">About</a></p>
<p class="social">
<a href="https://github.com/erych">
<i class="fa fa-github fa-3x"></i>
</a>
<a href="https://www.linkedin.com/in/elizabeth-rychlinski-54a50a49/">
<i class="fa fa-linkedin-square fa-3x"></i>
</a>
</p>
</hgroup>
</header>
</div>
</div>
</div>
<div class="pure-u">
<div class="content">
<!-- A wrapper for all the blog posts -->
<div class="posts">
<h1 class="content-subhead">
Posts tagged 'python' </h1>
<section class="post">
<header class="post-header">
<h3><a class="post-title" href="../google-natural-language-api-analyzing-live-news-sentiment-in-python.html">Google Natural Language API - Analyzing Live News Sentiment in Python</a></h3>
<p class="post-meta"><p>Part Three: Using the Google Natural Language API to Analyze News Sentiment.</p></p>
<p class="post-meta">
in <a href="../category/projects.html">projects,</a> · Mon 28 August 2017
</p>
</header>
</section>
<section class="post">
<header class="post-header">
<h3><a class="post-title" href="../gcp-authentication-and-google-translation-api.html">GCP Authentication and Google Translation API</a></h3>
<p class="post-meta"><p>Part Two: Using the Google Translate API to Translate International News.</p></p>
<p class="post-meta">
in <a href="../category/projects.html">projects,</a> · Mon 21 August 2017
</p>
</header>
</section>
<section class="post">
<header class="post-header">
<h3><a class="post-title" href="../the-news-api-requesting-live-headlines-with-python.html">The News API - Requesting Live Headlines with Python</a></h3>
<p class="post-meta"><p>This project creates a program to provide a user the choice to receive positive or negative news, from news sources around the world. Part One: Collecting Live News Data Using the News API.</p></p>
<p class="post-meta">
in <a href="../category/projects.html">projects,</a> · Mon 14 August 2017
</p>
</header>
</section>
<section class="post">
<header class="post-header">
<h3><a class="post-title" href="../ipynb-news-api-google-translate-api-google-natural-language-api.html">IPYNB: News API, Google Translate API, Google Natural Language API</a></h3>
<p class="post-meta"><p>Full python code showing the setup and configuration of the News API, Google Translation API, and Google Natural Language API. Plus lots of panads, for loops, and other fun stuff.</p></p>
<p class="post-meta">
in <a href="../category/code.html">code,</a> · Sun 13 August 2017
</p>
</header>
</section>
<section class="post">
<header class="post-header">
<h3><a class="post-title" href="../setting-up-a-deep-learning-virtual-machine.html">Setting up a Deep Learning Virtual Machine</a></h3>
<p class="post-meta"><p>This end-to-end guide will lead you through the steps to set up a AWS virtual machine with a GPU card and various software programs needed for deep learning.</p></p>
<p class="post-meta">
in <a href="../category/projects.html">projects,</a> · Tue 08 August 2017
</p>
</header>
</section>
<section class="post">
<header class="post-header">
<h3><a class="post-title" href="../predicting-interest-in-manhattan-rental-listings.html">Predicting Interest in Manhattan Rental Listings</a></h3>
<p class="post-meta"><p>This project explores various machine learning methods and tools to predict rental interest in Manhattan.</p></p>
<p class="post-meta">
in <a href="../category/projects.html">projects,</a> · Mon 29 May 2017
</p>
</header>
</section>
<section class="post">
<header class="post-header">
<h3><a class="post-title" href="../ipynb-predicting-interest-in-manhattan-rental-listings.html">IPYNB: Predicting Interest in Manhattan Rental Listings</a></h3>
<p class="post-meta"><p>This project explores various machine learning methods and tools to predict rental interest in Manhattan.</p></p>
<p class="post-meta">
in <a href="../category/projects.html">projects,</a> · Sun 28 May 2017
</p>
</header>
</section>
<div class="pagination-wrapper content-subhead">
<div class="pagination">
<div class="pagination-left">
</div>
<span>Page 1 / 1</span>
<div class="pagination-right">
</div>
</div>
</div><footer class="footer">
<p>© Elizabeth Rychlinski –
Built with <a href="https://github.com/PurePelicanTheme/pure-single">Pure Theme</a>
for <a href="http://blog.getpelican.com/">Pelican</a>
</p>
</footer> </div>
</div>
</div>
</div>
<script>
var $top = $('.go-top');
// Show or hide the sticky footer button
$(window).scroll(function() {
if ($(this).scrollTop() > 200) {
$top.fadeIn(200);
} else {
$top.fadeOut(200);
}
});
// Animate the scroll to top
$top.click(function(event) {
event.preventDefault();
$('html, body').animate({scrollTop: 0}, 300);
})
// Makes sure that the href="#" attached to the <a> elements
// don't scroll you back up the page.
$('body').on('click', 'a[href="#"]', function(event) {
event.preventDefault();
});
</script>
</body>
</html> |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: Matrix</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>
<body>
<div id="main">
<h1 class="page-title">Class: Matrix</h1>
<section>
<header>
<h2>Matrix</h2>
</header>
<article>
<div class="container-overview">
<h4 class="name" id="Matrix"><span class="type-signature"></span>new Matrix<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
4x4 matrix.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line7">line 7</a>
</li></ul></dd>
</dl>
</div>
<h3 class="subsection-title">Methods</h3>
<h4 class="name" id=".copy"><span class="type-signature">(static) </span>copy<span class="signature">(matrix1, matrix2)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Copy values from one matrix to another.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix1</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>matrix2</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line763">line 763</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".fromArray"><span class="type-signature">(static) </span>fromArray<span class="signature">(arr)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a new matrix from an array. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>arr</code></td>
<td class="type">
<span class="param-type">Array.<number></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line723">line 723</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".fromArrayLG"><span class="type-signature">(static) </span>fromArrayLG<span class="signature">(arr, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a new matrix from an array. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>arr</code></td>
<td class="type">
<span class="param-type">Array.<number></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line738">line 738</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".identity"><span class="type-signature">(static) </span>identity<span class="signature">()</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs an identity matrix. Returns a new Matrix.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line647">line 647</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".identityLG"><span class="type-signature">(static) </span>identityLG<span class="signature">(result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs an identity matrix. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line662">line 662</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotation"><span class="type-signature">(static) </span>rotation<span class="signature">(pitch, yaw, roll)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix from pitch, yaw, and roll. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pitch</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>yaw</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>roll</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line529">line 529</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationAxis"><span class="type-signature">(static) </span>rotationAxis<span class="signature">(axis, theta)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the axis. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>axis</code></td>
<td class="type">
<span class="param-type"><a href="Vector.html">Vector</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line458">line 458</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationAxisLG"><span class="type-signature">(static) </span>rotationAxisLG<span class="signature">(axis, theta, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the axis. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>axis</code></td>
<td class="type">
<span class="param-type"><a href="Vector.html">Vector</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line491">line 491</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationLG"><span class="type-signature">(static) </span>rotationLG<span class="signature">(pitch, yaw, roll, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix from pitch, yaw, and roll. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>pitch</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>yaw</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>roll</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line542">line 542</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationX"><span class="type-signature">(static) </span>rotationX<span class="signature">(theta)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the x-axis. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line313">line 313</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationXLG"><span class="type-signature">(static) </span>rotationXLG<span class="signature">(theta, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the x-axis. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line333">line 333</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationY"><span class="type-signature">(static) </span>rotationY<span class="signature">(theta)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the y-axis. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line361">line 361</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationYLG"><span class="type-signature">(static) </span>rotationYLG<span class="signature">(theta, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the y-axis. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line381">line 381</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationZ"><span class="type-signature">(static) </span>rotationZ<span class="signature">(theta)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the z-axis. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line409">line 409</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".rotationZLG"><span class="type-signature">(static) </span>rotationZLG<span class="signature">(theta, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a rotation matrix, rotating by theta around the z-axis. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>theta</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line429">line 429</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".scale"><span class="type-signature">(static) </span>scale<span class="signature">(xscale, yscale, zscale)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a scaling matrix from x, y, and z scale. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>xscale</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>yscale</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>zscale</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line604">line 604</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".scaleLG"><span class="type-signature">(static) </span>scaleLG<span class="signature">(xscale, yscale, zscale, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a scaling matrix from x, y, and z scale. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>xscale</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>yscale</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>zscale</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line622">line 622</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".translation"><span class="type-signature">(static) </span>translation<span class="signature">(xtrans, ytrans, ztrans)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a translation matrix from x, y, and z distances. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>xtrans</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>ytrans</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>ztrans</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line560">line 560</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".translationLG"><span class="type-signature">(static) </span>translationLG<span class="signature">(xtrans, ytrans, ztrans, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a translation matrix from x, y, and z distances. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>xtrans</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>ytrans</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>ztrans</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line577">line 577</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".zero"><span class="type-signature">(static) </span>zero<span class="signature">()</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a zero matrix. Returns a new Matrix.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line687">line 687</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id=".zeroLG"><span class="type-signature">(static) </span>zeroLG<span class="signature">(result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Constructs a zero matrix. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line697">line 697</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="add"><span class="type-signature"></span>add<span class="signature">(matrix)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Add matrices. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line33">line 33</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="addLG"><span class="type-signature"></span>addLG<span class="signature">(matrix, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Add matrices. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line47">line 47</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="copy"><span class="type-signature"></span>copy<span class="signature">(result)</span><span class="type-signature"></span></h4>
<div class="description">
Copy matrix values to another matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line298">line 298</a>
</li></ul></dd>
</dl>
<h4 class="name" id="empty"><span class="type-signature"></span>empty<span class="signature">()</span><span class="type-signature"></span></h4>
<div class="description">
Write zeros to all elements of the matrix.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line287">line 287</a>
</li></ul></dd>
</dl>
<h4 class="name" id="equal"><span class="type-signature"></span>equal<span class="signature">(matrix)</span><span class="type-signature"> → {boolean}</span></h4>
<div class="description">
Compare matrices for equality.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line19">line 19</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type">boolean</span>
</dd>
</dl>
<h4 class="name" id="multiply"><span class="type-signature"></span>multiply<span class="signature">(matrix)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Multiply matrices. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line150">line 150</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="multiplyLG"><span class="type-signature"></span>multiplyLG<span class="signature">(matrix, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Multiply matrices. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line177">line 177</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="multiplyScalar"><span class="type-signature"></span>multiplyScalar<span class="signature">(scalar)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Multiply matrix by scalar. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scalar</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line111">line 111</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="multiplyScalarLG"><span class="type-signature"></span>multiplyScalarLG<span class="signature">(scalar, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Multiply matrix by scalar. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>scalar</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line125">line 125</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="negate"><span class="type-signature"></span>negate<span class="signature">()</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Negate matrix. Returns a new Matrix.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line201">line 201</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="negateLG"><span class="type-signature"></span>negateLG<span class="signature">(result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Negate matrix. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line214">line 214</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="subtract"><span class="type-signature"></span>subtract<span class="signature">(matrix)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Subtract matrices. Returns a new Matrix.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line72">line 72</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="subtractLG"><span class="type-signature"></span>subtractLG<span class="signature">(matrix, result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Subtract matrices. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>matrix</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line86">line 86</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="transpose"><span class="type-signature"></span>transpose<span class="signature">()</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Transpose matrix. Returns a new Matrix.
</div>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line238">line 238</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
<h4 class="name" id="transposeLG"><span class="type-signature"></span>transposeLG<span class="signature">(result)</span><span class="type-signature"> → {<a href="Matrix.html">Matrix</a>}</span></h4>
<div class="description">
Transpose matrix. Result is assigned to result parameter.
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>result</code></td>
<td class="type">
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</td>
<td class="description last"></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="matrix.js.html">matrix.js</a>, <a href="matrix.js.html#line264">line 264</a>
</li></ul></dd>
</dl>
<h5>Returns:</h5>
<dl>
<dt>
Type
</dt>
<dd>
<span class="param-type"><a href="Matrix.html">Matrix</a></span>
</dd>
</dl>
</article>
</section>
</div>
<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Matrix.html">Matrix</a></li><li><a href="Vector.html">Vector</a></li></ul>
</nav>
<br class="clear">
<footer>
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.0</a> on Tue Dec 29 2015 18:40:29 GMT-0500 (EST)
</footer>
<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html> |
# DAG.Project
|
#include "include/global.h"
#include "alinous.lock/ConcurrentGate.h"
#include "alinous.db.table.lockmonitor/IDatabaseLock.h"
#include "alinous.db.table.lockmonitor/RowLock.h"
#include "alinous.db.table.lockmonitor/IThreadLocker.h"
#include "alinous.db.table/IDatabaseTable.h"
#include "alinous.db.table.lockmonitor.db/RowLockManager.h"
namespace alinous {namespace db {namespace table {namespace lockmonitor {namespace db {
bool RowLockManager::__init_done = __init_static_variables();
bool RowLockManager::__init_static_variables(){
Java2CppSystem::getSelf();
ThreadContext* ctx = ThreadContext::newThreadContext();
{
GCNotifier __refobj1(ctx, __FILEW__, __LINE__, L"RowLockManager", L"__init_static_variables");
}
ctx->localGC();
delete ctx;
return true;
}
RowLockManager::RowLockManager(IDatabaseTable* table, long long oid, ConcurrentGate* concurrentGate, ThreadContext* ctx) throw() : IObject(ctx), table(nullptr), oid(0), list(GCUtils<ArrayList<RowLock> >::ins(this, (new(ctx) ArrayList<RowLock>(ctx)), ctx, __FILEW__, __LINE__, L"")), concurrentGate(nullptr)
{
__GC_MV(this, &(this->table), table, IDatabaseTable);
this->oid = oid;
__GC_MV(this, &(this->concurrentGate), concurrentGate, ConcurrentGate);
}
void RowLockManager::__construct_impl(IDatabaseTable* table, long long oid, ConcurrentGate* concurrentGate, ThreadContext* ctx) throw()
{
__GC_MV(this, &(this->table), table, IDatabaseTable);
this->oid = oid;
__GC_MV(this, &(this->concurrentGate), concurrentGate, ConcurrentGate);
}
RowLockManager::~RowLockManager() throw()
{
ThreadContext *ctx = ThreadContext::getCurentContext();
if(ctx != nullptr){ctx->incGcDenial();}
__releaseRegerences(false, ctx);
if(ctx != nullptr){ctx->decGcDenial();}
}
void RowLockManager::__releaseRegerences(bool prepare, ThreadContext* ctx) throw()
{
ObjectEraser __e_obj1(ctx, __FILEW__, __LINE__, L"RowLockManager", L"~RowLockManager");
__e_obj1.add(this->table, this);
table = nullptr;
__e_obj1.add(this->list, this);
list = nullptr;
__e_obj1.add(this->concurrentGate, this);
concurrentGate = nullptr;
if(!prepare){
return;
}
}
ConcurrentGate* RowLockManager::getConcurrentGate(ThreadContext* ctx) throw()
{
return concurrentGate;
}
RowLock* RowLockManager::newLock(IThreadLocker* locker, bool update, ThreadContext* ctx) throw()
{
ArrayList<RowLock>* list = this->list;
int maxLoop = list->size(ctx);
for(int i = 0; i != maxLoop; ++i)
{
RowLock* lock = list->get(i, ctx);
if(lock->locker == locker)
{
return lock;
}
}
RowLock* lock = (new(ctx) RowLock(this->table, this->oid, update, locker, this->concurrentGate, ctx));
this->list->add(lock, ctx);
return lock;
}
RowLock* RowLockManager::releaseLock(IThreadLocker* locker, ThreadContext* ctx) throw()
{
ArrayList<RowLock>* list = this->list;
int maxLoop = list->size(ctx);
for(int i = 0; i != maxLoop; ++i)
{
RowLock* lock = list->get(i, ctx);
if(lock->locker == locker)
{
if(lock->count == 1)
{
this->list->remove(i, ctx);
}
return lock;
}
}
return nullptr;
}
void RowLockManager::__cleanUp(ThreadContext* ctx){
}
}}}}}
|
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Sling Mega Menu</title>
<link rel="stylesheet" href="styles/adobe.megamenu/pygment.css">
<link rel="stylesheet" href="styles/adobe.megamenu/megamenu.css">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
</head>
<body>
<div class="wrapper">
<nav class="megamenu">
<ol>
<li>
<h2><a href="http://www.w3.org/TR/WCAG/#operable">Buying</a></h2>
<div class="cols-4">
<p>Browse Sling Categories</p>
<ol>
<li class="accessible-megamenu-panel-group">
<h3>A-D</h3>
<ol>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Antiques</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#appliances">Appliances</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#auto-parts">Auto Parts</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#arts-crafts">Arts + Crafts</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#atv">ATV/UTV/SNO</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Auto Parts</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Baby + Kid</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Barter</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Beauty + Health</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Bikes</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Boats</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Books</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Business</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Car + Trucks</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">CDS/DVDS/VHS</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Cell Phones</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Collectibles</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Clothes + Acc</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Computers</a></li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3>E-L</h3>
<ol>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Electronics</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#appliances">Farm + Garden</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#auto-parts">Free</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#arts-crafts">Furniture</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#atv">Garage Sale</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">General</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Heavy Equip</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Household</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Jewlelry</a></li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3>M-R</h3>
<ol>
<li class="accessible-megamenu-panel-group"><a hr="#appliances">Misc</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#auto-parts">Motercycles</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#arts-crafts">Musical Instruments</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#atv">Photo + Video</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Porn</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">RVS + Camp</a></li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3>S-Z</h3>
<ol>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Sporting</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#appliances">Tickets</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#auto-parts">Tools</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#arts-crafts">Toys + Games</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#atv">Photo + Video</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Video Gaming</a></li>
<li class="accessible-megamenu-panel-group"><a hr="#antiques">Wanted</a></li>
</ol>
</li>
</ol>
</div>
</li>
<li>
<h2><a href="http://www.w3.org/TR/WCAG/#operable">Selling</a></h2>
<div class="cols-4b">
<p>How to add a listing</p>
<ol>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#keyboard-operation">2.1 Keyboard Accessible</a></h3>
<p>Make all functionality available from a keyboard.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#keyboard-operation-keyboard-operable">2.1.1 Keyboard</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#keyboard-operation-trapping">2.1.2 No Keyboard Trap</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#keyboard-operation-all-funcs">2.1.3 Keyboard (No Exception)</a></li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#time-limits">2.2 Enough Time</a></h3>
<p>Provide users enough time to read and use content.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#time-limits-required-behaviors">2.2.1 Timing Adjustable</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#time-limits-pause">2.2.2 Pause, Stop, Hide</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#time-limits-no-exceptions">2.2.3 Interruptions</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#time-limits-postponed">2.2.4 Interruptions</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#time-limits-server-timeout">2.2.5 Re-authenticating</a></li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#seizure">2.3 Seizures</a></h3>
<p>Do not design content in a way that is known to cause seizures.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#seizure-does-not-violate">2.3.1 Three Flashes or Below Threshold</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#seizure-three-times">2.3.2 Three Flashes</a> </li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms">2.4 Navigable</a></h3>
<p>Provide ways to help users navigate, find content, and determine where they are.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-skip">2.4.1 Bypass Blocks</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-title">2.4.2 Page Titled</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-focus-order">2.4.3 Focus Order</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-refs">2.4.4 Link Purpose (In Context)</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-mult-loc">2.4.5 Multiple Ways</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-descriptive">2.4.6 Headings and Labels</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-focus-visible">2.4.7 Focus Visible</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-location">2.4.8 Location</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-link">2.4.9 Link Purpose (Link Only)</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#navigation-mechanisms-headings">2.4.10 Section Headings</a></li>
</ol>
</li>
</ol>
</div>
</li>
<li>
<h2><a href="http://www.w3.org/TR/WCAG/#understandable">Understandable</a></h2>
<div class="cols-3">
<p>Information and the operation of user interface must be understandable.</p>
<ol>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#meaning">3.1 Readable</a></h3>
<p>Make text content readable and understandable.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#meaning-doc-lang-id">3.1.1 Language of Page</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#meaning-other-lang-id">3.1.2 Language of Parts</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#meaning-idioms">3.1.3 Unusual Words</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#meaning-located">3.1.4 Abbreviations</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#meaning-supplements">3.1.5 Reading Level</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#meaning-pronunciation">3.1.6 Pronunciation</a></li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#consistent-behavior">3.2 Predictable</a></h3>
<p>Make Web pages appear and operate in predictable ways.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#consistent-behavior-receive-focus">3.2.1 On Focus</a> </li>
<li><a href="http://www.w3.org/TR/WCAG20/#consistent-behavior-unpredictable-change">3.2.2 On Input</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#consistent-behavior-consistent-locations">3.2.3 Consistent Navigation</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#consistent-behavior-consistent-functionality">3.2.4 Consistent Identification</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#consistent-behavior-no-extreme-changes-context">3.2.5 Change on Request</a></li>
</ol>
</li>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#minimize-error">3.3 Input Assistance</a></h3>
<p>Help users avoid and correct mistakes.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#minimize-error-identified">3.3.1 Error Identification</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#minimize-error-cues">3.3.2 Labels or Instructions</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#minimize-error-suggestions">3.3.3 Error Suggestion</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#minimize-error-reversible">3.3.4 Error Prevention (Legal, Financial, Data)</a>
<hr/>
</li>
<li><a href="http://www.w3.org/TR/WCAG20/#minimize-error-context-help">3.3.5 Help</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#minimize-error-reversible-all">3.3.6 Error Prevention (All)</a></li>
</ol>
</li>
</ol>
</div>
</li>
<li>
<h2><a href="http://www.w3.org/TR/WCAG/#robust">Robust</a></h2>
<div class="cols-1">
<p>Content must be robust enough that it can be interpreted reliably by a wide variety of user agents, including assistive technologies.</p>
<ol>
<li class="accessible-megamenu-panel-group">
<h3><a href="http://www.w3.org/TR/WCAG20/#ensure-compat">4.1 Compatible</a></h3>
<p>Maximize compatibility with current and future user agents, including assistive technologies.</p>
<ol>
<li><a href="http://www.w3.org/TR/WCAG20/#ensure-compat-parses">4.1.1 Parsing</a></li>
<li><a href="http://www.w3.org/TR/WCAG20/#ensure-compat-rsv">4.1.2 Name, Role, Value</a></li>
</ol>
</li>
</ol>
</div>
</li>
</ol>
</nav>
</div>
</body>
<script src="scripts/vendor.js"></script>
<script src="scripts/vendor/adobe.megamenu/j-query-megamenu.js"></script>
<script src="scripts/vendor/adobe.megamenu/mega_main.js"></script>
</html>
|
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2013 The paccoin developer
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <boost/assign/list_of.hpp>
#include "base58.h"
#include "paccoinrpc.h"
#include "db.h"
#include "init.h"
#include "main.h"
#include "net.h"
#include "wallet.h"
using namespace std;
using namespace boost;
using namespace boost::assign;
using namespace json_spirit;
void ScriptPubKeyToJSON(const CScript& scriptPubKey, Object& out)
{
txnouttype type;
vector<CTxDestination> addresses;
int nRequired;
out.push_back(Pair("asm", scriptPubKey.ToString()));
out.push_back(Pair("hex", HexStr(scriptPubKey.begin(), scriptPubKey.end())));
if (!ExtractDestinations(scriptPubKey, type, addresses, nRequired))
{
out.push_back(Pair("type", GetTxnOutputType(TX_NONSTANDARD)));
return;
}
out.push_back(Pair("reqSigs", nRequired));
out.push_back(Pair("type", GetTxnOutputType(type)));
Array a;
BOOST_FOREACH(const CTxDestination& addr, addresses)
a.push_back(CpaccoinAddress(addr).ToString());
out.push_back(Pair("addresses", a));
}
void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry)
{
entry.push_back(Pair("txid", tx.GetHash().GetHex()));
entry.push_back(Pair("version", tx.nVersion));
entry.push_back(Pair("time", (boost::int64_t)tx.nTime));
entry.push_back(Pair("locktime", (boost::int64_t)tx.nLockTime));
if (tx.nVersion >= 2)
{
entry.push_back(Pair("tx-comment", tx.strTxComment));
}
Array vin;
BOOST_FOREACH(const CTxIn& txin, tx.vin)
{
Object in;
if (tx.IsCoinBase())
in.push_back(Pair("coinbase", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
else
{
in.push_back(Pair("txid", txin.prevout.hash.GetHex()));
in.push_back(Pair("vout", (boost::int64_t)txin.prevout.n));
Object o;
o.push_back(Pair("asm", txin.scriptSig.ToString()));
o.push_back(Pair("hex", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
in.push_back(Pair("scriptSig", o));
}
in.push_back(Pair("sequence", (boost::int64_t)txin.nSequence));
vin.push_back(in);
}
entry.push_back(Pair("vin", vin));
Array vout;
for (unsigned int i = 0; i < tx.vout.size(); i++)
{
const CTxOut& txout = tx.vout[i];
Object out;
out.push_back(Pair("value", ValueFromAmount(txout.nValue)));
out.push_back(Pair("n", (boost::int64_t)i));
Object o;
ScriptPubKeyToJSON(txout.scriptPubKey, o);
out.push_back(Pair("scriptPubKey", o));
vout.push_back(out);
}
entry.push_back(Pair("vout", vout));
if (hashBlock != 0)
{
entry.push_back(Pair("blockhash", hashBlock.GetHex()));
map<uint256, CBlockIndex*>::iterator mi = mapBlockIndex.find(hashBlock);
if (mi != mapBlockIndex.end() && (*mi).second)
{
CBlockIndex* pindex = (*mi).second;
if (pindex->IsInMainChain())
{
entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight));
entry.push_back(Pair("time", (boost::int64_t)pindex->nTime));
entry.push_back(Pair("blocktime", (boost::int64_t)pindex->nTime));
}
else
entry.push_back(Pair("confirmations", 0));
}
}
}
Value getrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 2)
throw runtime_error(
"getrawtransaction <txid> [verbose=0]\n"
"If verbose=0, returns a string that is\n"
"serialized, hex-encoded data for <txid>.\n"
"If verbose is non-zero, returns an Object\n"
"with information about <txid>.");
uint256 hash;
hash.SetHex(params[0].get_str());
bool fVerbose = false;
if (params.size() > 1)
fVerbose = (params[1].get_int() != 0);
CTransaction tx;
uint256 hashBlock = 0;
if (!GetTransaction(hash, tx, hashBlock))
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, "No information available about transaction");
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << tx;
string strHex = HexStr(ssTx.begin(), ssTx.end());
if (!fVerbose)
return strHex;
Object result;
result.push_back(Pair("hex", strHex));
TxToJSON(tx, hashBlock, result);
return result;
}
Value listunspent(const Array& params, bool fHelp)
{
if (fHelp || params.size() > 3)
throw runtime_error(
"listunspent [minconf=1] [maxconf=9999999] [\"address\",...]\n"
"Returns array of unspent transaction outputs\n"
"with between minconf and maxconf (inclusive) confirmations.\n"
"Optionally filtered to only include txouts paid to specified addresses.\n"
"Results are an array of Objects, each of which has:\n"
"{txid, vout, scriptPubKey, amount, confirmations}");
RPCTypeCheck(params, list_of(int_type)(int_type)(array_type));
int nMinDepth = 1;
if (params.size() > 0)
nMinDepth = params[0].get_int();
int nMaxDepth = 9999999;
if (params.size() > 1)
nMaxDepth = params[1].get_int();
set<CpaccoinAddress> setAddress;
if (params.size() > 2)
{
Array inputs = params[2].get_array();
BOOST_FOREACH(Value& input, inputs)
{
CpaccoinAddress address(input.get_str());
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid paccoin address: ")+input.get_str());
if (setAddress.count(address))
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+input.get_str());
setAddress.insert(address);
}
}
Array results;
vector<COutput> vecOutputs;
pwalletMain->AvailableCoins(vecOutputs, false);
BOOST_FOREACH(const COutput& out, vecOutputs)
{
if (out.nDepth < nMinDepth || out.nDepth > nMaxDepth)
continue;
if(setAddress.size())
{
CTxDestination address;
if(!ExtractDestination(out.tx->vout[out.i].scriptPubKey, address))
continue;
if (!setAddress.count(address))
continue;
}
int64 nValue = out.tx->vout[out.i].nValue;
const CScript& pk = out.tx->vout[out.i].scriptPubKey;
Object entry;
entry.push_back(Pair("txid", out.tx->GetHash().GetHex()));
entry.push_back(Pair("vout", out.i));
entry.push_back(Pair("scriptPubKey", HexStr(pk.begin(), pk.end())));
entry.push_back(Pair("amount",ValueFromAmount(nValue)));
entry.push_back(Pair("confirmations",out.nDepth));
results.push_back(entry);
}
return results;
}
Value createrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 2)
throw runtime_error(
"createrawtransaction [{\"txid\":txid,\"vout\":n},...] {address:amount,...}\n"
"Create a transaction spending given inputs\n"
"(array of objects containing transaction id and output number),\n"
"sending to given address(es).\n"
"Returns hex-encoded raw transaction.\n"
"Note that the transaction's inputs are not signed, and\n"
"it is not stored in the wallet or transmitted to the network.");
RPCTypeCheck(params, list_of(array_type)(obj_type));
Array inputs = params[0].get_array();
Object sendTo = params[1].get_obj();
CTransaction rawTx;
BOOST_FOREACH(Value& input, inputs)
{
const Object& o = input.get_obj();
const Value& txid_v = find_value(o, "txid");
if (txid_v.type() != str_type)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, missing txid key");
string txid = txid_v.get_str();
if (!IsHex(txid))
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, expected hex txid");
const Value& vout_v = find_value(o, "vout");
if (vout_v.type() != int_type)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, missing vout key");
int nOutput = vout_v.get_int();
if (nOutput < 0)
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter, vout must be positive");
CTxIn in(COutPoint(uint256(txid), nOutput));
rawTx.vin.push_back(in);
}
set<CpaccoinAddress> setAddress;
BOOST_FOREACH(const Pair& s, sendTo)
{
CpaccoinAddress address(s.name_);
if (!address.IsValid())
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("Invalid paccoin address: ")+s.name_);
if (setAddress.count(address))
throw JSONRPCError(RPC_INVALID_PARAMETER, string("Invalid parameter, duplicated address: ")+s.name_);
setAddress.insert(address);
CScript scriptPubKey;
scriptPubKey.SetDestination(address.Get());
int64 nAmount = AmountFromValue(s.value_);
CTxOut out(nAmount, scriptPubKey);
rawTx.vout.push_back(out);
}
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss << rawTx;
return HexStr(ss.begin(), ss.end());
}
Value decoderawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() != 1)
throw runtime_error(
"decoderawtransaction <hex string>\n"
"Return a JSON object representing the serialized, hex-encoded transaction.");
RPCTypeCheck(params, list_of(str_type));
vector<unsigned char> txData(ParseHex(params[0].get_str()));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
try {
ssData >> tx;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
Object result;
TxToJSON(tx, 0, result);
return result;
}
Value signrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 4)
throw runtime_error(
"signrawtransaction <hex string> [{\"txid\":txid,\"vout\":n,\"scriptPubKey\":hex},...] [<privatekey1>,...] [sighashtype=\"ALL\"]\n"
"Sign inputs for raw transaction (serialized, hex-encoded).\n"
"Second optional argument (may be null) is an array of previous transaction outputs that\n"
"this transaction depends on but may not yet be in the blockchain.\n"
"Third optional argument (may be null) is an array of base58-encoded private\n"
"keys that, if given, will be the only keys used to sign the transaction.\n"
"Fourth optional argument is a string that is one of six values; ALL, NONE, SINGLE or\n"
"ALL|ANYONECANPAY, NONE|ANYONECANPAY, SINGLE|ANYONECANPAY.\n"
"Returns json object with keys:\n"
" hex : raw transaction with signature(s) (hex-encoded string)\n"
" complete : 1 if transaction has a complete set of signature (0 if not)"
+ HelpRequiringPassphrase());
RPCTypeCheck(params, list_of(str_type)(array_type)(array_type)(str_type), true);
vector<unsigned char> txData(ParseHex(params[0].get_str()));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
vector<CTransaction> txVariants;
while (!ssData.empty())
{
try {
CTransaction tx;
ssData >> tx;
txVariants.push_back(tx);
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
}
if (txVariants.empty())
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Missing transaction");
// mergedTx will end up with all the signatures; it
// starts as a clone of the rawtx:
CTransaction mergedTx(txVariants[0]);
bool fComplete = true;
// Fetch previous transactions (inputs):
map<COutPoint, CScript> mapPrevOut;
for (unsigned int i = 0; i < mergedTx.vin.size(); i++)
{
CTransaction tempTx;
MapPrevTx mapPrevTx;
CTxDB txdb("r");
map<uint256, CTxIndex> unused;
bool fInvalid;
// FetchInputs aborts on failure, so we go one at a time.
tempTx.vin.push_back(mergedTx.vin[i]);
tempTx.FetchInputs(txdb, unused, false, false, mapPrevTx, fInvalid);
// Copy results into mapPrevOut:
BOOST_FOREACH(const CTxIn& txin, tempTx.vin)
{
const uint256& prevHash = txin.prevout.hash;
if (mapPrevTx.count(prevHash) && mapPrevTx[prevHash].second.vout.size()>txin.prevout.n)
mapPrevOut[txin.prevout] = mapPrevTx[prevHash].second.vout[txin.prevout.n].scriptPubKey;
}
}
// Add previous txouts given in the RPC call:
if (params.size() > 1 && params[1].type() != null_type)
{
Array prevTxs = params[1].get_array();
BOOST_FOREACH(Value& p, prevTxs)
{
if (p.type() != obj_type)
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "expected object with {\"txid'\",\"vout\",\"scriptPubKey\"}");
Object prevOut = p.get_obj();
RPCTypeCheck(prevOut, map_list_of("txid", str_type)("vout", int_type)("scriptPubKey", str_type));
string txidHex = find_value(prevOut, "txid").get_str();
if (!IsHex(txidHex))
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "txid must be hexadecimal");
uint256 txid;
txid.SetHex(txidHex);
int nOut = find_value(prevOut, "vout").get_int();
if (nOut < 0)
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "vout must be positive");
string pkHex = find_value(prevOut, "scriptPubKey").get_str();
if (!IsHex(pkHex))
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "scriptPubKey must be hexadecimal");
vector<unsigned char> pkData(ParseHex(pkHex));
CScript scriptPubKey(pkData.begin(), pkData.end());
COutPoint outpoint(txid, nOut);
if (mapPrevOut.count(outpoint))
{
// Complain if scriptPubKey doesn't match
if (mapPrevOut[outpoint] != scriptPubKey)
{
string err("Previous output scriptPubKey mismatch:\n");
err = err + mapPrevOut[outpoint].ToString() + "\nvs:\n"+
scriptPubKey.ToString();
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, err);
}
}
else
mapPrevOut[outpoint] = scriptPubKey;
}
}
bool fGivenKeys = false;
CBasicKeyStore tempKeystore;
if (params.size() > 2 && params[2].type() != null_type)
{
fGivenKeys = true;
Array keys = params[2].get_array();
BOOST_FOREACH(Value k, keys)
{
CpaccoinSecret vchSecret;
bool fGood = vchSecret.SetString(k.get_str());
if (!fGood)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY,"Invalid private key");
CKey key;
bool fCompressed;
CSecret secret = vchSecret.GetSecret(fCompressed);
key.SetSecret(secret, fCompressed);
tempKeystore.AddKey(key);
}
}
else
EnsureWalletIsUnlocked();
const CKeyStore& keystore = (fGivenKeys ? tempKeystore : *pwalletMain);
int nHashType = SIGHASH_ALL;
if (params.size() > 3 && params[3].type() != null_type)
{
static map<string, int> mapSigHashValues =
boost::assign::map_list_of
(string("ALL"), int(SIGHASH_ALL))
(string("ALL|ANYONECANPAY"), int(SIGHASH_ALL|SIGHASH_ANYONECANPAY))
(string("NONE"), int(SIGHASH_NONE))
(string("NONE|ANYONECANPAY"), int(SIGHASH_NONE|SIGHASH_ANYONECANPAY))
(string("SINGLE"), int(SIGHASH_SINGLE))
(string("SINGLE|ANYONECANPAY"), int(SIGHASH_SINGLE|SIGHASH_ANYONECANPAY))
;
string strHashType = params[3].get_str();
if (mapSigHashValues.count(strHashType))
nHashType = mapSigHashValues[strHashType];
else
throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid sighash param");
}
bool fHashSingle = ((nHashType & ~SIGHASH_ANYONECANPAY) == SIGHASH_SINGLE);
// Sign what we can:
for (unsigned int i = 0; i < mergedTx.vin.size(); i++)
{
CTxIn& txin = mergedTx.vin[i];
if (mapPrevOut.count(txin.prevout) == 0)
{
fComplete = false;
continue;
}
const CScript& prevPubKey = mapPrevOut[txin.prevout];
txin.scriptSig.clear();
// Only sign SIGHASH_SINGLE if there's a corresponding output:
if (!fHashSingle || (i < mergedTx.vout.size()))
SignSignature(keystore, prevPubKey, mergedTx, i, nHashType);
// ... and merge in other signatures:
BOOST_FOREACH(const CTransaction& txv, txVariants)
{
txin.scriptSig = CombineSignatures(prevPubKey, mergedTx, i, txin.scriptSig, txv.vin[i].scriptSig);
}
if (!VerifyScript(txin.scriptSig, prevPubKey, mergedTx, i, true, 0))
fComplete = false;
}
Object result;
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
ssTx << mergedTx;
result.push_back(Pair("hex", HexStr(ssTx.begin(), ssTx.end())));
result.push_back(Pair("complete", fComplete));
return result;
}
Value sendrawtransaction(const Array& params, bool fHelp)
{
if (fHelp || params.size() < 1 || params.size() > 1)
throw runtime_error(
"sendrawtransaction <hex string>\n"
"Submits raw transaction (serialized, hex-encoded) to local node and network.");
RPCTypeCheck(params, list_of(str_type));
// parse hex string from parameter
vector<unsigned char> txData(ParseHex(params[0].get_str()));
CDataStream ssData(txData, SER_NETWORK, PROTOCOL_VERSION);
CTransaction tx;
// deserialize binary data stream
try {
ssData >> tx;
}
catch (std::exception &e) {
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX decode failed");
}
uint256 hashTx = tx.GetHash();
// See if the transaction is already in a block
// or in the memory pool:
CTransaction existingTx;
uint256 hashBlock = 0;
if (GetTransaction(hashTx, existingTx, hashBlock))
{
if (hashBlock != 0)
throw JSONRPCError(RPC_INVALID_ADDRESS_OR_KEY, string("transaction already in block ")+hashBlock.GetHex());
// Not in block, but already in the memory pool; will drop
// through to re-relay it.
}
else
{
// push to local node
CTxDB txdb("r");
if (!tx.AcceptToMemoryPool(txdb))
throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "TX rejected");
SyncWithWallets(tx, NULL, true);
}
RelayMessage(CInv(MSG_TX, hashTx), tx);
return hashTx.GetHex();
}
|
#OroApiBundle
|
<?php
class PostsController extends AppController {
var $name = 'Posts';
var $uses = array('Post', 'User', 'Answer', 'History', 'Setting', 'Tag', 'PostTag', 'Vote', 'Widget');
var $components = array('Auth', 'Session', 'Markdownify', 'Markdown', 'Cookie', 'Email', 'Recaptcha', 'Htmlfilter');
var $helpers = array('Javascript', 'Time', 'Cache', 'Thumbnail', 'Recaptcha', 'Session');
//var $cacheAction = "1 hour";
public function beforeRender() {
$this->getWidgets();
$this->underMaintenance();
}
public function beforeFilter() {
parent::beforeFilter();
$this->Auth->allow('ask', 'view', 'answer', 'display', 'miniSearch', 'maintenance');
$this->isAdmin($this->Auth->user('id'));
$this->Cookie->name = 'user_cookie';
$this->Cookie->time = 604800; // or '1 hour'
$this->Cookie->path = '/';
$this->Cookie->domain = $_SERVER['SERVER_NAME'];
$this->Cookie->key = 'MZca3*f113vZ^%v ';
/**
* If a user leaves the site and the session ends they will be relogged in with their cookie information if available.
*/
if($this->Cookie->read('User')) {
$this->Auth->login($this->Cookie->read('User'));
}
}
public function afterFilter() {
$this->Session->delete('errors');
}
public function delete($id) {
if(!$this->isAdmin($this->Auth->user('id'))) {
$this->Session->setFlash(__('You do not have permission to access that..',true), 'error');
$this->redirect('/');
}
$this->Post->delete($id);
$this->Session->setFlash(__('Post deleted',true), 'error');
$this->redirect('/');
}
public function ask() {
$this->set('title_for_layout', __('Ask a question',true));
if(!empty($this->data)) {
/**
* reCAPTCHA Check
*/
$this->data['reCAPTCHA'] = $this->params['form'];
$this->__validatePost($this->data, '/questions/ask', true);
/**
* If the user is not logged in create an account for them.
*/
if(!empty($this->data['User'])) {
$user = $this->__userSave(array('User' => $this->data['User']));
$this->Auth->login($user);
}
/**
* Add in required Post data
*/
if(!empty($user)) {
$userId = $user['User']['id'];
} else {
$userId = $this->Auth->user('id');
}
$post = $this->__postSave('question', $userId, $this->data);
$this->redirect('/questions/' . $post['public_key'] . '/' . $post['url_title']);
}
}
public function answer($public_key) {
$question = $this->Post->findByPublicKey($public_key);
if(!empty($this->data)) {
$this->data['reCAPTCHA'] = $this->params['form'];
$this->__validatePost($this->data, '/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title'] . '#user_answer', true);
if(!empty($this->data['User'])) {
$user = $this->__userSave(array('User' => $this->data['User']));
$this->Auth->login($user);
}
if(!empty($user)) {
$userId = $user['User']['id'];
$username = $user['User']['username'];
} else {
$userId = $this->Auth->user('id');
$username = $this->Auth->user('username');
}
$flag_limit = $this->Setting->find(
'first', array(
'conditions' => array('name' => 'flag_display_limit')
)
);
$post = $this->__postSave('answer', $userId, $this->data, $question['Post']['id']);
if(($question['Post']['notify'] == 1) && ($post['flags'] < $flag_limit['Setting']['value'])) {
$user = $this->User->find(
'first', array(
'conditions' => array(
'User.id' => $question['Post']['user_id']
),
'fields' => array('User.email', 'User.username')
)
);
$this->set('question', $question);
$this->set('username', $username);
$this->set('dear', $user['User']['username']);
$this->set('answer', $this->data['Post']['content']);
$this->Email->from = 'Answerman <answers@' . $_SERVER['SERVER_NAME'] . '>';
$this->Email->to = $user['User']['email'];
$this->Email->subject = __('Your question has been answered!',true);
$this->Email->template = 'notification';
$this->Email->sendAs = 'both';
$this->Email->send();
}
$this->redirect('/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title']);
}
}
/**
* Validates the Post data.
* Since Posts need to validate for both logged in and non logged in accounts a separate validation technique was needed.
*
* @param string $data
* @param string $redirectUrl
* @return void
*/
public function __validatePost($data, $redirectUrl, $reCaptcha = false) {
$this->Post->set($data);
$this->User->set($data);
$errors = array();
$recaptchaErrors = array();
if($reCaptcha == true) {
if(!$this->Recaptcha->valid($data['reCAPTCHA'])) {
$data['Post']['content'] = $this->Markdownify->parseString($data['Post']['content']);
$recaptchaErrors = array('recaptcha' => __('Invalid reCAPTCHA entered.',true));
$errors = array(
'errors' => $recaptchaErrors,
'data' => $data
);
$this->Session->write(array('errors' => $errors));
$this->redirect($redirectUrl);
}
}
if(!$this->Post->validates() || !$this->User->validates()) {
$data['Post']['content'] = $this->Markdownify->parseString($data['Post']['content']);
$validationErrors = array_merge($this->Post->invalidFields(), $this->User->invalidFields(), $recaptchaErrors);
$errors = array(
'errors' => $validationErrors,
'data' => $data
);
$this->Session->write(array('errors' => $errors));
$this->redirect($redirectUrl);
}
}
/**
* Saves the Post data for a user
*
* @param string $type Either question or answer
* @param string $userId the ID of the user posting
* @param string $data $this->data
* @return array $post The saved Post data.
*/
public function __postSave($type, $userId, $data, $relatedId = null) {
/**
* Add in required Post data
*/
$this->data['Post']['type'] = $type;
$this->data['Post']['user_id'] = $userId;
$this->data['Post']['timestamp'] = time();
if($type == 'question') {
$this->data['Post']['url_title'] = $this->Post->niceUrl($this->data['Post']['title']);
}
if($type == 'answer') {
$this->data['Post']['related_id'] = $relatedId;
}
$this->data['Post']['public_key'] = uniqid();
if(!empty($this->data['Post']['tags'])) {
$this->Post->Behaviors->attach('Tag', array('table_label' => 'tags', 'tags_label' => 'tag', 'separator' => ', '));
}
/**
* Filter out any nasty XSS
*/
Configure::write('debug', 0);
$this->data['Post']['content'] = str_replace('<code>', '<code class="prettyprint">', $this->data['Post']['content']);
$this->data['Post']['content'] = @$this->Htmlfilter->filter($this->data['Post']['content']);
/**
* Spam Protection
*/
$flags = 0;
$content = strip_tags($this->data['Post']['content']);
// Get links in the content
$links = preg_match_all("#(^|[\n ])(?:(?:http|ftp|irc)s?:\/\/|www.)(?:[-A-Za-z0-9]+\.)+[A-Za-z]{2,4}(?:[-a-zA-Z0-9._\/&=+%?;\#]+)#is", $content, $matches);
$links = $matches[0];
$totalLinks = count($links);
$length = strlen($content);
// How many links are in the body
// +2 if less than 2, -1 per link if over 2
if ($totalLinks > 2) {
$flags = $flags + $totalLinks;
} else {
$flags = $flags - 1;
}
// How long is the body
// +2 if more then 20 chars and no links, -1 if less then 20
if ($length >= 20 && $totalLinks <= 0) {
$flags = $flags - 1;
} else if ($length >= 20 && $totalLinks == 1) {
++$flags;
} else if ($length < 20) {
$flags = $flags + 2;
}
// Keyword search
$blacklistKeywords = $this->Setting->find('first', array('conditions' => array('name' => 'blacklist')));
$blacklistKeywords = unserialize($blacklistKeywords['Setting']['description']);
foreach ($blacklistKeywords as $keyword) {
if (stripos($content, $keyword) !== false) {
$flags = $flags + substr_count(strtolower($content), $keyword);
}
}
$blacklistWords = array('.html', '.info', '?', '&', '.de', '.pl', '.cn');
foreach ($links as $link) {
foreach ($blacklistWords as $word) {
if (stripos($link, $word) !== false) {
++$flags;
}
}
foreach ($blacklistKeywords as $keyword) {
if (stripos($link, $keyword) !== false) {
++$flags;
}
}
if (strlen($link) >= 30) {
++$flags;
}
}
// Body starts with...
// -10 flags
$firstWord = substr($content, 0, stripos($content, ' '));
$firstDisallow = array_merge($blacklistKeywords, array('interesting', 'cool', 'sorry'));
if (in_array(strtolower($firstWord), $firstDisallow)) {
$flags = $flags + 10;
}
$manyTimes = $this->Post->find('count', array(
'conditions' => array('Post.content' => $this->data['Post']['content'])
));
// Random character match
// -1 point per 5 consecutive consonants
$consonants = preg_match_all('/[^aAeEiIoOuU\s]{5,}+/i', $content, $matches);
$totalConsonants = count($matches[0]);
if ($totalConsonants > 0) {
$flags = $flags + $totalConsonants;
}
$flags = $flags + $manyTimes;
$this->data['Post']['flags'] = $flags;
if($flags >= $this->Setting->getValue('flag_display_limit')) {
$this->data['Post']['tags'] = '';
}
/**
* Save the Data
*/
if($this->Post->save($this->data)) {
if($type == 'question') {
$this->History->record('asked', $this->Post->id, $this->Auth->user('id'));
}elseif($type == 'answer') {
$this->History->record('answered', $this->Post->id, $this->Auth->user('id'));
}
$user_info = $this->User->find('first', array('conditions' => array('id' => $userId)));
if($type == 'question') {
$this->User->save(array('id' => $userId, 'question_count' => $user_info['User']['question_count'] + 1));
}elseif($type == 'answer') {
$this->User->save(array('id' => $userId, 'answer_count' => $user_info['User']['answer_count'] + 1));
}
$post = $this->data['Post'];
/**
* Hack to normalize data.
* Note this should be added to the Tag Behavior at some point.
* This was but in because the behavior would delete the relations as soon as they put them in.
*/
$this->Post->Behaviors->detach('Tag');
$tags = array(
'id' => $this->Post->id,
'tags' => ''
);
$this->Post->save($tags);
return $post;
} else {
return false;
}
}
/**
* Saves the user data and creates a new user account for them.
*
* @param string $data
* @return void
* @todo this should be moved to the model at some point
*/
public function __userSave($data) {
$data['User']['public_key'] = uniqid();
$data['User']['password'] = $this->Auth->password(uniqid('p'));
$data['User']['joined'] = time();
$data['User']['url_title'] = $this->Post->niceUrl($data['User']['username']);
/**
* Set up cookie data incase they leave the site and the session ends and they have not registered yet
*/
$this->Cookie->write(array('User' => $data['User']));
/**
* Save the data
*/
$this->User->save($data);
$data['User']['id'] = $this->User->id;
return $data;
}
/**
* Allowes the user to view a question.
* If a user tries to view a Post that is a answer type they will be redirected.
*
* @param string $public_key
* @return void
*/
public function view($public_key) {
/**
* Set the Post model to recursive 2 so we can pull back the User's information with each comment.
*/
$this->Post->recursive = 2;
/**
* Change to contains. Limit to just question and comment data, no answers.
*/
$this->Post->unbindModel(
array('hasMany' => array('Answer'))
);
$question = $this->Post->findByPublicKey($public_key);
/*
* Look up the flag limit.
*/
$flag_check = $this->Setting->find(
'first', array(
'conditions' => array(
'name' => 'flag_display_limit'
),
'fields' => array('value'),
'recursive' => -1
)
);
/**
* Check to see if the post is spam or not.
* If so redirect.
*/
if($question['Post']['flags'] >= $flag_check['Setting']['value'] && $this->Setting->repCheck($this->Auth->user('id'), 'rep_edit')) {
$this->Session->setFlash(__('The question you are trying to view no longer exists.',true), 'error');
$this->redirect('/');
}
/**
* Even though Post can return an array of answers through associations
* we cannot order or sort this data as we need to
*/
$this->Answer->recursive = 3;
$answers = $this->Answer->find('all', array(
'conditions' => array(
'Answer.related_id' => $question['Post']['id'],
'Answer.flags <' => $flag_check['Setting']['value']
),
'order' => 'Answer.status DESC'
));
if(!empty($question)) {
$views = array(
'id' => $question['Post']['id'],
'views' => $question['Post']['views'] + 1
);
$this->Post->save($views);
}
if($this->Auth->user('id') && !$this->Setting->repCheck($this->Auth->user('id'), 'rep_edit')) {
$this->set('rep_rights', 'yeah!');
}
$this->set('title_for_layout', $question['Post']['title']);
$this->set('question', $question);
$this->set('answers', $answers);
}
public function edit($public_key) {
$question = $this->Post->findByPublicKey($public_key);
$this->set('title_for_layout', $question['Post']['title']);
$redirect = $question;
if(empty($redirect['Post']['title'])) {
$redirect = $this->Post->findById($redirect['Post']['related_id']);
}
if($question['Post']['user_id'] != $this->Auth->user('id') && !$this->isAdmin($this->Auth->user('id')) && !$this->Setting->repCheck($this->Auth->user('id'), 'rep_edit')) {
$this->Session->setFlash(__('That is not your question to edit, and you need more reputation!',true), 'error');
$this->redirect('/questions/' . $redirect['Post']['public_key'] . '/' . $redirect['Post']['url_title']);
}
if(!empty($question['Post']['title'])) {
$tags = $this->PostTag->find(
'all', array(
'conditions' => array(
'PostTag.post_id' => $question['Post']['id']
)
)
);
$this->Tag->recursive = -1;
foreach($tags as $key => $value) {
$tag_names[$key] = $this->Tag->find(
'first', array(
'conditions' => array(
'Tag.id' => $tags[$key]['PostTag']['tag_id']
),
'fields' => array('Tag.tag')
)
);
if($key == 0) {
$tag_list = $tag_names[$key]['Tag']['tag'];
}else {
$tag_list = $tag_list . ', ' . $tag_names[$key]['Tag']['tag'];
}
}
$this->set('tags', $tag_list);
}
if(!empty($this->data['Post']['tags'])) {
$this->Post->Behaviors->attach('Tag', array('table_label' => 'tags', 'tags_label' => 'tag', 'separator' => ', '));
}
if(!empty($this->data)) {
$this->data['Post']['id'] = $question['Post']['id'];
if(!empty($this->data['Post']['title'])) {
$this->data['Post']['url_title'] = $this->Post->niceUrl($this->data['Post']['title']);
}
$this->data['Post']['last_edited_timestamp'] = time();
if($this->Post->save($this->data)) {
$this->History->record('edited', $this->Post->id, $this->Auth->user('id'));
$this->redirect('/questions/' . $redirect['Post']['public_key'] . '/' . $redirect['Post']['url_title']);
}
} else {
$question['Post']['content'] = $this->Markdownify->parseString($question['Post']['content']);
$this->set('question', $question);
}
}
public function display($type='recent', $page=1) {
$this->set('title_for_layout', ucwords($type) . ' Questions');
$this->Post->recursive = -1;
if(isset($this->passedArgs['type'])) {
$search = $this->passedArgs['search'];
if($search == 'yes') {
$type = array(
'needle' => $this->passedArgs['type']
);
}else {
$type = $this->passedArgs['type'];
}
$page = $this->passedArgs['page'];
}elseif(!empty($this->data['Post'])) {
$type = $this->data['Post'];
$search = 'yes';
}else {
$search = 'no';
}
if($page <= 1) {
$page = 1;
}else{
$previous = $page - 1;
$this->set('previous', $previous);
}
$questions = $this->Post->monsterSearch($type, $page, $search);
$count = $this->Post->monsterSearchCount($type, $search);
if($count['0']['0']['count'] % 15 == 0) {
$end_page = $count['0']['0']['count'] / 15;
}else {
$end_page = floor($count['0']['0']['count'] / 15) + 1;
}
if(($count['0']['0']['count'] - ($page * 15)) > 0) {
$next = $page + 1;
$this->set('next', $next);
}
$keywords = array('hot', 'week', 'month', 'recent', 'solved', 'unanswered');
if(($search == 'no') && (!in_array($type, $keywords))) {
$this->Session->setFlash(__('Invalid search type.',true), 'error');
$this->redirect('/');
}
if(empty($questions)) {
if(isset($type['needle'])) {
$this->Session->setFlash(__('No results for',true) . ' "' . $type['needle'] . '"!', 'error');
}else {
$this->Session->setFlash(__('No results for',true) . ' "' . $type . '"!', 'error');
}
if($this->Post->find('count') > 0) {
$this->redirect('/');
}
}
if($search == 'yes') {
$this->set('type', $type['needle']);
}else {
$this->set('type', $type);
}
$this->set('questions', $questions);
$this->set('end_page', $end_page);
$this->set('current', $page);
$this->set('search', $search);
}
public function miniSearch() {
Configure::write('debug', 0);
$this->autoLayout = false;
$questions = $this->Post->monsterSearch(array('needle' => $_GET['query']), 1, 'yes');
$this->set('questions', $questions);
}
public function markCorrect($public_key) {
$answer = $this->Post->findByPublicKey($public_key);
/**
* Check to make sure the Post is an answer
*/
if($answer['Post']['type'] != 'answer') {
$this->Session->setFlash(__('What are you trying to do?',true), 'error');
$this->redirect('/');
}
$question = $this->Post->findById($answer['Post']['related_id']);
/**
* Check to make sure the logged in user is authorized to edit this Post
*/
if($question['Post']['user_id'] != $this->Auth->user('id')) {
$this->Session->setFlash(__('You are not allowed to edit that.',true));
$this->redirect('/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title']);
}
$rep = $this->User->find(
'first', array(
'conditions' => array(
'User.id' => $answer['Post']['user_id']
),
'fields' => array('User.reputation', 'User.id')
)
);
/**
* Set the Post as correct, and its question as closed.
*/
$quest = array(
'id' => $question['Post']['id'],
'status' => 'closed'
);
$answ = array(
'id' => $answer['Post']['id'],
'status' => 'correct'
);
$user = array(
'User' => array(
'id' => $rep['User']['id'],
'reputation' => $rep['User']['reputation'] + 15
)
);
$this->Post->save($answ);
$this->Post->save($quest);
$this->User->save($user);
$this->redirect('/questions/' . $question['Post']['public_key'] . '/' . $question['Post']['url_title'] . '#a_' . $answer['Post']['public_key']);
}
public function flag($public_key) {
$redirect = $this->Post->correctRedirect($public_key);
if(!$this->Auth->user('id')) {
$this->Session->setFlash(__('You need to be logged in to do that!',true), 'error');
$this->redirect('/questions/' . $redirect['Post']['public_key'] . '/' . $redirect['Post']['url_title']);
}elseif(!$this->Setting->repCheck($this->Auth->user('id'), 'rep_flag')) {
$this->Session->setFlash(__('You need more reputation to do that.',true), 'error');
$this->redirect('/questions/' . $redirect['Post']['public_key'] . '/' . $redirect['Post']['url_title']);
}else{
$flag = $this->Vote->throwFlag($this->Auth->user('id'), $public_key);
if($flag == 'exists') {
$this->Session->setFlash(__('You have already flagged that.',true), 'error');
$this->redirect('/questions/' . $redirect['Post']['public_key'] . '/' . $redirect['Post']['url_title']);
}elseif($flag == 'success') {
$this->Session->setFlash(__('Post flagged.',true), 'error');
$this->redirect('/questions/' . $redirect['Post']['public_key'] . '/' . $redirect['Post']['url_title']);
}
}
}
public function maintenance() {
}
}
?> |
package game;
import game.ItemWindow.ItemOption;
import java.util.ArrayList;
import org.unbiquitous.uImpala.engine.asset.AssetManager;
import org.unbiquitous.uImpala.engine.asset.Text;
import org.unbiquitous.uImpala.engine.core.GameRenderers;
import org.unbiquitous.uImpala.engine.io.MouseSource;
import org.unbiquitous.uImpala.engine.io.Screen;
import org.unbiquitous.uImpala.util.Corner;
import org.unbiquitous.uImpala.util.observer.Event;
import org.unbiquitous.uImpala.util.observer.Observation;
import org.unbiquitous.uImpala.util.observer.Subject;
public class RecipeWindow extends SelectionWindow {
static final int WINDOW_WIDTH = 13;
static final int WINDOW_HEIGHT = 22;
static final int OPTION_OFFSET_X = 32;
static final int OPTION_OFFSET_Y = 32;
private ArrayList<Recipe> list;
public RecipeWindow(AssetManager assets, String frame, int x, int y, ArrayList<Recipe> list) {
super(assets, frame, x, y, WINDOW_WIDTH, WINDOW_HEIGHT);
mouse.connect(MouseSource.EVENT_BUTTON_DOWN, new Observation(this, "OnButtonDown"));
mouse.connect(MouseSource.EVENT_BUTTON_UP, new Observation(this, "OnButtonUp"));
this.list = list;
for (int i = 0; i < list.size(); ++i) {
Recipe r = list.get(i);
options.add(new RecipeOption(assets, i, i, x + OPTION_OFFSET_X, y + OPTION_OFFSET_Y,
WINDOW_WIDTH * this.frame.getWidth() / 3 - OPTION_OFFSET_X * 2,
(int) (this.frame.getHeight() * 1.0), r));
}
}
@Override
public void Swap(int index1, int index2) {
Option o1 = options.get(index1);
Option o2 = options.get(index2);
Recipe r1 = list.get(o1.originalIndex);
Recipe r2 = list.get(o2.originalIndex);
list.set(o1.originalIndex, r2);
list.set(o2.originalIndex, r1);
o1.index = index2;
o2.index = index1;
options.set(index2, o1);
options.set(index1, o2);
int oindex1 = o1.originalIndex;
o1.originalIndex = o2.originalIndex;
o2.originalIndex = oindex1;
}
public Recipe GetSelectedRecipe() {
if (selected == null) {
return null;
}
else {
return ((RecipeOption) selected).recipe;
}
}
@Override
protected void wakeup(Object... args) {
// TODO Auto-generated method stub
}
@Override
protected void destroy() {
// TODO Auto-generated method stub
}
@Override
public void OnButtonDown(Event event, Subject subject) {
super.OnButtonDown(event, subject);
}
@Override
public void OnButtonUp(Event event, Subject subject) {
super.OnButtonUp(event, subject);
}
private class RecipeOption extends ItemOption {
ArrayList<Text> components;
Recipe recipe;
public RecipeOption(AssetManager assets, int _index, int _originalIndex, int _baseX, int _baseY, int _w,
int _h, Recipe _recipe) {
super(assets, _index, _originalIndex, _baseX, _baseY, _w, _h, false, Item.GetItem(_recipe.itemID), 1, 0);
recipe = _recipe;
System.out.println("Recipe for item " + recipe.itemID + "(" + recipe.components.size() + " components)");
components = new ArrayList<Text>();
for (Integer component : recipe.components) {
Item i = Item.GetItem(component);
components.add(assets.newText("font/seguisb.ttf", i.GetName()));
}
}
@Override
public void Render(GameRenderers renderers, Screen screen) {
super.Render(renderers, screen);
int mx = screen.getMouse().getX();
int my = screen.getMouse().getY();
if (box.IsInside(mx, my)) {
int h = components.get(0).getHeight();
for (int i = 0; i < components.size(); ++i) {
components.get(i).render(screen, mx, my + i * h, Corner.TOP_LEFT);
}
}
}
@Override
public void CheckClick(int x, int y) {
if (box.IsInside(x, y)) {
selected = true;
}
}
}
}
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cpp-headers: src/circular_buffer.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">cpp-headers
 <span id="projectnumber">0.1</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> </div>
<div class="headertitle">
<div class="title">circular_buffer.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>Fast implementation of a Circular Buffer.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include <array></code><br />
<code>#include <cstdlib></code><br />
<code>#include "circular_buffer.tpp"</code><br />
</div>
<p><a href="circular__buffer_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classcircular__buffer.html">circular_buffer< T, SIZE ></a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Fast implementation of a Circular Buffer. All operations on the Circular Buffer can be performed in constant time. <a href="classcircular__buffer.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classcircular__buffer_1_1iterator.html">circular_buffer< T, SIZE >::iterator</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classcircular__buffer_1_1const__iterator.html">circular_buffer< T, SIZE >::const_iterator</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Fast implementation of a Circular Buffer. </p>
<dl class="section author"><dt>Author</dt><dd>Jonathan Simmonds MIT License</dd></dl>
<p>Copyright (c) 2017-2021 Jonathan Simmonds</p>
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
|
import datetime
def suffix(d):
return 'th' if 11<=d<=13 else {1:'st',2:'nd',3:'rd'}.get(d%10, 'th')
def custom_strftime(format, t):
return t.strftime(format).replace('{S}', str(t.day) + suffix(t.day))
print "Welcome to GenerateUpdateLines, the nation's favourite automatic update line generator."
start = int(raw_input("Enter initial day number: "))
stop = int(raw_input("Enter final day number: "))
t0 = datetime.date(2018, 3, 24)
for d in range(start, stop+1):
date = t0 + datetime.timedelta(d-1)
print "| "+str(d)+" | "+custom_strftime("%a {S} %B", date)+" | | |"
# from datetime import datetime as dt
#
# def suffix(d):
# return 'th' if 11<=d<=13 else {1:'st',2:'nd',3:'rd'}.get(d%10, 'th')
#
# def custom_strftime(format, t):
# return t.strftime(format).replace('{S}', str(t.day) + suffix(t.day))
#
# print custom_strftime('%B {S}, %Y', dt.now())
|
---
layout: post
title: "一些有用的游戏资源破解工具"
date: 2017-05-10 14:28:00 +0800
categories: "resources"
tag: ["game tools"]
---
* content
{:toc}
##### 二、编程开发资源:
- 1.一个很好的开发者pdf书籍网站:http://www.finelybook.com
##### 二、资源学习网站:
- 1.voxel地形学习网站 https://garvinized.com/
- 2.Tom Looman http://www.tomlooman.com/blog/
- 3.织梦网(CG) http://www.cgdream.com.cn/
- 4.微元素 http://www.element3ds.com/
- 5.致学网 http://www.ibcde.com/
- 6.cg教学网 http://www.cgyaojiaohai.com
- 7.https://thenewboston.com
- 8.https://www.tfmstyle.com/everydays (有用的网站)
- 9.https://www.disneyanimation.com/technology/opensource(迪士尼开源工具)
- 10.https://www.pinterest.com/(建模资源教程)
- 11.https://www.slideshare.net/EpicGamesJapan/presentations(小日本的一个牛逼虚幻4教学频道)
- 12.https://blog.ch-wind.com/(风烛之月博客)
- 13.https://opengameart.org/(2D资源网)
##### 三、模型破解工具
doa5的文件格式:TMC、TMCL 模型工具,包换骨骼, MPM 动作文件
doa5的一些模型破解工具:
https://www.undertow.club/threads/doa5lr-modding-tools-updated-april-24-2017.7995/
http://peach.tk/DOA5LR
##### 四、外挂工具
- 1.MPGH: https://www.mpgh.net/
- 2.https://www.unknowncheats.me/forum/index.php
##### 五、声音文件
BBC16000多种音效文件
http://bbcsfx.acropolis.org.uk/
##### 六、灯光
- 1.官方灯光师教程
http://timhobsonue4.snappages.com/home.htm
密码暂存:www.rr-sc.com-ADE75FE2A881B3CCE38AE873F10D9202(人体肌肉骨骼完全解剖教程+3D模型合辑) |
const { getURL, sockets } = require('../common/configuration.js');
const io = require('socket.io-client');
const os = require('os');
const socket = io.connect(getURL(sockets.measures), {
query: `id=${os.hostname()}&cores=${os.cpus().length}`
});
setInterval(() => {
socket.emit('new.load', {
load: os.loadavg(),
timestamp: new Date().getTime()
});
}, 5000);
|
## Primo Central
### Known Facets
* creator
* lcc
* Library of Congress Classification (https://www.loc.gov/catdir/cpso/lcco)
* lang
* ISO 639-2/B language codes
* rtype
* books
* reviews
* articles
* journals
* other
* text_resources
* websites
* newspaper_articles
* reference_entrys
* technical_reports
* research_datasets
* databases
* Dissertations
* images
* conference_proceedings
* media
* topic
* tlevel
* online_resources
* peer_reviewed
* pfilter
* same types as rtype
* creationdate
* four digit strings like "2008"
* domain
* something like publisher, but with a more wide meaning
* examples
* Literature Resource Center (Gale)
* ITPro (Books24x7)
* SpringerLink
* jtitle
* the journal title
|
require "scss_shorthand/version"
require "scss_shorthand/railtie"
|
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Test Focus and Aria | Fancytree</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.11.1.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/ui/1.11.2/jquery-ui.min.js" type="text/javascript"></script>
<link href="../../src/skin-win7/ui.fancytree.css" rel="stylesheet" type="text/css">
<script src="../../src/jquery.fancytree.js" type="text/javascript"></script>
<!-- Start_Exclude: This block is not part of the sample code -->
<link href="../../lib/prettify.css" rel="stylesheet">
<script src="../../lib/prettify.js" type="text/javascript"></script>
<link href="../../demo/sample.css" rel="stylesheet" type="text/css">
<script src="../../demo/sample.js" type="text/javascript"></script>
<!-- End_Exclude -->
<style type="text/css">
/*
[aria-activedescendant]{
outline: 1px dotted red;
}
*/
ul.fancytree-treefocus{
border: 1px solid blue;
}
ul.ui-fancytree:focus{
border-width: 3px;
}
span.fancytree-focused{
border: 1px solid green;
}
</style>
<!-- Add code to initialize the tree when the document is loaded: -->
<script type="text/javascript">
$(function(){
$("#tree").fancytree({
aria: true,
checkbox: true,
selectMode: 2,
// tabbable: false,
nolink: true,
source: [
{title: "Item 1 with embedded html: <input type='input' name='node1info'>", key: "node1"},
{title: "Folder 2", folder: true, expanded: true, key: "node2",
children: [
{title: "Sub-item 2.1", key: "node2.1"},
{title: "Sub-item 2.2", key: "node2.2"}
]
},
{title: "Item 3", key: "node3"}
]
});
$("#tree2").fancytree({
aria: true,
checkbox: false,
selectMode: 3,
// tabbable: false,
nolink: true,
source: [
{title: "Item 1", key: "node1"},
{title: "Folder 2", folder: true, key: "node2",
children: [
{title: "Sub-item 2.1", key: "node2.1"},
{title: "Sub-item 2.2", key: "node2.2"}
]
},
{title: "Item 3", key: "node3"}
]
});
$("form").submit(function() {
// Render hidden <input> elements for active and selected nodes
$("#tree").fancytree("getTree").generateFormElements();
$("#tree2").fancytree("getTree").generateFormElements();
alert("POST data:\n" + jQuery.param($(this).serializeArray()));
// return false to prevent submission of this sample
return false;
});
});
</script>
<!-- Start_Exclude: This block is not part of the sample code -->
<script>
$(function(){
/*
addSampleButton({
label: "Generate <input> elements",
code: function(){
$("#tree").fancytree("getTree").generateInput();
$("#tree2").fancytree("getTree").generateInput();
}
});
*/
});
</script>
<!-- End_Exclude -->
</head>
<body class="example">
<h1>Example: Form</h1>
<!-- Start_Exclude: This block is not part of the sample code -->
<div class="description">
These two trees are embedded in a form, together with some standard elements.
<ul>
<li>Use TAB key to move the focus between form elements.<br>
Note that a tree behaves like a single control (like a radio button group)
<li>Experimental support for <a href="http://www.w3.org/TR/wai-aria/">WAI-ARIA</a>
<li>The submit handler is hooked to generate hidden checkbox elements for
selected and active nodes.<br>
Note that in select mode 3 only the topmost nodes are considered.
<li>The values are then POSTed to the server (together with the other form elements).
</ul>
</div>
<div>
<label for="skinswitcher">Skin:</label> <select id="skinswitcher"></select>
</div>
<hr>
<!-- End_Exclude -->
<!--
<form action="http://127.0.0.1:8001/submit_data" method="POST">
-->
<form action="/submit_data" method="POST">
<textarea name="comment"></textarea>
<br>
<fieldset>
<legend>Radioboxes</legend>
<input type="radio" name="rb1" value="foo" checked> Foo
<input type="radio" name="rb1" value="bar"> Bar
<input type="radio" name="rb1" value="baz"> Baz
</fieldset>
<br>
<fieldset>
<legend>Checkboxes</legend>
<input type="checkbox" name="cb1" value="John" checked>John
<input type="checkbox" name="cb1" value="Paul">Paul
<input type="checkbox" name="cb1" value="George">George
<input type="checkbox" name="cb1" value="Ringo">Ringo
</fieldset>
<br>
<fieldset>
<legend>Lists</legend>
<select name="list1" multiple="multiple">
<option value="up">Up</option>
<option value="down">Down</option>
<option value="charm">Charm</option>
<option value="strange">Strange</option>
</select>
</fieldset>
Username: <input type="text" name="userName" />
<br>
<!-- The name attribute is used by tree.serializeArray() -->
<fieldset>
<legend>Select 1</legend>
<div id="tree" name="selNodes">
</div>
</fieldset>
<fieldset>
<legend>Select 2</legend>
<div id="tree2" name="selNodes2">
</div>
</fieldset>
<input type="submit" value="Send data">
</form>
<!-- Start_Exclude: This block is not part of the sample code -->
<p id="sampleButtons">
</p>
<hr>
<p class="sample-links no_code">
<a class="hideInsideFS" href="https://github.com/mar10/fancytree/">Fancytree project home</a>
<a class="hideOutsideFS" href="#">Link to this page</a>
<a class="hideInsideFS" href="index.html">Example Browser</a>
<a href="#" id="codeExample">View source code</a>
</p>
<pre id="sourceCode" class="prettyprint" style="display:none"></pre>
<!-- End_Exclude -->
</body>
</html>
|
/*
* Copyright (c) 2014 Jose Carlos Lama. www.typedom.org
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the \"Software\"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,
* publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
* OR OTHER DEALINGS IN THE SOFTWARE.
*/
/**
* The {{#crossLink "Ol"}}{{/crossLink}} Defines an ordered list
*
* @class Ol
* @extends Container
* @constructor
**/
class Ol extends Container<Ol, HTMLOListElement>
{
public static OL: string = 'ol';
constructor();
constructor(id: string)
constructor(attributes: Object)
constructor(element: HTMLOListElement)
constructor(idOrAttributesOrElement?: any) {
super(idOrAttributesOrElement, Ol.OL);
}
} |
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { IGuest } from '../../core';
@Component({
selector: 'wd-guest-form',
styles: [require('./guest-form.css').toString()],
template: require('./guest-form.html')
})
export class GuestFormComponent {
@Input() title: string;
@Input() guest: IGuest;
@Input() submitting: boolean;
@Output() submitForm: EventEmitter<any> = new EventEmitter();
@Output() cancel: EventEmitter<any> = new EventEmitter();
constructor() {
}
}
|
#!/usr/bin/python
import praw
import re
import os
import pickle
from array import *
import random
#REPLY = "I want all the bacon and eggs you have."
REPLY = array('i',["I want all the bacon and eggs you have", "I know what I'm about son", "I'm not interested in caring about people", "Is this not rap?"])
if not os.path.isfile("inigo_config.txt"):
print "You must create the file swanson_config.txt with the pickled credentials."
exit(1)
else:
print "Loading credentials"
user_data = pickle.load( open("swanson_config.txt","rb"))
#print user_data
user_agent = ("Swanson bot 0.1 created by /u/dcooper2.")
r = praw.Reddit(user_agent=user_agent)
r.login(user_data[0], user_data[1])
del user_data
print "Successfully logged in"
# Check for previous replies
if not os.path.isfile("replies.txt"):
replies = []
else:
print "Loading previous reply ids"
with open("replies.txt", "r") as f:
replies = f.read()
replies = replies.split("\n")
replies = filter(None, replies)
# Check for new items to reply to
subreddit = r.get_subreddit('umw_cpsc470Z')
print "Checking for new posts"
for submission in subreddit.get_hot(limit=10):
print "Checking submission ", submission.id
if submission.id not in replies:
if re.search("Ron Swanson", submission.title, re.IGNORECASE) or re.search("Ron Swanson", submission.selftext, re.IGNORECASE):
x = random.randint(0,3)
submission.add_comment(REPLY[x])
print "Bot replying to submission: ", submission.id
replies.append(submission.id)
print "Checking comments"
flat_comments = praw.helpers.flatten_tree(submission.comments)
for comment in flat_comments:
if comment.id not in replies:
if re.search("Ron Swanson", comment.body, re.IGNORECASE):
y = random.randint(0,3)
print "Bot replying to comment: ", comment.id
comment.reply(REPLY[y])
replies.append(comment.id)
# Save new replies
print "Saving ids to file"
with open("replies.txt", "w") as f:
for i in replies:
f.write(i + "\n")
|
// Copyright (C) 2000 Per M.A. Bothner.
// This is free software; for terms and warranty disclaimer see ../../COPYING.
package kawa.standard;
import gnu.expr.*;
import gnu.lists.*;
import gnu.mapping.*;
import gnu.kawa.io.InPort;
import gnu.kawa.lispexpr.*;
import kawa.lang.*;
import java.io.File;
public class define_autoload extends Syntax
{
public static final define_autoload define_autoload
= new define_autoload("define-autoload", false);
public static final define_autoload define_autoloads_from_file
= new define_autoload("define-autoloads-from-file", true);
boolean fromFile;
public define_autoload (String name, boolean fromFile)
{
super(name);
this.fromFile = fromFile;
}
@Override
public boolean scanForDefinitions (Pair st, ScopeExp defs, Translator tr)
{
if (! (st.getCdr() instanceof Pair))
return super.scanForDefinitions(st, defs, tr);
Pair p = (Pair) st.getCdr();
if (fromFile)
{
for (;;)
{
/* #ifdef use:java.lang.CharSequence */
if (! (p.getCar() instanceof CharSequence))
break;
/* #else */
// if (! (p.getCar() instanceof String || p.getCar() instanceof CharSeq))
// break;
/* #endif */
if (! scanFile(p.getCar().toString(), defs, tr))
return false;
Object rest = p.getCdr();
if (rest == LList.Empty)
return true;
if (! (rest instanceof Pair))
break;
p = (Pair) p.getCdr();
}
tr.syntaxError("invalid syntax for define-autoloads-from-file");
return false;
}
Object names = p.getCar();
Object filename = null;
if (p.getCdr() instanceof Pair)
{
p = (Pair) p.getCdr();
filename = p.getCar();
return process(names, filename, defs, tr);
}
tr.syntaxError("invalid syntax for define-autoload");
return false;
}
public boolean scanFile(String filespec, ScopeExp defs, Translator tr)
{
if (filespec.endsWith(".el"))
;
File file = new File(filespec);
if (! file.isAbsolute())
file = new File(new File(tr.getFileName()).getParent(), filespec);
String filename = file.getPath();
int dot = filename.lastIndexOf('.');
Language language;
if (dot >= 0)
{
String extension = filename.substring(dot);
language = Language.getInstance(extension);
if (language == null)
{
tr.syntaxError("unknown extension for "+filename);
return true;
}
gnu.text.Lexer lexer;
/*
// Since (module-name ...) is not handled in this pass,
// we won't see it until its too late. FIXME.
ModuleExp module = tr.getModule();
String prefix = module == null ? null : module.getName();
System.err.println("module:"+module);
if (prefix == null)
prefix = kawa.repl.compilationPrefix;
else
{
int i = prefix.lastIndexOf('.');
if (i < 0)
prefix = null;
else
prefix = prefix.substring(0, i+1);
}
*/
String prefix = tr.classPrefix;
int extlen = extension.length();
int speclen = filespec.length();
String cname = filespec.substring(0, speclen - extlen);
while (cname.startsWith("../"))
{
int i = prefix.lastIndexOf('.', prefix.length() - 2);
if (i < 0)
{
tr.syntaxError("cannot use relative filename \"" + filespec
+ "\" with simple prefix \"" + prefix + "\"");
return false;
}
prefix = prefix.substring(0, i+1);
cname = cname.substring(3);
}
String classname = (prefix + cname).replace('/', '.');
try
{
InPort port = InPort.openFile(filename);
lexer = language.getLexer(port, tr.getMessages());
findAutoloadComments((LispReader) lexer, classname, defs, tr);
}
catch (Exception ex)
{
tr.syntaxError("error reading "+filename+": "+ex);
return true;
}
}
return true;
}
public static void findAutoloadComments (LispReader in, String filename,
ScopeExp defs, Translator tr)
throws java.io.IOException, gnu.text.SyntaxException
{
boolean lineStart = true;
String magic = ";;;###autoload";
int magicLength = magic.length();
mainLoop:
for (;;)
{
int ch = in.peek();
if (ch < 0)
return;
if (ch == '\n' || ch == '\r')
{
in.read();
lineStart = true;
continue;
}
if (lineStart && ch == ';')
{
int i = 0;
for (;;)
{
if (i == magicLength)
break;
ch = in.read();
if (ch < 0)
return;
if (ch == '\n' || ch == '\r')
{
lineStart = true;
continue mainLoop;
}
if (i < 0 || ch == magic.charAt(i++))
continue;
i = -1; // No match.
}
if (i > 0)
{
Object form = in.readObject();
if (form instanceof Pair)
{
Pair pair = (Pair) form;
Object value = null;
String name = null;
Object car = pair.getCar();
String command
= car instanceof String ? car.toString()
: car instanceof Symbol ? ((Symbol) car).getName()
: null;
if (command == "defun")
{
name = ((Pair)pair.getCdr()).getCar().toString();
value = new AutoloadProcedure(name, filename,
tr.getLanguage());
}
else
tr.error('w', "unsupported ;;;###autoload followed by: "
+ pair.getCar());
if (value != null)
{
Declaration decl = defs.getDefine(name, tr);
Expression ex = new QuoteExp(value);
decl.setFlag(Declaration.IS_CONSTANT);
decl.noteValue(ex);
}
}
lineStart = false;
continue;
}
}
lineStart = false;
in.skip();
if (ch == '#')
{
if (in.peek() == '|')
{
in.skip();
in.readNestedComment('#', '|');
continue;
}
}
if (Character.isWhitespace ((char)ch))
;
else
{
Object skipped = in.readObject(ch);
if (skipped == Sequence.eofValue)
return;
}
}
}
public static boolean process(Object names, Object filename,
ScopeExp defs, Translator tr)
{
if (names instanceof Pair)
{
Pair p = (Pair) names;
return (process(p.getCar(), filename, defs, tr)
&& process(p.getCdr(), filename, defs, tr));
}
if (names == LList.Empty)
return true;
String fn;
int len;
/*
if (names == "*" && filename instanceof String
&& (len = (fn = (String) filename).length()) > 2
&& fn.charAt(0) == '<' && fn.charAt(len-1) == '>')
{
fn = fn.substring(1, len-1);
try
{
Class fclass = Class.forName(fn);
Object instance = require.find(ctype, env);
...;
}
catch (ClassNotFoundException ex)
{
tr.syntaxError("class <"+fn+"> not found");
return false;
}
}
*/
if (names instanceof String || names instanceof Symbol)
{
String name = names.toString();
Declaration decl = defs.getDefine(name, tr);
if (filename instanceof SimpleSymbol
&& (len = (fn = filename.toString()).length()) > 2
&& fn.charAt(0) == '<' && fn.charAt(len-1) == '>')
filename = fn.substring(1, len-1);
Object value = new AutoloadProcedure(name, filename.toString(),
tr.getLanguage());
Expression ex = new QuoteExp(value);
decl.setFlag(Declaration.IS_CONSTANT);
decl.noteValue(ex);
return true;
}
return false;
}
public Expression rewriteForm (Pair form, Translator tr)
{
return null;
}
}
|
<?php
/**
* This file has been @generated by a phing task from CLDR version 31.0.1.
* See [README.md](README.md#generating-data) for more information.
*
* @internal Please do not require this file directly.
* It may change location/format between versions
*
* Do not modify this file directly!
*/
return array (
'AD' => 'Andoora',
'AE' => 'Laaraw Imaarawey Margantey',
'AF' => 'Afgaanistan',
'AG' => 'Antigua nda Barbuuda',
'AI' => 'Angiiya',
'AL' => 'Albaani',
'AM' => 'Armeeni',
'AO' => 'Angoola',
'AR' => 'Argentine',
'AS' => 'Ameriki Samoa',
'AT' => 'Otriši',
'AU' => 'Ostraali',
'AW' => 'Aruuba',
'AZ' => 'Azerbaayijaŋ',
'BA' => 'Bosni nda Herzegovine',
'BB' => 'Barbaados',
'BD' => 'Bangladeši',
'BE' => 'Belgiiki',
'BF' => 'Burkina faso',
'BG' => 'Bulgaari',
'BH' => 'Bahareen',
'BI' => 'Burundi',
'BJ' => 'Beniŋ',
'BM' => 'Bermuda',
'BN' => 'Bruunee',
'BO' => 'Boolivi',
'BR' => 'Breezil',
'BS' => 'Bahamas',
'BT' => 'Buutaŋ',
'BW' => 'Botswaana',
'BY' => 'Biloriši',
'BZ' => 'Beliizi',
'CA' => 'Kanaada',
'CD' => 'Kongoo demookaratiki laboo',
'CF' => 'Centraafriki koyra',
'CG' => 'Kongoo',
'CH' => 'Swisu',
'CI' => 'Kudwar',
'CK' => 'Kuuk gungey',
'CL' => 'Šiili',
'CM' => 'Kameruun',
'CN' => 'Šiin',
'CO' => 'Kolombi',
'CR' => 'Kosta rika',
'CU' => 'Kuuba',
'CV' => 'Kapuver gungey',
'CY' => 'Šiipur',
'CZ' => 'Cek labo',
'DE' => 'Almaaɲe',
'DJ' => 'Jibuuti',
'DK' => 'Danemark',
'DO' => 'Doominiki laboo',
'DZ' => 'Alžeeri',
'EC' => 'Ekwateer',
'EE' => 'Estooni',
'EG' => 'Misra',
'ER' => 'Eritree',
'ES' => 'Espaaɲe',
'ET' => 'Ecioopi',
'FI' => 'Finlandu',
'FJ' => 'Fiji',
'FK' => 'Kalkan gungey',
'FM' => 'Mikronezi',
'FR' => 'Faransi',
'GA' => 'Gaabon',
'GB' => 'Albaasalaama Marganta',
'GD' => 'Grenaada',
'GE' => 'Gorgi',
'GF' => 'Faransi Guyaan',
'GH' => 'Gaana',
'GI' => 'Gibraltar',
'GL' => 'Grinland',
'GM' => 'Gambi',
'GN' => 'Gine',
'GP' => 'Gwadeluup',
'GQ' => 'Ginee Ekwatorial',
'GR' => 'Greece',
'GT' => 'Gwatemaala',
'GU' => 'Guam',
'GW' => 'Gine-Bisso',
'GY' => 'Guyaane',
'HN' => 'Honduras',
'HR' => 'Krwaasi',
'HT' => 'Haiti',
'HU' => 'Hungaari',
'ID' => 'Indoneezi',
'IE' => 'Irlandu',
'IL' => 'Israyel',
'IN' => 'Indu laboo',
'IO' => 'Britiši Indu teekoo laama',
'IQ' => 'Iraak',
'IR' => 'Iraan',
'IS' => 'Ayseland',
'IT' => 'Itaali',
'JM' => 'Jamaayik',
'JO' => 'Urdun',
'JP' => 'Jaapoŋ',
'KE' => 'Keeniya',
'KG' => 'Kyrgyzstan',
'KH' => 'kamboogi',
'KI' => 'Kiribaati',
'KM' => 'Komoor',
'KN' => 'Seŋ Kitts nda Nevis',
'KP' => 'Gurma Kooree',
'KR' => 'Hawsa Kooree',
'KW' => 'Kuweet',
'KY' => 'Kayman gungey',
'KZ' => 'Kaazakstan',
'LA' => 'Laawos',
'LB' => 'Lubnaan',
'LC' => 'Seŋ Lussia',
'LI' => 'Liechtenstein',
'LK' => 'Srilanka',
'LR' => 'Liberia',
'LS' => 'Leesoto',
'LT' => 'Lituaani',
'LU' => 'Luxembourg',
'LV' => 'Letooni',
'LY' => 'Liibi',
'MA' => 'Maarok',
'MC' => 'Monako',
'MD' => 'Moldovi',
'MG' => 'Madagascar',
'MH' => 'Maršal gungey',
'MK' => 'Maacedooni',
'ML' => 'Maali',
'MM' => 'Maynamar',
'MN' => 'Mongooli',
'MP' => 'Mariana Gurma Gungey',
'MQ' => 'Martiniiki',
'MR' => 'Mooritaani',
'MS' => 'Montserrat',
'MT' => 'Malta',
'MU' => 'Mooris gungey',
'MV' => 'Maldiivu',
'MW' => 'Malaawi',
'MX' => 'Mexiki',
'MY' => 'Maleezi',
'MZ' => 'Mozambik',
'NA' => 'Naamibi',
'NC' => 'Kaaledooni Taagaa',
'NE' => 'Nižer',
'NF' => 'Norfolk Gungoo',
'NG' => 'Naajiriia',
'NI' => 'Nikaragwa',
'NL' => 'Hollandu',
'NO' => 'Norveej',
'NP' => 'Neepal',
'NR' => 'Nauru',
'NU' => 'Niue',
'NZ' => 'Zeelandu Taaga',
'OM' => 'Omaan',
'PA' => 'Panama',
'PE' => 'Peeru',
'PF' => 'Faransi Polineezi',
'PG' => 'Papua Ginee Taaga',
'PH' => 'Filipine',
'PK' => 'Paakistan',
'PL' => 'Poloɲe',
'PM' => 'Seŋ Piyer nda Mikelon',
'PN' => 'Pitikarin',
'PR' => 'Porto Riko',
'PS' => 'Palestine Dangay nda Gaaza',
'PT' => 'Portugaal',
'PW' => 'Palu',
'PY' => 'Paraguwey',
'QA' => 'Kataar',
'RE' => 'Reenioŋ',
'RO' => 'Rumaani',
'RU' => 'Iriši laboo',
'RW' => 'Rwanda',
'SA' => 'Saudiya',
'SB' => 'Solomon Gungey',
'SC' => 'Seešel',
'SD' => 'Suudaŋ',
'SE' => 'Sweede',
'SG' => 'Singapur',
'SH' => 'Seŋ Helena',
'SI' => 'Sloveeni',
'SK' => 'Slovaaki',
'SL' => 'Seera Leon',
'SM' => 'San Marino',
'SN' => 'Senegal',
'SO' => 'Somaali',
'SR' => 'Surinaam',
'ST' => 'Sao Tome nda Prinsipe',
'SV' => 'Salvador laboo',
'SY' => 'Suuria',
'SZ' => 'Swaziland',
'TC' => 'Turk nda Kayikos Gungey',
'TD' => 'Caadu',
'TG' => 'Togo',
'TH' => 'Taayiland',
'TJ' => 'Taažikistan',
'TK' => 'Tokelau',
'TL' => 'Timoor hawsa',
'TM' => 'Turkmenistaŋ',
'TN' => 'Tunizi',
'TO' => 'Tonga',
'TR' => 'Turki',
'TT' => 'Trinidad nda Tobaago',
'TV' => 'Tuvalu',
'TW' => 'Taayiwan',
'TZ' => 'Tanzaani',
'UA' => 'Ukreen',
'UG' => 'Uganda',
'US' => 'Ameriki Laabu Margantey',
'UY' => 'Uruguwey',
'UZ' => 'Uzbeekistan',
'VA' => 'Vaatikan Laama',
'VC' => 'Seŋvinsaŋ nda Grenadine',
'VE' => 'Veneezuyeela',
'VG' => 'Britiši Virgin gungey',
'VI' => 'Ameerik Virgin Gungey',
'VN' => 'Vietnaam',
'VU' => 'Vanautu',
'WF' => 'Wallis nda Futuna',
'WS' => 'Samoa',
'YE' => 'Yaman',
'YT' => 'Mayooti',
'ZA' => 'Hawsa Afriki Laboo',
'ZM' => 'Zambi',
'ZW' => 'Zimbabwe',
);
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Login Page - Photon Admin Panel Theme</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<link rel="shortcut icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/favicon.ico" />
<link rel="apple-touch-icon" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/iosicon.png" />
<!-- DEVELOPMENT LESS -->
<!-- <link rel="stylesheet/less" href="css/photon.less" media="all" />
<link rel="stylesheet/less" href="css/photon-responsive.less" media="all" />
--> <!-- PRODUCTION CSS -->
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/css/css_compiled/photon-min.css?v1.1" media="all" />
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/css/css_compiled/photon-min-part2.css?v1.1" media="all" />
<link rel="stylesheet" href="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/css/css_compiled/photon-responsive-min.css?v1.1" media="all" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/css_compiled/ie-only-min.css?v1.1" />
<![endif]-->
<!--[if lt IE 9]>
<link rel="stylesheet" type="text/css" href="css/css_compiled/ie8-only-min.css?v1.1" />
<script type="text/javascript" src="js/plugins/excanvas.js"></script>
<script type="text/javascript" src="js/plugins/html5shiv.js"></script>
<script type="text/javascript" src="js/plugins/respond.min.js"></script>
<script type="text/javascript" src="js/plugins/fixFontIcons.js"></script>
<![endif]-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.0/jquery-ui.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/bootstrap/bootstrap.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/modernizr.custom.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.pnotify.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/less-1.3.1.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/xbreadcrumbs.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.maskedinput-1.3.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.autotab-1.1b.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/charCount.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.textareaCounter.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/elrte.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/elrte.en.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/select2.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery-picklist.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.validate.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/additional-methods.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.form.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.metadata.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.mockjax.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.uniform.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.rating.pack.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/farbtastic.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.timeentry.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.jstree.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/dataTables.bootstrap.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.mCustomScrollbar.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.flot.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.flot.stack.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.flot.pie.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.flot.resize.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/raphael.2.1.0.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/justgage.1.0.1.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.qrcode.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.clock.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.countdown.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.jqtweet.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/jquery.cookie.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/bootstrap-fileupload.min.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/prettify/prettify.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/bootstrapSwitch.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/plugins/mfupload.js"></script>
<script type="text/javascript" src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/js/common.js"></script>
</head>
<body class="body-login">
<div class="nav-fixed-topright" style="visibility: hidden">
<ul class="nav nav-user-menu">
<li class="user-sub-menu-container">
<a href="javascript:;">
<i class="user-icon"></i><span class="nav-user-selection">Theme Options</span><i class="icon-menu-arrow"></i>
</a>
<ul class="nav user-sub-menu">
<li class="light">
<a href="javascript:;">
<i class='icon-photon stop'></i>Light Version
</a>
</li>
<li class="dark">
<a href="javascript:;">
<i class='icon-photon stop'></i>Dark Version
</a>
</li>
</ul>
</li>
<li>
<a href="javascript:;">
<i class="icon-photon mail"></i>
</a>
</li>
<li>
<a href="javascript:;">
<i class="icon-photon comment_alt2_stroke"></i>
<div class="notification-count">12</div>
</a>
</li>
</ul>
</div>
<script>
$(function(){
setTimeout(function(){
$('.nav-fixed-topright').removeAttr('style');
}, 300);
$(window).scroll(function(){
if($('.breadcrumb-container').length){
var scrollState = $(window).scrollTop();
if (scrollState > 0) $('.nav-fixed-topright').addClass('nav-released');
else $('.nav-fixed-topright').removeClass('nav-released')
}
});
$('.user-sub-menu-container').on('click', function(){
$(this).toggleClass('active-user-menu');
});
$('.user-sub-menu .light').on('click', function(){
if ($('body').is('.light-version')) return;
$('body').addClass('light-version');
setTimeout(function() {
$.cookie('themeColor', 'light', {
expires: 7,
path: '/'
});
}, 500);
});
$('.user-sub-menu .dark').on('click', function(){
if ($('body').is('.light-version')) {
$('body').removeClass('light-version');
$.cookie('themeColor', 'dark', {
expires: 7,
path: '/'
});
}
});
});
</script>
<div class="container-login">
<div class="form-centering-wrapper">
<div class="form-window-login">
<div class="form-window-login-logo">
<div class="login-logo">
<img src="http://photonui.orangehilldev.com/css/css_compiled/@%7BphotonImagePath%7Dplugins/elrte/images/photon/js/images/photon/css/css_compiled/images/photon/login-logo@2x.png" alt="Photon UI"/>
</div>
<h2 class="login-title">Welcome to Photon UI!</h2>
<div class="login-member">Not a Member? <a href="photon-min.css-v1.1.html#">Sign Up »</a>
<a href="photon-min.css-v1.1.html#" class="btn btn-facebook"><i class="icon-fb"></i>Login with Facebook<i class="icon-fb-arrow"></i></a>
</div>
<div class="login-or">Or</div>
<div class="login-input-area">
<form method="POST" action="dashboard.php">
<span class="help-block">Login With Your Photon Account</span>
<input type="text" name="email" placeholder="Email">
<input type="password" name="password" placeholder="Password">
<button type="submit" class="btn btn-large btn-success btn-login">Login</button>
</form>
<a href="photon-min.css-v1.1.html#" class="forgot-pass">Forgot Your Password?</a>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1936460-27']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
|
import React from 'react'
import { mount, shallow, render } from 'enzyme'
import { Stepper } from './Stepper'
import Step from './Stepper.Step'
import { StepUI, StepperUI } from './Stepper.css'
const mockSteps = [
{
id: 'Id1',
title: 'Test Title 1',
},
{
id: 'Id2',
title: 'Test Title 2',
},
{
id: 'Id3',
title: 'Test Title 3',
},
{
id: 'Id4',
title: 'Test Title 4',
},
]
describe('className', () => {
test('Has default className', () => {
const wrapper = render(<Stepper />)
expect(wrapper.hasClass('c-Stepper')).toBeTruthy()
})
test('Can render custom className', () => {
const customClassName = 'blue'
const wrapper = render(<Stepper className={customClassName} />)
expect(wrapper.hasClass(customClassName)).toBeTruthy()
})
})
describe('HTML props', () => {
test('Can render default HTML props', () => {
const wrapper = render(<Stepper data-cy="blue" />)
expect(wrapper.attr('data-cy')).toBe('blue')
})
})
describe('children', () => {
test('should have a child component for each step', () => {
const wrapper = mount(<Stepper steps={mockSteps} currentIndex={0} />)
const steps = wrapper.find(Step)
expect(steps.length).toEqual(4)
})
test('should assign proper isActive state to each step', () => {
const wrapper = mount(<Stepper steps={mockSteps} currentIndex={2} />)
wrapper.update()
const steps = wrapper.find(StepUI)
let results = []
steps.forEach(step => {
results.push(step.hasClass('is-active'))
})
expect(results[0]).toEqual(true)
expect(results[1]).toEqual(true)
expect(results[2]).toEqual(true)
expect(results[3]).toEqual(false)
})
})
describe('callbacks', () => {
test('should call callbacks', () => {
const onChangeSpy = jest.fn()
const onCompleteSpy = jest.fn()
const wrapper = mount(
<Stepper
onChange={onChangeSpy}
onComplete={onCompleteSpy}
currentIndex={0}
steps={mockSteps}
/>
)
expect(onChangeSpy).toHaveBeenCalledTimes(0)
expect(onCompleteSpy).toHaveBeenCalledTimes(0)
wrapper.setProps({ currentIndex: 1 })
expect(onChangeSpy).toHaveBeenCalledTimes(1)
expect(onCompleteSpy).toHaveBeenCalledTimes(0)
wrapper.setProps({ currentIndex: 2 })
expect(onChangeSpy).toHaveBeenCalledTimes(2)
expect(onCompleteSpy).toHaveBeenCalledTimes(0)
wrapper.setProps({ currentIndex: 3 })
expect(onChangeSpy).toHaveBeenCalledTimes(3)
expect(onCompleteSpy).toHaveBeenCalledTimes(1)
})
test('should call onStepClick callback', () => {
const onStepClickSpy = jest.fn()
const wrapper = shallow(
<Stepper steps={mockSteps} onStepClick={onStepClickSpy} />
)
wrapper
.find(Step)
.at(0)
.simulate('click')
expect(onStepClickSpy).toHaveBeenCalledTimes(1)
})
})
describe('StepperUI', () => {
test('should return the correct value for getProgress', () => {
const wrapper = mount(<Stepper steps={mockSteps} currentIndex={2} />)
expect(wrapper.find(StepperUI).prop('aria-valuenow')).toEqual(3)
})
})
describe('getProgress', () => {
test('should equal 2', () => {
const wrapper = mount(<Stepper steps={mockSteps} currentIndex={1} />)
expect(wrapper.instance().getProgress()).toEqual(2)
})
test('when no currentIndex is null, kkshould return 1', () => {
const wrapper = mount(<Stepper currentIndex={null} />)
expect(wrapper.instance().getProgress()).toEqual(1)
})
})
describe('getMatchIndex', () => {
test('should return 1', () => {
const wrapper = mount(<Stepper currentIndex={1} />)
expect(wrapper.instance().getMatchIndex()).toEqual(1)
})
test('when no currentIndex defined should return 0', () => {
const wrapper = mount(<Stepper currentIndex={null} />)
expect(wrapper.instance().getMatchIndex()).toEqual(-1)
})
})
describe('componentDidUpdate', () => {
test('should call onChange callback', () => {
const onChangeSpy = jest.fn()
const wrapper = mount(
<Stepper onChange={onChangeSpy} steps={mockSteps} currentIndex={1} />
)
wrapper.instance().componentDidUpdate({ currentIndex: 0 })
expect(onChangeSpy).toHaveBeenCalled()
})
test('should not call onChange callback', () => {
const onChangeSpy = jest.fn()
const wrapper = mount(
<Stepper onChange={onChangeSpy} steps={mockSteps} currentIndex={1} />
)
wrapper.instance().componentDidUpdate({ currentIndex: 1 })
expect(onChangeSpy).not.toHaveBeenCalled()
})
})
describe('handleChangeCallback', () => {
test('should not call onChange', () => {
const onChangeSpy = jest.fn()
const wrapper = mount(
<Stepper onChange={onChangeSpy} steps={[]} currentIndex={1} />
)
wrapper.instance().handleChangeCallback()
expect(onChangeSpy).not.toHaveBeenCalled()
})
})
describe('Step className', () => {
test('should call click handler if isClickable is true', () => {
const onClickSpy = jest.fn()
const wrapper = mount(<Step isClickable={true} onClick={onClickSpy} />)
wrapper
.find('.c-StepperStep')
.at(0)
.simulate('click')
expect(onClickSpy).toHaveBeenCalledTimes(1)
})
test('should NOT call click handler if isClickable is false', () => {
const onClickSpy = jest.fn()
const wrapper = mount(<Step isClickable={false} onClick={onClickSpy} />)
wrapper
.find('.c-StepperStep')
.at(0)
.simulate('click')
expect(onClickSpy).toHaveBeenCalledTimes(0)
})
})
|
module.exports = middleware;
var states = {
STANDBY: 0,
BUSY: 1
};
function middleware(options) {
var regio = require('regio'),
tessel = require('tessel'),
camera = require('camera-vc0706').use(tessel.port[options.port]),
app = regio.router(),
hwReady = false,
current;
camera.on('ready', function() {
hwReady = true;
current = states.STANDBY;
});
app.get('/', handler);
function handler(req, res) {
if (hwReady) {
if (current === states.STANDBY) {
current = states.BUSY;
camera.takePicture(function (err, image) {
res.set('Content-Type', 'image/jpeg');
res.set('Content-Length', image.length);
res.status(200).end(image);
current = states.STANDBY;
});
} else {
res.set('Retry-After', 100);
res.status(503).end();
}
} else {
res.status(503).end();
}
}
return app;
}
|
package api
import (
"errors"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
var _ = Describe("Error", func() {
Context("Marshalling", func() {
It("will be marshalled correctly with a wrapped error", func() {
apiErr := WrapErr(errors.New("boom!"), 500)
result := []byte(apiErr.HTTPBody())
expected := []byte(`{"errors":[{"status":"500","title":"boom!"}]}`)
Expect(result).To(MatchJSON(expected))
})
It("will be marshalled correctly with one error", func() {
apiErr := &Error{Title: "Bad Request", Status: "400"}
result := []byte(apiErr.HTTPBody())
expected := []byte(`{"errors":[{"status":"400","title":"Bad Request"}]}`)
Expect(result).To(MatchJSON(expected))
})
It("will be marshalled correctly with several errors", func() {
errorOne := &Error{Title: "Bad Request", Status: "400"}
errorTwo := &Error{
ID: "001",
Href: "http://bla/blub",
Status: "500",
Code: "001",
Title: "Title must not be empty",
Detail: "Never occures in real life",
Path: "#titleField",
}
apiErr := errorOne.Add(errorTwo)
result := []byte(apiErr.HTTPBody())
expected := []byte(`{"errors":[
{"status":"400","title":"Bad Request"},
{"id":"001","href":"http://bla/blub","status":"500","code":"001","title":"Title must not be empty","detail":"Never occures in real life","path":"#titleField"}
]}`)
Expect(result).To(MatchJSON(expected))
})
})
})
|
# Training
* Make sure you've created datasets like [here](https://github.com/TengdaHan/Convolutional_Sketch_Inversion/tree/master/src/data), and load them correctly in [train.py](https://github.com/TengdaHan/Convolutional_Sketch_Inversion/blob/master/src/train.py)
* Run in terminal: `python train.py`
|
import { gql } from '@apollo/client'
import fullBlockShareFragment from 'v2/components/FullBlock/components/FullBlockShare/fragments/fullBlockShare'
export default gql`
fragment FullBlockActions on Konnectable {
__typename
... on Image {
find_original_url
downloadable_image: resized_image_url(downloadable: true)
}
... on Text {
find_original_url
}
... on ConnectableInterface {
source {
title
url
}
}
... on Block {
can {
mute
potentially_edit_thumbnail
edit_thumbnail
}
}
...FullBlockShare
}
${fullBlockShareFragment}
`
|
#WP Preview

WP Preview is a simple WordPress theme that allows you to stage flat website designs in a browser for demoing purposes.
Demo: [WP Preview](http://wppreview.stephengreer.me/)
Created by: [Stephen Greer](https://stephengreer.me/)
## Requirements
| Prerequisite | How to check | How to install
| --------------- | ------------ | ------------- |
| PHP >= 5.4.x | `php -v` | [php.net](http://php.net/manual/en/install.php) |
| Node.js 0.12.x | `node -v` | [nodejs.org](http://nodejs.org/) |
| gulp >= 3.8.10 | `gulp -v` | `npm install -g gulp` |
| Bower >= 1.3.12 | `bower -v` | `npm install -g bower` |
For more installation notes, refer to the [Install gulp and Bower](#install-gulp-and-bower) section in this document.
## Theme installation
Bottom line is you want to get the files in this repo into your local development environment. There are many ways to do this, two of which we will cover here.
### via Command-line
You need to clone this repo into the theme directory on your WordPress installation. Run this in the command-line.
`git clone https://github.com/stephengreer08/wp-preview`
### via WordPress Admin Panel
1. [Download the latest release](https://github.com/stephengreer08/wp-preview/releases/latest) of WP Preview.
2. In your WordPress admin panel, navigate to Appearance->Themes
3. Click Add New
4. Click Upload Theme
5. Upload the zip file that you downloaded.
### via WP Pusher
You can also install this theme, or any theme or plugin from Github using the WordPress plugin, [WP Pusher](https://wppusher.com/). It's free for public repos.
|
---
layout: post
title: poj-2549 Sumsets
categories: pro-sol
excerpt: ""
tag: [poj, ]
---
## 傳送門:
#### [Sumsets](http://poj.org/problem?id=2549)
## code:
{% highlight cpp linenos %}
typedef vector<pair<int, pii> >::iterator Iter;
inline bool operator!= (const pii &x, const pii &y){
return (x.X != y.X && x.X != y.Y && x.Y != y.X && x.Y != y.Y);
}
ll N, arr[1005], ans;
vector<pair<int, pii> > record;
void init(){
for(int i=0;i<N;i++) arr[i] = getint();
sort(arr, arr+N, greater<ll>());
record.clear();
ans = -INT_MAX;
}
inline bool cmp(const pair<int,pii> &a, const int& b){
return a.X < b;
}
inline bool succ(int x, int v) {
return record[x].X <= v;
}
void sol(){
pair<int, pii> piii;
int l, r;
for(int i=0;i<N;i++)for(int j=i+1;j<N;j++){
piii.X = arr[i] + arr[j];
piii.Y.X = i;
piii.Y.Y = j;
record.PB(piii);
}
sort(record.begin(), record.end());
for(int i=0;i<N;i++)for(int j=0;j<N;j++)if(i!=j){
l=0, r=record.size();
#define mid ((l+r)>>1)
while(r-l>1) succ(mid, arr[i]-arr[j]) ? l=mid : r=mid;
if(arr[i]-arr[j] == record[l].X && MP(i,j) != record[l].Y){
ans = arr[i];
return;
}
}
}
inline void prin(){
if(ans == -INT_MAX) puts("no solution");
else cout << ans << endl;
}
int main(){
while(cin >> N && N){
init();
sol();
prin();
}
}
{% endhighlight %}
|
/*
** FFI C call handling.
** Copyright (C) 2005-2013 Mike Pall. See Copyright Notice in luajit.h
*/
#include "lj_obj.h"
#if LJ_HASFFI
#include "lj_gc.h"
#include "lj_err.h"
#include "lj_str.h"
#include "lj_tab.h"
#include "lj_ctype.h"
#include "lj_cconv.h"
#include "lj_cdata.h"
#include "lj_ccall.h"
#include "lj_trace.h"
/* Target-specific handling of register arguments. */
#if LJ_TARGET_X86
/* -- x86 calling conventions --------------------------------------------- */
#if LJ_ABI_WIN
#define CCALL_HANDLE_STRUCTRET \
/* Return structs bigger than 8 by reference (on stack only). */ \
cc->retref = (sz > 8); \
if (cc->retref) cc->stack[nsp++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET CCALL_HANDLE_STRUCTRET
#else
#define CCALL_HANDLE_STRUCTRET \
cc->retref = 1; /* Return all structs by reference (in reg or on stack). */ \
if (ngpr < maxgpr) \
cc->gpr[ngpr++] = (GPRArg)dp; \
else \
cc->stack[nsp++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET \
/* Return complex float in GPRs and complex double by reference. */ \
cc->retref = (sz > 8); \
if (cc->retref) { \
if (ngpr < maxgpr) \
cc->gpr[ngpr++] = (GPRArg)dp; \
else \
cc->stack[nsp++] = (GPRArg)dp; \
}
#endif
#define CCALL_HANDLE_COMPLEXRET2 \
if (!cc->retref) \
*(int64_t *)dp = *(int64_t *)sp; /* Copy complex float from GPRs. */
#define CCALL_HANDLE_STRUCTARG \
ngpr = maxgpr; /* Pass all structs by value on the stack. */
#define CCALL_HANDLE_COMPLEXARG \
isfp = 1; /* Pass complex by value on stack. */
#define CCALL_HANDLE_REGARG \
if (!isfp) { /* Only non-FP values may be passed in registers. */ \
if (n > 1) { /* Anything > 32 bit is passed on the stack. */ \
if (!LJ_ABI_WIN) ngpr = maxgpr; /* Prevent reordering. */ \
} else if (ngpr + 1 <= maxgpr) { \
dp = &cc->gpr[ngpr]; \
ngpr += n; \
goto done; \
} \
}
#elif LJ_TARGET_X64 && LJ_ABI_WIN
/* -- Windows/x64 calling conventions ------------------------------------- */
#define CCALL_HANDLE_STRUCTRET \
/* Return structs of size 1, 2, 4 or 8 in a GPR. */ \
cc->retref = !(sz == 1 || sz == 2 || sz == 4 || sz == 8); \
if (cc->retref) cc->gpr[ngpr++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET CCALL_HANDLE_STRUCTRET
#define CCALL_HANDLE_COMPLEXRET2 \
if (!cc->retref) \
*(int64_t *)dp = *(int64_t *)sp; /* Copy complex float from GPRs. */
#define CCALL_HANDLE_STRUCTARG \
/* Pass structs of size 1, 2, 4 or 8 in a GPR by value. */ \
if (!(sz == 1 || sz == 2 || sz == 4 || sz == 8)) { \
rp = cdataptr(lj_cdata_new(cts, did, sz)); \
sz = CTSIZE_PTR; /* Pass all other structs by reference. */ \
}
#define CCALL_HANDLE_COMPLEXARG \
/* Pass complex float in a GPR and complex double by reference. */ \
if (sz != 2*sizeof(float)) { \
rp = cdataptr(lj_cdata_new(cts, did, sz)); \
sz = CTSIZE_PTR; \
}
/* Windows/x64 argument registers are strictly positional (use ngpr). */
#define CCALL_HANDLE_REGARG \
if (isfp) { \
if (ngpr < 4) { dp = &cc->fpr[ngpr++]; nfpr = ngpr; goto done; } \
} else { \
if (ngpr < 4) { dp = &cc->gpr[ngpr++]; goto done; } \
}
#elif LJ_TARGET_X64
/* -- POSIX/x64 calling conventions --------------------------------------- */
#define CCALL_HANDLE_STRUCTRET \
int rcl[2]; rcl[0] = rcl[1] = 0; \
if (ccall_classify_struct(cts, ctr, rcl, 0)) { \
cc->retref = 1; /* Return struct by reference. */ \
cc->gpr[ngpr++] = (GPRArg)dp; \
} else { \
cc->retref = 0; /* Return small structs in registers. */ \
}
#define CCALL_HANDLE_STRUCTRET2 \
int rcl[2]; rcl[0] = rcl[1] = 0; \
ccall_classify_struct(cts, ctr, rcl, 0); \
ccall_struct_ret(cc, rcl, dp, ctr->size);
#define CCALL_HANDLE_COMPLEXRET \
/* Complex values are returned in one or two FPRs. */ \
cc->retref = 0;
#define CCALL_HANDLE_COMPLEXRET2 \
if (ctr->size == 2*sizeof(float)) { /* Copy complex float from FPR. */ \
*(int64_t *)dp = cc->fpr[0].l[0]; \
} else { /* Copy non-contiguous complex double from FPRs. */ \
((int64_t *)dp)[0] = cc->fpr[0].l[0]; \
((int64_t *)dp)[1] = cc->fpr[1].l[0]; \
}
#define CCALL_HANDLE_STRUCTARG \
int rcl[2]; rcl[0] = rcl[1] = 0; \
if (!ccall_classify_struct(cts, d, rcl, 0)) { \
cc->nsp = nsp; cc->ngpr = ngpr; cc->nfpr = nfpr; \
if (ccall_struct_arg(cc, cts, d, rcl, o, narg)) goto err_nyi; \
nsp = cc->nsp; ngpr = cc->ngpr; nfpr = cc->nfpr; \
continue; \
} /* Pass all other structs by value on stack. */
#define CCALL_HANDLE_COMPLEXARG \
isfp = 2; /* Pass complex in FPRs or on stack. Needs postprocessing. */
#define CCALL_HANDLE_REGARG \
if (isfp) { /* Try to pass argument in FPRs. */ \
if (nfpr + n <= CCALL_NARG_FPR) { \
dp = &cc->fpr[nfpr]; \
nfpr += n; \
goto done; \
} \
} else { /* Try to pass argument in GPRs. */ \
/* Note that reordering is explicitly allowed in the x64 ABI. */ \
if (n <= 2 && ngpr + n <= maxgpr) { \
dp = &cc->gpr[ngpr]; \
ngpr += n; \
goto done; \
} \
}
#elif LJ_TARGET_ARM
/* -- ARM calling conventions --------------------------------------------- */
#if LJ_ABI_SOFTFP
#define CCALL_HANDLE_STRUCTRET \
/* Return structs of size <= 4 in a GPR. */ \
cc->retref = !(sz <= 4); \
if (cc->retref) cc->gpr[ngpr++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET \
cc->retref = 1; /* Return all complex values by reference. */ \
cc->gpr[ngpr++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET2 \
UNUSED(dp); /* Nothing to do. */
#define CCALL_HANDLE_STRUCTARG \
/* Pass all structs by value in registers and/or on the stack. */
#define CCALL_HANDLE_COMPLEXARG \
/* Pass complex by value in 2 or 4 GPRs. */
#define CCALL_HANDLE_REGARG_FP1
#define CCALL_HANDLE_REGARG_FP2
#else
#define CCALL_HANDLE_STRUCTRET \
cc->retref = !ccall_classify_struct(cts, ctr, ct); \
if (cc->retref) cc->gpr[ngpr++] = (GPRArg)dp;
#define CCALL_HANDLE_STRUCTRET2 \
if (ccall_classify_struct(cts, ctr, ct) > 1) sp = (uint8_t *)&cc->fpr[0]; \
memcpy(dp, sp, ctr->size);
#define CCALL_HANDLE_COMPLEXRET \
if (!(ct->info & CTF_VARARG)) cc->retref = 0; /* Return complex in FPRs. */
#define CCALL_HANDLE_COMPLEXRET2 \
if (!(ct->info & CTF_VARARG)) memcpy(dp, &cc->fpr[0], ctr->size);
#define CCALL_HANDLE_STRUCTARG \
isfp = (ccall_classify_struct(cts, d, ct) > 1);
/* Pass all structs by value in registers and/or on the stack. */
#define CCALL_HANDLE_COMPLEXARG \
isfp = 1; /* Pass complex by value in FPRs or on stack. */
#define CCALL_HANDLE_REGARG_FP1 \
if (isfp && !(ct->info & CTF_VARARG)) { \
if ((d->info & CTF_ALIGN) > CTALIGN_PTR) { \
if (nfpr + (n >> 1) <= CCALL_NARG_FPR) { \
dp = &cc->fpr[nfpr]; \
nfpr += (n >> 1); \
goto done; \
} \
} else { \
if (sz > 1 && fprodd != nfpr) fprodd = 0; \
if (fprodd) { \
if (2*nfpr+n <= 2*CCALL_NARG_FPR+1) { \
dp = (void *)&cc->fpr[fprodd-1].f[1]; \
nfpr += (n >> 1); \
if ((n & 1)) fprodd = 0; else fprodd = nfpr-1; \
goto done; \
} \
} else { \
if (2*nfpr+n <= 2*CCALL_NARG_FPR) { \
dp = (void *)&cc->fpr[nfpr]; \
nfpr += (n >> 1); \
if ((n & 1)) fprodd = ++nfpr; else fprodd = 0; \
goto done; \
} \
} \
} \
fprodd = 0; /* No reordering after the first FP value is on stack. */ \
} else {
#define CCALL_HANDLE_REGARG_FP2 }
#endif
#define CCALL_HANDLE_REGARG \
CCALL_HANDLE_REGARG_FP1 \
if ((d->info & CTF_ALIGN) > CTALIGN_PTR) { \
if (ngpr < maxgpr) \
ngpr = (ngpr + 1u) & ~1u; /* Align to regpair. */ \
} \
if (ngpr < maxgpr) { \
dp = &cc->gpr[ngpr]; \
if (ngpr + n > maxgpr) { \
nsp += ngpr + n - maxgpr; /* Assumes contiguous gpr/stack fields. */ \
if (nsp > CCALL_MAXSTACK) goto err_nyi; /* Too many arguments. */ \
ngpr = maxgpr; \
} else { \
ngpr += n; \
} \
goto done; \
} CCALL_HANDLE_REGARG_FP2
#define CCALL_HANDLE_RET \
if ((ct->info & CTF_VARARG)) sp = (uint8_t *)&cc->gpr[0];
#elif LJ_TARGET_PPC
/* -- PPC calling conventions --------------------------------------------- */
#define CCALL_HANDLE_STRUCTRET \
cc->retref = 1; /* Return all structs by reference. */ \
cc->gpr[ngpr++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET \
/* Complex values are returned in 2 or 4 GPRs. */ \
cc->retref = 0;
#define CCALL_HANDLE_COMPLEXRET2 \
memcpy(dp, sp, ctr->size); /* Copy complex from GPRs. */
#define CCALL_HANDLE_STRUCTARG \
rp = cdataptr(lj_cdata_new(cts, did, sz)); \
sz = CTSIZE_PTR; /* Pass all structs by reference. */
#define CCALL_HANDLE_COMPLEXARG \
/* Pass complex by value in 2 or 4 GPRs. */
#define CCALL_HANDLE_REGARG \
if (isfp) { /* Try to pass argument in FPRs. */ \
if (nfpr + 1 <= CCALL_NARG_FPR) { \
dp = &cc->fpr[nfpr]; \
nfpr += 1; \
d = ctype_get(cts, CTID_DOUBLE); /* FPRs always hold doubles. */ \
goto done; \
} \
} else { /* Try to pass argument in GPRs. */ \
if (n > 1) { \
lua_assert(n == 2 || n == 4); /* int64_t or complex (float). */ \
if (ctype_isinteger(d->info)) \
ngpr = (ngpr + 1u) & ~1u; /* Align int64_t to regpair. */ \
else if (ngpr + n > maxgpr) \
ngpr = maxgpr; /* Prevent reordering. */ \
} \
if (ngpr + n <= maxgpr) { \
dp = &cc->gpr[ngpr]; \
ngpr += n; \
goto done; \
} \
}
#define CCALL_HANDLE_RET \
if (ctype_isfp(ctr->info) && ctr->size == sizeof(float)) \
ctr = ctype_get(cts, CTID_DOUBLE); /* FPRs always hold doubles. */
#elif LJ_TARGET_PPCSPE
/* -- PPC/SPE calling conventions ----------------------------------------- */
#define CCALL_HANDLE_STRUCTRET \
cc->retref = 1; /* Return all structs by reference. */ \
cc->gpr[ngpr++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET \
/* Complex values are returned in 2 or 4 GPRs. */ \
cc->retref = 0;
#define CCALL_HANDLE_COMPLEXRET2 \
memcpy(dp, sp, ctr->size); /* Copy complex from GPRs. */
#define CCALL_HANDLE_STRUCTARG \
rp = cdataptr(lj_cdata_new(cts, did, sz)); \
sz = CTSIZE_PTR; /* Pass all structs by reference. */
#define CCALL_HANDLE_COMPLEXARG \
/* Pass complex by value in 2 or 4 GPRs. */
/* PPC/SPE has a softfp ABI. */
#define CCALL_HANDLE_REGARG \
if (n > 1) { /* Doesn't fit in a single GPR? */ \
lua_assert(n == 2 || n == 4); /* int64_t, double or complex (float). */ \
if (n == 2) \
ngpr = (ngpr + 1u) & ~1u; /* Only align 64 bit value to regpair. */ \
else if (ngpr + n > maxgpr) \
ngpr = maxgpr; /* Prevent reordering. */ \
} \
if (ngpr + n <= maxgpr) { \
dp = &cc->gpr[ngpr]; \
ngpr += n; \
goto done; \
}
#elif LJ_TARGET_MIPS
/* -- MIPS calling conventions -------------------------------------------- */
#define CCALL_HANDLE_STRUCTRET \
cc->retref = 1; /* Return all structs by reference. */ \
cc->gpr[ngpr++] = (GPRArg)dp;
#define CCALL_HANDLE_COMPLEXRET \
/* Complex values are returned in 1 or 2 FPRs. */ \
cc->retref = 0;
#define CCALL_HANDLE_COMPLEXRET2 \
if (ctr->size == 2*sizeof(float)) { /* Copy complex float from FPRs. */ \
((float *)dp)[0] = cc->fpr[0].f; \
((float *)dp)[1] = cc->fpr[1].f; \
} else { /* Copy complex double from FPRs. */ \
((double *)dp)[0] = cc->fpr[0].d; \
((double *)dp)[1] = cc->fpr[1].d; \
}
#define CCALL_HANDLE_STRUCTARG \
/* Pass all structs by value in registers and/or on the stack. */
#define CCALL_HANDLE_COMPLEXARG \
/* Pass complex by value in 2 or 4 GPRs. */
#define CCALL_HANDLE_REGARG \
if (isfp && nfpr < CCALL_NARG_FPR && !(ct->info & CTF_VARARG)) { \
/* Try to pass argument in FPRs. */ \
dp = n == 1 ? (void *)&cc->fpr[nfpr].f : (void *)&cc->fpr[nfpr].d; \
nfpr++; ngpr += n; \
goto done; \
} else { /* Try to pass argument in GPRs. */ \
nfpr = CCALL_NARG_FPR; \
if ((d->info & CTF_ALIGN) > CTALIGN_PTR) \
ngpr = (ngpr + 1u) & ~1u; /* Align to regpair. */ \
if (ngpr < maxgpr) { \
dp = &cc->gpr[ngpr]; \
if (ngpr + n > maxgpr) { \
nsp += ngpr + n - maxgpr; /* Assumes contiguous gpr/stack fields. */ \
if (nsp > CCALL_MAXSTACK) goto err_nyi; /* Too many arguments. */ \
ngpr = maxgpr; \
} else { \
ngpr += n; \
} \
goto done; \
} \
}
#define CCALL_HANDLE_RET \
if (ctype_isfp(ctr->info) && ctr->size == sizeof(float)) \
sp = (uint8_t *)&cc->fpr[0].f;
#else
#error "Missing calling convention definitions for this architecture"
#endif
#ifndef CCALL_HANDLE_STRUCTRET2
#define CCALL_HANDLE_STRUCTRET2 \
memcpy(dp, sp, ctr->size); /* Copy struct return value from GPRs. */
#endif
/* -- x64 struct classification ------------------------------------------- */
#if LJ_TARGET_X64 && !LJ_ABI_WIN
/* Register classes for x64 struct classification. */
#define CCALL_RCL_INT 1
#define CCALL_RCL_SSE 2
#define CCALL_RCL_MEM 4
/* NYI: classify vectors. */
static int ccall_classify_struct(CTState *cts, CType *ct, int *rcl, CTSize ofs);
/* Classify a C type. */
static void ccall_classify_ct(CTState *cts, CType *ct, int *rcl, CTSize ofs)
{
if (ctype_isarray(ct->info)) {
CType *cct = ctype_rawchild(cts, ct);
CTSize eofs, esz = cct->size, asz = ct->size;
for (eofs = 0; eofs < asz; eofs += esz)
ccall_classify_ct(cts, cct, rcl, ofs+eofs);
} else if (ctype_isstruct(ct->info)) {
ccall_classify_struct(cts, ct, rcl, ofs);
} else {
int cl = ctype_isfp(ct->info) ? CCALL_RCL_SSE : CCALL_RCL_INT;
lua_assert(ctype_hassize(ct->info));
if ((ofs & (ct->size-1))) cl = CCALL_RCL_MEM; /* Unaligned. */
rcl[(ofs >= 8)] |= cl;
}
}
/* Recursively classify a struct based on its fields. */
static int ccall_classify_struct(CTState *cts, CType *ct, int *rcl, CTSize ofs)
{
if (ct->size > 16) return CCALL_RCL_MEM; /* Too big, gets memory class. */
while (ct->sib) {
CTSize fofs;
ct = ctype_get(cts, ct->sib);
fofs = ofs+ct->size;
if (ctype_isfield(ct->info))
ccall_classify_ct(cts, ctype_rawchild(cts, ct), rcl, fofs);
else if (ctype_isbitfield(ct->info))
rcl[(fofs >= 8)] |= CCALL_RCL_INT; /* NYI: unaligned bitfields? */
else if (ctype_isxattrib(ct->info, CTA_SUBTYPE))
ccall_classify_struct(cts, ctype_rawchild(cts, ct), rcl, fofs);
}
return ((rcl[0]|rcl[1]) & CCALL_RCL_MEM); /* Memory class? */
}
/* Try to split up a small struct into registers. */
static int ccall_struct_reg(CCallState *cc, GPRArg *dp, int *rcl)
{
MSize ngpr = cc->ngpr, nfpr = cc->nfpr;
uint32_t i;
for (i = 0; i < 2; i++) {
lua_assert(!(rcl[i] & CCALL_RCL_MEM));
if ((rcl[i] & CCALL_RCL_INT)) { /* Integer class takes precedence. */
if (ngpr >= CCALL_NARG_GPR) return 1; /* Register overflow. */
cc->gpr[ngpr++] = dp[i];
} else if ((rcl[i] & CCALL_RCL_SSE)) {
if (nfpr >= CCALL_NARG_FPR) return 1; /* Register overflow. */
cc->fpr[nfpr++].l[0] = dp[i];
}
}
cc->ngpr = ngpr; cc->nfpr = nfpr;
return 0; /* Ok. */
}
/* Pass a small struct argument. */
static int ccall_struct_arg(CCallState *cc, CTState *cts, CType *d, int *rcl,
TValue *o, int narg)
{
GPRArg dp[2];
dp[0] = dp[1] = 0;
/* Convert to temp. struct. */
lj_cconv_ct_tv(cts, d, (uint8_t *)dp, o, CCF_ARG(narg));
if (ccall_struct_reg(cc, dp, rcl)) { /* Register overflow? Pass on stack. */
MSize nsp = cc->nsp, n = rcl[1] ? 2 : 1;
if (nsp + n > CCALL_MAXSTACK) return 1; /* Too many arguments. */
cc->nsp = nsp + n;
memcpy(&cc->stack[nsp], dp, n*CTSIZE_PTR);
}
return 0; /* Ok. */
}
/* Combine returned small struct. */
static void ccall_struct_ret(CCallState *cc, int *rcl, uint8_t *dp, CTSize sz)
{
GPRArg sp[2];
MSize ngpr = 0, nfpr = 0;
uint32_t i;
for (i = 0; i < 2; i++) {
if ((rcl[i] & CCALL_RCL_INT)) { /* Integer class takes precedence. */
sp[i] = cc->gpr[ngpr++];
} else if ((rcl[i] & CCALL_RCL_SSE)) {
sp[i] = cc->fpr[nfpr++].l[0];
}
}
memcpy(dp, sp, sz);
}
#endif
/* -- ARM hard-float ABI struct classification ---------------------------- */
#if LJ_TARGET_ARM && !LJ_ABI_SOFTFP
/* Classify a struct based on its fields. */
static unsigned int ccall_classify_struct(CTState *cts, CType *ct, CType *ctf)
{
CTSize sz = ct->size;
unsigned int r = 0, n = 0, isu = (ct->info & CTF_UNION);
if ((ctf->info & CTF_VARARG)) goto noth;
while (ct->sib) {
ct = ctype_get(cts, ct->sib);
if (ctype_isfield(ct->info)) {
CType *sct = ctype_rawchild(cts, ct);
if (ctype_isfp(sct->info)) {
r |= sct->size;
if (!isu) n++; else if (n == 0) n = 1;
} else if (ctype_iscomplex(sct->info)) {
r |= (sct->size >> 1);
if (!isu) n += 2; else if (n < 2) n = 2;
} else {
goto noth;
}
} else if (ctype_isbitfield(ct->info)) {
goto noth;
} else if (ctype_isxattrib(ct->info, CTA_SUBTYPE)) {
CType *sct = ctype_rawchild(cts, ct);
if (sct->size > 0) {
unsigned int s = ccall_classify_struct(cts, sct, ctf);
if (s <= 1) goto noth;
r |= (s & 255);
if (!isu) n += (s >> 8); else if (n < (s >>8)) n = (s >> 8);
}
}
}
if ((r == 4 || r == 8) && n <= 4)
return r + (n << 8);
noth: /* Not a homogeneous float/double aggregate. */
return (sz <= 4); /* Return structs of size <= 4 in a GPR. */
}
#endif
/* -- Common C call handling ---------------------------------------------- */
/* Infer the destination CTypeID for a vararg argument. */
CTypeID lj_ccall_ctid_vararg(CTState *cts, cTValue *o)
{
if (tvisnumber(o)) {
return CTID_DOUBLE;
} else if (tviscdata(o)) {
CTypeID id = cdataV(o)->ctypeid;
CType *s = ctype_get(cts, id);
if (ctype_isrefarray(s->info)) {
return lj_ctype_intern(cts,
CTINFO(CT_PTR, CTALIGN_PTR|ctype_cid(s->info)), CTSIZE_PTR);
} else if (ctype_isstruct(s->info) || ctype_isfunc(s->info)) {
/* NYI: how to pass a struct by value in a vararg argument? */
return lj_ctype_intern(cts, CTINFO(CT_PTR, CTALIGN_PTR|id), CTSIZE_PTR);
} else if (ctype_isfp(s->info) && s->size == sizeof(float)) {
return CTID_DOUBLE;
} else {
return id;
}
} else if (tvisstr(o)) {
return CTID_P_CCHAR;
} else if (tvisbool(o)) {
return CTID_BOOL;
} else {
return CTID_P_VOID;
}
}
/* Setup arguments for C call. */
static int ccall_set_args(lua_State *L, CTState *cts, CType *ct,
CCallState *cc)
{
int gcsteps = 0;
TValue *o, *top = L->top;
CTypeID fid;
CType *ctr;
MSize maxgpr, ngpr = 0, nsp = 0, narg;
#if CCALL_NARG_FPR
MSize nfpr = 0;
#if LJ_TARGET_ARM
MSize fprodd = 0;
#endif
#endif
/* Clear unused regs to get some determinism in case of misdeclaration. */
memset(cc->gpr, 0, sizeof(cc->gpr));
#if CCALL_NUM_FPR
memset(cc->fpr, 0, sizeof(cc->fpr));
#endif
#if LJ_TARGET_X86
/* x86 has several different calling conventions. */
cc->resx87 = 0;
switch (ctype_cconv(ct->info)) {
case CTCC_FASTCALL: maxgpr = 2; break;
case CTCC_THISCALL: maxgpr = 1; break;
default: maxgpr = 0; break;
}
#else
maxgpr = CCALL_NARG_GPR;
#endif
/* Perform required setup for some result types. */
ctr = ctype_rawchild(cts, ct);
if (ctype_isvector(ctr->info)) {
if (!(CCALL_VECTOR_REG && (ctr->size == 8 || ctr->size == 16)))
goto err_nyi;
} else if (ctype_iscomplex(ctr->info) || ctype_isstruct(ctr->info)) {
/* Preallocate cdata object and anchor it after arguments. */
CTSize sz = ctr->size;
GCcdata *cd = lj_cdata_new(cts, ctype_cid(ct->info), sz);
void *dp = cdataptr(cd);
setcdataV(L, L->top++, cd);
if (ctype_isstruct(ctr->info)) {
CCALL_HANDLE_STRUCTRET
} else {
CCALL_HANDLE_COMPLEXRET
}
#if LJ_TARGET_X86
} else if (ctype_isfp(ctr->info)) {
cc->resx87 = ctr->size == sizeof(float) ? 1 : 2;
#endif
}
/* Skip initial attributes. */
fid = ct->sib;
while (fid) {
CType *ctf = ctype_get(cts, fid);
if (!ctype_isattrib(ctf->info)) break;
fid = ctf->sib;
}
/* Walk through all passed arguments. */
for (o = L->base+1, narg = 1; o < top; o++, narg++) {
CTypeID did;
CType *d;
CTSize sz;
MSize n, isfp = 0, isva = 0;
void *dp, *rp = NULL;
if (fid) { /* Get argument type from field. */
CType *ctf = ctype_get(cts, fid);
fid = ctf->sib;
lua_assert(ctype_isfield(ctf->info));
did = ctype_cid(ctf->info);
} else {
if (!(ct->info & CTF_VARARG))
lj_err_caller(L, LJ_ERR_FFI_NUMARG); /* Too many arguments. */
did = lj_ccall_ctid_vararg(cts, o); /* Infer vararg type. */
isva = 1;
}
d = ctype_raw(cts, did);
sz = d->size;
/* Find out how (by value/ref) and where (GPR/FPR) to pass an argument. */
if (ctype_isnum(d->info)) {
if (sz > 8) goto err_nyi;
if ((d->info & CTF_FP))
isfp = 1;
} else if (ctype_isvector(d->info)) {
if (CCALL_VECTOR_REG && (sz == 8 || sz == 16))
isfp = 1;
else
goto err_nyi;
} else if (ctype_isstruct(d->info)) {
CCALL_HANDLE_STRUCTARG
} else if (ctype_iscomplex(d->info)) {
CCALL_HANDLE_COMPLEXARG
} else {
sz = CTSIZE_PTR;
}
sz = (sz + CTSIZE_PTR-1) & ~(CTSIZE_PTR-1);
n = sz / CTSIZE_PTR; /* Number of GPRs or stack slots needed. */
CCALL_HANDLE_REGARG /* Handle register arguments. */
/* Otherwise pass argument on stack. */
if (CCALL_ALIGN_STACKARG && !rp && (d->info & CTF_ALIGN) > CTALIGN_PTR) {
MSize align = (1u << ctype_align(d->info-CTALIGN_PTR)) -1;
nsp = (nsp + align) & ~align; /* Align argument on stack. */
}
if (nsp + n > CCALL_MAXSTACK) { /* Too many arguments. */
err_nyi:
lj_err_caller(L, LJ_ERR_FFI_NYICALL);
}
dp = &cc->stack[nsp];
nsp += n;
isva = 0;
done:
if (rp) { /* Pass by reference. */
gcsteps++;
*(void **)dp = rp;
dp = rp;
}
lj_cconv_ct_tv(cts, d, (uint8_t *)dp, o, CCF_ARG(narg));
/* Extend passed integers to 32 bits at least. */
if (ctype_isinteger_or_bool(d->info) && d->size < 4) {
if (d->info & CTF_UNSIGNED)
*(uint32_t *)dp = d->size == 1 ? (uint32_t)*(uint8_t *)dp :
(uint32_t)*(uint16_t *)dp;
else
*(int32_t *)dp = d->size == 1 ? (int32_t)*(int8_t *)dp :
(int32_t)*(int16_t *)dp;
}
#if LJ_TARGET_X64 && LJ_ABI_WIN
if (isva) { /* Windows/x64 mirrors varargs in both register sets. */
if (nfpr == ngpr)
cc->gpr[ngpr-1] = cc->fpr[ngpr-1].l[0];
else
cc->fpr[ngpr-1].l[0] = cc->gpr[ngpr-1];
}
#else
UNUSED(isva);
#endif
#if LJ_TARGET_X64 && !LJ_ABI_WIN
if (isfp == 2 && n == 2 && (uint8_t *)dp == (uint8_t *)&cc->fpr[nfpr-2]) {
cc->fpr[nfpr-1].d[0] = cc->fpr[nfpr-2].d[1]; /* Split complex double. */
cc->fpr[nfpr-2].d[1] = 0;
}
#else
UNUSED(isfp);
#endif
}
if (fid) lj_err_caller(L, LJ_ERR_FFI_NUMARG); /* Too few arguments. */
#if LJ_TARGET_X64 || LJ_TARGET_PPC
cc->nfpr = nfpr; /* Required for vararg functions. */
#endif
cc->nsp = nsp;
cc->spadj = (CCALL_SPS_FREE + CCALL_SPS_EXTRA)*CTSIZE_PTR;
if (nsp > CCALL_SPS_FREE)
cc->spadj += (((nsp-CCALL_SPS_FREE)*CTSIZE_PTR + 15u) & ~15u);
return gcsteps;
}
/* Get results from C call. */
static int ccall_get_results(lua_State *L, CTState *cts, CType *ct,
CCallState *cc, int *ret)
{
CType *ctr = ctype_rawchild(cts, ct);
uint8_t *sp = (uint8_t *)&cc->gpr[0];
if (ctype_isvoid(ctr->info)) {
*ret = 0; /* Zero results. */
return 0; /* No additional GC step. */
}
*ret = 1; /* One result. */
if (ctype_isstruct(ctr->info)) {
/* Return cdata object which is already on top of stack. */
if (!cc->retref) {
void *dp = cdataptr(cdataV(L->top-1)); /* Use preallocated object. */
CCALL_HANDLE_STRUCTRET2
}
return 1; /* One GC step. */
}
if (ctype_iscomplex(ctr->info)) {
/* Return cdata object which is already on top of stack. */
void *dp = cdataptr(cdataV(L->top-1)); /* Use preallocated object. */
CCALL_HANDLE_COMPLEXRET2
return 1; /* One GC step. */
}
if (LJ_BE && ctype_isinteger_or_bool(ctr->info) && ctr->size < CTSIZE_PTR)
sp += (CTSIZE_PTR - ctr->size);
#if CCALL_NUM_FPR
if (ctype_isfp(ctr->info) || ctype_isvector(ctr->info))
sp = (uint8_t *)&cc->fpr[0];
#endif
#ifdef CCALL_HANDLE_RET
CCALL_HANDLE_RET
#endif
/* No reference types end up here, so there's no need for the CTypeID. */
lua_assert(!(ctype_isrefarray(ctr->info) || ctype_isstruct(ctr->info)));
return lj_cconv_tv_ct(cts, ctr, 0, L->top-1, sp);
}
/* Call C function. */
int lj_ccall_func(lua_State *L, GCcdata *cd)
{
CTState *cts = ctype_cts(L);
CType *ct = ctype_raw(cts, cd->ctypeid);
CTSize sz = CTSIZE_PTR;
if (ctype_isptr(ct->info)) {
sz = ct->size;
ct = ctype_rawchild(cts, ct);
}
if (ctype_isfunc(ct->info)) {
CCallState cc;
int gcsteps, ret;
cc.func = (void (*)(void))cdata_getptr(cdataptr(cd), sz);
gcsteps = ccall_set_args(L, cts, ct, &cc);
ct = (CType *)((intptr_t)ct-(intptr_t)cts->tab);
cts->cb.slot = ~0u;
lj_vm_ffi_call(&cc);
if (cts->cb.slot != ~0u) { /* Blacklist function that called a callback. */
TValue tv;
setlightudV(&tv, (void *)cc.func);
setboolV(lj_tab_set(L, cts->miscmap, &tv), 1);
}
ct = (CType *)((intptr_t)ct+(intptr_t)cts->tab); /* May be reallocated. */
gcsteps += ccall_get_results(L, cts, ct, &cc, &ret);
#if LJ_TARGET_X86 && LJ_ABI_WIN
/* Automatically detect __stdcall and fix up C function declaration. */
if (cc.spadj && ctype_cconv(ct->info) == CTCC_CDECL) {
CTF_INSERT(ct->info, CCONV, CTCC_STDCALL);
lj_trace_abort(G(L));
}
#endif
while (gcsteps-- > 0)
lj_gc_check(L);
return ret;
}
return -1; /* Not a function. */
}
#endif
|
'use strict';
var ObjectUtil, self;
module.exports = ObjectUtil = function () {
self = this;
};
/**
* @method promiseWhile
* @reference http://blog.victorquinn.com/javascript-promise-while-loop
*/
ObjectUtil.prototype.promiseWhile = function () {
};
|
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Linq;
using Azure.Analytics.Synapse.Spark;
using Azure.Analytics.Synapse.Spark.Models;
using Azure.Analytics.Synapse.Tests;
using Azure.Core.TestFramework;
using NUnit.Framework;
namespace Azure.Analytics.Synapse.Spark.Tests
{
/// <summary>
/// The suite of tests for the <see cref="SparkBatchClient"/> class.
/// </summary>
/// <remarks>
/// These tests have a dependency on live Azure services and may incur costs for the associated
/// Azure subscription.
/// </remarks>
public class SparkBatchClientLiveTests : RecordedTestBase<SynapseTestEnvironment>
{
public SparkBatchClientLiveTests(bool isAsync) : base(isAsync)
{
}
private SparkBatchClient CreateClient()
{
return InstrumentClient(new SparkBatchClient(
new Uri(TestEnvironment.EndpointUrl),
TestEnvironment.SparkPoolName,
TestEnvironment.Credential,
options: InstrumentClientOptions(new SparkClientOptions())
));
}
[RecordedTest]
public async Task TestSparkBatchJobCompletesWhenJobStarts()
{
SparkBatchClient client = CreateClient();
// Submit the Spark job
SparkBatchJobOptions createParams = SparkTestUtilities.CreateSparkJobRequestParameters(Recording, TestEnvironment);
SparkBatchOperation createOperation = await client.StartCreateSparkBatchJobAsync(createParams);
SparkBatchJob jobCreateResponse = await createOperation.WaitForCompletionAsync();
// Verify the Spark batch job submission starts successfully
Assert.True(LivyStates.Starting == jobCreateResponse.State || LivyStates.Running == jobCreateResponse.State || LivyStates.Success == jobCreateResponse.State,
string.Format(
"Job: {0} did not return success. Current job state: {1}. Error (if any): {2}",
jobCreateResponse.Id,
jobCreateResponse.State,
string.Join(", ", jobCreateResponse.Errors ?? new List<SparkServiceError>())
)
);
// Get the list of Spark batch jobs and check that the submitted job exists
List<SparkBatchJob> listJobResponse = await SparkTestUtilities.ListSparkBatchJobsAsync(client);
Assert.NotNull(listJobResponse);
Assert.IsTrue(listJobResponse.Any(job => job.Id == jobCreateResponse.Id));
}
[RecordedTest]
[Ignore("https://github.com/Azure/azure-sdk-for-net/issues/24513")]
public async Task TestSparkBatchJobCompletesWhenJobComplete()
{
SparkBatchClient client = CreateClient();
SparkBatchJobOptions createParams = SparkTestUtilities.CreateSparkJobRequestParameters(Recording, TestEnvironment);
// Set completion type to wait for completion of job execution.
createParams.CreationCompletionType = SparkBatchOperationCompletionType.JobExecution;
// Submit the Spark job
SparkBatchOperation createOperation = await client.StartCreateSparkBatchJobAsync(createParams);
SparkBatchJob jobCreateResponse = await createOperation.WaitForCompletionAsync();
// Verify the Spark batch job exuecution completes successfully
Assert.True(LivyStates.Success == jobCreateResponse.State && jobCreateResponse.Result == SparkBatchJobResultType.Succeeded,
string.Format(
"Job: {0} did not return success. Current job state: {1}. Actual result: {2}. Error (if any): {3}",
jobCreateResponse.Id,
jobCreateResponse.State,
jobCreateResponse.Result,
string.Join(", ", jobCreateResponse.Errors ?? new List<SparkServiceError>())
)
);
// Get the list of Spark batch jobs and check that the submitted job exists
List<SparkBatchJob> listJobResponse = await SparkTestUtilities.ListSparkBatchJobsAsync(client);
Assert.NotNull(listJobResponse);
Assert.IsTrue(listJobResponse.Any(job => job.Id == jobCreateResponse.Id));
}
[RecordedTest]
public async Task TestSparkBatchOperationPublicConstructor()
{
SparkBatchClient client = CreateClient();
// Submit the Spark job
SparkBatchJobOptions createParams = SparkTestUtilities.CreateSparkJobRequestParameters(Recording, TestEnvironment);
SparkBatchOperation createOperation = await client.StartCreateSparkBatchJobAsync(createParams);
// Create another SparkBatchOperation
SparkBatchOperation anotherOperation =
InstrumentOperation(new SparkBatchOperation(int.Parse(createOperation.Id), client, createOperation.CompletionType));
SparkBatchJob jobCreateResponse = await anotherOperation.WaitForCompletionAsync();
// Verify the Spark batch job submission starts successfully
Assert.True(LivyStates.Starting == jobCreateResponse.State || LivyStates.Running == jobCreateResponse.State || LivyStates.Success == jobCreateResponse.State,
string.Format(
"Job: {0} did not return success. Current job state: {1}. Error (if any): {2}",
jobCreateResponse.Id,
jobCreateResponse.State,
string.Join(", ", jobCreateResponse.Errors ?? new List<SparkServiceError>())
)
);
// Get the list of Spark batch jobs and check that the submitted job exists
List<SparkBatchJob> listJobResponse = await SparkTestUtilities.ListSparkBatchJobsAsync(client);
Assert.NotNull(listJobResponse);
Assert.IsTrue(listJobResponse.Any(job => job.Id == jobCreateResponse.Id));
}
[RecordedTest]
public async Task TestGetSparkBatchJob()
{
SparkBatchClient client = CreateClient();
SparkBatchJobCollection sparkJobs = (await client.GetSparkBatchJobsAsync()).Value;
foreach (SparkBatchJob expectedSparkJob in sparkJobs.Sessions)
{
try
{
SparkBatchJob actualSparkJob = await client.GetSparkBatchJobAsync(expectedSparkJob.Id);
ValidateSparkBatchJob(expectedSparkJob, actualSparkJob);
}
catch (Azure.RequestFailedException)
{
}
}
}
internal void ValidateSparkBatchJob(SparkBatchJob expectedSparkJob, SparkBatchJob actualSparkJob)
{
Assert.AreEqual(expectedSparkJob.Name, actualSparkJob.Name);
Assert.AreEqual(expectedSparkJob.Id, actualSparkJob.Id);
Assert.AreEqual(expectedSparkJob.AppId, actualSparkJob.AppId);
Assert.AreEqual(expectedSparkJob.SubmitterId, actualSparkJob.SubmitterId);
Assert.AreEqual(expectedSparkJob.ArtifactId, actualSparkJob.ArtifactId);
}
}
}
|
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Text.rc
//
#define IDS_STRING1 1
#define IDS_STRING2 2
#define IDS_STRING3 3
#define IDS_STRING4 4
#define IDS_STRING5 5
#define IDS_STRING6 6
#define IDS_STRING7 7
#define IDS_STRING8 8
#define IDS_STRING9 9
#define IDS_STRING10 10
#define IDS_STRING11 11
#define IDS_STRING12 12
#define IDS_STRING13 13
#define IDS_STRING14 14
#define IDS_STRING15 15
#define IDS_STRING16 16
#define IDS_STRING17 17
#define IDS_STRING18 18
#define IDS_STRING19 19
#define IDS_STRING20 20
#define IDS_STRING21 21
#define IDS_STRING22 22
#define IDS_STRING23 23
#define IDS_STRING24 24
#define IDS_STRING25 25
#define IDS_STRING26 26
#define IDS_STRING27 27
#define IDS_STRING28 28
#define IDS_STRING29 29
#define IDS_STRING30 30
#define IDS_STRING31 31
#define IDS_STRING32 32
#define IDS_STRING33 33
#define IDS_STRING34 34
#define IDS_STRING35 35
#define IDS_STRING36 36
#define IDS_STRING37 37
#define IDS_STRING38 38
#define IDS_STRING39 39
#define IDS_STRING40 40
#define IDS_STRING41 41
#define IDS_STRING42 42
#define IDS_STRING43 43
#define IDS_STRING44 44
// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1000
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
|
//
// OCLogService.h
// OCLogService
//
// Created by Dmitry Fantastik on 11/16/13.
// Copyright (c) 2013 fantastik. All rights reserved.
//
#import <OCLogService/OCLogServiceConfigurator.h>
#import <OCLogService/OCLogObject.h>
#import <OCLogService/OCLogNestedObject.h>
#import <OCLogService/OCApiBatchObject.h>
#import <OCLogService/OCLogObjectFilePrinter.h>
#import <OCLogService/OCLogObjectConsolePrinter.h>
#import <OCLogService/OCLogger.h>
#import <OCLogService/OCDefines.h>
|
html { overflow-y: scroll; }
@font-face {
font-family: typekeys;
src: url("Type Keys Filled.ttf")
}
@font-face {
font-family: street;
src: url(Streetvertising.ttf);
}
body { margin: 0; }
.page {
font-family: "georgia";
letter-spacing: .2px;
background-color: #FFFFFF;
color: #000000;
margin-top: 100px;
margin-bottom: 100px;
margin-left: 26%;
margin-right: 26%;
font-size: 1.1em;
line-height: 1.3em;
word-wrap: break-word;
}
table.topbar {
background-color: #000000;
border-bottom: 1px solid black;
border-collapse: collapse;
padding: 20px;
width: 100%;
line-height: 30px;
}
table.topbar td {
width: 50%;
padding-left: 20px;
padding-right: 20px;
padding-top: 5px;
padding-bottom: 5px;
vertical-align: top;
text-align: center;
margin: 0 0 0 0;
}
table.admin td {
vertical-align: top;
padding-right: 50px;
}
table.delivery {
padding: 0;
margin: 0;
}
table.delivery td {
padding: 0 15px 0 0;
margin: 0;
}
.button {
width: 160px;
background-color: #FFFFFF;
font-family: "georgia";
font-size: 1.1em;
font-variant: small-caps;
border: 1;
border-color: #FFFFFF;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
cursor: pointer
}
button:focus {outline:0;}
.button:active {
box-shadow: 0 5px #000000;
transform: translateY(1px);
}
.inbutton {
vertical-align: middle;
width: 160px;
height: 45px;
background-color: #000000;
color: #FFFFFF;
font-family: "georgia";
font-size: .9em;
font-variant: small-caps;
border: 1;
border-color: #000000;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
cursor: pointer
}
.inbutton:active {
box-shadow: 0 5px #FFFFFF;
transform: translateY(1px);
}
.upbutton {
vertical-align: middle;
width: 100px;
height: 45px;
background-color: #000000;
color: #FFFFFF;
font-family: "georgia";
font-size: 1em;
font-variant: small-caps;
border: 1;
border-color: #000000;
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
cursor: pointer
}
.upbutton:active {
box-shadow: 0 5px #FFFFFF;
transform: translateY(1px);
}
.b { font-weight: bold; }
.u { text-decoration: underline; }
.i { font-style: italic; }
.hl { background-color: #E8E8E8; }
.sig { font-family: "typekeys"; font-size: 2.5em; }
.mtitle a { color: black !important; text-decoration: none; }
.mtitle { font-family: "typekeys"; font-size: 4.5em; text-align: center; margin: 0 0 35px 0; }
.mtitle a { color: black !important; text-decoration: none; }
.stitle { font-size: 1.25em; text-align: center; margin: 0 0 1.75em 0;}
.lgap { line-height: .75em }
.sgap { line-height: 1px; }
.big { text-align: center; font-size: 1.2em; }
.question { font-style: italic; margin:0 0 .5em 0; }
.txtinput { margin: .1em 0 .5em 0; font-size: 1.1em; }
.medium { width: 300px; }
.long { width: 500px; }
.short { width: 50px; }
.less { margin: 0 0 .5em 0; }
.txt { margin:0 0 1em 0; text-align: justify; }
.txt ol { margin:.25em 0 .5em 0; }
.txt li { margin:.25em 0 .5em 0; }
.font { font-family: "georgia"; font-variant: small-caps; }
.spaced { text-align: justify; margin: 0 0 1.3em 0; }
.lspaced { text-align: justify; margin: 0 0 .2em 0; }
.mspaced { text-align: justify; margin: 0 0 .6em 0; }
.mouse { cursor: default; }
.red { color: red; }
.green { color: green; }
.blue { color: blue; }
.credits { text-align: center; }
.keys { font-family: typekeys; font-size: 1.1em; }
.footer { font-size: .8em; text-align: right; padding: 0 0 5px 0; margin: 0; }
.shy { display: none; }
.wl { white-space: pre-wrap; margin-top: -1.25em; line-height: 1.75em; }
.load { height: 45px; vertical-align: middle; display: none; }
.ot { font-family: 'street'; }
.beta{
padding: 10px;
background-color: black;
color: #FFFFFF;
margin: 0 0 1em 0;
text-align: center;
}
.beta a { color: #00CED1 !important; }
a:visited { color: #0000FF; text-decoration: none; }
a:link { color: #0000FF; text-decoration: none; }
a:hover { color: #0000FF; text-decoration: none; }
a:active { color: #FF0000; text-decoration: none; }
#container {
min-height:100%;
position:relative;
}
#body {
padding-bottom:100px; /* Height of the footer */
}
#footer {
position:absolute;
bottom:0;
right: 125px;
width: 100%;
vertical-align: top;
text-align: right;
height:100px; /* Height of the footer */
}
|
var assert = require('chai').assert;
var Pad = require('../lib/pad');
describe('Pad', function() {
it('should be an object', function() {
var pad = new Pad();
assert.isObject(pad);
});
it('should have a x coordinate of 310 by default', function() {
var terminator = new Pad();
assert.equal(terminator.x, 310);
});
it('should have a y coordinate of 470 by default', function() {
var jon = new Pad();
assert.equal(jon.y, 470);
});
it('should have a r value of 23 by default', function() {
var terminator = new Pad();
assert.equal(terminator.r, 23);
});
it('should have a sAngle value of 0 by default', function() {
var jon = new Pad();
assert.equal(jon.sAngle, 0);
});
it('should have an eAngle value of 2*Math.PI by default', function() {
var jon = new Pad();
assert.equal(jon.eAngle, 2*Math.PI);
});
it('should have a draw function', function(){
var jon = new Pad();
assert.isFunction(jon.draw);
});
});
|
<?php
class Db{
//member variables
private static $_con = null,
$_driver = "sqlsrv",
$_host = "localhost",
$_user = "arsan",
$_pass = "a1254n",
$_db = "APDPLN",
$_error = false;
//established connection to the database
private function setConnection(){
try{
self::$_con = new PDO(self::$_driver.":Server=".self::$_host.";database=".self::$_db,self::$_user,self::$_pass);
//self::$_con = new PDO("mysql:host=".self::$_host.";dbname=".self::$_db,self::$_user,self::$_pass);
// set the PDO error mode to exception
self::$_con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}catch (PDOException $e){
die("PDOException {$e}");
}
}
/*
* Return the connection variable if connection is established
* else
* make a new connection then return the connection variable
* */
public static function getConnection(){
//established connection
if(self::$_con == null){
self::setConnection();
}
return self::$_con;
}
//unset connection
public static function unsetConnection(){
self::$_con = null;
}
//set error
private function setError($value = true){
self::$_error = $value;
}
//get error
public static function getError(){
return self::$_error;
}
//query method with bind functionality
private static function query($sql,$bindPrams = array()){
//get connection
$con = self::getConnection();
//set error to false
self::setError(false); //no error
//check sql is not empty
if(empty($sql))
die("Invalid Sql Query");
$stmt = $con->prepare($sql);
//bind params
$i = 1;
foreach($bindPrams as $params){
$stmt->bindValue($i,$params);
$i++;
}
//set the error
if($stmt->execute() == true)
self::setError(false);
else
self::setError(true);
return $stmt; //return PDO statement
}
//insert method
public static function insert($tableName,$value = array()){
//make KEYS && Values to bind
$valueKey = array_keys($value); //get keys of $value
$keyString = "";
$bindString = "";
$i = 1;
foreach($valueKey as $key){
$keyString .= "`".$key."`";
$bindString .= "?";
//if we are not on the last element
if($i < count($valueKey)){
$keyString .= ", ";
$bindString .= ",";
}
$i++;
}
//execulte the query
self::query("INSERT INTO `{$tableName}` ({$keyString}) VALUES({$bindString})",array_values($value));
return self::getError(); //return the error bolean value set the query method
}
//update method
public static function update($tableName,$update = array(),$where = array()){
$updateKeys = array_keys($update);
$updateString = "";
$i = 1;
foreach($updateKeys as $updateKey){
$updateString .= $updateKey." = ?";
//check if we are not on the last element of the array
if($i < count($updateKeys)){
$updateString .= " , ";
}
$i++;
}
//generate where clause
if(count($where) < 3){
die("Invalid Where clause");
}
$whereString = "";
foreach($where as $whr) {
$whereString .= $whr;
}
self::query("UPDATE `{$tableName}` SET {$updateString} WHERE {$whereString}",array_values($update));
return self::getError();
}
//delete method
public static function delete($tableName,$whereArray = array()){
//check table name
if(empty($tableName))
die("Empty Table name");
if(count($whereArray) < 3)
die("Invalid where clause");
//generate where clause
$whereString = "";
foreach($whereArray as $where){
$whereString .= $where;
}
self::query("DELETE FROM {$tableName} WHERE {$whereString}",array());
return self::getError();
}
//fetch method
public static function fetch($tableName,$whereArray = array(),$operator){
if(empty($tableName))
die("Enter table name");
if( ($whereArray=="") && ($operator=="") ) {
$stmt = self::query("SELECT * FROM {$tableName}");
}
else {
//check operator is valid
$validOperator = array("=", "!=", ">", "<", ">=", "<=");
if (!in_array($operator, $validOperator))
die("Invalid Operator");
if (count($whereArray) != 1)
die("Invalid Where Array");
//generate where string
$whereString = "";
foreach (array_keys($whereArray) as $where) {
$whereString .= $where;
}
$whereString .= $operator . "?";
echo $whereString;
exit;
//execute the query
$stmt = self::query("SELECT * FROM {$tableName} WHERE {$whereString}", array_values($whereArray));
}
if(self::getError() == false){ //no error
return $stmt->fetch(PDO::FETCH_NUM);
}else{
return self::getError(); //return true (means their is a error)
}
}
} |
---
layout: page
title: Tucker Family Reunion
date: 2016-05-24
author: Larry Alvarez
tags: weekly links, java
status: published
summary: Nulla posuere urna vitae erat porta suscipit. Vivamus ac lorem.
banner: images/banner/leisure-05.jpg
booking:
startDate: 10/24/2018
endDate: 10/29/2018
ctyhocn: MOBDTHX
groupCode: TFR
published: true
---
Integer sed feugiat ex, at pretium ipsum. Duis enim diam, feugiat eu ante quis, fermentum ultricies nulla. Donec posuere ornare ultrices. Aenean pretium eros sed sodales commodo. Pellentesque malesuada nisl mi. Duis iaculis lobortis gravida. Sed bibendum nisl vitae dui malesuada dictum. Phasellus pretium purus purus, eget efficitur orci molestie nec.
1 Curabitur vitae tortor sed mi cursus vulputate
1 Proin tincidunt dui porttitor, tempus magna id, maximus lorem.
In hac habitasse platea dictumst. Morbi dolor libero, fermentum in eleifend eu, consequat vel elit. Aliquam viverra ultrices venenatis. Pellentesque nunc libero, posuere a pharetra ut, commodo a quam. Morbi ante massa, efficitur nec ante in, accumsan tempor felis. Pellentesque placerat tincidunt eros, et tristique lacus efficitur nec. Integer interdum ante eu elementum scelerisque. Mauris id ligula eget neque tristique tristique. Fusce maximus porta vestibulum. Cras nec lorem ac libero posuere scelerisque. In quis nunc pulvinar, interdum est id, iaculis justo. Nunc quis elit in metus hendrerit dignissim.
|
using PoppertechCalculator.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace PoppertechCalculator.Processors
{
public class ForecastGraphCalculations : IForecastGraphCalculations
{
private const decimal _leftTail = 10;
private const decimal _rightTail = 10;
private static decimal _normal = 100 - _leftTail - _rightTail;
private static decimal _leftNormal, _rightNormal;
private static decimal _xMin, _xWorst, _xLikely, _xBest, _xMax;
private static decimal _hWorst, _hLikely, _hBest;
private static decimal _m1, _m2, _m3, _m4;
private static decimal _b1, _b2, _b3, _b4;
public IEnumerable<SimulationContext> GetSimulationContext(Forecast forecast)
{
_xMin = forecast.Minimum;
_xWorst = forecast.Worst;
_xLikely = forecast.Likely;
_xBest = forecast.Best;
_xMax = forecast.Maximum;
_hWorst = CalculateWorstCaseHeight();
_hBest = CalculateBestCaseHeight();
_hLikely = CalculateMostLikelyHeight();
_leftNormal = CalculateLeftNormal();
_rightNormal = CalculateRightNormal();
_m1 = CalculateSlope1();
_m2 = CalculateSlope2();
_m3 = CalculateSlope3();
_m4 = CalculateSlope4();
_b1 = CalculateIntercept1();
_b2 = CalculateIntercept2();
_b3 = CalculateIntercept3();
_b4 = CalculateIntercept4();
var context1 = new SimulationContext() { XLower = _xMin, AreaLower = 0, Intercept = _b1, Slope = _m1 };
var context2 = new SimulationContext() { XLower = _xWorst, AreaLower = _leftTail, Intercept = _b2, Slope = _m2 };
var context3 = new SimulationContext() { XLower = _xLikely, AreaLower = _leftTail + _leftNormal, Intercept = _b3, Slope = _m3 };
var context4 = new SimulationContext() { XLower = _xBest, AreaLower = _leftTail + _normal, Intercept = _b4, Slope = _m4 };
var context5 = new SimulationContext() { XLower = _xMax };
return new[] { context1, context2, context3, context4, context5 };
}
private static decimal CalculateWorstCaseHeight()
{
return 2 * _leftTail / (_xWorst - _xMin);
}
private static decimal CalculateBestCaseHeight()
{
return 2 * _rightTail / (_xMax - _xBest);
}
private static decimal CalculateMostLikelyHeight()
{
return (2 * _normal - _hWorst * (_xLikely - _xWorst) - _hBest * (_xBest - _xLikely)) / (_xBest - _xWorst);
}
private static decimal CalculateLeftNormal()
{
return (_hWorst + _hLikely) * (_xLikely - _xWorst) / 2;
}
private static decimal CalculateRightNormal()
{
return (_hLikely + _hBest) * (_xBest - _xLikely) / 2;
}
private static decimal CalculateSlope1()
{
return _hWorst / (_xWorst - _xMin);
}
private static decimal CalculateSlope2()
{
return (_hLikely - _hWorst) / (_xLikely - _xWorst);
}
private static decimal CalculateSlope3()
{
return (_hBest - _hLikely) / (_xBest - _xLikely);
}
private static decimal CalculateSlope4()
{
return -_hBest / (_xMax - _xBest);
}
private static decimal CalculateIntercept1()
{
return _hWorst - (_m1 * _xWorst);
}
private static decimal CalculateIntercept2()
{
return _hLikely - (_m2 * _xLikely);
}
private static decimal CalculateIntercept3()
{
return _hLikely - (_m3 * _xLikely);
}
private static decimal CalculateIntercept4()
{
return _hBest - (_m4 * _xBest);
}
}
} |
module Conratewebshop
class ProductsController < ApplicationController
helper Btemplater::ApplicationHelper
helper Btemplater::IndexHelper
helper Btemplater::ShowHelper
helper Btemplater::NewHelper
helper Btemplater::EditHelper
include Btemplater::Tools
def show
@obj = Conratewebshop::Product.find(params[:id])
end
def new
@obj = Conratewebshop::Product.new
@obj.category_id = params[:category_id]
end
def create
do_create(params, Conratewebshop::Product, conratewebshop.category_path(params[:category_id]))
end
def edit
@obj = Conratewebshop::Product.find(params[:id])
end
def update
do_update(params, Conratewebshop::Product, conratewebshop.category_path(params[:category_id]))
end
# def before_save_create(obj)
# obj.category_id = params[:category_id]
# end
def destroy
do_destroy(params, Conratewebshop::Product, conratewebshop.category_path(params[:category_id]))
end
end
end
|
<title> UTCS CAD Home page </title>
<h1> CAD For VLSI Research Group </h1>
<h2>Address</h2>
Department of Computer Sciences, TAY 2.124, <br>
The University of Texas at Austin, <br>
Austin, TX 78712-1188 <br>
<h2> People </h2>
This group is supervised by
<a href="http://www.cs.utexas.edu/users/cad/wong.html">Prof. Martin Wong</a>.
The members of the group are:
<ul>
<li> Yao-Wen Chang
<li> Chung-Ping Chen
<li><a href="http://www.cs.utexas.edu/users/yaoping">Yao-Ping Chen</a>
<li> Yung-Ming Fang (ECE Department)
<li> Wei-Kei Mak
<li> <a href="http://www.cs.utexas.edu/users/thakur">Shashidhar Thakur</a>
<li> <a href="http://www.cs.utexas.edu/users/haizhou">Hai Zhou</a>
</ul>
<h2> Research</h2>
The current interests of the group lie in a wide range of
areas in VLSI CAD. These areas are broadly classified as follows:<p>
<ul>
<li><a href="http://www.cs.utexas.edu/users/cad/place_route.html">FPGA Placement and Routing</a>.
<li><a href="http://www.cs.utexas.edu/users/cad/arch.html">FPGA Architecture</a>.
<li><a href="http://www.cs.utexas.edu/users/cad/partition.html">Partitioning</a>.
<li><a href="http://www.cs.utexas.edu/users/cad/synthesis.html">Architectural and Logic Synthesis</a>.
<li><a href="http://www.cs.utexas.edu/users/cad/hiperf.html">Issues in High Performance VLSI</a>.
</ul>
The abstracts of some recent publications of the group
can be found by tracing each of the above links. <p>
<h2> Links of Interest </h2>
<ul>
<li> <a href="gopher://kona.ee.pitt.edu">ACM SIGDA</a>.
Special Interest Group on Design Automation of the ACM.
<li> <a href="http://www.ieee.org">IEEE</a>.
The Institute of Electrical and Electronics Engineers.
</ul>
<h2> Information/Comments </h2>
<a href = "http://www.cs.utexas.edu/">
<img align=top src="http://www.cs.utexas.edu/images/stanford/button.finger.gif" ALT="[Finger]">
</a>
For more information on the CS Department at UT Austin
click here.<p>
<img align=top src="http://www.cs.utexas.edu/images/stanford/commentS.gif" ALT="[Finger]">
For comments, mail <i>thakur@cs.utexas.edu</i>.
|
USE [VotingInfo]
DECLARE @SchemaName as nvarchar(20); SET @SchemaName = 'Auth';
-------------------------------------------------------------------
-- LOGIC CODE BELOW, EDIT SCHEMA NAME ABOVE
-------------------------------------------------------------------
IF DB_NAME() IN ('master', 'msdb', 'model', 'distribution')
BEGIN
RAISERROR('Not for use on system databases', 16, 1)
GOTO Done
END
SET NOCOUNT ON
DECLARE @DropStatement nvarchar(4000)
DECLARE @SequenceNumber int
DECLARE @LastError int
DECLARE @TablesDropped int
DECLARE DropStatements CURSOR LOCAL FAST_FORWARD READ_ONLY FOR
-- Stored Procedures
SELECT 1 AS SequenceNumber,
N'DROP PROCEDURE ' + QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = N'PROCEDURE'
AND ROUTINE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME)), 'IsMSShipped') = 0
UNION ALL
-- Functions
SELECT 2 AS SequenceNumber,
N'DROP FUNCTION ' + QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = N'FUNCTION'
AND ROUTINE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME)), 'IsMSShipped') = 0
UNION ALL
-- Forgeign Keys
SELECT 3 AS SequenceNumber,
N'ALTER TABLE ' + QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME) + N' DROP CONSTRAINT ' + CONSTRAINT_NAME AS DropStatement
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE CONSTRAINT_TYPE = N'FOREIGN KEY'
AND CONSTRAINT_SCHEMA = @SchemaName
UNION ALL
-- Indexes
SELECT 4 AS SequenceNumber,
N'DROP INDEX ' + QUOTENAME(IX.[Name]) + N' ON ' + QUOTENAME(S.[Name]) + N'.' + QUOTENAME(T.[Name]) + N' WITH ( ONLINE = OFF )' AS DropStatement
FROM sys.indexes IX
INNER JOIN sys.objects T ON IX.Object_Id = T.Object_Id
INNER JOIN sys.schemas S ON T.Schema_Id = S.Schema_Id
WHERE IX.[Name] LIKE 'IX_%'
AND S.[Name] = @SchemaName
UNION ALL
-- Views
SELECT 5 AS SequenceNumber,
N'DROP VIEW ' + QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = N'VIEW'
AND TABLE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME)), 'IsMSShipped') = 0
OPEN DropStatements
WHILE 1 = 1
BEGIN
FETCH NEXT FROM DropStatements INTO @SequenceNumber, @DropStatement
IF @@FETCH_STATUS = -1 BREAK
BEGIN
RAISERROR('%s', 0, 1, @DropStatement) WITH NOWAIT
EXECUTE sp_ExecuteSQL @DropStatement
SET @LastError = @@ERROR
IF @LastError > 0
BEGIN
RAISERROR('Script terminated due to unexpected error', 16, 1)
GOTO Done
END
END
END
CLOSE DropStatements
DEALLOCATE DropStatements
Done:
GO--
USE [VotingInfo]
DECLARE @SchemaName as nvarchar(20); SET @SchemaName = 'Client';
-------------------------------------------------------------------
-- LOGIC CODE BELOW, EDIT SCHEMA NAME ABOVE
-------------------------------------------------------------------
IF DB_NAME() IN ('master', 'msdb', 'model', 'distribution')
BEGIN
RAISERROR('Not for use on system databases', 16, 1)
GOTO Done
END
SET NOCOUNT ON
DECLARE @DropStatement nvarchar(4000)
DECLARE @SequenceNumber int
DECLARE @LastError int
DECLARE @TablesDropped int
DECLARE DropStatements CURSOR LOCAL FAST_FORWARD READ_ONLY FOR
-- Stored Procedures
SELECT 1 AS SequenceNumber,
N'DROP PROCEDURE ' + QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = N'PROCEDURE'
AND ROUTINE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME)), 'IsMSShipped') = 0
UNION ALL
-- Functions
SELECT 2 AS SequenceNumber,
N'DROP FUNCTION ' + QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = N'FUNCTION'
AND ROUTINE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME)), 'IsMSShipped') = 0
UNION ALL
-- Forgeign Keys
SELECT 3 AS SequenceNumber,
N'ALTER TABLE ' + QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME) + N' DROP CONSTRAINT ' + CONSTRAINT_NAME AS DropStatement
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE CONSTRAINT_TYPE = N'FOREIGN KEY'
AND CONSTRAINT_SCHEMA = @SchemaName
UNION ALL
-- Indexes
SELECT 4 AS SequenceNumber,
N'DROP INDEX ' + QUOTENAME(IX.[Name]) + N' ON ' + QUOTENAME(S.[Name]) + N'.' + QUOTENAME(T.[Name]) + N' WITH ( ONLINE = OFF )' AS DropStatement
FROM sys.indexes IX
INNER JOIN sys.objects T ON IX.Object_Id = T.Object_Id
INNER JOIN sys.schemas S ON T.Schema_Id = S.Schema_Id
WHERE IX.[Name] LIKE 'IX_%'
AND S.[Name] = @SchemaName
UNION ALL
-- Views
SELECT 5 AS SequenceNumber,
N'DROP VIEW ' + QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = N'VIEW'
AND TABLE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME)), 'IsMSShipped') = 0
OPEN DropStatements
WHILE 1 = 1
BEGIN
FETCH NEXT FROM DropStatements INTO @SequenceNumber, @DropStatement
IF @@FETCH_STATUS = -1 BREAK
BEGIN
RAISERROR('%s', 0, 1, @DropStatement) WITH NOWAIT
EXECUTE sp_ExecuteSQL @DropStatement
SET @LastError = @@ERROR
IF @LastError > 0
BEGIN
RAISERROR('Script terminated due to unexpected error', 16, 1)
GOTO Done
END
END
END
CLOSE DropStatements
DEALLOCATE DropStatements
Done:
GO--
USE [VotingInfo]
DECLARE @SchemaName as nvarchar(20); SET @SchemaName = 'Data';
-------------------------------------------------------------------
-- LOGIC CODE BELOW, EDIT SCHEMA NAME ABOVE
-------------------------------------------------------------------
IF DB_NAME() IN ('master', 'msdb', 'model', 'distribution')
BEGIN
RAISERROR('Not for use on system databases', 16, 1)
GOTO Done
END
SET NOCOUNT ON
DECLARE @DropStatement nvarchar(4000)
DECLARE @SequenceNumber int
DECLARE @LastError int
DECLARE @TablesDropped int
DECLARE DropStatements CURSOR LOCAL FAST_FORWARD READ_ONLY FOR
-- Stored Procedures
SELECT 1 AS SequenceNumber,
N'DROP PROCEDURE ' + QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = N'PROCEDURE'
AND ROUTINE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME)), 'IsMSShipped') = 0
UNION ALL
-- Functions
SELECT 2 AS SequenceNumber,
N'DROP FUNCTION ' + QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_TYPE = N'FUNCTION'
AND ROUTINE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(ROUTINE_SCHEMA) + N'.' + QUOTENAME(ROUTINE_NAME)), 'IsMSShipped') = 0
UNION ALL
-- Forgeign Keys
SELECT 3 AS SequenceNumber,
N'ALTER TABLE ' + QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME) + N' DROP CONSTRAINT ' + CONSTRAINT_NAME AS DropStatement
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE CONSTRAINT_TYPE = N'FOREIGN KEY'
AND CONSTRAINT_SCHEMA = @SchemaName
UNION ALL
-- Indexes
SELECT 4 AS SequenceNumber,
N'DROP INDEX ' + QUOTENAME(IX.[Name]) + N' ON ' + QUOTENAME(S.[Name]) + N'.' + QUOTENAME(T.[Name]) + N' WITH ( ONLINE = OFF )' AS DropStatement
FROM sys.indexes IX
INNER JOIN sys.objects T ON IX.Object_Id = T.Object_Id
INNER JOIN sys.schemas S ON T.Schema_Id = S.Schema_Id
WHERE IX.[Name] LIKE 'IX_%'
AND S.[Name] = @SchemaName
UNION ALL
-- Views
SELECT 5 AS SequenceNumber,
N'DROP VIEW ' + QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME) AS DropStatement
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = N'VIEW'
AND TABLE_SCHEMA = @SchemaName
AND OBJECTPROPERTY( OBJECT_ID(QUOTENAME(TABLE_SCHEMA) + N'.' + QUOTENAME(TABLE_NAME)), 'IsMSShipped') = 0
OPEN DropStatements
WHILE 1 = 1
BEGIN
FETCH NEXT FROM DropStatements INTO @SequenceNumber, @DropStatement
IF @@FETCH_STATUS = -1 BREAK
BEGIN
RAISERROR('%s', 0, 1, @DropStatement) WITH NOWAIT
EXECUTE sp_ExecuteSQL @DropStatement
SET @LastError = @@ERROR
IF @LastError > 0
BEGIN
RAISERROR('Script terminated due to unexpected error', 16, 1)
GOTO Done
END
END
END
CLOSE DropStatements
DEALLOCATE DropStatements
Done:
GO--
DECLARE @SchemaName as nvarchar(20); SET @SchemaName = 'Auth';
-------------------------------------------------------------------
-- LOGIC CODE BELOW, EDIT SCHEMA NAME ABOVE
-------------------------------------------------------------------
IF NOT EXISTS (select * FROM sys.schemas WHERE name = @SchemaName)
BEGIN
EXEC('CREATE SCHEMA [' + @SchemaName + ']');
EXEC('GRANT EXECUTE ON SCHEMA::[' + @SchemaName + '] TO db_executor');
END
GO--
DECLARE @SchemaName as nvarchar(20); SET @SchemaName = 'Client';
-------------------------------------------------------------------
-- LOGIC CODE BELOW, EDIT SCHEMA NAME ABOVE
-------------------------------------------------------------------
IF NOT EXISTS (select * FROM sys.schemas WHERE name = @SchemaName)
BEGIN
EXEC('CREATE SCHEMA [' + @SchemaName + ']');
EXEC('GRANT EXECUTE ON SCHEMA::[' + @SchemaName + '] TO db_executor');
END
GO--
DECLARE @SchemaName as nvarchar(20); SET @SchemaName = 'Data';
-------------------------------------------------------------------
-- LOGIC CODE BELOW, EDIT SCHEMA NAME ABOVE
-------------------------------------------------------------------
IF NOT EXISTS (select * FROM sys.schemas WHERE name = @SchemaName)
BEGIN
EXEC('CREATE SCHEMA [' + @SchemaName + ']');
EXEC('GRANT EXECUTE ON SCHEMA::[' + @SchemaName + '] TO db_executor');
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Auth].[TableVersion]') AND type in (N'U'))
BEGIN
CREATE TABLE [Auth].[TableVersion](
[TableId] [int] IDENTITY(1,1) NOT NULL,
[TableName] [varchar](150) NOT NULL,
[Version] [int] NOT NULL DEFAULT ((0)),
CONSTRAINT [PK_TableVersion] PRIMARY KEY CLUSTERED ([TableId] ASC)
)
INSERT INTO [Auth].[TableVersion] ([TableName],[Version]) VALUES('[Auth].[TableVersion]',0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Auth].[Permission]') AND type in (N'U'))
BEGIN
CREATE TABLE [Auth].[Permission](
[PermissionId] [int] IDENTITY(1,1) NOT NULL, --NOTE: This will probably not end up lining up with the enum value, go by name instead.
[PermissionName] [varchar](100) NOT NULL, --NOTE: This should be the same as the auto generated enum.
[Title] [varchar](150) NOT NULL, --NOTE: This is a human readable title.
[IsRead] [bit] NOT NULL,
CONSTRAINT [PK_Permission] PRIMARY KEY CLUSTERED ([PermissionId] ASC)
)
INSERT INTO [Auth].[TableVersion]([TableName],[Version]) VALUES('[Auth].[Permission]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Auth].[Role]') AND type in (N'U'))
BEGIN
CREATE TABLE [Auth].[Role](
[RoleId] [int] IDENTITY(1,1) NOT NULL,
[Title] [varchar](50) NOT NULL,
[Description] [varchar](max) NOT NULL,
[IsActive] [bit] NOT NULL,
[ApplyToAnon] [bit] NOT NULL, -- Use this flag to automatically have this apply to anonymous
[ApplyToAllUsers] [bit] NOT NULL, -- Use this flag to automatically have this apply to all users
[PreventAddingUsers] [bit] NOT NULL, -- System admin means do not allow addition of any users by proc
[WINSID] [varchar](50) NULL, -- This winsid is the id of a group, and can be used by an AD Sync operation to automatically add users to the role.
CONSTRAINT [PK_Role] PRIMARY KEY CLUSTERED ([RoleId] ASC)
)
INSERT INTO [Auth].[TableVersion]([TableName],[Version]) VALUES('[Auth].[Role]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Auth].[RolePermission]') AND type in (N'U'))
BEGIN
CREATE TABLE [Auth].[RolePermission](
[RolePermissionId] [int] IDENTITY(1,1) NOT NULL,
[RoleId] [int] NOT NULL,
[PermissionId] [int] NOT NULL,
CONSTRAINT [PK_RolePermission] PRIMARY KEY CLUSTERED ([RolePermissionId] ASC)
)
INSERT INTO [Auth].[TableVersion]([TableName],[Version]) VALUES('[Auth].[RolePermission]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Auth].[User]') AND type in (N'U'))
BEGIN
CREATE TABLE [Auth].[User](
[UserId] [int] IDENTITY(1,1) NOT NULL,
[UserName] [varchar](50) NOT NULL,
[Password] [binary](16) NOT NULL,
[DisplayName] [varchar](50) NOT NULL,
[Email] [varchar](100) NOT NULL,
[AuthToken] [uniqueidentifier] NOT NULL,
[UserToken] [uniqueidentifier] NOT NULL,
[FailedLogins] [int] NOT NULL,
[IsActive] [bit] NOT NULL,
[WINSID] [varchar](50) NULL,
CONSTRAINT [PK_User] PRIMARY KEY CLUSTERED ([UserId] ASC)
)
INSERT INTO [Auth].[TableVersion]([TableName],[Version]) VALUES('[Auth].[User]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Auth].[UserRole]') AND type in (N'U'))
BEGIN
CREATE TABLE [Auth].[UserRole](
[UserRoleId] [int] IDENTITY(1,1) NOT NULL,
[UserId] [int] NOT NULL,
[RoleId] [int] NOT NULL,
CONSTRAINT [PK_UserRole] PRIMARY KEY CLUSTERED ([UserRoleId] ASC)
)
INSERT INTO [Auth].[TableVersion]([TableName],[Version]) VALUES('[Auth].[UserRole]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Client].[TableVersion]') AND type in (N'U'))
BEGIN
CREATE TABLE [Client].[TableVersion](
[TableId] [int] IDENTITY(1,1) NOT NULL,
[TableName] [varchar](150) NOT NULL,
[Version] [int] NOT NULL DEFAULT ((0)),
CONSTRAINT [PK_TableVersion] PRIMARY KEY CLUSTERED ([TableId] ASC)
)
INSERT INTO [Client].[TableVersion] ([TableName],[Version]) VALUES('[Client].[TableVersion]',0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[TableVersion]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[TableVersion](
[TableId] [int] IDENTITY(1,1) NOT NULL,
[TableName] [varchar](150) NOT NULL,
[Version] [int] NOT NULL DEFAULT ((0)),
CONSTRAINT [PK_TableVersion] PRIMARY KEY CLUSTERED ([TableId] ASC)
)
INSERT INTO [Data].[TableVersion] ([TableName],[Version]) VALUES('[Data].[TableVersion]',0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[Candidate]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[Candidate](
[CandidateId] int IDENTITY(1,1) NOT NULL,
[UserId] int NOT NULL,
[ContentInspectionId] int NOT NULL,
[LocationId] int NOT NULL,
[OrganizationId] int NOT NULL,
[CandidateName] varchar(150) NOT NULL,
CONSTRAINT [PK_Candidate] PRIMARY KEY CLUSTERED ([CandidateId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[Candidate]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[CandidateMetaData]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[CandidateMetaData](
[CandidateMetaDataId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[CandidateId] int NOT NULL,
[MetaDataId] int NOT NULL,
[MetaDataValue] varchar(max) NOT NULL,
CONSTRAINT [PK_CandidateMetaData] PRIMARY KEY CLUSTERED ([CandidateMetaDataId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[CandidateMetaData]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[ContentInspection]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[ContentInspection](
[ContentInspectionId] int IDENTITY(1,1) NOT NULL,
[IsArchived] bit NOT NULL,
[IsBeingProposed] bit NOT NULL,
[ProposedByUserId] int NOT NULL,
[ConfirmedByUserId] int NOT NULL,
[FalseInfoCount] int NOT NULL,
[TrueInfoCount] int NOT NULL,
[AdminInpsected] bit NOT NULL,
[DateLastChecked] datetime NOT NULL,
[SourceUrl] varchar(250) NOT NULL,
CONSTRAINT [PK_ContentInspection] PRIMARY KEY CLUSTERED ([ContentInspectionId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[ContentInspection]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[Election]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[Election](
[ElectionId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[ElectionLevelId] int NOT NULL,
[LocationId] int NOT NULL,
[VotingDate] datetime NOT NULL,
CONSTRAINT [PK_Election] PRIMARY KEY CLUSTERED ([ElectionId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[Election]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[ElectionCandidate]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[ElectionCandidate](
[ElectionCandidateId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[CandidateId] int NOT NULL,
[ElectionId] int NOT NULL,
[IsWinner] bit NOT NULL,
[ReportedVoteCount] bit NOT NULL,
CONSTRAINT [PK_ElectionCandidate] PRIMARY KEY CLUSTERED ([ElectionCandidateId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[ElectionCandidate]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[ElectionLevel]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[ElectionLevel](
[ElectionLevelId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[ElectionLevelTitle] varchar(150) NOT NULL,
CONSTRAINT [PK_ElectionLevel] PRIMARY KEY CLUSTERED ([ElectionLevelId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[ElectionLevel]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[ElectionLevelMetaDataXref]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[ElectionLevelMetaDataXref](
[ElectionLevelMetaDataXrefId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[ElectionLevelId] int NOT NULL,
[MetaDataId] nchar(10) NULL,
CONSTRAINT [PK_ElectionLevelMetaDataXref] PRIMARY KEY CLUSTERED ([ElectionLevelMetaDataXrefId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[ElectionLevelMetaDataXref]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[Location]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[Location](
[LocationId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[LocationName] varchar(150) NOT NULL,
CONSTRAINT [PK_Location] PRIMARY KEY CLUSTERED ([LocationId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[Location]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[MetaData]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[MetaData](
[MetaDataId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[MetaDataName] varchar(150) NOT NULL,
[IsRequired] bit NOT NULL,
[AppliesAtAllLevels] bit NOT NULL,
[AppliesToCandidates] bit NOT NULL,
[AppliesToOrganizations] bit NOT NULL,
CONSTRAINT [PK_MetaData] PRIMARY KEY CLUSTERED ([MetaDataId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[MetaData]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[Organization]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[Organization](
[OrganizationId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[OrganizationName] varchar(250) NOT NULL,
CONSTRAINT [PK_Organization] PRIMARY KEY CLUSTERED ([OrganizationId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[Organization]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[OrganizationMetaData]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[OrganizationMetaData](
[OrganizationMetaDataId] int IDENTITY(1,1) NOT NULL,
[ContentInspectionId] int NOT NULL,
[OrganizationId] int NOT NULL,
[MetaDataId] int NOT NULL,
[MetaDataValue] varchar(max) NOT NULL,
CONSTRAINT [PK_OrganizationMetaData] PRIMARY KEY CLUSTERED ([OrganizationMetaDataId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[OrganizationMetaData]', 0)
END
GO--
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[Data].[Voter]') AND type in (N'U'))
BEGIN
CREATE TABLE [Data].[Voter](
[VoterId] int IDENTITY(1,1) NOT NULL,
[UserId] int NOT NULL,
[ContentInspectionId] int NOT NULL,
[LocationId] int NOT NULL,
[VoterName] varchar(150) NOT NULL,
[PostalCode] char(6) NOT NULL,
[FavoriteOrganizationId] int NOT NULL,
CONSTRAINT [PK_Voter] PRIMARY KEY CLUSTERED ([VoterId])
)
INSERT INTO [Data].[TableVersion]([TableName],[Version]) VALUES('[Data].[Voter]', 0)
END
GO--
CREATE VIEW [Client].[Candidates] WITH SCHEMABINDING
AS
SELECT
C.[CandidateId],
C.[ContentInspectionId],
C.[CandidateName],
C.[OrganizationId],
CI.[IsArchived],
CI.[IsBeingProposed],
CI.[ProposedByUserId],
CI.[ConfirmedByUserId],
CI.[FalseInfoCount],
CI.[TrueInfoCount],
CI.[AdminInpsected],
CI.[DateLastChecked],
CI.[SourceUrl]
FROM [Data].[Candidate] C
INNER JOIN [Data].[ContentInspection] CI
ON C.[ContentInspectionId] = CI.[ContentInspectionId]
GO--
CREATE VIEW [Client].[Locations] WITH SCHEMABINDING
AS
SELECT
L.[LocationId],
L.[ContentInspectionId],
L.[LocationName],
CI.[IsArchived],
CI.[IsBeingProposed],
CI.[ProposedByUserId],
CI.[ConfirmedByUserId],
CI.[FalseInfoCount],
CI.[TrueInfoCount],
CI.[AdminInpsected],
CI.[DateLastChecked],
CI.[SourceUrl]
FROM [Data].[Location] L
INNER JOIN [Data].[ContentInspection] CI
ON L.[ContentInspectionId] = CI.[ContentInspectionId]
GO--
CREATE VIEW [Client].[Organizations] WITH SCHEMABINDING
AS
SELECT
O.[OrganizationId],
O.[ContentInspectionId],
O.[OrganizationName],
CI.[IsArchived],
CI.[IsBeingProposed],
CI.[ProposedByUserId],
CI.[ConfirmedByUserId],
CI.[FalseInfoCount],
CI.[TrueInfoCount],
CI.[AdminInpsected],
CI.[DateLastChecked],
CI.[SourceUrl]
FROM [Data].[Organization] O
INNER JOIN [Data].[ContentInspection] CI
ON O.[ContentInspectionId] = CI.[ContentInspectionId]
GO--
CREATE VIEW [Client].[Users] WITH SCHEMABINDING
AS
--Only return things you don't mind anyone seeing.
--Example: Protected email, usertoken, username...
SELECT [UserId]
,[DisplayName]
FROM [Auth].[User]
GO--
CREATE FUNCTION [Auth].[GetUserIdByUserToken]
(
@UserToken varchar(36)
)
RETURNS INT
AS
BEGIN
DECLARE @UserId INT;
SET @UserId = ISNULL(
(
SELECT [UserId] FROM [Auth].[User] WHERE [UserToken] = @UserToken
), 0)
RETURN @UserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_Delete]
GO--
CREATE PROCEDURE [Auth].[Permission_Delete]
@PermissionId int
AS --Generated--
BEGIN
DELETE FROM [Auth].[Permission]
WHERE [PermissionId] = @PermissionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_Exists]
GO--
CREATE PROCEDURE [Auth].[Permission_Exists]
@PermissionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Auth].[Permission]
WHERE [PermissionId] = @PermissionId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_Insert]
GO--
CREATE PROCEDURE [Auth].[Permission_Insert]
@PermissionName varchar(100),
@Title varchar(150),
@IsRead bit
AS --Generated--
BEGIN
INSERT INTO [Auth].[Permission] (
[PermissionName],
[Title],
[IsRead]
) VALUES (
@PermissionName,
@Title,
@IsRead
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [PermissionId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_List]
GO--
CREATE PROCEDURE [Auth].[Permission_List]
@Title varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[PermissionId] as [ListKey],
[Title] AS [ListLabel]
FROM [Auth].[Permission]
WHERE (@Title IS NULL OR [Title] LIKE '%' + @Title + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_Search]
GO--
CREATE PROCEDURE [Auth].[Permission_Search]
@PermissionName varchar(100) = NULL,
@Title varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[PermissionId],
[PermissionName],
[Title],
[IsRead]
FROM [Auth].[Permission]
WHERE (@PermissionName IS NULL OR [PermissionName] LIKE '%' + @PermissionName + '%')
AND (@Title IS NULL OR [Title] LIKE '%' + @Title + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_SelectAll]
GO--
CREATE PROCEDURE [Auth].[Permission_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[PermissionId],
[PermissionName],
[Title],
[IsRead]
FROM [Auth].[Permission]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_SelectBy_PermissionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_SelectBy_PermissionId]
GO--
CREATE PROCEDURE [Auth].[Permission_SelectBy_PermissionId]
@PermissionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[PermissionId],
[PermissionName],
[Title],
[IsRead]
FROM [Auth].[Permission]
WHERE [PermissionId] = @PermissionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_SelectBy_UserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_SelectBy_UserId]
GO--
CREATE PROCEDURE [Auth].[Permission_SelectBy_UserId]
@UserId int
AS
BEGIN
SET NOCOUNT ON;
SELECT
[PermissionId],
[PermissionName],
[Title],
[IsRead]
FROM [Auth].[Permission]
WHERE
[PermissionId] IN -- Anonymous / All users permissions
( SELECT [PermissionId]
FROM [Auth].[RolePermission] RP
INNER JOIN
[Auth].[Role] R
ON RP.[RoleId] = R.[RoleId]
WHERE
(R.[ApplyToAnon] = 1 OR (R.[ApplyToAllUsers] = 1 AND @UserId > 0))
AND R.[IsActive] = 1
) OR [PermissionId] IN -- Specifically assigned permissions
( SELECT [PermissionId]
FROM [Auth].[RolePermission] RP
INNER JOIN
[Auth].[Role] R
ON RP.[RoleId] = R.[RoleId]
INNER JOIN
[Auth].[UserRole] UR
ON R.[RoleId] = UR.[RoleId]
WHERE
UR.[UserId] = @UserId
AND R.[IsActive] = 1
)
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_Update]
GO--
CREATE PROCEDURE [Auth].[Permission_Update]
@PermissionId int,
@PermissionName varchar(100),
@Title varchar(150),
@IsRead bit
AS --Generated--
BEGIN
UPDATE [Auth].[Permission] SET
[PermissionName] = @PermissionName,
[Title] = @Title,
[IsRead] = @IsRead
WHERE [PermissionId] = @PermissionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_Delete]
GO--
CREATE PROCEDURE [Auth].[Role_Delete]
@RoleId int
AS --Generated--
BEGIN
DELETE FROM [Auth].[Role]
WHERE [RoleId] = @RoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_Exists]
GO--
CREATE PROCEDURE [Auth].[Role_Exists]
@RoleId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Auth].[Role]
WHERE [RoleId] = @RoleId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_Insert]
GO--
CREATE PROCEDURE [Auth].[Role_Insert]
@Title varchar(50),
@Description varchar(max),
@IsActive bit,
@ApplyToAnon bit,
@ApplyToAllUsers bit,
@PreventAddingUsers bit,
@WINSID varchar(50) = NULL
AS --Generated--
BEGIN
INSERT INTO [Auth].[Role] (
[Title],
[Description],
[IsActive],
[ApplyToAnon],
[ApplyToAllUsers],
[PreventAddingUsers],
[WINSID]
) VALUES (
@Title,
@Description,
@IsActive,
@ApplyToAnon,
@ApplyToAllUsers,
@PreventAddingUsers,
@WINSID
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [RoleId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_List]
GO--
CREATE PROCEDURE [Auth].[Role_List]
@Title varchar(50) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RoleId] as [ListKey],
[Title] AS [ListLabel]
FROM [Auth].[Role]
WHERE (@Title IS NULL OR [Title] LIKE '%' + @Title + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_Search]
GO--
CREATE PROCEDURE [Auth].[Role_Search]
@Title varchar(50) = NULL,
@Description varchar(max) = NULL,
@WINSID varchar(50) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RoleId],
[Title],
[Description],
[IsActive],
[ApplyToAnon],
[ApplyToAllUsers],
[PreventAddingUsers],
[WINSID]
FROM [Auth].[Role]
WHERE (@Title IS NULL OR [Title] LIKE '%' + @Title + '%')
AND (@Description IS NULL OR [Description] LIKE '%' + @Description + '%')
AND (@WINSID IS NULL OR [WINSID] LIKE '%' + @WINSID + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_SelectAll]
GO--
CREATE PROCEDURE [Auth].[Role_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RoleId],
[Title],
[Description],
[IsActive],
[ApplyToAnon],
[ApplyToAllUsers],
[PreventAddingUsers],
[WINSID]
FROM [Auth].[Role]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_SelectBy_RoleId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_SelectBy_RoleId]
GO--
CREATE PROCEDURE [Auth].[Role_SelectBy_RoleId]
@RoleId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RoleId],
[Title],
[Description],
[IsActive],
[ApplyToAnon],
[ApplyToAllUsers],
[PreventAddingUsers],
[WINSID]
FROM [Auth].[Role]
WHERE [RoleId] = @RoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Role_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Role_Update]
GO--
CREATE PROCEDURE [Auth].[Role_Update]
@RoleId int,
@Title varchar(50),
@Description varchar(max),
@IsActive bit,
@ApplyToAnon bit,
@ApplyToAllUsers bit,
@PreventAddingUsers bit,
@WINSID varchar(50) = NULL
AS --Generated--
BEGIN
UPDATE [Auth].[Role] SET
[Title] = @Title,
[Description] = @Description,
[IsActive] = @IsActive,
[ApplyToAnon] = @ApplyToAnon,
[ApplyToAllUsers] = @ApplyToAllUsers,
[PreventAddingUsers] = @PreventAddingUsers,
[WINSID] = @WINSID
WHERE [RoleId] = @RoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_Delete]
GO--
CREATE PROCEDURE [Auth].[RolePermission_Delete]
@RolePermissionId int
AS --Generated--
BEGIN
DELETE FROM [Auth].[RolePermission]
WHERE [RolePermissionId] = @RolePermissionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_Exists]
GO--
CREATE PROCEDURE [Auth].[RolePermission_Exists]
@RolePermissionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Auth].[RolePermission]
WHERE [RolePermissionId] = @RolePermissionId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_Insert]
GO--
CREATE PROCEDURE [Auth].[RolePermission_Insert]
@RoleId int,
@PermissionId int
AS --Generated--
BEGIN
INSERT INTO [Auth].[RolePermission] (
[RoleId],
[PermissionId]
) VALUES (
@RoleId,
@PermissionId
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [RolePermissionId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_SelectAll]
GO--
CREATE PROCEDURE [Auth].[RolePermission_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RolePermissionId],
[RoleId],
[PermissionId]
FROM [Auth].[RolePermission]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_SelectBy_PermissionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_SelectBy_PermissionId]
GO--
CREATE PROCEDURE [Auth].[RolePermission_SelectBy_PermissionId]
@PermissionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RolePermissionId],
[RoleId],
[PermissionId]
FROM [Auth].[RolePermission]
WHERE [PermissionId] = @PermissionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_SelectBy_RoleId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_SelectBy_RoleId]
GO--
CREATE PROCEDURE [Auth].[RolePermission_SelectBy_RoleId]
@RoleId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RolePermissionId],
[RoleId],
[PermissionId]
FROM [Auth].[RolePermission]
WHERE [RoleId] = @RoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_SelectBy_RolePermissionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_SelectBy_RolePermissionId]
GO--
CREATE PROCEDURE [Auth].[RolePermission_SelectBy_RolePermissionId]
@RolePermissionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[RolePermissionId],
[RoleId],
[PermissionId]
FROM [Auth].[RolePermission]
WHERE [RolePermissionId] = @RolePermissionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[RolePermission_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[RolePermission_Update]
GO--
CREATE PROCEDURE [Auth].[RolePermission_Update]
@RolePermissionId int,
@RoleId int,
@PermissionId int
AS --Generated--
BEGIN
UPDATE [Auth].[RolePermission] SET
[RoleId] = @RoleId,
[PermissionId] = @PermissionId
WHERE [RolePermissionId] = @RolePermissionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[TableVersion_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[TableVersion_Delete]
GO--
CREATE PROCEDURE [Auth].[TableVersion_Delete]
@TableId int
AS --Generated--
BEGIN
DELETE FROM [Auth].[TableVersion]
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[TableVersion_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[TableVersion_Exists]
GO--
CREATE PROCEDURE [Auth].[TableVersion_Exists]
@TableId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Auth].[TableVersion]
WHERE [TableId] = @TableId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[TableVersion_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[TableVersion_Insert]
GO--
CREATE PROCEDURE [Auth].[TableVersion_Insert]
@TableName varchar(150),
@Version int
AS --Generated--
BEGIN
INSERT INTO [Auth].[TableVersion] (
[TableName],
[Version]
) VALUES (
@TableName,
@Version
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [TableId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[TableVersion_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[TableVersion_Search]
GO--
CREATE PROCEDURE [Auth].[TableVersion_Search]
@TableName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Auth].[TableVersion]
WHERE (@TableName IS NULL OR [TableName] LIKE '%' + @TableName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[TableVersion_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[TableVersion_SelectAll]
GO--
CREATE PROCEDURE [Auth].[TableVersion_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Auth].[TableVersion]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[TableVersion_SelectBy_TableId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[TableVersion_SelectBy_TableId]
GO--
CREATE PROCEDURE [Auth].[TableVersion_SelectBy_TableId]
@TableId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Auth].[TableVersion]
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[TableVersion_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[TableVersion_Update]
GO--
CREATE PROCEDURE [Auth].[TableVersion_Update]
@TableId int,
@TableName varchar(150),
@Version int
AS --Generated--
BEGIN
UPDATE [Auth].[TableVersion] SET
[TableName] = @TableName,
[Version] = @Version
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_Delete]
GO--
CREATE PROCEDURE [Auth].[User_Delete]
@UserId int
AS --Generated--
BEGIN
DELETE FROM [Auth].[User]
WHERE [UserId] = @UserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_Exists]
GO--
CREATE PROCEDURE [Auth].[User_Exists]
@UserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Auth].[User]
WHERE [UserId] = @UserId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_Insert]
GO--
CREATE PROCEDURE [Auth].[User_Insert]
@UserName varchar(50),
@Password binary(16),
@DisplayName varchar(50),
@Email varchar(100),
@AuthToken uniqueidentifier,
@UserToken uniqueidentifier,
@FailedLogins int,
@IsActive bit,
@WINSID varchar(50) = NULL
AS --Generated--
BEGIN
INSERT INTO [Auth].[User] (
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
) VALUES (
@UserName,
@Password,
@DisplayName,
@Email,
@AuthToken,
@UserToken,
@FailedLogins,
@IsActive,
@WINSID
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [UserId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_List]
GO--
CREATE PROCEDURE [Auth].[User_List]
@UserName varchar(50) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId] as [ListKey],
[UserName] AS [ListLabel]
FROM [Auth].[User]
WHERE (@UserName IS NULL OR [UserName] LIKE '%' + @UserName + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_Search]
GO--
CREATE PROCEDURE [Auth].[User_Search]
@UserName varchar(50) = NULL,
@DisplayName varchar(50) = NULL,
@Email varchar(100) = NULL,
@WINSID varchar(50) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
FROM [Auth].[User]
WHERE (@UserName IS NULL OR [UserName] LIKE '%' + @UserName + '%')
AND (@DisplayName IS NULL OR [DisplayName] LIKE '%' + @DisplayName + '%')
AND (@Email IS NULL OR [Email] LIKE '%' + @Email + '%')
AND (@WINSID IS NULL OR [WINSID] LIKE '%' + @WINSID + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_SelectAll]
GO--
CREATE PROCEDURE [Auth].[User_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
FROM [Auth].[User]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_SelectBy_Email]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_SelectBy_Email]
GO--
CREATE PROCEDURE [Auth].[User_SelectBy_Email]
@Email varchar(100)
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
FROM [Auth].[User]
WHERE [Email] = @Email
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_SelectBy_UserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_SelectBy_UserId]
GO--
CREATE PROCEDURE [Auth].[User_SelectBy_UserId]
@UserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
FROM [Auth].[User]
WHERE [UserId] = @UserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_SelectBy_UserName]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_SelectBy_UserName]
GO--
CREATE PROCEDURE [Auth].[User_SelectBy_UserName]
@UserName varchar(50)
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
FROM [Auth].[User]
WHERE [UserName] = @UserName
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_SelectBy_UserToken]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_SelectBy_UserToken]
GO--
CREATE PROCEDURE [Auth].[User_SelectBy_UserToken]
@UserToken uniqueidentifier
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
FROM [Auth].[User]
WHERE [UserToken] = @UserToken
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_SelectBy_WINSID]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_SelectBy_WINSID]
GO--
CREATE PROCEDURE [Auth].[User_SelectBy_WINSID]
@WINSID varchar(50)
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[UserName],
[Password],
[DisplayName],
[Email],
[AuthToken],
[UserToken],
[FailedLogins],
[IsActive],
[WINSID]
FROM [Auth].[User]
WHERE [WINSID] = @WINSID
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[User_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[User_Update]
GO--
CREATE PROCEDURE [Auth].[User_Update]
@UserId int,
@UserName varchar(50),
@Password binary(16),
@DisplayName varchar(50),
@Email varchar(100),
@AuthToken uniqueidentifier,
@UserToken uniqueidentifier,
@FailedLogins int,
@IsActive bit,
@WINSID varchar(50) = NULL
AS --Generated--
BEGIN
UPDATE [Auth].[User] SET
[UserName] = @UserName,
[Password] = @Password,
[DisplayName] = @DisplayName,
[Email] = @Email,
[AuthToken] = @AuthToken,
[UserToken] = @UserToken,
[FailedLogins] = @FailedLogins,
[IsActive] = @IsActive,
[WINSID] = @WINSID
WHERE [UserId] = @UserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_Delete]
GO--
CREATE PROCEDURE [Auth].[UserRole_Delete]
@UserRoleId int
AS --Generated--
BEGIN
DELETE FROM [Auth].[UserRole]
WHERE [UserRoleId] = @UserRoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_Exists]
GO--
CREATE PROCEDURE [Auth].[UserRole_Exists]
@UserRoleId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Auth].[UserRole]
WHERE [UserRoleId] = @UserRoleId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_Insert]
GO--
CREATE PROCEDURE [Auth].[UserRole_Insert]
@UserId int,
@RoleId int
AS --Generated--
BEGIN
INSERT INTO [Auth].[UserRole] (
[UserId],
[RoleId]
) VALUES (
@UserId,
@RoleId
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [UserRoleId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_SelectAll]
GO--
CREATE PROCEDURE [Auth].[UserRole_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserRoleId],
[UserId],
[RoleId]
FROM [Auth].[UserRole]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_SelectBy_RoleId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_SelectBy_RoleId]
GO--
CREATE PROCEDURE [Auth].[UserRole_SelectBy_RoleId]
@RoleId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserRoleId],
[UserId],
[RoleId]
FROM [Auth].[UserRole]
WHERE [RoleId] = @RoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_SelectBy_UserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_SelectBy_UserId]
GO--
CREATE PROCEDURE [Auth].[UserRole_SelectBy_UserId]
@UserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserRoleId],
[UserId],
[RoleId]
FROM [Auth].[UserRole]
WHERE [UserId] = @UserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_SelectBy_UserRoleId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_SelectBy_UserRoleId]
GO--
CREATE PROCEDURE [Auth].[UserRole_SelectBy_UserRoleId]
@UserRoleId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserRoleId],
[UserId],
[RoleId]
FROM [Auth].[UserRole]
WHERE [UserRoleId] = @UserRoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[UserRole_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[UserRole_Update]
GO--
CREATE PROCEDURE [Auth].[UserRole_Update]
@UserRoleId int,
@UserId int,
@RoleId int
AS --Generated--
BEGIN
UPDATE [Auth].[UserRole] SET
[UserId] = @UserId,
[RoleId] = @RoleId
WHERE [UserRoleId] = @UserRoleId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_Exists]
GO--
CREATE PROCEDURE [Client].[Candidates_Exists]
@CandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Client].[Candidates]
WHERE [CandidateId] = @CandidateId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_Search]
GO--
CREATE PROCEDURE [Client].[Candidates_Search]
@CandidateName varchar(150) = NULL,
@SourceUrl varchar(250) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[ContentInspectionId],
[CandidateName],
[OrganizationId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Candidates]
WHERE (@CandidateName IS NULL OR [CandidateName] LIKE '%' + @CandidateName + '%')
AND (@SourceUrl IS NULL OR [SourceUrl] LIKE '%' + @SourceUrl + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_SelectAll]
GO--
CREATE PROCEDURE [Client].[Candidates_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[ContentInspectionId],
[CandidateName],
[OrganizationId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Candidates]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_SelectBy_CandidateId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_SelectBy_CandidateId]
GO--
CREATE PROCEDURE [Client].[Candidates_SelectBy_CandidateId]
@CandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[ContentInspectionId],
[CandidateName],
[OrganizationId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Candidates]
WHERE [CandidateId] = @CandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_SelectBy_ConfirmedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_SelectBy_ConfirmedByUserId]
GO--
CREATE PROCEDURE [Client].[Candidates_SelectBy_ConfirmedByUserId]
@ConfirmedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[ContentInspectionId],
[CandidateName],
[OrganizationId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Candidates]
WHERE [ConfirmedByUserId] = @ConfirmedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Client].[Candidates_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[ContentInspectionId],
[CandidateName],
[OrganizationId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Candidates]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_SelectBy_OrganizationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_SelectBy_OrganizationId]
GO--
CREATE PROCEDURE [Client].[Candidates_SelectBy_OrganizationId]
@OrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[ContentInspectionId],
[CandidateName],
[OrganizationId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Candidates]
WHERE [OrganizationId] = @OrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Candidates_SelectBy_ProposedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Candidates_SelectBy_ProposedByUserId]
GO--
CREATE PROCEDURE [Client].[Candidates_SelectBy_ProposedByUserId]
@ProposedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[ContentInspectionId],
[CandidateName],
[OrganizationId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Candidates]
WHERE [ProposedByUserId] = @ProposedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Locations_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Locations_Search]
GO--
CREATE PROCEDURE [Client].[Locations_Search]
@LocationName varchar(150) = NULL,
@SourceUrl varchar(250) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Locations]
WHERE (@LocationName IS NULL OR [LocationName] LIKE '%' + @LocationName + '%')
AND (@SourceUrl IS NULL OR [SourceUrl] LIKE '%' + @SourceUrl + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Locations_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Locations_SelectAll]
GO--
CREATE PROCEDURE [Client].[Locations_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Locations]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Locations_SelectBy_ConfirmedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Locations_SelectBy_ConfirmedByUserId]
GO--
CREATE PROCEDURE [Client].[Locations_SelectBy_ConfirmedByUserId]
@ConfirmedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Locations]
WHERE [ConfirmedByUserId] = @ConfirmedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Locations_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Locations_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Client].[Locations_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Locations]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Locations_SelectBy_LocationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Locations_SelectBy_LocationId]
GO--
CREATE PROCEDURE [Client].[Locations_SelectBy_LocationId]
@LocationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Locations]
WHERE [LocationId] = @LocationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Locations_SelectBy_ProposedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Locations_SelectBy_ProposedByUserId]
GO--
CREATE PROCEDURE [Client].[Locations_SelectBy_ProposedByUserId]
@ProposedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Locations]
WHERE [ProposedByUserId] = @ProposedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_Exists]
GO--
CREATE PROCEDURE [Client].[Organizations_Exists]
@OrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Client].[Organizations]
WHERE [OrganizationId] = @OrganizationId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_Search]
GO--
CREATE PROCEDURE [Client].[Organizations_Search]
@OrganizationName varchar(250) = NULL,
@SourceUrl varchar(250) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Organizations]
WHERE (@OrganizationName IS NULL OR [OrganizationName] LIKE '%' + @OrganizationName + '%')
AND (@SourceUrl IS NULL OR [SourceUrl] LIKE '%' + @SourceUrl + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_SelectAll]
GO--
CREATE PROCEDURE [Client].[Organizations_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Organizations]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_SelectBy_ConfirmedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_SelectBy_ConfirmedByUserId]
GO--
CREATE PROCEDURE [Client].[Organizations_SelectBy_ConfirmedByUserId]
@ConfirmedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Organizations]
WHERE [ConfirmedByUserId] = @ConfirmedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Client].[Organizations_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Organizations]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_SelectBy_OrganizationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_SelectBy_OrganizationId]
GO--
CREATE PROCEDURE [Client].[Organizations_SelectBy_OrganizationId]
@OrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Organizations]
WHERE [OrganizationId] = @OrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_SelectBy_ProposedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_SelectBy_ProposedByUserId]
GO--
CREATE PROCEDURE [Client].[Organizations_SelectBy_ProposedByUserId]
@ProposedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Client].[Organizations]
WHERE [ProposedByUserId] = @ProposedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[TableVersion_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[TableVersion_Delete]
GO--
CREATE PROCEDURE [Client].[TableVersion_Delete]
@TableId int
AS --Generated--
BEGIN
DELETE FROM [Client].[TableVersion]
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[TableVersion_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[TableVersion_Exists]
GO--
CREATE PROCEDURE [Client].[TableVersion_Exists]
@TableId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Client].[TableVersion]
WHERE [TableId] = @TableId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[TableVersion_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[TableVersion_Insert]
GO--
CREATE PROCEDURE [Client].[TableVersion_Insert]
@TableName varchar(150),
@Version int
AS --Generated--
BEGIN
INSERT INTO [Client].[TableVersion] (
[TableName],
[Version]
) VALUES (
@TableName,
@Version
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [TableId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[TableVersion_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[TableVersion_Search]
GO--
CREATE PROCEDURE [Client].[TableVersion_Search]
@TableName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Client].[TableVersion]
WHERE (@TableName IS NULL OR [TableName] LIKE '%' + @TableName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[TableVersion_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[TableVersion_SelectAll]
GO--
CREATE PROCEDURE [Client].[TableVersion_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Client].[TableVersion]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[TableVersion_SelectBy_TableId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[TableVersion_SelectBy_TableId]
GO--
CREATE PROCEDURE [Client].[TableVersion_SelectBy_TableId]
@TableId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Client].[TableVersion]
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[TableVersion_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[TableVersion_Update]
GO--
CREATE PROCEDURE [Client].[TableVersion_Update]
@TableId int,
@TableName varchar(150),
@Version int
AS --Generated--
BEGIN
UPDATE [Client].[TableVersion] SET
[TableName] = @TableName,
[Version] = @Version
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Users_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Users_Exists]
GO--
CREATE PROCEDURE [Client].[Users_Exists]
@UserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Client].[Users]
WHERE [UserId] = @UserId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Users_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Users_Search]
GO--
CREATE PROCEDURE [Client].[Users_Search]
@DisplayName varchar(50) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[DisplayName]
FROM [Client].[Users]
WHERE (@DisplayName IS NULL OR [DisplayName] LIKE '%' + @DisplayName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Users_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Users_SelectAll]
GO--
CREATE PROCEDURE [Client].[Users_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[UserId],
[DisplayName]
FROM [Client].[Users]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Users_SelectByUser_Current]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Users_SelectByUser_Current]
GO--
CREATE PROCEDURE [Client].[Users_SelectByUser_Current]
@AuthUserId int
AS
BEGIN
SET NOCOUNT ON;
SELECT *
FROM [Client].[Users]
WHERE [UserId] = @AuthUserId
END
GO--
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Users_SelectByUser_UpdateProfile]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Users_SelectByUser_UpdateProfile]
GO--
CREATE PROCEDURE [Client].[Users_SelectByUser_UpdateProfile]
@AuthUserId int,
@DisplayName varchar(50),
@Email varchar(100)
AS
BEGIN
SET NOCOUNT ON;
if( LEN(@DisplayName) <= 1 ) SET @DisplayName = 'My Name Is Invaid';
UPDATE [Auth].[User] SET
[DisplayName] = @DisplayName,
[Email] = @Email
WHERE [UserId] = @AuthUserId
SELECT *
FROM [Client].[Users]
WHERE [UserId] = @AuthUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_Delete]
GO--
CREATE PROCEDURE [Data].[Candidate_Delete]
@CandidateId int
AS --Generated--
BEGIN
DELETE FROM [Data].[Candidate]
WHERE [CandidateId] = @CandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_Exists]
GO--
CREATE PROCEDURE [Data].[Candidate_Exists]
@CandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[Candidate]
WHERE [CandidateId] = @CandidateId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_Insert]
GO--
CREATE PROCEDURE [Data].[Candidate_Insert]
@UserId int,
@ContentInspectionId int,
@LocationId int,
@OrganizationId int,
@CandidateName varchar(150)
AS --Generated--
BEGIN
INSERT INTO [Data].[Candidate] (
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
) VALUES (
@UserId,
@ContentInspectionId,
@LocationId,
@OrganizationId,
@CandidateName
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [CandidateId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_List]
GO--
CREATE PROCEDURE [Data].[Candidate_List]
@CandidateName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId] as [ListKey],
[CandidateName] AS [ListLabel]
FROM [Data].[Candidate]
WHERE (@CandidateName IS NULL OR [CandidateName] LIKE '%' + @CandidateName + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_Search]
GO--
CREATE PROCEDURE [Data].[Candidate_Search]
@CandidateName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
FROM [Data].[Candidate]
WHERE (@CandidateName IS NULL OR [CandidateName] LIKE '%' + @CandidateName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_SelectAll]
GO--
CREATE PROCEDURE [Data].[Candidate_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
FROM [Data].[Candidate]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_SelectBy_CandidateId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_SelectBy_CandidateId]
GO--
CREATE PROCEDURE [Data].[Candidate_SelectBy_CandidateId]
@CandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
FROM [Data].[Candidate]
WHERE [CandidateId] = @CandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[Candidate_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
FROM [Data].[Candidate]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_SelectBy_LocationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_SelectBy_LocationId]
GO--
CREATE PROCEDURE [Data].[Candidate_SelectBy_LocationId]
@LocationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
FROM [Data].[Candidate]
WHERE [LocationId] = @LocationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_SelectBy_OrganizationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_SelectBy_OrganizationId]
GO--
CREATE PROCEDURE [Data].[Candidate_SelectBy_OrganizationId]
@OrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
FROM [Data].[Candidate]
WHERE [OrganizationId] = @OrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_SelectBy_UserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_SelectBy_UserId]
GO--
CREATE PROCEDURE [Data].[Candidate_SelectBy_UserId]
@UserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateId],
[UserId],
[ContentInspectionId],
[LocationId],
[OrganizationId],
[CandidateName]
FROM [Data].[Candidate]
WHERE [UserId] = @UserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Candidate_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Candidate_Update]
GO--
CREATE PROCEDURE [Data].[Candidate_Update]
@CandidateId int,
@UserId int,
@ContentInspectionId int,
@LocationId int,
@OrganizationId int,
@CandidateName varchar(150)
AS --Generated--
BEGIN
UPDATE [Data].[Candidate] SET
[UserId] = @UserId,
[ContentInspectionId] = @ContentInspectionId,
[LocationId] = @LocationId,
[OrganizationId] = @OrganizationId,
[CandidateName] = @CandidateName
WHERE [CandidateId] = @CandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_Delete]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_Delete]
@CandidateMetaDataId int
AS --Generated--
BEGIN
DELETE FROM [Data].[CandidateMetaData]
WHERE [CandidateMetaDataId] = @CandidateMetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_Exists]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_Exists]
@CandidateMetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[CandidateMetaData]
WHERE [CandidateMetaDataId] = @CandidateMetaDataId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_Insert]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_Insert]
@ContentInspectionId int,
@CandidateId int,
@MetaDataId int,
@MetaDataValue varchar(max)
AS --Generated--
BEGIN
INSERT INTO [Data].[CandidateMetaData] (
[ContentInspectionId],
[CandidateId],
[MetaDataId],
[MetaDataValue]
) VALUES (
@ContentInspectionId,
@CandidateId,
@MetaDataId,
@MetaDataValue
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [CandidateMetaDataId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_Search]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_Search]
@MetaDataValue varchar(max) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateMetaDataId],
[ContentInspectionId],
[CandidateId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[CandidateMetaData]
WHERE (@MetaDataValue IS NULL OR [MetaDataValue] LIKE '%' + @MetaDataValue + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_SelectAll]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateMetaDataId],
[ContentInspectionId],
[CandidateId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[CandidateMetaData]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_SelectBy_CandidateId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_SelectBy_CandidateId]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_SelectBy_CandidateId]
@CandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateMetaDataId],
[ContentInspectionId],
[CandidateId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[CandidateMetaData]
WHERE [CandidateId] = @CandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_SelectBy_CandidateMetaDataId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_SelectBy_CandidateMetaDataId]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_SelectBy_CandidateMetaDataId]
@CandidateMetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateMetaDataId],
[ContentInspectionId],
[CandidateId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[CandidateMetaData]
WHERE [CandidateMetaDataId] = @CandidateMetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateMetaDataId],
[ContentInspectionId],
[CandidateId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[CandidateMetaData]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_SelectBy_MetaDataId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_SelectBy_MetaDataId]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_SelectBy_MetaDataId]
@MetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[CandidateMetaDataId],
[ContentInspectionId],
[CandidateId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[CandidateMetaData]
WHERE [MetaDataId] = @MetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[CandidateMetaData_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[CandidateMetaData_Update]
GO--
CREATE PROCEDURE [Data].[CandidateMetaData_Update]
@CandidateMetaDataId int,
@ContentInspectionId int,
@CandidateId int,
@MetaDataId int,
@MetaDataValue varchar(max)
AS --Generated--
BEGIN
UPDATE [Data].[CandidateMetaData] SET
[ContentInspectionId] = @ContentInspectionId,
[CandidateId] = @CandidateId,
[MetaDataId] = @MetaDataId,
[MetaDataValue] = @MetaDataValue
WHERE [CandidateMetaDataId] = @CandidateMetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_Delete]
GO--
CREATE PROCEDURE [Data].[ContentInspection_Delete]
@ContentInspectionId int
AS --Generated--
BEGIN
DELETE FROM [Data].[ContentInspection]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_Exists]
GO--
CREATE PROCEDURE [Data].[ContentInspection_Exists]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[ContentInspection]
WHERE [ContentInspectionId] = @ContentInspectionId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_Insert]
GO--
CREATE PROCEDURE [Data].[ContentInspection_Insert]
@IsArchived bit,
@IsBeingProposed bit,
@ProposedByUserId int,
@ConfirmedByUserId int,
@FalseInfoCount int,
@TrueInfoCount int,
@AdminInpsected bit,
@DateLastChecked datetime,
@SourceUrl varchar(250)
AS --Generated--
BEGIN
INSERT INTO [Data].[ContentInspection] (
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
) VALUES (
@IsArchived,
@IsBeingProposed,
@ProposedByUserId,
@ConfirmedByUserId,
@FalseInfoCount,
@TrueInfoCount,
@AdminInpsected,
@DateLastChecked,
@SourceUrl
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [ContentInspectionId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_Search]
GO--
CREATE PROCEDURE [Data].[ContentInspection_Search]
@SourceUrl varchar(250) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ContentInspectionId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Data].[ContentInspection]
WHERE (@SourceUrl IS NULL OR [SourceUrl] LIKE '%' + @SourceUrl + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_SelectAll]
GO--
CREATE PROCEDURE [Data].[ContentInspection_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ContentInspectionId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Data].[ContentInspection]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_SelectBy_ConfirmedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_SelectBy_ConfirmedByUserId]
GO--
CREATE PROCEDURE [Data].[ContentInspection_SelectBy_ConfirmedByUserId]
@ConfirmedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ContentInspectionId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Data].[ContentInspection]
WHERE [ConfirmedByUserId] = @ConfirmedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[ContentInspection_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ContentInspectionId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Data].[ContentInspection]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_SelectBy_ProposedByUserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_SelectBy_ProposedByUserId]
GO--
CREATE PROCEDURE [Data].[ContentInspection_SelectBy_ProposedByUserId]
@ProposedByUserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ContentInspectionId],
[IsArchived],
[IsBeingProposed],
[ProposedByUserId],
[ConfirmedByUserId],
[FalseInfoCount],
[TrueInfoCount],
[AdminInpsected],
[DateLastChecked],
[SourceUrl]
FROM [Data].[ContentInspection]
WHERE [ProposedByUserId] = @ProposedByUserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ContentInspection_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ContentInspection_Update]
GO--
CREATE PROCEDURE [Data].[ContentInspection_Update]
@ContentInspectionId int,
@IsArchived bit,
@IsBeingProposed bit,
@ProposedByUserId int,
@ConfirmedByUserId int,
@FalseInfoCount int,
@TrueInfoCount int,
@AdminInpsected bit,
@DateLastChecked datetime,
@SourceUrl varchar(250)
AS --Generated--
BEGIN
UPDATE [Data].[ContentInspection] SET
[IsArchived] = @IsArchived,
[IsBeingProposed] = @IsBeingProposed,
[ProposedByUserId] = @ProposedByUserId,
[ConfirmedByUserId] = @ConfirmedByUserId,
[FalseInfoCount] = @FalseInfoCount,
[TrueInfoCount] = @TrueInfoCount,
[AdminInpsected] = @AdminInpsected,
[DateLastChecked] = @DateLastChecked,
[SourceUrl] = @SourceUrl
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_Delete]
GO--
CREATE PROCEDURE [Data].[Election_Delete]
@ElectionId int
AS --Generated--
BEGIN
DELETE FROM [Data].[Election]
WHERE [ElectionId] = @ElectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_Exists]
GO--
CREATE PROCEDURE [Data].[Election_Exists]
@ElectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[Election]
WHERE [ElectionId] = @ElectionId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_Insert]
GO--
CREATE PROCEDURE [Data].[Election_Insert]
@ContentInspectionId int,
@ElectionLevelId int,
@LocationId int,
@VotingDate datetime
AS --Generated--
BEGIN
INSERT INTO [Data].[Election] (
[ContentInspectionId],
[ElectionLevelId],
[LocationId],
[VotingDate]
) VALUES (
@ContentInspectionId,
@ElectionLevelId,
@LocationId,
@VotingDate
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [ElectionId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_SelectAll]
GO--
CREATE PROCEDURE [Data].[Election_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionId],
[ContentInspectionId],
[ElectionLevelId],
[LocationId],
[VotingDate]
FROM [Data].[Election]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[Election_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionId],
[ContentInspectionId],
[ElectionLevelId],
[LocationId],
[VotingDate]
FROM [Data].[Election]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_SelectBy_ElectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_SelectBy_ElectionId]
GO--
CREATE PROCEDURE [Data].[Election_SelectBy_ElectionId]
@ElectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionId],
[ContentInspectionId],
[ElectionLevelId],
[LocationId],
[VotingDate]
FROM [Data].[Election]
WHERE [ElectionId] = @ElectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_SelectBy_ElectionLevelId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_SelectBy_ElectionLevelId]
GO--
CREATE PROCEDURE [Data].[Election_SelectBy_ElectionLevelId]
@ElectionLevelId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionId],
[ContentInspectionId],
[ElectionLevelId],
[LocationId],
[VotingDate]
FROM [Data].[Election]
WHERE [ElectionLevelId] = @ElectionLevelId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_SelectBy_LocationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_SelectBy_LocationId]
GO--
CREATE PROCEDURE [Data].[Election_SelectBy_LocationId]
@LocationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionId],
[ContentInspectionId],
[ElectionLevelId],
[LocationId],
[VotingDate]
FROM [Data].[Election]
WHERE [LocationId] = @LocationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Election_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Election_Update]
GO--
CREATE PROCEDURE [Data].[Election_Update]
@ElectionId int,
@ContentInspectionId int,
@ElectionLevelId int,
@LocationId int,
@VotingDate datetime
AS --Generated--
BEGIN
UPDATE [Data].[Election] SET
[ContentInspectionId] = @ContentInspectionId,
[ElectionLevelId] = @ElectionLevelId,
[LocationId] = @LocationId,
[VotingDate] = @VotingDate
WHERE [ElectionId] = @ElectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_Delete]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_Delete]
@ElectionCandidateId int
AS --Generated--
BEGIN
DELETE FROM [Data].[ElectionCandidate]
WHERE [ElectionCandidateId] = @ElectionCandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_Exists]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_Exists]
@ElectionCandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[ElectionCandidate]
WHERE [ElectionCandidateId] = @ElectionCandidateId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_Insert]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_Insert]
@ContentInspectionId int,
@CandidateId int,
@ElectionId int,
@IsWinner bit,
@ReportedVoteCount bit
AS --Generated--
BEGIN
INSERT INTO [Data].[ElectionCandidate] (
[ContentInspectionId],
[CandidateId],
[ElectionId],
[IsWinner],
[ReportedVoteCount]
) VALUES (
@ContentInspectionId,
@CandidateId,
@ElectionId,
@IsWinner,
@ReportedVoteCount
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [ElectionCandidateId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_SelectAll]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionCandidateId],
[ContentInspectionId],
[CandidateId],
[ElectionId],
[IsWinner],
[ReportedVoteCount]
FROM [Data].[ElectionCandidate]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_SelectBy_CandidateId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_SelectBy_CandidateId]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_SelectBy_CandidateId]
@CandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionCandidateId],
[ContentInspectionId],
[CandidateId],
[ElectionId],
[IsWinner],
[ReportedVoteCount]
FROM [Data].[ElectionCandidate]
WHERE [CandidateId] = @CandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionCandidateId],
[ContentInspectionId],
[CandidateId],
[ElectionId],
[IsWinner],
[ReportedVoteCount]
FROM [Data].[ElectionCandidate]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_SelectBy_ElectionCandidateId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_SelectBy_ElectionCandidateId]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_SelectBy_ElectionCandidateId]
@ElectionCandidateId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionCandidateId],
[ContentInspectionId],
[CandidateId],
[ElectionId],
[IsWinner],
[ReportedVoteCount]
FROM [Data].[ElectionCandidate]
WHERE [ElectionCandidateId] = @ElectionCandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_SelectBy_ElectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_SelectBy_ElectionId]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_SelectBy_ElectionId]
@ElectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionCandidateId],
[ContentInspectionId],
[CandidateId],
[ElectionId],
[IsWinner],
[ReportedVoteCount]
FROM [Data].[ElectionCandidate]
WHERE [ElectionId] = @ElectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionCandidate_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionCandidate_Update]
GO--
CREATE PROCEDURE [Data].[ElectionCandidate_Update]
@ElectionCandidateId int,
@ContentInspectionId int,
@CandidateId int,
@ElectionId int,
@IsWinner bit,
@ReportedVoteCount bit
AS --Generated--
BEGIN
UPDATE [Data].[ElectionCandidate] SET
[ContentInspectionId] = @ContentInspectionId,
[CandidateId] = @CandidateId,
[ElectionId] = @ElectionId,
[IsWinner] = @IsWinner,
[ReportedVoteCount] = @ReportedVoteCount
WHERE [ElectionCandidateId] = @ElectionCandidateId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_Delete]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_Delete]
@ElectionLevelId int
AS --Generated--
BEGIN
DELETE FROM [Data].[ElectionLevel]
WHERE [ElectionLevelId] = @ElectionLevelId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_Exists]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_Exists]
@ElectionLevelId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[ElectionLevel]
WHERE [ElectionLevelId] = @ElectionLevelId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_Insert]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_Insert]
@ContentInspectionId int,
@ElectionLevelTitle varchar(150)
AS --Generated--
BEGIN
INSERT INTO [Data].[ElectionLevel] (
[ContentInspectionId],
[ElectionLevelTitle]
) VALUES (
@ContentInspectionId,
@ElectionLevelTitle
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [ElectionLevelId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_List]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_List]
@ElectionLevelTitle varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelId] as [ListKey],
[ElectionLevelTitle] AS [ListLabel]
FROM [Data].[ElectionLevel]
WHERE (@ElectionLevelTitle IS NULL OR [ElectionLevelTitle] LIKE '%' + @ElectionLevelTitle + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_Search]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_Search]
@ElectionLevelTitle varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelId],
[ContentInspectionId],
[ElectionLevelTitle]
FROM [Data].[ElectionLevel]
WHERE (@ElectionLevelTitle IS NULL OR [ElectionLevelTitle] LIKE '%' + @ElectionLevelTitle + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_SelectAll]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelId],
[ContentInspectionId],
[ElectionLevelTitle]
FROM [Data].[ElectionLevel]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelId],
[ContentInspectionId],
[ElectionLevelTitle]
FROM [Data].[ElectionLevel]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_SelectBy_ElectionLevelId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_SelectBy_ElectionLevelId]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_SelectBy_ElectionLevelId]
@ElectionLevelId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelId],
[ContentInspectionId],
[ElectionLevelTitle]
FROM [Data].[ElectionLevel]
WHERE [ElectionLevelId] = @ElectionLevelId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevel_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevel_Update]
GO--
CREATE PROCEDURE [Data].[ElectionLevel_Update]
@ElectionLevelId int,
@ContentInspectionId int,
@ElectionLevelTitle varchar(150)
AS --Generated--
BEGIN
UPDATE [Data].[ElectionLevel] SET
[ContentInspectionId] = @ContentInspectionId,
[ElectionLevelTitle] = @ElectionLevelTitle
WHERE [ElectionLevelId] = @ElectionLevelId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_Delete]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_Delete]
@ElectionLevelMetaDataXrefId int
AS --Generated--
BEGIN
DELETE FROM [Data].[ElectionLevelMetaDataXref]
WHERE [ElectionLevelMetaDataXrefId] = @ElectionLevelMetaDataXrefId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_Exists]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_Exists]
@ElectionLevelMetaDataXrefId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[ElectionLevelMetaDataXref]
WHERE [ElectionLevelMetaDataXrefId] = @ElectionLevelMetaDataXrefId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_Insert]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_Insert]
@ContentInspectionId int,
@ElectionLevelId int,
@MetaDataId nchar(10) = NULL
AS --Generated--
BEGIN
INSERT INTO [Data].[ElectionLevelMetaDataXref] (
[ContentInspectionId],
[ElectionLevelId],
[MetaDataId]
) VALUES (
@ContentInspectionId,
@ElectionLevelId,
@MetaDataId
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [ElectionLevelMetaDataXrefId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_Search]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_Search]
@MetaDataId nchar(10) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelMetaDataXrefId],
[ContentInspectionId],
[ElectionLevelId],
[MetaDataId]
FROM [Data].[ElectionLevelMetaDataXref]
WHERE (@MetaDataId IS NULL OR [MetaDataId] LIKE '%' + @MetaDataId + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_SelectAll]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelMetaDataXrefId],
[ContentInspectionId],
[ElectionLevelId],
[MetaDataId]
FROM [Data].[ElectionLevelMetaDataXref]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelMetaDataXrefId],
[ContentInspectionId],
[ElectionLevelId],
[MetaDataId]
FROM [Data].[ElectionLevelMetaDataXref]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_SelectBy_ElectionLevelId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_SelectBy_ElectionLevelId]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_SelectBy_ElectionLevelId]
@ElectionLevelId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelMetaDataXrefId],
[ContentInspectionId],
[ElectionLevelId],
[MetaDataId]
FROM [Data].[ElectionLevelMetaDataXref]
WHERE [ElectionLevelId] = @ElectionLevelId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_SelectBy_ElectionLevelMetaDataXrefId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_SelectBy_ElectionLevelMetaDataXrefId]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_SelectBy_ElectionLevelMetaDataXrefId]
@ElectionLevelMetaDataXrefId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelMetaDataXrefId],
[ContentInspectionId],
[ElectionLevelId],
[MetaDataId]
FROM [Data].[ElectionLevelMetaDataXref]
WHERE [ElectionLevelMetaDataXrefId] = @ElectionLevelMetaDataXrefId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_SelectBy_MetaDataId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_SelectBy_MetaDataId]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_SelectBy_MetaDataId]
@MetaDataId nchar(10)
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[ElectionLevelMetaDataXrefId],
[ContentInspectionId],
[ElectionLevelId],
[MetaDataId]
FROM [Data].[ElectionLevelMetaDataXref]
WHERE [MetaDataId] = @MetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[ElectionLevelMetaDataXref_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[ElectionLevelMetaDataXref_Update]
GO--
CREATE PROCEDURE [Data].[ElectionLevelMetaDataXref_Update]
@ElectionLevelMetaDataXrefId int,
@ContentInspectionId int,
@ElectionLevelId int,
@MetaDataId nchar(10) = NULL
AS --Generated--
BEGIN
UPDATE [Data].[ElectionLevelMetaDataXref] SET
[ContentInspectionId] = @ContentInspectionId,
[ElectionLevelId] = @ElectionLevelId,
[MetaDataId] = @MetaDataId
WHERE [ElectionLevelMetaDataXrefId] = @ElectionLevelMetaDataXrefId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_Delete]
GO--
CREATE PROCEDURE [Data].[Location_Delete]
@LocationId int
AS --Generated--
BEGIN
DELETE FROM [Data].[Location]
WHERE [LocationId] = @LocationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_Exists]
GO--
CREATE PROCEDURE [Data].[Location_Exists]
@LocationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[Location]
WHERE [LocationId] = @LocationId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_Insert]
GO--
CREATE PROCEDURE [Data].[Location_Insert]
@ContentInspectionId int,
@LocationName varchar(150)
AS --Generated--
BEGIN
INSERT INTO [Data].[Location] (
[ContentInspectionId],
[LocationName]
) VALUES (
@ContentInspectionId,
@LocationName
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [LocationId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_List]
GO--
CREATE PROCEDURE [Data].[Location_List]
@LocationName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId] as [ListKey],
[LocationName] AS [ListLabel]
FROM [Data].[Location]
WHERE (@LocationName IS NULL OR [LocationName] LIKE '%' + @LocationName + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_Search]
GO--
CREATE PROCEDURE [Data].[Location_Search]
@LocationName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName]
FROM [Data].[Location]
WHERE (@LocationName IS NULL OR [LocationName] LIKE '%' + @LocationName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_SelectAll]
GO--
CREATE PROCEDURE [Data].[Location_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName]
FROM [Data].[Location]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[Location_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName]
FROM [Data].[Location]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_SelectBy_LocationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_SelectBy_LocationId]
GO--
CREATE PROCEDURE [Data].[Location_SelectBy_LocationId]
@LocationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[LocationId],
[ContentInspectionId],
[LocationName]
FROM [Data].[Location]
WHERE [LocationId] = @LocationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Location_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Location_Update]
GO--
CREATE PROCEDURE [Data].[Location_Update]
@LocationId int,
@ContentInspectionId int,
@LocationName varchar(150)
AS --Generated--
BEGIN
UPDATE [Data].[Location] SET
[ContentInspectionId] = @ContentInspectionId,
[LocationName] = @LocationName
WHERE [LocationId] = @LocationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_Delete]
GO--
CREATE PROCEDURE [Data].[MetaData_Delete]
@MetaDataId int
AS --Generated--
BEGIN
DELETE FROM [Data].[MetaData]
WHERE [MetaDataId] = @MetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_Exists]
GO--
CREATE PROCEDURE [Data].[MetaData_Exists]
@MetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[MetaData]
WHERE [MetaDataId] = @MetaDataId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_Insert]
GO--
CREATE PROCEDURE [Data].[MetaData_Insert]
@ContentInspectionId int,
@MetaDataName varchar(150),
@IsRequired bit,
@AppliesAtAllLevels bit,
@AppliesToCandidates bit,
@AppliesToOrganizations bit
AS --Generated--
BEGIN
INSERT INTO [Data].[MetaData] (
[ContentInspectionId],
[MetaDataName],
[IsRequired],
[AppliesAtAllLevels],
[AppliesToCandidates],
[AppliesToOrganizations]
) VALUES (
@ContentInspectionId,
@MetaDataName,
@IsRequired,
@AppliesAtAllLevels,
@AppliesToCandidates,
@AppliesToOrganizations
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [MetaDataId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_List]
GO--
CREATE PROCEDURE [Data].[MetaData_List]
@MetaDataName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[MetaDataId] as [ListKey],
[MetaDataName] AS [ListLabel]
FROM [Data].[MetaData]
WHERE (@MetaDataName IS NULL OR [MetaDataName] LIKE '%' + @MetaDataName + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_Search]
GO--
CREATE PROCEDURE [Data].[MetaData_Search]
@MetaDataName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[MetaDataId],
[ContentInspectionId],
[MetaDataName],
[IsRequired],
[AppliesAtAllLevels],
[AppliesToCandidates],
[AppliesToOrganizations]
FROM [Data].[MetaData]
WHERE (@MetaDataName IS NULL OR [MetaDataName] LIKE '%' + @MetaDataName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_SelectAll]
GO--
CREATE PROCEDURE [Data].[MetaData_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[MetaDataId],
[ContentInspectionId],
[MetaDataName],
[IsRequired],
[AppliesAtAllLevels],
[AppliesToCandidates],
[AppliesToOrganizations]
FROM [Data].[MetaData]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[MetaData_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[MetaDataId],
[ContentInspectionId],
[MetaDataName],
[IsRequired],
[AppliesAtAllLevels],
[AppliesToCandidates],
[AppliesToOrganizations]
FROM [Data].[MetaData]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_SelectBy_MetaDataId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_SelectBy_MetaDataId]
GO--
CREATE PROCEDURE [Data].[MetaData_SelectBy_MetaDataId]
@MetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[MetaDataId],
[ContentInspectionId],
[MetaDataName],
[IsRequired],
[AppliesAtAllLevels],
[AppliesToCandidates],
[AppliesToOrganizations]
FROM [Data].[MetaData]
WHERE [MetaDataId] = @MetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[MetaData_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[MetaData_Update]
GO--
CREATE PROCEDURE [Data].[MetaData_Update]
@MetaDataId int,
@ContentInspectionId int,
@MetaDataName varchar(150),
@IsRequired bit,
@AppliesAtAllLevels bit,
@AppliesToCandidates bit,
@AppliesToOrganizations bit
AS --Generated--
BEGIN
UPDATE [Data].[MetaData] SET
[ContentInspectionId] = @ContentInspectionId,
[MetaDataName] = @MetaDataName,
[IsRequired] = @IsRequired,
[AppliesAtAllLevels] = @AppliesAtAllLevels,
[AppliesToCandidates] = @AppliesToCandidates,
[AppliesToOrganizations] = @AppliesToOrganizations
WHERE [MetaDataId] = @MetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_Delete]
GO--
CREATE PROCEDURE [Data].[Organization_Delete]
@OrganizationId int
AS --Generated--
BEGIN
DELETE FROM [Data].[Organization]
WHERE [OrganizationId] = @OrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_Exists]
GO--
CREATE PROCEDURE [Data].[Organization_Exists]
@OrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[Organization]
WHERE [OrganizationId] = @OrganizationId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_Insert]
GO--
CREATE PROCEDURE [Data].[Organization_Insert]
@ContentInspectionId int,
@OrganizationName varchar(250)
AS --Generated--
BEGIN
INSERT INTO [Data].[Organization] (
[ContentInspectionId],
[OrganizationName]
) VALUES (
@ContentInspectionId,
@OrganizationName
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [OrganizationId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_List]
GO--
CREATE PROCEDURE [Data].[Organization_List]
@OrganizationName varchar(250) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId] as [ListKey],
[OrganizationName] AS [ListLabel]
FROM [Data].[Organization]
WHERE (@OrganizationName IS NULL OR [OrganizationName] LIKE '%' + @OrganizationName + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_Search]
GO--
CREATE PROCEDURE [Data].[Organization_Search]
@OrganizationName varchar(250) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName]
FROM [Data].[Organization]
WHERE (@OrganizationName IS NULL OR [OrganizationName] LIKE '%' + @OrganizationName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_SelectAll]
GO--
CREATE PROCEDURE [Data].[Organization_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName]
FROM [Data].[Organization]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[Organization_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName]
FROM [Data].[Organization]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_SelectBy_OrganizationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_SelectBy_OrganizationId]
GO--
CREATE PROCEDURE [Data].[Organization_SelectBy_OrganizationId]
@OrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationId],
[ContentInspectionId],
[OrganizationName]
FROM [Data].[Organization]
WHERE [OrganizationId] = @OrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Organization_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Organization_Update]
GO--
CREATE PROCEDURE [Data].[Organization_Update]
@OrganizationId int,
@ContentInspectionId int,
@OrganizationName varchar(250)
AS --Generated--
BEGIN
UPDATE [Data].[Organization] SET
[ContentInspectionId] = @ContentInspectionId,
[OrganizationName] = @OrganizationName
WHERE [OrganizationId] = @OrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_Delete]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_Delete]
@OrganizationMetaDataId int
AS --Generated--
BEGIN
DELETE FROM [Data].[OrganizationMetaData]
WHERE [OrganizationMetaDataId] = @OrganizationMetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_Exists]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_Exists]
@OrganizationMetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[OrganizationMetaData]
WHERE [OrganizationMetaDataId] = @OrganizationMetaDataId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_Insert]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_Insert]
@ContentInspectionId int,
@OrganizationId int,
@MetaDataId int,
@MetaDataValue varchar(max)
AS --Generated--
BEGIN
INSERT INTO [Data].[OrganizationMetaData] (
[ContentInspectionId],
[OrganizationId],
[MetaDataId],
[MetaDataValue]
) VALUES (
@ContentInspectionId,
@OrganizationId,
@MetaDataId,
@MetaDataValue
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [OrganizationMetaDataId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_Search]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_Search]
@MetaDataValue varchar(max) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationMetaDataId],
[ContentInspectionId],
[OrganizationId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[OrganizationMetaData]
WHERE (@MetaDataValue IS NULL OR [MetaDataValue] LIKE '%' + @MetaDataValue + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_SelectAll]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationMetaDataId],
[ContentInspectionId],
[OrganizationId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[OrganizationMetaData]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationMetaDataId],
[ContentInspectionId],
[OrganizationId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[OrganizationMetaData]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_SelectBy_MetaDataId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_SelectBy_MetaDataId]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_SelectBy_MetaDataId]
@MetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationMetaDataId],
[ContentInspectionId],
[OrganizationId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[OrganizationMetaData]
WHERE [MetaDataId] = @MetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_SelectBy_OrganizationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_SelectBy_OrganizationId]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_SelectBy_OrganizationId]
@OrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationMetaDataId],
[ContentInspectionId],
[OrganizationId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[OrganizationMetaData]
WHERE [OrganizationId] = @OrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_SelectBy_OrganizationMetaDataId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_SelectBy_OrganizationMetaDataId]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_SelectBy_OrganizationMetaDataId]
@OrganizationMetaDataId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[OrganizationMetaDataId],
[ContentInspectionId],
[OrganizationId],
[MetaDataId],
[MetaDataValue]
FROM [Data].[OrganizationMetaData]
WHERE [OrganizationMetaDataId] = @OrganizationMetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[OrganizationMetaData_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[OrganizationMetaData_Update]
GO--
CREATE PROCEDURE [Data].[OrganizationMetaData_Update]
@OrganizationMetaDataId int,
@ContentInspectionId int,
@OrganizationId int,
@MetaDataId int,
@MetaDataValue varchar(max)
AS --Generated--
BEGIN
UPDATE [Data].[OrganizationMetaData] SET
[ContentInspectionId] = @ContentInspectionId,
[OrganizationId] = @OrganizationId,
[MetaDataId] = @MetaDataId,
[MetaDataValue] = @MetaDataValue
WHERE [OrganizationMetaDataId] = @OrganizationMetaDataId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[TableVersion_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[TableVersion_Delete]
GO--
CREATE PROCEDURE [Data].[TableVersion_Delete]
@TableId int
AS --Generated--
BEGIN
DELETE FROM [Data].[TableVersion]
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[TableVersion_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[TableVersion_Exists]
GO--
CREATE PROCEDURE [Data].[TableVersion_Exists]
@TableId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[TableVersion]
WHERE [TableId] = @TableId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[TableVersion_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[TableVersion_Insert]
GO--
CREATE PROCEDURE [Data].[TableVersion_Insert]
@TableName varchar(150),
@Version int
AS --Generated--
BEGIN
INSERT INTO [Data].[TableVersion] (
[TableName],
[Version]
) VALUES (
@TableName,
@Version
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [TableId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[TableVersion_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[TableVersion_Search]
GO--
CREATE PROCEDURE [Data].[TableVersion_Search]
@TableName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Data].[TableVersion]
WHERE (@TableName IS NULL OR [TableName] LIKE '%' + @TableName + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[TableVersion_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[TableVersion_SelectAll]
GO--
CREATE PROCEDURE [Data].[TableVersion_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Data].[TableVersion]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[TableVersion_SelectBy_TableId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[TableVersion_SelectBy_TableId]
GO--
CREATE PROCEDURE [Data].[TableVersion_SelectBy_TableId]
@TableId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[TableId],
[TableName],
[Version]
FROM [Data].[TableVersion]
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[TableVersion_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[TableVersion_Update]
GO--
CREATE PROCEDURE [Data].[TableVersion_Update]
@TableId int,
@TableName varchar(150),
@Version int
AS --Generated--
BEGIN
UPDATE [Data].[TableVersion] SET
[TableName] = @TableName,
[Version] = @Version
WHERE [TableId] = @TableId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_Delete]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_Delete]
GO--
CREATE PROCEDURE [Data].[Voter_Delete]
@VoterId int
AS --Generated--
BEGIN
DELETE FROM [Data].[Voter]
WHERE [VoterId] = @VoterId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_Exists]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_Exists]
GO--
CREATE PROCEDURE [Data].[Voter_Exists]
@VoterId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
IF EXISTS(
SELECT * FROM [Data].[Voter]
WHERE [VoterId] = @VoterId
) BEGIN
SELECT CAST(1 as bit) as [Exists]
END ELSE BEGIN
SELECT CAST(0 as bit) as [Exists]
END
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_Insert]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_Insert]
GO--
CREATE PROCEDURE [Data].[Voter_Insert]
@UserId int,
@ContentInspectionId int,
@LocationId int,
@VoterName varchar(150),
@PostalCode char(6),
@FavoriteOrganizationId int
AS --Generated--
BEGIN
INSERT INTO [Data].[Voter] (
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
) VALUES (
@UserId,
@ContentInspectionId,
@LocationId,
@VoterName,
@PostalCode,
@FavoriteOrganizationId
)
SELECT CAST(SCOPE_IDENTITY() AS int) AS [VoterId]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_List]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_List]
GO--
CREATE PROCEDURE [Data].[Voter_List]
@VoterName varchar(150) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId] as [ListKey],
[VoterName] AS [ListLabel]
FROM [Data].[Voter]
WHERE (@VoterName IS NULL OR [VoterName] LIKE '%' + @VoterName + '%')
ORDER BY [ListLabel] ASC
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_Search]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_Search]
GO--
CREATE PROCEDURE [Data].[Voter_Search]
@VoterName varchar(150) = NULL,
@PostalCode char(6) = NULL
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId],
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
FROM [Data].[Voter]
WHERE (@VoterName IS NULL OR [VoterName] LIKE '%' + @VoterName + '%')
AND (@PostalCode IS NULL OR [PostalCode] LIKE '%' + @PostalCode + '%')
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_SelectAll]
GO--
CREATE PROCEDURE [Data].[Voter_SelectAll]
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId],
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
FROM [Data].[Voter]
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_SelectBy_ContentInspectionId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_SelectBy_ContentInspectionId]
GO--
CREATE PROCEDURE [Data].[Voter_SelectBy_ContentInspectionId]
@ContentInspectionId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId],
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
FROM [Data].[Voter]
WHERE [ContentInspectionId] = @ContentInspectionId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_SelectBy_FavoriteOrganizationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_SelectBy_FavoriteOrganizationId]
GO--
CREATE PROCEDURE [Data].[Voter_SelectBy_FavoriteOrganizationId]
@FavoriteOrganizationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId],
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
FROM [Data].[Voter]
WHERE [FavoriteOrganizationId] = @FavoriteOrganizationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_SelectBy_LocationId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_SelectBy_LocationId]
GO--
CREATE PROCEDURE [Data].[Voter_SelectBy_LocationId]
@LocationId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId],
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
FROM [Data].[Voter]
WHERE [LocationId] = @LocationId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_SelectBy_UserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_SelectBy_UserId]
GO--
CREATE PROCEDURE [Data].[Voter_SelectBy_UserId]
@UserId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId],
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
FROM [Data].[Voter]
WHERE [UserId] = @UserId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_SelectBy_VoterId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_SelectBy_VoterId]
GO--
CREATE PROCEDURE [Data].[Voter_SelectBy_VoterId]
@VoterId int
AS --Generated--
BEGIN
SET NOCOUNT ON;
SELECT
[VoterId],
[UserId],
[ContentInspectionId],
[LocationId],
[VoterName],
[PostalCode],
[FavoriteOrganizationId]
FROM [Data].[Voter]
WHERE [VoterId] = @VoterId
END
GO--
-----------------------------------------------------------------------------------
--Do not modify this file, instead use an alter proc to over-write the procedure.--
--Make sure you follow the same expected interface of parameters, and resultsets.--
-----------------------------------------------------------------------------------
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Data].[Voter_Update]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Data].[Voter_Update]
GO--
CREATE PROCEDURE [Data].[Voter_Update]
@VoterId int,
@UserId int,
@ContentInspectionId int,
@LocationId int,
@VoterName varchar(150),
@PostalCode char(6),
@FavoriteOrganizationId int
AS --Generated--
BEGIN
UPDATE [Data].[Voter] SET
[UserId] = @UserId,
[ContentInspectionId] = @ContentInspectionId,
[LocationId] = @LocationId,
[VoterName] = @VoterName,
[PostalCode] = @PostalCode,
[FavoriteOrganizationId] = @FavoriteOrganizationId
WHERE [VoterId] = @VoterId
END
GO--
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Auth].[Permission_SelectBy_UserId]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Auth].[Permission_SelectBy_UserId]
GO--
CREATE PROCEDURE [Auth].[Permission_SelectBy_UserId]
@UserId int
AS
BEGIN
SET NOCOUNT ON;
SELECT
[PermissionId],
[PermissionName],
[Title],
[IsRead]
FROM [Auth].[Permission]
WHERE
[PermissionId] IN -- Anonymous / All users permissions
( SELECT [PermissionId]
FROM [Auth].[RolePermission] RP
INNER JOIN
[Auth].[Role] R
ON RP.[RoleId] = R.[RoleId]
WHERE
(R.[ApplyToAnon] = 1 OR (R.[ApplyToAllUsers] = 1 AND @UserId > 0))
AND R.[IsActive] = 1
) OR [PermissionId] IN -- Specifically assigned permissions
( SELECT [PermissionId]
FROM [Auth].[RolePermission] RP
INNER JOIN
[Auth].[Role] R
ON RP.[RoleId] = R.[RoleId]
INNER JOIN
[Auth].[UserRole] UR
ON R.[RoleId] = UR.[RoleId]
WHERE
UR.[UserId] = @UserId
AND R.[IsActive] = 1
)
END
GO--
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Organizations_SelectAll]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Organizations_SelectAll]
GO--
CREATE PROCEDURE [Client].[Organizations_SelectAll]
AS
BEGIN
SET NOCOUNT ON;
SELECT *
FROM [Client].[Organizations]
ORDER BY [OrganizationName] ASC
END
GO--
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Users_SelectByUser_Current]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Users_SelectByUser_Current]
GO--
CREATE PROCEDURE [Client].[Users_SelectByUser_Current]
@AuthUserId int
AS
BEGIN
SET NOCOUNT ON;
SELECT *
FROM [Client].[Users]
WHERE [UserId] = @AuthUserId
END
GO--
IF EXISTS(SELECT * FROM [dbo].[sysobjects] WHERE ID=object_id(N'[Client].[Users_SelectByUser_UpdateProfile]') AND OBJECTPROPERTY(id, N'IsProcedure')=1) DROP PROC [Client].[Users_SelectByUser_UpdateProfile]
GO--
CREATE PROCEDURE [Client].[Users_SelectByUser_UpdateProfile]
@AuthUserId int,
@DisplayName varchar(50),
@Email varchar(100)
AS
BEGIN
SET NOCOUNT ON;
if( LEN(@DisplayName) <= 1 ) SET @DisplayName = 'My Name Is Invaid';
UPDATE [Auth].[User] SET
[DisplayName] = @DisplayName,
[Email] = @Email
WHERE [UserId] = @AuthUserId
SELECT *
FROM [Client].[Users]
WHERE [UserId] = @AuthUserId
END
GO--
CREATE NONCLUSTERED INDEX [IX_User_UserName]
ON [Auth].[User] ([UserName])
CREATE NONCLUSTERED INDEX [IX_User_Email]
ON [Auth].[User] ([Email])
CREATE NONCLUSTERED INDEX [IX_User_UserToken]
ON [Auth].[User] ([UserToken])
CREATE NONCLUSTERED INDEX [IX_User_WINSID]
ON [Auth].[User] ([WINSID])
GO--
CREATE UNIQUE CLUSTERED INDEX [IX_Client_Candidates_CandidateId]
ON [Client].[Candidates] ([CandidateId])
CREATE NONCLUSTERED INDEX [IX_Client_Candidates_ContentInspectionId]
ON [Client].[Candidates] ([ContentInspectionId])
CREATE NONCLUSTERED INDEX [IX_Client_Candidates_OrganizationId]
ON [Client].[Candidates] ([OrganizationId])
CREATE NONCLUSTERED INDEX [IX_Client_Candidates_ProposedByUserId]
ON [Client].[Candidates] ([ProposedByUserId])
CREATE NONCLUSTERED INDEX [IX_Client_Candidates_ConfirmedByUserId]
ON [Client].[Candidates] ([ConfirmedByUserId])
GO--
CREATE UNIQUE CLUSTERED INDEX [IX_Client_Locations_LocationId]
ON [Client].[Locations] ([LocationId])
CREATE NONCLUSTERED INDEX [IX_Client_Locations_ContentInspectionId]
ON [Client].[Locations] ([ContentInspectionId])
CREATE NONCLUSTERED INDEX [IX_Client_Locations_ProposedByUserId]
ON [Client].[Locations] ([ProposedByUserId])
CREATE NONCLUSTERED INDEX [IX_Client_Locations_ConfirmedByUserId]
ON [Client].[Locations] ([ConfirmedByUserId])
GO--
CREATE UNIQUE CLUSTERED INDEX [IX_Client_Organizations_OrganizationId]
ON [Client].[Organizations] ([OrganizationId])
CREATE NONCLUSTERED INDEX [IX_Client_Organizations_ContentInspectionId]
ON [Client].[Organizations] ([ContentInspectionId])
CREATE NONCLUSTERED INDEX [IX_Client_Organizations_ProposedByUserId]
ON [Client].[Organizations] ([ProposedByUserId])
CREATE NONCLUSTERED INDEX [IX_Client_Organizations_ConfirmedByUserId]
ON [Client].[Organizations] ([ConfirmedByUserId])
GO--
CREATE NONCLUSTERED INDEX [IX_Data_ElectionLevelMetaDataXref_MetaDataId]
ON [Data].[ElectionLevelMetaDataXref] ([MetaDataId])
GO--
ALTER TABLE [Auth].[RolePermission]
ADD CONSTRAINT [FK_RolePermission_RoleId] FOREIGN KEY ([RoleId]) REFERENCES [Auth].[Role] ([RoleId])
, CONSTRAINT [FK_RolePermission_PermissionId] FOREIGN KEY ([PermissionId]) REFERENCES [Auth].[Permission] ([PermissionId])
GO--
ALTER TABLE [Auth].[UserRole]
ADD CONSTRAINT [FK_UserRole_RoleId] FOREIGN KEY ([RoleId]) REFERENCES [Auth].[Role] ([RoleId])
, CONSTRAINT [FK_UserRole_UserId] FOREIGN KEY ([UserId]) REFERENCES [Auth].[User] ([UserId])
GO--
ALTER TABLE [Data].[Candidate]
ADD CONSTRAINT [FK_Data_Candidate_UserId] FOREIGN KEY ([UserId]) REFERENCES [Auth].[User] ([UserId])
, CONSTRAINT [FK_Data_Candidate_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
, CONSTRAINT [FK_Data_Candidate_LocationId] FOREIGN KEY ([LocationId]) REFERENCES [Data].[Location] ([LocationId])
, CONSTRAINT [FK_Data_Candidate_OrganizationId] FOREIGN KEY ([OrganizationId]) REFERENCES [Data].[Organization] ([OrganizationId])
GO--
ALTER TABLE [Data].[CandidateMetaData]
ADD CONSTRAINT [FK_Data_CandidateMetaData_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
, CONSTRAINT [FK_Data_CandidateMetaData_CandidateId] FOREIGN KEY ([CandidateId]) REFERENCES [Data].[Candidate] ([CandidateId])
, CONSTRAINT [FK_Data_CandidateMetaData_MetaDataId] FOREIGN KEY ([MetaDataId]) REFERENCES [Data].[MetaData] ([MetaDataId])
GO--
ALTER TABLE [Data].[ContentInspection]
ADD CONSTRAINT [FK_Data_ContentInspection_ProposedByUserId] FOREIGN KEY ([ProposedByUserId]) REFERENCES [Auth].[User] ([UserId])
, CONSTRAINT [FK_Data_ContentInspection_ConfirmedByUserId] FOREIGN KEY ([ConfirmedByUserId]) REFERENCES [Auth].[User] ([UserId])
GO--
ALTER TABLE [Data].[Election]
ADD CONSTRAINT [FK_Data_Election_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
, CONSTRAINT [FK_Data_Election_ElectionLevelId] FOREIGN KEY ([ElectionLevelId]) REFERENCES [Data].[ElectionLevel] ([ElectionLevelId])
, CONSTRAINT [FK_Data_Election_LocationId] FOREIGN KEY ([LocationId]) REFERENCES [Data].[Location] ([LocationId])
GO--
ALTER TABLE [Data].[ElectionCandidate]
ADD CONSTRAINT [FK_Data_ElectionCandidate_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
, CONSTRAINT [FK_Data_ElectionCandidate_CandidateId] FOREIGN KEY ([CandidateId]) REFERENCES [Data].[Candidate] ([CandidateId])
, CONSTRAINT [FK_Data_ElectionCandidate_ElectionId] FOREIGN KEY ([ElectionId]) REFERENCES [Data].[Election] ([ElectionId])
GO--
ALTER TABLE [Data].[ElectionLevel]
ADD CONSTRAINT [FK_Data_ElectionLevel_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
GO--
ALTER TABLE [Data].[ElectionLevelMetaDataXref]
ADD CONSTRAINT [FK_Data_ElectionLevelMetaDataXref_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
, CONSTRAINT [FK_Data_ElectionLevelMetaDataXref_ElectionLevelId] FOREIGN KEY ([ElectionLevelId]) REFERENCES [Data].[ElectionLevel] ([ElectionLevelId])
GO--
ALTER TABLE [Data].[Location]
ADD CONSTRAINT [FK_Data_Location_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
GO--
ALTER TABLE [Data].[MetaData]
ADD CONSTRAINT [FK_Data_MetaData_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
GO--
ALTER TABLE [Data].[Organization]
ADD CONSTRAINT [FK_Data_Organization_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
GO--
ALTER TABLE [Data].[OrganizationMetaData]
ADD CONSTRAINT [FK_Data_OrganizationMetaData_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
, CONSTRAINT [FK_Data_OrganizationMetaData_OrganizationId] FOREIGN KEY ([OrganizationId]) REFERENCES [Data].[Organization] ([OrganizationId])
, CONSTRAINT [FK_Data_OrganizationMetaData_MetaDataId] FOREIGN KEY ([MetaDataId]) REFERENCES [Data].[MetaData] ([MetaDataId])
GO--
ALTER TABLE [Data].[Voter]
ADD CONSTRAINT [FK_Data_Voter_UserId] FOREIGN KEY ([UserId]) REFERENCES [Auth].[User] ([UserId])
, CONSTRAINT [FK_Data_Voter_ContentInspectionId] FOREIGN KEY ([ContentInspectionId]) REFERENCES [Data].[ContentInspection] ([ContentInspectionId])
, CONSTRAINT [FK_Data_Voter_LocationId] FOREIGN KEY ([LocationId]) REFERENCES [Data].[Location] ([LocationId])
, CONSTRAINT [FK_Data_Voter_FavoriteOrganizationId] FOREIGN KEY ([FavoriteOrganizationId]) REFERENCES [Data].[Organization] ([OrganizationId])
GO--
IF NOT EXISTS(SELECT * FROM [Auth].[User]) BEGIN
INSERT INTO [Auth].[User]
([UserName]
,[Password]
,[DisplayName]
,[Email]
,[AuthToken]
,[UserToken]
,[FailedLogins]
,[IsActive])
SELECT
'SecurityAdmin'
,HASHBYTES('MD5','$ecurity4dmiN!')
,'Security Admin'
,'Security@test.com'
,NEWID()
,NEWID()
,0
,1
UNION ALL SELECT
'test'
,HASHBYTES('MD5','test')
,'Test User'
,'Test@test.com'
,NEWID()
,NEWID()
,0
,1
UNION ALL SELECT
'test2'
,HASHBYTES('MD5','test')
,'Test User 2'
,'Test2@test.com'
,NEWID()
,NEWID()
,0
,1
UNION ALL SELECT
'test3'
,HASHBYTES('MD5','test')
,'Test User 3'
,'Test3@test.com'
,NEWID()
,NEWID()
,0
,1
END
GO--
IF NOT EXISTS(SELECT * FROM [Auth].[Role]) BEGIN
INSERT INTO [Auth].[Role]
([Title]
,[Description]
,[IsActive]
,[ApplyToAnon]
,[ApplyToAllUsers]
,[PreventAddingUsers])
SELECT
'Security Admins'
,'A role for the security admin user.'
,1
,0
,0
,1
UNION ALL SELECT
'All Users'
,'A role that applies permissions to all users.'
,1
,0
,1
,1
UNION ALL SELECT
'Anonymous Users'
,'A role that applies permissions to anonymous users (and all users).'
,1
,1
,1
,1
END
GO--
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_Exists' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_Exists', 'Client Candidates Exists',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_Search' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_Search', 'Client Candidates Search',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_SelectAll' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_SelectAll', 'Client Candidates SelectAll',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_SelectBy_CandidateId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_SelectBy_CandidateId', 'Client Candidates SelectBy CandidateId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_SelectBy_ContentInspectionId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_SelectBy_ContentInspectionId', 'Client Candidates SelectBy ContentInspectionId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_SelectBy_OrganizationId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_SelectBy_OrganizationId', 'Client Candidates SelectBy OrganizationId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_SelectBy_ProposedByUserId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_SelectBy_ProposedByUserId', 'Client Candidates SelectBy ProposedByUserId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Candidates_SelectBy_ConfirmedByUserId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Candidates_SelectBy_ConfirmedByUserId', 'Client Candidates SelectBy ConfirmedByUserId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Locations_Search' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Locations_Search', 'Client Locations Search',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Locations_SelectAll' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Locations_SelectAll', 'Client Locations SelectAll',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Locations_SelectBy_LocationId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Locations_SelectBy_LocationId', 'Client Locations SelectBy LocationId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Locations_SelectBy_ContentInspectionId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Locations_SelectBy_ContentInspectionId', 'Client Locations SelectBy ContentInspectionId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Locations_SelectBy_ProposedByUserId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Locations_SelectBy_ProposedByUserId', 'Client Locations SelectBy ProposedByUserId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Locations_SelectBy_ConfirmedByUserId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Locations_SelectBy_ConfirmedByUserId', 'Client Locations SelectBy ConfirmedByUserId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Organizations_SelectAll' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Organizations_SelectAll', 'Client Organizations SelectAll',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Organizations_Exists' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Organizations_Exists', 'Client Organizations Exists',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Organizations_Search' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Organizations_Search', 'Client Organizations Search',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Organizations_SelectBy_OrganizationId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Organizations_SelectBy_OrganizationId', 'Client Organizations SelectBy OrganizationId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Organizations_SelectBy_ContentInspectionId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Organizations_SelectBy_ContentInspectionId', 'Client Organizations SelectBy ContentInspectionId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Organizations_SelectBy_ProposedByUserId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Organizations_SelectBy_ProposedByUserId', 'Client Organizations SelectBy ProposedByUserId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Organizations_SelectBy_ConfirmedByUserId' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Organizations_SelectBy_ConfirmedByUserId', 'Client Organizations SelectBy ConfirmedByUserId',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Users_SelectByUser_Current' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Users_SelectByUser_Current', 'Client Users SelectByUser Current',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Users_SelectByUser_UpdateProfile' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Users_SelectByUser_UpdateProfile', 'Client Users SelectByUser UpdateProfile',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Users_Exists' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Users_Exists', 'Client Users Exists',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Users_Search' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Users_Search', 'Client Users Search',1);
IF NOT EXISTS(SELECT * FROM [Auth].[Permission] WHERE [PermissionName] = 'Client_Users_SelectAll' )
INSERT INTO [Auth].[Permission] ([PermissionName],[Title],[IsRead]) VALUES ('Client_Users_SelectAll', 'Client Users SelectAll',1);
GO--
DECLARE @SecurityAdminRoleId int;
DECLARE @AllUsersRoleId int;
DECLARE @AnonymousRoleId int;
DECLARE @SecurityAdminUserId int;
SELECT @SecurityAdminRoleId = [RoleId] FROM [Auth].[Role] WHERE [Title] = 'Security Admins'
SELECT @AllUsersRoleId = [RoleId] FROM [Auth].[Role] WHERE [Title] = 'All Users'
SELECT @AnonymousRoleId = [RoleId] FROM [Auth].[Role] WHERE [Title] = 'Anonymous Users'
SELECT @SecurityAdminUserId = [UserId] FROM [Auth].[User] WHERE [UserName] = 'SecurityAdmin'
-- Grant manage user role associations to security admin
INSERT INTO [Auth].[RolePermission]([RoleId],[PermissionId])
SELECT @SecurityAdminRoleId, [PermissionId]
FROM [Auth].[Permission] P
WHERE [PermissionName] LIKE 'Auth%'
AND NOT EXISTS(
SELECT * FROM [Auth].[RolePermission] RP
WHERE [RoleId] = @SecurityAdminRoleId and RP.[PermissionId] = P.[PermissionId]
)
-- Grant write access to authenticated users
INSERT INTO [Auth].[RolePermission]([RoleId],[PermissionId])
SELECT @AllUsersRoleId, [PermissionId]
FROM [Auth].[Permission] P
WHERE [IsRead] = 0
AND NOT [PermissionName] LIKE 'Auth%'
AND NOT EXISTS(
SELECT * FROM [Auth].[RolePermission] RP
WHERE [RoleId] = @AllUsersRoleId and RP.[PermissionId] = P.[PermissionId]
)
-- Grant read access to anonymous users (and authenticated users)
INSERT INTO [Auth].[RolePermission]([RoleId],[PermissionId])
SELECT @AnonymousRoleId, [PermissionId]
FROM [Auth].[Permission] P
WHERE [IsRead] = 1
AND NOT [PermissionName] LIKE 'Auth%'
AND NOT EXISTS(
SELECT * FROM [Auth].[RolePermission] RP
WHERE [RoleId] = @AnonymousRoleId and RP.[PermissionId] = P.[PermissionId]
)
GO--
IF NOT EXISTS(SELECT * FROM [Data].[ElectionLevel]) BEGIN
DECLARE @Now DateTime; SET @Now = GETDATE();
DECLARE @LastId int;
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[ElectionLevel_Insert]
@ContentInspectionId = @LastId,
@ElectionLevelTitle = 'Canada - Federal / National Elections'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[ElectionLevel_Insert]
@ContentInspectionId = @LastId,
@ElectionLevelTitle = 'Canada - Provincial / Territorial Elections'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Municipal_elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[ElectionLevel_Insert]
@ContentInspectionId = @LastId,
@ElectionLevelTitle = 'Canada - Municipal Elections'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[ElectionLevel_Insert]
@ContentInspectionId = @LastId,
@ElectionLevelTitle = 'Canada - Provincial Senate Nominations'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[ElectionLevel_Insert]
@ContentInspectionId = @LastId,
@ElectionLevelTitle = 'Canada - City Mayors'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[ElectionLevel_Insert]
@ContentInspectionId = @LastId,
@ElectionLevelTitle = 'Canada - City District Wards'
END
GO--
IF NOT EXISTS(SELECT * FROM [Data].[Organization]) BEGIN
DECLARE @Now DateTime; SET @Now = GETDATE();
DECLARE @LastId int;
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Conservative'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'New Democratic'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Liberal'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Bloc Quebecois'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Green'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Independent'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Chritsian Heritage'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Marxist-Leninist'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Libertarian'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Progressive Canadian'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Rhinoceros'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Pirate'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Communist'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Canadian Action'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Marijuana'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Animal Alliance'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'Western Block'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'United'
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Organization_Insert]
@ContentInspectionId = @LastId,
@OrganizationName = 'First Peoples Nation'
END
GO--
IF NOT EXISTS(SELECT * FROM [Data].[MetaData]) BEGIN
DECLARE @Now DateTime; SET @Now = GETDATE();
DECLARE @LastId int;
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://www.facebook.com'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[MetaData_Insert]
@ContentInspectionId = @LastId,
@MetaDataName = 'Facebook Page',
@IsRequired = 0,
@AppliesAtAllLevels = 1,
@AppliesToCandidates = 1,
@AppliesToOrganizations =1
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://www.twitter.com'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[MetaData_Insert]
@ContentInspectionId = @LastId,
@MetaDataName = 'Twitter',
@IsRequired = 0,
@AppliesAtAllLevels = 1,
@AppliesToCandidates = 1,
@AppliesToOrganizations =1
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://www.youtube.com'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[MetaData_Insert]
@ContentInspectionId = @LastId,
@MetaDataName = 'YouTube Channel',
@IsRequired = 0,
@AppliesAtAllLevels = 1,
@AppliesToCandidates = 1,
@AppliesToOrganizations =1
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = ''
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[MetaData_Insert]
@ContentInspectionId = @LastId,
@MetaDataName = 'Platform Summary',
@IsRequired = 1,
@AppliesAtAllLevels = 1,
@AppliesToCandidates = 1,
@AppliesToOrganizations =1
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://www.wikipedia.com'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[MetaData_Insert]
@ContentInspectionId = @LastId,
@MetaDataName = 'Wikipedia Article',
@IsRequired = 1,
@AppliesAtAllLevels = 1,
@AppliesToCandidates = 1,
@AppliesToOrganizations =1
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = ''
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[MetaData_Insert]
@ContentInspectionId = @LastId,
@MetaDataName = 'Platform Website',
@IsRequired = 1,
@AppliesAtAllLevels = 1,
@AppliesToCandidates = 1,
@AppliesToOrganizations =1
END
GO--
IF NOT EXISTS(SELECT * FROM [Data].[Location]) BEGIN
DECLARE @Now DateTime; SET @Now = GETDATE();
DECLARE @LastId int;
EXEC [Data].[ContentInspection_Insert]
@IsArchived =0,
@IsBeingProposed =0,
@ProposedByUserId =1,
@ConfirmedByUserId =1,
@FalseInfoCount =0,
@TrueInfoCount =1,
@AdminInpsected =0,
@DateLastChecked =@Now,
@SourceUrl = 'http://en.wikipedia.org/wiki/Elections_in_Canada'
SELECT TOP 1 @LastId = [ContentInspectionId] FROM [Data].[ContentInspection] ORDER BY [ContentInspectionId] DESC
EXEC [Data].[Location_Insert]
@ContentInspectionId = @LastId,
@LocationName = 'Edmonton, Alberta, Canada'
END
GO--
|
package space.harbour.l111.ehcache;
import net.sf.ehcache.Cache;
import net.sf.ehcache.CacheManager;
import net.sf.ehcache.config.CacheConfiguration;
import net.sf.ehcache.store.MemoryStoreEvictionPolicy;
/**
* Created by tully.
*/
public class EhcacheHelper {
static final int MAX_ENTRIES = 10;
static final int LIFE_TIME_SEC = 1;
static final int IDLE_TIME_SEC = 1;
static Cache createLifeCache(CacheManager manager, String name) {
CacheConfiguration configuration = new CacheConfiguration(name, MAX_ENTRIES);
configuration.memoryStoreEvictionPolicy(MemoryStoreEvictionPolicy.FIFO)
.timeToLiveSeconds(LIFE_TIME_SEC);
Cache cache = new Cache(configuration);
manager.addCache(cache);
return cache;
}
static Cache createIdleCache(CacheManager manager, String name) {
CacheConfiguration configuration = new CacheConfiguration(name, MAX_ENTRIES);
configuration.memoryStoreEvictionPolicy(MemoryStoreEvictionPolicy.FIFO)
.timeToIdleSeconds(IDLE_TIME_SEC);
Cache cache = new Cache(configuration);
manager.addCache(cache);
return cache;
}
static Cache createEternalCache(CacheManager manager, String name) {
CacheConfiguration configuration = new CacheConfiguration(name, MAX_ENTRIES);
configuration.memoryStoreEvictionPolicy(MemoryStoreEvictionPolicy.FIFO)
.eternal(true);
Cache cache = new Cache(configuration);
manager.addCache(cache);
return cache;
}
}
|
#pragma once
#include "StockTypeMacro.h"
#include "BigNumber/BigNumberAPI.h"
#include <vector>
#include <memory>
#include "IntDateTime/IntDateTimeAPI.h"
enum FilterType
{
FILTER_INIT,
ALL_STOCK,
RISE_UP,
FALL_DOWN,
};
enum StrategyType
{
STRATEGY_INIT,
SAR_RISE_BACK_COUNT,
SAR_RISE_BACK,
CATCH_UP,
SAR_RISE_BACK_THIRTY_LINE,
LINE_BACK,
STRATEGY_TYPE_SIZE,
RECONSTRUCTION,
UPWARD,
T_ADD_0
};
enum SolutionType
{
SOLUTION_INIT,
AVG_FUND_HIGH_SCORE,
STRATEGY_SET,
DISPOSABLE_STRATEGY,
INTEGRATED_STRATEGY,
OBSERVE_STRATEGY
};
struct StockTypeAPI StockLoadInfo
{
//ÊÇ·ñÊÇ×Ô¶¨Òå
bool m_isCustomize;
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable:4251)
#endif
//ËùÓÐgupiao£¬ÔÚ×Ô¶¨ÒåÏÂÓÐЧ
std::vector<std::string> m_allStock;
#ifdef _MSC_VER
#pragma warning(pop)
#endif
//ÊÇ·ñyejizengzhang
FilterType m_filterType;
//ÊÇ·ñÈ¥³ýjiejin
bool m_isDislodgeLiftBan;
//ÊÇ·ñÊÇkechuangban
bool m_isDislodge688;
/** ¹¹Ô캯Êý
*/
StockLoadInfo()
{
m_isCustomize = false;
m_filterType = FILTER_INIT;
m_isDislodgeLiftBan = false;
m_isDislodge688 = false;
}
};
struct StockTypeAPI StockInfo
{
//¼Û¸ñ
BigNumber m_price;
//°Ù·Ö±È 0-100
BigNumber m_percent;
//·ÖÊý
BigNumber m_score;
//±ÈÀý 0-1
BigNumber m_rate;
};
struct StockTypeAPI ChooseParam
{
//ʹÓõÄÀàÐÍ
StrategyType m_useType;
//ʹÓõļÆÊýÀàÐÍ
StrategyType m_useCountType;
//ÊÇ·ñÊǹ۲ìÀàÐÍ
bool m_isObserve;
//½â¾ö·½°¸ÀàÐÍ£¬Èç¹ûÊÇobserverÔòÊÇÄÚ²¿ÀàÐÍ£¬²»ÊÇÔòÖ±½ÓʹÓÃ
SolutionType m_solutionType;
/** ¹¹Ô캯Êý
*/
ChooseParam();
/** ÊÇ·ñµÈÓÚ
@param [in] chooseParam Ñ¡Ôñ²ÎÊý
@return ·µ»ØÊÇ·ñµÈÓÚ
*/
bool operator==(const ChooseParam& chooseParam);
/** ÊÇ·ñ²»µÈÓÚ
@param [in] chooseParam Ñ¡Ôñ²ÎÊý
@return ·µ»ØÊÇ·ñµÈÓÚ
*/
bool operator!=(const ChooseParam& chooseParam);
/** ÊÇ·ñ²»µÈÓÚ
@param [in] chooseParam1 Ñ¡Ôñ²ÎÊý1
@param [in] chooseParam2 Ñ¡Ôñ²ÎÊý2
@return ·µ»ØÊÇ·ñµÈÓÚ
*/
friend bool operator< (const ChooseParam& chooseParam1, const ChooseParam& chooseParam2)
{
if (chooseParam1.m_solutionType < chooseParam2.m_solutionType)
{
return true;
}
if (chooseParam1.m_solutionType > chooseParam2.m_solutionType)
{
return false;
}
if (chooseParam1.m_useType < chooseParam2.m_useType)
{
return true;
}
if (chooseParam1.m_useType > chooseParam2.m_useType)
{
return false;
}
if (chooseParam1.m_useCountType < chooseParam2.m_useCountType)
{
return true;
}
if (chooseParam1.m_useCountType > chooseParam2.m_useCountType)
{
return false;
}
if (chooseParam1.m_isObserve < chooseParam2.m_isObserve)
{
return true;
}
if (chooseParam1.m_isObserve > chooseParam2.m_isObserve)
{
return false;
}
return false;
}
};
class Solution;
class Strategy;
struct SolutionInfo;
struct StrategyInfo;
class StockMarket;
class StockTypeAPI StockStorageBase
{
public:
virtual std::vector<std::string>* filterStock(StrategyType strategyType, const IntDateTime& date) = 0;
virtual std::shared_ptr<Solution> solution(SolutionType solutionType) = 0;
virtual std::shared_ptr<Strategy> strategy(StrategyType strategyType) = 0;
virtual std::shared_ptr<SolutionInfo> solutionInfo(SolutionType solutionType) = 0;
virtual std::shared_ptr<StrategyInfo> strategyInfo(StrategyType solutionType, const std::string& stock) = 0;
virtual std::shared_ptr<StockMarket> market(const std::string& stock) = 0;
virtual IntDateTime moveDay(const IntDateTime& date, int32_t day, const std::shared_ptr<StockMarket>& runMarket = nullptr) = 0;
}; |
# tullaRange
An addon for World of Warcraft that makes buttons appear red when out of range
|
#include "Image.h"
// to avoid compiler confusion, python.hpp must be include before Halide headers
#include <boost/format.hpp>
#include <boost/python.hpp>
#define USE_NUMPY
#ifdef USE_NUMPY
#ifdef USE_BOOST_NUMPY
#include <boost/numpy.hpp>
#else
// we use Halide::numpy
#include "../numpy/numpy.hpp"
#endif
#endif // USE_NUMPY
#include <boost/cstdint.hpp>
#include <boost/functional/hash/hash.hpp>
#include <boost/mpl/list.hpp>
#include "../../src/runtime/HalideBuffer.h"
#include "Func.h"
#include "Type.h"
#include <functional>
#include <string>
#include <unordered_map>
#include <vector>
namespace h = Halide;
namespace p = boost::python;
#ifdef USE_NUMPY
#ifdef USE_BOOST_NUMPY
namespace bn = boost::numpy;
#else
namespace bn = Halide::numpy;
#endif
#endif // USE_NUMPY
template <typename Ret, typename T, typename... Args>
Ret buffer_call_operator(h::Buffer<T> &that, Args... args) {
return that(args...);
}
template <typename T>
h::Expr buffer_call_operator_tuple(h::Buffer<T> &that, p::tuple &args_passed) {
std::vector<h::Expr> expr_args;
for (ssize_t i = 0; i < p::len(args_passed); i++) {
expr_args.push_back(p::extract<h::Expr>(args_passed[i]));
}
return that(expr_args);
}
template <typename T>
T buffer_to_setitem_operator0(h::Buffer<T> &that, int x, T value) {
return that(x) = value;
}
template <typename T>
T buffer_to_setitem_operator1(h::Buffer<T> &that, int x, int y, T value) {
return that(x, y) = value;
}
template <typename T>
T buffer_to_setitem_operator2(h::Buffer<T> &that, int x, int y, int z, T value) {
return that(x, y, z) = value;
}
template <typename T>
T buffer_to_setitem_operator3(h::Buffer<T> &that, int x, int y, int z, int w, T value) {
return that(x, y, z, w) = value;
}
template <typename T>
T buffer_to_setitem_operator4(h::Buffer<T> &that, p::tuple &args_passed, T value) {
std::vector<int> int_args;
const size_t args_len = p::len(args_passed);
for (size_t i = 0; i < args_len; i += 1) {
p::object o = args_passed[i];
p::extract<int> int32_extract(o);
if (int32_extract.check()) {
int_args.push_back(int32_extract());
}
}
if (int_args.size() != args_len) {
for (size_t j = 0; j < args_len; j += 1) {
p::object o = args_passed[j];
const std::string o_str = p::extract<std::string>(p::str(o));
printf("buffer_to_setitem_operator4 args_passed[%lu] == %s\n", j, o_str.c_str());
}
throw std::invalid_argument("buffer_to_setitem_operator4 only handles "
"a tuple of (convertible to) int.");
}
switch (int_args.size()) {
case 1:
return that(int_args[0]) = value;
case 2:
return that(int_args[0], int_args[1]) = value;
case 3:
return that(int_args[0], int_args[1], int_args[2]) = value;
case 4:
return that(int_args[0], int_args[1], int_args[2], int_args[3]) = value;
default:
printf("buffer_to_setitem_operator4 receive a tuple with %zu integers\n", int_args.size());
throw std::invalid_argument("buffer_to_setitem_operator4 only handles 1 to 4 dimensional tuples");
}
return 0; // this line should never be reached
}
template <typename T>
const T *buffer_data(const h::Buffer<T> &buffer) {
return buffer.data();
}
template <typename T>
void buffer_set_min1(h::Buffer<T> &im, int m0) {
im.set_min(m0);
}
template <typename T>
void buffer_set_min2(h::Buffer<T> &im, int m0, int m1) {
im.set_min(m0, m1);
}
template <typename T>
void buffer_set_min3(h::Buffer<T> &im, int m0, int m1, int m2) {
im.set_min(m0, m1, m2);
}
template <typename T>
void buffer_set_min4(h::Buffer<T> &im, int m0, int m1, int m2, int m3) {
im.set_min(m0, m1, m2, m3);
}
template <typename T>
std::string buffer_repr(const h::Buffer<T> &buffer) {
std::string repr;
h::Type t = halide_type_of<T>();
std::string suffix = "_???";
if (t.is_float()) {
suffix = "_float";
} else if (t.is_int()) {
suffix = "_int";
} else if (t.is_uint()) {
suffix = "_uint";
} else if (t.is_bool()) {
suffix = "_bool";
} else if (t.is_handle()) {
suffix = "_handle";
}
boost::format f("<halide.Buffer%s%i; element_size %i bytes; "
"extent (%i %i %i %i); min (%i %i %i %i); stride (%i %i %i %i)>");
repr = boost::str(f % suffix % t.bits() % t.bytes() % buffer.extent(0) % buffer.extent(1) % buffer.extent(2) % buffer.extent(3) % buffer.min(0) % buffer.min(1) % buffer.min(2) % buffer.min(3) % buffer.stride(0) % buffer.stride(1) % buffer.stride(2) % buffer.stride(3));
return repr;
}
template <typename T>
boost::python::object get_type_function_wrapper() {
std::function<h::Type(h::Buffer<T> &)> return_type_func =
[&](h::Buffer<T> &that) -> h::Type { return halide_type_of<T>(); };
auto call_policies = p::default_call_policies();
typedef boost::mpl::vector<h::Type, h::Buffer<T> &> func_sig;
return p::make_function(return_type_func, call_policies, p::arg("self"), func_sig());
}
template <typename T>
void buffer_copy_to_host(h::Buffer<T> &im) {
im.copy_to_host();
}
template <typename T>
void defineBuffer_impl(const std::string suffix, const h::Type type) {
using h::Buffer;
using h::Expr;
auto buffer_class =
p::class_<Buffer<T>>(
("Buffer" + suffix).c_str(),
"A reference-counted handle on a dense multidimensional array "
"containing scalar values of type T. Can be directly accessed and "
"modified. May have up to four dimensions. Color images are "
"represented as three-dimensional, with the third dimension being "
"the color channel. In general we store color images in "
"color-planes, as opposed to packed RGB, because this tends to "
"vectorize more cleanly.",
p::init<>(p::arg("self"), "Construct an undefined buffer handle"));
// Constructors
buffer_class
.def(p::init<int>(
p::args("self", "x"),
"Allocate an buffer with the given dimensions."))
.def(p::init<int, int>(
p::args("self", "x", "y"),
"Allocate an buffer with the given dimensions."))
.def(p::init<int, int, int>(
p::args("self", "x", "y", "z"),
"Allocate an buffer with the given dimensions."))
.def(p::init<int, int, int, int>(
p::args("self", "x", "y", "z", "w"),
"Allocate an buffer with the given dimensions."))
.def(p::init<h::Realization &>(
p::args("self", "r"),
"Wrap a single-element realization in an Buffer object."))
.def(p::init<buffer_t>(
p::args("self", "b"),
"Wrap a buffer_t in an Buffer object, so that we can access its pixels."));
buffer_class
.def("__repr__", &buffer_repr<T>, p::arg("self"));
buffer_class
.def("data", &buffer_data<T>, p::arg("self"),
p::return_value_policy<p::return_opaque_pointer>(), // not sure this will do what we want
"Get a pointer to the element at the min location.")
.def("copy_to_host", &buffer_copy_to_host<T>, p::arg("self"),
"Manually copy-back data to the host, if it's on a device. ")
.def("set_host_dirty", &Buffer<T>::set_host_dirty,
(p::arg("self"), p::arg("dirty") = true),
"Mark the buffer as dirty-on-host. ")
.def("type", get_type_function_wrapper<T>(),
"Return Type instance for the data type of the buffer.")
.def("channels", &Buffer<T>::channels, p::arg("self"),
"Get the extent of dimension 2, which by convention we use as"
"the number of color channels (often 3). Unlike extent(2), "
"returns one if the buffer has fewer than three dimensions.")
.def("dimensions", &Buffer<T>::dimensions, p::arg("self"),
"Get the dimensionality of the data. Typically two for grayscale images, and three for color images.")
.def("stride", &Buffer<T>::stride, p::args("self", "dim"),
"Get the number of elements in the buffer between two adjacent "
"elements in the given dimension. For example, the stride in "
"dimension 0 is usually 1, and the stride in dimension 1 is "
"usually the extent of dimension 0. This is not necessarily true though.")
.def("extent", &Buffer<T>::extent, p::args("self", "dim"),
"Get the size of a dimension.")
.def("min", &Buffer<T>::min, p::args("self", "dim"),
"Get the min coordinate of a dimension. The top left of the "
"buffer represents this point in a function that was realized "
"into this buffer.");
buffer_class
.def("set_min", &buffer_set_min1<T>,
p::args("self", "m0"),
"Set the coordinates corresponding to the host pointer.")
.def("set_min", &buffer_set_min2<T>,
p::args("self", "m0", "m1"),
"Set the coordinates corresponding to the host pointer.")
.def("set_min", &buffer_set_min3<T>,
p::args("self", "m0", "m1", "m2"),
"Set the coordinates corresponding to the host pointer.")
.def("set_min", &buffer_set_min4<T>,
p::args("self", "m0", "m1", "m2", "m3"),
"Set the coordinates corresponding to the host pointer.");
buffer_class
.def("width", &Buffer<T>::width, p::arg("self"),
"Get the extent of dimension 0, which by convention we use as "
"the width of the image. Unlike extent(0), returns one if the "
"buffer is zero-dimensional.")
.def("height", &Buffer<T>::height, p::arg("self"),
"Get the extent of dimension 1, which by convention we use as "
"the height of the image. Unlike extent(1), returns one if the "
"buffer has fewer than two dimensions.")
.def("left", &Buffer<T>::left, p::arg("self"),
"Get the minimum coordinate in dimension 0, which by convention "
"is the coordinate of the left edge of the image. Returns zero "
"for zero-dimensional images.")
.def("right", &Buffer<T>::right, p::arg("self"),
"Get the maximum coordinate in dimension 0, which by convention "
"is the coordinate of the right edge of the image. Returns zero "
"for zero-dimensional images.")
.def("top", &Buffer<T>::top, p::arg("self"),
"Get the minimum coordinate in dimension 1, which by convention "
"is the top of the image. Returns zero for zero- or "
"one-dimensional images.")
.def("bottom", &Buffer<T>::bottom, p::arg("self"),
"Get the maximum coordinate in dimension 1, which by convention "
"is the bottom of the image. Returns zero for zero- or "
"one-dimensional images.");
const char *get_item_doc =
"Construct an expression which loads from this buffer. ";
// Access operators (to Expr, and to actual value)
buffer_class
.def("__getitem__", &buffer_call_operator<Expr, T, Expr>,
p::args("self", "x"),
get_item_doc);
buffer_class
.def("__getitem__", &buffer_call_operator<Expr, T, Expr, Expr>,
p::args("self", "x", "y"),
get_item_doc);
buffer_class
.def("__getitem__", &buffer_call_operator<Expr, T, Expr, Expr, Expr>,
p::args("self", "x", "y", "z"),
get_item_doc)
.def("__getitem__", &buffer_call_operator<Expr, T, Expr, Expr, Expr, Expr>,
p::args("self", "x", "y", "z", "w"),
get_item_doc)
.def("__getitem__", &buffer_call_operator_tuple<T>,
p::args("self", "tuple"),
get_item_doc)
// Note that we return copy values (not references like in the C++ API)
.def("__getitem__", &buffer_call_operator<T, T>,
p::arg("self"),
"Assuming this buffer is zero-dimensional, get its value")
.def("__call__", &buffer_call_operator<T, T, int>,
p::args("self", "x"),
"Assuming this buffer is one-dimensional, get the value of the element at position x")
.def("__call__", &buffer_call_operator<T, T, int, int>,
p::args("self", "x", "y"),
"Assuming this buffer is two-dimensional, get the value of the element at position (x, y)")
.def("__call__", &buffer_call_operator<T, T, int, int, int>,
p::args("self", "x", "y", "z"),
"Assuming this buffer is three-dimensional, get the value of the element at position (x, y, z)")
.def("__call__", &buffer_call_operator<T, T, int, int, int, int>,
p::args("self", "x", "y", "z", "w"),
"Assuming this buffer is four-dimensional, get the value of the element at position (x, y, z, w)")
.def("__setitem__", &buffer_to_setitem_operator0<T>, p::args("self", "x", "value"),
"Assuming this buffer is one-dimensional, set the value of the element at position x")
.def("__setitem__", &buffer_to_setitem_operator1<T>, p::args("self", "x", "y", "value"),
"Assuming this buffer is two-dimensional, set the value of the element at position (x, y)")
.def("__setitem__", &buffer_to_setitem_operator2<T>, p::args("self", "x", "y", "z", "value"),
"Assuming this buffer is three-dimensional, set the value of the element at position (x, y, z)")
.def("__setitem__", &buffer_to_setitem_operator3<T>, p::args("self", "x", "y", "z", "w", "value"),
"Assuming this buffer is four-dimensional, set the value of the element at position (x, y, z, w)")
.def("__setitem__", &buffer_to_setitem_operator4<T>, p::args("self", "tuple", "value"),
"Assuming this buffer is one to four-dimensional, "
"set the value of the element at position indicated by tuple (x, y, z, w)");
p::implicitly_convertible<Buffer<T>, h::Argument>();
return;
}
p::object buffer_to_python_object(const h::Buffer<> &im) {
PyObject *obj = nullptr;
if (im.type() == h::UInt(8)) {
p::manage_new_object::apply<h::Buffer<uint8_t> *>::type converter;
obj = converter(new h::Buffer<uint8_t>(im));
} else if (im.type() == h::UInt(16)) {
p::manage_new_object::apply<h::Buffer<uint16_t> *>::type converter;
obj = converter(new h::Buffer<uint16_t>(im));
} else if (im.type() == h::UInt(32)) {
p::manage_new_object::apply<h::Buffer<uint32_t> *>::type converter;
obj = converter(new h::Buffer<uint32_t>(im));
} else if (im.type() == h::Int(8)) {
p::manage_new_object::apply<h::Buffer<int8_t> *>::type converter;
obj = converter(new h::Buffer<int8_t>(im));
} else if (im.type() == h::Int(16)) {
p::manage_new_object::apply<h::Buffer<int16_t> *>::type converter;
obj = converter(new h::Buffer<int16_t>(im));
} else if (im.type() == h::Int(32)) {
p::manage_new_object::apply<h::Buffer<int32_t> *>::type converter;
obj = converter(new h::Buffer<int32_t>(im));
} else if (im.type() == h::Float(32)) {
p::manage_new_object::apply<h::Buffer<float> *>::type converter;
obj = converter(new h::Buffer<float>(im));
} else if (im.type() == h::Float(64)) {
p::manage_new_object::apply<h::Buffer<double> *>::type converter;
obj = converter(new h::Buffer<double>(im));
} else {
throw std::invalid_argument("buffer_to_python_object received an Buffer of unsupported type.");
}
return p::object(p::handle<>(obj));
}
h::Buffer<> python_object_to_buffer(p::object obj) {
p::extract<h::Buffer<uint8_t>> buffer_extract_uint8(obj);
p::extract<h::Buffer<uint16_t>> buffer_extract_uint16(obj);
p::extract<h::Buffer<uint32_t>> buffer_extract_uint32(obj);
p::extract<h::Buffer<int8_t>> buffer_extract_int8(obj);
p::extract<h::Buffer<int16_t>> buffer_extract_int16(obj);
p::extract<h::Buffer<int32_t>> buffer_extract_int32(obj);
p::extract<h::Buffer<float>> buffer_extract_float(obj);
p::extract<h::Buffer<double>> buffer_extract_double(obj);
if (buffer_extract_uint8.check()) {
return buffer_extract_uint8();
} else if (buffer_extract_uint16.check()) {
return buffer_extract_uint16();
} else if (buffer_extract_uint32.check()) {
return buffer_extract_uint32();
} else if (buffer_extract_int8.check()) {
return buffer_extract_int8();
} else if (buffer_extract_int16.check()) {
return buffer_extract_int16();
} else if (buffer_extract_int32.check()) {
return buffer_extract_int32();
} else if (buffer_extract_float.check()) {
return buffer_extract_float();
} else if (buffer_extract_double.check()) {
return buffer_extract_double();
} else {
throw std::invalid_argument("python_object_to_buffer received an object that is not an Buffer<T>");
}
return h::Buffer<>();
}
#ifdef USE_NUMPY
bn::dtype type_to_dtype(const h::Type &t) {
if (t == h::UInt(8)) return bn::dtype::get_builtin<uint8_t>();
if (t == h::UInt(16)) return bn::dtype::get_builtin<uint16_t>();
if (t == h::UInt(32)) return bn::dtype::get_builtin<uint32_t>();
if (t == h::Int(8)) return bn::dtype::get_builtin<int8_t>();
if (t == h::Int(16)) return bn::dtype::get_builtin<int16_t>();
if (t == h::Int(32)) return bn::dtype::get_builtin<int32_t>();
if (t == h::Float(32)) return bn::dtype::get_builtin<float>();
if (t == h::Float(64)) return bn::dtype::get_builtin<double>();
throw std::runtime_error("type_to_dtype received a Halide::Type with no known numpy dtype equivalent");
return bn::dtype::get_builtin<uint8_t>();
}
h::Type dtype_to_type(const bn::dtype &t) {
if (t == bn::dtype::get_builtin<uint8_t>()) return h::UInt(8);
if (t == bn::dtype::get_builtin<uint16_t>()) return h::UInt(16);
if (t == bn::dtype::get_builtin<uint32_t>()) return h::UInt(32);
if (t == bn::dtype::get_builtin<int8_t>()) return h::Int(8);
if (t == bn::dtype::get_builtin<int16_t>()) return h::Int(16);
if (t == bn::dtype::get_builtin<int32_t>()) return h::Int(32);
if (t == bn::dtype::get_builtin<float>()) return h::Float(32);
if (t == bn::dtype::get_builtin<double>()) return h::Float(64);
throw std::runtime_error("dtype_to_type received a numpy type with no known Halide type equivalent");
return h::Type();
}
/// Will create a Halide::Buffer object pointing to the array data
p::object ndarray_to_buffer(bn::ndarray &array) {
h::Type t = dtype_to_type(array.get_dtype());
const int dims = array.get_nd();
void *host = reinterpret_cast<void *>(array.get_data());
halide_dimension_t shape[dims];
for (int i = 0; i < dims; i++) {
shape[i].min = 0;
shape[i].extent = array.shape(i);
shape[i].stride = array.strides(i) / t.bytes();
}
return buffer_to_python_object(h::Buffer<>(t, host, dims, shape));
}
bn::ndarray buffer_to_ndarray(p::object buffer_object) {
h::Buffer<> im = python_object_to_buffer(buffer_object);
user_assert(im.data() != nullptr)
<< "buffer_to_ndarray received an buffer without host data";
std::vector<int32_t> extent(im.dimensions()), stride(im.dimensions());
for (int i = 0; i < im.dimensions(); i++) {
extent[i] = im.dim(i).extent();
stride[i] = im.dim(i).stride() * im.type().bytes();
}
return bn::from_data(
im.host_ptr(),
type_to_dtype(im.type()),
extent,
stride,
buffer_object);
}
#endif
struct BufferFactory {
template <typename T, typename... Args>
static p::object create_buffer_object(Args... args) {
typedef h::Buffer<T> BufferType;
typedef typename p::manage_new_object::apply<BufferType *>::type converter_t;
converter_t converter;
PyObject *obj = converter(new BufferType(args...));
return p::object(p::handle<>(obj));
}
template <typename... Args>
static p::object create_buffer_impl(h::Type t, Args... args) {
if (t == h::UInt(8)) return create_buffer_object<uint8_t>(args...);
if (t == h::UInt(16)) return create_buffer_object<uint16_t>(args...);
if (t == h::UInt(32)) return create_buffer_object<uint32_t>(args...);
if (t == h::Int(8)) return create_buffer_object<int8_t>(args...);
if (t == h::Int(16)) return create_buffer_object<int16_t>(args...);
if (t == h::Int(32)) return create_buffer_object<int32_t>(args...);
if (t == h::Float(32)) return create_buffer_object<float>(args...);
if (t == h::Float(64)) return create_buffer_object<double>(args...);
throw std::invalid_argument("BufferFactory::create_buffer_impl received type not handled");
return p::object();
}
static p::object create_buffer0(h::Type type) {
return create_buffer_impl(type);
}
static p::object create_buffer1(h::Type type, int x) {
return create_buffer_impl(type, x);
}
static p::object create_buffer2(h::Type type, int x, int y) {
return create_buffer_impl(type, x, y);
}
static p::object create_buffer3(h::Type type, int x, int y, int z) {
return create_buffer_impl(type, x, y, z);
}
static p::object create_buffer4(h::Type type, int x, int y, int z, int w) {
return create_buffer_impl(type, x, y, z, w);
}
static p::object create_buffer_from_realization(h::Type type, h::Realization &r) {
return create_buffer_impl(type, r);
}
static p::object create_buffer_from_buffer(h::Type type, buffer_t b) {
return create_buffer_impl(type, b);
}
};
void defineBuffer() {
defineBuffer_impl<uint8_t>("_uint8", h::UInt(8));
defineBuffer_impl<uint16_t>("_uint16", h::UInt(16));
defineBuffer_impl<uint32_t>("_uint32", h::UInt(32));
defineBuffer_impl<int8_t>("_int8", h::Int(8));
defineBuffer_impl<int16_t>("_int16", h::Int(16));
defineBuffer_impl<int32_t>("_int32", h::Int(32));
defineBuffer_impl<float>("_float32", h::Float(32));
defineBuffer_impl<double>("_float64", h::Float(64));
// "Buffer" will look as a class, but instead it will be simply a factory method
p::def("Buffer", &BufferFactory::create_buffer0,
p::args("type"),
"Construct a zero-dimensional buffer of type T");
p::def("Buffer", &BufferFactory::create_buffer1,
p::args("type", "x"),
"Construct a one-dimensional buffer of type T");
p::def("Buffer", &BufferFactory::create_buffer2,
p::args("type", "x", "y"),
"Construct a two-dimensional buffer of type T");
p::def("Buffer", &BufferFactory::create_buffer3,
p::args("type", "x", "y", "z"),
"Construct a three-dimensional buffer of type T");
p::def("Buffer", &BufferFactory::create_buffer4,
p::args("type", "x", "y", "z", "w"),
"Construct a four-dimensional buffer of type T");
p::def("Buffer", &BufferFactory::create_buffer_from_realization,
p::args("type", "r"),
p::with_custodian_and_ward_postcall<0, 2>(), // the realization reference count is increased
"Wrap a single-element realization in an Buffer object of type T.");
p::def("Buffer", &BufferFactory::create_buffer_from_buffer,
p::args("type", "b"),
p::with_custodian_and_ward_postcall<0, 2>(), // the buffer_t reference count is increased
"Wrap a buffer_t in an Buffer object of type T, so that we can access its pixels.");
#ifdef USE_NUMPY
bn::initialize();
p::def("ndarray_to_buffer", &ndarray_to_buffer,
p::args("array"),
p::with_custodian_and_ward_postcall<0, 1>(), // the array reference count is increased
"Converts a numpy array into a Halide::Buffer."
"Will take into account the array size, dimensions, and type."
"Created Buffer refers to the array data (no copy).");
p::def("Buffer", &ndarray_to_buffer,
p::args("array"),
p::with_custodian_and_ward_postcall<0, 1>(), // the array reference count is increased
"Wrap numpy array in a Halide::Buffer."
"Will take into account the array size, dimensions, and type."
"Created Buffer refers to the array data (no copy).");
p::def("buffer_to_ndarray", &buffer_to_ndarray,
p::args("buffer"),
p::with_custodian_and_ward_postcall<0, 1>(), // the buffer reference count is increased
"Creates a numpy array from a Halide::Buffer."
"Will take into account the Buffer size, dimensions, and type."
"Created ndarray refers to the Buffer data (no copy).");
#endif
return;
}
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>ROKOS • Bitcoin Full node OS Distros • Downloads for Raspberry Pi, Pine64+, Banana Pro, Odroid and IoT Devices</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="ROKOS is an OK Bitcoin Full node Open Source Operating System for Raspberry Pi, Pi zero, Pi 2, Pi 3, Pi 4, PINE64+, Odroid - Launch A Bitcoin Full Node and/or stake Okcash on your IoT devices" />
<!-- css -->
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/fancybox/jquery.fancybox.css" rel="stylesheet">
<link href="css/jcarousel.css" rel="stylesheet" />
<link href="css/flexslider.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
<!-- Theme skin -->
<link href="skins/default.css" rel="stylesheet" />
<link href="/img/favicon.ico" rel="icon" type="image/ico" />
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-71872638-1', 'auto');
ga('send', 'pageview');
</script>
<div id="wrapper">
<!-- start header -->
<header>
<div class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://rokos.space"><img src="img/rokos.png" alt="ROKOS"></a>
</div>
<div class="navbar-collapse collapse ">
<ul class="nav navbar-nav">
<li><a href="index.html">Rokos</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle " data-toggle="dropdown" data-hover="dropdown" data-delay="0" data-close-others="false">Core Info <b class=" icon-angle-down"></b></a>
<ul class="dropdown-menu">
<li><a href="core.html">Latest Core version</a></li>
<li><a href="core-tech.html">Rokos Core Tech</a></li>
<!-- <li><a href="#">Tutorials</a></li> -->
</ul>
<li class="dropdown">
<a href="#" class="dropdown-toggle " data-toggle="dropdown" data-hover="dropdown" data-delay="0" data-close-others="false">How to Install <b class=" icon-angle-down"></b></a>
<ul class="dropdown-menu">
<li><a href="burn_sdcard.html">Burn ROKOS .img to SDcard</a></li>
<li><a href="rokos_corepi.html">ROKOS core v10 - Raspberry Pi 2, 3, 4</a></li>
<!-- <li><a href="rokos_core.html">ROKOS core v10 - Pine64+</a></li> -->
<!-- <li><a href="rokos_corebanana.html">ROKOS core v10 - Banana Pro</a></li> -->
<!-- <li><a href="#">ROKOS </a></li> -->
<!-- <li><a href="#">Tutorials</a></li> -->
</ul>
</li>
<li class="active"><a href="#">Downloads</a></li>
<li><a href="support.html">Support</a></li> <li><a href="https://rokos-flavors.space" target="_blank">Flavors </a></li>
</ul>
</div>
</div>
</div>
</header>
<!-- end header -->
<section id="inner-headline">
<div class="container">
<div class="row">
<div class="col-lg-12">
<ul class="breadcrumb">
<li><a href="#"><i class="fa fa-home"></i></a><i class="icon-angle-right"></i></li>
<li class="active">Downloads</li>
</ul>
</div>
</div>
</div>
</section>
<section id="content">
<div class="container">
<div class="row">
<div class="col-lg-12">
<ul class="portfolio-categ filter">
<li class="all active"><a href="#">All</a></li>
<li class="core"><a href="#" title="">ROKOS • Bitcoin Full node OS (core)</a></li>
</ul>
<div class="clearfix">
</div>
<div class="row">
<section id="projects">
<ul id="thumbs" class="portfolio">
<!-- Item Project and Filter Name -->
<li class="item-thumbs col-lg-3 design" data-id="id-0" data-type="core">
<!-- Fancybox - Gallery Enabled - Title - Full Image -->
<a class="hover-wrap fancybox" data-fancybox-group="gallery" title="Core Raspberry Pi" href="https://sourceforge.net/projects/rokos-bitcoin-full-node/" target="_blank">
<span class="overlay-img"></span>
<span class="overlay-img-thumb font-icon-plus"></span>
</a>
<!-- Thumb Image and Description -->
<img src="img/works/5.jpg" alt="ROKOS core Raspberry Pi 2, 3, 4.">
</li>
<!-- End Item Project -->
<!-- Item Project and Filter Name -->
<!-- End Item Project -->
</ul>
</section>
</div>
</div>
</div>
<!-- <br /><br /><strong>Mirror Downloads</strong>
<br /><br />
• ROKOS 10 core Rasbperry: <a href="http://bit.ly/rokos10corepid" target="_blank">Mirror download</a> -->
</div>
</section>
<footer>
<div class="container">
<div class="row">
<div class="col-lg-3">
<div class="widget">
<h5 class="widgetheading">Join the OK Bitcoin community</h5>
<br><a href="https://discord.io/bitcoin"> <img alt="Logo" src="https://discordapp.com/api/guilds/213747404745211904/widget.png?style=banner2" width="250px"></a>
</div>
</div>
<div class="col-lg-3">
<div class="widget">
<h5 class="widgetheading">Info</h5>
<ul class="link-list">
<li><a href="http://bitcoin.org" target="_blank">Bitcoin</a></li>
<li><a href="http://okcash.co" target="_blank">Okcash</a></li>
<li><a href="downloads.html">Downloads</a></li>
<li><a href="http://rokos-flavors.space">ROKOS Flavors</a></li>
<li><a href="support.html">Support</a></li>
<li><a href="https://www.pine64.org/" target="_blank">Pine64+</a></li>
<li><a href="https://www.raspberrypi.org/" target="_blank">Raspberry Pi</a></li>
</ul>
</div>
</div>
<div class="col-lg-3">
<div class="widget">
<h5 class="widgetheading">Press</h5>
<ul class="link-list">
<li><a href="http://www.nasdaq.com/article/fintech-at-ces-mastercard-and-rokos-shake-things-up-cm734192" target="_blank">Nasdaq.com (CES 2017 Headlines)</a></li>
<li><a href="http://techcrunch.com/2016/01/04/the-rokos-core-os-turns-your-raspberry-pi-into-a-bitcoin-node/" target="_blank">TechCrunch.com (CES 2016 Headlines)</a></li>
<li><a href="http://hwagm.elhacker.net/rokos-v4-sistema-operativo-para-ejecutar-un-nodo-de-bitcoin-en-raspberry-pi-2/" target="_blank">elhacker.net</a></li>
<li><a href="http://themerkle.com/news/rokos-is-a-free-raspberry-pi-operating-system-to-launch-a-bitcoin-node/" target="_blank">themerkle.com</a></li>
<li><a href="http://www.coinfox.ru/novosti/4216-rokos-new-software-to-work-with-bitcoin-2" target="_blank">coinfox.ru</a></li>
<li><a href="http://www.diariobitcoin.com/index.php/2015/12/28/conoce-a-rokos-v4-un-nuevo-sistema-operativo-con-nodos-bitcoin-integrados/" target="_blank">diariobitcoin.com</a></li>
<li><a href="http://criptonoticias.com/rokos-v4-sistema-operativo-nodo-de-bitcoin-raspberry-pi-2/" target="_blank">criptonoticias.com</a></li>
<li><a href="https://fossforce.com/2016/07/alternatives-raspbian-ubuntu-mate/" target="_blank">fossforce.com</a></li> <li><a href="https://themerkle.com/foss-force-acknowledges-cryptocurrency-based-rokos-operating-system-for-raspberry-pi/" target="_blank">FOSS acknowledges ROKOS</a></li>
</ul>
</div>
</div>
<div class="col-lg-3">
<div class="widget">
<h5 class="widgetheading">Open Source</h5>
<div>
<img src="img/rokos2.png" alt="ROKOS">
</div>
<br /><br />
<ul class="social-network">
<li><a href="https://twitter.com/BitcoinFullnode/" target="_blank" data-placement="top" title="Twitter"><i class="fa fa-twitter fa-3x"></i></a></li>
</ul>
<div class="clear">
</div>
</div>
</div>
</div>
</div>
<div id="sub-footer">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="copyright">
<p>
<span>© ROKOS 2014-2020. In honor to </span>Satoshi
</p>
</div>
</div>
<div class="col-lg-6">
</div>
</div>
</div>
</div>
</footer>
</div>
<a href="#" class="scrollup"><i class="fa fa-angle-up active"></i></a>
<!-- javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.fancybox.pack.js"></script>
<script src="js/jquery.fancybox-media.js"></script>
<script src="js/google-code-prettify/prettify.js"></script>
<script src="js/portfolio/jquery.quicksand.js"></script>
<script src="js/portfolio/setting.js"></script>
<script src="js/jquery.flexslider.js"></script>
<script src="js/animate.js"></script>
<script src="js/custom.js"></script>
</body>
</html> |
version https://git-lfs.github.com/spec/v1
oid sha256:fd2ad8a08df37f7b13dad35da22197faf51ef6887162bf5f74ce30df59fdba0f
size 15638
|
module Kakin
class Configuration
def self.tenant
@@_tenant
end
def self.setup
config = {
'auth_url' => ENV['OS_AUTH_URL'],
'tenant' => ENV['OS_TENANT_NAME'] || ENV['OS_PROJECT_NAME'],
'username' => ENV['OS_USERNAME'],
'password' => ENV['OS_PASSWORD'],
'client_cert' => ENV['OS_CERT'],
'client_key' => ENV['OS_KEY'],
'identity_api_version' => ENV['OS_IDENTITY_API_VERSION'],
'user_domain_name' => ENV['OS_USER_DOMAIN_NAME'],
'project_domain_name' => ENV['OS_PROJECT_DOMAIN_NAME'],
'timeout' => ENV['YAO_TIMEOUT'],
'management_url' => ENV['YAO_MANAGEMENT_URL'],
'debug' => ENV['YAO_DEBUG'] || false,
}
file_path = File.expand_path('~/.kakin')
if File.exist?(file_path)
yaml = YAML.load_file(file_path)
config.merge!(yaml)
end
@@_tenant = config['tenant']
Yao.configure do
auth_url config['auth_url']
tenant_name config['tenant']
username config['username']
password config['password']
timeout config['timeout'].to_i if config['timeout']
client_cert config['client_cert'] if config['client_cert']
client_key config['client_key'] if config['client_key']
identity_api_version config['identity_api_version'] if config['identity_api_version']
user_domain_name config['user_domain_name'] if config['user_domain_name']
project_domain_name config['project_domain_name'] if config['project_domain_name']
debug config['debug']
end
end
end
end
|
// client.express.js JavaScript Routing, version: 0.3.4
// (c) 2011 Mark Nijhof
//
// Released under MIT license.
//
ClientExpress={};ClientExpress.createServer=function(){return new ClientExpress.Server};ClientExpress.supported=function(){return typeof window.history.pushState=="function"};ClientExpress.logger=function(){return function(){var c=new ClientExpress.Logger;this.eventBroker.addListener("onLog",function(a){a.arguments.shift()=="warning"?c.warning(a.arguments):c.information(a.arguments)})}};
ClientExpress.setTitle=function(c){var a=c&&c.titleArgument;return function(){this.eventBroker.addListener("onRequestProcessed",function(c){var e;e=c.response.title;a&&c.args[a]&&(e=c.args[a]);if(e)document.title=e})}};
ClientExpress.Server=function(){var c=0,a=function(){this.version="0.3.4";this.id=[(new Date).valueOf(),c++].join("-");this.settings={};this.templateEngines={};this.router=new ClientExpress.Router;this.eventListener=new ClientExpress.EventListener;this.eventBroker=new ClientExpress.EventBroker(this);this.session={};this.content_target_element=document.childNodes[1];this.setup_functions=[];this.log=function(){this.eventBroker.fire({type:"Log",arguments:ClientExpress.utils.toArray(arguments)})};
this.eventBroker.addListener("onProcessRequest",e);this.eventBroker.addListener("onRequestProcessed",b);this.eventBroker.addListener("onRender",f);this.eventBroker.addListener("onSend",h);this.eventBroker.addListener("onRedirect",i)};a.prototype.content_target_area=function(d){var b=this;return function(){var a=document.getElementById?document.getElementById(d):document.all?document.all[d]:document.layers?document.layers[d]:null;b.content_target_element=a||document.childNodes[1];b.content_target_element==
document.childNodes[1]&&this.log("warning",'Element "',d,'" could not be located!')}};a.prototype.configure=function(d,b){typeof d=="function"?this.setup_functions.push(d):this.setup_functions.push(function(){server.enabled(d)&&b.call()})};a.prototype.use=function(d,b){if(typeof d=="function")d.call(this);else{d[d.length-1]==="/"&&(d=d.substring(0,d.length-1));var a=function(d,b){if(b=="/")return d;if(b.substr(0,1)!="/")return d+"/"+b;return d+b},f=this,h=b.router.routes;ClientExpress.utils.forEach(h.get,
function(b){g(f,b.method,a(d,b.path),b.action,d)});ClientExpress.utils.forEach(h.post,function(b){g(f,b.method,a(d,b.path),b.action,d)});ClientExpress.utils.forEach(h.put,function(b){g(f,b.method,a(d,b.path),b.action,d)});ClientExpress.utils.forEach(h.del,function(b){g(f,b.method,a(d,b.path),b.action,d)})}};a.prototype.set=function(d,b){if(b===void 0)if(this.settings.hasOwnProperty(d))return this.settings[d];else{if(this.parent)return this.parent.set(d)}else return this.settings[d]=b,this};a.prototype.enable=
function(d){this.settings.hasOwnProperty(d);this.settings[d]=!0};a.prototype.disable=function(d){this.settings.hasOwnProperty(d);this.settings[d]=!1};a.prototype.enabled=function(d){return this.settings.hasOwnProperty(d)&&this.settings[d]};a.prototype.disabled=function(d){return this.settings.hasOwnProperty(d)&&!this.settings[d]};a.prototype.register=function(d,b){if(b===void 0)if(this.templateEngines.hasOwnProperty(d))return this.templateEngines[d];else{if(this.parent)return this.parent.set(d)}else return this.templateEngines[d]=
b,this};a.prototype.get=function(d,b){return g(this,"get",d,b,"")};a.prototype.post=function(d,b){return g(this,"post",d,b,"")};a.prototype.put=function(d,b){return g(this,"put",d,b,"")};a.prototype.del=function(b,a){return g(this,"del",b,a,"")};var g=function(b,a,f,h,c){b.router.registerRoute(a,f,h,c);return b};a.prototype.listen=function(){if(ClientExpress.supported()){var b=this;ClientExpress.onDomReady(function(){ClientExpress.utils.forEach(b.setup_functions,function(a){a.call(b)});b.eventListener.registerEventHandlers(b);
var a=new ClientExpress.Request({method:"get",fullPath:window.location.pathname,title:document.title,session:b.session,delegateToServer:function(){window.location.pathname=window.location.pathname}});history.replaceState(a,a.title,a.location());b.log("information","Listening");a=b.router.routes.get.concat(b.router.routes.post.concat(b.router.routes.put.concat(b.router.routes.del))).sortByName("path");ClientExpress.utils.forEach(a,function(a){b.log("information","Route registered:",a.method.toUpperCase().lpad(" "),
a.path)})})}else this.log("information","Not supported on this browser")};var e=function(b){var a=b.request,f=this.router.match(a.method,a.path);f.resolved()?(this.log("information",200,a.method.toUpperCase().lpad(" "),a.path),a.attachRoute(f),b=new ClientExpress.Response(a,this),f.action(a,b)):(this.log("information",404,a.method.toUpperCase().lpad(" "),a.path),b.request.delegateToServer())},b=function(b){if(!b.request.isHistoryRequest&&!b.request.isRedirect)b=b.request,history.pushState(b,
b.title,b.location())},f=function(b){var a=this.settings["view engine"]||"",f=(this.settings.views||"")+b.template;f.lastIndexOf(".")!=-1&&f.lastIndexOf(".")<=4&&(a=f.substr(f.lastIndexOf(".")-1,f.length),f=f.substr(0,f.lastIndexOf(".")-1));a=a||this.settings["view engine"]||"";a!=""&&(a="."+a,f+=a);b.target_element.innerHTML=this.templateEngines[a].compile(f,b.args);this.eventBroker.fire({type:"RequestProcessed",request:b.request,response:b.response,target_element:b.target_element,args:b.args||{}})},
h=function(b){b.target_element.innerHTML=b.content;this.eventBroker.fire({type:"RequestProcessed",request:b.request,response:b.response,target_element:b.target_element,args:{}})},i=function(b){this.log("information",302,"GET ",b.path);this.eventBroker.fire({type:"ProcessRequest",request:new ClientExpress.Request({method:"get",fullPath:b.path,title:"",isRedirect:!0,session:b.request.session,delegateToServer:function(){window.location.pathname=b.path}})});this.eventBroker.fire({type:"RequestProcessed",
request:b.request,response:b.response,target_element:b.target_element,args:{}})};return a}();
ClientExpress.Route=function(){function c(a,c,b){if(a instanceof RegExp)return a;a=a.concat("/?").replace(/\/\(/g,"(?:/").replace(/(\/)?(\.)?:(\w+)(?:(\(.*?\)))?(\?)?/g,function(b,a,g,d,k,j){c.push({name:d,optional:!!j});a=a||"";return""+(j?"":a)+"(?:"+(j?a:"")+(g||"")+(k||"([^/]+?)")+")"+(j||"")}).replace(/([\/.])/g,"\\$1").replace(/\*/g,"(.+)");return RegExp("^"+a+"$",b?"":"i")}var a=function(a,e,b,f,h){this.resolved=function(){return!0};this.method=a;this.path=e;this.action=b;this.base_path=f;
this.params=[];this.regexp=c(e,this.keys=[],h.sensitive)};a.prototype.match=function(a){return this.regexp.exec(a)};return a}();
ClientExpress.Router=function(){var c=function(){this.routes={get:[],post:[],put:[],del:[]}};c.prototype.match=function(a,c){for(var e=this.routes[a].length,b=0;b<e;++b){var f=this.routes[a][b];if(captures=f.match(c)){keys=f.keys;f.params=[];e=1;for(b=captures.length;e<b;++e){var h=keys[e-1],i="string"==typeof captures[e]?decodeURIComponent(captures[e]):captures[e];h?f.params[h.name]=i:f.params.push(i)}return f}}return{resolved:function(){return!1}}};c.prototype.registerRoute=function(a,c,e,b){this.routes[a].push(new ClientExpress.Route(a,
c,e,b,{sensitive:!1}))};return c}();
ClientExpress.EventBroker=function(){var c=function(a){this.server=a;this.eventListeners={}};c.prototype.addListener=function(a,c){typeof this.eventListeners[a]=="undefined"&&(this.eventListeners[a]=[]);this.eventListeners[a].push(c)};c.prototype.removeListener=function(a,c){if(this.eventListeners[a]instanceof Array){var e=this.eventListeners[a];e.forEach(function(b,a){b===c&&e.splice(a,1)})}};c.prototype.fire=function(a){typeof a=="string"&&(a={type:a});if(!a.target)a.target=this.server;if(!a.type)throw Error("Event object missing 'type' property.");
a.type="on"+a.type;this.eventListeners[a.type]instanceof Array&&this.eventListeners[a.type].forEach(function(c){c.call(this.server,a)})};return c}();
ClientExpress.EventListener=function(){var c=function(){};c.prototype.registerEventHandlers=function(b){a(b);g(b);e(b)};var a=function(b){document.onclick=function(a){a=a||window.event;var c=a.target||a.srcElement;if(c.tagName.toLowerCase()=="a")return a=new ClientExpress.Request({method:"get",fullPath:c.href,title:c.title||"",session:b.session,delegateToServer:function(){c.href.indexOf("://")!=-1?window.location=c.href:window.location.pathname=c.href}}),b.eventBroker.fire({type:"ProcessRequest",
request:a}),!1}},g=function(b){document.onsubmit=function(a){a=a||window.event;var c=a.target||a.srcElement;if(c.tagName.toLowerCase()=="form")return a=new ClientExpress.Request({method:c.method,fullPath:[c.action,ClientExpress.utils.serializeArray(c)].join("?"),title:c.title,session:b.session,delegateToServer:function(){c.submit()}}),b.eventBroker.fire({type:"ProcessRequest",request:a}),!1}},e=function(b){window.onpopstate=function(a){if(a.state)a=a.state,a.__proto__=ClientExpress.Request.prototype,
a.HistoryRequest(),b.eventBroker.fire({type:"ProcessRequest",request:a})}};return c}();
ClientExpress.Request=function(){var c=function(a){var c=this;this.isHistoryRequest=!1;this.session=a.session;this.body={};this.title=a.title;this.params=[];this.base_path="";this.isRedirect=a.isRedirect||!1;(this.queryString=a.fullPath.split("?")[1])&&ClientExpress.utils.forEach(this.queryString.split("&"),function(a){var b=a.split("=")[0];a=a.split("=")[1];var f;if(f=/^(\w+)\[(\w+)\]/.exec(b)){var h=f[1];b=f[2];f=c.body[h]||{};f[b]=a;c.body[h]=f}else c.body[b]=a});this.method=(this.body._method||
a.method).toLowerCase();this.path=a.fullPath.replace(/\?.+$/,"").replace(window.location.protocol+"//"+window.location.host,"");this.delegateToServer=a.delegateToServer||function(){}};c.prototype.attachRoute=function(a){this.params=a.params;this.base_path=a.base_path};c.prototype.location=function(){return this.method==="get"?this.path:""};c.prototype.HistoryRequest=function(){this.isHistoryRequest=!0};return c}();
ClientExpress.Response=function(){var c=function(a,c){this.request=a;this.server=c;this.output=this.redirect_path="";this.title=a.title};c.prototype.send=function(a){this.server.eventBroker.fire({type:"Send",request:this.request,response:this,target_element:this.server.content_target_element,content:a})};c.prototype.render=function(a,c){this.server.eventBroker.fire({type:"Render",request:this.request,response:this,target_element:this.server.content_target_element,template:a,args:c})};c.prototype.redirect=
function(a){this.server.eventBroker.fire({type:"Redirect",request:this.request,response:this,path:(a.substr(0,1)=="/"?this.request.base_path:"")+a})};return c}();ClientExpress.Logger=function(){var c=function(){};c.prototype.error=function(){window.console&&console.error(arguments[0].join(" "))};c.prototype.information=function(){window.console&&console.log(arguments[0].join(" "))};c.prototype.warning=function(){window.console&&console.warn(arguments[0].join(" "))};return c}();
String.prototype.rpad=function(c){return c.substr(0,c.length-this.length)+this};String.prototype.lpad=function(c){return this+c.substr(0,c.length-this.length)};
ClientExpress.utils=function(){var c=Array.prototype.every?function(b,a,c){return b.every(a,c)}:function(b,a,c){if(b===void 0||b===null)throw new TypeError;b=Object(b);var i=b.length>>>0;if(typeof a!=="function")throw new TypeError;for(var d=0;d<i;d++)if(d in b&&!a.call(c,b[d],d,b))return!1;return!0},a=Array.prototype.forEach?function(b,a,c){return b.forEach(a,c)}:function(b,a,c){if(b===void 0||b===null)throw new TypeError;b=Object(b);var i=b.length>>>0;if(typeof a!=="function")throw new TypeError;
for(var d=0;d<i;d++)d in b&&a.call(c,b[d],d,b)},g=Array.prototype.filter?function(b,a,c){return b.filter(a,c)}:function(b,a,c){if(b===void 0||b===null)throw new TypeError;b=Object(b);var i=b.length>>>0;if(typeof a!=="function")throw new TypeError;for(var d=[],e=0;e<i;e++)if(e in b){var g=b[e];a.call(c,g,e,b)&&d.push(g)}return d},e=Array.prototype.map?function(b,a,c){return b.map(a,c)}:function(b,a,c){if(b===void 0||b===null)throw new TypeError;b=Object(b);var e=b.length>>>0;if(typeof a!=="function")throw new TypeError;
for(var d=Array(e),g=0;g<e;g++)g in b&&(d[g]=a.call(c,b[g],g,b));return d};if(!Array.prototype.sortByName)Array.prototype.sortByName=function(b){if(this===void 0||this===null)throw new TypeError;if(typeof b!=="string")throw new TypeError;return this.sort(function(a,c){var e=a[b].toLowerCase(),d=c[b].toLowerCase();return e<d?-1:e>d?1:0})};return{every:c,forEach:a,filter:g,map:e,toArray:function(a,c){return Array.prototype.slice.call(a,c||0)},serializeArray:function(a){var c="";a=a.getElementsByTagName("*");
for(var e=0;e<a.length;e++){var g=a[e];if(!g.disabled&&g.name&&g.name.length>0)switch(g.tagName.toLowerCase()){case "input":switch(g.type){case "checkbox":case "radio":g.checked&&(c.length>0&&(c+="&"),c+=g.name+"="+encodeURIComponent(g.value));break;case "hidden":case "password":case "text":c.length>0&&(c+="&"),c+=g.name+"="+encodeURIComponent(g.value)}break;case "select":case "textarea":c.length>0&&(c+="&"),c+=g.name+"="+encodeURIComponent(g.value)}}return c},objectIterator:function(a,c){for(var e in a)callBackValue=
{isFunction:a[e]instanceof Function,name:e,value:a[e]},c(callBackValue)}}}();
|
<div ng-controller="Umbraco.Editors.Content.CopyController">
<div class="umb-dialog-body form-horizontal" ng-cloak>
<div class="umb-pane">
<div ng-show="error">
<div class="alert alert-error">
<div><strong>{{error.errorMsg}}</strong></div>
<div>{{error.data.message}}</div>
</div>
</div>
<div ng-show="success">
<div class="alert alert-success">
<strong>{{source.name}}</strong>
<localize key="actions_wasCopiedTo">was copied to</localize>
<strong>{{target.name}}</strong>
</div>
<button class="btn btn-primary" ng-click="closeDialog()">Ok</button>
</div>
<p class="abstract" ng-hide="success">
<localize key="actions_chooseWhereToCopy">Choose where to copy</localize>
<strong>{{source.name}}</strong>
<localize key="actions_toInTheTreeStructureBelow">to in the tree structure below</localize>
</p>
<umb-loader ng-show="busy"></umb-loader>
<div ng-hide="success">
<div ng-hide="miniListView">
<umb-tree-search-box
hide-search-callback="hideSearch"
search-callback="onSearchResults"
search-from-id="{{searchInfo.searchFromId}}"
search-from-name="{{searchInfo.searchFromName}}"
show-search="{{searchInfo.showSearch}}"
section="{{section}}">
</umb-tree-search-box>
<br />
<umb-tree-search-results
ng-if="searchInfo.showSearch"
results="searchInfo.results"
select-result-callback="selectResult">
</umb-tree-search-results>
<div ng-hide="searchInfo.showSearch">
<umb-tree
section="content"
hideheader="{{treeModel.hideHeader}}"
hideoptions="true"
isdialog="true"
api="dialogTreeApi"
on-init="onTreeInit()"
enablelistviewexpand="true"
enablecheckboxes="true">
</umb-tree>
</div>
</div>
<umb-mini-list-view
ng-if="miniListView"
node="miniListView"
entity-type="Document"
on-select="selectListViewNode(node)"
on-close="closeMiniListView()">
</umb-mini-list-view>
<umb-pane>
<umb-control-group localize="label" label="@defaultdialogs_relateToOriginalLabel">
<umb-toggle checked="$parent.$parent.relateToOriginal" on-click="$parent.$parent.toggle('relate')"></umb-toggle>
</umb-control-group>
</umb-pane>
<umb-pane>
<umb-control-group localize="label" label="@defaultdialogs_includeDescendants">
<umb-toggle checked="$parent.$parent.recursive" on-click="$parent.$parent.toggle('recursive')"></umb-toggle>
</umb-control-group>
</umb-pane>
</div>
</div>
</div>
<div class="umb-dialog-footer btn-toolbar umb-btn-toolbar" ng-hide="success">
<a class="btn btn-link" ng-click="closeDialog()" ng-show="!busy">
<localize key="general_cancel">Cancel</localize>
</a>
<button class="btn btn-primary" ng-click="copy()" ng-disabled="busy || !target">
<localize key="actions_copy">Copy</localize>
</button>
</div>
</div>
|
const R = require('ramda');
const {thread} = require('davis-shared').fp;
const DataLoader = require('dataloader');
const Task = require('data.task');
const Async = require('control.async')(Task);
const when = require('when');
const task2Promise = Async.toPromise(when.promise);
module.exports = (entityRepository, entityTypes) => thread(entityTypes,
R.map(entityType => ([
entityType,
new DataLoader(ids => task2Promise(
entityRepository.queryById(entityType, ids).map(entities => {
const indexedEntities = R.indexBy(R.prop('id'), entities);
return ids.map(R.propOr(null, R.__, indexedEntities));
})))])),
R.fromPairs);
|
//
// SimpleAuthGooglePlusLoginViewController.h
// SimpleAuth
//
// Created by Martin Pilch on 16/5/15.
// Copyright (c) 2015 Martin Pilch, All rights reserved.
//
#import "SimpleAuthWebViewController.h"
@interface SimpleAuthGooglePlusLoginViewController : SimpleAuthWebViewController
@end
|
<?php
if(isset($_GET['pemail']))
{
$pemail=$_GET['pemail'];
}
else
{
$pemail = '';
}
//echo $pemail;
//exit;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Diesel Subscribe</title>
<link href="<?=base_url();?>css/newsletter.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?=base_url();?>css/MyFontsWebfontsKit.min.css"/>
<style>
body{background:none;overflow: hidden!important;}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
// Place ID's of all required fields here.
required = ["email", "postcode", "fname", "lname", "male", "female"];
// If using an ID other than #email or #error then replace it here
email = $("#email");
postcode = $("#postcode");
errornotice = $("#error");
// The text to show up within a field when it is incorrect
emptyerror = "REQUIRED";
emailerror = "ENTER VALID EMAIL ADDRESS";
posterror = "INVALID POSTCODE";
$("form").submit(function(){
//Validate required fields
for (i=0;i<required.length;i++) {
var input = $('#'+required[i]);
if ((input.val() == "") || (input.val() == emptyerror)) {
input.addClass("needsfilled");
input.val("");
input.attr("placeholder", emptyerror);
/*if( input.attr("type") == "password" ) {
input.attr("placeholder", passwerror );
}*/
errornotice.fadeIn(750);
} else {
input.removeClass("needsfilled");
}
}
// Validate the e-mail.
if (!/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(email.val())) {
email.addClass("needsfilled");
email.val("");
email.attr("placeholder", emailerror);
}
if (!/^\d{4}$/.test(postcode.val())){
postcode.addClass("needsfilled");
postcode.val("");
postcode.attr("placeholder", posterror);
}
//if any inputs on the page have the class 'needsfilled' the form will not submit
if ($(":input").hasClass("needsfilled")) {
return false;
} else {
errornotice.hide();
return true;
}
});
});
</script>
<style type="text/css">.fancybox-overlay{background:rgba(0, 0, 0, 0.70); }</style>
</head>
<body>
<div class="main-popup">
<div class="images-left">
<img src="<?=base_url();?>images/newsletter-new.png" />
</div>
<div id="signup">
<?php if(isset($msg) && $msg != '') {
if($msg == 'Newsletter Successfully Subscribed!!') { ?>
<!-- success -->
<div class="heading-newsletter subscribe-new">thanks for joining <br /> diesel tribe</div>
<table border="0" cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<td width="50%"></td><td width="50%"></td>
</tr>
<tr>
<td width="100%" colspan="2"><p class="text1 subscribe-text1">Check your inbox for an email to <br />confirm your subscription. </p></td>
</tr>
<tr>
<td width="100%" colspan="2"><p class="text1">Your <b>15% OFF</b> code will be <br /> emailed to you following.</p></td>
</tr>
</table>
<?php } elseif ($msg == 'You are already subscribed') { ?>
<!-- subscribe -->
<div class="heading-newsletter subscribe-new">you clearly have style!</div>
<table border="0" cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<td width="50%"></td><td width="50%"></td>
</tr>
<tr>
<td width="100%" colspan="2"><p class="text1 subscribe-text1"> You’re already subscribed <br /> to Diesel Tribe.</p></td>
</tr>
<tr>
<td width="100%" colspan="2"><p class="text1">Keep an eye on your <br /> inbox for more style news <br /> and offers shortly</p></td>
</tr>
</table>
<?php } else { ?>
<!-- fail -->
<p class="success"><?=$msg?><br></p>
<?php } ?>
<?php } else { ?>
<form id="form1" method="post" action="<?=base_url();?>newsletter/signupprocess" name="form1">
<center>
<input type="hidden" name="Testform hidden" value="1" />
<div class="heading-newsletter">LIVE MORE SUCCESSFULLY</div>
<table border="0" cellspacing="0" cellpadding="0" style="width:100%">
<tr>
<td width="50%"></td><td width="50%"></td>
</tr>
<tr>
<td width="100%" colspan="2"><p class="text1">Join the Diesel Tribe and <br /> get <b>15% off</b> your first purchase online.</p></td>
</tr>
<tr>
<td colspan="2"><p class="ftxtarea name-txt"><span class="txt_field"><input placeholder="EMAIL ADDRESS" onfocus="this.placeholder = ''" onblur="this.placeholder = 'EMAIL ADDRESS'" name="email" id="email" type="text" value="<?=$pemail?>" style="width:99%;margin:0 auto;text-align:center;" /></span></p></td>
</tr>
<tr>
<td><p class="ftxtarea name-txt"><span class="txt_field"><input placeholder="FIRST NAME" onfocus="this.placeholder = ''" onblur="this.placeholder = 'FIRST NAME'" name="fname" id="fname" type="text" value="<?=$pemail?>" style="width: 95%;float: left;text-align:center;" /></span></p></td>
<td><p class="ftxtarea name-txt"><span class="txt_field"><input placeholder="LAST NAME" onfocus="this.placeholder = ''" onblur="this.placeholder = 'LAST NAME'" name="lname" id="lname" type="text" value="<?=$pemail?>" style="width: 95%;float: right;text-align:center;" /></span></p></td>
</tr>
<tr>
<td><p class="ftxtarea radiotext-m"><input placeholder="MALE" name="gender" id="male" type="radio" value="Male" style="" checked="checked" /> <label class="txt_field radio_txt" for="male">MALE</label></p></td>
<td><p class="ftxtarea radiotext-f"><input placeholder="FEMALE" name="gender" id="female" type="radio" value="Female" style="" /> <label class="txt_field radio_txt" for="female">FEMALE</label></p></td>
</tr>
<tr>
<td colspan="2">
<div class="main-fields">
<p class="ftxtarea ftext1"><span class="txt_field"><input placeholder="POSTCODE" onfocus="this.placeholder = ''" onblur="this.placeholder = 'POSTCODE'" name="postcode" id="postcode" type="text" value="<?php /*?><?=$postcode?><?php */?>" maxlength="4" style=" width: 191px;text-align: center;" /></span></p>
</div>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="Submit" value="SUBSCRIBE" class="subscribe-newsignup" />
</td>
</tr>
<tr>
<td colspan="2">
<a href="<?=base_url();?>info/policy" class="info-a" target="_blank">information on privacy</a>
</td>
</tr>
</table>
</center>
</form>
<?php } ?>
</div>
</div> <!-- ------------- main popup ------------- -->
</body>
</html>
|
'use strict';
var spawn = require('child_process').spawn;
var font2svg = require('../');
var fs = require('graceful-fs');
var noop = require('nop');
var rimraf = require('rimraf');
var test = require('tape');
var xml2js = require('xml2js');
var parseXML = xml2js.parseString;
var fontPath = 'test/SourceHanSansJP-Normal.otf';
var fontBuffer = fs.readFileSync(fontPath);
var pkg = require('../package.json');
rimraf.sync('test/tmp');
test('font2svg()', function(t) {
t.plan(22);
font2svg(fontBuffer, {include: 'Hello,☆世界★(^_^)b!'}, function(err, buf) {
t.error(err, 'should create a font buffer when `include` option is a string.');
parseXML(buf.toString(), function(err, result) {
t.error(err, 'should create a valid SVG buffer.');
var glyphs = result.svg.font[0].glyph;
var unicodes = glyphs.map(function(glyph) {
return glyph.$.unicode;
});
t.deepEqual(
unicodes, [
String.fromCharCode('57344'),
'!', '(', ')', ',', 'H', '^', '_', 'b', 'e', 'l', 'o', '★', '☆', '世', '界'
], 'should create glyphs including private use area automatically.'
);
t.strictEqual(glyphs[0].$.d, undefined, 'should place `.notdef` at the first glyph');
});
});
font2svg(fontBuffer, {
include: ['\u0000', '\ufffe', '\uffff'],
encoding: 'utf8'
}, function(err, str) {
t.error(err, 'should create a font buffer when `include` option is an array.');
parseXML(str, function(err, result) {
t.error(err, 'should create a valid SVG string when the encoding is utf8.');
var glyphs = result.svg.font[0].glyph;
t.equal(glyphs.length, 1, 'should ignore glyphs which are not included in CMap.');
});
});
font2svg(fontBuffer, {encoding: 'base64'}, function(err, str) {
t.error(err, 'should create a font buffer even if `include` option is not specified.');
parseXML(new Buffer(str, 'base64').toString(), function(err, result) {
t.error(err, 'should encode the result according to `encoding` option.');
t.equal(
result.svg.font[0].glyph.length, 1,
'should create a SVG including at least one glyph.'
);
});
});
font2svg(fontBuffer, null, function(err) {
t.error(err, 'should not throw errors even if `include` option is falsy value.');
});
font2svg(fontBuffer, {include: 1}, function(err) {
t.error(err, 'should not throw errors even if `include` option is not an array or a string.');
});
font2svg(fontBuffer, {include: 'a', maxBuffer: 1}, function(err) {
t.equal(err.message, 'stdout maxBuffer exceeded.', 'should pass an error of child_process.');
});
font2svg(fontBuffer, {
include: 'foo',
fontFaceAttr: {
'font-weight': 'bold',
'underline-position': '-100'
}
}, function(err, buf) {
t.error(err, 'should accept `fontFaceAttr` option.');
parseXML(buf.toString(), function(err, result) {
t.error(err, 'should create a valid SVG buffer when `fontFaceAttr` option is enabled.');
var fontFace = result.svg.font[0]['font-face'][0];
t.equal(
fontFace.$['font-weight'], 'bold',
'should change the property of the `font-face` element, using `fontFaceAttr` option.'
);
t.equal(
fontFace.$['underline-position'], '-100',
'should change the property of the `font-face` element, using `fontFaceAttr` option.'
);
});
});
t.throws(
font2svg.bind(null, new Buffer('foo'), noop), /out/,
'should throw an error when the buffer doesn\'t represent a font.'
);
t.throws(
font2svg.bind(null, 'foo', {include: 'a'}, noop), /is not a buffer/,
'should throw an error when the first argument is not a buffer.'
);
t.throws(
font2svg.bind(null, fontBuffer, {include: 'a'}, [noop]), /TypeError/,
'should throw a type error when the last argument is not a function.'
);
t.throws(
font2svg.bind(null, fontBuffer, {fontFaceAttr: 'bold'}, noop), /TypeError/,
'should throw a type error when the `fontFaceAttr` is not an object.'
);
t.throws(
font2svg.bind(null, fontBuffer, {
fontFaceAttr: {foo: 'bar'}
}, noop), /foo is not a valid attribute name/,
'should throw an error when the `fontFaceAttr` has an invalid property..'
);
});
test('"font2svg" command inside a TTY context', function(t) {
t.plan(20);
var cmd = function(args) {
var tmpCp = spawn('node', [pkg.bin].concat(args), {
stdio: [process.stdin, null, null]
});
tmpCp.stdout.setEncoding('utf8');
tmpCp.stderr.setEncoding('utf8');
return tmpCp;
};
cmd([fontPath])
.stdout.on('data', function(data) {
t.ok(/<\/svg>/.test(data), 'should print font data to stdout.');
});
cmd([fontPath, 'test/tmp/foo.svg']).on('close', function() {
fs.exists('test/tmp/foo.svg', function(result) {
t.ok(result, 'should create a font file.');
});
});
cmd([fontPath, '--include', 'abc'])
.stdout.on('data', function(data) {
t.ok(/<\/svg>/.test(data), 'should accept --include flag.');
});
cmd([fontPath, '--in', '123'])
.stdout.on('data', function(data) {
t.ok(/<\/svg>/.test(data), 'should use --in flag as an alias of --include.');
});
cmd([fontPath, '-i', 'あ'])
.stdout.on('data', function(data) {
t.ok(/<\/svg>/.test(data), 'should use -i flag as an alias of --include.');
});
cmd([fontPath, '-g', '亜'])
.stdout.on('data', function(data) {
t.ok(/<\/svg>/.test(data), 'should use -g flag as an alias of --include.');
});
cmd([fontPath, '--font-weight', 'bold'])
.stdout.on('data', function(data) {
t.ok(
/font-weight="bold"/.test(data),
'should set the property of font-face element, using property name flag.'
);
});
cmd(['--help'])
.stdout.on('data', function(data) {
t.ok(/Usage/.test(data), 'should print usage information with --help flag.');
});
cmd(['-h'])
.stdout.on('data', function(data) {
t.ok(/Usage/.test(data), 'should use -h flag as an alias of --help.');
});
cmd(['--version'])
.stdout.on('data', function(data) {
t.equal(data, pkg.version + '\n', 'should print version with --version flag.');
});
cmd(['-v'])
.stdout.on('data', function(data) {
t.equal(data, pkg.version + '\n', 'should use -v as an alias of --version.');
});
cmd([])
.stdout.on('data', function(data) {
t.ok(/Usage/.test(data), 'should print usage information when it takes no arguments.');
});
var unsupportedErr = '';
cmd(['cli.js'])
.on('close', function(code) {
t.notEqual(code, 0, 'should fail when it cannot parse the input.');
t.ok(
/Unsupported/.test(unsupportedErr),
'should print `Unsupported OpenType` error message to stderr.'
);
})
.stderr.on('data', function(data) {
unsupportedErr += data;
});
var invalidAttrErr = '';
cmd([fontPath, '--font-eight', 'bold', '--font-smile'])
.on('close', function(code) {
t.notEqual(code, 0, 'should fail when it takes invalid flags.');
t.ok(
/font-eight is not a valid attribute name/.test(invalidAttrErr),
'should print `invalid attribute` error message to stderr.'
);
})
.stderr.on('data', function(data) {
invalidAttrErr += data;
});
var enoentErr = '';
cmd(['foo'])
.on('close', function(code) {
t.notEqual(code, 0, 'should fail when the file doesn\'t exist.');
t.ok(/ENOENT/.test(enoentErr), 'should print ENOENT error message to stderr.');
})
.stderr.on('data', function(data) {
enoentErr += data;
});
var eisdirErr = '';
cmd([fontPath, 'node_modules'])
.on('close', function(code) {
t.notEqual(code, 0, 'should fail when a directory exists in the destination path.');
t.ok(/EISDIR/.test(eisdirErr), 'should print EISDIR error message to stderr.');
})
.stderr.on('data', function(data) {
eisdirErr += data;
});
});
test('"font2svg" command outside a TTY context', function(t) {
t.plan(4);
var cmd = function(args) {
var tmpCp = spawn('node', [pkg.bin].concat(args), {
stdio: ['pipe', null, null]
});
tmpCp.stdout.setEncoding('utf8');
tmpCp.stderr.setEncoding('utf8');
return tmpCp;
};
var cp = cmd([]);
cp.stdout.on('data', function(data) {
t.ok(/<\/svg>/.test(data), 'should parse stdin and print SVG data.');
});
cp.stdin.end(fontBuffer);
cmd(['test/tmp/bar.svg', '--include', 'ア'])
.on('close', function() {
fs.exists('test/tmp/bar.svg', function(result) {
t.ok(result, 'should write a SVG file.');
});
})
.stdin.end(fontBuffer);
var err = '';
var cpErr = cmd([]);
cpErr.on('close', function(code) {
t.notEqual(code, 0, 'should fail when stdin receives unsupported file buffer.');
t.ok(
/Unsupported/.test(err),
'should print an error when stdin receives unsupported file buffer.'
);
});
cpErr.stderr.on('data', function(output) {
err += output;
});
cpErr.stdin.end(new Buffer('invalid data'));
});
|
<?php
/**
* This file is part of Terminalor.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Terminalor core application class responsible for managing user defined
* commands.
*
* @package Terminalor
* @subpackage Application
* @author Bernard Baltrusaitis <bernard@runawaylover.info>
* @link http://terminalor.runawaylover.info
*/
class Terminalor_Application extends Terminalor_Application_Abstract
{
/**
* Check if command with given name exists
*
* @param string $offset user defined command name
* @return boolean
*/
public function offsetExists($offset)
{
return array_key_exists($offset, $this->_commands);
}
/**
* Get command's body by given name
*
* @param string $offset command name
* @return Closure command body
*/
public function offsetGet($offset)
{
try {
if ($this->offsetExists($offset)) {
$command = $this->_commands[$offset];
return $command;
} else {
throw new InvalidArgumentException(
sprintf('Can\'t execute `%s` command. It doesn\'t exists.', $offset));
}
} catch (InvalidArgumentException $e) {
$this->getResponse()->message($e->getMessage(), 'error');
}
}
/**
* Register new command
* <code>
* $terminalor['command_name'] = function(Terminalor_Application_Interface $terminalor){
* $terminalor->getResponse()->message('Hello world');
* };
* </code>
*
* @param string $offset command name
* @param Closure $value command body
* @return null
*/
public function offsetSet($offset, $value)
{
try {
if ($this->offsetExists($offset)) {
throw new InvalidArgumentException(
sprintf('Can\'t create `%s` command. It\'s already exists.',
$offset));
}
if (!($value instanceof Closure)) {
throw new InvalidArgumentException(
sprintf('Can\'t create `%s` command. Value `%s` is not closure.',
$offset, $value));
}
$this->_commands[$offset] = $value;
} catch (InvalidArgumentException $e) {
$this->getResponse()->message($e->getMessage(), 'error');
}
}
/**
* Remove command with given name
*
* @param string $offset command name
* @return null
*/
public function offsetUnset($offset)
{
try {
if (!$this->offsetExists($offset)) {
throw new InvalidArgumentException(
sprintf('Can\'t delete `%s` command. It doesn\'t exists.', $offset));
}
unset($this->_commands[$offset]);
} catch (InvalidArgumentException $e) {
$this->getResponse()->message($e->getMessage(), 'error');
}
}
/**
* Calculate number of defined commands
*
* @return int number of commands
*/
public function count()
{
return count($this->_commands);
}
/**
* Retriew current command
*
* @return Closure
*/
public function current()
{
return current($this->_commands);
}
/**
* Retriew next command
*
* @return Closure
*/
public function next()
{
return next($this->_commands);
}
/**
* Get current command name
*
* @return string
*/
public function key()
{
return key($this->_commands);
}
/**
* Check if command with given key exists
*
* @return boolean true if command exists
*/
public function valid()
{
$offset = $this->key();
return $this->offsetExists($offset);
}
/**
* Set internal commands pointer to the first command
*
* @return null
*/
public function rewind()
{
reset($this->_commands);
}
/**
* Remove all defined commands
*
* @return Terminalor_Application_Interface
*/
public function flush()
{
$this->_commands = array();
return $this;
}
/**
* Dispatches application
*
* @return null
*/
public function __toString()
{
if (!defined('_TERMINALOR_BUILDER_')) {
parent::__toString();
}
}
}
|
# frozen_string_literal: true
module RuboCop
module Cop
module Metrics
# This cop checks for methods with too many parameters.
# The maximum number of parameters is configurable.
# On Ruby 2.0+ keyword arguments can optionally
# be excluded from the total count.
class ParameterLists < Cop
include ConfigurableMax
MSG = 'Avoid parameter lists longer than %d parameters. [%d/%d]'.freeze
def on_args(node)
count = args_count(node)
return unless count > max_params
message = format(MSG, max_params, count, max_params)
add_offense(node, :expression, message) do
self.max = count
end
end
private
def args_count(node)
if count_keyword_args?
node.children.size
else
node.children.count { |a| !%i(kwoptarg kwarg).include?(a.type) }
end
end
def max_params
cop_config['Max']
end
def count_keyword_args?
cop_config['CountKeywordArgs']
end
end
end
end
end
|
import {
propValues,
isConstructor,
initializeProps,
parseAttributeValue,
ICustomElement,
ConstructableComponent,
FunctionComponent,
PropsDefinition,
} from "./utils";
let currentElement: HTMLElement & ICustomElement;
export function getCurrentElement() {
return currentElement;
}
export function noShadowDOM() {
Object.defineProperty(currentElement, "renderRoot", {
value: currentElement,
});
}
export function createElementType<T>(
BaseElement: typeof HTMLElement,
propDefinition: PropsDefinition<T>
) {
const propKeys = Object.keys(propDefinition) as Array<
keyof PropsDefinition<T>
>;
return class CustomElement extends BaseElement implements ICustomElement {
[prop: string]: any;
__initialized?: boolean;
__released: boolean;
__releaseCallbacks: any[];
__propertyChangedCallbacks: any[];
__updating: { [prop: string]: any };
props: { [prop: string]: any };
static get observedAttributes() {
return propKeys.map((k) => propDefinition[k].attribute);
}
constructor() {
super();
this.__initialized = false;
this.__released = false;
this.__releaseCallbacks = [];
this.__propertyChangedCallbacks = [];
this.__updating = {};
this.props = {};
}
connectedCallback() {
if (this.__initialized) return;
this.__releaseCallbacks = [];
this.__propertyChangedCallbacks = [];
this.__updating = {};
this.props = initializeProps(this as any, propDefinition);
const props = propValues<T>(this.props as PropsDefinition<T>),
ComponentType = this.Component as
| Function
| { new (...args: any[]): any },
outerElement = currentElement;
try {
currentElement = this;
this.__initialized = true;
if (isConstructor(ComponentType))
new (ComponentType as ConstructableComponent<T>)(props, {
element: this as ICustomElement,
});
else
(ComponentType as FunctionComponent<T>)(props, {
element: this as ICustomElement,
});
} finally {
currentElement = outerElement;
}
}
async disconnectedCallback() {
// prevent premature releasing when element is only temporarely removed from DOM
await Promise.resolve();
if (this.isConnected) return;
this.__propertyChangedCallbacks.length = 0;
let callback = null;
while ((callback = this.__releaseCallbacks.pop())) callback(this);
delete this.__initialized;
this.__released = true;
}
attributeChangedCallback(name: string, oldVal: string, newVal: string) {
if (!this.__initialized) return;
if (this.__updating[name]) return;
name = this.lookupProp(name)!;
if (name in propDefinition) {
if (newVal == null && !this[name]) return;
this[name] = propDefinition[name as keyof T].parse
? parseAttributeValue(newVal)
: newVal;
}
}
lookupProp(attrName: string) {
if (!propDefinition) return;
return propKeys.find(
(k) => attrName === k || attrName === propDefinition[k].attribute
) as string | undefined;
}
get renderRoot() {
return this.shadowRoot || this.attachShadow({ mode: "open" });
}
addReleaseCallback(fn: () => void) {
this.__releaseCallbacks.push(fn);
}
addPropertyChangedCallback(fn: (name: string, value: any) => void) {
this.__propertyChangedCallbacks.push(fn);
}
};
}
|
'use strict';
var should = require('should'),
request = require('supertest'),
app = require('../../server'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Rawrecords3 = mongoose.model('Rawrecords3'),
agent = request.agent(app);
/**
* Globals
*/
var credentials, user, rawrecords3;
/**
* Rawrecords3 routes tests
*/
describe('Rawrecords3 CRUD tests', function() {
beforeEach(function(done) {
// Create user credentials
credentials = {
username: 'username',
password: 'password'
};
// Create a new user
user = new User({
firstName: 'Full',
lastName: 'Name',
displayName: 'Full Name',
email: 'test@test.com',
username: credentials.username,
password: credentials.password,
provider: 'local'
});
// Save a user to the test db and create new Rawrecords3
user.save(function() {
rawrecords3 = {
name: 'Rawrecords3 Name'
};
done();
});
});
it('should be able to save Rawrecords3 instance if logged in', function(done) {
agent.post('/auth/signin')
.send(credentials)
.expect(200)
.end(function(signinErr, signinRes) {
// Handle signin error
if (signinErr) done(signinErr);
// Get the userId
var userId = user.id;
// Save a new Rawrecords3
agent.post('/rawrecords3s')
.send(rawrecords3)
.expect(200)
.end(function(rawrecords3SaveErr, rawrecords3SaveRes) {
// Handle Rawrecords3 save error
if (rawrecords3SaveErr) done(rawrecords3SaveErr);
// Get a list of Rawrecords3s
agent.get('/rawrecords3s')
.end(function(rawrecords3sGetErr, rawrecords3sGetRes) {
// Handle Rawrecords3 save error
if (rawrecords3sGetErr) done(rawrecords3sGetErr);
// Get Rawrecords3s list
var rawrecords3s = rawrecords3sGetRes.body;
// Set assertions
(rawrecords3s[0].user._id).should.equal(userId);
(rawrecords3s[0].name).should.match('Rawrecords3 Name');
// Call the assertion callback
done();
});
});
});
});
it('should not be able to save Rawrecords3 instance if not logged in', function(done) {
agent.post('/rawrecords3s')
.send(rawrecords3)
.expect(401)
.end(function(rawrecords3SaveErr, rawrecords3SaveRes) {
// Call the assertion callback
done(rawrecords3SaveErr);
});
});
it('should not be able to save Rawrecords3 instance if no name is provided', function(done) {
// Invalidate name field
rawrecords3.name = '';
agent.post('/auth/signin')
.send(credentials)
.expect(200)
.end(function(signinErr, signinRes) {
// Handle signin error
if (signinErr) done(signinErr);
// Get the userId
var userId = user.id;
// Save a new Rawrecords3
agent.post('/rawrecords3s')
.send(rawrecords3)
.expect(400)
.end(function(rawrecords3SaveErr, rawrecords3SaveRes) {
// Set message assertion
(rawrecords3SaveRes.body.message).should.match('Please fill Rawrecords3 name');
// Handle Rawrecords3 save error
done(rawrecords3SaveErr);
});
});
});
it('should be able to update Rawrecords3 instance if signed in', function(done) {
agent.post('/auth/signin')
.send(credentials)
.expect(200)
.end(function(signinErr, signinRes) {
// Handle signin error
if (signinErr) done(signinErr);
// Get the userId
var userId = user.id;
// Save a new Rawrecords3
agent.post('/rawrecords3s')
.send(rawrecords3)
.expect(200)
.end(function(rawrecords3SaveErr, rawrecords3SaveRes) {
// Handle Rawrecords3 save error
if (rawrecords3SaveErr) done(rawrecords3SaveErr);
// Update Rawrecords3 name
rawrecords3.name = 'WHY YOU GOTTA BE SO MEAN?';
// Update existing Rawrecords3
agent.put('/rawrecords3s/' + rawrecords3SaveRes.body._id)
.send(rawrecords3)
.expect(200)
.end(function(rawrecords3UpdateErr, rawrecords3UpdateRes) {
// Handle Rawrecords3 update error
if (rawrecords3UpdateErr) done(rawrecords3UpdateErr);
// Set assertions
(rawrecords3UpdateRes.body._id).should.equal(rawrecords3SaveRes.body._id);
(rawrecords3UpdateRes.body.name).should.match('WHY YOU GOTTA BE SO MEAN?');
// Call the assertion callback
done();
});
});
});
});
it('should be able to get a list of Rawrecords3s if not signed in', function(done) {
// Create new Rawrecords3 model instance
var rawrecords3Obj = new Rawrecords3(rawrecords3);
// Save the Rawrecords3
rawrecords3Obj.save(function() {
// Request Rawrecords3s
request(app).get('/rawrecords3s')
.end(function(req, res) {
// Set assertion
res.body.should.be.an.Array.with.lengthOf(1);
// Call the assertion callback
done();
});
});
});
it('should be able to get a single Rawrecords3 if not signed in', function(done) {
// Create new Rawrecords3 model instance
var rawrecords3Obj = new Rawrecords3(rawrecords3);
// Save the Rawrecords3
rawrecords3Obj.save(function() {
request(app).get('/rawrecords3s/' + rawrecords3Obj._id)
.end(function(req, res) {
// Set assertion
res.body.should.be.an.Object.with.property('name', rawrecords3.name);
// Call the assertion callback
done();
});
});
});
it('should be able to delete Rawrecords3 instance if signed in', function(done) {
agent.post('/auth/signin')
.send(credentials)
.expect(200)
.end(function(signinErr, signinRes) {
// Handle signin error
if (signinErr) done(signinErr);
// Get the userId
var userId = user.id;
// Save a new Rawrecords3
agent.post('/rawrecords3s')
.send(rawrecords3)
.expect(200)
.end(function(rawrecords3SaveErr, rawrecords3SaveRes) {
// Handle Rawrecords3 save error
if (rawrecords3SaveErr) done(rawrecords3SaveErr);
// Delete existing Rawrecords3
agent.delete('/rawrecords3s/' + rawrecords3SaveRes.body._id)
.send(rawrecords3)
.expect(200)
.end(function(rawrecords3DeleteErr, rawrecords3DeleteRes) {
// Handle Rawrecords3 error error
if (rawrecords3DeleteErr) done(rawrecords3DeleteErr);
// Set assertions
(rawrecords3DeleteRes.body._id).should.equal(rawrecords3SaveRes.body._id);
// Call the assertion callback
done();
});
});
});
});
it('should not be able to delete Rawrecords3 instance if not signed in', function(done) {
// Set Rawrecords3 user
rawrecords3.user = user;
// Create new Rawrecords3 model instance
var rawrecords3Obj = new Rawrecords3(rawrecords3);
// Save the Rawrecords3
rawrecords3Obj.save(function() {
// Try deleting Rawrecords3
request(app).delete('/rawrecords3s/' + rawrecords3Obj._id)
.expect(401)
.end(function(rawrecords3DeleteErr, rawrecords3DeleteRes) {
// Set message assertion
(rawrecords3DeleteRes.body.message).should.match('User is not logged in');
// Handle Rawrecords3 error error
done(rawrecords3DeleteErr);
});
});
});
afterEach(function(done) {
User.remove().exec();
Rawrecords3.remove().exec();
done();
});
}); |
/* Encoder Library, for measuring quadrature encoded signals
* http://www.pjrc.com/teensy/td_libs_Encoder.html
* Copyright (c) 2011,2013 PJRC.COM, LLC - Paul Stoffregen <paul@pjrc.com>
*
* Version 1.2 - fix -2 bug in C-only code
* Version 1.1 - expand to support boards with up to 60 interrupts
* Version 1.0 - initial release
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
#ifndef Encoder_h_
#define Encoder_h_
#if defined(ARDUINO) && ARDUINO >= 100
#include "Arduino.h"
#elif defined(WIRING)
#include "Wiring.h"
#else
#include "WProgram.h"
#include "pins_arduino.h"
#endif
#include "encoder_utilities/direct_pin_read.h"
#if defined(ENCODER_USE_INTERRUPTS) || !defined(ENCODER_DO_NOT_USE_INTERRUPTS)
#define ENCODER_USE_INTERRUPTS
#define ENCODER_ARGLIST_SIZE CORE_NUM_INTERRUPT
#include "encoder_utilities/interrupt_pins.h"
#ifdef ENCODER_OPTIMIZE_INTERRUPTS
#include "encoder_utilities/interrupt_config.h"
#endif
#else
#define ENCODER_ARGLIST_SIZE 0
#endif
// All the data needed by interrupts is consolidated into this ugly struct
// to facilitate assembly language optimizing of the speed critical update.
// The assembly code uses auto-incrementing addressing modes, so the struct
// must remain in exactly this order.
typedef struct {
volatile IO_REG_TYPE * pin1_register;
volatile IO_REG_TYPE * pin2_register;
IO_REG_TYPE pin1_bitmask;
IO_REG_TYPE pin2_bitmask;
uint8_t state;
int32_t position;
} Encoder_internal_state_t;
class Encoder
{
public:
Encoder(uint8_t pin1, uint8_t pin2) {
#ifdef INPUT_PULLUP
pinMode(pin1, INPUT_PULLUP);
pinMode(pin2, INPUT_PULLUP);
#else
pinMode(pin1, INPUT);
digitalWrite(pin1, HIGH);
pinMode(pin2, INPUT);
digitalWrite(pin2, HIGH);
#endif
encoder.pin1_register = PIN_TO_BASEREG(pin1);
encoder.pin1_bitmask = PIN_TO_BITMASK(pin1);
encoder.pin2_register = PIN_TO_BASEREG(pin2);
encoder.pin2_bitmask = PIN_TO_BITMASK(pin2);
encoder.position = 0;
// allow time for a passive R-C filter to charge
// through the pullup resistors, before reading
// the initial state
delayMicroseconds(2000);
uint8_t s = 0;
if (DIRECT_PIN_READ(encoder.pin1_register, encoder.pin1_bitmask)) s |= 1;
if (DIRECT_PIN_READ(encoder.pin2_register, encoder.pin2_bitmask)) s |= 2;
encoder.state = s;
#ifdef ENCODER_USE_INTERRUPTS
interrupts_in_use = attach_interrupt(pin1, &encoder);
interrupts_in_use += attach_interrupt(pin2, &encoder);
#endif
//update_finishup(); // to force linker to include the code (does not work)
}
#ifdef ENCODER_USE_INTERRUPTS
inline int32_t read() {
if (interrupts_in_use < 2) {
noInterrupts();
update(&encoder);
} else {
noInterrupts();
}
int32_t ret = encoder.position;
interrupts();
return ret;
}
inline void write(int32_t p) {
noInterrupts();
encoder.position = p;
interrupts();
}
#else
inline int32_t read() {
update(&encoder);
return encoder.position;
}
inline void write(int32_t p) {
encoder.position = p;
}
#endif
private:
Encoder_internal_state_t encoder;
#ifdef ENCODER_USE_INTERRUPTS
uint8_t interrupts_in_use;
#endif
public:
static Encoder_internal_state_t * interruptArgs[ENCODER_ARGLIST_SIZE];
// _______ _______
// Pin1 ______| |_______| |______ Pin1
// negative <--- _______ _______ __ --> positive
// Pin2 __| |_______| |_______| Pin2
// new new old old
// pin2 pin1 pin2 pin1 Result
// ---- ---- ---- ---- ------
// 0 0 0 0 no movement
// 0 0 0 1 +1
// 0 0 1 0 -1
// 0 0 1 1 +2 (assume pin1 edges only)
// 0 1 0 0 -1
// 0 1 0 1 no movement
// 0 1 1 0 -2 (assume pin1 edges only)
// 0 1 1 1 +1
// 1 0 0 0 +1
// 1 0 0 1 -2 (assume pin1 edges only)
// 1 0 1 0 no movement
// 1 0 1 1 -1
// 1 1 0 0 +2 (assume pin1 edges only)
// 1 1 0 1 -1
// 1 1 1 0 +1
// 1 1 1 1 no movement
/*
// Simple, easy-to-read "documentation" version :-)
//
void update(void) {
uint8_t s = state & 3;
if (digitalRead(pin1)) s |= 4;
if (digitalRead(pin2)) s |= 8;
switch (s) {
case 0: case 5: case 10: case 15:
break;
case 1: case 7: case 8: case 14:
position++; break;
case 2: case 4: case 11: case 13:
position--; break;
case 3: case 12:
position += 2; break;
default:
position -= 2; break;
}
state = (s >> 2);
}
*/
private:
static void update(Encoder_internal_state_t *arg) {
#if defined(__AVR__)
// The compiler believes this is just 1 line of code, so
// it will inline this function into each interrupt
// handler. That's a tiny bit faster, but grows the code.
// Especially when used with ENCODER_OPTIMIZE_INTERRUPTS,
// the inline nature allows the ISR prologue and epilogue
// to only save/restore necessary registers, for very nice
// speed increase.
asm volatile (
"ld r30, X+" "\n\t"
"ld r31, X+" "\n\t"
"ld r24, Z" "\n\t" // r24 = pin1 input
"ld r30, X+" "\n\t"
"ld r31, X+" "\n\t"
"ld r25, Z" "\n\t" // r25 = pin2 input
"ld r30, X+" "\n\t" // r30 = pin1 mask
"ld r31, X+" "\n\t" // r31 = pin2 mask
"ld r22, X" "\n\t" // r22 = state
"andi r22, 3" "\n\t"
"and r24, r30" "\n\t"
"breq L%=1" "\n\t" // if (pin1)
"ori r22, 4" "\n\t" // state |= 4
"L%=1:" "and r25, r31" "\n\t"
"breq L%=2" "\n\t" // if (pin2)
"ori r22, 8" "\n\t" // state |= 8
"L%=2:" "ldi r30, lo8(pm(L%=table))" "\n\t"
"ldi r31, hi8(pm(L%=table))" "\n\t"
"add r30, r22" "\n\t"
"adc r31, __zero_reg__" "\n\t"
"asr r22" "\n\t"
"asr r22" "\n\t"
"st X+, r22" "\n\t" // store new state
"ld r22, X+" "\n\t"
"ld r23, X+" "\n\t"
"ld r24, X+" "\n\t"
"ld r25, X+" "\n\t"
"ijmp" "\n\t" // jumps to update_finishup()
// TODO move this table to another static function,
// so it doesn't get needlessly duplicated. Easier
// said than done, due to linker issues and inlining
"L%=table:" "\n\t"
"rjmp L%=end" "\n\t" // 0
"rjmp L%=plus1" "\n\t" // 1
"rjmp L%=minus1" "\n\t" // 2
"rjmp L%=plus2" "\n\t" // 3
"rjmp L%=minus1" "\n\t" // 4
"rjmp L%=end" "\n\t" // 5
"rjmp L%=minus2" "\n\t" // 6
"rjmp L%=plus1" "\n\t" // 7
"rjmp L%=plus1" "\n\t" // 8
"rjmp L%=minus2" "\n\t" // 9
"rjmp L%=end" "\n\t" // 10
"rjmp L%=minus1" "\n\t" // 11
"rjmp L%=plus2" "\n\t" // 12
"rjmp L%=minus1" "\n\t" // 13
"rjmp L%=plus1" "\n\t" // 14
"rjmp L%=end" "\n\t" // 15
"L%=minus2:" "\n\t"
"subi r22, 2" "\n\t"
"sbci r23, 0" "\n\t"
"sbci r24, 0" "\n\t"
"sbci r25, 0" "\n\t"
"rjmp L%=store" "\n\t"
"L%=minus1:" "\n\t"
"subi r22, 1" "\n\t"
"sbci r23, 0" "\n\t"
"sbci r24, 0" "\n\t"
"sbci r25, 0" "\n\t"
"rjmp L%=store" "\n\t"
"L%=plus2:" "\n\t"
"subi r22, 254" "\n\t"
"rjmp L%=z" "\n\t"
"L%=plus1:" "\n\t"
"subi r22, 255" "\n\t"
"L%=z:" "sbci r23, 255" "\n\t"
"sbci r24, 255" "\n\t"
"sbci r25, 255" "\n\t"
"L%=store:" "\n\t"
"st -X, r25" "\n\t"
"st -X, r24" "\n\t"
"st -X, r23" "\n\t"
"st -X, r22" "\n\t"
"L%=end:" "\n"
: : "x" (arg) : "r22", "r23", "r24", "r25", "r30", "r31");
#else
uint8_t p1val = DIRECT_PIN_READ(arg->pin1_register, arg->pin1_bitmask);
uint8_t p2val = DIRECT_PIN_READ(arg->pin2_register, arg->pin2_bitmask);
uint8_t state = arg->state & 3;
if (p1val) state |= 4;
if (p2val) state |= 8;
arg->state = (state >> 2);
switch (state) {
case 1: case 7: case 8: case 14:
arg->position++;
return;
case 2: case 4: case 11: case 13:
arg->position--;
return;
case 3: case 12:
arg->position += 2;
return;
case 6: case 9:
arg->position -= 2;
return;
}
#endif
}
/*
#if defined(__AVR__)
// TODO: this must be a no inline function
// even noinline does not seem to solve difficult
// problems with this. Oh well, it was only meant
// to shrink code size - there's no performance
// improvement in this, only code size reduction.
__attribute__((noinline)) void update_finishup(void) {
asm volatile (
"ldi r30, lo8(pm(Ltable))" "\n\t"
"ldi r31, hi8(pm(Ltable))" "\n\t"
"Ltable:" "\n\t"
"rjmp L%=end" "\n\t" // 0
"rjmp L%=plus1" "\n\t" // 1
"rjmp L%=minus1" "\n\t" // 2
"rjmp L%=plus2" "\n\t" // 3
"rjmp L%=minus1" "\n\t" // 4
"rjmp L%=end" "\n\t" // 5
"rjmp L%=minus2" "\n\t" // 6
"rjmp L%=plus1" "\n\t" // 7
"rjmp L%=plus1" "\n\t" // 8
"rjmp L%=minus2" "\n\t" // 9
"rjmp L%=end" "\n\t" // 10
"rjmp L%=minus1" "\n\t" // 11
"rjmp L%=plus2" "\n\t" // 12
"rjmp L%=minus1" "\n\t" // 13
"rjmp L%=plus1" "\n\t" // 14
"rjmp L%=end" "\n\t" // 15
"L%=minus2:" "\n\t"
"subi r22, 2" "\n\t"
"sbci r23, 0" "\n\t"
"sbci r24, 0" "\n\t"
"sbci r25, 0" "\n\t"
"rjmp L%=store" "\n\t"
"L%=minus1:" "\n\t"
"subi r22, 1" "\n\t"
"sbci r23, 0" "\n\t"
"sbci r24, 0" "\n\t"
"sbci r25, 0" "\n\t"
"rjmp L%=store" "\n\t"
"L%=plus2:" "\n\t"
"subi r22, 254" "\n\t"
"rjmp L%=z" "\n\t"
"L%=plus1:" "\n\t"
"subi r22, 255" "\n\t"
"L%=z:" "sbci r23, 255" "\n\t"
"sbci r24, 255" "\n\t"
"sbci r25, 255" "\n\t"
"L%=store:" "\n\t"
"st -X, r25" "\n\t"
"st -X, r24" "\n\t"
"st -X, r23" "\n\t"
"st -X, r22" "\n\t"
"L%=end:" "\n"
: : : "r22", "r23", "r24", "r25", "r30", "r31");
}
#endif
*/
#ifdef ENCODER_USE_INTERRUPTS
// this giant function is an unfortunate consequence of Arduino's
// attachInterrupt function not supporting any way to pass a pointer
// or other context to the attached function.
static uint8_t attach_interrupt(uint8_t pin, Encoder_internal_state_t *state) {
switch (pin) {
#ifdef CORE_INT0_PIN
case CORE_INT0_PIN:
interruptArgs[0] = state;
attachInterrupt(0, isr0, CHANGE);
break;
#endif
#ifdef CORE_INT1_PIN
case CORE_INT1_PIN:
interruptArgs[1] = state;
attachInterrupt(1, isr1, CHANGE);
break;
#endif
#ifdef CORE_INT2_PIN
case CORE_INT2_PIN:
interruptArgs[2] = state;
attachInterrupt(2, isr2, CHANGE);
break;
#endif
#ifdef CORE_INT3_PIN
case CORE_INT3_PIN:
interruptArgs[3] = state;
attachInterrupt(3, isr3, CHANGE);
break;
#endif
#ifdef CORE_INT4_PIN
case CORE_INT4_PIN:
interruptArgs[4] = state;
attachInterrupt(4, isr4, CHANGE);
break;
#endif
#ifdef CORE_INT5_PIN
case CORE_INT5_PIN:
interruptArgs[5] = state;
attachInterrupt(5, isr5, CHANGE);
break;
#endif
#ifdef CORE_INT6_PIN
case CORE_INT6_PIN:
interruptArgs[6] = state;
attachInterrupt(6, isr6, CHANGE);
break;
#endif
#ifdef CORE_INT7_PIN
case CORE_INT7_PIN:
interruptArgs[7] = state;
attachInterrupt(7, isr7, CHANGE);
break;
#endif
#ifdef CORE_INT8_PIN
case CORE_INT8_PIN:
interruptArgs[8] = state;
attachInterrupt(8, isr8, CHANGE);
break;
#endif
#ifdef CORE_INT9_PIN
case CORE_INT9_PIN:
interruptArgs[9] = state;
attachInterrupt(9, isr9, CHANGE);
break;
#endif
#ifdef CORE_INT10_PIN
case CORE_INT10_PIN:
interruptArgs[10] = state;
attachInterrupt(10, isr10, CHANGE);
break;
#endif
#ifdef CORE_INT11_PIN
case CORE_INT11_PIN:
interruptArgs[11] = state;
attachInterrupt(11, isr11, CHANGE);
break;
#endif
#ifdef CORE_INT12_PIN
case CORE_INT12_PIN:
interruptArgs[12] = state;
attachInterrupt(12, isr12, CHANGE);
break;
#endif
#ifdef CORE_INT13_PIN
case CORE_INT13_PIN:
interruptArgs[13] = state;
attachInterrupt(13, isr13, CHANGE);
break;
#endif
#ifdef CORE_INT14_PIN
case CORE_INT14_PIN:
interruptArgs[14] = state;
attachInterrupt(14, isr14, CHANGE);
break;
#endif
#ifdef CORE_INT15_PIN
case CORE_INT15_PIN:
interruptArgs[15] = state;
attachInterrupt(15, isr15, CHANGE);
break;
#endif
#ifdef CORE_INT16_PIN
case CORE_INT16_PIN:
interruptArgs[16] = state;
attachInterrupt(16, isr16, CHANGE);
break;
#endif
#ifdef CORE_INT17_PIN
case CORE_INT17_PIN:
interruptArgs[17] = state;
attachInterrupt(17, isr17, CHANGE);
break;
#endif
#ifdef CORE_INT18_PIN
case CORE_INT18_PIN:
interruptArgs[18] = state;
attachInterrupt(18, isr18, CHANGE);
break;
#endif
#ifdef CORE_INT19_PIN
case CORE_INT19_PIN:
interruptArgs[19] = state;
attachInterrupt(19, isr19, CHANGE);
break;
#endif
#ifdef CORE_INT20_PIN
case CORE_INT20_PIN:
interruptArgs[20] = state;
attachInterrupt(20, isr20, CHANGE);
break;
#endif
#ifdef CORE_INT21_PIN
case CORE_INT21_PIN:
interruptArgs[21] = state;
attachInterrupt(21, isr21, CHANGE);
break;
#endif
#ifdef CORE_INT22_PIN
case CORE_INT22_PIN:
interruptArgs[22] = state;
attachInterrupt(22, isr22, CHANGE);
break;
#endif
#ifdef CORE_INT23_PIN
case CORE_INT23_PIN:
interruptArgs[23] = state;
attachInterrupt(23, isr23, CHANGE);
break;
#endif
#ifdef CORE_INT24_PIN
case CORE_INT24_PIN:
interruptArgs[24] = state;
attachInterrupt(24, isr24, CHANGE);
break;
#endif
#ifdef CORE_INT25_PIN
case CORE_INT25_PIN:
interruptArgs[25] = state;
attachInterrupt(25, isr25, CHANGE);
break;
#endif
#ifdef CORE_INT26_PIN
case CORE_INT26_PIN:
interruptArgs[26] = state;
attachInterrupt(26, isr26, CHANGE);
break;
#endif
#ifdef CORE_INT27_PIN
case CORE_INT27_PIN:
interruptArgs[27] = state;
attachInterrupt(27, isr27, CHANGE);
break;
#endif
#ifdef CORE_INT28_PIN
case CORE_INT28_PIN:
interruptArgs[28] = state;
attachInterrupt(28, isr28, CHANGE);
break;
#endif
#ifdef CORE_INT29_PIN
case CORE_INT29_PIN:
interruptArgs[29] = state;
attachInterrupt(29, isr29, CHANGE);
break;
#endif
#ifdef CORE_INT30_PIN
case CORE_INT30_PIN:
interruptArgs[30] = state;
attachInterrupt(30, isr30, CHANGE);
break;
#endif
#ifdef CORE_INT31_PIN
case CORE_INT31_PIN:
interruptArgs[31] = state;
attachInterrupt(31, isr31, CHANGE);
break;
#endif
#ifdef CORE_INT32_PIN
case CORE_INT32_PIN:
interruptArgs[32] = state;
attachInterrupt(32, isr32, CHANGE);
break;
#endif
#ifdef CORE_INT33_PIN
case CORE_INT33_PIN:
interruptArgs[33] = state;
attachInterrupt(33, isr33, CHANGE);
break;
#endif
#ifdef CORE_INT34_PIN
case CORE_INT34_PIN:
interruptArgs[34] = state;
attachInterrupt(34, isr34, CHANGE);
break;
#endif
#ifdef CORE_INT35_PIN
case CORE_INT35_PIN:
interruptArgs[35] = state;
attachInterrupt(35, isr35, CHANGE);
break;
#endif
#ifdef CORE_INT36_PIN
case CORE_INT36_PIN:
interruptArgs[36] = state;
attachInterrupt(36, isr36, CHANGE);
break;
#endif
#ifdef CORE_INT37_PIN
case CORE_INT37_PIN:
interruptArgs[37] = state;
attachInterrupt(37, isr37, CHANGE);
break;
#endif
#ifdef CORE_INT38_PIN
case CORE_INT38_PIN:
interruptArgs[38] = state;
attachInterrupt(38, isr38, CHANGE);
break;
#endif
#ifdef CORE_INT39_PIN
case CORE_INT39_PIN:
interruptArgs[39] = state;
attachInterrupt(39, isr39, CHANGE);
break;
#endif
#ifdef CORE_INT40_PIN
case CORE_INT40_PIN:
interruptArgs[40] = state;
attachInterrupt(40, isr40, CHANGE);
break;
#endif
#ifdef CORE_INT41_PIN
case CORE_INT41_PIN:
interruptArgs[41] = state;
attachInterrupt(41, isr41, CHANGE);
break;
#endif
#ifdef CORE_INT42_PIN
case CORE_INT42_PIN:
interruptArgs[42] = state;
attachInterrupt(42, isr42, CHANGE);
break;
#endif
#ifdef CORE_INT43_PIN
case CORE_INT43_PIN:
interruptArgs[43] = state;
attachInterrupt(43, isr43, CHANGE);
break;
#endif
#ifdef CORE_INT44_PIN
case CORE_INT44_PIN:
interruptArgs[44] = state;
attachInterrupt(44, isr44, CHANGE);
break;
#endif
#ifdef CORE_INT45_PIN
case CORE_INT45_PIN:
interruptArgs[45] = state;
attachInterrupt(45, isr45, CHANGE);
break;
#endif
#ifdef CORE_INT46_PIN
case CORE_INT46_PIN:
interruptArgs[46] = state;
attachInterrupt(46, isr46, CHANGE);
break;
#endif
#ifdef CORE_INT47_PIN
case CORE_INT47_PIN:
interruptArgs[47] = state;
attachInterrupt(47, isr47, CHANGE);
break;
#endif
#ifdef CORE_INT48_PIN
case CORE_INT48_PIN:
interruptArgs[48] = state;
attachInterrupt(48, isr48, CHANGE);
break;
#endif
#ifdef CORE_INT49_PIN
case CORE_INT49_PIN:
interruptArgs[49] = state;
attachInterrupt(49, isr49, CHANGE);
break;
#endif
#ifdef CORE_INT50_PIN
case CORE_INT50_PIN:
interruptArgs[50] = state;
attachInterrupt(50, isr50, CHANGE);
break;
#endif
#ifdef CORE_INT51_PIN
case CORE_INT51_PIN:
interruptArgs[51] = state;
attachInterrupt(51, isr51, CHANGE);
break;
#endif
#ifdef CORE_INT52_PIN
case CORE_INT52_PIN:
interruptArgs[52] = state;
attachInterrupt(52, isr52, CHANGE);
break;
#endif
#ifdef CORE_INT53_PIN
case CORE_INT53_PIN:
interruptArgs[53] = state;
attachInterrupt(53, isr53, CHANGE);
break;
#endif
#ifdef CORE_INT54_PIN
case CORE_INT54_PIN:
interruptArgs[54] = state;
attachInterrupt(54, isr54, CHANGE);
break;
#endif
#ifdef CORE_INT55_PIN
case CORE_INT55_PIN:
interruptArgs[55] = state;
attachInterrupt(55, isr55, CHANGE);
break;
#endif
#ifdef CORE_INT56_PIN
case CORE_INT56_PIN:
interruptArgs[56] = state;
attachInterrupt(56, isr56, CHANGE);
break;
#endif
#ifdef CORE_INT57_PIN
case CORE_INT57_PIN:
interruptArgs[57] = state;
attachInterrupt(57, isr57, CHANGE);
break;
#endif
#ifdef CORE_INT58_PIN
case CORE_INT58_PIN:
interruptArgs[58] = state;
attachInterrupt(58, isr58, CHANGE);
break;
#endif
#ifdef CORE_INT59_PIN
case CORE_INT59_PIN:
interruptArgs[59] = state;
attachInterrupt(59, isr59, CHANGE);
break;
#endif
default:
return 0;
}
return 1;
}
#endif // ENCODER_USE_INTERRUPTS
#if defined(ENCODER_USE_INTERRUPTS) && !defined(ENCODER_OPTIMIZE_INTERRUPTS)
#ifdef CORE_INT0_PIN
static void isr0(void) { update(interruptArgs[0]); }
#endif
#ifdef CORE_INT1_PIN
static void isr1(void) { update(interruptArgs[1]); }
#endif
#ifdef CORE_INT2_PIN
static void isr2(void) { update(interruptArgs[2]); }
#endif
#ifdef CORE_INT3_PIN
static void isr3(void) { update(interruptArgs[3]); }
#endif
#ifdef CORE_INT4_PIN
static void isr4(void) { update(interruptArgs[4]); }
#endif
#ifdef CORE_INT5_PIN
static void isr5(void) { update(interruptArgs[5]); }
#endif
#ifdef CORE_INT6_PIN
static void isr6(void) { update(interruptArgs[6]); }
#endif
#ifdef CORE_INT7_PIN
static void isr7(void) { update(interruptArgs[7]); }
#endif
#ifdef CORE_INT8_PIN
static void isr8(void) { update(interruptArgs[8]); }
#endif
#ifdef CORE_INT9_PIN
static void isr9(void) { update(interruptArgs[9]); }
#endif
#ifdef CORE_INT10_PIN
static void isr10(void) { update(interruptArgs[10]); }
#endif
#ifdef CORE_INT11_PIN
static void isr11(void) { update(interruptArgs[11]); }
#endif
#ifdef CORE_INT12_PIN
static void isr12(void) { update(interruptArgs[12]); }
#endif
#ifdef CORE_INT13_PIN
static void isr13(void) { update(interruptArgs[13]); }
#endif
#ifdef CORE_INT14_PIN
static void isr14(void) { update(interruptArgs[14]); }
#endif
#ifdef CORE_INT15_PIN
static void isr15(void) { update(interruptArgs[15]); }
#endif
#ifdef CORE_INT16_PIN
static void isr16(void) { update(interruptArgs[16]); }
#endif
#ifdef CORE_INT17_PIN
static void isr17(void) { update(interruptArgs[17]); }
#endif
#ifdef CORE_INT18_PIN
static void isr18(void) { update(interruptArgs[18]); }
#endif
#ifdef CORE_INT19_PIN
static void isr19(void) { update(interruptArgs[19]); }
#endif
#ifdef CORE_INT20_PIN
static void isr20(void) { update(interruptArgs[20]); }
#endif
#ifdef CORE_INT21_PIN
static void isr21(void) { update(interruptArgs[21]); }
#endif
#ifdef CORE_INT22_PIN
static void isr22(void) { update(interruptArgs[22]); }
#endif
#ifdef CORE_INT23_PIN
static void isr23(void) { update(interruptArgs[23]); }
#endif
#ifdef CORE_INT24_PIN
static void isr24(void) { update(interruptArgs[24]); }
#endif
#ifdef CORE_INT25_PIN
static void isr25(void) { update(interruptArgs[25]); }
#endif
#ifdef CORE_INT26_PIN
static void isr26(void) { update(interruptArgs[26]); }
#endif
#ifdef CORE_INT27_PIN
static void isr27(void) { update(interruptArgs[27]); }
#endif
#ifdef CORE_INT28_PIN
static void isr28(void) { update(interruptArgs[28]); }
#endif
#ifdef CORE_INT29_PIN
static void isr29(void) { update(interruptArgs[29]); }
#endif
#ifdef CORE_INT30_PIN
static void isr30(void) { update(interruptArgs[30]); }
#endif
#ifdef CORE_INT31_PIN
static void isr31(void) { update(interruptArgs[31]); }
#endif
#ifdef CORE_INT32_PIN
static void isr32(void) { update(interruptArgs[32]); }
#endif
#ifdef CORE_INT33_PIN
static void isr33(void) { update(interruptArgs[33]); }
#endif
#ifdef CORE_INT34_PIN
static void isr34(void) { update(interruptArgs[34]); }
#endif
#ifdef CORE_INT35_PIN
static void isr35(void) { update(interruptArgs[35]); }
#endif
#ifdef CORE_INT36_PIN
static void isr36(void) { update(interruptArgs[36]); }
#endif
#ifdef CORE_INT37_PIN
static void isr37(void) { update(interruptArgs[37]); }
#endif
#ifdef CORE_INT38_PIN
static void isr38(void) { update(interruptArgs[38]); }
#endif
#ifdef CORE_INT39_PIN
static void isr39(void) { update(interruptArgs[39]); }
#endif
#ifdef CORE_INT40_PIN
static void isr40(void) { update(interruptArgs[40]); }
#endif
#ifdef CORE_INT41_PIN
static void isr41(void) { update(interruptArgs[41]); }
#endif
#ifdef CORE_INT42_PIN
static void isr42(void) { update(interruptArgs[42]); }
#endif
#ifdef CORE_INT43_PIN
static void isr43(void) { update(interruptArgs[43]); }
#endif
#ifdef CORE_INT44_PIN
static void isr44(void) { update(interruptArgs[44]); }
#endif
#ifdef CORE_INT45_PIN
static void isr45(void) { update(interruptArgs[45]); }
#endif
#ifdef CORE_INT46_PIN
static void isr46(void) { update(interruptArgs[46]); }
#endif
#ifdef CORE_INT47_PIN
static void isr47(void) { update(interruptArgs[47]); }
#endif
#ifdef CORE_INT48_PIN
static void isr48(void) { update(interruptArgs[48]); }
#endif
#ifdef CORE_INT49_PIN
static void isr49(void) { update(interruptArgs[49]); }
#endif
#ifdef CORE_INT50_PIN
static void isr50(void) { update(interruptArgs[50]); }
#endif
#ifdef CORE_INT51_PIN
static void isr51(void) { update(interruptArgs[51]); }
#endif
#ifdef CORE_INT52_PIN
static void isr52(void) { update(interruptArgs[52]); }
#endif
#ifdef CORE_INT53_PIN
static void isr53(void) { update(interruptArgs[53]); }
#endif
#ifdef CORE_INT54_PIN
static void isr54(void) { update(interruptArgs[54]); }
#endif
#ifdef CORE_INT55_PIN
static void isr55(void) { update(interruptArgs[55]); }
#endif
#ifdef CORE_INT56_PIN
static void isr56(void) { update(interruptArgs[56]); }
#endif
#ifdef CORE_INT57_PIN
static void isr57(void) { update(interruptArgs[57]); }
#endif
#ifdef CORE_INT58_PIN
static void isr58(void) { update(interruptArgs[58]); }
#endif
#ifdef CORE_INT59_PIN
static void isr59(void) { update(interruptArgs[59]); }
#endif
#endif
};
#if defined(ENCODER_USE_INTERRUPTS) && defined(ENCODER_OPTIMIZE_INTERRUPTS)
#if defined(__AVR__)
#if defined(INT0_vect) && CORE_NUM_INTERRUPT > 0
ISR(INT0_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(0)]); }
#endif
#if defined(INT1_vect) && CORE_NUM_INTERRUPT > 1
ISR(INT1_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(1)]); }
#endif
#if defined(INT2_vect) && CORE_NUM_INTERRUPT > 2
ISR(INT2_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(2)]); }
#endif
#if defined(INT3_vect) && CORE_NUM_INTERRUPT > 3
ISR(INT3_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(3)]); }
#endif
#if defined(INT4_vect) && CORE_NUM_INTERRUPT > 4
ISR(INT4_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(4)]); }
#endif
#if defined(INT5_vect) && CORE_NUM_INTERRUPT > 5
ISR(INT5_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(5)]); }
#endif
#if defined(INT6_vect) && CORE_NUM_INTERRUPT > 6
ISR(INT6_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(6)]); }
#endif
#if defined(INT7_vect) && CORE_NUM_INTERRUPT > 7
ISR(INT7_vect) { Encoder::update(Encoder::interruptArgs[SCRAMBLE_INT_ORDER(7)]); }
#endif
#endif // AVR
#endif // ENCODER_OPTIMIZE_INTERRUPTS
#endif
|
namespace SharpCompress.Compressor.LZMA
{
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Text;
internal class BitVector
{
private uint[] mBits;
private int mLength;
public BitVector(List<bool> bits) : this(bits.Count)
{
for (int i = 0; i < bits.Count; i++)
{
if (bits[i])
{
this.SetBit(i);
}
}
}
public BitVector(int length)
{
this.mLength = length;
this.mBits = new uint[(length + 0x1f) >> 5];
}
public BitVector(int length, bool initValue)
{
this.mLength = length;
this.mBits = new uint[(length + 0x1f) >> 5];
if (initValue)
{
for (int i = 0; i < this.mBits.Length; i++)
{
this.mBits[i] = uint.MaxValue;
}
}
}
internal bool GetAndSet(int index)
{
if ((index < 0) || (index >= this.mLength))
{
throw new ArgumentOutOfRangeException("index");
}
uint num = this.mBits[index >> 5];
uint num2 = ((uint) 1) << index;
this.mBits[index >> 5] |= num2;
return ((num & num2) != 0);
}
public void SetBit(int index)
{
if ((index < 0) || (index >= this.mLength))
{
throw new ArgumentOutOfRangeException("index");
}
this.mBits[index >> 5] |= ((uint) 1) << index;
}
public bool[] ToArray()
{
bool[] flagArray = new bool[this.mLength];
for (int i = 0; i < flagArray.Length; i++)
{
flagArray[i] = this[i];
}
return flagArray;
}
public override string ToString()
{
StringBuilder builder = new StringBuilder(this.mLength);
for (int i = 0; i < this.mLength; i++)
{
builder.Append(this[i] ? 'x' : '.');
}
return builder.ToString();
}
public bool this[int index]
{
get
{
if ((index < 0) || (index >= this.mLength))
{
throw new ArgumentOutOfRangeException("index");
}
return ((this.mBits[index >> 5] & (((int) 1) << index)) != 0);
}
}
public int Length
{
get
{
return this.mLength;
}
}
}
}
|
version https://git-lfs.github.com/spec/v1
oid sha256:b63ef97b9f85b0d4a07926b186083c9952568e26bbb65d610b592d15208f79a9
size 24953
|
package proxy
import (
"bytes"
"net/http"
)
type Response interface {
Status() int
Header() http.Header
Body() []byte
}
type WriterRecorder struct {
http.ResponseWriter
status int
body bytes.Buffer
}
func (w *WriterRecorder) WriteHeader(status int) {
w.ResponseWriter.WriteHeader(status)
w.status = status
}
func (w *WriterRecorder) Write(body []byte) (n int, err error) {
if n, err := w.body.Write(body); err != nil {
return n, err
}
return w.ResponseWriter.Write(body)
}
func (w *WriterRecorder) Body() []byte {
return w.body.Bytes()
}
func (w *WriterRecorder) Status() int {
if w.status == 0 {
return 200
}
return w.status
}
|
/* UnaryOperator Copyright (C) 1998-2002 Jochen Hoenicke.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; see the file COPYING.LESSER. If not, write to
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Id: UnaryOperator.java,v 2.13.4.2 2002/05/28 17:34:06 hoenicke Exp $
*/
package alterrs.jode.expr;
import alterrs.jode.decompiler.Options;
import alterrs.jode.decompiler.TabbedPrintWriter;
import alterrs.jode.type.Type;
public class UnaryOperator extends Operator {
public UnaryOperator(Type type, int op) {
super(type, op);
initOperands(1);
}
public int getPriority() {
return 700;
}
public Expression negate() {
if (getOperatorIndex() == LOG_NOT_OP) {
if (subExpressions != null)
return subExpressions[0];
else
return new NopOperator(Type.tBoolean);
}
return super.negate();
}
public void updateSubTypes() {
subExpressions[0].setType(Type.tSubType(type));
}
public void updateType() {
updateParentType(Type.tSuperType(subExpressions[0].getType()));
}
public boolean opEquals(Operator o) {
return (o instanceof UnaryOperator) && o.operatorIndex == operatorIndex;
}
public void dumpExpression(TabbedPrintWriter writer)
throws java.io.IOException {
writer.print(getOperatorString());
if ((Options.outputStyle & Options.GNU_SPACING) != 0)
writer.print(" ");
subExpressions[0].dumpExpression(writer, 700);
}
}
|
---
layout: page-fullwidth
show_meta: true
title: "FOSI GRID"
meta_title: "Chris Henrick featured work: FOSI GRID"
teaser: "Map navigation UI for the new Family Online Safety Institute website."
date: "2016-03-28"
tags:
- web cartography
category:
- work
header: no
permalink: "/work/fosi-grid.html"
---
<strong>Project Link:</strong> <a href="http://fosigrid.org/" target="_blank">FOSI GRID</a>
The redesign of the FOSI GRID website required that users should be able to navigate the site's content and data through an interactive map, side navigation, and search bar. For the interactive map navigation I created custom geospatial data from Natural Earth's 1:50m data and used Leaflet.JS, a popular open-source web mapping library. Region polygon data was made using MAPublisher, and admin0 & admin1 polygons were created using PostGIS. To make data loading fast I used TopoJSON to store 10 different layers: region polygons, countries grouped by region, and states / provinces grouped by country. When data is added to the map it is converted from TopoJSON to GeoJSON. This cut down drastically on AJAX requests and the website's initial load time. Coordination between the project's two Ruby on Rails developers was necessary to link the CMS database with the map's UI interactions.
<strong>Technologies Used:</strong> - Leaflet.JS - Natural Earth Data - TopoJSON - GeoJSON - MAPublisher - PostGIS - Mapshaper
<a href="{{site.url}}{{site.baseurl}}/images/fosi-grid-01.png" target="_blank">
<img class="portfolio lazy" data-original="{{site.url}}{{site.baseurl}}/images/fosi-grid-01.png" width="100%" height="100%" alt="fosi-grid-01.png">
<noscript>
<img src="{{site.url}}{{site.baseurl}}/images/fosi-grid-01.png" width="100%" height="100%" alt="fosi-grid-01.png">
</noscript>
</a>
<a href="{{site.url}}{{site.baseurl}}/images/fosi-grid-02.png" target="_blank">
<img class="portfolio lazy" data-original="{{site.url}}{{site.baseurl}}/images/fosi-grid-02.png" width="100%" height="100%" alt="fosi-grid-02.png">
<noscript>
<img src="{{site.url}}{{site.baseurl}}/images/fosi-grid-02.png" width="100%" height="100%" alt="fosi-grid-02.png">
</noscript>
</a>
<a href="{{site.url}}{{site.baseurl}}/images/fosi-grid-03.png" target="_blank">
<img class="portfolio lazy" data-original="{{site.url}}{{site.baseurl}}/images/fosi-grid-03.png" width="100%" height="100%" alt="fosi-grid-03.png">
<noscript>
<img src="{{site.url}}{{site.baseurl}}/images/fosi-grid-03.png" width="100%" height="100%" alt="fosi-grid-03.png">
</noscript>
</a>
<a href="{{site.url}}{{site.baseurl}}/images/fosi-grid-04.png" target="_blank">
<img class="portfolio lazy" data-original="{{site.url}}{{site.baseurl}}/images/fosi-grid-04.png" width="100%" height="100%" alt="fosi-grid-04.png">
<noscript>
<img src="{{site.url}}{{site.baseurl}}/images/fosi-grid-04.png" width="100%" height="100%" alt="fosi-grid-04.png">
</noscript>
</a>
<a href="{{site.url}}{{site.baseurl}}/images/fosi-grid-05.png" target="_blank">
<img class="portfolio lazy" data-original="{{site.url}}{{site.baseurl}}/images/fosi-grid-05.png" width="100%" height="100%" alt="fosi-grid-05.png">
<noscript>
<img src="{{site.url}}{{site.baseurl}}/images/fosi-grid-05.png" width="100%" height="100%" alt="fosi-grid-05.png">
</noscript>
</a>
<a href="{{site.url}}{{site.baseurl}}/images/fosi-grid-06.png" target="_blank">
<img class="portfolio lazy" data-original="{{site.url}}{{site.baseurl}}/images/fosi-grid-06.png" width="100%" height="100%" alt="fosi-grid-06.png">
<noscript>
<img src="{{site.url}}{{site.baseurl}}/images/fosi-grid-06.png" width="100%" height="100%" alt="fosi-grid-06.png">
</noscript>
</a>
<a href="{{site.url}}{{site.baseurl}}/images/fosi-grid-07.png" target="_blank">
<img class="portfolio lazy" data-original="{{site.url}}{{site.baseurl}}/images/fosi-grid-07.png" width="100%" height="100%" alt="fosi-grid-07.png">
<noscript>
<img src="{{site.url}}{{site.baseurl}}/images/fosi-grid-07.png" width="100%" height="100%" alt="fosi-grid-07.png">
</noscript>
</a>
[<span class="back-arrow">↫</span> Back to the Portfolio](/work/)
|
<?php
use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = [
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle(),
new HWI\Bundle\OAuthBundle\HWIOAuthBundle(),
new JMS\I18nRoutingBundle\JMSI18nRoutingBundle(),
new JMS\TranslationBundle\JMSTranslationBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new EasyCorp\Bundle\EasySecurityBundle\EasySecurityBundle(),
new Ivory\CKEditorBundle\IvoryCKEditorBundle(),
new Exercise\HTMLPurifierBundle\ExerciseHTMLPurifierBundle(),
new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle(),
new EWZ\Bundle\RecaptchaBundle\EWZRecaptchaBundle(),
new Symfony\Bundle\WebServerBundle\WebServerBundle,
new Http\HttplugBundle\HttplugBundle(),
new BaseBundle\BaseBundle(),
new AppBundle\AppBundle(),
new AdminBundle\AdminBundle(),
];
if (in_array($this->getEnvironment(), ['dev', 'test'])) {
$bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle();
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}
return $bundles;
}
public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
}
|
using System;
using Computers.Common.Contracts;
namespace Computers.Common.Models.Components
{
public abstract class Cpu : MotherboardComponent, ICpu
{
private const int MinValue = 0;
private const string NumberTooLow = "Number too low.";
private const string NumberTooHigh = "Number too high.";
private static readonly Random Random = new Random();
public Cpu(byte numberOfCores)
{
this.NumberOfCores = numberOfCores;
}
public byte NumberOfCores { get; private set; }
public virtual void SquareNumber()
{
var data = Motherboard.LoadRamValue();
if (MinValue > data)
{
Motherboard.DrawOnVideoCard(NumberTooLow);
}
else if (data > this.GetMaxNumber())
{
Motherboard.DrawOnVideoCard(NumberTooHigh);
}
else
{
var result = data * data;
Motherboard.DrawOnVideoCard($"Square of {data} is {result}.");
}
}
public virtual void GenerateRandomNumber(int min, int max)
{
var randomNumber = Random.Next(min, max);
Motherboard.SaveRamValue(randomNumber);
}
public abstract int GetMaxNumber();
}
} |
/* globals Promise:true */
var _ = require('lodash')
var EventEmitter = require('events').EventEmitter
var inherits = require('util').inherits
var LRU = require('lru-cache')
var Promise = require('bluebird')
var Snapshot = require('./snapshot')
var errors = require('../errors')
var util = require('../util')
/**
* @event Blockchain#error
* @param {Error} error
*/
/**
* @event Blockchain#syncStart
*/
/**
* @event Blockchain#syncStop
*/
/**
* @event Blockchain#newBlock
* @param {string} hash
* @param {number} height
*/
/**
* @event Blockchain#touchAddress
* @param {string} address
*/
/**
* @class Blockchain
* @extends events.EventEmitter
*
* @param {Connector} connector
* @param {Object} [opts]
* @param {string} [opts.networkName=livenet]
* @param {number} [opts.txCacheSize=100]
*/
function Blockchain (connector, opts) {
var self = this
EventEmitter.call(self)
opts = _.extend({
networkName: 'livenet',
txCacheSize: 100
}, opts)
self.connector = connector
self.networkName = opts.networkName
self.latest = {hash: util.zfill('', 64), height: -1}
self._txCache = LRU({max: opts.txCacheSize, allowSlate: true})
self._isSyncing = false
self.on('syncStart', function () { self._isSyncing = true })
self.on('syncStop', function () { self._isSyncing = false })
}
inherits(Blockchain, EventEmitter)
Blockchain.prototype._syncStart = function () {
if (!this.isSyncing()) this.emit('syncStart')
}
Blockchain.prototype._syncStop = function () {
if (this.isSyncing()) this.emit('syncStop')
}
/**
* @param {errors.Connector} err
* @throws {errors.Connector}
*/
Blockchain.prototype._rethrow = function (err) {
var nerr
switch (err.name) {
case 'ErrorBlockchainJSConnectorHeaderNotFound':
nerr = new errors.Blockchain.HeaderNotFound()
break
case 'ErrorBlockchainJSConnectorTxNotFound':
nerr = new errors.Blockchain.TxNotFound()
break
case 'ErrorBlockchainJSConnectorTxSendError':
nerr = new errors.Blockchain.TxSendError()
break
default:
nerr = err
break
}
nerr.message = err.message
throw nerr
}
/**
* Return current syncing status
*
* @return {boolean}
*/
Blockchain.prototype.isSyncing = function () {
return this._isSyncing
}
/**
* @return {Promise<Snapshot>}
*/
Blockchain.prototype.getSnapshot = function () {
return Promise.resolve(new Snapshot(this))
}
/**
* @abstract
* @param {(number|string)} id height or hash
* @return {Promise<Connector~HeaderObject>}
*/
Blockchain.prototype.getHeader = function () {
return Promise.reject(new errors.NotImplemented('Blockchain.getHeader'))
}
/**
* @abstract
* @param {string} txid
* @return {Promise<string>}
*/
Blockchain.prototype.getTx = function () {
return Promise.reject(new errors.NotImplemented('Blockchain.getTx'))
}
/**
* @typedef {Object} Blockchain~TxBlockHashObject
* @property {string} source `blocks` or `mempool`
* @property {Object} [block] defined only when source is blocks
* @property {string} data.hash
* @property {number} data.height
*/
/**
* @abstract
* @param {string} txid
* @return {Promise<Blockchain~TxBlockHashObject>}
*/
Blockchain.prototype.getTxBlockHash = function () {
return Promise.reject(new errors.NotImplemented('Blockchain.getTxBlockHash'))
}
/**
* @abstract
* @param {string} rawtx
* @return {Promise<string>}
*/
Blockchain.prototype.sendTx = function () {
return Promise.reject(new errors.NotImplemented('Blockchain.sendTx'))
}
/**
* @abstract
* @param {string[]} addresses
* @param {Object} [opts]
* @param {string} [opts.source] `blocks` or `mempool`
* @param {(string|number)} [opts.from] `hash` or `height`
* @param {(string|number)} [opts.to] `hash` or `height`
* @param {string} [opts.status]
* @return {Promise<Connector~AddressesQueryObject>}
*/
Blockchain.prototype.addressesQuery = function () {
return Promise.reject(new errors.NotImplemented('Blockchain.addressesQuery'))
}
/**
* @abstract
* @param {string} address
* @return {Promise}
*/
Blockchain.prototype.subscribeAddress = function () {
return Promise.reject(new errors.NotImplemented('Blockchain.subscribeAddress'))
}
module.exports = Blockchain
|
<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>选项卡 - UIkit 中文文档</title>
<meta name="description" content="UIkit提供了不同样式的选项卡导航,可以轻松创建水平排列,垂直排列的各式选项卡导航。">
<meta name="author" content="UIkit中文网">
<meta name="keywords" content="UIKit选项卡,tabs,下拉菜单,居中,垂直">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon-precomposed" href="images/apple-touch-icon.png">
<link id="data-uikit-theme" rel="stylesheet" href="css/uikit.docs.min.css">
<link rel="stylesheet" href="css/docs.css">
<link rel="stylesheet" href="../vendor/highlight/highlight.css">
<script src="../vendor/jquery.js"></script>
<script src="js/uikit.min.js"></script>
<script src="../vendor/highlight/highlight.js"></script>
<script src="js/docs.js"></script>
</head>
<body class="tm-background">
<nav class="tm-navbar uk-navbar uk-navbar-attached">
<div class="uk-container uk-container-center">
<a class="uk-navbar-brand uk-hidden-small" href="../index.html"><img class="uk-margin uk-margin-remove" src="images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit"></a>
<ul class="uk-navbar-nav uk-hidden-small">
<li><a href="documentation_get-started.html">开始使用</a></li>
<li class="uk-active"><a href="core.html">核心组件</a></li>
<li><a href="components.html">附加组件</a></li>
<li><a href="customizer.html">定制工具</a></li>
<li><a href="../showcase/index.html">案例展示</a></li>
<li><a href="about.html" target="_blank">关于我们</a></li>
</ul>
<a href="#tm-offcanvas" class="uk-navbar-toggle uk-visible-small" data-uk-offcanvas></a>
<div class="uk-navbar-brand uk-navbar-center uk-visible-small"><img src="images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit"></div>
</div>
</nav>
<div class="tm-middle">
<div class="uk-container uk-container-center">
<div class="uk-grid" data-uk-grid-margin>
<div class="tm-sidebar uk-width-medium-1-4 uk-hidden-small">
<ul class="tm-nav uk-nav" data-uk-nav>
<li class="uk-nav-header">默认</li>
<li><a href="base.html">基础</a></li>
<li><a href="print.html">打印</a></li>
<li class="uk-nav-header">布局类组件</li>
<li><a href="grid.html">网格</a></li>
<li><a href="panel.html">面板</a></li>
<li><a href="article.html">文章</a></li>
<li><a href="comment.html">评论</a></li>
<li><a href="utility.html">效果</a></li>
<li><a href="flex.html">Flex</a></li>
<li><a href="cover.html">覆盖</a></li>
<li class="uk-nav-header">导航类组件</li>
<li><a href="nav.html">导航菜单</a></li>
<li><a href="navbar.html">导航栏</a></li>
<li><a href="subnav.html">子导航</a></li>
<li><a href="breadcrumb.html">面包屑</a></li>
<li><a href="pagination.html">分页</a></li>
<li class="uk-active"><a href="tab.html">选项卡</a></li>
<li><a href="thumbnav.html">缩略图导航</a></li>
<li class="uk-nav-header">页面元素</li>
<li><a href="list.html">列表</a></li>
<li><a href="description-list.html">描述列表</a></li>
<li><a href="table.html">表格</a></li>
<li><a href="form.html">表单</a></li>
<li class="uk-nav-header">常用组件</li>
<li><a href="button.html">按钮</a></li>
<li><a href="icon.html">图标</a></li>
<li><a href="close.html">关闭</a></li>
<li><a href="badge.html">徽章</a></li>
<li><a href="alert.html">提示框</a></li>
<li><a href="thumbnail.html">缩略图</a></li>
<li><a href="overlay.html">遮罩</a></li>
<li><a href="progress.html">进度条</a></li>
<li><a href="text.html">文本</a></li>
<li><a href="animation.html">动画</a></li>
<li class="uk-nav-header">JavaScript组件</li>
<li><a href="dropdown.html">下拉菜单</a></li>
<li><a href="modal.html">模态对话框</a></li>
<li><a href="offcanvas.html">弹出式画布</a></li>
<li><a href="switcher.html">切换器</a></li>
<li><a href="toggle.html">拨动</a></li>
<li><a href="scrollspy.html">滚动监听</a></li>
<li><a href="smooth-scroll.html">平滑滚动</a></li>
</ul>
</div>
<div class="tm-main uk-width-medium-3-4">
<article class="uk-article">
<h1 class="uk-article-title">选项卡</h1>
<p class="uk-article-lead">创建拥有不同样式的选项卡导航。</p>
<h2 id="usage"><a href="#usage" class="uk-link-reset">用法</a></h2>
<p>选项卡组件由一些并列的可点击选项卡标签组成。</p>
<div class="uk-overflow-container">
<table class="uk-table">
<thead>
<tr>
<th>Class类</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>.uk-tab</code></td>
<td>添加这个类到一个 <code><ul></code> 元素中定义一个选项卡组件。在列表中使用 <code><a></code> 元素作为选项卡标签。</td>
</tr>
<tr>
<td><code>.uk-active</code></td>
<td>添加这个类到选项卡标签,赋予选中状态。</td>
</tr>
<tr>
<td><code>.uk-disabled</code></td>
<td>添加这个类到选项卡标签,赋予禁用状态。</td>
</tr>
</tbody>
</table>
</div>
<p><code>data-uk-tab</code> 属性为两个目的提供支持。其一,它使得响应式行为成为可能。如果父容器太小而不能容纳所有的选项卡标签,它们将会合并到一个下拉菜单中,并由一个独立的默认选项卡作为拨动器。这里就需要用到 <a href="dropdown.html">下拉菜单组件</a> 了。</p>
<p>第二,它的功能耦合了 <a href="switcher.html">切换器组件</a>,这是使用选项卡导航切换不同内容所必须的。</p>
<h3 class="tm-article-subtitle">示例</h3>
<ul class="uk-tab uk-width-medium-7-10" data-uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
<li class="uk-disabled"><a href="#">Disabled</a></li>
</ul>
<h3 class="tm-article-subtitle">Code</h3>
<pre><code><ul class="uk-tab" data-uk-tab>
<li class="uk-active"><a href="">...</a></li>
<li><a href="">...</a></li>
<li><a href="">...</a></li>
<li class="uk-disabled"><a href="">...</a></li>
</ul></code></pre>
<hr class="uk-article-divider">
<h2 id="horizontal-modifiers"><a href="#horizontal-modifiers" class="uk-link-reset">水平方向的修饰</a></h2>
<p>添加下列类中的一个,用来改变选项卡的外观。这些修饰类可以组合使用。</p>
<h3>选项卡的对齐</h3>
<div class="uk-overflow-container">
<table class="uk-table">
<thead>
<tr>
<th>Class类</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>.uk-tab-flip</code></td>
<td>添加这个类,使选项卡右对齐,并翻转排列顺序。</td>
</tr>
<tr>
<td><code>.uk-tab-bottom</code></td>
<td>添加这个内到 <code><ul></code> ,将选项卡标签放在底部。这个类也能和其他类组合使用。</td>
</tr>
</tbody>
</table>
</div>
<h3 class="tm-article-subtitle">示例</h3>
<div class="uk-grid" data-uk-grid-margin>
<div class="uk-width-medium-1-2">
<ul class="uk-tab uk-tab-flip" data-uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
<div class="uk-width-medium-1-2">
<ul class="uk-tab uk-tab-bottom" data-uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
</div>
<h3 class="tm-article-subtitle">Code</h3>
<pre><code><ul class="uk-tab uk-tab-flip" data-uk-tab>...</ul>
<ul class="uk-tab uk-tab-bottom" data-uk-tab>...</ul></code></pre>
<hr class="uk-article-divider">
<h3>调整选项卡标签</h3>
<p>添加 <code>.uk-tab-grid</code> 类和一个 <a href="grid.html">网格组件</a> 中的 <code>.uk-width-*</code> 类,把选项卡标签放入网格中,使它的宽度与父元素宽度一致。</p>
<h4 class="tm-article-subtitle">示例</h4>
<div class="uk-width-medium-1-2">
<ul class="uk-tab uk-tab-grid uk-tab-bottom" data-uk-tab>
<li class="uk-width-1-3 uk-active"><a href="#">Active</a></li>
<li class="uk-width-1-3"><a href="#">Item</a></li>
<li class="uk-width-1-3"><a href="#">Item</a></li>
</ul>
</div>
<h4 class="tm-article-subtitle">Code</h4>
<pre><code><ul class="uk-tab uk-tab-grid uk-tab-bottom" data-uk-tab>
<li class="uk-width-1-3"><a href="">...</a></li>
</ul></code></pre>
<hr class="uk-article-divider">
<h3>选项卡标签居中</h3>
<p>添加 <code>.uk-tab-center</code> 类到包含选项卡的 <code><div></code> 元素中,使选项卡居中。</p>
<h4 class="tm-article-subtitle">示例</h4>
<div class="uk-width-medium-1-2">
<div class="uk-tab-center">
<ul class="uk-tab" data-uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
</div>
<h4 class="tm-article-subtitle">Code</h4>
<pre><code><div class="uk-tab-center">
<ul class="uk-tab" data-uk-tab>...</ul>
</div></code></pre>
<hr class="uk-article-divider">
<h2 id="vertical-modifiers"><a href="#vertical-modifiers" class="uk-link-reset">垂直方向的修饰</a></h2>
<p>添加 <code>.uk-tab-left</code> 或 <code>.uk-tab-right</code> 类,将选项卡放置在左边或者右边。</p>
<h3 class="tm-article-subtitle">示例</h3>
<div class="uk-grid" data-uk-grid-margin>
<div class="uk-width-medium-1-2">
<ul class="uk-tab uk-tab-left uk-width-medium-1-2" data-uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
<div class="uk-width-medium-1-2">
<ul class="uk-tab uk-tab-right uk-width-medium-1-2" data-uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
</ul>
</div>
</div>
<h3 class="tm-article-subtitle">Code</h3>
<div class="uk-grid" data-uk-grid-margin>
<div class="uk-width-medium-1-2">
<pre><code><ul class="uk-tab uk-tab-left uk-width-medium-1-2">
<li>...</li>
</ul></code></pre>
</div>
<div class="uk-width-medium-1-2">
<pre><code><ul class="uk-tab uk-tab-right uk-width-medium-1-2">
<li>...</li>
</ul></code></pre>
</div>
</div>
<h3>响应式行为</h3>
<p>在狭窄的视口中,比如手机,垂直的选项卡会变成水平。添加 <code>data-uk-tab</code> 属性将为水平排列的选项卡赋予相同的响应行为。</p>
<hr class="uk-article-divider">
<h2 id="tabs-with-dropdowns"><a href="#tabs-with-dropdowns" class="uk-link-reset">含有下拉菜单的选项卡</a></h2>
<p>这个例子是关于怎样使用带有 <a href="dropdown.html">下拉菜单组件</a>的选项卡。</p>
<h4 class="tm-article-subtitle">示例</h4>
<ul class="uk-tab uk-width-medium-7-10" data-uk-tab>
<li class="uk-active"><a href="#">Active</a></li>
<li><a href="#">Item</a></li>
<li><a href="#">Item</a></li>
<li data-uk-dropdown="{mode:'click'}">
<a href="#">More <i class="uk-icon-caret-down"></i></a>
<div class="uk-dropdown uk-dropdown-small">
<ul class="uk-nav uk-nav-dropdown">
<li><a href="#">Item</a></li>
<li><a href="#">Another item</a></li>
<li class="uk-nav-header">Header</li>
<li><a href="#">Item</a></li>
<li><a href="#">Another item</a></li>
<li class="uk-nav-divider"></li>
<li><a href="#">Separated item</a></li>
</ul>
</div>
</li>
</ul>
<h4 class="tm-article-subtitle">Code</h4>
<pre><code><ul class="uk-tab">
<li><a href="">...</a></li>
<!-- 关联JavaScript的容器 -->
<li data-uk-dropdown="{mode:'click'}">
<!-- 拨动下拉菜单的元素 -->
<a href="">...</a>
<!-- 下拉菜单 -->
<div class="uk-dropdown uk-dropdown-small">
<ul class="uk-nav uk-nav-dropdown">
<li><a href="">...</a></li>
</ul>
</div>
</li>
</ul></code></pre>
<hr class="uk-article-divider">
<h3>事件</h3>
<p>你可以为以下事件绑定回调,以实现自定义功能:</p>
<div class="uk-overflow-container">
<table class="uk-table uk-table-striped uk-text-nowrap">
<thead>
<tr>
<th>名称</th>
<th>参数</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>change.uk.tab</code></td>
<td>event, active item</td>
<td>On tab item change 选项卡切换时</td>
</tr>
</tbody>
</table>
</div>
</article>
</div>
</div>
</div>
</div>
<div class="tm-footer">
<div class="uk-container uk-container-center uk-text-center">
<ul class="uk-subnav uk-subnav-line uk-flex-center">
<li><a href="http://github.com/uikit/uikit" rel="nofollow">GitHub</a></li>
<li><a href="http://github.com/uikit/uikit/issues" rel="nofollow">反馈</a></li>
<li><a href="http://github.com/uikit/uikit/blob/master/CHANGELOG.md" rel="nofollow">更新日志</a></li>
<li><a href="https://twitter.com/getuikit" rel="nofollow">官方Twitter</a></li>
<li><a href="http://weibo.com/getuikit" rel="nofollow">中文微博</a></li>
</ul>
<div class="uk-panel">
<p>Made by <a href="http://www.yootheme.com" rel="nofollow">YOOtheme</a> with love and caffeine.<br class="uk-hidden-small">Licensed under <a href="http://opensource.org/licenses/MIT" rel="nofollow">MIT license</a>.<br>由<a href="http://www.getuikit.net/">UIkit中文网</a>翻译</p>
<a href="index.html"><img src="images/logo_uikit.svg" width="90" height="30" title="UIkit" alt="UIkit"></a>
</div>
</div>
</div>
<div id="tm-offcanvas" class="uk-offcanvas">
<div class="uk-offcanvas-bar">
<ul class="uk-nav uk-nav-offcanvas uk-nav-parent-icon" data-uk-nav="{ multiple: true }">
<li class="uk-parent"><a href="#">UIkit 中文文档</a>
<ul class="uk-nav-sub">
<li><a href="documentation_get-started.html">开始使用</a></li>
<li><a href="documentation_how-to-customize.html">如何定制</a></li>
<li><a href="documentation_layouts.html">布局示例</a></li>
<li><a href="core.html">核心组件</a></li>
<li><a href="components.html">附加组件</a></li>
<li><a href="documentation_project-structure.html">项目结构</a></li>
<li><a href="documentation_less-sass.html">Less & Sass 文件</a></li>
<li><a href="documentation_create-a-theme.html">创建主题</a></li>
<li><a href="documentation_create-a-style.html">创建样式</a></li>
<li><a href="documentation_customizer-json.html">Customizer.json</a></li>
<li><a href="documentation_javascript.html">Javascript</a></li>
<li><a href="documentation_custom-prefix.html">自定义前缀</a></li>
</ul>
</li>
<li class="uk-nav-header">核心组件</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-wrench"></i> 默认</a>
<ul class="uk-nav-sub">
<li><a href="base.html">基础</a></li>
<li><a href="print.html">打印</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-th-large"></i> 布局类组件</a>
<ul class="uk-nav-sub">
<li><a href="grid.html">网格</a></li>
<li><a href="panel.html">面板</a></li>
<li><a href="article.html">文章</a></li>
<li><a href="comment.html">评论</a></li>
<li><a href="utility.html">效果</a></li>
<li><a href="flex.html">Flex</a></li>
<li><a href="cover.html">覆盖</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-bars"></i> 导航类组件</a>
<ul class="uk-nav-sub">
<li><a href="nav.html">导航菜单</a></li>
<li><a href="navbar.html">导航栏</a></li>
<li><a href="subnav.html">子导航</a></li>
<li><a href="breadcrumb.html">面包屑</a></li>
<li><a href="pagination.html">分页</a></li>
<li><a href="tab.html">选项卡</a></li>
<li><a href="thumbnav.html">缩略图导航</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-check"></i> 页面元素</a>
<ul class="uk-nav-sub">
<li><a href="list.html">列表</a></li>
<li><a href="description-list.html">描述列表</a></li>
<li><a href="table.html">表格</a></li>
<li><a href="form.html">表单</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-folder-open"></i> 常用组件</a>
<ul class="uk-nav-sub">
<li><a href="button.html">按钮</a></li>
<li><a href="icon.html">图标</a></li>
<li><a href="close.html">关闭</a></li>
<li><a href="badge.html">徽章</a></li>
<li><a href="alert.html">提示框</a></li>
<li><a href="thumbnail.html">缩略图</a></li>
<li><a href="overlay.html">遮罩</a></li>
<li><a href="text.html">文本</a></li>
<li><a href="animation.html">动画</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-magic"></i> JavaScript组件</a>
<ul class="uk-nav-sub">
<li><a href="dropdown.html">下拉菜单</a></li>
<li><a href="modal.html">模态对话框</a></li>
<li><a href="offcanvas.html">弹出式画布</a></li>
<li><a href="switcher.html">切换器</a></li>
<li><a href="toggle.html">拨动</a></li>
<li><a href="scrollspy.html">滚动监听</a></li>
<li><a href="smooth-scroll.html">平滑滚动</a></li>
</ul>
</li>
<li class="uk-nav-header">附加组件</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-th-large"></i> 布局类组件</a>
<ul class="uk-nav-sub">
<li><a href="grid-js.html">动态网格</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-bars"></i> 导航类组件</a>
<ul class="uk-nav-sub">
<li><a href="dotnav.html">圆点导航</a></li>
<li><a href="slidenav.html">滑动导航</a></li>
<li><a href="pagination-js.html">动态分页</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-folder-open"></i> 常用组件</a>
<ul class="uk-nav-sub">
<li><a href="form-advanced.html">增强型表单</a></li>
<li><a href="form-file.html">文件域</a></li>
<li><a href="form-password.html">密码表单</a></li>
<li><a href="form-select.html">选择表单</a></li>
<li><a href="placeholder.html">占位符</a></li>
<li><a href="progress.html">进度条</a></li>
</ul>
</li>
<li class="uk-parent"><a href="#"><i class="uk-icon-magic"></i> JavaScript组件</a>
<ul class="uk-nav-sub">
<li><a href="lightbox.html">灯箱</a></li>
<li><a href="autocomplete.html">自动完成</a></li>
<li><a href="datepicker.html">日期选择器</a></li>
<li><a href="htmleditor.html">HTML 编辑器</a></li>
<li><a href="slideshow.html">幻灯片</a></li>
<li><a href="accordion.html">手风琴</a></li>
<li><a href="notify.html">通知</a></li>
<li><a href="search.html">搜索</a></li>
<li><a href="nestable.html">可嵌套</a></li>
<li><a href="sortable.html">可排序</a></li>
<li><a href="sticky.html">粘连</a></li>
<li><a href="timepicker.html">时间选择器</a></li>
<li><a href="tooltip.html">工具提示</a></li>
<li><a href="upload.html">上传</a></li>
</ul>
</li>
<li class="uk-nav-divider"></li>
<li><a href="../showcase/index.html">案例展示</a></li>
<li><a href="about.html">关于我们</a></li>
</ul>
</div>
</div>
</body>
</html>
|
#--
# Copyright (c) 2017 Michael Berkovich, theiceberk@gmail.com
#
# __ __ ____ _ _ _____ ____ _ ______ ___ ____
# | |__| || || | | | | || || | | | / _]| \
# | | | | | | | | | | | __| | | | | | | / [_ | D )
# | | | | | | | |___ | |___ | |_ | | | |___|_| |_|| _]| /
# | ` ' | | | | || | | _] | | | | | | | [_ | \
# \ / | | | || | | | | | | | | | | || . \
# \_/\_/ |____||_____||_____| |__| |____||_____| |__| |_____||__|\_|
#
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sublicense, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#++
module WillFilter
VERSION = '5.1.4.4'
end
|
import { Cache } from '../cache/cache';
import { BoundedCache } from '../cache/bounded';
import { KeyType } from '../cache/key-type';
import { BoundlessCache } from '../cache/boundless';
import { Weigher } from '../cache/weigher';
import { DefaultLoadingCache } from '../cache/loading';
import { ExpirationCache } from '../cache/expiration';
import { MetricsCache } from '../cache/metrics/index';
import { RemovalListener } from '../cache/removal-listener';
import { Loader } from '../cache/loading/loader';
import { MaxAgeDecider } from '../cache/expiration/max-age-decider';
import { LoadingCache } from '../cache/loading/loading-cache';
import { Expirable } from '../cache/expiration/expirable';
export interface CacheBuilder<K extends KeyType, V> {
/**
* Set a listener that will be called every time something is removed
* from the cache.
*/
withRemovalListener(listener: RemovalListener<K, V>): this;
/**
* Set the maximum number of items to keep in the cache before evicting
* something.
*/
maxSize(size: number): this;
/**
* Set a function to use to determine the size of a cached object.
*/
withWeigher(weigher: Weigher<K, V>): this;
/**
* Change to a cache where get can also resolve values if provided with
* a function as the second argument.
*/
loading(): LoadingCacheBuilder<K, V>;
/**
* Change to a loading cache, where the get-method will return instances
* of Promise and automatically load unknown values.
*/
withLoader(loader: Loader<K, V>): LoadingCacheBuilder<K, V>;
/**
* Set that the cache should expire items some time after they have been
* written to the cache.
*/
expireAfterWrite(time: number | MaxAgeDecider<K, V>): this;
/**
* Set that the cache should expire items some time after they have been
* read from the cache.
*/
expireAfterRead(time: number | MaxAgeDecider<K, V>): this;
/**
* Activate tracking of metrics for this cache.
*/
metrics(): this;
/**
* Build the cache.
*/
build(): Cache<K, V>;
}
export interface LoadingCacheBuilder<K extends KeyType, V> extends CacheBuilder<K, V> {
/**
* Build the cache.
*/
build(): LoadingCache<K, V>;
}
/**
* Builder for cache instances.
*/
export class CacheBuilderImpl<K extends KeyType, V> implements CacheBuilder<K, V> {
private optRemovalListener?: RemovalListener<K, V>;
private optMaxSize?: number;
private optWeigher?: Weigher<K, V>;
private optMaxWriteAge?: MaxAgeDecider<K, V>;
private optMaxNoReadAge?: MaxAgeDecider<K, V>;
private optMetrics: boolean = false;
/**
* Set a listener that will be called every time something is removed
* from the cache.
*/
public withRemovalListener(listener: RemovalListener<K, V>) {
this.optRemovalListener = listener;
return this;
}
/**
* Set the maximum number of items to keep in the cache before evicting
* something.
*/
public maxSize(size: number) {
this.optMaxSize = size;
return this;
}
/**
* Set a function to use to determine the size of a cached object.
*/
public withWeigher(weigher: Weigher<K, V>) {
if(typeof weigher !== 'function') {
throw new Error('Weigher should be a function that takes a key and value and returns a number');
}
this.optWeigher = weigher;
return this;
}
/**
* Change to a cache where get can also resolve values if provided with
* a function as the second argument.
*/
public loading(): LoadingCacheBuilder<K, V> {
return new LoadingCacheBuilderImpl(this, null);
}
/**
* Change to a loading cache, where the get-method will return instances
* of Promise and automatically load unknown values.
*/
public withLoader(loader: Loader<K, V>): LoadingCacheBuilder<K, V> {
if(typeof loader !== 'function') {
throw new Error('Loader should be a function that takes a key and returns a value or a promise that resolves to a value');
}
return new LoadingCacheBuilderImpl(this, loader);
}
/**
* Set that the cache should expire items after some time.
*/
public expireAfterWrite(time: number | MaxAgeDecider<K, V>) {
let evaluator;
if(typeof time === 'function') {
evaluator = time;
} else if(typeof time === 'number') {
evaluator = () => time;
} else {
throw new Error('expireAfterWrite needs either a maximum age as a number or a function that returns a number');
}
this.optMaxWriteAge = evaluator;
return this;
}
/**
* Set that the cache should expire items some time after they have been read.
*/
public expireAfterRead(time: number | MaxAgeDecider<K, V>): this {
let evaluator;
if(typeof time === 'function') {
evaluator = time;
} else if(typeof time === 'number') {
evaluator = () => time;
} else {
throw new Error('expireAfterRead needs either a maximum age as a number or a function that returns a number');
}
this.optMaxNoReadAge = evaluator;
return this;
}
/**
* Activate tracking of metrics for this cache.
*/
public metrics(): this {
this.optMetrics = true;
return this;
}
/**
* Build and return the cache.
*/
public build() {
let cache: Cache<K, V>;
if(typeof this.optMaxWriteAge !== 'undefined' || typeof this.optMaxNoReadAge !== 'undefined') {
/*
* Requested expiration - wrap the base cache a bit as it needs
* custom types, a custom weigher if used and removal listeners
* are added on the expiration cache instead.
*/
let parentCache: Cache<K, Expirable<V>>;
if(this.optMaxSize) {
parentCache = new BoundedCache({
maxSize: this.optMaxSize,
weigher: createExpirableWeigher(this.optWeigher)
});
} else {
parentCache = new BoundlessCache({});
}
cache = new ExpirationCache({
maxNoReadAge: this.optMaxNoReadAge,
maxWriteAge: this.optMaxWriteAge,
removalListener: this.optRemovalListener,
parent: parentCache
});
} else {
if(this.optMaxSize) {
cache = new BoundedCache({
maxSize: this.optMaxSize,
weigher: this.optWeigher,
removalListener: this.optRemovalListener
});
} else {
cache = new BoundlessCache({
removalListener: this.optRemovalListener
});
}
}
if(this.optMetrics) {
// Collect metrics if requested
cache = new MetricsCache({
parent: cache
});
}
return cache;
}
}
class LoadingCacheBuilderImpl<K extends KeyType, V> implements LoadingCacheBuilder<K, V> {
private parent: CacheBuilder<K, V>;
private loader: Loader<K, V> | null;
constructor(parent: CacheBuilder<K, V>, loader: Loader<K, V> | null) {
this.parent = parent;
this.loader = loader;
}
public withRemovalListener(listener: RemovalListener<K, V>): this {
this.parent.withRemovalListener(listener);
return this;
}
public maxSize(size: number): this {
this.parent.maxSize(size);
return this;
}
public withWeigher(weigher: Weigher<K, V>): this {
this.parent.withWeigher(weigher);
return this;
}
public loading(): LoadingCacheBuilder<K, V> {
throw new Error('Already building a loading cache');
}
public withLoader(loader: Loader<K, V>): LoadingCacheBuilder<K, V> {
throw new Error('Already building a loading cache');
}
public expireAfterWrite(time: number | MaxAgeDecider<K, V>): this {
this.parent.expireAfterWrite(time);
return this;
}
public expireAfterRead(time: number | MaxAgeDecider<K, V>): this {
this.parent.expireAfterRead(time);
return this;
}
public metrics(): this {
this.parent.metrics();
return this;
}
public build(): LoadingCache<K, V> {
return new DefaultLoadingCache({
loader: this.loader,
parent: this.parent.build()
});
}
}
function createExpirableWeigher<K extends KeyType, V>(w: Weigher<K, V> | undefined): Weigher<K, Expirable<V>> | null {
if(! w) return null;
return (key, node) => w(key, node.value as V);
}
|
using Microsoft.Azure.AppService.ApiApps.Service;
using System.Collections.Generic;
using System.IO;
namespace FileWatcher.Models
{
// A simple in-memory trigger store.
public class InMemoryTriggerStore
{
private static InMemoryTriggerStore instance;
private IDictionary<string, FileSystemWatcher> _store;
private InMemoryTriggerStore()
{
_store = new Dictionary<string, FileSystemWatcher>();
}
public static InMemoryTriggerStore Instance
{
get
{
if (instance == null)
{
instance = new InMemoryTriggerStore();
}
return instance;
}
}
// Register a push trigger.
public void RegisterTrigger(string triggerId, string rootPath,
TriggerInput<string, FileInfoWrapper> triggerInput)
{
// Use FileSystemWatcher to listen to file change event.
var filter = string.IsNullOrEmpty(triggerInput.inputs) ? "*" : triggerInput.inputs;
var watcher = new FileSystemWatcher(rootPath, filter);
watcher.IncludeSubdirectories = true;
watcher.EnableRaisingEvents = true;
watcher.NotifyFilter = NotifyFilters.LastAccess;
// When some file is changed, fire the push trigger.
watcher.Changed +=
(sender, e) => watcher_Changed(sender, e,
Runtime.FromAppSettings(),
triggerInput.GetCallback());
// Assoicate the FileSystemWatcher object with the triggerId.
_store[triggerId] = watcher;
}
// Fire the assoicated push trigger when some file is changed.
void watcher_Changed(object sender, FileSystemEventArgs e,
// AppService runtime object needed to invoke the callback.
Runtime runtime,
// The callback to invoke.
ClientTriggerCallback<FileInfoWrapper> callback)
{
// Helper method provided by AppService service SDK to invoke a push trigger callback.
callback.InvokeAsync(runtime, FileInfoWrapper.FromFileInfo(new FileInfo(e.FullPath)));
}
}
} |
#ifndef _LINUX_AUXVEC_H
#define _LINUX_AUXVEC_H
//lux 辅助信息常量定义,在加载可执行文件时用到,see binfmt_elf.c
#include <asm/auxvec.h>
/* Symbolic values for the entries in the auxiliary table
put on the initial stack */
#define AT_NULL 0 /* end of vector */
#define AT_IGNORE 1 /* entry should be ignored */
#define AT_EXECFD 2 /* file descriptor of program */
#define AT_PHDR 3 /* program headers for program */
#define AT_PHENT 4 /* size of program header entry */
#define AT_PHNUM 5 /* number of program headers */
#define AT_PAGESZ 6 /* system page size */
#define AT_BASE 7 /* base address of interpreter */
#define AT_FLAGS 8 /* flags */
#define AT_ENTRY 9 /* entry point of program */
#define AT_NOTELF 10 /* program is not ELF */
#define AT_UID 11 /* real uid */
#define AT_EUID 12 /* effective uid */
#define AT_GID 13 /* real gid */
#define AT_EGID 14 /* effective gid */
#define AT_PLATFORM 15 /* string identifying CPU for optimizations */
#define AT_HWCAP 16 /* arch dependent hints at CPU capabilities */
#define AT_CLKTCK 17 /* frequency at which times() increments */
/* AT_* values 18 through 22 are reserved */
#define AT_SECURE 23 /* secure mode boolean */
#define AT_BASE_PLATFORM 24 /* string identifying real platform, may
* differ from AT_PLATFORM. */
#define AT_RANDOM 25 /* address of 16 random bytes */
#define AT_EXECFN 31 /* filename of program */
#ifdef __KERNEL__
#define AT_VECTOR_SIZE_BASE 19 /* NEW_AUX_ENT entries in auxiliary table */
/* number of "#define AT_.*" above, minus {AT_NULL, AT_IGNORE, AT_NOTELF} */
#endif
#endif /* _LINUX_AUXVEC_H */
|
<?php
namespace Application\Entity;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Id;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\OneToMany;
use Doctrine\ORM\Mapping\ManyToOne;
/**
* Person entity.
* Each person may have zero or more contacts.
* Each person must have at least one instance of credentials.
* That is not really checked by the application at the moment.
* It is just not exposed to the end user that such an entity exists in the system
* and there is no legal way for an end-user to create or destroy instance of this entity.
* Each person may have zero or more e-mail addresses.
* Each person may have zero or more phone numbers.
* @Entity(repositoryClass="PersonRepository")
*/
class Person
{
/**
* @var int
* @Id
* @GeneratedValue
* @Column(type="integer")
*/
private $id;
/**
* @var Credentials[]
* @OneToMany(targetEntity="Credentials",mappedBy="owner")
*/
private $credentials;
/**
* @var PhoneNumber[]
* @OneToMany(targetEntity="PhoneNumber",mappedBy="owner")
*/
private $phoneNumbers;
/**
* @var EMailAddress[]
* @OneToMany(targetEntity="EMailAddress",mappedBy="owner")
*/
private $emailAddresses;
/**
* @var Contact[]
* @OneToMany(targetEntity="Contact",mappedBy="source")
*/
private $contacts;
public function __construct ( )
{
$this->credentials = new ArrayCollection ( );
$this->phoneNumbers = new ArrayCollection ( );
$this->emailAddresses = new ArrayCollection ( );
$this->contacts = new ArrayCollection ( );
}
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Add credentials
*
* @param \Application\Entity\Credentials $credentials
* @return Person
*/
public function addCredential(\Application\Entity\Credentials $credentials)
{
$this->credentials[] = $credentials;
return $this;
}
/**
* Remove credentials
*
* @param \Application\Entity\Credentials $credentials
*/
public function removeCredential(\Application\Entity\Credentials $credentials)
{
$this->credentials->removeElement($credentials);
}
/**
* Get credentials
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getCredentials()
{
return $this->credentials;
}
/**
* Add phoneNumbers
*
* @param \Application\Entity\PhoneNumber $phoneNumbers
* @return Person
*/
public function addPhoneNumber(\Application\Entity\PhoneNumber $phoneNumbers)
{
$this->phoneNumbers[] = $phoneNumbers;
return $this;
}
/**
* Remove phoneNumbers
*
* @param \Application\Entity\PhoneNumber $phoneNumbers
*/
public function removePhoneNumber(\Application\Entity\PhoneNumber $phoneNumbers)
{
$this->phoneNumbers->removeElement($phoneNumbers);
}
/**
* Get phoneNumbers
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPhoneNumbers()
{
return $this->phoneNumbers;
}
/**
* Add contacts
*
* @param \Application\Entity\Contact $contacts
* @return Person
*/
public function addContact(\Application\Entity\Contact $contacts)
{
$this->contacts[] = $contacts;
return $this;
}
/**
* Remove contacts
*
* @param \Application\Entity\Contact $contacts
*/
public function removeContact(\Application\Entity\Contact $contacts)
{
$this->contacts->removeElement($contacts);
}
/**
* Get contacts
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getContacts()
{
return $this->contacts;
}
/**
* Add emailAddresses
*
* @param \Application\Entity\EMailAddress $emailAddresses
* @return Person
*/
public function addEmailAddress(\Application\Entity\EMailAddress $emailAddresses)
{
$this->emailAddresses[] = $emailAddresses;
return $this;
}
/**
* Remove emailAddresses
*
* @param \Application\Entity\EMailAddress $emailAddresses
*/
public function removeEmailAddress(\Application\Entity\EMailAddress $emailAddresses)
{
$this->emailAddresses->removeElement($emailAddresses);
}
/**
* Get emailAddresses
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getEmailAddresses()
{
return $this->emailAddresses;
}
}
|
# Dev shit
if ENV["BAK_SHELL_DEV_SHIT"] == "devshit"
require "awesome_print" rescue nil
end
# Standard lib shit
require "fileutils"
# Require gems shit
require "gli"
require "rainbow/ext/string"
module BakShell
BACKUP_DIR = File.expand_path(File.join(ENV["HOME"], "bak"))
end
require_relative "./bak-shell/version"
require_relative "./bak-shell/exceptions"
require_relative "./bak-shell/indexer"
require_relative "./bak-shell/cli"
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { StyleSheet, css } from 'aphrodite';
import { changeTimeSignature } from '../../actions/track';
import HoverableText from './HoverableText';
const styles = StyleSheet.create({
text: {
fontFamily: 'Optima, Segoe, Segoe UI, Candara, Calibri, Arial, sans-serif'
},
popoverContainer: {
background: '#FEFBF7',
height: 200,
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between'
},
templateRow: {
display: 'flex',
justifyContent: 'space-around',
paddingTop: 10
},
timeSigRow: { display: 'flex', justifyContent: 'center', flexShrink: 10 },
checkboxRow: {
display: 'flex',
justifyContent: 'space-around',
paddingBottom: 10,
paddingLeft: 5,
paddingRight: 5
},
beats: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
paddingTop: 15,
alignItems: 'flex-end',
flexBasis: '55%'
},
beatType: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
paddingBottom: 15,
alignItems: 'flex-end',
flexBasis: '55%'
},
numberText: { fontSize: 40, paddingRight: 10 },
topArrows: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
paddingTop: 15,
flexBasis: '45%'
},
bottomArrows: {
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
paddingBottom: 15,
flexBasis: '45%'
},
checkboxText: { fontWeight: 300, fontSize: 12, paddingTop: 3 }
});
class TimeSignaturePopover extends Component {
constructor(props) {
super(props);
this.state = {
timeSignature: Object.assign({}, props.timeSignature),
toEndChecked: false,
allChecked: false
};
}
componentWillUnmount() {
const { timeSignature, toEndChecked, allChecked } = this.state;
this.props.changeTimeSignature(
{ measureIndex: this.props.measureIndex },
timeSignature,
toEndChecked,
allChecked
);
}
onTwoFourClick = () => {
// TODO extract these things into a component
this.setState({ timeSignature: { beats: 2, beatType: 4 } });
};
onFourFourClick = () => {
this.setState({ timeSignature: { beats: 4, beatType: 4 } });
};
onSixEightClick = () => {
this.setState({ timeSignature: { beats: 6, beatType: 8 } });
};
onIncrementBeats = () => {
if (this.state.timeSignature.beats < 32) {
this.setState({
timeSignature: {
beats: this.state.timeSignature.beats + 1,
beatType: this.state.timeSignature.beatType
}
});
}
};
onIncrementBeatType = () => {
if (this.state.timeSignature.beatType < 32) {
this.setState({
timeSignature: {
beats: this.state.timeSignature.beats,
beatType: this.state.timeSignature.beatType * 2
}
});
}
};
onDecrementBeats = () => {
if (this.state.timeSignature.beats > 1) {
this.setState({
timeSignature: {
beats: this.state.timeSignature.beats - 1,
beatType: this.state.timeSignature.beatType
}
});
}
};
onDecrementBeatType = () => {
if (this.state.timeSignature.beatType > 1) {
this.setState({
timeSignature: {
beats: this.state.timeSignature.beats,
beatType: this.state.timeSignature.beatType / 2
}
});
}
};
toEndChanged = () => {
this.setState({ toEndChecked: !this.state.toEndChecked });
};
allChanged = () => {
this.setState({ allChecked: !this.state.allChecked });
};
render() {
return (
<div className={css(styles.popoverContainer)}>
<span className={css(styles.templateRow)}>
<HoverableText onClick={this.onTwoFourClick} text="2/4" />
<HoverableText onClick={this.onFourFourClick} text="4/4" />
<HoverableText onClick={this.onSixEightClick} text="6/8" />
</span>
<div className={css(styles.timeSigRow)}>
<span className={css(styles.beats)}>
<h3 className={css(styles.text, styles.numberText)}>
{this.state.timeSignature.beats}
</h3>
</span>
<span className={css(styles.topArrows)}>
<HoverableText onClick={this.onIncrementBeats} text="▲" />
<HoverableText onClick={this.onDecrementBeats} text="▼" />
</span>
</div>
<div className={css(styles.timeSigRow)}>
<span className={css(styles.beatType)}>
<h3 className={css(styles.text, styles.numberText)}>
{this.state.timeSignature.beatType}
</h3>
</span>
<span className={css(styles.bottomArrows)}>
<HoverableText onClick={this.onIncrementBeatType} text="▲" />
<HoverableText onClick={this.onDecrementBeatType} text="▼" />
</span>
</div>
<span className={css(styles.checkboxRow)}>
<small className={css(styles.text, styles.checkboxText)}>
To End
</small>
<input
type="checkbox"
value={this.state.toEndChecked}
onChange={this.toEndChanged}
/>
<small className={css(styles.text, styles.checkboxText)}>
All Measures
</small>
<input
type="checkbox"
value={this.state.allChecked}
onChange={this.allChanged}
/>
</span>
</div>
);
}
}
export default connect(null, { changeTimeSignature })(TimeSignaturePopover);
|
<?php
/**
* To rebuild the `snapshots` directory after changing
* files in `source`, run `php tests/rebuild.php`.
*/
shell_exec('./jigsaw build testing');
removeDirectory('tests/snapshots');
rename('tests/build-testing', 'tests/snapshots');
function removeDirectory($path)
{
if (! $path) {
exit("Path to the 'tests/snapshots' directory is missing");
}
$files = glob($path . '/{,.}[!.,!..]*', GLOB_MARK|GLOB_BRACE);
foreach ($files as $file) {
is_dir($file) ? removeDirectory($file) : unlink($file);
}
rmdir($path);
return;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.