Skip to content

Commit

Permalink
added missing pluggable.php file
Browse files Browse the repository at this point in the history
  • Loading branch information
voitto committed Dec 10, 2008
1 parent c8ce5af commit 9f8148a
Show file tree
Hide file tree
Showing 374 changed files with 49,559 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/all_in_one_seo_pack/models/seo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

$installed = environment('installed');

if (in_array('all_in_one_seo_pack',$installed))
before_filter('setup_seo_app', 'render');

function setup_seo_app() {
add_action( 'wp_head', 'get_posts_init' );
wp_plugin_include( 'all-in-one-seo-pack' );
load_plugin_textdomain( 'all_in_one_seo_pack', 'wp-content/plugins/all-in-one-seo-pack' );
}
135 changes: 135 additions & 0 deletions app/auction/controllers/auction_bullets.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?php


function get( &$vars ) {
extract( $vars );
switch ( count( $collection->members )) {
case ( 1 ) :
if ($request->id && $request->entry_url())
render( 'action', 'entry' );
default :
render( 'action', 'index' );
}
}


function post( &$vars ) {
extract( $vars );
$resource->insert_from_post( $request );
header_status( '201 Created' );
redirect_to( $request->url_for(array('action'=>'entry','resource'=>'auctions','id'=>$request->params['auctionbullet']['auction_id'] )));
}


function put( &$vars ) {
extract( $vars );
$resource->update_from_post( $request );
header_status( '200 OK' );
redirect_to( $request->resource );
}


function delete( &$vars ) {
extract( $vars );
$resource->delete_from_post( $request );
header_status( '200 OK' );
redirect_to( $request->url_for(array('action'=>'entry','resource'=>'auctions','id'=>$request->params['auctionbullet']['auction_id'] )));
}


function _doctype( &$vars ) {
// doctype controller
}



function index( &$vars ) {
extract( $vars );
$theme = environment('theme');
$blocks = environment('blocks');
$atomfeed = $request->feed_url();
return vars(
array(
&$blocks,
&$profile,
&$collection,
&$atomfeed,
&$theme
),
get_defined_vars()
);
}


function _index( &$vars ) {
// index controller returns
// a Collection of recent entries
extract( $vars );
return vars(
array( &$collection, &$profile ),
get_defined_vars()
);
}


function _entry( &$vars ) {
// entry controller returns
// a Collection w/ 1 member entry
extract( $vars );
$Member = $collection->MoveNext();
$Entry = $Member->FirstChild( 'entries' );
return vars(
array( &$collection, &$Member, &$Entry, &$profile ),
get_defined_vars()
);
}


function _new( &$vars ) {
extract( $vars );
$model =& $db->get_table( $request->resource );
$Member = $model->base();

return vars(
array( &$Member, &$profile ),
get_defined_vars()
);
}


function _edit( &$vars ) {
extract( $vars );
$Member = $collection->MoveFirst();
$Entry = $Member->FirstChild( 'entries' );
return vars(
array( &$Member, &$Entry, &$profile ),
get_defined_vars()
);
}


function _remove( &$vars ) {
extract( $vars );
$Member = $collection->MoveFirst();
$Entry = $Member->FirstChild( 'entries' );
return vars(
array( &$Member, &$Entry, &$profile ),
get_defined_vars()
);
}


function _block( &$vars ) {

extract( $vars );
return vars(
array(
&$Entry,
&$collection
),
get_defined_vars()
);

}

?>
135 changes: 135 additions & 0 deletions app/auction/controllers/auction_photos.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<?php


function get( &$vars ) {
extract( $vars );
switch ( count( $collection->members )) {
case ( 1 ) :
if ($request->id && $request->entry_url())
render( 'action', 'entry' );
default :
render( 'action', 'index' );
}
}


function post( &$vars ) {
extract( $vars );
$resource->insert_from_post( $request );
header_status( '201 Created' );
redirect_to( $request->url_for(array('action'=>'entry','resource'=>'auctions','id'=>$request->params['auctionphoto']['auction_id'] )));
}


function put( &$vars ) {
extract( $vars );
$resource->update_from_post( $request );
header_status( '200 OK' );
redirect_to( $request->resource );
}


function delete( &$vars ) {
extract( $vars );
$resource->delete_from_post( $request );
header_status( '200 OK' );
redirect_to( $request->url_for(array('action'=>'entry','resource'=>'auctions','id'=>$request->params['auctionphoto']['auction_id'] )));
}


function _doctype( &$vars ) {
// doctype controller
}



function index( &$vars ) {
extract( $vars );
$theme = environment('theme');
$blocks = environment('blocks');
$atomfeed = $request->feed_url();
return vars(
array(
&$blocks,
&$profile,
&$collection,
&$atomfeed,
&$theme
),
get_defined_vars()
);
}


function _index( &$vars ) {
// index controller returns
// a Collection of recent entries
extract( $vars );
return vars(
array( &$collection, &$profile ),
get_defined_vars()
);
}


function _entry( &$vars ) {
// entry controller returns
// a Collection w/ 1 member entry
extract( $vars );
$Member = $collection->MoveNext();
$Entry = $Member->FirstChild( 'entries' );
return vars(
array( &$collection, &$Member, &$Entry, &$profile ),
get_defined_vars()
);
}


function _new( &$vars ) {
extract( $vars );
$model =& $db->get_table( $request->resource );
$Member = $model->base();

return vars(
array( &$Member, &$profile ),
get_defined_vars()
);
}


function _edit( &$vars ) {
extract( $vars );
$Member = $collection->MoveFirst();
$Entry = $Member->FirstChild( 'entries' );
return vars(
array( &$Member, &$Entry, &$profile ),
get_defined_vars()
);
}


function _remove( &$vars ) {
extract( $vars );
$Member = $collection->MoveFirst();
$Entry = $Member->FirstChild( 'entries' );
return vars(
array( &$Member, &$Entry, &$profile ),
get_defined_vars()
);
}


function _block( &$vars ) {

extract( $vars );
return vars(
array(
&$Entry,
&$collection
),
get_defined_vars()
);

}

?>

0 comments on commit 9f8148a

Please sign in to comment.