Skip to content

Commit

Permalink
unified file headers
Browse files Browse the repository at this point in the history
- Removed Konsolidate ASCII art
* updated class info headers
  • Loading branch information
rspieker committed Aug 12, 2013
1 parent 2691284 commit 0d077b8
Show file tree
Hide file tree
Showing 32 changed files with 272 additions and 554 deletions.
25 changes: 5 additions & 20 deletions authentication/oauth.class.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedAuthenticationOAuth
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: Authentication/OAuth
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*
* @name BreedAuthenticationOAuth
* @type class
* @date 2/27/11
* @author Rogier Spieker <rogier@konsolidate.net>
* @name BreedAuthenticationOAuth
* @type class
* @package Breed
* @author Rogier Spieker <rogier@konfirm.net>
*/

class BreedAuthenticationOAuth extends Konsolidate
{
const OAUTH_VERSION="1.0";
Expand All @@ -32,4 +17,4 @@ public function __construct( $oParent )

$this->version = self::OAUTH_VERSION;
}
}
}
26 changes: 5 additions & 21 deletions authentication/oauth/consumer.class.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedAuthenticationOAuthConsumer
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: /Authentication/OAuth/Consumer
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*
* @name BreedAuthenticationOAuthConsumer
* @type class
* @date 2/28/11
* @author Rogier Spieker <rogier@konsolidate.net>
* @name BreedAuthenticationOAuthConsumer
* @type class
* @package Breed
* @author Rogier Spieker <rogier@konfirm.net>
*/

class BreedAuthenticationOAuthConsumer extends Konsolidate
{
public $key;
Expand All @@ -36,5 +21,4 @@ public function __toString()
{
return $this->key;
}
}

}
25 changes: 5 additions & 20 deletions authentication/oauth/request.class.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedAuthenticationOAuthRequest
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: /Authentication/OAuth/Request
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*
* @name BreedAuthenticationOAuthRequest
* @type class
* @date 2/27/11
* @author Rogier Spieker <rogier@konsolidate.net>
* @name BreedAuthenticationOAuthRequest
* @type class
* @package Breed
* @author Rogier Spieker <rogier@konfirm.net>
*/

class BreedAuthenticationOAuthRequest extends Konsolidate
{
const DEFAULT_HTTP_METHOD = "POST";
Expand Down Expand Up @@ -160,4 +145,4 @@ public function urldecode( $mValue )
return array_map( Array( $this, "urldecode" ), $mValue );
return rawurldecode( $mValue );
}
}
}
25 changes: 5 additions & 20 deletions authentication/oauth/signature.class.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedAuthenticationOAuthSignature
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: /Authentication/OAuth/Signature
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*
* @name BreedAuthenticationOAuthSignature
* @type class
* @date 2/27/11
* @author Rogier Spieker <rogier@konsolidate.net>
* @name BreedAuthenticationOAuthSignature
* @type class
* @package Breed
* @author Rogier Spieker <rogier@konfirm.net>
*/

class BreedAuthenticationOAuthSignature extends Konsolidate
{
public function __construct( $oParent )
Expand Down Expand Up @@ -82,4 +67,4 @@ protected function _signatureBase( $sHTTPMethod, $sURL, $aParam )
)
);
}
}
}
25 changes: 5 additions & 20 deletions authentication/oauth/signature/hmac.class.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedAuthenticationOAuthSignatureHMAC
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: /Authentication/OAuth/Signature/HMAC
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*
* @name BreedAuthenticationOAuthSignatureHMAC
* @type class
* @date 2/27/11
* @author Rogier Spieker <rogier@konsolidate.net>
* @name BreedAuthenticationOAuthSignatureHMAC
* @type class
* @package Breed
* @author Rogier Spieker <rogier@konfirm.net>
*/

class BreedAuthenticationOAuthSignatureHMAC extends Konsolidate
{
public function identify( $sHashMethod="sha1" )
Expand All @@ -38,4 +23,4 @@ function_exists( "hash_hmac" )
: $this->call( "/Encryption/HMAC/hash", $sKey, $sRequest, $sHashMethod )
);
}
}
}
23 changes: 4 additions & 19 deletions authentication/oauth/token.class.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedAuthenticationOAuthToken
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: /Authentication/OAuth/Token
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*
* @name BreedAuthenticationOAuthToken
* @type class
* @date 2/28/11
* @author Rogier Spieker <rogier@konsolidate.net>
* @name BreedAuthenticationOAuthToken
* @type class
* @package Breed
* @author Rogier Spieker <rogier@konfirm.net>
*/

