Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
views
Commits
17817645
Commit
17817645
authored
Apr 11, 2008
by
merlinofchaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some documentation stubs and cleanup.
parent
6be7b00a
Changes
11
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
168 additions
and
27 deletions
+168
-27
docs/docs.php
docs/docs.php
+137
-0
includes/field.handlers.inc
includes/field.handlers.inc
+2
-2
includes/filter.handlers.inc
includes/filter.handlers.inc
+0
-7
includes/plugins.inc
includes/plugins.inc
+9
-3
includes/query.inc
includes/query.inc
+2
-2
includes/sort.handlers.inc
includes/sort.handlers.inc
+6
-0
modules/profile.views.inc
modules/profile.views.inc
+1
-1
modules/search.views.inc
modules/search.views.inc
+1
-1
modules/taxonomy.views.inc
modules/taxonomy.views.inc
+2
-2
modules/upload.views.inc
modules/upload.views.inc
+6
-7
modules/user.views.inc
modules/user.views.inc
+2
-2
No files found.
docs/docs.php
0 → 100644
View file @
17817645
<?php
// $Id$
/**
* @file
* This file contains no working PHP code; it exists to provide additional documentation
* for doxygen as well as to document hooks in the standard Drupal manner.
*/
/**
* @mainpage Views 2 API Manual
*
* This is a stub for the main page.
*
* Topics:
* - @ref view_lifetime
* - @ref views_hooks
* - @ref views_handlers
* - @ref views_plugins
*/
/**
* @page view_lifetime The life of a view
*
* This page explains the basic cycle of a view and what processes happen.
*/
/**
* @page views_handlers About Views' handlers
*
* This page explains what views handlers are, how they're written, and what
* the basic conventions are.
*
* - @ref views_field_handlers
* - @ref views_sort_handlers
* - @ref views_filter_handlers
* - @ref views_argument_handlers
* - @ref views_relationship_handlers
*/
/**
* @page views_plugins About Views' plugins
*
* This page explains what views plugins are, how they're written, and what
* the basic conventions are.
*
* - @ref views_display_plugins
* - @ref views_style_plugins
* - @ref views_row_plugins
*/
/**
* @defgroup views_hooks Views' hooks
* @{
* Hooks that can be implemented by other modules in order to implement the
* Views API.
*/
/**
* Stub hook documentation
*
* This hook should be placed in MODULENAME.views.inc and it will be auto-loaded.
* This must either be in the same directory as the .module file or in a subdirectory
* named 'includes'.
*/
function
hook_views_data
()
{
// example code here
}
/**
* Stub hook documentation
*
* This hook should be placed in MODULENAME.views.inc and it will be auto-loaded.
* This must either be in the same directory as the .module file or in a subdirectory
* named 'includes'.
*/
function
hook_views_plugins
()
{
// example code here
}
/**
* Stub hook documentation
*
* This hook should be placed in MODULENAME.views_default.inc and it will be auto-loaded.
* This must either be in the same directory as the .module file or in a subdirectory
* named 'includes'.
*/
function
hook_views_default_views
()
{
// example code here
}
/**
* Stub hook documentation
*
* This hook should be placed in MODULENAME.views_convert.inc and it will be auto-loaded.
* This must either be in the same directory as the .module file or in a subdirectory
* named 'includes'.
*/
function
hook_views_convert
()
{
// example code here
}
/**
* Stub hook documentation
*/
function
hook_views_query_substitutions
()
{
// example code here
}
/**
* Stub hook documentation
*
* This hook should be placed in MODULENAME.views.inc and it will be auto-loaded.
* This must either be in the same directory as the .module file or in a subdirectory
* named 'includes'.
*
* @todo -- this hook is not yet implemented
*/
function
hook_views_pre_view
()
{
// example code here
}
/**
* Stub hook documentation
*
* This hook should be placed in MODULENAME.views.inc and it will be auto-loaded.
* This must either be in the same directory as the .module file or in a subdirectory
* named 'includes'.
*
* @todo -- this hook is not yet implemented
*/
function
hook_views_post_view
()
{
// example code here
}
/**
* @}
*/
includes/field.handlers.inc
View file @
17817645
...
...
@@ -369,8 +369,8 @@ class views_handler_field_prerender_list extends views_handler_field {
);
}
function
render
(
$value
)
{
$field
=
$value
->
{
$this
->
field_alias
};
function
render
(
$value
s
)
{
$field
=
$value
s
->
{
$this
->
field_alias
};
if
(
!
empty
(
$this
->
items
[
$field
]))
{
if
(
$this
->
options
[
'type'
]
==
'separator'
)
{
return
implode
(
check_plain
(
$this
->
options
[
'separator'
]),
$this
->
items
[
$field
]);
...
...
includes/filter.handlers.inc
View file @
17817645
...
...
@@ -4,11 +4,6 @@
* @file
* Views' filter handlers.
*/
/**
* @defgroup views_sort_handlers Views' sort handlers
* @{
* Handlers to tell Views how to sort queries
*/
/**
* @defgroup views_filter_handlers Views' filter handlers
...
...
@@ -1292,5 +1287,3 @@ class views_handler_filter_many_to_one extends views_handler_filter_in_operator
/**
* @}
*/
includes/plugins.inc
View file @
17817645
...
...
@@ -133,7 +133,7 @@ function views_discover_plugins() {
}
/**
* @defgroup views_
plugin_
displays Views' display plugins
* @defgroup views_display
_plugin
s Views' display plugins
* @{
* Display plugins control how Views interact with the rest of Drupal.
*
...
...
@@ -141,6 +141,8 @@ function views_discover_plugins() {
* handle creating Views from a Drupal block hook. They can also
* handle creating Views from an external module source, such as
* a Panels pane, or an insert view, or a CCK field type.
*
* @see hook_views_plugins
*/
/**
...
...
@@ -1681,7 +1683,7 @@ class views_plugin_display_block extends views_plugin_display {
*/
/**
* @defgroup views_plugin
_style
s Views' style plugins
* @defgroup views_
style_
plugins Views' style plugins
* @{
* Style plugins control how a view is rendered. For example, they
* can choose to display a collection of fields, node_view() output,
...
...
@@ -1690,6 +1692,8 @@ class views_plugin_display_block extends views_plugin_display {
* Many style plugins can have an optional 'row' plugin, that displays
* a single record. Not all style plugins can utilize this, so it is
* up to the plugin to set this up and call through to the row plugin.
*
* @see hook_views_plugins
*/
/**
...
...
@@ -2190,12 +2194,14 @@ class views_plugin_style_summary extends views_plugin_style {
*/
/**
* @defgroup views_plugin
_row
s Views' row plugins
* @defgroup views_
row_
plugins Views' row plugins
* @{
*
* Row plugins control how Views outputs an individual record. They are
* tightly coupled to style plugins, in that a style plugin is what calls
* the row plugin.
*
* @see hook_views_plugins
*/
/**
...
...
includes/query.inc
View file @
17817645
...
...
@@ -464,9 +464,9 @@ class views_query {
/**
* Retrieve join data from the larger join data cache.
*
* @param
* @param
$table
* The table to get the join information for.
* @param
* @param
$base_table
* The path we're following to get this join.
*
* @return
...
...
includes/sort.handlers.inc
View file @
17817645
...
...
@@ -5,6 +5,12 @@
* Views' sort handlers.
*/
/**
* @defgroup views_sort_handlers Views' sort handlers
* @{
* Handlers to tell Views how to sort queries
*/
/**
* Base sort handler that has no options and performs a simple sort
*/
...
...
modules/profile.views.inc
View file @
17817645
...
...
@@ -6,7 +6,7 @@
*/
/**
* @defgroup views_
user
_module
user
.module handlers
* @defgroup views_
profile
_module
profile
.module handlers
*
* @{
*/
...
...
modules/search.views.inc
View file @
17817645
...
...
@@ -6,7 +6,7 @@
*/
/**
* @defgroup views_
node
_module
node
.module handlers
* @defgroup views_
search
_module
search
.module handlers
*
* Includes the tables 'search_index'
* @{
...
...
modules/taxonomy.views.inc
View file @
17817645
...
...
@@ -353,10 +353,10 @@ class views_handler_field_term_node_tid extends views_handler_field_prerender_li
$this
->
add_additional_fields
();
}
function
pre_render
(
$
result
s
)
{
function
pre_render
(
$
value
s
)
{
$this
->
field_alias
=
$this
->
aliases
[
'nid'
];
$nids
=
array
();
foreach
(
$
result
s
as
$result
)
{
foreach
(
$
value
s
as
$result
)
{
$nids
[]
=
$result
->
{
$this
->
aliases
[
'nid'
]};
}
...
...
modules/upload.views.inc
View file @
17817645
...
...
@@ -149,12 +149,12 @@ class views_handler_field_upload_fid extends views_handler_field_prerender_list
$this
->
field_alias
=
$this
->
aliases
[
'nid'
];
}
function
pre_render
(
$
result
s
)
{
function
pre_render
(
$
value
s
)
{
$nids
=
array
();
$this
->
items
=
array
();
$data
=
array
();
foreach
(
$
result
s
as
$result
)
{
foreach
(
$
value
s
as
$result
)
{
$nids
[]
=
$result
->
{
$this
->
aliases
[
'nid'
]};
}
...
...
@@ -207,7 +207,7 @@ class views_handler_field_upload_description extends views_handler_field_prerend
);
}
function
pre_render
(
$
result
s
)
{
function
pre_render
(
$
value
s
)
{
if
(
empty
(
$this
->
options
[
'link_to_file'
]))
{
return
;
}
...
...
@@ -216,7 +216,7 @@ class views_handler_field_upload_description extends views_handler_field_prerend
$this
->
items
=
array
();
$data
=
array
();
foreach
(
$
result
s
as
$result
)
{
foreach
(
$
value
s
as
$result
)
{
$fids
[]
=
$result
->
{
$this
->
aliases
[
'fid'
]};
}
...
...
@@ -229,9 +229,8 @@ class views_handler_field_upload_description extends views_handler_field_prerend
}
}
function
render
(
$value
)
{
return
$this
->
render_link
(
$value
->
{
$this
->
field_alias
},
$value
);
function
render
(
$values
)
{
return
$this
->
render_link
(
$values
->
{
$this
->
field_alias
},
$values
);
}
/**
...
...
modules/user.views.inc
View file @
17817645
...
...
@@ -496,11 +496,11 @@ class views_handler_field_user_roles extends views_handler_field_prerender_list
$this
->
field_alias
=
$this
->
aliases
[
'uid'
];
}
function
pre_render
(
$
result
s
)
{
function
pre_render
(
$
value
s
)
{
$uids
=
array
();
$this
->
items
=
array
();
foreach
(
$
result
s
as
$result
)
{
foreach
(
$
value
s
as
$result
)
{
$uids
[]
=
$result
->
{
$this
->
aliases
[
'uid'
]};
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment