Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15177805
class-QueryApp.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
730 B
Referenced Files
None
Subscribers
None
class-QueryApp.php
View Options
<?php
/**
* Methods for a QueryApp class
*/
trait
QueryAppTrait
{
/**
* Join a table with the App table
*
* @return
*/
public
function
joinApp
(
$type
=
'INNER'
)
{
return
$this
->
joinOn
(
$type
,
'app'
,
'app.app_ID'
,
$this
->
APP_ID
)
;
}
}
/**
* Execute a Query against an App
*/
class
QueryApp
extends
Query
{
use
QueryAppTrait
;
/**
* Constructor
*
* @param object $db Database connection
* @param string $class_name Default class name for the results
*/
public
function
__construct
(
$db
=
null
,
$class_name
=
'App'
)
{
// set the database connection and the default class name for the results
parent
::
__construct
(
$db
,
$class_name
)
;
// set FROM table
$this
->
from
(
'app'
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 19, 04:06 (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264690
Default Alt Text
class-QueryApp.php (730 B)
Attached To
Mode
R22 WikiCAPTCHA Control Room
Attached
Detach File
Event Timeline