class BreedAuthenticationOAuthToken extends Konsolidate
{
public $key;
Expand Down
31 changes: 7 additions & 24 deletions db/mongo.class.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedDBMongo
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: DB/Mongo
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*/


/**
* Mongo Connectivity
* @name BreedDBMongo
* @type class
* @package Konsolidate
* @author Rogier Spieker <rogier@konsolidate.net>
* @package Breed
* @author Rogier Spieker <rogier@konfirm.net>
*/
class BreedDBMongo extends Konsolidate
{
Expand Down Expand Up @@ -73,11 +56,11 @@ public function connect()
if ( !isset( $this->_URI[ "host" ] ) || $this->_URI[ "host" ] == "localhost" )
$this->_mongo = new Mongo();
else
$this->_mongo = new Mongo(
sprintf( "mongodb://%s%s@%s%s",
$this->_mongo = new Mongo(
sprintf( "mongodb://%s%s@%s%s",
isset( $this->_URI[ "user" ] ) ? $this->_URI[ "user" ] : "",
isset( $this->_URI[ "pass" ] ) ? ":{$this->_URI[ "pass" ]}" : "",
isset( $this->_URI[ "host" ] ) ? $this->_URI[ "host" ] : "",
isset( $this->_URI[ "pass" ] ) ? ":{$this->_URI[ "pass" ]}" : "",
isset( $this->_URI[ "host" ] ) ? $this->_URI[ "host" ] : "",
isset( $this->_URI[ "port" ] ) ? ":{$this->_URI[ "port" ]}" : ""
)
);
Expand Down Expand Up @@ -239,4 +222,4 @@ public function represent( $mModule )

return $oReturn;
}
}
}
23 changes: 3 additions & 20 deletions db/mongo/exception.class.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedDBMongoException
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: DB/Mongo/Exception
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*/


/**
* MongoDB specific Exception class
* @name BreedDBMongoException
* @type class
* @package Konsolidate
* @author Rogier Spieker <rogier@konsolidate.net>
* @author Rogier Spieker <rogier@konfirm.net>
*/
class BreedDBMongoException extends Exception
{
Expand All @@ -41,7 +24,7 @@ class BreedDBMongoException extends Exception
* @access public
*/
public $errno;

/**
* constructor
* @name __construct
Expand All @@ -57,4 +40,4 @@ public function __construct( &$rConnection )
$this->error = is_resource( $rConnection ) ? mysql_error( $rConnection ) : mysql_error();
$this->errno = is_resource( $rConnection ) ? mysql_errno( $rConnection ) : mysql_errno();
}
}
}
21 changes: 2 additions & 19 deletions db/mongo/query.class.php
Original file line number Diff line number Diff line change
@@ -1,28 +1,11 @@
<?php

/*
* ________ ___
* / / /\ /\ Konsolidate
* ____/ /___/ \/ \
* / /\ / http://www.konsolidate.net
* /___ ___/ \ /
* \ / /\ \ / \ Class: BreedDBMongoQuery
* \/___/ \___\/ \ Tier: Breed
* \ \ /\ \ /\ / Module: DB/Mongo/Query
* \___\/ \___\/ \/
* \ \ / $Rev$
* \___ ___\/ $Author$
* \ \ / $Date$
* \___\/
*/


/**
* Mongo result set (this object is instanced and returned for every query)
* @name BreedDBMongoQuery
* @type class
* @package Konsolidate
* @author Rogier Spieker <rogier@konsolidate.net>
* @author Rogier Spieker <rogier@konfirm.net>
*/
class BreedDBMongoQuery extends Konsolidate
{
Expand Down Expand Up @@ -176,4 +159,4 @@ public function fetchAll()
$this->rewind();
return $aReturn;
}
}
}
Loading

0 comments on commit 0d077b8

Please sign in to comment.